diff --git a/src/testRunner/unittests/config/commandLineParsing.ts b/src/testRunner/unittests/config/commandLineParsing.ts index cb40ec6527ac4..2187978de3898 100644 --- a/src/testRunner/unittests/config/commandLineParsing.ts +++ b/src/testRunner/unittests/config/commandLineParsing.ts @@ -1,5 +1,8 @@ import * as Harness from "../../_namespaces/Harness"; import * as ts from "../../_namespaces/ts"; +import { + jsonToReadableText, +} from "../helpers"; describe("unittests:: config:: commandLineParsing:: parseCommandLine", () => { function assertParseResult(subScenario: string, commandLine: string[], workerDiagnostic?: () => ts.ParseCommandLineWorkerDiagnostics) { @@ -8,9 +11,9 @@ describe("unittests:: config:: commandLineParsing:: parseCommandLine", () => { baseline.push(commandLine.join(" ")); const parsed = ts.parseCommandLineWorker(workerDiagnostic?.() || ts.compilerOptionsDidYouMeanDiagnostics, commandLine); baseline.push("CompilerOptions::"); - baseline.push(JSON.stringify(parsed.options, /*replacer*/ undefined, " ")); + baseline.push(jsonToReadableText(parsed.options)); baseline.push("WatchOptions::"); - baseline.push(JSON.stringify(parsed.watchOptions, /*replacer*/ undefined, " ")); + baseline.push(jsonToReadableText(parsed.watchOptions)); baseline.push("FileNames::"); baseline.push(parsed.fileNames.join()); baseline.push("Errors::"); @@ -200,9 +203,9 @@ describe("unittests:: config:: commandLineParsing:: parseBuildOptions", () => { baseline.push(commandLine.join(" ")); const parsed = ts.parseBuildCommand(commandLine); baseline.push("buildOptions::"); - baseline.push(JSON.stringify(parsed.buildOptions, /*replacer*/ undefined, " ")); + baseline.push(jsonToReadableText(parsed.buildOptions)); baseline.push("WatchOptions::"); - baseline.push(JSON.stringify(parsed.watchOptions, /*replacer*/ undefined, " ")); + baseline.push(jsonToReadableText(parsed.watchOptions)); baseline.push("Projects::"); baseline.push(parsed.projects.join()); baseline.push("Errors::"); diff --git a/src/testRunner/unittests/config/configurationExtension.ts b/src/testRunner/unittests/config/configurationExtension.ts index 96bfc206db8ca..1d6149bc1a25e 100644 --- a/src/testRunner/unittests/config/configurationExtension.ts +++ b/src/testRunner/unittests/config/configurationExtension.ts @@ -2,6 +2,9 @@ import * as fakes from "../../_namespaces/fakes"; import * as Harness from "../../_namespaces/Harness"; import * as ts from "../../_namespaces/ts"; import * as vfs from "../../_namespaces/vfs"; +import { + jsonToReadableText, +} from "../helpers"; import { baselineParseConfig, baselineParseConfigHost, @@ -12,122 +15,122 @@ function createFileSystem(ignoreCase: boolean, cwd: string, root: string) { cwd, files: { [root]: { - "dev/node_modules/@foo/tsconfig/package.json": JSON.stringify({ + "dev/node_modules/@foo/tsconfig/package.json": jsonToReadableText({ name: "@foo/tsconfig", version: "1.0.0", exports: { ".": "./src/tsconfig.json", }, }), - "dev/node_modules/@foo/tsconfig/src/tsconfig.json": JSON.stringify({ + "dev/node_modules/@foo/tsconfig/src/tsconfig.json": jsonToReadableText({ compilerOptions: { strict: true, }, }), - "dev/tsconfig.extendsFoo.json": JSON.stringify({ + "dev/tsconfig.extendsFoo.json": jsonToReadableText({ extends: "@foo/tsconfig", files: [ "main.ts", ], }), - "dev/node_modules/config-box/package.json": JSON.stringify({ + "dev/node_modules/config-box/package.json": jsonToReadableText({ name: "config-box", version: "1.0.0", tsconfig: "./strict.json", }), - "dev/node_modules/config-box/strict.json": JSON.stringify({ + "dev/node_modules/config-box/strict.json": jsonToReadableText({ compilerOptions: { strict: true, }, }), - "dev/node_modules/config-box/unstrict.json": JSON.stringify({ + "dev/node_modules/config-box/unstrict.json": jsonToReadableText({ compilerOptions: { strict: false, }, }), - "dev/tsconfig.extendsBox.json": JSON.stringify({ + "dev/tsconfig.extendsBox.json": jsonToReadableText({ extends: "config-box", files: [ "main.ts", ], }), - "dev/tsconfig.extendsStrict.json": JSON.stringify({ + "dev/tsconfig.extendsStrict.json": jsonToReadableText({ extends: "config-box/strict", files: [ "main.ts", ], }), - "dev/tsconfig.extendsUnStrict.json": JSON.stringify({ + "dev/tsconfig.extendsUnStrict.json": jsonToReadableText({ extends: "config-box/unstrict", files: [ "main.ts", ], }), - "dev/tsconfig.extendsStrictExtension.json": JSON.stringify({ + "dev/tsconfig.extendsStrictExtension.json": jsonToReadableText({ extends: "config-box/strict.json", files: [ "main.ts", ], }), - "dev/node_modules/config-box-implied/package.json": JSON.stringify({ + "dev/node_modules/config-box-implied/package.json": jsonToReadableText({ name: "config-box-implied", version: "1.0.0", }), - "dev/node_modules/config-box-implied/tsconfig.json": JSON.stringify({ + "dev/node_modules/config-box-implied/tsconfig.json": jsonToReadableText({ compilerOptions: { strict: true, }, }), - "dev/node_modules/config-box-implied/unstrict/tsconfig.json": JSON.stringify({ + "dev/node_modules/config-box-implied/unstrict/tsconfig.json": jsonToReadableText({ compilerOptions: { strict: false, }, }), - "dev/tsconfig.extendsBoxImplied.json": JSON.stringify({ + "dev/tsconfig.extendsBoxImplied.json": jsonToReadableText({ extends: "config-box-implied", files: [ "main.ts", ], }), - "dev/tsconfig.extendsBoxImpliedUnstrict.json": JSON.stringify({ + "dev/tsconfig.extendsBoxImpliedUnstrict.json": jsonToReadableText({ extends: "config-box-implied/unstrict", files: [ "main.ts", ], }), - "dev/tsconfig.extendsBoxImpliedUnstrictExtension.json": JSON.stringify({ + "dev/tsconfig.extendsBoxImpliedUnstrictExtension.json": jsonToReadableText({ extends: "config-box-implied/unstrict/tsconfig", files: [ "main.ts", ], }), - "dev/tsconfig.extendsBoxImpliedPath.json": JSON.stringify({ + "dev/tsconfig.extendsBoxImpliedPath.json": jsonToReadableText({ extends: "config-box-implied/tsconfig.json", files: [ "main.ts", ], }), - "dev/tsconfig.json": JSON.stringify({ + "dev/tsconfig.json": jsonToReadableText({ extends: "./configs/base", files: [ "main.ts", "supplemental.ts", ], }), - "dev/tsconfig.nostrictnull.json": JSON.stringify({ + "dev/tsconfig.nostrictnull.json": jsonToReadableText({ extends: "./tsconfig", compilerOptions: { strictNullChecks: false, }, }), - "dev/configs/base.json": JSON.stringify({ + "dev/configs/base.json": jsonToReadableText({ compilerOptions: { allowJs: true, noImplicitAny: true, strictNullChecks: true, }, }), - "dev/configs/tests.json": JSON.stringify({ + "dev/configs/tests.json": jsonToReadableText({ compilerOptions: { preserveConstEnums: true, removeComments: false, @@ -141,55 +144,55 @@ function createFileSystem(ignoreCase: boolean, cwd: string, root: string) { "../tests/**/*.ts", ], }), - "dev/circular.json": JSON.stringify({ + "dev/circular.json": jsonToReadableText({ extends: "./circular2", compilerOptions: { module: "amd", }, }), - "dev/circular2.json": JSON.stringify({ + "dev/circular2.json": jsonToReadableText({ extends: "./circular", compilerOptions: { module: "commonjs", }, }), - "dev/missing.json": JSON.stringify({ + "dev/missing.json": jsonToReadableText({ extends: "./missing2", compilerOptions: { types: [], }, }), - "dev/failure.json": JSON.stringify({ + "dev/failure.json": jsonToReadableText({ extends: "./failure2.json", compilerOptions: { typeRoots: [], }, }), - "dev/failure2.json": JSON.stringify({ + "dev/failure2.json": jsonToReadableText({ excludes: ["*.js"], }), - "dev/configs/first.json": JSON.stringify({ + "dev/configs/first.json": jsonToReadableText({ extends: "./base", compilerOptions: { module: "commonjs", }, files: ["../main.ts"], }), - "dev/configs/second.json": JSON.stringify({ + "dev/configs/second.json": jsonToReadableText({ extends: "./base", compilerOptions: { module: "amd", }, include: ["../supplemental.*"], }), - "dev/configs/third.json": JSON.stringify({ + "dev/configs/third.json": jsonToReadableText({ extends: "./second", compilerOptions: { module: null, // eslint-disable-line no-null/no-null }, include: ["../supplemental.*"], }), - "dev/configs/fourth.json": JSON.stringify({ + "dev/configs/fourth.json": jsonToReadableText({ extends: "./third", compilerOptions: { module: "system", @@ -197,35 +200,35 @@ function createFileSystem(ignoreCase: boolean, cwd: string, root: string) { include: null, // eslint-disable-line no-null/no-null files: ["../main.ts"], }), - "dev/configs/fifth.json": JSON.stringify({ + "dev/configs/fifth.json": jsonToReadableText({ extends: "./fourth", include: ["../tests/utils.ts"], files: [], }), - "dev/extends.json": JSON.stringify({ extends: 42 }), - "dev/extends2.json": JSON.stringify({ extends: "configs/base" }), - "dev/extends3.json": JSON.stringify({ extends: "" }), - "dev/extends4.json": JSON.stringify({ extends: [""] }), + "dev/extends.json": jsonToReadableText({ extends: 42 }), + "dev/extends2.json": jsonToReadableText({ extends: "configs/base" }), + "dev/extends3.json": jsonToReadableText({ extends: "" }), + "dev/extends4.json": jsonToReadableText({ extends: [""] }), "dev/main.ts": "", "dev/supplemental.ts": "", "dev/tests/unit/spec.ts": "", "dev/tests/utils.ts": "", "dev/tests/scenarios/first.json": "", "dev/tests/baselines/first/output.ts": "", - "dev/configs/extendsArrayFirst.json": JSON.stringify({ + "dev/configs/extendsArrayFirst.json": jsonToReadableText({ compilerOptions: { allowJs: true, noImplicitAny: true, strictNullChecks: true, }, }), - "dev/configs/extendsArraySecond.json": JSON.stringify({ + "dev/configs/extendsArraySecond.json": jsonToReadableText({ compilerOptions: { module: "amd", }, include: ["../supplemental.*"], }), - "dev/configs/extendsArrayThird.json": JSON.stringify({ + "dev/configs/extendsArrayThird.json": jsonToReadableText({ compilerOptions: { module: null, // eslint-disable-line no-null/no-null noImplicitAny: false, @@ -233,7 +236,7 @@ function createFileSystem(ignoreCase: boolean, cwd: string, root: string) { extends: "./extendsArrayFirst", include: ["../supplemental.*"], }), - "dev/configs/extendsArrayFourth.json": JSON.stringify({ + "dev/configs/extendsArrayFourth.json": jsonToReadableText({ compilerOptions: { module: "system", strictNullChecks: false, @@ -241,17 +244,17 @@ function createFileSystem(ignoreCase: boolean, cwd: string, root: string) { include: null, // eslint-disable-line no-null/no-null files: ["../main.ts"], }), - "dev/configs/extendsArrayFifth.json": JSON.stringify({ + "dev/configs/extendsArrayFifth.json": jsonToReadableText({ extends: ["./extendsArrayFirst", "./extendsArraySecond", "./extendsArrayThird", "./extendsArrayFourth"], files: [], }), - "dev/extendsArrayFails.json": JSON.stringify({ + "dev/extendsArrayFails.json": jsonToReadableText({ extends: ["./missingFile"], compilerOptions: { types: [], }, }), - "dev/extendsArrayFails2.json": JSON.stringify({ extends: [42] }), + "dev/extendsArrayFails2.json": jsonToReadableText({ extends: [42] }), }, }, }); @@ -314,7 +317,7 @@ describe("unittests:: config:: configurationExtension", () => { configFileName: entry, baselineParsed: (baseline, parsed) => { baseline.push("CompilerOptions::"); - baseline.push(JSON.stringify(parsed.options, undefined, " ")); + baseline.push(jsonToReadableText(parsed.options)); baseline.push("FileNames::"); baseline.push(parsed.fileNames.join()); }, diff --git a/src/testRunner/unittests/config/convertCompilerOptionsFromJson.ts b/src/testRunner/unittests/config/convertCompilerOptionsFromJson.ts index aa0f4eb239d88..31d9ff664d315 100644 --- a/src/testRunner/unittests/config/convertCompilerOptionsFromJson.ts +++ b/src/testRunner/unittests/config/convertCompilerOptionsFromJson.ts @@ -1,5 +1,8 @@ import * as fakes from "../../_namespaces/fakes"; import * as vfs from "../../_namespaces/vfs"; +import { + jsonToReadableText, +} from "../helpers"; import { baselineParseConfig, } from "./helpers"; @@ -8,7 +11,7 @@ describe("unittests:: config:: convertCompilerOptionsFromJson", () => { function baselineCompilerOptions(subScenario: string, json: any, configFileName: string) { baselineCompilerOptionsJsonText( subScenario, - JSON.stringify(json, undefined, " "), + jsonToReadableText(json), configFileName, /*skipJson*/ false, ); @@ -36,7 +39,7 @@ describe("unittests:: config:: convertCompilerOptionsFromJson", () => { jsonText, configFileName, basePath: "/apath", - baselineParsed: (baseline, parsed) => baseline.push("CompilerOptions::", JSON.stringify(parsed.options, undefined, " ")), + baselineParsed: (baseline, parsed) => baseline.push("CompilerOptions::", jsonToReadableText(parsed.options)), }], skipJson, }); diff --git a/src/testRunner/unittests/config/convertTypeAcquisitionFromJson.ts b/src/testRunner/unittests/config/convertTypeAcquisitionFromJson.ts index a24e5f61b75d0..22d346a714501 100644 --- a/src/testRunner/unittests/config/convertTypeAcquisitionFromJson.ts +++ b/src/testRunner/unittests/config/convertTypeAcquisitionFromJson.ts @@ -1,5 +1,8 @@ import * as fakes from "../../_namespaces/fakes"; import * as vfs from "../../_namespaces/vfs"; +import { + jsonToReadableText, +} from "../helpers"; import { baselineParseConfig, } from "./helpers"; @@ -10,7 +13,7 @@ describe("unittests:: config:: convertTypeAcquisitionFromJson", () => { scenario: "convertTypeAcquisitionFromJson", subScenario, input: () => { - const jsonText = JSON.stringify(json, undefined, " "); + const jsonText = jsonToReadableText(json); return [{ createHost: () => new fakes.ParseConfigHost( @@ -29,7 +32,7 @@ describe("unittests:: config:: convertTypeAcquisitionFromJson", () => { jsonText, configFileName, basePath: "/apath", - baselineParsed: (baseline, parsed) => baseline.push("TypeAcquisition::", JSON.stringify(parsed.typeAcquisition, undefined, " ")), + baselineParsed: (baseline, parsed) => baseline.push("TypeAcquisition::", jsonToReadableText(parsed.typeAcquisition)), }]; }, }); diff --git a/src/testRunner/unittests/config/matchFiles.ts b/src/testRunner/unittests/config/matchFiles.ts index 97481f50dc9de..40fe85fb6ccef 100644 --- a/src/testRunner/unittests/config/matchFiles.ts +++ b/src/testRunner/unittests/config/matchFiles.ts @@ -1,6 +1,9 @@ import * as fakes from "../../_namespaces/fakes"; import * as ts from "../../_namespaces/ts"; import * as vfs from "../../_namespaces/vfs"; +import { + jsonToReadableText, +} from "../helpers"; import { baselineParseConfig, } from "./helpers"; @@ -162,7 +165,7 @@ const caseInsensitiveHostWithSameFileNamesWithDifferentExtensions = new fakes.Pa ); function baselineMatches(subScenario: string, json: any, host: fakes.ParseConfigHost, basePath: string) { - const jsonText = JSON.stringify(json, undefined, " "); + const jsonText = jsonToReadableText(json); baselineParseConfig({ scenario: "matchFiles", subScenario, @@ -176,15 +179,11 @@ function baselineMatches(subScenario: string, json: any, host: fakes.ParseConfig if (parsed.wildcardDirectories) ts.getOwnKeys(parsed.wildcardDirectories).forEach(dir => wildcardDirectories![dir] = `WatchDirectoryFlags.${(ts as any).WatchDirectoryFlags[parsed.wildcardDirectories![dir]]}`); baseline.push( "Result", - JSON.stringify( - { - ...parsed, - errors: undefined, - wildcardDirectories, - }, - undefined, - " ", - ), + jsonToReadableText({ + ...parsed, + errors: undefined, + wildcardDirectories, + }), ); }, }], diff --git a/src/testRunner/unittests/config/tsconfigParsing.ts b/src/testRunner/unittests/config/tsconfigParsing.ts index e0121594605c6..1b050c6a20cff 100644 --- a/src/testRunner/unittests/config/tsconfigParsing.ts +++ b/src/testRunner/unittests/config/tsconfigParsing.ts @@ -2,6 +2,9 @@ import * as fakes from "../../_namespaces/fakes"; import * as Harness from "../../_namespaces/Harness"; import * as ts from "../../_namespaces/ts"; import * as vfs from "../../_namespaces/vfs"; +import { + jsonToReadableText, +} from "../helpers"; import { baselineParseConfig, } from "./helpers"; @@ -20,7 +23,7 @@ describe("unittests:: config:: tsconfigParsing:: parseConfigFileTextToJson", () for (const jsonText of jsonTexts()) { baseline.push("Input::", jsonText); const parsed = ts.parseConfigFileTextToJson("/apath/tsconfig.json", jsonText); - baseline.push("Config::", JSON.stringify(parsed.config, /*replacer*/ undefined, " ")); + baseline.push("Config::", jsonToReadableText(parsed.config)); baseline.push("Errors::"); baseline.push(formatErrors(parsed.error ? [parsed.error] : ts.emptyArray)); baseline.push(""); @@ -232,7 +235,7 @@ describe("unittests:: config:: tsconfigParsing:: parseConfigFileTextToJson", () baseline.push("Initial::", content); const result = ts.parseJsonText("config.json", content); const configJsonObject = ts.convertToObject(result, result.parseDiagnostics); - baseline.push("Result::", JSON.stringify(configJsonObject, undefined, " ")); + baseline.push("Result::", jsonToReadableText(configJsonObject)); baseline.push("Errors::", formatErrors(result.parseDiagnostics)); Harness.Baseline.runBaseline(`config/tsconfigParsing/parse and re-emit tsconfig.json file with diagnostics.js`, baseline.join("\n")); }); @@ -320,7 +323,7 @@ describe("unittests:: config:: tsconfigParsing:: parseConfigFileTextToJson", () }], /*skipJson*/ true); baselinedParsed("generates errors when files is not string", () => [{ - jsonText: JSON.stringify({ + jsonText: jsonToReadableText({ files: [{ compilerOptions: { experimentalDecorators: true, @@ -334,7 +337,7 @@ describe("unittests:: config:: tsconfigParsing:: parseConfigFileTextToJson", () }]); baselinedParsed("generates errors when include is not string", () => [{ - jsonText: JSON.stringify({ + jsonText: jsonToReadableText({ include: [ ["./**/*.ts"], ], @@ -345,7 +348,7 @@ describe("unittests:: config:: tsconfigParsing:: parseConfigFileTextToJson", () }]); baselinedParsed("generates errors when commandline option is in tsconfig", () => [{ - jsonText: JSON.stringify({ + jsonText: jsonToReadableText({ compilerOptions: { help: true, }, @@ -382,7 +385,7 @@ describe("unittests:: config:: tsconfigParsing:: parseConfigFileTextToJson", () baselineWildcards("parses wildcard directories even when parent directories have dots", () => [{ configFileName: "/foo.bar/tsconfig.json", - jsonText: JSON.stringify({ + jsonText: jsonToReadableText({ include: ["src"], }), basePath: "/foo.bar", @@ -390,7 +393,7 @@ describe("unittests:: config:: tsconfigParsing:: parseConfigFileTextToJson", () baselineWildcards("correctly parses wild card directories from implicit glob when two keys differ only in directory seperator", () => [{ configFileName: "/foo.bar/tsconfig.json", - jsonText: JSON.stringify({ + jsonText: jsonToReadableText({ include: ["./", "./**/*.json"], }), basePath: "/foo", diff --git a/src/testRunner/unittests/config/tsconfigParsingWatchOptions.ts b/src/testRunner/unittests/config/tsconfigParsingWatchOptions.ts index 10a6cf35c379d..2df76a14a4083 100644 --- a/src/testRunner/unittests/config/tsconfigParsingWatchOptions.ts +++ b/src/testRunner/unittests/config/tsconfigParsingWatchOptions.ts @@ -1,6 +1,9 @@ import * as fakes from "../../_namespaces/fakes"; import * as ts from "../../_namespaces/ts"; import * as vfs from "../../_namespaces/vfs"; +import { + jsonToReadableText, +} from "../helpers"; import { baselineParseConfig, } from "./helpers"; @@ -18,7 +21,7 @@ describe("unittests:: config:: tsconfigParsingWatchOptions:: parseConfigFileText subScenario, input: () => scenario().map(({ json, additionalFiles, existingWatchOptions }) => { - const jsonText = JSON.stringify(json, undefined, " "); + const jsonText = jsonToReadableText(json); return { createHost: () => new fakes.ParseConfigHost( @@ -39,7 +42,7 @@ describe("unittests:: config:: tsconfigParsingWatchOptions:: parseConfigFileText existingWatchOptions, baselineParsed: (baseline, parsed) => { baseline.push(`Result: WatchOptions::`); - baseline.push(JSON.stringify(parsed.watchOptions, undefined, " ")); + baseline.push(jsonToReadableText(parsed.watchOptions)); }, }; }), @@ -77,7 +80,7 @@ describe("unittests:: config:: tsconfigParsingWatchOptions:: parseConfigFileText }, }, additionalFiles: { - "/base.json": JSON.stringify({ + "/base.json": jsonToReadableText({ watchOptions: { watchFile: "UseFsEventsOnParentDirectory", watchDirectory: "FixedPollingInterval", @@ -90,7 +93,7 @@ describe("unittests:: config:: tsconfigParsingWatchOptions:: parseConfigFileText extends: "./base.json", }, additionalFiles: { - "/base.json": JSON.stringify({ + "/base.json": jsonToReadableText({ watchOptions: { watchFile: "UseFsEventsOnParentDirectory", watchDirectory: "FixedPollingInterval", diff --git a/src/testRunner/unittests/helpers.ts b/src/testRunner/unittests/helpers.ts index b01502e93b8f6..fb5b95a24802f 100644 --- a/src/testRunner/unittests/helpers.ts +++ b/src/testRunner/unittests/helpers.ts @@ -167,3 +167,7 @@ export function updateProgramText(files: readonly NamedSourceText[], fileName: s const file = ts.find(files, f => f.name === fileName)!; file.text = file.text.updateProgram(newProgramText); } + +export function jsonToReadableText(json: any) { + return JSON.stringify(json, undefined, 2); +} diff --git a/src/testRunner/unittests/helpers/baseline.ts b/src/testRunner/unittests/helpers/baseline.ts index 7daec608c0e11..29391ebf4b30a 100644 --- a/src/testRunner/unittests/helpers/baseline.ts +++ b/src/testRunner/unittests/helpers/baseline.ts @@ -1,6 +1,9 @@ import * as fakes from "../../_namespaces/fakes"; import * as Harness from "../../_namespaces/Harness"; import * as ts from "../../_namespaces/ts"; +import { + jsonToReadableText, +} from "../helpers"; import { TscCompileSystem, } from "./tsc"; @@ -54,8 +57,8 @@ export function baselinePrograms(baseline: string[], programs: readonly CommandL function baselineProgram(baseline: string[], [program, builderProgram]: CommandLineProgram, oldProgram: CommandLineProgram | undefined, baselineDependencies: boolean | undefined) { if (program !== oldProgram?.[0]) { const options = program.getCompilerOptions(); - baseline.push(`Program root files: ${JSON.stringify(program.getRootFileNames())}`); - baseline.push(`Program options: ${JSON.stringify(options)}`); + baseline.push(`Program root files: ${jsonToReadableText(program.getRootFileNames())}`); + baseline.push(`Program options: ${jsonToReadableText(options)}`); baseline.push(`Program structureReused: ${(ts as any).StructureIsReused[program.structureIsReused]}`); baseline.push("Program files::"); for (const file of program.getSourceFiles()) { @@ -275,7 +278,7 @@ function generateBuildInfoProgramBaseline(sys: ts.System, buildInfoPath: string, size: ts.getBuildInfoText({ ...buildInfo, version }).length, }; // For now its just JSON.stringify - sys.writeFile(`${buildInfoPath}.readable.baseline.txt`, JSON.stringify(result, /*replacer*/ undefined, 2)); + sys.writeFile(`${buildInfoPath}.readable.baseline.txt`, jsonToReadableText(result)); function toFileName(fileId: ts.ProgramBuildInfoFileId) { return buildInfo.program!.fileNames[fileId - 1]; diff --git a/src/testRunner/unittests/helpers/contents.ts b/src/testRunner/unittests/helpers/contents.ts index d31379328ee31..95ad33c060c47 100644 --- a/src/testRunner/unittests/helpers/contents.ts +++ b/src/testRunner/unittests/helpers/contents.ts @@ -25,3 +25,7 @@ interface Symbol { export interface FsContents { [path: string]: string; } + +export function libPath(forLib: string) { + return `${ts.getDirectoryPath(libFile.path)}/lib.${forLib}.d.ts`; +} diff --git a/src/testRunner/unittests/helpers/demoProjectReferences.ts b/src/testRunner/unittests/helpers/demoProjectReferences.ts new file mode 100644 index 0000000000000..d6bf1741b2e82 --- /dev/null +++ b/src/testRunner/unittests/helpers/demoProjectReferences.ts @@ -0,0 +1,154 @@ +import { + dedent, +} from "../../_namespaces/Utils"; +import { + jsonToReadableText, +} from "../helpers"; +import { + FsContents, + libContent, +} from "./contents"; +import { + loadProjectFromFiles, +} from "./vfs"; +import { + createWatchedSystem, + libFile, +} from "./virtualFileSystemWithWatch"; + +export function getFsContentsForDemoProjectReferencesCoreConfig(additional?: object) { + return jsonToReadableText({ + extends: "../tsconfig-base.json", + compilerOptions: { + outDir: "../lib/core", + rootDir: ".", + }, + ...additional, + }); +} +export function getFsContentsForDemoProjectReferences(): FsContents { + return { + "/user/username/projects/demo/animals/animal.ts": dedent` + export type Size = "small" | "medium" | "large"; + export default interface Animal { + size: Size; + } + `, + "/user/username/projects/demo/animals/dog.ts": dedent` + import Animal from '.'; + import { makeRandomName } from '../core/utilities'; + + export interface Dog extends Animal { + woof(): void; + name: string; + } + + export function createDog(): Dog { + return ({ + size: "medium", + woof: function(this: Dog) { + console.log(\`\${ this.name } says "Woof"!\`); + }, + name: makeRandomName() + }); + } + `, + "/user/username/projects/demo/animals/index.ts": dedent` + import Animal from './animal'; + + export default Animal; + import { createDog, Dog } from './dog'; + export { createDog, Dog }; + `, + "/user/username/projects/demo/animals/tsconfig.json": jsonToReadableText({ + extends: "../tsconfig-base.json", + compilerOptions: { + outDir: "../lib/animals", + rootDir: ".", + }, + references: [ + { path: "../core" }, + ], + }), + "/user/username/projects/demo/core/utilities.ts": dedent` + + export function makeRandomName() { + return "Bob!?! "; + } + + export function lastElementOf(arr: T[]): T | undefined { + if (arr.length === 0) return undefined; + return arr[arr.length - 1]; + } + `, + "/user/username/projects/demo/core/tsconfig.json": getFsContentsForDemoProjectReferencesCoreConfig(), + "/user/username/projects/demo/zoo/zoo.ts": dedent` + import { Dog, createDog } from '../animals/index'; + + export function createZoo(): Array { + return [ + createDog() + ]; + } + `, + "/user/username/projects/demo/zoo/tsconfig.json": jsonToReadableText({ + extends: "../tsconfig-base.json", + compilerOptions: { + outDir: "../lib/zoo", + rootDir: ".", + }, + references: [ + { + path: "../animals", + }, + ], + }), + "/user/username/projects/demo/tsconfig-base.json": jsonToReadableText({ + compilerOptions: { + declaration: true, + target: "es5", + module: "commonjs", + strict: true, + noUnusedLocals: true, + noUnusedParameters: true, + noImplicitReturns: true, + noFallthroughCasesInSwitch: true, + composite: true, + }, + }), + "/user/username/projects/demo/tsconfig.json": jsonToReadableText({ + files: [], + references: [ + { + path: "./core", + }, + { + path: "./animals", + }, + { + path: "./zoo", + }, + ], + }), + [libFile.path]: libContent, + }; +} + +export function getFsForDemoProjectReferences() { + return loadProjectFromFiles( + getFsContentsForDemoProjectReferences(), + { + cwd: "/user/username/projects/demo", + executingFilePath: libFile.path, + }, + ); +} + +export function getSysForDemoProjectReferences() { + return createWatchedSystem( + getFsContentsForDemoProjectReferences(), + { + currentDirectory: "/user/username/projects/demo", + }, + ); +} diff --git a/src/testRunner/unittests/helpers/extends.ts b/src/testRunner/unittests/helpers/extends.ts index f4eccbe357312..88768c4cea02f 100644 --- a/src/testRunner/unittests/helpers/extends.ts +++ b/src/testRunner/unittests/helpers/extends.ts @@ -1,6 +1,9 @@ import { dedent, } from "../../_namespaces/Utils"; +import { + jsonToReadableText, +} from "../helpers"; import { createServerHost, createWatchedSystem, @@ -10,20 +13,20 @@ import { export function getSymlinkedExtendsSys(forTsserver?: true): TestServerHost { return (!forTsserver ? createWatchedSystem : createServerHost)({ - "/users/user/projects/myconfigs/node_modules/@something/tsconfig-node/tsconfig.json": JSON.stringify({ + "/users/user/projects/myconfigs/node_modules/@something/tsconfig-node/tsconfig.json": jsonToReadableText({ extends: "@something/tsconfig-base/tsconfig.json", compilerOptions: { removeComments: true, }, }), - "/users/user/projects/myconfigs/node_modules/@something/tsconfig-base/tsconfig.json": JSON.stringify({ + "/users/user/projects/myconfigs/node_modules/@something/tsconfig-base/tsconfig.json": jsonToReadableText({ compilerOptions: { composite: true }, }), "/users/user/projects/myproject/src/index.ts": dedent` // some comment export const x = 10; `, - "/users/user/projects/myproject/src/tsconfig.json": JSON.stringify({ + "/users/user/projects/myproject/src/tsconfig.json": jsonToReadableText({ extends: "@something/tsconfig-node/tsconfig.json", }), "/users/user/projects/myproject/node_modules/@something/tsconfig-node": { diff --git a/src/testRunner/unittests/helpers/libraryResolution.ts b/src/testRunner/unittests/helpers/libraryResolution.ts index d435a4c2892ab..983acc1232537 100644 --- a/src/testRunner/unittests/helpers/libraryResolution.ts +++ b/src/testRunner/unittests/helpers/libraryResolution.ts @@ -1,6 +1,9 @@ import { dedent, } from "../../_namespaces/Utils"; +import { + jsonToReadableText, +} from "../helpers"; import { FsContents, libContent, @@ -24,23 +27,23 @@ function getFsContentsForLibResolution(libRedirection?: boolean): FsContents { /// /// `, - "/home/src/projects/project1/tsconfig.json": JSON.stringify({ + "/home/src/projects/project1/tsconfig.json": jsonToReadableText({ compilerOptions: { composite: true, typeRoots: ["./typeroot1"], lib: ["es5", "dom"], traceResolution: true }, }), "/home/src/projects/project1/typeroot1/sometype/index.d.ts": `export type TheNum = "type1";`, "/home/src/projects/project2/utils.d.ts": `export const y = 10;`, "/home/src/projects/project2/index.ts": `export const y = 10`, - "/home/src/projects/project2/tsconfig.json": JSON.stringify({ + "/home/src/projects/project2/tsconfig.json": jsonToReadableText({ compilerOptions: { composite: true, lib: ["es5", "dom"], traceResolution: true }, }), "/home/src/projects/project3/utils.d.ts": `export const y = 10;`, "/home/src/projects/project3/index.ts": `export const z = 10`, - "/home/src/projects/project3/tsconfig.json": JSON.stringify({ + "/home/src/projects/project3/tsconfig.json": jsonToReadableText({ compilerOptions: { composite: true, lib: ["es5", "dom"], traceResolution: true }, }), "/home/src/projects/project4/utils.d.ts": `export const y = 10;`, "/home/src/projects/project4/index.ts": `export const z = 10`, - "/home/src/projects/project4/tsconfig.json": JSON.stringify({ + "/home/src/projects/project4/tsconfig.json": jsonToReadableText({ compilerOptions: { composite: true, lib: ["esnext", "dom", "webworker"], traceResolution: true }, }), "/home/src/lib/lib.es5.d.ts": libContent, @@ -79,7 +82,7 @@ export function getSysForLibResolution(libRedirection?: true) { ); } -export function getServerHosForLibResolution(libRedirection?: true) { +export function getServerHostForLibResolution(libRedirection?: true) { return createServerHost( getFsContentsForLibResolution(libRedirection), { diff --git a/src/testRunner/unittests/helpers/noEmitOnError.ts b/src/testRunner/unittests/helpers/noEmitOnError.ts new file mode 100644 index 0000000000000..3144319367514 --- /dev/null +++ b/src/testRunner/unittests/helpers/noEmitOnError.ts @@ -0,0 +1,63 @@ +import { + dedent, +} from "../../_namespaces/Utils"; +import { + jsonToReadableText, +} from "../helpers"; +import { + FsContents, + libContent, +} from "./contents"; +import { + loadProjectFromFiles, +} from "./vfs"; +import { + createWatchedSystem, + libFile, +} from "./virtualFileSystemWithWatch"; + +export function getFsContentsForNoEmitOnError(): FsContents { + return { + "/user/username/projects/noEmitOnError/tsconfig.json": jsonToReadableText({ + compilerOptions: { + outDir: "./dev-build", + noEmitOnError: true, + }, + }), + "/user/username/projects/noEmitOnError/shared/types/db.ts": dedent` + export interface A { + name: string; + } + `, + "/user/username/projects/noEmitOnError/src/main.ts": dedent` + import { A } from "../shared/types/db"; + const a = { + lastName: 'sdsd' + ; + `, + "/user/username/projects/noEmitOnError/src/other.ts": dedent` + console.log("hi"); + export { } + `, + [libFile.path]: libContent, + }; +} + +export function getFsForNoEmitOnError() { + return loadProjectFromFiles( + getFsContentsForNoEmitOnError(), + { + cwd: "/user/username/projects/noEmitOnError", + executingFilePath: libFile.path, + }, + ); +} + +export function getSysForNoEmitOnError() { + return createWatchedSystem( + getFsContentsForNoEmitOnError(), + { + currentDirectory: "/user/username/projects/noEmitOnError", + }, + ); +} diff --git a/src/testRunner/unittests/helpers/node10Result.ts b/src/testRunner/unittests/helpers/node10Result.ts index 7ab2f528b423d..a904c52d9ecfa 100644 --- a/src/testRunner/unittests/helpers/node10Result.ts +++ b/src/testRunner/unittests/helpers/node10Result.ts @@ -1,6 +1,9 @@ import { dedent, } from "../../_namespaces/Utils"; +import { + jsonToReadableText, +} from "../helpers"; import { FsContents, } from "./contents"; @@ -9,41 +12,33 @@ import { } from "./virtualFileSystemWithWatch"; export function getFsConentsForNode10ResultAtTypesPackageJson(packageName: string, addTypesCondition: boolean) { - return JSON.stringify( - { - name: `@types/${packageName}`, - version: "1.0.0", - types: "index.d.ts", - exports: { - ".": { - ...(addTypesCondition ? { types: "./index.d.ts" } : {}), - require: "./index.d.ts", - }, + return jsonToReadableText({ + name: `@types/${packageName}`, + version: "1.0.0", + types: "index.d.ts", + exports: { + ".": { + ...(addTypesCondition ? { types: "./index.d.ts" } : {}), + require: "./index.d.ts", }, }, - undefined, - " ", - ); + }); } export function getFsContentsForNode10ResultPackageJson(packageName: string, addTypes: boolean, addTypesCondition: boolean) { - return JSON.stringify( - { - name: packageName, - version: "1.0.0", - main: "index.js", - ...(addTypes ? { types: "index.d.ts" } : {}), - exports: { - ".": { - ...(addTypesCondition ? { types: "./index.d.ts" } : {}), - import: "./index.mjs", - require: "./index.js", - }, + return jsonToReadableText({ + name: packageName, + version: "1.0.0", + main: "index.js", + ...(addTypes ? { types: "index.d.ts" } : {}), + exports: { + ".": { + ...(addTypesCondition ? { types: "./index.d.ts" } : {}), + import: "./index.mjs", + require: "./index.js", }, }, - undefined, - " ", - ); + }); } export function getFsContentsForNode10ResultDts(packageName: string) { @@ -84,7 +79,7 @@ export function getFsContentsForNode10Result(): FsContents { import { foo2 } from "foo2"; import { bar2 } from "bar2"; `, - "/home/src/projects/project/tsconfig.json": JSON.stringify({ + "/home/src/projects/project/tsconfig.json": jsonToReadableText({ compilerOptions: { moduleResolution: "node16", traceResolution: true, diff --git a/src/testRunner/unittests/helpers/sampleProjectReferences.ts b/src/testRunner/unittests/helpers/sampleProjectReferences.ts new file mode 100644 index 0000000000000..c4a1623f9fd54 --- /dev/null +++ b/src/testRunner/unittests/helpers/sampleProjectReferences.ts @@ -0,0 +1,112 @@ +import { + dedent, +} from "../../_namespaces/Utils"; +import { + jsonToReadableText, +} from "../helpers"; +import { + FsContents, +} from "./contents"; +import { + loadProjectFromFiles, +} from "./vfs"; +import { + createServerHost, + createWatchedSystem, + libFile, +} from "./virtualFileSystemWithWatch"; + +export function getFsContentsForSampleProjectReferencesLogicConfig() { + return jsonToReadableText({ + compilerOptions: { + composite: true, + declaration: true, + sourceMap: true, + forceConsistentCasingInFileNames: true, + skipDefaultLibCheck: true, + }, + references: [ + { path: "../core" }, + ], + }); +} +export function getFsContentsForSampleProjectReferences(): FsContents { + return { + [libFile.path]: libFile.content, + "/user/username/projects/sample1/core/tsconfig.json": jsonToReadableText({ + compilerOptions: { + composite: true, + declaration: true, + declarationMap: true, + skipDefaultLibCheck: true, + }, + }), + "/user/username/projects/sample1/core/index.ts": dedent` + export const someString: string = "HELLO WORLD"; + export function leftPad(s: string, n: number) { return s + n; } + export function multiply(a: number, b: number) { return a * b; } + `, + "/user/username/projects/sample1/core/some_decl.d.ts": `declare const dts: any;`, + "/user/username/projects/sample1/core/anotherModule.ts": `export const World = "hello";`, + "/user/username/projects/sample1/logic/tsconfig.json": getFsContentsForSampleProjectReferencesLogicConfig(), + "/user/username/projects/sample1/logic/index.ts": dedent` + import * as c from '../core/index'; + export function getSecondsInDay() { + return c.multiply(10, 15); + } + import * as mod from '../core/anotherModule'; + export const m = mod; + `, + "/user/username/projects/sample1/tests/tsconfig.json": jsonToReadableText({ + references: [ + { path: "../core" }, + { path: "../logic" }, + ], + files: ["index.ts"], + compilerOptions: { + composite: true, + declaration: true, + forceConsistentCasingInFileNames: true, + skipDefaultLibCheck: true, + }, + }), + "/user/username/projects/sample1/tests/index.ts": dedent` + import * as c from '../core/index'; + import * as logic from '../logic/index'; + + c.leftPad("", 10); + logic.getSecondsInDay(); + + import * as mod from '../core/anotherModule'; + export const m = mod; + `, + }; +} + +export function getFsForSampleProjectReferences() { + return loadProjectFromFiles( + getFsContentsForSampleProjectReferences(), + { + cwd: "/user/username/projects/sample1", + executingFilePath: libFile.path, + }, + ); +} + +export function getSysForSampleProjectReferences() { + return createWatchedSystem( + getFsContentsForSampleProjectReferences(), + { + currentDirectory: "/user/username/projects/sample1", + }, + ); +} + +export function getServerHostForSampleProjectReferences() { + return createServerHost( + getFsContentsForSampleProjectReferences(), + { + currentDirectory: "/user/username/projects/sample1", + }, + ); +} diff --git a/src/testRunner/unittests/helpers/solutionBuilder.ts b/src/testRunner/unittests/helpers/solutionBuilder.ts index da77ca79ed0b3..f47871c8c35ca 100644 --- a/src/testRunner/unittests/helpers/solutionBuilder.ts +++ b/src/testRunner/unittests/helpers/solutionBuilder.ts @@ -1,5 +1,8 @@ import * as fakes from "../../_namespaces/fakes"; import * as ts from "../../_namespaces/ts"; +import { + jsonToReadableText, +} from "../helpers"; import { commandLineCallbacks, } from "./baseline"; @@ -9,11 +12,7 @@ import { } from "./tsc"; import { changeToHostTrackingWrittenFiles, - createWatchedSystem, - FileOrFolderOrSymLink, - FileOrFolderOrSymLinkMap, TestServerHost, - TestServerHostCreationParameters, } from "./virtualFileSystemWithWatch"; export function createSolutionBuilderHostForBaseline( @@ -37,7 +36,7 @@ export function createSolutionBuilder(system: TestServerHost, rootNames: readonl export function ensureErrorFreeBuild(host: TestServerHost, rootNames: readonly string[]) { // ts build should succeed solutionBuildWithBaseline(host, rootNames); - assert.equal(host.getOutput().length, 0, JSON.stringify(host.getOutput(), /*replacer*/ undefined, " ")); + assert.equal(host.getOutput().length, 0, jsonToReadableText(host.getOutput())); } export function solutionBuildWithBaseline(sys: TestServerHost, solutionRoots: readonly string[], originalRead?: TestServerHost["readFile"]) { @@ -59,7 +58,3 @@ export function solutionBuildWithBaseline(sys: TestServerHost, solutionRoots: re sys.writtenFiles = undefined; return sys; } - -export function createSystemWithSolutionBuild(solutionRoots: readonly string[], files: FileOrFolderOrSymLinkMap | readonly FileOrFolderOrSymLink[], params?: TestServerHostCreationParameters) { - return solutionBuildWithBaseline(createWatchedSystem(files, params), solutionRoots); -} diff --git a/src/testRunner/unittests/helpers/transitiveReferences.ts b/src/testRunner/unittests/helpers/transitiveReferences.ts new file mode 100644 index 0000000000000..291fc11b56216 --- /dev/null +++ b/src/testRunner/unittests/helpers/transitiveReferences.ts @@ -0,0 +1,73 @@ +import { + dedent, +} from "../../_namespaces/Utils"; +import { + jsonToReadableText, +} from "../helpers"; +import { + FsContents, + libContent, +} from "./contents"; +import { + libFile, +} from "./virtualFileSystemWithWatch"; + +export function getFsContentsForTransitiveReferencesRefsAdts() { + return dedent` + export class X {} + export class A {} + `; +} + +export function getFsContentsForTransitiveReferencesBConfig() { + return jsonToReadableText({ + compilerOptions: { + composite: true, + baseUrl: "./", + paths: { + "@ref/*": ["./*"], + }, + }, + files: ["b.ts"], + references: [{ path: "tsconfig.a.json" }], + }); +} + +export function getFsContentsForTransitiveReferencesAConfig() { + return jsonToReadableText({ + compilerOptions: { composite: true }, + files: ["a.ts"], + }); +} + +export function getFsContentsForTransitiveReferences(): FsContents { + return { + "/user/username/projects/transitiveReferences/refs/a.d.ts": getFsContentsForTransitiveReferencesRefsAdts(), + "/user/username/projects/transitiveReferences/a.ts": dedent` + export class A {} + `, + "/user/username/projects/transitiveReferences/b.ts": dedent` + import {A} from '@ref/a'; + export const b = new A(); + `, + "/user/username/projects/transitiveReferences/c.ts": dedent` + import {b} from './b'; + import {X} from "@ref/a"; + b; + X; + `, + "/user/username/projects/transitiveReferences/tsconfig.a.json": getFsContentsForTransitiveReferencesAConfig(), + "/user/username/projects/transitiveReferences/tsconfig.b.json": getFsContentsForTransitiveReferencesBConfig(), + "/user/username/projects/transitiveReferences/tsconfig.c.json": jsonToReadableText({ + files: ["c.ts"], + compilerOptions: { + baseUrl: "./", + paths: { + "@ref/*": ["./refs/*"], + }, + }, + references: [{ path: "tsconfig.b.json" }], + }), + [libFile.path]: libContent, + }; +} diff --git a/src/testRunner/unittests/helpers/tsc.ts b/src/testRunner/unittests/helpers/tsc.ts index 46b2a754c8d4d..5a06b49502de4 100644 --- a/src/testRunner/unittests/helpers/tsc.ts +++ b/src/testRunner/unittests/helpers/tsc.ts @@ -2,6 +2,9 @@ import * as fakes from "../../_namespaces/fakes"; import * as Harness from "../../_namespaces/Harness"; import * as ts from "../../_namespaces/ts"; import * as vfs from "../../_namespaces/vfs"; +import { + jsonToReadableText, +} from "../helpers"; import { baselinePrograms, CommandLineCallbacks, @@ -136,13 +139,15 @@ export function testTscCompile(input: TestTscCompile) { makeSystemReadyForBaseline(sys); actualReadFileMap = {}; const originalReadFile = sys.readFile; - sys.readFile = path => { - // Dont record libs - if (path.startsWith("/src/")) { - actualReadFileMap![path] = (ts.getProperty(actualReadFileMap!, path) || 0) + 1; - } - return originalReadFile.call(sys, path); - }; + if (input.baselineReadFileCalls) { + sys.readFile = path => { + // Dont record libs + if (!path.startsWith(ts.getDirectoryPath(sys.getExecutingFilePath()))) { + actualReadFileMap![path] = (ts.getProperty(actualReadFileMap!, path) || 0) + 1; + } + return originalReadFile.call(sys, path); + }; + } const result = commandLineCallbacks(sys, originalReadFile); ts.executeCommandLine( @@ -164,7 +169,7 @@ export function testTscCompile(input: TestTscCompile) { sys.write(baseline.join("\n")); } if (baselineReadFileCalls) { - sys.write(`readFiles:: ${JSON.stringify(actualReadFileMap, /*replacer*/ undefined, " ")} `); + sys.write(`readFiles:: ${jsonToReadableText(actualReadFileMap)} `); } if (baselineSourceMap) generateSourceMapBaselineFiles(sys); actualReadFileMap = undefined; @@ -302,9 +307,9 @@ function verifyTscEditDiscrepancies({ if (!incrementalFileInfo || !cleanFileInfo || incrementalFileInfo.signature !== cleanFileInfo.signature && (!dtsForKey || incrementalFileInfo.signature !== dtsForKey.signature)) { return [ `Incremental signature is neither dts signature nor file version for File:: ${key}`, - `Incremental:: ${JSON.stringify(incrementalFileInfo, /*replacer*/ undefined, 2)}`, - `Clean:: ${JSON.stringify(cleanFileInfo, /*replacer*/ undefined, 2)}`, - `Dts Signature:: $${JSON.stringify(dtsForKey?.signature)}`, + `Incremental:: ${jsonToReadableText(incrementalFileInfo)}`, + `Clean:: ${jsonToReadableText(cleanFileInfo)}`, + `Dts Signature:: $${jsonToReadableText(dtsForKey?.signature)}`, ]; } }, @@ -324,9 +329,9 @@ function verifyTscEditDiscrepancies({ ) { return [ `Incremental Reference set is neither from dts nor files reference map for File:: ${key}::`, - `Incremental:: ${JSON.stringify(incrementalReferenceSet, /*replacer*/ undefined, 2)}`, - `Clean:: ${JSON.stringify(cleanReferenceSet, /*replacer*/ undefined, 2)}`, - `DtsExportsMap:: ${JSON.stringify(dtsForKey?.exportedModules, /*replacer*/ undefined, 2)}`, + `Incremental:: ${jsonToReadableText(incrementalReferenceSet)}`, + `Clean:: ${jsonToReadableText(cleanReferenceSet)}`, + `DtsExportsMap:: ${jsonToReadableText(dtsForKey?.exportedModules)}`, ]; } }, @@ -405,9 +410,9 @@ function verifyTscEditDiscrepancies({ addBaseline( message, "CleanBuild:", - ts.isString(expected) ? expected : JSON.stringify(expected), + ts.isString(expected) ? expected : jsonToReadableText(expected), "IncrementalBuild:", - ts.isString(actual) ? actual : JSON.stringify(actual), + ts.isString(actual) ? actual : jsonToReadableText(actual), ); } @@ -437,25 +442,21 @@ function getBuildInfoForIncrementalCorrectnessCheck(text: string | undefined): { } } return { - buildInfo: JSON.stringify( - { - ...readableBuildInfo, - program: readableBuildInfo.program && { - ...readableBuildInfo.program, - fileNames: undefined, - fileNamesList: undefined, - fileInfos: sanitizedFileInfos, - // Ignore noEmit since that shouldnt be reason to emit the tsbuild info and presence of it in the buildinfo file does not matter - options: { ...readableBuildInfo.program.options, noEmit: undefined }, - exportedModulesMap: undefined, - affectedFilesPendingEmit: undefined, - latestChangedDtsFile: readableBuildInfo.program.latestChangedDtsFile ? "FakeFileName" : undefined, - }, - size: undefined, // Size doesnt need to be equal + buildInfo: jsonToReadableText({ + ...readableBuildInfo, + program: readableBuildInfo.program && { + ...readableBuildInfo.program, + fileNames: undefined, + fileNamesList: undefined, + fileInfos: sanitizedFileInfos, + // Ignore noEmit since that shouldnt be reason to emit the tsbuild info and presence of it in the buildinfo file does not matter + options: { ...readableBuildInfo.program.options, noEmit: undefined }, + exportedModulesMap: undefined, + affectedFilesPendingEmit: undefined, + latestChangedDtsFile: readableBuildInfo.program.latestChangedDtsFile ? "FakeFileName" : undefined, }, - /*replacer*/ undefined, - 2, - ), + size: undefined, // Size doesnt need to be equal + }), readableBuildInfo, }; } diff --git a/src/testRunner/unittests/helpers/typingsInstaller.ts b/src/testRunner/unittests/helpers/typingsInstaller.ts index a70d9ec7b6e8f..025ebe4b84ce2 100644 --- a/src/testRunner/unittests/helpers/typingsInstaller.ts +++ b/src/testRunner/unittests/helpers/typingsInstaller.ts @@ -9,6 +9,9 @@ import { ActionWatchTypingLocations, stringifyIndented, } from "../../_namespaces/ts.server"; +import { + jsonToReadableText, +} from "../helpers"; import { patchHostTimeouts, TestSessionAndServiceHost, @@ -93,16 +96,13 @@ function getTypesRegistryFileLocation(globalTypingsCacheLocation: string): strin return ts.combinePaths(ts.normalizeSlashes(globalTypingsCacheLocation), `node_modules/${typesRegistryPackageName}/index.json`); } +export interface FileWithPackageName extends File { + package: string; +} export type InstallActionThrowingError = string; export type InstallActionWithTypingFiles = [installedTypings: string[] | string, typingFiles: File[]]; -export type CustomInstallAction = ( - installer: TestTypingsInstallerWorker, - requestId: number, - packageNames: string[], - cb: ts.server.typingsInstaller.RequestCompletedAction, -) => void; - -export type InstallAction = InstallActionThrowingError | InstallActionWithTypingFiles | CustomInstallAction; +export type InstallActionWithFilteredTypings = [typingFiles: FileWithPackageName[]]; +export type InstallAction = InstallActionThrowingError | InstallActionWithTypingFiles | InstallActionWithFilteredTypings; export class TestTypingsInstallerWorker extends ts.server.typingsInstaller.TypingsInstaller { readonly typesRegistry: Map>; protected projectService!: ts.server.ProjectService; @@ -139,17 +139,13 @@ export class TestTypingsInstallerWorker extends ts.server.typingsInstaller.Typin } installTypingHost.ensureFileOrFolder({ path: getTypesRegistryFileLocation(globalTypingsCacheLocation), - content: JSON.stringify( - createTypesRegistryFileContent( - typesRegistry ? - ts.isString(typesRegistry) ? - [typesRegistry] : - typesRegistry : - ts.emptyArray, - ), - undefined, - " ", - ), + content: jsonToReadableText(createTypesRegistryFileContent( + typesRegistry ? + ts.isString(typesRegistry) ? + [typesRegistry] : + typesRegistry : + ts.emptyArray, + )), }); if (this.log.isEnabled()) { this.log.writeLine(`TI:: Updated ${typesRegistryPackageName} npm package`); @@ -167,7 +163,7 @@ export class TestTypingsInstallerWorker extends ts.server.typingsInstaller.Typin this.postExecActions = []; for (const action of actionsToRun) { if (this.log.isEnabled()) { - this.log.writeLine(`#${action.requestId} with arguments'${JSON.stringify(action.packageNames)}':: ${action.success}`); + this.log.writeLine(`#${action.requestId} with arguments'${jsonToReadableText(action.packageNames)}':: ${action.success}`); } action.callback(action.success); } @@ -183,7 +179,7 @@ export class TestTypingsInstallerWorker extends ts.server.typingsInstaller.Typin installWorker(requestId: number, packageNames: string[], _cwd: string, cb: ts.server.typingsInstaller.RequestCompletedAction): void { if (this.log.isEnabled()) { - this.log.writeLine(`#${requestId} with arguments'${JSON.stringify(packageNames)}'.`); + this.log.writeLine(`#${requestId} with arguments'${jsonToReadableText(packageNames)}'.`); } if (!this.installAction) { this.addPostExecAction("success", requestId, packageNames, cb); @@ -191,7 +187,7 @@ export class TestTypingsInstallerWorker extends ts.server.typingsInstaller.Typin else if (ts.isString(this.installAction)) { assert(false, this.installAction); } - else if (ts.isArray(this.installAction)) { + else if (this.installAction.length === 2) { this.executeInstallWithTypingFiles( requestId, packageNames, @@ -201,7 +197,14 @@ export class TestTypingsInstallerWorker extends ts.server.typingsInstaller.Typin ); } else { - this.installAction(this, requestId, packageNames, cb); + const typingFiles = this.installAction[0].filter(f => packageNames.includes(ts.server.typingsInstaller.typingsName(f.package))); + this.executeInstallWithTypingFiles( + requestId, + packageNames, + typingFiles.map(f => f.package), + typingFiles, + cb, + ); } } @@ -305,7 +308,7 @@ function createNpmPackageJsonString(installedTypings: string[]): string { for (const typing of installedTypings) { dependencies[typing] = "1.0.0"; } - return JSON.stringify({ dependencies }); + return jsonToReadableText({ dependencies }); } function createTypesRegistryFileContent(list: readonly string[]): TypesRegistryFile { const versionMap = { diff --git a/src/testRunner/unittests/helpers/vfs.ts b/src/testRunner/unittests/helpers/vfs.ts index 31ef31e8b0948..feb2a973f0974 100644 --- a/src/testRunner/unittests/helpers/vfs.ts +++ b/src/testRunner/unittests/helpers/vfs.ts @@ -1,9 +1,7 @@ -import * as Harness from "../../_namespaces/Harness"; import { getDirectoryPath, } from "../../_namespaces/ts"; import * as vfs from "../../_namespaces/vfs"; -import * as vpath from "../../_namespaces/vpath"; import { libContent, } from "./contents"; @@ -21,19 +19,6 @@ function valueOfFsOptions(options: FsOptionsOrLibContentsToAppend | undefined, k options?.[key]; } -/** - * Load project from disk into /src folder - */ -export function loadProjectFromDisk( - root: string, - options?: FsOptionsOrLibContentsToAppend, -): vfs.FileSystem { - const resolver = vfs.createResolver(Harness.IO); - return loadProjectFromFiles({ - ["/src"]: new vfs.Mount(vpath.resolve(Harness.IO.getWorkspaceRoot(), root), resolver), - }, options); -} - /** * All the files must be in /src */ diff --git a/src/testRunner/unittests/helpers/virtualFileSystemWithWatch.ts b/src/testRunner/unittests/helpers/virtualFileSystemWithWatch.ts index b60df153f15e4..3ec2eaac63b54 100644 --- a/src/testRunner/unittests/helpers/virtualFileSystemWithWatch.ts +++ b/src/testRunner/unittests/helpers/virtualFileSystemWithWatch.ts @@ -1,7 +1,6 @@ import { createWatchUtils, } from "../../../harness/watchUtils"; -import * as Harness from "../../_namespaces/Harness"; import { clear, clone, @@ -1110,14 +1109,3 @@ export function changeToHostTrackingWrittenFiles(inputHost: TestServerHost) { }; return host; } - -export function getTsBuildProjectFilePath(project: string, file: string) { - return `/user/username/projects/${project}/${file}`; -} - -export function getTsBuildProjectFile(project: string, file: string): File { - return { - path: getTsBuildProjectFilePath(project, file), - content: Harness.IO.readFile(`${Harness.IO.getWorkspaceRoot()}/tests/projects/${project}/${file}`)!, - }; -} diff --git a/src/testRunner/unittests/moduleResolution.ts b/src/testRunner/unittests/moduleResolution.ts index 1d349555399fb..f4afa5184efad 100644 --- a/src/testRunner/unittests/moduleResolution.ts +++ b/src/testRunner/unittests/moduleResolution.ts @@ -1,5 +1,8 @@ import * as Harness from "../_namespaces/Harness"; import * as ts from "../_namespaces/ts"; +import { + jsonToReadableText, +} from "./helpers"; interface File { name: string; @@ -84,7 +87,7 @@ describe("unittests:: moduleResolution:: Node module resolution - relative paths const moduleFile = { name: moduleFileNameNoExt + ext }; baselines.push(`Resolving "${moduleName}" from ${containingFile.name} when module has extension: ${ext}${hasDirectoryExists ? "" : " with host that doesnt have directoryExists"}`); const resolution = ts.nodeModuleNameResolver(moduleName, containingFile.name, {}, createModuleResolutionHost(baselines, hasDirectoryExists, containingFile, moduleFile)); - baselines.push(`Resolution:: ${JSON.stringify(resolution, /*replacer*/ undefined, 2)}`); + baselines.push(`Resolution:: ${jsonToReadableText(resolution)}`); baselines.push(""); } } @@ -104,11 +107,11 @@ describe("unittests:: moduleResolution:: Node module resolution - relative paths function test(hasDirectoryExists: boolean) { const containingFile = { name: containingFileName }; - const packageJson = { name: packageJsonFileName, content: JSON.stringify({ typings: fieldRef }) }; + const packageJson = { name: packageJsonFileName, content: jsonToReadableText({ typings: fieldRef }) }; const moduleFile = { name: moduleFileName }; baselines.push(`Resolving "${moduleName}" from ${containingFile.name} with typings: ${fieldRef}${hasDirectoryExists ? "" : " with host that doesnt have directoryExists"}`); const resolution = ts.nodeModuleNameResolver(moduleName, containingFile.name, {}, createModuleResolutionHost(baselines, hasDirectoryExists, containingFile, packageJson, moduleFile)); - baselines.push(`Resolution:: ${JSON.stringify(resolution, /*replacer*/ undefined, 2)}`); + baselines.push(`Resolution:: ${jsonToReadableText(resolution)}`); baselines.push(""); } } @@ -128,15 +131,15 @@ describe("unittests:: moduleResolution:: Node module resolution - relative paths test(/*hasDirectoryExists*/ false); function test(hasDirectoryExists: boolean) { const containingFile = { name: "/a/b.ts" }; - const packageJson = { name: "/node_modules/b/package.json", content: JSON.stringify({ typings }) }; + const packageJson = { name: "/node_modules/b/package.json", content: jsonToReadableText({ typings }) }; const moduleFile = { name: "/a/b.d.ts" }; const indexPath = "/node_modules/b/index.d.ts"; const indexFile = { name: indexPath }; - baselines.push(`Resolving "b" from ${containingFile.name} with typings: ${JSON.stringify(typings)}${hasDirectoryExists ? "" : " with host that doesnt have directoryExists"}`); + baselines.push(`Resolving "b" from ${containingFile.name} with typings: ${jsonToReadableText(typings)}${hasDirectoryExists ? "" : " with host that doesnt have directoryExists"}`); const resolution = ts.nodeModuleNameResolver("b", containingFile.name, {}, createModuleResolutionHost(baselines, hasDirectoryExists, containingFile, packageJson, moduleFile, indexFile)); - baselines.push(`Resolution:: ${JSON.stringify(resolution, /*replacer*/ undefined, 2)}`); + baselines.push(`Resolution:: ${jsonToReadableText(resolution)}`); baselines.push(""); } } @@ -149,11 +152,11 @@ describe("unittests:: moduleResolution:: Node module resolution - relative paths function test(hasDirectoryExists: boolean) { const containingFile = { name: "/a/b/c.ts" }; - const packageJson = { name: "/a/b/foo/package.json", content: JSON.stringify({ main: "/c/d" }) }; + const packageJson = { name: "/a/b/foo/package.json", content: jsonToReadableText({ main: "/c/d" }) }; const indexFile = { name: "/a/b/foo/index.d.ts" }; baselines.push(`Resolving "./foo" from ${containingFile.name}${hasDirectoryExists ? "" : " with host that doesnt have directoryExists"}`); const resolution = ts.nodeModuleNameResolver("./foo", containingFile.name, {}, createModuleResolutionHost(baselines, hasDirectoryExists, containingFile, packageJson, indexFile)); - baselines.push(`Resolution:: ${JSON.stringify(resolution, /*replacer*/ undefined, 2)}`); + baselines.push(`Resolution:: ${jsonToReadableText(resolution)}`); baselines.push(""); } }); @@ -265,7 +268,7 @@ describe("unittests:: moduleResolution:: Node module resolution - non-relative p const moduleFile = { name: "/a/b/node_modules/foo.ts" }; baselines.push(`Resolving "foo" from ${containingFile.name}${hasDirectoryExists ? "" : " with host that doesnt have directoryExists"}`); const resolution = ts.nodeModuleNameResolver("foo", containingFile.name, {}, createModuleResolutionHost(baselines, hasDirectoryExists, containingFile, moduleFile)); - baselines.push(`Resolution:: ${JSON.stringify(resolution, /*replacer*/ undefined, 2)}`); + baselines.push(`Resolution:: ${jsonToReadableText(resolution)}`); baselines.push(""); } }); @@ -281,7 +284,7 @@ describe("unittests:: moduleResolution:: Node module resolution - non-relative p const moduleFile = { name: "/a/b/node_modules/foo.d.ts" }; baselines.push(`Resolving "foo" from ${containingFile.name}${hasDirectoryExists ? "" : " with host that doesnt have directoryExists"}`); const resolution = ts.nodeModuleNameResolver("foo", containingFile.name, {}, createModuleResolutionHost(baselines, hasDirectoryExists, containingFile, moduleFile)); - baselines.push(`Resolution:: ${JSON.stringify(resolution, /*replacer*/ undefined, 2)}`); + baselines.push(`Resolution:: ${jsonToReadableText(resolution)}`); baselines.push(""); } }); @@ -297,7 +300,7 @@ describe("unittests:: moduleResolution:: Node module resolution - non-relative p const moduleFile: File = { name: "/a/node_modules/foo/index.d.ts" }; baselines.push(`Resolving "foo" from ${containingFile.name}${hasDirectoryExists ? "" : " with host that doesnt have directoryExists"}`); const resolution = ts.nodeModuleNameResolver("foo", containingFile.name, {}, createModuleResolutionHost(baselines, hasDirectoryExists, containingFile, moduleFile)); - baselines.push(`Resolution:: ${JSON.stringify(resolution, /*replacer*/ undefined, 2)}`); + baselines.push(`Resolution:: ${jsonToReadableText(resolution)}`); baselines.push(""); } }); @@ -314,11 +317,11 @@ describe("unittests:: moduleResolution:: Node module resolution - non-relative p baselines, /*hasDirectoryExists*/ true, { name: realFileName, symlinks: [symlinkFileName] }, - { name: "/app/node_modules/linked/package.json", content: '{"version": "0.0.0", "main": "./index"}' }, + { name: "/app/node_modules/linked/package.json", content: jsonToReadableText({ version: "0.0.0", main: "./index" }) }, ); baselines.push(`Resolving "linked" from /app/app.ts when preserveSymlinks is ${preserveSymlinks}`); const resolution = ts.nodeModuleNameResolver("linked", "/app/app.ts", { preserveSymlinks }, host); - baselines.push(`Resolution:: ${JSON.stringify(resolution, /*replacer*/ undefined, 2)}`); + baselines.push(`Resolution:: ${jsonToReadableText(resolution)}`); baselines.push(""); } }); @@ -334,24 +337,24 @@ describe("unittests:: moduleResolution:: Node module resolution - non-relative p }, { name: "/sub/node_modules/a/package.json", - content: '{"version": "0.0.0", "main": "./index"}', + content: jsonToReadableText({ version: "0.0.0", main: "./index" }), }, ); const compilerOptions: ts.CompilerOptions = { moduleResolution: ts.ModuleResolutionKind.Node10 }; const cache = ts.createModuleResolutionCache("/", f => f); baselines.push(`Resolving "a" from /sub/dir/foo.ts`); let resolution = ts.resolveModuleName("a", "/sub/dir/foo.ts", compilerOptions, host, cache); - baselines.push(`Resolution:: ${JSON.stringify(resolution, /*replacer*/ undefined, 2)}`); + baselines.push(`Resolution:: ${jsonToReadableText(resolution)}`); baselines.push(""); baselines.push(`Resolving "a" from /sub/foo.ts`); resolution = ts.resolveModuleName("a", "/sub/foo.ts", compilerOptions, host, cache); - baselines.push(`Resolution:: ${JSON.stringify(resolution, /*replacer*/ undefined, 2)}`); + baselines.push(`Resolution:: ${jsonToReadableText(resolution)}`); baselines.push(""); baselines.push(`Resolving "a" from /foo.ts`); resolution = ts.resolveModuleName("a", "/foo.ts", compilerOptions, host, cache); - baselines.push(`Resolution:: ${JSON.stringify(resolution, /*replacer*/ undefined, 2)}`); + baselines.push(`Resolution:: ${jsonToReadableText(resolution)}`); baselines.push(""); runBaseline("non relative uses originalPath for caching", baselines); }); @@ -362,7 +365,7 @@ describe("unittests:: moduleResolution:: Node module resolution - non-relative p baselines, /*hasDirectoryExists*/ true, { name: "/linked/index.d.ts", symlinks: ["/app/node_modules/linked/index.d.ts"] }, - { name: "/app/node_modules/linked/package.json", content: '{"version": "0.0.0", "main": "./index"}' }, + { name: "/app/node_modules/linked/package.json", content: jsonToReadableText({ version: "0.0.0", main: "./index" }) }, ); const cache = ts.createModuleResolutionCache("/", f => f); const compilerOptions: ts.CompilerOptions = { moduleResolution: ts.ModuleResolutionKind.Node10 }; @@ -373,7 +376,7 @@ describe("unittests:: moduleResolution:: Node module resolution - non-relative p function baselineResolution(containingFile: string) { baselines.push(`Resolving "linked" from ${containingFile}`); const resolution = ts.resolveModuleName("linked", containingFile, compilerOptions, host, cache); - baselines.push(`Resolution:: ${JSON.stringify(resolution, /*replacer*/ undefined, 2)}`); + baselines.push(`Resolution:: ${jsonToReadableText(resolution)}`); baselines.push(""); } }); @@ -657,19 +660,19 @@ describe("unittests:: moduleResolution:: baseUrl augmented module resolution", ( { baselines.push(`Resolving "folder2/file2" from ${file1.name}${hasDirectoryExists ? "" : " with host that doesnt have directoryExists"}`); const result = ts.resolveModuleName("folder2/file2", file1.name, options, host); - baselines.push(`Resolution:: ${JSON.stringify(result, /*replacer*/ undefined, 2)}`); + baselines.push(`Resolution:: ${jsonToReadableText(result)}`); baselines.push(""); } { baselines.push(`Resolving "./file3" from ${file2.name}${hasDirectoryExists ? "" : " with host that doesnt have directoryExists"}`); const result = ts.resolveModuleName("./file3", file2.name, options, host); - baselines.push(`Resolution:: ${JSON.stringify(result, /*replacer*/ undefined, 2)}`); + baselines.push(`Resolution:: ${jsonToReadableText(result)}`); baselines.push(""); } { baselines.push(`Resolving "/root/folder1/file1" from ${file2.name}${hasDirectoryExists ? "" : " with host that doesnt have directoryExists"}`); const result = ts.resolveModuleName("/root/folder1/file1", file2.name, options, host); - baselines.push(`Resolution:: ${JSON.stringify(result, /*replacer*/ undefined, 2)}`); + baselines.push(`Resolution:: ${jsonToReadableText(result)}`); baselines.push(""); } } @@ -687,7 +690,7 @@ describe("unittests:: moduleResolution:: baseUrl augmented module resolution", ( const main: File = { name: "/root/a/b/main.ts" }; const m1: File = { name: "/root/m1.ts" }; // load file as module const m2: File = { name: "/root/m2/index.d.ts" }; // load folder as module - const m3: File = { name: "/root/m3/package.json", content: JSON.stringify({ typings: "dist/typings.d.ts" }) }; + const m3: File = { name: "/root/m3/package.json", content: jsonToReadableText({ typings: "dist/typings.d.ts" }) }; const m3Typings: File = { name: "/root/m3/dist/typings.d.ts" }; const m4: File = { name: "/root/node_modules/m4.ts" }; // fallback to node @@ -702,7 +705,7 @@ describe("unittests:: moduleResolution:: baseUrl augmented module resolution", ( function check(name: string, caller: File) { baselines.push(`Resolving "${name}" from ${caller.name}${hasDirectoryExists ? "" : " with host that doesnt have directoryExists"}`); const result = ts.resolveModuleName(name, caller.name, options, host); - baselines.push(`Resolution:: ${JSON.stringify(result, /*replacer*/ undefined, 2)}`); + baselines.push(`Resolution:: ${jsonToReadableText(result)}`); baselines.push(""); } } @@ -728,7 +731,7 @@ describe("unittests:: moduleResolution:: baseUrl augmented module resolution", ( function check(name: string, caller: File) { baselines.push(`Resolving "${name}" from ${caller.name}${hasDirectoryExists ? "" : " with host that doesnt have directoryExists"}`); const result = ts.resolveModuleName(name, caller.name, options, host); - baselines.push(`Resolution:: ${JSON.stringify(result, /*replacer*/ undefined, 2)}`); + baselines.push(`Resolution:: ${jsonToReadableText(result)}`); baselines.push(""); } } @@ -746,7 +749,7 @@ describe("unittests:: moduleResolution:: baseUrl augmented module resolution", ( const file1: File = { name: "/root/folder1/file1.ts" }; const file2: File = { name: "/root/generated/folder1/file2.ts" }; // load remapped file as module const file3: File = { name: "/root/generated/folder2/file3/index.d.ts" }; // load folder a module - const file4Typings: File = { name: "/root/generated/folder2/file4/package.json", content: JSON.stringify({ typings: "dist/types.d.ts" }) }; + const file4Typings: File = { name: "/root/generated/folder2/file4/package.json", content: jsonToReadableText({ typings: "dist/types.d.ts" }) }; const file4: File = { name: "/root/generated/folder2/file4/dist/types.d.ts" }; // load file pointed by typings const file5: File = { name: "/root/someanotherfolder/file5/index.d.ts" }; // load remapped module from folder const file6: File = { name: "/root/node_modules/file6.ts" }; // fallback to node @@ -780,7 +783,7 @@ describe("unittests:: moduleResolution:: baseUrl augmented module resolution", ( function check(name: string) { baselines.push(`Resolving "${name}" from ${main.name}${hasDirectoryExists ? "" : " with host that doesnt have directoryExists"}`); const result = ts.resolveModuleName(name, main.name, options, host); - baselines.push(`Resolution:: ${JSON.stringify(result, /*replacer*/ undefined, 2)}`); + baselines.push(`Resolution:: ${jsonToReadableText(result)}`); baselines.push(""); } } @@ -825,7 +828,7 @@ describe("unittests:: moduleResolution:: baseUrl augmented module resolution", ( function check(name: string) { baselines.push(`Resolving "${name}" from ${main.name}${hasDirectoryExists ? "" : " with host that doesnt have directoryExists"}`); const result = ts.resolveModuleName(name, main.name, options, host); - baselines.push(`Resolution:: ${JSON.stringify(result, /*replacer*/ undefined, 2)}`); + baselines.push(`Resolution:: ${jsonToReadableText(result)}`); baselines.push(""); } } @@ -857,7 +860,7 @@ describe("unittests:: moduleResolution:: baseUrl augmented module resolution", ( function check(name: string, container: File) { baselines.push(`Resolving "${name}" from ${container.name}${hasDirectoryExists ? "" : " with host that doesnt have directoryExists"}`); const result = ts.resolveModuleName(name, container.name, options, host); - baselines.push(`Resolution:: ${JSON.stringify(result, /*replacer*/ undefined, 2)}`); + baselines.push(`Resolution:: ${jsonToReadableText(result)}`); baselines.push(""); } } @@ -889,7 +892,7 @@ describe("unittests:: moduleResolution:: baseUrl augmented module resolution", ( function check(name: string, container: File) { baselines.push(`Resolving "${name}" from ${container.name}${hasDirectoryExists ? "" : " with host that doesnt have directoryExists"}`); const result = ts.resolveModuleName(name, container.name, options, host); - baselines.push(`Resolution:: ${JSON.stringify(result, /*replacer*/ undefined, 2)}`); + baselines.push(`Resolution:: ${jsonToReadableText(result)}`); baselines.push(""); } } @@ -903,7 +906,7 @@ describe("unittests:: moduleResolution:: baseUrl augmented module resolution", ( function test(hasDirectoryExists: boolean) { const app: File = { name: "/root/src/app.ts" }; - const libsPackage: File = { name: "/root/src/libs/guid/package.json", content: JSON.stringify({ typings: "dist/guid.d.ts" }) }; + const libsPackage: File = { name: "/root/src/libs/guid/package.json", content: jsonToReadableText({ typings: "dist/guid.d.ts" }) }; const libsTypings: File = { name: "/root/src/libs/guid/dist/guid.d.ts" }; const host = createModuleResolutionHost(baselines, hasDirectoryExists, app, libsPackage, libsTypings); const options: ts.CompilerOptions = { @@ -915,7 +918,7 @@ describe("unittests:: moduleResolution:: baseUrl augmented module resolution", ( }; baselines.push(`Resolving "libs/guid" from ${app.name}${hasDirectoryExists ? "" : " with host that doesnt have directoryExists"}`); const result = ts.resolveModuleName("libs/guid", app.name, options, host); - baselines.push(`Resolution:: ${JSON.stringify(result, /*replacer*/ undefined, 2)}`); + baselines.push(`Resolution:: ${jsonToReadableText(result)}`); baselines.push(""); } }); @@ -939,7 +942,7 @@ describe("unittests:: moduleResolution:: Type reference directive resolution: ", const host = createModuleResolutionHost(baselines, hasDirectoryExists, ...[initialFile, targetFile].concat(...otherFiles)); baselines.push(`Resolving "${typeDirective}" from ${initialFile.name} typesRoots: ${typesRoot ? `[${typesRoot}]` : undefined}${hasDirectoryExists ? "" : " with host that doesnt have directoryExists"}`); const result = ts.resolveTypeReferenceDirective(typeDirective, initialFile.name, typesRoot ? { typeRoots: [typesRoot] } : {}, host); - baselines.push(`Resolution:: ${JSON.stringify(result, /*replacer*/ undefined, 2)}`); + baselines.push(`Resolution:: ${jsonToReadableText(result)}`); baselines.push(""); } @@ -957,7 +960,7 @@ describe("unittests:: moduleResolution:: Type reference directive resolution: ", { const f1 = { name: "/root/src/app.ts" }; const f2 = { name: "/root/src/types/lib/typings/lib.d.ts" }; - const packageFile = { name: "/root/src/types/lib/package.json", content: JSON.stringify({ types: "typings/lib.d.ts" }) }; + const packageFile = { name: "/root/src/types/lib/package.json", content: jsonToReadableText({ types: "typings/lib.d.ts" }) }; test(baselines, /*typesRoot*/ "/root/src/types", /* typeDirective */ "lib", f1, f2, packageFile); } { @@ -968,7 +971,7 @@ describe("unittests:: moduleResolution:: Type reference directive resolution: ", { const f1 = { name: "/root/src/app.ts" }; const f2 = { name: "/root/src/node_modules/lib/typings/lib.d.ts" }; - const packageFile = { name: "/root/src/node_modules/lib/package.json", content: JSON.stringify({ types: "typings/lib.d.ts" }) }; + const packageFile = { name: "/root/src/node_modules/lib/package.json", content: jsonToReadableText({ types: "typings/lib.d.ts" }) }; test(baselines, /*typesRoot*/ "/root/src/types", /* typeDirective */ "lib", f1, f2, packageFile); } { @@ -979,7 +982,7 @@ describe("unittests:: moduleResolution:: Type reference directive resolution: ", { const f1 = { name: "/root/src/app.ts" }; const f2 = { name: "/root/src/node_modules/@types/lib/typings/lib.d.ts" }; - const packageFile = { name: "/root/src/node_modules/@types/lib/package.json", content: JSON.stringify({ types: "typings/lib.d.ts" }) }; + const packageFile = { name: "/root/src/node_modules/@types/lib/package.json", content: jsonToReadableText({ types: "typings/lib.d.ts" }) }; test(baselines, /*typesRoot*/ "/root/src/types", /* typeDirective */ "lib", f1, f2, packageFile); } runBaseline("type reference from primary location", baselines); @@ -999,7 +1002,7 @@ describe("unittests:: moduleResolution:: Type reference directive resolution: ", { const f1 = { name: "/root/src/app.ts" }; const f2 = { name: "/root/node_modules/lib/typings/lib.d.ts" }; - const packageFile = { name: "/root/node_modules/lib/package.json", content: JSON.stringify({ typings: "typings/lib.d.ts" }) }; + const packageFile = { name: "/root/node_modules/lib/package.json", content: jsonToReadableText({ typings: "typings/lib.d.ts" }) }; test(baselines, /*typesRoot*/ "/root/src/types", /* typeDirective */ "lib", f1, f2, packageFile); } { @@ -1010,7 +1013,7 @@ describe("unittests:: moduleResolution:: Type reference directive resolution: ", { const f1 = { name: "/root/src/app.ts" }; const f2 = { name: "/root/node_modules/@types/lib/typings/lib.d.ts" }; - const packageFile = { name: "/root/node_modules/@types/lib/package.json", content: JSON.stringify({ typings: "typings/lib.d.ts" }) }; + const packageFile = { name: "/root/node_modules/@types/lib/package.json", content: jsonToReadableText({ typings: "typings/lib.d.ts" }) }; test(baselines, /*typesRoot*/ "/root/src/types", /* typeDirective */ "lib", f1, f2, packageFile); } runBaseline("type reference from secondary location", baselines); diff --git a/src/testRunner/unittests/programApi.ts b/src/testRunner/unittests/programApi.ts index 1d3d9528db3d4..b1aba4bb9c25f 100644 --- a/src/testRunner/unittests/programApi.ts +++ b/src/testRunner/unittests/programApi.ts @@ -3,6 +3,9 @@ import * as fakes from "../_namespaces/fakes"; import * as Harness from "../_namespaces/Harness"; import * as ts from "../_namespaces/ts"; import * as vfs from "../_namespaces/vfs"; +import { + jsonToReadableText, +} from "./helpers"; function verifyMissingFilePaths(missingPaths: readonly ts.Path[], expected: readonly string[]) { assert.isDefined(missingPaths); @@ -145,7 +148,7 @@ describe("unittests:: Program.isSourceFileFromExternalLibrary", () => { // In this example '/node_modules/foo/index.d.ts' will redirect to '/node_modules/bar/node_modules/foo/index.d.ts'. const a = new documents.TextDocument("/a.ts", 'import * as bar from "bar"; import * as foo from "foo";'); const bar = new documents.TextDocument("/node_modules/bar/index.d.ts", 'import * as foo from "foo";'); - const fooPackageJsonText = '{ "name": "foo", "version": "1.2.3" }'; + const fooPackageJsonText = jsonToReadableText({ name: "foo", version: "1.2.3" }); const fooIndexText = "export const x: number;"; const barFooPackage = new documents.TextDocument("/node_modules/bar/node_modules/foo/package.json", fooPackageJsonText); const barFooIndex = new documents.TextDocument("/node_modules/bar/node_modules/foo/index.d.ts", fooIndexText); @@ -177,7 +180,7 @@ describe("unittests:: Program.isSourceFileFromExternalLibrary", () => { describe("unittests:: Program.getNodeCount / Program.getIdentifierCount", () => { it("works on projects that have .json files", () => { const main = new documents.TextDocument("/main.ts", 'export { version } from "./package.json";'); - const pkg = new documents.TextDocument("/package.json", '{"version": "1.0.0"}'); + const pkg = new documents.TextDocument("/package.json", jsonToReadableText({ version: "1.0.0" })); const fs = vfs.createFromFileSystem(Harness.IO, /*ignoreCase*/ false, { documents: [main, pkg], cwd: "/" }); const program = ts.createProgram(["/main.ts"], { resolveJsonModule: true }, new fakes.CompilerHost(fs, { newLine: ts.NewLineKind.LineFeed })); diff --git a/src/testRunner/unittests/reuseProgramStructure.ts b/src/testRunner/unittests/reuseProgramStructure.ts index dfd917adff94c..00ca7b3536938 100644 --- a/src/testRunner/unittests/reuseProgramStructure.ts +++ b/src/testRunner/unittests/reuseProgramStructure.ts @@ -3,6 +3,7 @@ import * as ts from "../_namespaces/ts"; import * as Utils from "../_namespaces/Utils"; import { createTestCompilerHost, + jsonToReadableText, NamedSourceText, newLine, newProgram, @@ -36,7 +37,7 @@ describe("unittests:: Reuse program structure:: General", () => { addedHeader = true; baselines.push(`${cacheType}:`); } - baselines.push(`${key}: ${mode ? ts.getNameOfCompilerOptionValue(mode, ts.moduleOptionDeclaration.type) + ": " : ""}${JSON.stringify(resolved, /*replacer*/ undefined, 2)}`); + baselines.push(`${key}: ${mode ? ts.getNameOfCompilerOptionValue(mode, ts.moduleOptionDeclaration.type) + ": " : ""}${jsonToReadableText(resolved)}`); } } function baselineProgram(baselines: string[], program: ts.Program, host?: TestCompilerHost) { @@ -52,7 +53,7 @@ describe("unittests:: Reuse program structure:: General", () => { host.getTrace().forEach(trace => baselines.push(Utils.sanitizeTraceResolutionLogEntry(trace))); host.clearTrace(); baselines.push(""); - baselines.push(`MissingPaths:: ${JSON.stringify(program.getMissingFilePaths())}`); + baselines.push(`MissingPaths:: ${jsonToReadableText(program.getMissingFilePaths())}`); baselines.push(""); baselines.push(ts.formatDiagnostics(program.getSemanticDiagnostics(), { getCurrentDirectory: () => program.getCurrentDirectory(), @@ -103,7 +104,7 @@ describe("unittests:: Reuse program structure:: General", () => { { name: "/a.ts", text: SourceText.New("", "import {b} from 'b'", "var a = b;") }, { name: "/node_modules/b/index.d.ts", text: SourceText.New("", "export * from './internal';", "") }, { name: "/node_modules/b/internal.d.ts", text: SourceText.New("", "", "export const b = 1;") }, - { name: "/node_modules/b/package.json", text: SourceText.New("", "", JSON.stringify({ name: "b", version: "1.2.3" })) }, + { name: "/node_modules/b/package.json", text: SourceText.New("", "", jsonToReadableText({ name: "b", version: "1.2.3" })) }, ]; const options: ts.CompilerOptions = { target, moduleResolution: ts.ModuleResolutionKind.Node10 }; @@ -462,7 +463,7 @@ describe("unittests:: Reuse program structure:: General", () => { }, { name: axPackage, - text: SourceText.New("", "", JSON.stringify({ name: "x", version: "1.2.3" })), + text: SourceText.New("", "", jsonToReadableText({ name: "x", version: "1.2.3" })), }, { name: "/node_modules/b/index.d.ts", @@ -474,7 +475,7 @@ describe("unittests:: Reuse program structure:: General", () => { }, { name: bxPackage, - text: SourceText.New("", "", JSON.stringify({ name: "x", version: options ? options.bVersion : "1.2.3" })), + text: SourceText.New("", "", jsonToReadableText({ name: "x", version: options ? options.bVersion : "1.2.3" })), }, { name: root, @@ -513,7 +514,7 @@ describe("unittests:: Reuse program structure:: General", () => { const program2 = updateRedirectProgram(program1, files => { updateProgramText(files, axIndex, "export default class X { private x: number; private y: number; }"); - updateProgramText(files, axPackage, JSON.stringify('{ name: "x", version: "1.2.4" }')); + updateProgramText(files, axPackage, jsonToReadableText('{ name: "x", version: "1.2.4" }')); }, useGetSourceFileByPath); baselineProgram(baselines, program2); runRedirectsBaseline("target changes", useGetSourceFileByPath, baselines); @@ -526,7 +527,7 @@ describe("unittests:: Reuse program structure:: General", () => { const program2 = updateRedirectProgram(program1, files => { updateProgramText(files, bxIndex, "export default class X { private x: number; private y: number; }"); - updateProgramText(files, bxPackage, JSON.stringify({ name: "x", version: "1.2.4" })); + updateProgramText(files, bxPackage, jsonToReadableText({ name: "x", version: "1.2.4" })); }, useGetSourceFileByPath); baselineProgram(baselines, program2); runRedirectsBaseline("underlying changes", useGetSourceFileByPath, baselines); @@ -539,7 +540,7 @@ describe("unittests:: Reuse program structure:: General", () => { const program2 = updateRedirectProgram(program1, files => { updateProgramText(files, bxIndex, "export default class X { private x: number; }"); - updateProgramText(files, bxPackage, JSON.stringify({ name: "x", version: "1.2.3" })); + updateProgramText(files, bxPackage, jsonToReadableText({ name: "x", version: "1.2.3" })); }, useGetSourceFileByPath); baselineProgram(baselines, program2); runRedirectsBaseline(`previous duplicate packages`, useGetSourceFileByPath, baselines); @@ -584,7 +585,7 @@ describe("unittests:: Reuse program structure:: isProgramUptoDate", () => { function duplicate(options: ts.CompilerOptions): ts.CompilerOptions; function duplicate(fileNames: string[]): string[]; function duplicate(filesOrOptions: ts.CompilerOptions | string[]) { - return JSON.parse(JSON.stringify(filesOrOptions)); + return JSON.parse(jsonToReadableText(filesOrOptions)); } describe("should return true when there is no change in compiler options and", () => { @@ -646,7 +647,7 @@ describe("unittests:: Reuse program structure:: isProgramUptoDate", () => { }; const configFile: File = { path: "/src/tsconfig.json", - content: JSON.stringify({ compilerOptions }), + content: jsonToReadableText({ compilerOptions }), }; const es5Lib: File = { path: "/compiler/lib.es5.d.ts", @@ -692,7 +693,7 @@ describe("unittests:: Reuse program structure:: isProgramUptoDate", () => { }; const configFile: File = { path: "/src/tsconfig.json", - content: JSON.stringify({ compilerOptions }), + content: jsonToReadableText({ compilerOptions }), }; verifyProgram([app, module1, module2, module3, libFile, configFile], [app.path], compilerOptions, configFile.path); @@ -730,7 +731,7 @@ describe("unittests:: Reuse program structure:: isProgramUptoDate", () => { }; const configFile: File = { path: "/src/tsconfig.json", - content: JSON.stringify({ compilerOptions, include: ["packages/**/*.ts"] }), + content: jsonToReadableText({ compilerOptions, include: ["packages/**/*.ts"] }), }; verifyProgramWithConfigFile(createWatchedSystem([app, module1, module2, module3, libFile, configFile]), configFile.path); }); diff --git a/src/testRunner/unittests/services/languageService.ts b/src/testRunner/unittests/services/languageService.ts index 128eec74a2a09..96ea65170b63e 100644 --- a/src/testRunner/unittests/services/languageService.ts +++ b/src/testRunner/unittests/services/languageService.ts @@ -3,6 +3,9 @@ import { } from "chai"; import * as ts from "../../_namespaces/ts"; +import { + jsonToReadableText, +} from "../helpers"; import { createServerHost, File, @@ -152,7 +155,7 @@ export function Component(x: Config): any;`, function setup(useSourceOfProjectReferenceRedirect: (() => boolean) | undefined) { const config1: File = { path: `/user/username/projects/myproject/projects/project1/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { module: "none", composite: true, @@ -170,7 +173,7 @@ export function Component(x: Config): any;`, }; const config2: File = { path: `/user/username/projects/myproject/projects/project2/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { module: "none", composite: true, diff --git a/src/testRunner/unittests/services/preProcessFile.ts b/src/testRunner/unittests/services/preProcessFile.ts index 1bd38bb2e0851..05bf0d3db9cef 100644 --- a/src/testRunner/unittests/services/preProcessFile.ts +++ b/src/testRunner/unittests/services/preProcessFile.ts @@ -1,4 +1,7 @@ import * as ts from "../../_namespaces/ts"; +import { + jsonToReadableText, +} from "../helpers"; describe("unittests:: services:: PreProcessFile:", () => { function test(sourceText: string, readImportFile: boolean, detectJavaScriptImports: boolean, expectedPreProcess: ts.PreProcessedFileInfo): void { @@ -18,7 +21,7 @@ describe("unittests:: services:: PreProcessFile:", () => { if (expected === actual) { return; } - assert.deepEqual(actual, expected, `Expected [${kind}] ${JSON.stringify(expected)}, got ${JSON.stringify(actual)}`); + assert.deepEqual(actual, expected, `Expected [${kind}] ${jsonToReadableText(expected)}, got ${jsonToReadableText(actual)}`); } describe("Test preProcessFiles,", () => { diff --git a/src/testRunner/unittests/tsbuild/amdModulesWithOut.ts b/src/testRunner/unittests/tsbuild/amdModulesWithOut.ts index cb1f7ba78a9a1..13304ea0b41bf 100644 --- a/src/testRunner/unittests/tsbuild/amdModulesWithOut.ts +++ b/src/testRunner/unittests/tsbuild/amdModulesWithOut.ts @@ -1,5 +1,11 @@ import * as ts from "../../_namespaces/ts"; +import { + dedent, +} from "../../_namespaces/Utils"; import * as vfs from "../../_namespaces/vfs"; +import { + jsonToReadableText, +} from "../helpers"; import { verifyTsc, } from "../helpers/tsc"; @@ -11,7 +17,7 @@ import { addTripleSlashRef, appendText, enableStrict, - loadProjectFromDisk, + loadProjectFromFiles, removeRest, replaceText, } from "../helpers/vfs"; @@ -19,7 +25,45 @@ import { describe("unittests:: tsbuild:: outFile:: on amd modules with --out", () => { let outFileFs: vfs.FileSystem; before(() => { - outFileFs = loadProjectFromDisk("tests/projects/amdModulesWithOut"); + outFileFs = loadProjectFromFiles({ + "/src/app/file3.ts": dedent` + export const z = 30; + import { x } from "file1"; + `, + "/src/app/file4.ts": `const myVar = 30;`, + "/src/app/tsconfig.json": jsonToReadableText({ + compilerOptions: { + ignoreDeprecations: "5.0", + target: "es5", + module: "amd", + composite: true, + strict: false, + sourceMap: true, + declarationMap: true, + outFile: "module.js", + }, + exclude: ["module.d.ts"], + references: [ + { path: "../lib", prepend: true }, + ], + }), + "/src/lib/file0.ts": `const myGlob = 20;`, + "/src/lib/file1.ts": `export const x = 10;`, + "/src/lib/file2.ts": `export const y = 20;`, + "/src/lib/global.ts": `const globalConst = 10;`, + "/src/lib/tsconfig.json": jsonToReadableText({ + compilerOptions: { + target: "es5", + module: "amd", + composite: true, + sourceMap: true, + declarationMap: true, + strict: false, + outFile: "module.js", + }, + exclude: ["module.d.ts"], + }), + }); }); after(() => { outFileFs = undefined!; diff --git a/src/testRunner/unittests/tsbuild/clean.ts b/src/testRunner/unittests/tsbuild/clean.ts index 5df00878fa063..5742fd0bed67b 100644 --- a/src/testRunner/unittests/tsbuild/clean.ts +++ b/src/testRunner/unittests/tsbuild/clean.ts @@ -1,6 +1,9 @@ import { noop, } from "../../_namespaces/ts"; +import { + jsonToReadableText, +} from "../helpers"; import { noChangeRun, verifyTsc, @@ -18,7 +21,7 @@ describe("unittests:: tsbuild - clean::", () => { loadProjectFromFiles({ "/src/index.js": "", "/src/bar.ts": "", - "/src/tsconfig.json": JSON.stringify({ + "/src/tsconfig.json": jsonToReadableText({ compilerOptions: { allowJs: true }, }), }), @@ -30,7 +33,7 @@ describe("unittests:: tsbuild - clean::", () => { fs: () => loadProjectFromFiles({ "/src/project/src/main.tsx": "export const x = 10;", - "/src/project/tsconfig.json": JSON.stringify({ + "/src/project/tsconfig.json": jsonToReadableText({ compilerOptions: { declaration: true }, include: ["src/**/*.tsx", "src/**/*.ts"], }), diff --git a/src/testRunner/unittests/tsbuild/commandLine.ts b/src/testRunner/unittests/tsbuild/commandLine.ts index 56f7aa0d988ce..213245d711973 100644 --- a/src/testRunner/unittests/tsbuild/commandLine.ts +++ b/src/testRunner/unittests/tsbuild/commandLine.ts @@ -1,4 +1,7 @@ import * as ts from "../../_namespaces/ts"; +import { + jsonToReadableText, +} from "../helpers"; import { compilerOptionsToConfigJson, } from "../helpers/contents"; @@ -71,7 +74,7 @@ describe("unittests:: tsbuild:: commandLine::", () => { } function fs(options: ts.CompilerOptions) { return loadProjectFromFiles({ - "/src/project/tsconfig.json": JSON.stringify({ compilerOptions: compilerOptionsToConfigJson(options) }), + "/src/project/tsconfig.json": jsonToReadableText({ compilerOptions: compilerOptionsToConfigJson(options) }), "/src/project/a.ts": `export const a = 10;const aLocal = 10;`, "/src/project/b.ts": `export const b = 10;const bLocal = 10;`, "/src/project/c.ts": `import { a } from "./a";export const c = a;`, @@ -168,14 +171,14 @@ describe("unittests:: tsbuild:: commandLine::", () => { describe("emitDeclarationOnly::", () => { function fs(options: ts.CompilerOptions) { return loadProjectFromFiles({ - "/src/project1/src/tsconfig.json": JSON.stringify({ + "/src/project1/src/tsconfig.json": jsonToReadableText({ compilerOptions: compilerOptionsToConfigJson(options), }), "/src/project1/src/a.ts": `export const a = 10;const aLocal = 10;`, "/src/project1/src/b.ts": `export const b = 10;const bLocal = 10;`, "/src/project1/src/c.ts": `import { a } from "./a";export const c = a;`, "/src/project1/src/d.ts": `import { b } from "./b";export const d = b;`, - "/src/project2/src/tsconfig.json": JSON.stringify({ + "/src/project2/src/tsconfig.json": jsonToReadableText({ compilerOptions: compilerOptionsToConfigJson(options), references: [{ path: "../../project1/src" }], }), diff --git a/src/testRunner/unittests/tsbuild/configFileErrors.ts b/src/testRunner/unittests/tsbuild/configFileErrors.ts index 57d74d9f34fd1..6e288575ded06 100644 --- a/src/testRunner/unittests/tsbuild/configFileErrors.ts +++ b/src/testRunner/unittests/tsbuild/configFileErrors.ts @@ -1,13 +1,15 @@ import { dedent, } from "../../_namespaces/Utils"; +import { + jsonToReadableText, +} from "../helpers"; import { noChangeRun, verifyTsc, } from "../helpers/tsc"; import { appendText, - loadProjectFromDisk, loadProjectFromFiles, replaceText, } from "../helpers/vfs"; @@ -16,7 +18,30 @@ describe("unittests:: tsbuild:: configFileErrors:: when tsconfig extends the mis verifyTsc({ scenario: "configFileErrors", subScenario: "when tsconfig extends the missing file", - fs: () => loadProjectFromDisk("tests/projects/missingExtendedConfig"), + fs: () => + loadProjectFromFiles({ + "/src/tsconfig.first.json": jsonToReadableText({ + extends: "./foobar.json", + compilerOptions: { + composite: true, + }, + }), + "/src/tsconfig.second.json": jsonToReadableText({ + extends: "./foobar.json", + compilerOptions: { + composite: true, + }, + }), + "/src/tsconfig.json": jsonToReadableText({ + compilerOptions: { + composite: true, + }, + references: [ + { path: "./tsconfig.first.json" }, + { path: "./tsconfig.second.json" }, + ], + }), + }), commandLineArgs: ["--b", "/src/tsconfig.json"], }); }); @@ -66,7 +91,7 @@ describe("unittests:: tsbuild:: configFileErrors:: reports syntax errors in conf edit: fs => fs.writeFileSync( "/src/tsconfig.json", - JSON.stringify({ + jsonToReadableText({ compilerOptions: { composite: true, declaration: true }, files: ["a.ts", "b.ts"], }), diff --git a/src/testRunner/unittests/tsbuild/configFileExtends.ts b/src/testRunner/unittests/tsbuild/configFileExtends.ts index ce0ac78d971ae..8795137003264 100644 --- a/src/testRunner/unittests/tsbuild/configFileExtends.ts +++ b/src/testRunner/unittests/tsbuild/configFileExtends.ts @@ -1,3 +1,6 @@ +import { + jsonToReadableText, +} from "../helpers"; import { verifyTsc, } from "../helpers/tsc"; @@ -8,18 +11,18 @@ import { describe("unittests:: tsbuild:: configFileExtends:: when tsconfig extends another config", () => { function getConfigExtendsWithIncludeFs() { return loadProjectFromFiles({ - "/src/tsconfig.json": JSON.stringify({ + "/src/tsconfig.json": jsonToReadableText({ references: [ { path: "./shared/tsconfig.json" }, { path: "./webpack/tsconfig.json" }, ], files: [], }), - "/src/shared/tsconfig-base.json": JSON.stringify({ + "/src/shared/tsconfig-base.json": jsonToReadableText({ include: ["./typings-base/"], }), "/src/shared/typings-base/globals.d.ts": `type Unrestricted = any;`, - "/src/shared/tsconfig.json": JSON.stringify({ + "/src/shared/tsconfig.json": jsonToReadableText({ extends: "./tsconfig-base.json", compilerOptions: { composite: true, @@ -29,7 +32,7 @@ describe("unittests:: tsbuild:: configFileExtends:: when tsconfig extends anothe files: ["./index.ts"], }), "/src/shared/index.ts": `export const a: Unrestricted = 1;`, - "/src/webpack/tsconfig.json": JSON.stringify({ + "/src/webpack/tsconfig.json": jsonToReadableText({ extends: "../shared/tsconfig-base.json", compilerOptions: { composite: true, diff --git a/src/testRunner/unittests/tsbuild/containerOnlyReferenced.ts b/src/testRunner/unittests/tsbuild/containerOnlyReferenced.ts index 27fa3377b9780..366d72699f717 100644 --- a/src/testRunner/unittests/tsbuild/containerOnlyReferenced.ts +++ b/src/testRunner/unittests/tsbuild/containerOnlyReferenced.ts @@ -1,9 +1,11 @@ +import { + jsonToReadableText, +} from "../helpers"; import { noChangeOnlyRuns, verifyTsc, } from "../helpers/tsc"; import { - loadProjectFromDisk, loadProjectFromFiles, replaceText, } from "../helpers/vfs"; @@ -12,7 +14,53 @@ describe("unittests:: tsbuild:: when containerOnly project is referenced", () => verifyTsc({ scenario: "containerOnlyReferenced", subScenario: "verify that subsequent builds after initial build doesnt build anything", - fs: () => loadProjectFromDisk("tests/projects/containerOnlyReferenced"), + fs: () => + loadProjectFromFiles({ + "/src/src/folder/index.ts": `export const x = 10;`, + "/src/src/folder/tsconfig.json": jsonToReadableText({ + files: ["index.ts"], + compilerOptions: { + composite: true, + }, + }), + "/src/src/folder2/index.ts": `export const x = 10;`, + "/src/src/folder2/tsconfig.json": jsonToReadableText({ + files: ["index.ts"], + compilerOptions: { + composite: true, + }, + }), + "/src/src/tsconfig.json": jsonToReadableText({ + files: [], + compilerOptions: { + composite: true, + }, + references: [ + { path: "./folder" }, + { path: "./folder2" }, + ], + }), + "/src/tests/index.ts": `export const x = 10;`, + "/src/tests/tsconfig.json": jsonToReadableText({ + files: ["index.ts"], + compilerOptions: { + composite: true, + }, + references: [ + { path: "../src" }, + ], + }), + "/src/tsconfig.json": jsonToReadableText({ + files: [], + compilerOptions: { + composite: true, + }, + references: [ + { path: "./src" }, + { path: "./tests" }, + ], + }), + }), commandLineArgs: ["--b", "/src", "--verbose"], edits: noChangeOnlyRuns, }); @@ -22,21 +70,21 @@ describe("unittests:: tsbuild:: when containerOnly project is referenced", () => subScenario: "when solution is referenced indirectly", fs: () => loadProjectFromFiles({ - "/src/project1/tsconfig.json": JSON.stringify({ + "/src/project1/tsconfig.json": jsonToReadableText({ compilerOptions: { composite: true }, references: [], }), - "/src/project2/tsconfig.json": JSON.stringify({ + "/src/project2/tsconfig.json": jsonToReadableText({ compilerOptions: { composite: true }, references: [], }), "/src/project2/src/b.ts": "export const b = 10;", - "/src/project3/tsconfig.json": JSON.stringify({ + "/src/project3/tsconfig.json": jsonToReadableText({ compilerOptions: { composite: true }, references: [{ path: "../project1" }, { path: "../project2" }], }), "/src/project3/src/c.ts": "export const c = 10;", - "/src/project4/tsconfig.json": JSON.stringify({ + "/src/project4/tsconfig.json": jsonToReadableText({ compilerOptions: { composite: true }, references: [{ path: "../project3" }], }), diff --git a/src/testRunner/unittests/tsbuild/declarationEmit.ts b/src/testRunner/unittests/tsbuild/declarationEmit.ts index acc0e3efadcfc..521190eda8ae6 100644 --- a/src/testRunner/unittests/tsbuild/declarationEmit.ts +++ b/src/testRunner/unittests/tsbuild/declarationEmit.ts @@ -1,5 +1,12 @@ -import * as Utils from "../../_namespaces/Utils"; -import * as vfs from "../../_namespaces/vfs"; +import { + dedent, +} from "../../_namespaces/Utils"; +import { + FileSet, +} from "../../_namespaces/vfs"; +import { + jsonToReadableText, +} from "../helpers"; import { verifyTsc, } from "../helpers/tsc"; @@ -8,40 +15,40 @@ import { } from "../helpers/vfs"; describe("unittests:: tsbuild:: declarationEmit", () => { - function getFiles(): vfs.FileSet { + function getFiles(): FileSet { return { - "/src/solution/tsconfig.base.json": JSON.stringify({ + "/src/solution/tsconfig.base.json": jsonToReadableText({ compilerOptions: { rootDir: "./", outDir: "lib", }, }), - "/src/solution/tsconfig.json": JSON.stringify({ + "/src/solution/tsconfig.json": jsonToReadableText({ compilerOptions: { composite: true }, references: [{ path: "./src" }], include: [], }), - "/src/solution/src/tsconfig.json": JSON.stringify({ + "/src/solution/src/tsconfig.json": jsonToReadableText({ compilerOptions: { composite: true }, references: [{ path: "./subProject" }, { path: "./subProject2" }], include: [], }), - "/src/solution/src/subProject/tsconfig.json": JSON.stringify({ + "/src/solution/src/subProject/tsconfig.json": jsonToReadableText({ extends: "../../tsconfig.base.json", compilerOptions: { composite: true }, references: [{ path: "../common" }], include: ["./index.ts"], }), - "/src/solution/src/subProject/index.ts": Utils.dedent` + "/src/solution/src/subProject/index.ts": dedent` import { Nominal } from '../common/nominal'; export type MyNominal = Nominal;`, - "/src/solution/src/subProject2/tsconfig.json": JSON.stringify({ + "/src/solution/src/subProject2/tsconfig.json": jsonToReadableText({ extends: "../../tsconfig.base.json", compilerOptions: { composite: true }, references: [{ path: "../subProject" }], include: ["./index.ts"], }), - "/src/solution/src/subProject2/index.ts": Utils.dedent` + "/src/solution/src/subProject2/index.ts": dedent` import { MyNominal } from '../subProject/index'; const variable = { key: 'value' as MyNominal, @@ -49,15 +56,15 @@ const variable = { export function getVar(): keyof typeof variable { return 'key'; }`, - "/src/solution/src/common/tsconfig.json": JSON.stringify({ + "/src/solution/src/common/tsconfig.json": jsonToReadableText({ extends: "../../tsconfig.base.json", compilerOptions: { composite: true }, include: ["./nominal.ts"], }), - "/src/solution/src/common/nominal.ts": Utils.dedent` + "/src/solution/src/common/nominal.ts": dedent` /// export declare type Nominal = MyNominal;`, - "/src/solution/src/common/types.d.ts": Utils.dedent` + "/src/solution/src/common/types.d.ts": dedent` declare type MyNominal = T & { specialKey: Name; };`, @@ -76,7 +83,7 @@ declare type MyNominal = T & { fs: () => loadProjectFromFiles({ ...getFiles(), - "/src/solution/tsconfig.json": JSON.stringify({ + "/src/solution/tsconfig.json": jsonToReadableText({ extends: "./tsconfig.base.json", compilerOptions: { composite: true }, include: ["./src/**/*.ts"], @@ -90,32 +97,32 @@ declare type MyNominal = T & { subScenario: "when declaration file used inferred type from referenced project", fs: () => loadProjectFromFiles({ - "/src/tsconfig.json": JSON.stringify({ + "/src/tsconfig.json": jsonToReadableText({ compilerOptions: { composite: true, baseUrl: ".", paths: { "@fluentui/*": ["packages/*/src"] }, }, }), - "/src/packages/pkg1/src/index.ts": Utils.dedent` + "/src/packages/pkg1/src/index.ts": dedent` export interface IThing { a: string; } export interface IThings { thing1: IThing; }`, - "/src/packages/pkg1/tsconfig.json": JSON.stringify({ + "/src/packages/pkg1/tsconfig.json": jsonToReadableText({ extends: "../../tsconfig", compilerOptions: { outDir: "lib" }, include: ["src"], }), - "/src/packages/pkg2/src/index.ts": Utils.dedent` + "/src/packages/pkg2/src/index.ts": dedent` import { IThings } from '@fluentui/pkg1'; export function fn4() { const a: IThings = { thing1: { a: 'b' } }; return a.thing1; }`, - "/src/packages/pkg2/tsconfig.json": JSON.stringify({ + "/src/packages/pkg2/tsconfig.json": jsonToReadableText({ extends: "../../tsconfig", compilerOptions: { outDir: "lib" }, include: ["src"], diff --git a/src/testRunner/unittests/tsbuild/demo.ts b/src/testRunner/unittests/tsbuild/demo.ts index 4c1def473bb8e..174ccd1ce4883 100644 --- a/src/testRunner/unittests/tsbuild/demo.ts +++ b/src/testRunner/unittests/tsbuild/demo.ts @@ -1,17 +1,19 @@ import * as vfs from "../../_namespaces/vfs"; +import { + getFsContentsForDemoProjectReferencesCoreConfig, + getFsForDemoProjectReferences, +} from "../helpers/demoProjectReferences"; import { verifyTsc, } from "../helpers/tsc"; import { - loadProjectFromDisk, prependText, - replaceText, } from "../helpers/vfs"; describe("unittests:: tsbuild:: on demo project", () => { let projFs: vfs.FileSystem; before(() => { - projFs = loadProjectFromDisk("tests/projects/demo"); + projFs = getFsForDemoProjectReferences(); }); after(() => { @@ -22,36 +24,33 @@ describe("unittests:: tsbuild:: on demo project", () => { scenario: "demo", subScenario: "in master branch with everything setup correctly and reports no error", fs: () => projFs, - commandLineArgs: ["--b", "/src/tsconfig.json", "--verbose"], + commandLineArgs: ["--b", "--verbose"], }); verifyTsc({ scenario: "demo", subScenario: "in circular branch reports the error about it by stopping build", fs: () => projFs, - commandLineArgs: ["--b", "/src/tsconfig.json", "--verbose"], + commandLineArgs: ["--b", "--verbose"], modifyFs: fs => - replaceText( - fs, - "/src/core/tsconfig.json", - "}", - `}, - "references": [ - { - "path": "../zoo" - } - ]`, + fs.writeFileSync( + "core/tsconfig.json", + getFsContentsForDemoProjectReferencesCoreConfig({ + references: [{ + path: "../zoo", + }], + }), ), }); verifyTsc({ scenario: "demo", subScenario: "in bad-ref branch reports the error about files not in rootDir at the import location", fs: () => projFs, - commandLineArgs: ["--b", "/src/tsconfig.json", "--verbose"], + commandLineArgs: ["--b", "--verbose"], modifyFs: fs => prependText( fs, - "/src/core/utilities.ts", + "core/utilities.ts", `import * as A from '../animals'; `, ), diff --git a/src/testRunner/unittests/tsbuild/emitDeclarationOnly.ts b/src/testRunner/unittests/tsbuild/emitDeclarationOnly.ts index a6ad5a3198433..03e9bd3b87178 100644 --- a/src/testRunner/unittests/tsbuild/emitDeclarationOnly.ts +++ b/src/testRunner/unittests/tsbuild/emitDeclarationOnly.ts @@ -1,16 +1,66 @@ +import { + dedent, +} from "../../_namespaces/Utils"; import * as vfs from "../../_namespaces/vfs"; +import { + jsonToReadableText, +} from "../helpers"; import { verifyTsc, } from "../helpers/tsc"; import { - loadProjectFromDisk, + loadProjectFromFiles, replaceText, } from "../helpers/vfs"; describe("unittests:: tsbuild:: on project with emitDeclarationOnly set to true", () => { let projFs: vfs.FileSystem; before(() => { - projFs = loadProjectFromDisk("tests/projects/emitDeclarationOnly"); + projFs = loadProjectFromFiles({ + "/src/src/a.ts": dedent` + import { B } from "./b"; + + export interface A { + b: B; + } + `, + "/src/src/b.ts": dedent` + import { C } from "./c"; + + export interface B { + b: C; + } + `, + "/src/src/c.ts": dedent` + import { A } from "./a"; + + export interface C { + a: A; + } + `, + "/src/src/index.ts": dedent` + export { A } from "./a"; + export { B } from "./b"; + export { C } from "./c"; + `, + "/src/tsconfig.json": jsonToReadableText({ + compilerOptions: { + incremental: true, + target: "es5", + module: "commonjs", + declaration: true, + declarationMap: true, + sourceMap: true, + outDir: "./lib", + composite: true, + strict: true, + esModuleInterop: true, + alwaysStrict: true, + rootDir: "src", + emitDeclarationOnly: true, + }, + }), + }); }); after(() => { projFs = undefined!; diff --git a/src/testRunner/unittests/tsbuild/emptyFiles.ts b/src/testRunner/unittests/tsbuild/emptyFiles.ts index db36b9f88cd28..779f0a05186bb 100644 --- a/src/testRunner/unittests/tsbuild/emptyFiles.ts +++ b/src/testRunner/unittests/tsbuild/emptyFiles.ts @@ -1,31 +1,60 @@ -import * as vfs from "../../_namespaces/vfs"; +import { + jsonToReadableText, +} from "../helpers"; import { verifyTsc, } from "../helpers/tsc"; import { - loadProjectFromDisk, + loadProjectFromFiles, } from "../helpers/vfs"; describe("unittests:: tsbuild - empty files option in tsconfig", () => { - let projFs: vfs.FileSystem; - before(() => { - projFs = loadProjectFromDisk("tests/projects/empty-files"); - }); - after(() => { - projFs = undefined!; - }); - verifyTsc({ scenario: "emptyFiles", subScenario: "has empty files diagnostic when files is empty and no references are provided", - fs: () => projFs, + fs: () => + loadProjectFromFiles({ + "/src/no-references/tsconfig.json": jsonToReadableText({ + references: [], + files: [], + compilerOptions: { + composite: true, + declaration: true, + forceConsistentCasingInFileNames: true, + skipDefaultLibCheck: true, + }, + }), + }), commandLineArgs: ["--b", "/src/no-references"], }); verifyTsc({ scenario: "emptyFiles", subScenario: "does not have empty files diagnostic when files is empty and references are provided", - fs: () => projFs, + fs: () => + loadProjectFromFiles({ + "/src/core/index.ts": "export function multiply(a: number, b: number) { return a * b; }", + "/src/core/tsconfig.json": jsonToReadableText({ + compilerOptions: { + composite: true, + declaration: true, + declarationMap: true, + skipDefaultLibCheck: true, + }, + }), + "/src/with-references/tsconfig.json": jsonToReadableText({ + references: [ + { path: "../core" }, + ], + files: [], + compilerOptions: { + composite: true, + declaration: true, + forceConsistentCasingInFileNames: true, + skipDefaultLibCheck: true, + }, + }), + }), commandLineArgs: ["--b", "/src/with-references"], }); }); diff --git a/src/testRunner/unittests/tsbuild/fileDelete.ts b/src/testRunner/unittests/tsbuild/fileDelete.ts index c748507ff6267..dbaf4a791c7e9 100644 --- a/src/testRunner/unittests/tsbuild/fileDelete.ts +++ b/src/testRunner/unittests/tsbuild/fileDelete.ts @@ -2,6 +2,9 @@ import * as ts from "../../_namespaces/ts"; import { dedent, } from "../../_namespaces/Utils"; +import { + jsonToReadableText, +} from "../helpers"; import { compilerOptionsToConfigJson, } from "../helpers/contents"; @@ -25,7 +28,7 @@ describe("unittests:: tsbuild:: fileDelete::", () => { export function child2() { } `, - "/src/child/tsconfig.json": JSON.stringify({ + "/src/child/tsconfig.json": jsonToReadableText({ compilerOptions: compilerOptionsToConfigJson(childOptions), }), ...(mainOptions ? { @@ -35,7 +38,7 @@ describe("unittests:: tsbuild:: fileDelete::", () => { child(); } `, - "/src/main/tsconfig.json": JSON.stringify({ + "/src/main/tsconfig.json": jsonToReadableText({ compilerOptions: compilerOptionsToConfigJson(mainOptions), references: [{ path: "../child" }], }), diff --git a/src/testRunner/unittests/tsbuild/graphOrdering.ts b/src/testRunner/unittests/tsbuild/graphOrdering.ts index 26e87c266a644..1b2adbb160ee1 100644 --- a/src/testRunner/unittests/tsbuild/graphOrdering.ts +++ b/src/testRunner/unittests/tsbuild/graphOrdering.ts @@ -1,6 +1,9 @@ import * as fakes from "../../_namespaces/fakes"; import * as ts from "../../_namespaces/ts"; import * as vfs from "../../_namespaces/vfs"; +import { + jsonToReadableText, +} from "../helpers"; describe("unittests:: tsbuild - graph-ordering", () => { let host: fakes.SolutionBuilderHost | undefined; @@ -80,15 +83,11 @@ describe("unittests:: tsbuild - graph-ordering", () => { fileSystem.mkdirpSync(`/project/${proj}`); fileSystem.writeFileSync(`/project/${proj}/${proj}.ts`, "export {}"); const configFileName = getProjectFileName(proj); - const configContent = JSON.stringify( - { - compilerOptions: { composite: true }, - files: [`./${proj}.ts`], - references: deps.filter(d => d[0] === proj).map(d => ({ path: `../${d[1]}` })), - }, - undefined, - 2, - ); + const configContent = jsonToReadableText({ + compilerOptions: { composite: true }, + files: [`./${proj}.ts`], + references: deps.filter(d => d[0] === proj).map(d => ({ path: `../${d[1]}` })), + }); fileSystem.writeFileSync(configFileName, configContent); projFileNames.push(configFileName); } diff --git a/src/testRunner/unittests/tsbuild/inferredTypeFromTransitiveModule.ts b/src/testRunner/unittests/tsbuild/inferredTypeFromTransitiveModule.ts index 52ac511c51769..95cef8c1d24cb 100644 --- a/src/testRunner/unittests/tsbuild/inferredTypeFromTransitiveModule.ts +++ b/src/testRunner/unittests/tsbuild/inferredTypeFromTransitiveModule.ts @@ -1,17 +1,74 @@ +import { + dedent, +} from "../../_namespaces/Utils"; import * as vfs from "../../_namespaces/vfs"; +import { + jsonToReadableText, +} from "../helpers"; import { verifyTsc, } from "../helpers/tsc"; import { appendText, - loadProjectFromDisk, + loadProjectFromFiles, replaceText, } from "../helpers/vfs"; describe("unittests:: tsbuild:: inferredTypeFromTransitiveModule::", () => { let projFs: vfs.FileSystem; before(() => { - projFs = loadProjectFromDisk("tests/projects/inferredTypeFromTransitiveModule"); + projFs = loadProjectFromFiles({ + "/src/bar.ts": dedent` + interface RawAction { + (...args: any[]): Promise | void; + } + interface ActionFactory { + (target: T): T; + } + declare function foo(): ActionFactory; + export default foo()(function foobar(param: string): void { + }); + `, + "/src/bundling.ts": dedent` + export class LazyModule { + constructor(private importCallback: () => Promise) {} + } + + export class LazyAction< + TAction extends (...args: any[]) => any, + TModule + > { + constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) { + } + } + `, + "/src/global.d.ts": dedent` + interface PromiseConstructor { + new (): Promise; + } + declare var Promise: PromiseConstructor; + interface Promise { + } + `, + "/src/index.ts": dedent` + import { LazyAction, LazyModule } from './bundling'; + const lazyModule = new LazyModule(() => + import('./lazyIndex') + ); + export const lazyBar = new LazyAction(lazyModule, m => m.bar); + `, + "/src/lazyIndex.ts": dedent` + export { default as bar } from './bar'; + `, + "/src/tsconfig.json": jsonToReadableText({ + compilerOptions: { + target: "es5", + declaration: true, + outDir: "obj", + incremental: true, + }, + }), + }); }); after(() => { projFs = undefined!; diff --git a/src/testRunner/unittests/tsbuild/lateBoundSymbol.ts b/src/testRunner/unittests/tsbuild/lateBoundSymbol.ts index 3d47aaad0207d..e6b8d275bb9a7 100644 --- a/src/testRunner/unittests/tsbuild/lateBoundSymbol.ts +++ b/src/testRunner/unittests/tsbuild/lateBoundSymbol.ts @@ -1,16 +1,50 @@ +import { + dedent, +} from "../../_namespaces/Utils"; +import { + jsonToReadableText, +} from "../helpers"; import { verifyTsc, } from "../helpers/tsc"; import { appendText, - loadProjectFromDisk, + loadProjectFromFiles, replaceText, } from "../helpers/vfs"; describe("unittests:: tsbuild:: lateBoundSymbol:: interface is merged and contains late bound member", () => { verifyTsc({ subScenario: "interface is merged and contains late bound member", - fs: () => loadProjectFromDisk("tests/projects/lateBoundSymbol"), + fs: () => + loadProjectFromFiles({ + "/src/src/globals.d.ts": dedent` + interface SymbolConstructor { + (description?: string | number): symbol; + } + declare var Symbol: SymbolConstructor; + `, + "/src/src/hkt.ts": `export interface HKT { }`, + "/src/src/main.ts": dedent` + import { HKT } from "./hkt"; + + const sym = Symbol(); + + declare module "./hkt" { + interface HKT { + [sym]: { a: T } + } + } + const x = 10; + type A = HKT[typeof sym]; + `, + "/src/tsconfig.json": jsonToReadableText({ + compilerOptions: { + rootDir: "src", + incremental: true, + }, + }), + }), scenario: "lateBoundSymbol", commandLineArgs: ["--b", "/src/tsconfig.json", "--verbose"], edits: [ diff --git a/src/testRunner/unittests/tsbuild/moduleResolution.ts b/src/testRunner/unittests/tsbuild/moduleResolution.ts index 2a239547eef3e..7085ff7c0cb6f 100644 --- a/src/testRunner/unittests/tsbuild/moduleResolution.ts +++ b/src/testRunner/unittests/tsbuild/moduleResolution.ts @@ -1,5 +1,8 @@ import * as ts from "../../_namespaces/ts"; import * as Utils from "../../_namespaces/Utils"; +import { + jsonToReadableText, +} from "../helpers"; import { noChangeOnlyRuns, verifyTsc, @@ -26,7 +29,7 @@ describe("unittests:: tsbuild:: moduleResolution:: handles the modules and optio }, { path: `/user/username/projects/myproject/packages/pkg1/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { outDir: "build", ...optionsToExtend }, references: [{ path: "../pkg2" }], }), @@ -41,7 +44,7 @@ describe("unittests:: tsbuild:: moduleResolution:: handles the modules and optio }, { path: `/user/username/projects/myproject/packages/pkg2/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { composite: true, outDir: "build", @@ -52,7 +55,7 @@ describe("unittests:: tsbuild:: moduleResolution:: handles the modules and optio }, { path: `/user/username/projects/myproject/packages/pkg2/package.json`, - content: JSON.stringify({ + content: jsonToReadableText({ name: "pkg2", version: "1.0.0", main: "build/index.js", @@ -86,13 +89,13 @@ describe("unittests:: tsbuild:: moduleResolution:: handles the modules and optio fs: () => loadProjectFromFiles({ "/src/packages/pkg1_index.ts": `export const theNum: TheNum = "type1";`, - "/src/packages/pkg1.tsconfig.json": JSON.stringify({ + "/src/packages/pkg1.tsconfig.json": jsonToReadableText({ compilerOptions: { composite: true, typeRoots: ["./typeroot1"] }, files: ["./pkg1_index.ts"], }), "/src/packages/typeroot1/sometype/index.d.ts": Utils.dedent`declare type TheNum = "type1";`, "/src/packages/pkg2_index.ts": `export const theNum: TheNum2 = "type2";`, - "/src/packages/pkg2.tsconfig.json": JSON.stringify({ + "/src/packages/pkg2.tsconfig.json": jsonToReadableText({ compilerOptions: { composite: true, typeRoots: ["./typeroot2"] }, files: ["./pkg2_index.ts"], }), @@ -109,22 +112,22 @@ describe("unittests:: tsbuild:: moduleResolution:: impliedNodeFormat differs bet fs: () => loadProjectFromFiles({ "/src/projects/a/src/index.ts": "", - "/src/projects/a/tsconfig.json": JSON.stringify({ + "/src/projects/a/tsconfig.json": jsonToReadableText({ compilerOptions: { strict: true }, }), "/src/projects/b/src/index.ts": Utils.dedent` import pg from "pg"; pg.foo(); `, - "/src/projects/b/tsconfig.json": JSON.stringify({ + "/src/projects/b/tsconfig.json": jsonToReadableText({ compilerOptions: { strict: true, module: "node16" }, }), - "/src/projects/b/package.json": JSON.stringify({ + "/src/projects/b/package.json": jsonToReadableText({ name: "b", type: "module", }), "/src/projects/node_modules/@types/pg/index.d.ts": "export function foo(): void;", - "/src/projects/node_modules/@types/pg/package.json": JSON.stringify({ + "/src/projects/node_modules/@types/pg/package.json": jsonToReadableText({ name: "@types/pg", types: "index.d.ts", }), diff --git a/src/testRunner/unittests/tsbuild/noEmit.ts b/src/testRunner/unittests/tsbuild/noEmit.ts index 39b1282c8e003..58e2a779fd32f 100644 --- a/src/testRunner/unittests/tsbuild/noEmit.ts +++ b/src/testRunner/unittests/tsbuild/noEmit.ts @@ -1,3 +1,6 @@ +import { + jsonToReadableText, +} from "../helpers"; import { noChangeRun, verifyTsc, @@ -14,7 +17,7 @@ describe("unittests:: tsbuild:: noEmit", () => { fs: () => loadProjectFromFiles({ "/src/a.ts": aTsContent, - "/src/tsconfig.json": JSON.stringify({ + "/src/tsconfig.json": jsonToReadableText({ compilerOptions: { noEmit: true }, }), }), diff --git a/src/testRunner/unittests/tsbuild/noEmitOnError.ts b/src/testRunner/unittests/tsbuild/noEmitOnError.ts index 182e6322ab5e3..996ff3c3e3bdd 100644 --- a/src/testRunner/unittests/tsbuild/noEmitOnError.ts +++ b/src/testRunner/unittests/tsbuild/noEmitOnError.ts @@ -1,16 +1,16 @@ import * as vfs from "../../_namespaces/vfs"; +import { + getFsForNoEmitOnError, +} from "../helpers/noEmitOnError"; import { noChangeRun, verifyTsc, } from "../helpers/tsc"; -import { - loadProjectFromDisk, -} from "../helpers/vfs"; describe("unittests:: tsbuild - with noEmitOnError", () => { let projFs: vfs.FileSystem; before(() => { - projFs = loadProjectFromDisk("tests/projects/noEmitOnError"); + projFs = getFsForNoEmitOnError(); }); after(() => { projFs = undefined!; @@ -20,14 +20,14 @@ describe("unittests:: tsbuild - with noEmitOnError", () => { scenario: "noEmitOnError", subScenario: "syntax errors", fs: () => projFs, - commandLineArgs: ["--b", "/src/tsconfig.json"], + commandLineArgs: ["--b"], edits: [ noChangeRun, { caption: "Fix error", edit: fs => fs.writeFileSync( - "/src/src/main.ts", + "src/main.ts", `import { A } from "../shared/types/db"; const a = { lastName: 'sdsd' @@ -44,14 +44,14 @@ const a = { scenario: "noEmitOnError", subScenario: "syntax errors with incremental", fs: () => projFs, - commandLineArgs: ["--b", "/src/tsconfig.json", "--incremental"], + commandLineArgs: ["--b", "--incremental"], edits: [ noChangeRun, { caption: "Fix error", edit: fs => fs.writeFileSync( - "/src/src/main.ts", + "src/main.ts", `import { A } from "../shared/types/db"; const a = { lastName: 'sdsd' @@ -70,19 +70,19 @@ const a = { fs: () => projFs, modifyFs: fs => fs.writeFileSync( - "/src/src/main.ts", + "src/main.ts", `import { A } from "../shared/types/db"; const a: string = 10;`, "utf-8", ), - commandLineArgs: ["--b", "/src/tsconfig.json"], + commandLineArgs: ["--b"], edits: [ noChangeRun, { caption: "Fix error", edit: fs => fs.writeFileSync( - "/src/src/main.ts", + "src/main.ts", `import { A } from "../shared/types/db"; const a: string = "hello";`, "utf-8", @@ -99,19 +99,19 @@ const a: string = "hello";`, fs: () => projFs, modifyFs: fs => fs.writeFileSync( - "/src/src/main.ts", + "src/main.ts", `import { A } from "../shared/types/db"; const a: string = 10;`, "utf-8", ), - commandLineArgs: ["--b", "/src/tsconfig.json", "--incremental"], + commandLineArgs: ["--b", "--incremental"], edits: [ noChangeRun, { caption: "Fix error", edit: fs => fs.writeFileSync( - "/src/src/main.ts", + "src/main.ts", `import { A } from "../shared/types/db"; const a: string = "hello";`, "utf-8", diff --git a/src/testRunner/unittests/tsbuild/outFile.ts b/src/testRunner/unittests/tsbuild/outFile.ts index 92df313b09741..3d7af3010e26f 100644 --- a/src/testRunner/unittests/tsbuild/outFile.ts +++ b/src/testRunner/unittests/tsbuild/outFile.ts @@ -1,6 +1,12 @@ import * as fakes from "../../_namespaces/fakes"; import * as ts from "../../_namespaces/ts"; +import { + dedent, +} from "../../_namespaces/Utils"; import * as vfs from "../../_namespaces/vfs"; +import { + jsonToReadableText, +} from "../helpers"; import { createSolutionBuilderHostForBaseline, } from "../helpers/solutionBuilder"; @@ -22,7 +28,7 @@ import { appendText, changeStubToRest, enableStrict, - loadProjectFromDisk, + loadProjectFromFiles, prependText, removeRest, replaceText, @@ -32,7 +38,107 @@ describe("unittests:: tsbuild:: outFile::", () => { let outFileFs: vfs.FileSystem; let outFileWithBuildFs: vfs.FileSystem; before(() => { - outFileFs = loadProjectFromDisk("tests/projects/outfile-concat"); + outFileFs = loadProjectFromFiles({ + "/src/first/first_PART1.ts": dedent` + interface TheFirst { + none: any; + } + + const s = "Hello, world"; + + interface NoJsForHereEither { + none: any; + } + + console.log(s); + `, + "/src/first/first_part2.ts": dedent` + console.log(f()); + `, + "/src/first/first_part3.ts": dedent` + function f() { + return "JS does hoists"; + } + `, + "/src/first/tsconfig.json": jsonToReadableText({ + compilerOptions: { + target: "es5", + composite: true, + removeComments: true, + strict: false, + sourceMap: true, + declarationMap: true, + outFile: "./bin/first-output.js", + skipDefaultLibCheck: true, + }, + files: [ + "first_PART1.ts", + "first_part2.ts", + "first_part3.ts", + ], + references: [], + }), + "/src/second/second_part1.ts": dedent` + namespace N { + // Comment text + } + + namespace N { + function f() { + console.log('testing'); + } + + f(); + } + `, + "/src/second/second_part2.ts": dedent` + class C { + doSomething() { + console.log("something got done"); + } + } + `, + "/src/second/tsconfig.json": jsonToReadableText({ + compilerOptions: { + ignoreDeprecations: "5.0", + target: "es5", + composite: true, + removeComments: true, + strict: false, + sourceMap: true, + declarationMap: true, + declaration: true, + outFile: "../2/second-output.js", + skipDefaultLibCheck: true, + }, + references: [], + }), + "/src/third/third_part1.ts": dedent` + var c = new C(); + c.doSomething(); + `, + "/src/third/tsconfig.json": jsonToReadableText({ + compilerOptions: { + ignoreDeprecations: "5.0", + target: "es5", + composite: true, + removeComments: true, + strict: false, + sourceMap: true, + declarationMap: true, + declaration: true, + outFile: "./thirdjs/output/third-output.js", + skipDefaultLibCheck: true, + }, + files: [ + "third_part1.ts", + ], + references: [ + { path: "../first", prepend: true }, + { path: "../second", prepend: true }, + ], + }), + }); }); after(() => { outFileFs = undefined!; @@ -497,9 +603,15 @@ ${internal} enum internalEnum { a, b, c }`, "/src/second/tsconfig.json", "[", `[ - { "path": "../first", "prepend": true }`, + { "path": "../first", "prepend": true }\n `, + ); + fs.writeFileSync( + "/src/third/tsconfig.json", + jsonToReadableText({ + ...JSON.parse(fs.readFileSync("/src/third/tsconfig.json", "utf-8")!), + references: [{ path: "../second", prepend: true }], + }), ); - replaceText(fs, "/src/third/tsconfig.json", `{ "path": "../first", "prepend": true },`, ""); } function stripInternalWithDependentOrder(fs: vfs.FileSystem, removeCommentsDisabled?: boolean, jsDocStyle?: boolean) { @@ -632,7 +744,7 @@ ${internal} enum internalEnum { a, b, c }`, fs.writeFileSync("/src/third/third_part1.ts", "const B = 2;"); fs.writeFileSync( "/src/first/tsconfig.json", - JSON.stringify({ + jsonToReadableText({ compilerOptions: { composite: true, declaration: true, @@ -646,7 +758,7 @@ ${internal} enum internalEnum { a, b, c }`, ); fs.writeFileSync( "/src/third/tsconfig.json", - JSON.stringify({ + jsonToReadableText({ compilerOptions: { ignoreDeprecations: "5.0", composite: true, @@ -700,8 +812,8 @@ ${internal} enum internalEnum { a, b, c }`, commandLineArgs: ["--b", "/src/third", "--verbose"], modifyFs: fs => { // No prepend - replaceText(fs, "/src/third/tsconfig.json", `{ "path": "../first", "prepend": true }`, `{ "path": "../first" }`); - replaceText(fs, "/src/third/tsconfig.json", `{ "path": "../second", "prepend": true }`, `{ "path": "../second" }`); + replaceText(fs, "/src/third/tsconfig.json", `"prepend": true`, ""); + replaceText(fs, "/src/third/tsconfig.json", `"prepend": true`, ""); // Non Modules replaceText(fs, "/src/first/tsconfig.json", `"composite": true,`, `"composite": true, "module": "none",`); diff --git a/src/testRunner/unittests/tsbuild/outputPaths.ts b/src/testRunner/unittests/tsbuild/outputPaths.ts index 5383e9129db69..d054707141306 100644 --- a/src/testRunner/unittests/tsbuild/outputPaths.ts +++ b/src/testRunner/unittests/tsbuild/outputPaths.ts @@ -1,5 +1,8 @@ import * as fakes from "../../_namespaces/fakes"; import * as ts from "../../_namespaces/ts"; +import { + jsonToReadableText, +} from "../helpers"; import { noChangeRun, TestTscEdit, @@ -48,7 +51,7 @@ describe("unittests:: tsbuild - output file paths", () => { fs: () => loadProjectFromFiles({ "/src/src/index.ts": "export const x = 10;", - "/src/tsconfig.json": JSON.stringify({ + "/src/tsconfig.json": jsonToReadableText({ compilerOptions: { outDir: "dist", }, @@ -62,7 +65,7 @@ describe("unittests:: tsbuild - output file paths", () => { fs: () => loadProjectFromFiles({ "/src/src/index.ts": "export const x = 10;", - "/src/tsconfig.json": JSON.stringify({ + "/src/tsconfig.json": jsonToReadableText({ compilerOptions: { outDir: "dist", composite: true, @@ -77,7 +80,7 @@ describe("unittests:: tsbuild - output file paths", () => { fs: () => loadProjectFromFiles({ "/src/src/index.ts": "export const x = 10;", - "/src/tsconfig.json": JSON.stringify({ + "/src/tsconfig.json": jsonToReadableText({ compilerOptions: { outDir: "dist", rootDir: "src", @@ -93,7 +96,7 @@ describe("unittests:: tsbuild - output file paths", () => { loadProjectFromFiles({ "/src/src/index.ts": "export const x = 10;", "/src/types/type.ts": "export type t = string;", - "/src/tsconfig.json": JSON.stringify({ + "/src/tsconfig.json": jsonToReadableText({ compilerOptions: { outDir: "dist", rootDir: "src", @@ -109,7 +112,7 @@ describe("unittests:: tsbuild - output file paths", () => { loadProjectFromFiles({ "/src/src/index.ts": "export const x = 10;", "/src/types/type.ts": "export type t = string;", - "/src/tsconfig.json": JSON.stringify({ + "/src/tsconfig.json": jsonToReadableText({ compilerOptions: { outDir: "dist", rootDir: "src", diff --git a/src/testRunner/unittests/tsbuild/publicApi.ts b/src/testRunner/unittests/tsbuild/publicApi.ts index 0fc52db89c438..7c7f91bac2359 100644 --- a/src/testRunner/unittests/tsbuild/publicApi.ts +++ b/src/testRunner/unittests/tsbuild/publicApi.ts @@ -1,6 +1,9 @@ import * as fakes from "../../_namespaces/fakes"; import * as ts from "../../_namespaces/ts"; import * as vfs from "../../_namespaces/vfs"; +import { + jsonToReadableText, +} from "../helpers"; import { baselinePrograms, commandLineCallbacks, @@ -18,14 +21,14 @@ describe("unittests:: tsbuild:: Public API with custom transformers when passed let sys: TscCompileSystem; before(() => { const inputFs = loadProjectFromFiles({ - "/src/tsconfig.json": JSON.stringify({ + "/src/tsconfig.json": jsonToReadableText({ references: [ { path: "./shared/tsconfig.json" }, { path: "./webpack/tsconfig.json" }, ], files: [], }), - "/src/shared/tsconfig.json": JSON.stringify({ + "/src/shared/tsconfig.json": jsonToReadableText({ compilerOptions: { composite: true }, }), "/src/shared/index.ts": `export function f1() { } @@ -33,7 +36,7 @@ export class c { } export enum e { } // leading export function f2() { } // trailing`, - "/src/webpack/tsconfig.json": JSON.stringify({ + "/src/webpack/tsconfig.json": jsonToReadableText({ compilerOptions: { composite: true, }, diff --git a/src/testRunner/unittests/tsbuild/referencesWithRootDirInParent.ts b/src/testRunner/unittests/tsbuild/referencesWithRootDirInParent.ts index db3a0bcda429e..1ad927b06b6f7 100644 --- a/src/testRunner/unittests/tsbuild/referencesWithRootDirInParent.ts +++ b/src/testRunner/unittests/tsbuild/referencesWithRootDirInParent.ts @@ -1,16 +1,54 @@ +import { + dedent, +} from "../../_namespaces/Utils"; import * as vfs from "../../_namespaces/vfs"; +import { + jsonToReadableText, +} from "../helpers"; import { verifyTsc, } from "../helpers/tsc"; import { - loadProjectFromDisk, + loadProjectFromFiles, replaceText, } from "../helpers/vfs"; describe("unittests:: tsbuild:: with rootDir of project reference in parentDirectory", () => { let projFs: vfs.FileSystem; before(() => { - projFs = loadProjectFromDisk("tests/projects/projectReferenceWithRootDirInParent"); + projFs = loadProjectFromFiles({ + "/src/src/main/a.ts": dedent` + import { b } from './b'; + const a = b; + `, + "/src/src/main/b.ts": dedent` + export const b = 0; + `, + "/src/src/main/tsconfig.json": jsonToReadableText({ + extends: "../../tsconfig.base.json", + references: [ + { path: "../other" }, + ], + }), + "/src/src/other/other.ts": dedent` + export const Other = 0; + `, + "/src/src/other/tsconfig.json": jsonToReadableText({ + extends: "../../tsconfig.base.json", + }), + "/src/tsconfig.base.json": jsonToReadableText({ + compilerOptions: { + composite: true, + declaration: true, + rootDir: "./src/", + outDir: "./dist/", + skipDefaultLibCheck: true, + }, + exclude: [ + "node_modules", + ], + }), + }); }); after(() => { @@ -40,14 +78,14 @@ describe("unittests:: tsbuild:: with rootDir of project reference in parentDirec modifyFs: fs => { fs.writeFileSync( "/src/src/main/tsconfig.json", - JSON.stringify({ + jsonToReadableText({ compilerOptions: { composite: true, outDir: "../../dist/" }, references: [{ path: "../other" }], }), ); fs.writeFileSync( "/src/src/other/tsconfig.json", - JSON.stringify({ + jsonToReadableText({ compilerOptions: { composite: true, outDir: "../../dist/" }, }), ); @@ -64,14 +102,14 @@ describe("unittests:: tsbuild:: with rootDir of project reference in parentDirec fs.renameSync("/src/src/other/tsconfig.json", "/src/src/other/tsconfig.other.json"); fs.writeFileSync( "/src/src/main/tsconfig.main.json", - JSON.stringify({ + jsonToReadableText({ compilerOptions: { composite: true, outDir: "../../dist/" }, references: [{ path: "../other/tsconfig.other.json" }], }), ); fs.writeFileSync( "/src/src/other/tsconfig.other.json", - JSON.stringify({ + jsonToReadableText({ compilerOptions: { composite: true, outDir: "../../dist/" }, }), ); diff --git a/src/testRunner/unittests/tsbuild/resolveJsonModule.ts b/src/testRunner/unittests/tsbuild/resolveJsonModule.ts index 4159b340dbb00..b0b1bef064ba0 100644 --- a/src/testRunner/unittests/tsbuild/resolveJsonModule.ts +++ b/src/testRunner/unittests/tsbuild/resolveJsonModule.ts @@ -4,6 +4,9 @@ import { import { dedent, } from "../../_namespaces/Utils"; +import { + jsonToReadableText, +} from "../helpers"; import { noChangeOnlyRuns, verifyTsc, @@ -17,35 +20,27 @@ import { describe("unittests:: tsbuild:: with resolveJsonModule option on project resolveJsonModuleAndComposite", () => { function getProjFs(tsconfigFiles: object, additionalCompilerOptions?: CompilerOptions) { return loadProjectFromFiles({ - "/src/src/hello.json": JSON.stringify( - { - hello: "world", - }, - undefined, - " ", - ), + "/src/src/hello.json": jsonToReadableText({ + hello: "world", + }), "/src/src/index.ts": dedent` import hello from "./hello.json" export default hello.hello `, - "/src/tsconfig.json": JSON.stringify( - { - compilerOptions: { - composite: true, - moduleResolution: "node", - module: "commonjs", - resolveJsonModule: true, - esModuleInterop: true, - allowSyntheticDefaultImports: true, - outDir: "dist", - skipDefaultLibCheck: true, - ...additionalCompilerOptions, - }, - ...tsconfigFiles, + "/src/tsconfig.json": jsonToReadableText({ + compilerOptions: { + composite: true, + moduleResolution: "node", + module: "commonjs", + resolveJsonModule: true, + esModuleInterop: true, + allowSyntheticDefaultImports: true, + outDir: "dist", + skipDefaultLibCheck: true, + ...additionalCompilerOptions, }, - undefined, - " ", - ), + ...tsconfigFiles, + }), }); } @@ -169,59 +164,43 @@ describe("unittests:: tsbuild:: with resolveJsonModule option on project importJ subScenario: "importing json module from project reference", fs: () => loadProjectFromFiles({ - "/src/strings/foo.json": JSON.stringify( - { - foo: "bar baz", - }, - undefined, - " ", - ), - "/src/strings/tsconfig.json": JSON.stringify( - { - extends: "../tsconfig.json", - include: ["foo.json"], - references: [], - }, - undefined, - " ", - ), + "/src/strings/foo.json": jsonToReadableText({ + foo: "bar baz", + }), + "/src/strings/tsconfig.json": jsonToReadableText({ + extends: "../tsconfig.json", + include: ["foo.json"], + references: [], + }), "/src/main/index.ts": dedent` import { foo } from '../strings/foo.json'; console.log(foo); `, - "/src/main/tsconfig.json": JSON.stringify( - { - extends: "../tsconfig.json", - include: [ - "./**/*.ts", - ], - references: [{ - path: "../strings/tsconfig.json", - }], - }, - undefined, - " ", - ), - "/src/tsconfig.json": JSON.stringify( - { - compilerOptions: { - target: "es5", - module: "commonjs", - rootDir: "./", - composite: true, - resolveJsonModule: true, - strict: true, - esModuleInterop: true, - }, - references: [ - { path: "./strings/tsconfig.json" }, - { path: "./main/tsconfig.json" }, - ], - files: [], + "/src/main/tsconfig.json": jsonToReadableText({ + extends: "../tsconfig.json", + include: [ + "./**/*.ts", + ], + references: [{ + path: "../strings/tsconfig.json", + }], + }), + "/src/tsconfig.json": jsonToReadableText({ + compilerOptions: { + target: "es5", + module: "commonjs", + rootDir: "./", + composite: true, + resolveJsonModule: true, + strict: true, + esModuleInterop: true, }, - undefined, - " ", - ), + references: [ + { path: "./strings/tsconfig.json" }, + { path: "./main/tsconfig.json" }, + ], + files: [], + }), }), commandLineArgs: ["--b", "src/tsconfig.json", "--verbose", "--explainFiles"], edits: noChangeOnlyRuns, diff --git a/src/testRunner/unittests/tsbuild/roots.ts b/src/testRunner/unittests/tsbuild/roots.ts index 0be83bc907af9..e8c3cb3a5c01a 100644 --- a/src/testRunner/unittests/tsbuild/roots.ts +++ b/src/testRunner/unittests/tsbuild/roots.ts @@ -1,6 +1,9 @@ import { dedent, } from "../../_namespaces/Utils"; +import { + jsonToReadableText, +} from "../helpers"; import { verifyTsc, } from "../helpers/tsc"; @@ -17,7 +20,7 @@ describe("unittests:: tsbuild:: roots::", () => { loadProjectFromFiles({ "/src/file1.ts": `export const x = "hello";`, "/src/file2.ts": `export const y = "world";`, - "/src/tsconfig.json": JSON.stringify({ + "/src/tsconfig.json": jsonToReadableText({ compilerOptions: { composite: true }, include: ["*.ts"], }), @@ -42,7 +45,7 @@ describe("unittests:: tsbuild:: roots::", () => { "/src/file2.ts": `export const y = "world";`, "/src/file3.ts": `export const y = "world";`, "/src/file4.ts": `export const y = "world";`, - "/src/tsconfig.json": JSON.stringify({ + "/src/tsconfig.json": jsonToReadableText({ compilerOptions: { composite: true }, include: ["*.ts"], }), @@ -69,7 +72,7 @@ describe("unittests:: tsbuild:: roots::", () => { import { random } from "./random"; export const y = "world"; `, - "/src/tsconfig.json": JSON.stringify({ + "/src/tsconfig.json": jsonToReadableText({ compilerOptions: { composite: true }, include: ["file*.ts"], }), @@ -109,7 +112,7 @@ describe("unittests:: tsbuild:: roots::", () => { import { random } from "./random2"; export const nonConsecutive = "hello"; `, - "/src/tsconfig.json": JSON.stringify({ + "/src/tsconfig.json": jsonToReadableText({ compilerOptions: { composite: true }, include: ["file*.ts", "nonconsecutive*.ts", "asArray*.ts", "anotherNonConsecutive.ts"], }), diff --git a/src/testRunner/unittests/tsbuild/sample.ts b/src/testRunner/unittests/tsbuild/sample.ts index 6bea86bc8f002..86ddc0b5d971c 100644 --- a/src/testRunner/unittests/tsbuild/sample.ts +++ b/src/testRunner/unittests/tsbuild/sample.ts @@ -2,9 +2,17 @@ import * as fakes from "../../_namespaces/fakes"; import * as Harness from "../../_namespaces/Harness"; import * as ts from "../../_namespaces/ts"; import * as vfs from "../../_namespaces/vfs"; +import { + jsonToReadableText, +} from "../helpers"; import { libContent, + libPath, } from "../helpers/contents"; +import { + getFsForSampleProjectReferences, + getSysForSampleProjectReferences, +} from "../helpers/sampleProjectReferences"; import { createSolutionBuilderHostForBaseline, } from "../helpers/solutionBuilder"; @@ -19,16 +27,12 @@ import { } from "../helpers/tsc"; import { appendText, - loadProjectFromDisk, loadProjectFromFiles, prependText, replaceText, } from "../helpers/vfs"; import { changeToHostTrackingWrittenFiles, - createWatchedSystem, - File, - getTsBuildProjectFilePath, libFile, TestServerHost, } from "../helpers/virtualFileSystemWithWatch"; @@ -37,7 +41,7 @@ describe("unittests:: tsbuild:: on 'sample1' project", () => { let projFs: vfs.FileSystem; let projFsWithBuild: vfs.FileSystem; before(() => { - projFs = loadProjectFromDisk("tests/projects/sample1"); + projFs = getFsForSampleProjectReferences(); }); after(() => { @@ -45,19 +49,12 @@ describe("unittests:: tsbuild:: on 'sample1' project", () => { projFsWithBuild = undefined!; }); - function getTsBuildProjectFile(project: string, file: string): File { - return { - path: getTsBuildProjectFilePath(project, file), - content: projFs.readFileSync(`/src/${project}/${file}`, "utf8")!, - }; - } - function getSampleFsAfterBuild() { if (projFsWithBuild) return projFsWithBuild; const fs = projFs.shadow(); - const sys = new fakes.System(fs, { executingFilePath: "/lib/tsc" }); + const sys = new fakes.System(fs, { executingFilePath: libFile.path }); const host = createSolutionBuilderHostForBaseline(sys as TscCompileSystem); - const builder = ts.createSolutionBuilder(host, ["/src/tests"], {}); + const builder = ts.createSolutionBuilder(host, ["tests"], {}); builder.build(); fs.makeReadonly(); return projFsWithBuild = fs; @@ -68,11 +65,11 @@ describe("unittests:: tsbuild:: on 'sample1' project", () => { scenario: "sample1", subScenario: "builds correctly when outDir is specified", fs: () => projFs, - commandLineArgs: ["--b", "/src/tests"], + commandLineArgs: ["--b", "tests"], modifyFs: fs => fs.writeFileSync( - "/src/logic/tsconfig.json", - JSON.stringify({ + "logic/tsconfig.json", + jsonToReadableText({ compilerOptions: { composite: true, declaration: true, sourceMap: true, outDir: "outDir" }, references: [{ path: "../core" }], }), @@ -83,11 +80,11 @@ describe("unittests:: tsbuild:: on 'sample1' project", () => { scenario: "sample1", subScenario: "builds correctly when declarationDir is specified", fs: () => projFs, - commandLineArgs: ["--b", "/src/tests"], + commandLineArgs: ["--b", "tests"], modifyFs: fs => fs.writeFileSync( - "/src/logic/tsconfig.json", - JSON.stringify({ + "logic/tsconfig.json", + jsonToReadableText({ compilerOptions: { composite: true, declaration: true, sourceMap: true, declarationDir: "out/decls" }, references: [{ path: "../core" }], }), @@ -98,8 +95,8 @@ describe("unittests:: tsbuild:: on 'sample1' project", () => { scenario: "sample1", subScenario: "builds correctly when project is not composite or doesnt have any references", fs: () => projFs, - commandLineArgs: ["--b", "/src/core", "--verbose"], - modifyFs: fs => replaceText(fs, "/src/core/tsconfig.json", `"composite": true,`, ""), + commandLineArgs: ["--b", "core", "--verbose"], + modifyFs: fs => replaceText(fs, "core/tsconfig.json", `"composite": true,`, ""), }); }); @@ -108,7 +105,7 @@ describe("unittests:: tsbuild:: on 'sample1' project", () => { scenario: "sample1", subScenario: "does not write any files in a dry build", fs: () => projFs, - commandLineArgs: ["--b", "/src/tests", "--dry"], + commandLineArgs: ["--b", "tests", "--dry"], }); }); @@ -117,7 +114,7 @@ describe("unittests:: tsbuild:: on 'sample1' project", () => { scenario: "sample1", subScenario: "removes all files it built", fs: getSampleFsAfterBuild, - commandLineArgs: ["--b", "/src/tests", "--clean"], + commandLineArgs: ["--b", "tests", "--clean"], edits: noChangeOnlyRuns, }); @@ -125,11 +122,11 @@ describe("unittests:: tsbuild:: on 'sample1' project", () => { scenario: "sample1", subScenario: "cleans till project specified", fs: getSampleFsAfterBuild, - commandLineArgs: ["--b", "/src/logic", "--clean"], + commandLineArgs: ["--b", "logic", "--clean"], compile: sys => { const buildHost = createSolutionBuilderHostForBaseline(sys); - const builder = ts.createSolutionBuilder(buildHost, ["/src/third/tsconfig.json"], {}); - sys.exit(builder.clean("/src/logic")); + const builder = ts.createSolutionBuilder(buildHost, ["third/tsconfig.json"], {}); + sys.exit(builder.clean("logic")); }, }); @@ -137,11 +134,11 @@ describe("unittests:: tsbuild:: on 'sample1' project", () => { scenario: "sample1", subScenario: "cleaning project in not build order doesnt throw error", fs: getSampleFsAfterBuild, - commandLineArgs: ["--b", "/src/logic2", "--clean"], + commandLineArgs: ["--b", "logic2", "--clean"], compile: sys => { const buildHost = createSolutionBuilderHostForBaseline(sys); - const builder = ts.createSolutionBuilder(buildHost, ["/src/third/tsconfig.json"], {}); - sys.exit(builder.clean("/src/logic2")); + const builder = ts.createSolutionBuilder(buildHost, ["third/tsconfig.json"], {}); + sys.exit(builder.clean("logic2")); }, }); }); @@ -151,7 +148,7 @@ describe("unittests:: tsbuild:: on 'sample1' project", () => { scenario: "sample1", subScenario: "always builds under with force option", fs: () => projFs, - commandLineArgs: ["--b", "/src/tests", "--force"], + commandLineArgs: ["--b", "tests", "--force"], edits: noChangeOnlyRuns, }); }); @@ -161,23 +158,23 @@ describe("unittests:: tsbuild:: on 'sample1' project", () => { scenario: "sample1", subScenario: "can detect when and what to rebuild", fs: getSampleFsAfterBuild, - commandLineArgs: ["--b", "/src/tests", "--verbose"], + commandLineArgs: ["--b", "tests", "--verbose"], edits: [ // Update a file in the leaf node (tests), only it should rebuild the last one { caption: "Only builds the leaf node project", - edit: fs => fs.writeFileSync("/src/tests/index.ts", "const m = 10;"), + edit: fs => fs.writeFileSync("tests/index.ts", "const m = 10;"), }, // Update a file in the parent (without affecting types), should get fast downstream builds { caption: "Detects type-only changes in upstream projects", - edit: fs => replaceText(fs, "/src/core/index.ts", "HELLO WORLD", "WELCOME PLANET"), + edit: fs => replaceText(fs, "core/index.ts", "HELLO WORLD", "WELCOME PLANET"), }, { caption: "rebuilds when tsconfig changes", edit: fs => { - replaceText(fs, "/src/tests/tsconfig.json", `"composite": true`, `"composite": true, "target": "es2020"`); - fs.writeFileSync("/lib/lib.es2020.full.d.ts", libContent); + replaceText(fs, "tests/tsconfig.json", `"composite": true`, `"composite": true, "target": "es2020"`); + fs.writeFileSync(libPath("es2020.full"), libContent); }, }, ], @@ -187,13 +184,13 @@ describe("unittests:: tsbuild:: on 'sample1' project", () => { scenario: "sample1", subScenario: "when input file text does not change but its modified time changes", fs: () => projFs, - commandLineArgs: ["--b", "/src/tests", "--verbose"], + commandLineArgs: ["--b", "tests", "--verbose"], edits: [ { caption: "upstream project changes without changing file text", edit: fs => { const time = new Date(fs.time()); - fs.utimesSync("/src/core/index.ts", time, time); + fs.utimesSync("core/index.ts", time, time); }, }, ], @@ -203,15 +200,15 @@ describe("unittests:: tsbuild:: on 'sample1' project", () => { scenario: "sample1", subScenario: "when declarationMap changes", fs: () => projFs, - commandLineArgs: ["--b", "/src/tests", "--verbose"], + commandLineArgs: ["--b", "tests", "--verbose"], edits: [ { caption: "Disable declarationMap", - edit: fs => replaceText(fs, "/src/core/tsconfig.json", `"declarationMap": true,`, `"declarationMap": false,`), + edit: fs => replaceText(fs, "core/tsconfig.json", `"declarationMap": true,`, `"declarationMap": false,`), }, { caption: "Enable declarationMap", - edit: fs => replaceText(fs, "/src/core/tsconfig.json", `"declarationMap": false,`, `"declarationMap": true,`), + edit: fs => replaceText(fs, "core/tsconfig.json", `"declarationMap": false,`, `"declarationMap": true,`), }, ], }); @@ -220,14 +217,14 @@ describe("unittests:: tsbuild:: on 'sample1' project", () => { scenario: "sample1", subScenario: "indicates that it would skip builds during a dry build", fs: getSampleFsAfterBuild, - commandLineArgs: ["--b", "/src/tests", "--dry"], + commandLineArgs: ["--b", "tests", "--dry"], }); verifyTsc({ scenario: "sample1", subScenario: "rebuilds from start if force option is set", fs: getSampleFsAfterBuild, - commandLineArgs: ["--b", "/src/tests", "--verbose", "--force"], + commandLineArgs: ["--b", "tests", "--verbose", "--force"], }); verifyTsc({ @@ -250,11 +247,11 @@ describe("unittests:: tsbuild:: on 'sample1' project", () => { scenario: "sample1", subScenario: "rebuilds completely when version in tsbuildinfo doesnt match ts version", fs: getSampleFsAfterBuild, - commandLineArgs: ["--b", "/src/tests", "--verbose"], + commandLineArgs: ["--b", "tests", "--verbose"], compile: sys => { // Buildinfo will have version which does not match with current ts version const buildHost = createSolutionBuilderHostForBaseline(sys, "FakeTSCurrentVersion"); - const builder = ts.createSolutionBuilder(buildHost, ["/src/tests"], { verbose: true }); + const builder = ts.createSolutionBuilder(buildHost, ["tests"], { verbose: true }); sys.exit(builder.build()); }, }); @@ -265,16 +262,16 @@ describe("unittests:: tsbuild:: on 'sample1' project", () => { fs: () => { const fs = projFs.shadow(); const host = fakes.SolutionBuilderHost.create(fs, /*options*/ undefined, /*setParentNodes*/ undefined, ts.createAbstractBuilder); - const builder = ts.createSolutionBuilder(host, ["/src/tests"], { verbose: true }); + const builder = ts.createSolutionBuilder(host, ["tests"], { verbose: true }); builder.build(); fs.makeReadonly(); return fs; }, - commandLineArgs: ["--b", "/src/tests", "--verbose"], + commandLineArgs: ["--b", "tests", "--verbose"], compile: sys => { // Buildinfo will have version which does not match with current ts version const buildHost = createSolutionBuilderHostForBaseline(sys, "FakeTSCurrentVersion"); - const builder = ts.createSolutionBuilder(buildHost, ["/src/tests"], { verbose: true }); + const builder = ts.createSolutionBuilder(buildHost, ["tests"], { verbose: true }); sys.exit(builder.build()); }, }); @@ -283,14 +280,14 @@ describe("unittests:: tsbuild:: on 'sample1' project", () => { scenario: "sample1", subScenario: "rebuilds when extended config file changes", fs: () => projFs, - commandLineArgs: ["--b", "/src/tests", "--verbose"], + commandLineArgs: ["--b", "tests", "--verbose"], modifyFs: fs => { - fs.writeFileSync("/src/tests/tsconfig.base.json", JSON.stringify({ compilerOptions: { target: "es3" } })); - replaceText(fs, "/src/tests/tsconfig.json", `"references": [`, `"extends": "./tsconfig.base.json", "references": [`); + fs.writeFileSync("tests/tsconfig.base.json", jsonToReadableText({ compilerOptions: { target: "es3" } })); + replaceText(fs, "tests/tsconfig.json", `"references": [`, `"extends": "./tsconfig.base.json", "references": [`); }, edits: [{ caption: "incremental-declaration-changes", - edit: fs => fs.writeFileSync("/src/tests/tsconfig.base.json", JSON.stringify({ compilerOptions: {} })), + edit: fs => fs.writeFileSync("tests/tsconfig.base.json", jsonToReadableText({ compilerOptions: {} })), }], }); @@ -298,11 +295,11 @@ describe("unittests:: tsbuild:: on 'sample1' project", () => { scenario: "sample1", subScenario: "builds till project specified", fs: () => projFs, - commandLineArgs: ["--build", "/src/logic/tsconfig.json"], + commandLineArgs: ["--build", "logic/tsconfig.json"], compile: sys => { const buildHost = createSolutionBuilderHostForBaseline(sys); - const builder = ts.createSolutionBuilder(buildHost, ["/src/tests"], {}); - sys.exit(builder.build("/src/logic/tsconfig.json")); + const builder = ts.createSolutionBuilder(buildHost, ["tests"], {}); + sys.exit(builder.build("logic/tsconfig.json")); }, }); @@ -310,43 +307,25 @@ describe("unittests:: tsbuild:: on 'sample1' project", () => { scenario: "sample1", subScenario: "building project in not build order doesnt throw error", fs: () => projFs, - commandLineArgs: ["--build", "/src/logic2/tsconfig.json"], + commandLineArgs: ["--build", "logic2/tsconfig.json"], compile: sys => { const buildHost = createSolutionBuilderHostForBaseline(sys); - const builder = ts.createSolutionBuilder(buildHost, ["/src/tests"], {}); - sys.exit(builder.build("/src/logic2/tsconfig.json")); + const builder = ts.createSolutionBuilder(buildHost, ["tests"], {}); + sys.exit(builder.build("logic2/tsconfig.json")); }, }); it("building using getNextInvalidatedProject", () => { - const coreConfig = getTsBuildProjectFile("core", "tsconfig.json"); - const coreIndex = getTsBuildProjectFile("core", "index.ts"); - const coreDecl = getTsBuildProjectFile("core", "some_decl.d.ts"); - const coreAnotherModule = getTsBuildProjectFile("core", "anotherModule.ts"); - const logicConfig = getTsBuildProjectFile("logic", "tsconfig.json"); - const logicIndex = getTsBuildProjectFile("logic", "index.ts"); - const testsConfig = getTsBuildProjectFile("tests", "tsconfig.json"); - const testsIndex = getTsBuildProjectFile("tests", "index.ts"); const baseline: string[] = []; let oldSnap: ReturnType | undefined; const system = changeToHostTrackingWrittenFiles( fakes.patchHostForBuildInfoReadWrite( - createWatchedSystem([ - coreConfig, - coreIndex, - coreDecl, - coreAnotherModule, - logicConfig, - logicIndex, - testsConfig, - testsIndex, - libFile, - ]), + getSysForSampleProjectReferences(), ), ); const host = createSolutionBuilderHostForBaseline(system); - const builder = ts.createSolutionBuilder(host, [testsConfig.path], {}); + const builder = ts.createSolutionBuilder(host, ["tests"], {}); baseline.push("Input::"); baselineState(); verifyBuildNextResult(); // core @@ -358,7 +337,7 @@ describe("unittests:: tsbuild:: on 'sample1' project", () => { function verifyBuildNextResult() { const project = builder.getNextInvalidatedProject(); const result = project && project.done(); - baseline.push(`Project Result:: ${JSON.stringify({ project: project?.project, result })}`); + baseline.push(`Project Result:: ${jsonToReadableText({ project: project?.project, result })}`); baselineState(); } @@ -374,11 +353,11 @@ describe("unittests:: tsbuild:: on 'sample1' project", () => { scenario: "sample1", subScenario: "building using buildReferencedProject", fs: () => projFs, - commandLineArgs: ["--build", "/src/logic2/tsconfig.json"], + commandLineArgs: ["--build", "logic2/tsconfig.json"], compile: sys => { const buildHost = createSolutionBuilderHostForBaseline(sys); - const builder = ts.createSolutionBuilder(buildHost, ["/src/tests"], { verbose: true }); - sys.exit(builder.buildReferences("/src/tests")); + const builder = ts.createSolutionBuilder(buildHost, ["tests"], { verbose: true }); + sys.exit(builder.buildReferences("tests")); }, }); }); @@ -388,61 +367,43 @@ describe("unittests:: tsbuild:: on 'sample1' project", () => { scenario: "sample1", subScenario: "does not build downstream projects if upstream projects have errors", fs: () => projFs, - commandLineArgs: ["--b", "/src/tests", "--verbose"], - modifyFs: fs => replaceText(fs, "/src/logic/index.ts", "c.multiply(10, 15)", `c.muitply()`), + commandLineArgs: ["--b", "tests", "--verbose"], + modifyFs: fs => replaceText(fs, "logic/index.ts", "c.multiply(10, 15)", `c.muitply()`), edits: noChangeOnlyRuns, }); }); describe("project invalidation", () => { it("invalidates projects correctly", () => { - const coreConfig = getTsBuildProjectFile("core", "tsconfig.json"); - const coreIndex = getTsBuildProjectFile("core", "index.ts"); - const coreDecl = getTsBuildProjectFile("core", "some_decl.d.ts"); - const coreAnotherModule = getTsBuildProjectFile("core", "anotherModule.ts"); - const logicConfig = getTsBuildProjectFile("logic", "tsconfig.json"); - const logicIndex = getTsBuildProjectFile("logic", "index.ts"); - const testsConfig = getTsBuildProjectFile("tests", "tsconfig.json"); - const testsIndex = getTsBuildProjectFile("tests", "index.ts"); const baseline: string[] = []; let oldSnap: ReturnType | undefined; const system = changeToHostTrackingWrittenFiles( fakes.patchHostForBuildInfoReadWrite( - createWatchedSystem([ - coreConfig, - coreIndex, - coreDecl, - coreAnotherModule, - logicConfig, - logicIndex, - testsConfig, - testsIndex, - libFile, - ]), + getSysForSampleProjectReferences(), ), ); const host = createSolutionBuilderHostForBaseline(system); - const builder = ts.createSolutionBuilder(host, [testsConfig.path], { dry: false, force: false, verbose: false }); + const builder = ts.createSolutionBuilder(host, ["tests"], { dry: false, force: false, verbose: false }); builder.build(); baselineState("Build of project"); // Update a timestamp in the middle project - system.appendFile(logicIndex.path, "function foo() {}"); + system.appendFile("logic/index.ts", "function foo() {}"); // Because we haven't reset the build context, the builder should assume there's nothing to do right now - const status = builder.getUpToDateStatusOfProject(logicConfig.path); + const status = builder.getUpToDateStatusOfProject("logic/tsconfig.json"); baseline.push(`Project should still be upto date: ${ts.UpToDateStatusType[status.type]}`); verifyInvalidation("non Dts change to logic"); // Rebuild this project - system.appendFile(logicIndex.path, `export class cNew {}`); + system.appendFile("logic/index.ts", `export class cNew {}`); verifyInvalidation("Dts change to Logic"); Harness.Baseline.runBaseline(`tsbuild/sample1/invalidates-projects-correctly.js`, baseline.join("\r\n")); function verifyInvalidation(heading: string) { // Rebuild this project - builder.invalidateProject(logicConfig.path as ts.ResolvedConfigFilePath); + builder.invalidateProject("/user/username/projects/sample1/logic/tsconfig.json" as ts.ResolvedConfigFilePath); builder.getNextInvalidatedProject()?.done(); baselineState(`${heading}:: After rebuilding logicConfig`); @@ -467,7 +428,7 @@ describe("unittests:: tsbuild:: on 'sample1' project", () => { edit: fs => appendText( fs, - "/src/core/index.ts", + "core/index.ts", ` export class someClass { }`, ), @@ -477,7 +438,7 @@ export class someClass { }`, edit: fs => appendText( fs, - "/src/core/index.ts", + "core/index.ts", ` class someClass2 { }`, ), @@ -490,21 +451,21 @@ class someClass2 { }`, scenario: "sample1", subScenario: "listFiles", fs: () => projFs, - commandLineArgs: ["--b", "/src/tests", "--listFiles"], + commandLineArgs: ["--b", "tests", "--listFiles"], edits: coreChanges, }); verifyTsc({ scenario: "sample1", subScenario: "listEmittedFiles", fs: () => projFs, - commandLineArgs: ["--b", "/src/tests", "--listEmittedFiles"], + commandLineArgs: ["--b", "tests", "--listEmittedFiles"], edits: coreChanges, }); verifyTsc({ scenario: "sample1", subScenario: "explainFiles", fs: () => projFs, - commandLineArgs: ["--b", "/src/tests", "--explainFiles", "--v"], + commandLineArgs: ["--b", "tests", "--explainFiles", "--v"], edits: coreChanges, }); }); @@ -514,7 +475,7 @@ class someClass2 { }`, subScenario: "sample", fs: () => projFs, scenario: "sample1", - commandLineArgs: ["--b", "/src/tests", "--verbose"], + commandLineArgs: ["--b", "tests", "--verbose"], baselineSourceMap: true, baselineReadFileCalls: true, edits: [ @@ -524,7 +485,7 @@ class someClass2 { }`, edit: fs => replaceText( fs, - "/src/logic/tsconfig.json", + "logic/tsconfig.json", `"declaration": true,`, `"declaration": true, "declarationDir": "decls",`, @@ -541,12 +502,12 @@ class someClass2 { }`, modifyFs: fs => replaceText( fs, - "/src/logic/tsconfig.json", + "logic/tsconfig.json", `"composite": true,`, `"composite": true, - "tsBuildInfoFile": "ownFile.tsbuildinfo",`, + "tsBuildInfoFile": "ownFile.tsbuildinfo",`, ), - commandLineArgs: ["--b", "/src/tests", "--verbose"], + commandLineArgs: ["--b", "tests", "--verbose"], baselineSourceMap: true, baselineReadFileCalls: true, }); @@ -555,20 +516,20 @@ class someClass2 { }`, subScenario: "when declaration option changes", fs: () => projFs, scenario: "sample1", - commandLineArgs: ["--b", "/src/core", "--verbose"], + commandLineArgs: ["--b", "core", "--verbose"], modifyFs: fs => fs.writeFileSync( - "/src/core/tsconfig.json", - `{ - "compilerOptions": { - "incremental": true, - "skipDefaultLibCheck": true - } -}`, + "core/tsconfig.json", + jsonToReadableText({ + compilerOptions: { + incremental: true, + skipDefaultLibCheck: true, + }, + }), ), edits: [{ caption: "incremental-declaration-changes", - edit: fs => replaceText(fs, "/src/core/tsconfig.json", `"incremental": true,`, `"incremental": true, "declaration": true,`), + edit: fs => replaceText(fs, "core/tsconfig.json", `"incremental": true,`, `"incremental": true, "declaration": true,`), }], }); @@ -576,34 +537,34 @@ class someClass2 { }`, subScenario: "when target option changes", fs: () => projFs, scenario: "sample1", - commandLineArgs: ["--b", "/src/core", "--verbose"], + commandLineArgs: ["--b", "core", "--verbose"], modifyFs: fs => { fs.writeFileSync( - "/lib/lib.esnext.full.d.ts", + libPath("esnext.full"), `/// /// `, ); - fs.writeFileSync("/lib/lib.esnext.d.ts", libContent); + fs.writeFileSync(libPath("esnext"), libContent); fs.writeFileSync( - "/lib/lib.d.ts", + libFile.path, `/// /// `, ); fs.writeFileSync( - "/src/core/tsconfig.json", - `{ - "compilerOptions": { - "incremental": true, -"listFiles": true, -"listEmittedFiles": true, - "target": "esnext", - } -}`, + "core/tsconfig.json", + jsonToReadableText({ + compilerOptions: { + incremental: true, + listFiles: true, + listEmittedFiles: true, + target: "esnext", + }, + }), ); }, edits: [{ caption: "incremental-declaration-changes", - edit: fs => replaceText(fs, "/src/core/tsconfig.json", "esnext", "es5"), + edit: fs => replaceText(fs, "core/tsconfig.json", "esnext", "es5"), }], }); @@ -611,20 +572,20 @@ class someClass2 { }`, subScenario: "when module option changes", fs: () => projFs, scenario: "sample1", - commandLineArgs: ["--b", "/src/core", "--verbose"], + commandLineArgs: ["--b", "core", "--verbose"], modifyFs: fs => fs.writeFileSync( - "/src/core/tsconfig.json", - `{ - "compilerOptions": { - "incremental": true, - "module": "commonjs" - } -}`, + "core/tsconfig.json", + jsonToReadableText({ + compilerOptions: { + incremental: true, + module: "commonjs", + }, + }), ), edits: [{ caption: "incremental-declaration-changes", - edit: fs => replaceText(fs, "/src/core/tsconfig.json", `"module": "commonjs"`, `"module": "amd"`), + edit: fs => replaceText(fs, "core/tsconfig.json", `"module": "commonjs"`, `"module": "amd"`), }], }); @@ -632,28 +593,28 @@ class someClass2 { }`, subScenario: "when esModuleInterop option changes", fs: () => projFs, scenario: "sample1", - commandLineArgs: ["--b", "/src/tests", "--verbose"], + commandLineArgs: ["--b", "tests", "--verbose"], modifyFs: fs => fs.writeFileSync( - "/src/tests/tsconfig.json", - `{ - "references": [ - { "path": "../core" }, - { "path": "../logic" } - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true, - "esModuleInterop": false - } -}`, + "tests/tsconfig.json", + jsonToReadableText({ + references: [ + { path: "../core" }, + { path: "../logic" }, + ], + files: ["index.ts"], + compilerOptions: { + composite: true, + declaration: true, + forceConsistentCasingInFileNames: true, + skipDefaultLibCheck: true, + esModuleInterop: false, + }, + }), ), edits: [{ caption: "incremental-declaration-changes", - edit: fs => replaceText(fs, "/src/tests/tsconfig.json", `"esModuleInterop": false`, `"esModuleInterop": true`), + edit: fs => replaceText(fs, "tests/tsconfig.json", `"esModuleInterop": false`, `"esModuleInterop": true`), }], }); @@ -661,16 +622,16 @@ class someClass2 { }`, scenario: "sample1", subScenario: "reports error if input file is missing", fs: () => projFs, - commandLineArgs: ["--b", "/src/tests", "--v"], + commandLineArgs: ["--b", "tests", "--v"], modifyFs: fs => { fs.writeFileSync( - "/src/core/tsconfig.json", - JSON.stringify({ + "core/tsconfig.json", + jsonToReadableText({ compilerOptions: { composite: true }, files: ["anotherModule.ts", "index.ts", "some_decl.d.ts"], }), ); - fs.unlinkSync("/src/core/anotherModule.ts"); + fs.unlinkSync("core/anotherModule.ts"); }, }); @@ -678,16 +639,16 @@ class someClass2 { }`, scenario: "sample1", subScenario: "reports error if input file is missing with force", fs: () => projFs, - commandLineArgs: ["--b", "/src/tests", "--v", "--f"], + commandLineArgs: ["--b", "tests", "--v", "--f"], modifyFs: fs => { fs.writeFileSync( - "/src/core/tsconfig.json", - JSON.stringify({ + "core/tsconfig.json", + jsonToReadableText({ compilerOptions: { composite: true }, files: ["anotherModule.ts", "index.ts", "some_decl.d.ts"], }), ); - fs.unlinkSync("/src/core/anotherModule.ts"); + fs.unlinkSync("core/anotherModule.ts"); }, }); }); diff --git a/src/testRunner/unittests/tsbuild/transitiveReferences.ts b/src/testRunner/unittests/tsbuild/transitiveReferences.ts index b75a98f0df8a1..08cc01572f529 100644 --- a/src/testRunner/unittests/tsbuild/transitiveReferences.ts +++ b/src/testRunner/unittests/tsbuild/transitiveReferences.ts @@ -1,15 +1,30 @@ import * as vfs from "../../_namespaces/vfs"; +import { + jsonToReadableText, +} from "../helpers"; +import { + getFsContentsForTransitiveReferences, +} from "../helpers/transitiveReferences"; import { verifyTsc, } from "../helpers/tsc"; import { - loadProjectFromDisk, + loadProjectFromFiles, } from "../helpers/vfs"; +import { + libFile, +} from "../helpers/virtualFileSystemWithWatch"; describe("unittests:: tsbuild:: when project reference is referenced transitively", () => { let projFs: vfs.FileSystem; before(() => { - projFs = loadProjectFromDisk("tests/projects/transitiveReferences"); + projFs = loadProjectFromFiles( + getFsContentsForTransitiveReferences(), + { + cwd: "/user/username/projects/transitiveReferences", + executingFilePath: libFile.path, + }, + ); }); after(() => { projFs = undefined!; // Release the contents @@ -17,13 +32,13 @@ describe("unittests:: tsbuild:: when project reference is referenced transitivel function modifyFsBTsToNonRelativeImport(fs: vfs.FileSystem, moduleResolution: "node" | "classic") { fs.writeFileSync( - "/src/b.ts", + "b.ts", `import {A} from 'a'; export const b = new A();`, ); fs.writeFileSync( - "/src/tsconfig.b.json", - JSON.stringify({ + "tsconfig.b.json", + jsonToReadableText({ compilerOptions: { composite: true, moduleResolution, @@ -38,14 +53,14 @@ export const b = new A();`, scenario: "transitiveReferences", subScenario: "builds correctly", fs: () => projFs, - commandLineArgs: ["--b", "/src/tsconfig.c.json", "--listFiles"], + commandLineArgs: ["--b", "tsconfig.c.json", "--listFiles"], }); verifyTsc({ scenario: "transitiveReferences", subScenario: "builds correctly when the referenced project uses different module resolution", fs: () => projFs, - commandLineArgs: ["--b", "/src/tsconfig.c.json", "--listFiles"], + commandLineArgs: ["--b", "tsconfig.c.json", "--listFiles"], modifyFs: fs => modifyFsBTsToNonRelativeImport(fs, "classic"), }); @@ -53,7 +68,7 @@ export const b = new A();`, scenario: "transitiveReferences", subScenario: "reports error about module not found with node resolution with external module name", fs: () => projFs, - commandLineArgs: ["--b", "/src/tsconfig.c.json", "--listFiles"], + commandLineArgs: ["--b", "tsconfig.c.json", "--listFiles"], modifyFs: fs => modifyFsBTsToNonRelativeImport(fs, "node"), }); }); diff --git a/src/testRunner/unittests/tsbuildWatch/configFileErrors.ts b/src/testRunner/unittests/tsbuildWatch/configFileErrors.ts index 1c47250803a00..2f18df2f91f08 100644 --- a/src/testRunner/unittests/tsbuildWatch/configFileErrors.ts +++ b/src/testRunner/unittests/tsbuildWatch/configFileErrors.ts @@ -1,6 +1,9 @@ import { dedent, } from "../../_namespaces/Utils"; +import { + jsonToReadableText, +} from "../helpers"; import { verifyTscWatch, } from "../helpers/tscWatch"; @@ -63,7 +66,7 @@ describe("unittests:: tsbuildWatch:: watchMode:: configFileErrors:: reports synt edit: sys => sys.writeFile( `/user/username/projects/myproject/tsconfig.json`, - JSON.stringify({ + jsonToReadableText({ compilerOptions: { composite: true, declaration: true }, files: ["a.ts", "b.ts"], }), diff --git a/src/testRunner/unittests/tsbuildWatch/demo.ts b/src/testRunner/unittests/tsbuildWatch/demo.ts index 891c57e593fa7..f67df1a2f7032 100644 --- a/src/testRunner/unittests/tsbuildWatch/demo.ts +++ b/src/testRunner/unittests/tsbuildWatch/demo.ts @@ -1,66 +1,35 @@ import { - libContent, -} from "../helpers/contents"; + dedent, +} from "../../_namespaces/Utils"; +import { + getFsContentsForDemoProjectReferencesCoreConfig, + getSysForDemoProjectReferences, +} from "../helpers/demoProjectReferences"; import { verifyTscWatch, } from "../helpers/tscWatch"; -import { - createWatchedSystem, - File, - getTsBuildProjectFile, - libFile, -} from "../helpers/virtualFileSystemWithWatch"; describe("unittests:: tsbuildWatch:: watchMode:: with demo project", () => { - const projectLocation = `/user/username/projects/demo`; - let coreFiles: File[]; - let animalFiles: File[]; - let zooFiles: File[]; - let solutionFile: File; - let baseConfig: File; - let allFiles: File[]; - before(() => { - coreFiles = subProjectFiles("core", ["tsconfig.json", "utilities.ts"]); - animalFiles = subProjectFiles("animals", ["tsconfig.json", "animal.ts", "dog.ts", "index.ts"]); - zooFiles = subProjectFiles("zoo", ["tsconfig.json", "zoo.ts"]); - solutionFile = projectFile("tsconfig.json"); - baseConfig = projectFile("tsconfig-base.json"); - allFiles = [...coreFiles, ...animalFiles, ...zooFiles, solutionFile, baseConfig, { path: libFile.path, content: libContent }]; - }); - - after(() => { - coreFiles = undefined!; - animalFiles = undefined!; - zooFiles = undefined!; - solutionFile = undefined!; - baseConfig = undefined!; - allFiles = undefined!; - }); - verifyTscWatch({ scenario: "demo", subScenario: "updates with circular reference", commandLineArgs: ["-b", "-w", "-verbose"], sys: () => { - const sys = createWatchedSystem(allFiles, { currentDirectory: projectLocation }); + const sys = getSysForDemoProjectReferences(); sys.writeFile( - coreFiles[0].path, - coreFiles[0].content.replace( - "}", - `}, - "references": [ - { - "path": "../zoo" - } - ]`, - ), + "core/tsconfig.json", + getFsContentsForDemoProjectReferencesCoreConfig({ + references: [{ + path: "../zoo", + }], + }), ); return sys; }, edits: [ { caption: "Fix error", - edit: sys => sys.writeFile(coreFiles[0].path, coreFiles[0].content), + edit: sys => sys.writeFile("core/tsconfig.json", getFsContentsForDemoProjectReferencesCoreConfig()), timeouts: sys => { sys.runQueuedTimeoutCallbacks(); // build core sys.runQueuedTimeoutCallbacks(); // build animals, zoo and solution @@ -74,35 +43,22 @@ describe("unittests:: tsbuildWatch:: watchMode:: with demo project", () => { subScenario: "updates with bad reference", commandLineArgs: ["-b", "-w", "-verbose"], sys: () => { - const sys = createWatchedSystem(allFiles, { currentDirectory: projectLocation }); - sys.writeFile( - coreFiles[1].path, - `import * as A from '../animals'; -${coreFiles[1].content}`, + const sys = getSysForDemoProjectReferences(); + sys.prependFile( + "core/utilities.ts", + dedent` + import * as A from '../animals'; + `, ); return sys; }, edits: [ { caption: "Prepend a line", - edit: sys => - sys.writeFile( - coreFiles[1].path, - ` -import * as A from '../animals'; -${coreFiles[1].content}`, - ), + edit: sys => sys.prependFile("core/utilities.ts", "\n"), // build core timeouts: sys => sys.runQueuedTimeoutCallbacks(), }, ], }); - - function subProjectFiles(subProject: string, fileNames: readonly string[]): File[] { - return fileNames.map(file => projectFile(`${subProject}/${file}`)); - } - - function projectFile(fileName: string): File { - return getTsBuildProjectFile("demo", fileName); - } }); diff --git a/src/testRunner/unittests/tsbuildWatch/moduleResolution.ts b/src/testRunner/unittests/tsbuildWatch/moduleResolution.ts index 9c2a9a7281456..3088691fcdbba 100644 --- a/src/testRunner/unittests/tsbuildWatch/moduleResolution.ts +++ b/src/testRunner/unittests/tsbuildWatch/moduleResolution.ts @@ -1,6 +1,9 @@ import { dedent, } from "../../_namespaces/Utils"; +import { + jsonToReadableText, +} from "../helpers"; import { verifyTscWatch, } from "../helpers/tscWatch"; @@ -20,7 +23,7 @@ describe("unittests:: tsbuildWatch:: watchMode:: moduleResolution", () => { { path: `/user/username/projects/myproject/project1/node_modules/file/index.d.ts`, content: "export const foo = 10;" }, { path: `/user/username/projects/myproject/project1/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { composite: true, types: ["foo", "bar"] }, files: ["index.ts"], }), @@ -29,7 +32,7 @@ describe("unittests:: tsbuildWatch:: watchMode:: moduleResolution", () => { { path: `/user/username/projects/myproject/project2/file.d.ts`, content: "export const foo = 10;" }, { path: `/user/username/projects/myproject/project2/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { composite: true, types: ["foo"], moduleResolution: "classic" }, files: ["index.ts"], }), @@ -38,7 +41,7 @@ describe("unittests:: tsbuildWatch:: watchMode:: moduleResolution", () => { { path: `/user/username/projects/myproject/node_modules/@types/bar/index.d.ts`, content: "export const bar = 10;" }, { path: `/user/username/projects/myproject/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ files: [], references: [ { path: "./project1" }, @@ -67,7 +70,7 @@ describe("unittests:: tsbuildWatch:: watchMode:: moduleResolution", () => { createWatchedSystem([ { path: `/user/username/projects/myproject/packages/pkg1/package.json`, - content: JSON.stringify({ + content: jsonToReadableText({ name: "pkg1", version: "1.0.0", main: "build/index.js", @@ -82,7 +85,7 @@ describe("unittests:: tsbuildWatch:: watchMode:: moduleResolution", () => { }, { path: `/user/username/projects/myproject/packages/pkg1/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { outDir: "build", module: "node16", @@ -100,7 +103,7 @@ describe("unittests:: tsbuildWatch:: watchMode:: moduleResolution", () => { }, { path: `/user/username/projects/myproject/packages/pkg2/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { composite: true, outDir: "build", @@ -110,7 +113,7 @@ describe("unittests:: tsbuildWatch:: watchMode:: moduleResolution", () => { }, { path: `/user/username/projects/myproject/packages/pkg2/package.json`, - content: JSON.stringify({ + content: jsonToReadableText({ name: "pkg2", version: "1.0.0", main: "build/index.js", @@ -161,7 +164,7 @@ describe("unittests:: tsbuildWatch:: watchMode:: moduleResolution", () => { createWatchedSystem([ { path: `/user/username/projects/myproject/packages/pkg1/package.json`, - content: JSON.stringify({ + content: jsonToReadableText({ name: "pkg1", version: "1.0.0", main: "build/index.js", @@ -175,7 +178,7 @@ describe("unittests:: tsbuildWatch:: watchMode:: moduleResolution", () => { }, { path: `/user/username/projects/myproject/packages/pkg1/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { outDir: "build", }, @@ -184,7 +187,7 @@ describe("unittests:: tsbuildWatch:: watchMode:: moduleResolution", () => { }, { path: `/user/username/projects/myproject/packages/pkg2/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { composite: true, outDir: "build", @@ -206,7 +209,7 @@ describe("unittests:: tsbuildWatch:: watchMode:: moduleResolution", () => { }, { path: `/user/username/projects/myproject/packages/pkg2/package.json`, - content: JSON.stringify({ + content: jsonToReadableText({ name: "pkg2", version: "1.0.0", main: "build/index.js", diff --git a/src/testRunner/unittests/tsbuildWatch/noEmit.ts b/src/testRunner/unittests/tsbuildWatch/noEmit.ts index 161f6dbefcd40..dca46f0ecf1bc 100644 --- a/src/testRunner/unittests/tsbuildWatch/noEmit.ts +++ b/src/testRunner/unittests/tsbuildWatch/noEmit.ts @@ -1,3 +1,6 @@ +import { + jsonToReadableText, +} from "../helpers"; import { libContent, } from "../helpers/contents"; @@ -15,15 +18,12 @@ describe("unittests:: tsbuildWatch:: watchMode:: with noEmit", () => { subScenario: "does not go in loop when watching when no files are emitted", commandLineArgs: ["-b", "-w", "-verbose"], sys: () => - createWatchedSystem( - [ - { path: libFile.path, content: libContent }, - { path: `/user/username/projects/myproject/a.js`, content: "" }, - { path: `/user/username/projects/myproject/b.ts`, content: "" }, - { path: `/user/username/projects/myproject/tsconfig.json`, content: JSON.stringify({ compilerOptions: { allowJs: true, noEmit: true } }) }, - ], - { currentDirectory: "/user/username/projects/myproject" }, - ), + createWatchedSystem({ + [libFile.path]: libContent, + "/user/username/projects/myproject/a.js": "", + "/user/username/projects/myproject/b.ts": "", + "/user/username/projects/myproject/tsconfig.json": jsonToReadableText({ compilerOptions: { allowJs: true, noEmit: true } }), + }, { currentDirectory: "/user/username/projects/myproject" }), edits: [ { caption: "No change", diff --git a/src/testRunner/unittests/tsbuildWatch/noEmitOnError.ts b/src/testRunner/unittests/tsbuildWatch/noEmitOnError.ts index 22e5a713141a7..8ef96500031c8 100644 --- a/src/testRunner/unittests/tsbuildWatch/noEmitOnError.ts +++ b/src/testRunner/unittests/tsbuildWatch/noEmitOnError.ts @@ -1,15 +1,10 @@ import { - libContent, -} from "../helpers/contents"; + getSysForNoEmitOnError, +} from "../helpers/noEmitOnError"; import { TscWatchCompileChange, verifyTscWatch, } from "../helpers/tscWatch"; -import { - createWatchedSystem, - getTsBuildProjectFile, - libFile, -} from "../helpers/virtualFileSystemWithWatch"; describe("unittests:: tsbuildWatch:: watchMode:: with noEmitOnError", () => { function change(caption: string, content: string): TscWatchCompileChange { @@ -31,15 +26,7 @@ describe("unittests:: tsbuildWatch:: watchMode:: with noEmitOnError", () => { scenario: "noEmitOnError", subScenario: "does not emit any files on error", commandLineArgs: ["-b", "-w", "-verbose"], - sys: () => - createWatchedSystem( - [ - ...["tsconfig.json", "shared/types/db.ts", "src/main.ts", "src/other.ts"] - .map(f => getTsBuildProjectFile("noEmitOnError", f)), - { path: libFile.path, content: libContent }, - ], - { currentDirectory: `/user/username/projects/noEmitOnError` }, - ), + sys: getSysForNoEmitOnError, edits: [ noChange, change( diff --git a/src/testRunner/unittests/tsbuildWatch/programUpdates.ts b/src/testRunner/unittests/tsbuildWatch/programUpdates.ts index 6e418029d90b8..e482c646ccac8 100644 --- a/src/testRunner/unittests/tsbuildWatch/programUpdates.ts +++ b/src/testRunner/unittests/tsbuildWatch/programUpdates.ts @@ -1,4 +1,15 @@ import * as ts from "../../_namespaces/ts"; +import { + jsonToReadableText, +} from "../helpers"; +import { + FsContents, +} from "../helpers/contents"; +import { + getFsContentsForSampleProjectReferences, + getFsContentsForSampleProjectReferencesLogicConfig, + getSysForSampleProjectReferences, +} from "../helpers/sampleProjectReferences"; import { commonFile1, commonFile2, @@ -12,86 +23,22 @@ import { import { createWatchedSystem, File, - getTsBuildProjectFile, - getTsBuildProjectFilePath, libFile, } from "../helpers/virtualFileSystemWithWatch"; describe("unittests:: tsbuildWatch:: watchMode:: program updates", () => { - const enum SubProject { - core = "core", - logic = "logic", - tests = "tests", - ui = "ui", - } - type ReadonlyFile = Readonly; - /** [tsconfig, index] | [tsconfig, index, anotherModule, someDecl] */ - type SubProjectFiles = [tsconfig: ReadonlyFile, index: ReadonlyFile] | [tsconfig: ReadonlyFile, index: ReadonlyFile, anotherModule: ReadonlyFile, someDecl: ReadonlyFile]; - function projectFilePath(subProject: SubProject, baseFileName: string) { - return `${getTsBuildProjectFilePath("sample1", subProject)}/${baseFileName.toLowerCase()}`; - } - - function projectFile(subProject: SubProject, baseFileName: string): File { - return getTsBuildProjectFile("sample1", `${subProject}/${baseFileName}`); - } - - function subProjectFiles(subProject: SubProject, anotherModuleAndSomeDecl?: true): SubProjectFiles { - const tsconfig = projectFile(subProject, "tsconfig.json"); - const index = projectFile(subProject, "index.ts"); - if (!anotherModuleAndSomeDecl) { - return [tsconfig, index]; - } - const anotherModule = projectFile(SubProject.core, "anotherModule.ts"); - const someDecl = projectFile(SubProject.core, "some_decl.ts"); - return [tsconfig, index, anotherModule, someDecl]; - } - - function changeFile(fileName: string | (() => string), content: string | (() => string), caption: string): TscWatchCompileChange { - return { - caption, - edit: sys => sys.writeFile(ts.isString(fileName) ? fileName : fileName(), ts.isString(content) ? content : content()), - timeouts: sys => sys.runQueuedTimeoutCallbacks(), // Builds core - }; - } - - function changeCore(content: () => string, caption: string) { - return changeFile(() => core[1].path, content, caption); - } - - let core: SubProjectFiles; - let logic: SubProjectFiles; - let tests: SubProjectFiles; - let ui: SubProjectFiles; - let allFiles: readonly File[]; - - before(() => { - core = subProjectFiles(SubProject.core, /*anotherModuleAndSomeDecl*/ true); - logic = subProjectFiles(SubProject.logic); - tests = subProjectFiles(SubProject.tests); - ui = subProjectFiles(SubProject.ui); - allFiles = [libFile, ...core, ...logic, ...tests, ...ui]; - }); - - after(() => { - core = undefined!; - logic = undefined!; - tests = undefined!; - ui = undefined!; - allFiles = undefined!; - }); - verifyTscWatch({ scenario: "programUpdates", subScenario: "creates solution in watch mode", - commandLineArgs: ["-b", "-w", `sample1/${SubProject.tests}`], - sys: () => createWatchedSystem(allFiles, { currentDirectory: "/user/username/projects" }), + commandLineArgs: ["-b", "-w", "tests"], + sys: getSysForSampleProjectReferences, }); it("verify building references watches only those projects", () => { - const { sys, baseline, oldSnap, cb, getPrograms } = createBaseline(createWatchedSystem(allFiles, { currentDirectory: "/user/username/projects" })); + const { sys, baseline, oldSnap, cb, getPrograms } = createBaseline(getSysForSampleProjectReferences()); const host = createSolutionBuilderWithWatchHostForBaseline(sys, cb); - const solutionBuilder = ts.createSolutionBuilderWithWatch(host, [`sample1/${SubProject.tests}`], { watch: true }); - solutionBuilder.buildReferences(`sample1/${SubProject.tests}`); + const solutionBuilder = ts.createSolutionBuilderWithWatch(host, ["tests"], { watch: true }); + solutionBuilder.buildReferences("tests"); runWatchBaseline({ scenario: "programUpdates", subScenario: "verify building references watches only those projects", @@ -105,13 +52,7 @@ describe("unittests:: tsbuildWatch:: watchMode:: program updates", () => { }); describe("validates the changes and watched files", () => { - const newFileWithoutExtension = "newFile"; - const newFile: File = { - path: projectFilePath(SubProject.core, `${newFileWithoutExtension}.ts`), - content: `export const newFileConst = 30;`, - }; - - function verifyProjectChanges(subScenario: string, allFilesGetter: () => readonly File[]) { + function verifyProjectChanges(subScenario: string, allFilesGetter: () => FsContents) { const buildLogicAndTests: TscWatchCompileChange = { caption: "Build logic and tests", edit: ts.noop, @@ -121,33 +62,31 @@ describe("unittests:: tsbuildWatch:: watchMode:: program updates", () => { verifyTscWatch({ scenario: "programUpdates", subScenario: `${subScenario}/change builds changes and reports found errors message`, - commandLineArgs: ["-b", "-w", `sample1/${SubProject.tests}`], + commandLineArgs: ["-b", "-w", "sample1/tests"], sys: () => createWatchedSystem( allFilesGetter(), { currentDirectory: "/user/username/projects" }, ), edits: [ - changeCore(() => - `${core[1].content} -export class someClass { }`, "Make change to core"), + { + caption: "Make change to core", + edit: sys => sys.appendFile("sample1/core/index.ts", `\nexport class someClass { }`), + timeouts: sys => sys.runQueuedTimeoutCallbacks(), // Builds core + }, buildLogicAndTests, // Another change requeues and builds it - changeCore(() => core[1].content, "Revert core file"), + { + caption: "Revert core file", + edit: sys => sys.replaceFileText("sample1/core/index.ts", `\nexport class someClass { }`, ""), + timeouts: sys => sys.runQueuedTimeoutCallbacks(), // Builds core + }, buildLogicAndTests, { caption: "Make two changes", edit: sys => { - const change1 = `${core[1].content} -export class someClass { }`; - sys.writeFile(core[1].path, change1); - assert.equal(sys.writtenFiles.size, 1); - sys.writtenFiles.clear(); - sys.writeFile( - core[1].path, - `${change1} -export class someClass2 { }`, - ); + sys.appendFile("sample1/core/index.ts", `\nexport class someClass { }`); + sys.appendFile("sample1/core/index.ts", `\nexport class someClass2 { }`); }, timeouts: sys => sys.runQueuedTimeoutCallbacks(), // Builds core }, @@ -158,36 +97,40 @@ export class someClass2 { }`, verifyTscWatch({ scenario: "programUpdates", subScenario: `${subScenario}/non local change does not start build of referencing projects`, - commandLineArgs: ["-b", "-w", `sample1/${SubProject.tests}`], + commandLineArgs: ["-b", "-w", "sample1/tests"], sys: () => createWatchedSystem( allFilesGetter(), { currentDirectory: "/user/username/projects" }, ), - edits: [ - changeCore(() => - `${core[1].content} -function foo() { }`, "Make local change to core"), - ], + edits: [{ + caption: "Make local change to core", + edit: sys => sys.appendFile("sample1/core/index.ts", `\nfunction foo() { }`), + timeouts: sys => sys.runQueuedTimeoutCallbacks(), // Builds core + }], }); - function changeNewFile(newFileContent: string) { - return changeFile(newFile.path, newFileContent, "Change to new File and build core"); - } verifyTscWatch({ scenario: "programUpdates", subScenario: `${subScenario}/builds when new file is added, and its subsequent updates`, - commandLineArgs: ["-b", "-w", `sample1/${SubProject.tests}`], + commandLineArgs: ["-b", "-w", "sample1/tests"], sys: () => createWatchedSystem( allFilesGetter(), { currentDirectory: "/user/username/projects" }, ), edits: [ - changeNewFile(newFile.content), + { + caption: "Change to new File and build core", + edit: sys => sys.writeFile("sample1/core/newfile.ts", `export const newFileConst = 30;`), + timeouts: sys => sys.runQueuedTimeoutCallbacks(), // Builds core + }, buildLogicAndTests, - changeNewFile(`${newFile.content} -export class someClass2 { }`), + { + caption: "Change to new File and build core", + edit: sys => sys.appendFile("sample1/core/newfile.ts", `\nexport class someClass2 { }`), + timeouts: sys => sys.runQueuedTimeoutCallbacks(), // Builds core + }, buildLogicAndTests, ], }); @@ -196,24 +139,20 @@ export class someClass2 { }`), describe("with simple project reference graph", () => { verifyProjectChanges( "with simple project reference graph", - () => allFiles, + getFsContentsForSampleProjectReferences, ); }); describe("with circular project reference", () => { verifyProjectChanges( "with circular project reference", - () => { - const [coreTsconfig, ...otherCoreFiles] = core; - const circularCoreConfig: File = { - path: coreTsconfig.path, - content: JSON.stringify({ - compilerOptions: { composite: true, declaration: true }, - references: [{ path: "../tests", circular: true }], - }), - }; - return [libFile, circularCoreConfig, ...otherCoreFiles, ...logic, ...tests]; - }, + () => ({ + ...getFsContentsForSampleProjectReferences(), + "/user/username/projects/sample1/core/tsconfig.json": jsonToReadableText({ + compilerOptions: { composite: true, declaration: true }, + references: [{ path: "../tests", circular: true }], + }), + }), ); }); }); @@ -221,16 +160,16 @@ export class someClass2 { }`), verifyTscWatch({ scenario: "programUpdates", subScenario: "watches config files that are not present", - commandLineArgs: ["-b", "-w", `sample1/${SubProject.tests}`], - sys: () => - createWatchedSystem( - [libFile, ...core, logic[1], ...tests], - { currentDirectory: "/user/username/projects" }, - ), + commandLineArgs: ["-b", "-w", "tests"], + sys: () => { + const sys = getSysForSampleProjectReferences(); + sys.deleteFile("logic/tsconfig.json"); + return sys; + }, edits: [ { caption: "Write logic tsconfig and build logic", - edit: sys => sys.writeFile(logic[0].path, logic[0].content), + edit: sys => sys.writeFile("logic/tsconfig.json", getFsContentsForSampleProjectReferencesLogicConfig()), timeouts: sys => sys.runQueuedTimeoutCallbacks(), // Builds logic }, { @@ -242,58 +181,47 @@ export class someClass2 { }`), ], }); - describe("when referenced using prepend, builds referencing project even for non local change", () => { - let coreIndex: File; - before(() => { - coreIndex = { - path: core[1].path, - content: `function foo() { return 10; }`, - }; - }); - after(() => { - coreIndex = undefined!; - }); - const buildLogic: TscWatchCompileChange = { - caption: "Build logic", - edit: ts.noop, - // Builds logic - timeouts: sys => sys.runQueuedTimeoutCallbacks(), - }; - verifyTscWatch({ - scenario: "programUpdates", - subScenario: "when referenced using prepend builds referencing project even for non local change", - commandLineArgs: ["-b", "-w", `sample1/${SubProject.logic}`], - sys: () => { - const coreTsConfig: File = { - path: core[0].path, - content: JSON.stringify({ - compilerOptions: { composite: true, declaration: true, outFile: "index.js" }, - }), - }; - const logicTsConfig: File = { - path: logic[0].path, - content: JSON.stringify({ - compilerOptions: { ignoreDeprecations: "5.0", composite: true, declaration: true, outFile: "index.js" }, - references: [{ path: "../core", prepend: true }], - }), - }; - const logicIndex: File = { - path: logic[1].path, - content: `function bar() { return foo() + 1 };`, - }; - return createWatchedSystem([libFile, coreTsConfig, coreIndex, logicTsConfig, logicIndex], { currentDirectory: "/user/username/projects" }); + verifyTscWatch({ + scenario: "programUpdates", + subScenario: "when referenced using prepend builds referencing project even for non local change", + commandLineArgs: ["-b", "-w", "sample1/logic"], + sys: () => + createWatchedSystem({ + [libFile.path]: libFile.content, + "/user/username/projects/sample1/core/tsconfig.json": jsonToReadableText({ + compilerOptions: { composite: true, declaration: true, outFile: "index.js" }, + }), + "/user/username/projects/sample1/core/index.ts": `function foo() { return 10; }`, + "/user/username/projects/sample1/logic/tsconfig.json": jsonToReadableText({ + compilerOptions: { ignoreDeprecations: "5.0", composite: true, declaration: true, outFile: "index.js" }, + references: [{ path: "../core", prepend: true }], + }), + "/user/username/projects/sample1/logic/index.ts": `function bar() { return foo() + 1 };`, + }, { currentDirectory: "/user/username/projects" }), + edits: [ + { + caption: "Make non local change and build core", + edit: sys => sys.appendFile("sample1/core/index.ts", `\nfunction myFunc() { return 10; }`), + timeouts: sys => sys.runQueuedTimeoutCallbacks(), // Builds core }, - edits: [ - changeCore(() => - `${coreIndex.content} -function myFunc() { return 10; }`, "Make non local change and build core"), - buildLogic, - changeCore(() => - `${coreIndex.content} -function myFunc() { return 100; }`, "Make local change and build core"), - buildLogic, - ], - }); + { + caption: "Build logic", + edit: ts.noop, + // Builds logic + timeouts: sys => sys.runQueuedTimeoutCallbacks(), + }, + { + caption: "Make local change and build core", + edit: sys => sys.replaceFileText("sample1/core/index.ts", `\nfunction myFunc() { return 10; }`, `\nfunction myFunc() { return 100; }`), + timeouts: sys => sys.runQueuedTimeoutCallbacks(), // Builds core + }, + { + caption: "Build logic", + edit: ts.noop, + // Builds logic + timeouts: sys => sys.runQueuedTimeoutCallbacks(), + }, + ], }); describe("when referenced project change introduces error in the down stream project and then fixes it", () => { @@ -320,7 +248,7 @@ export function createSomeObject(): SomeObject sys: () => { const libraryTsconfig: File = { path: `${subProjectLibrary}/tsconfig.json`, - content: JSON.stringify({ compilerOptions: { composite: true } }), + content: jsonToReadableText({ compilerOptions: { composite: true } }), }; const subProjectApp = `${"/user/username/projects"}/sample1/App`; const appTs: File = { @@ -330,7 +258,7 @@ createSomeObject().message;`, }; const appTsconfig: File = { path: `${subProjectApp}/tsconfig.json`, - content: JSON.stringify({ references: [{ path: "../Library" }] }), + content: jsonToReadableText({ references: [{ path: "../Library" }] }), }; const files = [libFile, libraryTs, libraryTsconfig, appTs, appTsconfig]; @@ -364,28 +292,18 @@ createSomeObject().message;`, verifyTscWatch({ scenario: "programUpdates", subScenario: `reportErrors/${subScenario}`, - commandLineArgs: ["-b", "-w", `sample1/${SubProject.tests}`, ...buildOptions], - sys: () => createWatchedSystem(allFiles, { currentDirectory: "/user/username/projects" }), + commandLineArgs: ["-b", "-w", "tests", ...buildOptions], + sys: getSysForSampleProjectReferences, edits: [ { caption: "change logic", - edit: sys => - sys.writeFile( - logic[1].path, - `${logic[1].content} -let y: string = 10;`, - ), + edit: sys => sys.appendFile("logic/index.ts", `\nlet y: string = 10;`), // Builds logic timeouts: sys => sys.runQueuedTimeoutCallbacks(), }, { caption: "change core", - edit: sys => - sys.writeFile( - core[1].path, - `${core[1].content} -let x: string = 10;`, - ), + edit: sys => sys.appendFile("core/index.ts", `\nlet x: string = 10;`), // Builds core timeouts: sys => sys.runQueuedTimeoutCallbacks(), }, @@ -416,7 +334,7 @@ let x: string = 10;`, }; const tsconfig: File = { path: `${subProjectLocation}/tsconfig.json`, - content: JSON.stringify({ compilerOptions: { composite: true } }), + content: jsonToReadableText({ compilerOptions: { composite: true } }), }; const fixError: TscWatchCompileChange = { @@ -503,27 +421,17 @@ let x: string = 10;`, verifyTscWatch({ scenario: "programUpdates", subScenario: "incremental updates in verbose mode", - commandLineArgs: ["-b", "-w", `sample1/${SubProject.tests}`, "-verbose"], - sys: () => createWatchedSystem(allFiles, { currentDirectory: "/user/username/projects" }), + commandLineArgs: ["-b", "-w", "tests", "-verbose"], + sys: getSysForSampleProjectReferences, edits: [ { caption: "Make non dts change", - edit: sys => - sys.writeFile( - logic[1].path, - `${logic[1].content} -function someFn() { }`, - ), + edit: sys => sys.appendFile("logic/index.ts", `\nfunction someFn() { }`), timeouts: sys => sys.runQueuedTimeoutCallbacks(), // build logic and updates tests }, { caption: "Make dts change", - edit: sys => - sys.writeFile( - logic[1].path, - `${logic[1].content} -export function someFn() { }`, - ), + edit: sys => sys.replaceFileText("logic/index.ts", `\nfunction someFn() { }`, `\nexport function someFn() { }`), timeouts: sys => { sys.runQueuedTimeoutCallbacks(); // build logic sys.runQueuedTimeoutCallbacks(); // build tests @@ -543,7 +451,7 @@ export function someFn() { }`, }; const configFile: File = { path: `/user/username/projects/myproject/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { noUnusedParameters: true, }, @@ -557,7 +465,7 @@ export function someFn() { }`, edit: sys => sys.writeFile( `/user/username/projects/myproject/tsconfig.json`, - JSON.stringify({ + jsonToReadableText({ compilerOptions: { noUnusedParameters: false, }, @@ -571,13 +479,13 @@ export function someFn() { }`, verifyTscWatch({ scenario: "programUpdates", subScenario: "should not trigger recompilation because of program emit", - commandLineArgs: ["-b", "-w", `sample1/${SubProject.core}`, "-verbose"], - sys: () => createWatchedSystem([libFile, ...core], { currentDirectory: "/user/username/projects" }), + commandLineArgs: ["-b", "-w", "core", "-verbose"], + sys: getSysForSampleProjectReferences, edits: [ noopChange, { caption: "Add new file", - edit: sys => sys.writeFile(`sample1/${SubProject.core}/file3.ts`, `export const y = 10;`), + edit: sys => sys.writeFile("core/file3.ts", `export const y = 10;`), timeouts: sys => sys.runQueuedTimeoutCallbacks(), }, noopChange, @@ -587,17 +495,19 @@ export function someFn() { }`, verifyTscWatch({ scenario: "programUpdates", subScenario: "should not trigger recompilation because of program emit with outDir specified", - commandLineArgs: ["-b", "-w", `sample1/${SubProject.core}`, "-verbose"], - sys: () => { - const [coreConfig, ...rest] = core; - const newCoreConfig: File = { path: coreConfig.path, content: JSON.stringify({ compilerOptions: { composite: true, outDir: "outDir" } }) }; - return createWatchedSystem([libFile, newCoreConfig, ...rest], { currentDirectory: "/user/username/projects" }); - }, + commandLineArgs: ["-b", "-w", "sample1/core", "-verbose"], + sys: () => + createWatchedSystem({ + ...getFsContentsForSampleProjectReferences(), + "/user/username/projects/sample1/core/tsconfig.json": jsonToReadableText({ + compilerOptions: { composite: true, outDir: "outDir" }, + }), + }, { currentDirectory: "/user/username/projects" }), edits: [ noopChange, { caption: "Add new file", - edit: sys => sys.writeFile(`sample1/${SubProject.core}/file3.ts`, `export const y = 10;`), + edit: sys => sys.writeFile("sample1/core/file3.ts", `export const y = 10;`), timeouts: sys => sys.runQueuedTimeoutCallbacks(), }, noopChange, @@ -615,7 +525,7 @@ export function someFn() { }`, }; const project1Config: File = { path: "/a/b/project1.tsconfig.json", - content: JSON.stringify({ + content: jsonToReadableText({ extends: "./alpha.tsconfig.json", compilerOptions: { composite: true, @@ -625,7 +535,7 @@ export function someFn() { }`, }; const bravoExtendedConfigFile: File = { path: "/a/b/bravo.tsconfig.json", - content: JSON.stringify({ + content: jsonToReadableText({ extends: "./alpha.tsconfig.json", }), }; @@ -635,7 +545,7 @@ export function someFn() { }`, }; const project2Config: File = { path: "/a/b/project2.tsconfig.json", - content: JSON.stringify({ + content: jsonToReadableText({ extends: "./bravo.tsconfig.json", compilerOptions: { composite: true, @@ -649,7 +559,7 @@ export function someFn() { }`, }; const extendsConfigFile1: File = { path: "/a/b/extendsConfig1.tsconfig.json", - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { composite: true, }, @@ -657,7 +567,7 @@ export function someFn() { }`, }; const extendsConfigFile2: File = { path: "/a/b/extendsConfig2.tsconfig.json", - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { strictNullChecks: false, }, @@ -665,7 +575,7 @@ export function someFn() { }`, }; const extendsConfigFile3: File = { path: "/a/b/extendsConfig3.tsconfig.json", - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { noImplicitAny: true, }, @@ -673,7 +583,7 @@ export function someFn() { }`, }; const project3Config: File = { path: "/a/b/project3.tsconfig.json", - content: JSON.stringify({ + content: jsonToReadableText({ extends: ["./extendsConfig1.tsconfig.json", "./extendsConfig2.tsconfig.json", "./extendsConfig3.tsconfig.json"], compilerOptions: { composite: false, @@ -703,7 +613,7 @@ export function someFn() { }`, edit: sys => sys.writeFile( "/a/b/alpha.tsconfig.json", - JSON.stringify({ + jsonToReadableText({ compilerOptions: { strict: true }, }), ), @@ -719,7 +629,7 @@ export function someFn() { }`, edit: sys => sys.writeFile( "/a/b/bravo.tsconfig.json", - JSON.stringify({ + jsonToReadableText({ extends: "./alpha.tsconfig.json", compilerOptions: { strict: false }, }), @@ -731,7 +641,7 @@ export function someFn() { }`, edit: sys => sys.writeFile( "/a/b/project2.tsconfig.json", - JSON.stringify({ + jsonToReadableText({ extends: "./alpha.tsconfig.json", }), ), @@ -752,7 +662,7 @@ export function someFn() { }`, edit: sys => sys.writeFile( "/a/b/extendsConfig2.tsconfig.json", - JSON.stringify({ + jsonToReadableText({ compilerOptions: { strictNullChecks: true }, }), ), @@ -763,7 +673,7 @@ export function someFn() { }`, edit: sys => sys.writeFile( "/a/b/project3.tsconfig.json", - JSON.stringify({ + jsonToReadableText({ extends: ["./extendsConfig1.tsconfig.json", "./extendsConfig2.tsconfig.json"], compilerOptions: { composite: false }, files: ["/a/b/other2.ts"], @@ -786,7 +696,7 @@ export function someFn() { }`, sys: () => { const alphaExtendedConfigFile: File = { path: "/a/b/alpha.tsconfig.json", - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { strict: true, }, @@ -794,7 +704,7 @@ export function someFn() { }`, }; const project1Config: File = { path: "/a/b/project1.tsconfig.json", - content: JSON.stringify({ + content: jsonToReadableText({ extends: "./alpha.tsconfig.json", compilerOptions: { composite: true, @@ -804,7 +714,7 @@ export function someFn() { }`, }; const bravoExtendedConfigFile: File = { path: "/a/b/bravo.tsconfig.json", - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { strict: true, }, @@ -816,7 +726,7 @@ export function someFn() { }`, }; const project2Config: File = { path: "/a/b/project2.tsconfig.json", - content: JSON.stringify({ + content: jsonToReadableText({ extends: "./bravo.tsconfig.json", compilerOptions: { composite: true, @@ -826,7 +736,7 @@ export function someFn() { }`, }; const configFile: File = { path: "/a/b/tsconfig.json", - content: JSON.stringify({ + content: jsonToReadableText({ references: [ { path: "./project1.tsconfig.json", @@ -856,7 +766,7 @@ export function someFn() { }`, edit: sys => sys.modifyFile( "/a/b/tsconfig.json", - JSON.stringify({ + jsonToReadableText({ references: [ { path: "./project1.tsconfig.json", diff --git a/src/testRunner/unittests/tsbuildWatch/projectsBuilding.ts b/src/testRunner/unittests/tsbuildWatch/projectsBuilding.ts index 851af314be0e2..f14506e74d6b3 100644 --- a/src/testRunner/unittests/tsbuildWatch/projectsBuilding.ts +++ b/src/testRunner/unittests/tsbuildWatch/projectsBuilding.ts @@ -1,4 +1,7 @@ import * as ts from "../../_namespaces/ts"; +import { + jsonToReadableText, +} from "../helpers"; import { noopChange, TscWatchCompileChange, @@ -29,7 +32,7 @@ describe("unittests:: tsbuildWatch:: watchMode:: projectsBuilding", () => { }, { path: `/user/username/projects/myproject/pkg${index}/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { composite: true }, references: index === 0 ? undefined : @@ -41,7 +44,7 @@ describe("unittests:: tsbuildWatch:: watchMode:: projectsBuilding", () => { function solution(maxPkgs: number): File { return { path: `/user/username/projects/myproject/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ references: pkgs(createPkgReference, maxPkgs), files: [], }), diff --git a/src/testRunner/unittests/tsbuildWatch/publicApi.ts b/src/testRunner/unittests/tsbuildWatch/publicApi.ts index 2f5ba8f5f648e..c4fa1b747343e 100644 --- a/src/testRunner/unittests/tsbuildWatch/publicApi.ts +++ b/src/testRunner/unittests/tsbuildWatch/publicApi.ts @@ -1,4 +1,7 @@ import * as ts from "../../_namespaces/ts"; +import { + jsonToReadableText, +} from "../helpers"; import { createBaseline, createSolutionBuilderWithWatchHostForBaseline, @@ -13,7 +16,7 @@ import { it("unittests:: tsbuildWatch:: watchMode:: Public API with custom transformers", () => { const solution: File = { path: `/user/username/projects/myproject/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ references: [ { path: "./shared/tsconfig.json" }, { path: "./webpack/tsconfig.json" }, @@ -23,7 +26,7 @@ it("unittests:: tsbuildWatch:: watchMode:: Public API with custom transformers", }; const sharedConfig: File = { path: `/user/username/projects/myproject/shared/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { composite: true }, }), }; @@ -37,7 +40,7 @@ export function f2() { } // trailing`, }; const webpackConfig: File = { path: `/user/username/projects/myproject/webpack/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { composite: true }, references: [{ path: "../shared/tsconfig.json" }], }), diff --git a/src/testRunner/unittests/tsbuildWatch/reexport.ts b/src/testRunner/unittests/tsbuildWatch/reexport.ts index 1184a781da54f..61088df8c8630 100644 --- a/src/testRunner/unittests/tsbuildWatch/reexport.ts +++ b/src/testRunner/unittests/tsbuildWatch/reexport.ts @@ -1,3 +1,9 @@ +import { + dedent, +} from "../../_namespaces/Utils"; +import { + jsonToReadableText, +} from "../helpers"; import { libContent, } from "../helpers/contents"; @@ -6,7 +12,6 @@ import { } from "../helpers/tscWatch"; import { createWatchedSystem, - getTsBuildProjectFile, libFile, } from "../helpers/virtualFileSystemWithWatch"; @@ -16,21 +21,44 @@ describe("unittests:: tsbuildWatch:: watchMode:: with reexport when referenced p 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 => getTsBuildProjectFile("reexport", f)), - { path: libFile.path, content: libContent }, - ], - { currentDirectory: `/user/username/projects/reexport` }, - ), + createWatchedSystem({ + "/user/username/projects/reexport/src/tsconfig.json": jsonToReadableText({ + files: [], + include: [], + references: [{ path: "./pure" }, { path: "./main" }], + }), + "/user/username/projects/reexport/src/main/tsconfig.json": jsonToReadableText({ + compilerOptions: { + outDir: "../../out", + rootDir: "../", + }, + include: ["**/*.ts"], + references: [{ path: "../pure" }], + }), + "/user/username/projects/reexport/src/main/index.ts": dedent` + import { Session } from "../pure"; + + export const session: Session = { + foo: 1 + }; + `, + "/user/username/projects/reexport/src/pure/tsconfig.json": jsonToReadableText({ + compilerOptions: { + composite: true, + outDir: "../../out", + rootDir: "../", + }, + include: ["**/*.ts"], + }), + "/user/username/projects/reexport/src/pure/index.ts": `export * from "./session";\n`, + "/user/username/projects/reexport/src/pure/session.ts": dedent` + export interface Session { + foo: number; + // bar: number; + } + `, + [libFile.path]: libContent, + }, { currentDirectory: `/user/username/projects/reexport` }), edits: [ { caption: "Introduce error", diff --git a/src/testRunner/unittests/tsbuildWatch/watchEnvironment.ts b/src/testRunner/unittests/tsbuildWatch/watchEnvironment.ts index 64904c3e6e913..e17f46ade75f5 100644 --- a/src/testRunner/unittests/tsbuildWatch/watchEnvironment.ts +++ b/src/testRunner/unittests/tsbuildWatch/watchEnvironment.ts @@ -1,4 +1,7 @@ import * as ts from "../../_namespaces/ts"; +import { + jsonToReadableText, +} from "../helpers"; import { createBaseline, createSolutionBuilderWithWatchHostForBaseline, @@ -101,7 +104,7 @@ describe("unittests:: tsbuildWatch:: watchEnvironment:: tsbuild:: watchMode:: wi }, { path: `${project}/pkg${index}/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ complerOptions: { composite: true }, include: [ "**/*.ts", @@ -114,7 +117,7 @@ describe("unittests:: tsbuildWatch:: watchEnvironment:: tsbuild:: watchMode:: wi function writePkgReferences(system: TestServerHost) { system.writeFile( configPath, - JSON.stringify({ + jsonToReadableText({ files: [], include: [], references: pkgs(createPkgReference), diff --git a/src/testRunner/unittests/tsc/cancellationToken.ts b/src/testRunner/unittests/tsc/cancellationToken.ts index 8deb7cee76083..c710adf9f7224 100644 --- a/src/testRunner/unittests/tsc/cancellationToken.ts +++ b/src/testRunner/unittests/tsc/cancellationToken.ts @@ -1,6 +1,9 @@ import * as Harness from "../../_namespaces/Harness"; import * as ts from "../../_namespaces/ts"; import * as Utils from "../../_namespaces/Utils"; +import { + jsonToReadableText, +} from "../helpers"; import { baselineBuildInfo, CommandLineProgram, @@ -50,7 +53,7 @@ describe("unittests:: tsc:: builder cancellationToken", () => { }; const config: File = { path: `/user/username/projects/myproject/tsconfig.json`, - content: JSON.stringify({ compilerOptions: { incremental: true, declaration: true } }), + content: jsonToReadableText({ compilerOptions: { incremental: true, declaration: true } }), }; const { sys, baseline, oldSnap: originalSnap } = createBaseline(createWatchedSystem( [aFile, bFile, cFile, dFile, config, libFile], diff --git a/src/testRunner/unittests/tsc/composite.ts b/src/testRunner/unittests/tsc/composite.ts index a42d0cb4cc5bd..4b3ad541e8bb1 100644 --- a/src/testRunner/unittests/tsc/composite.ts +++ b/src/testRunner/unittests/tsc/composite.ts @@ -1,4 +1,7 @@ import * as Utils from "../../_namespaces/Utils"; +import { + jsonToReadableText, +} from "../helpers"; import { verifyTsc, } from "../helpers/tsc"; @@ -100,7 +103,7 @@ describe("unittests:: tsc:: composite::", () => { fs: () => loadProjectFromFiles({ "/src/project/src/main.ts": "const x = 10;", - "/src/project/tsconfig.json": JSON.stringify({ + "/src/project/tsconfig.json": jsonToReadableText({ compilerOptions: { module: "none", composite: true, diff --git a/src/testRunner/unittests/tsc/declarationEmit.ts b/src/testRunner/unittests/tsc/declarationEmit.ts index 097f86d3080f0..9b531010e6dcb 100644 --- a/src/testRunner/unittests/tsc/declarationEmit.ts +++ b/src/testRunner/unittests/tsc/declarationEmit.ts @@ -1,4 +1,7 @@ import * as Utils from "../../_namespaces/Utils"; +import { + jsonToReadableText, +} from "../helpers"; import { verifyTscWatch, } from "../helpers/tscWatch"; @@ -50,7 +53,7 @@ describe("unittests:: tsc:: declarationEmit::", () => { describe("with symlinks in sibling folders and common package referenced from both folders", () => { function pluginOneConfig() { - return JSON.stringify({ + return jsonToReadableText({ compilerOptions: { target: "es5", declaration: true, @@ -93,7 +96,7 @@ describe("unittests:: tsc:: declarationEmit::", () => { export default _default;`; } function fsaPackageJson() { - return JSON.stringify({ + return jsonToReadableText({ name: "typescript-fsa", version: "3.0.0-beta-2", }); @@ -139,7 +142,7 @@ describe("unittests:: tsc:: declarationEmit::", () => { files: [ { path: `/user/username/projects/myproject/plugin-two/package.json`, - content: JSON.stringify({ + content: jsonToReadableText({ name: "plugin-two", version: "0.1.3", main: "dist/commonjs/index.js", @@ -192,7 +195,7 @@ ${pluginOneAction()}`, }, { path: `/user/username/projects/myproject/pkg1/package.json`, - content: JSON.stringify({ + content: jsonToReadableText({ name: "@raymondfeng/pkg1", version: "1.0.0", main: "dist/index.js", @@ -211,7 +214,7 @@ ${pluginOneAction()}`, }, { path: `/user/username/projects/myproject/pkg2/package.json`, - content: JSON.stringify({ + content: jsonToReadableText({ name: "@raymondfeng/pkg2", version: "1.0.0", main: "dist/index.js", @@ -231,7 +234,7 @@ ${pluginOneAction()}`, }, { path: `/user/username/projects/myproject/pkg3/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { outDir: "dist", rootDir: "src", diff --git a/src/testRunner/unittests/tsc/incremental.ts b/src/testRunner/unittests/tsc/incremental.ts index 6232fc3b59bee..5eaa5b15644a9 100644 --- a/src/testRunner/unittests/tsc/incremental.ts +++ b/src/testRunner/unittests/tsc/incremental.ts @@ -1,10 +1,16 @@ import * as ts from "../../_namespaces/ts"; import * as Utils from "../../_namespaces/Utils"; import * as vfs from "../../_namespaces/vfs"; +import { + jsonToReadableText, +} from "../helpers"; import { compilerOptionsToConfigJson, libContent, } from "../helpers/contents"; +import { + getFsForNoEmitOnError, +} from "../helpers/noEmitOnError"; import { noChangeOnlyRuns, noChangeRun, @@ -13,7 +19,6 @@ import { } from "../helpers/tsc"; import { appendText, - loadProjectFromDisk, loadProjectFromFiles, prependText, replaceText, @@ -116,7 +121,7 @@ describe("unittests:: tsc:: incremental::", () => { describe("with noEmitOnError", () => { let projFs: vfs.FileSystem; before(() => { - projFs = loadProjectFromDisk("tests/projects/noEmitOnError"); + projFs = getFsForNoEmitOnError(); }); after(() => { projFs = undefined!; @@ -127,7 +132,7 @@ describe("unittests:: tsc:: incremental::", () => { scenario: "incremental", subScenario, fs: () => projFs, - commandLineArgs: ["--incremental", "-p", "src"], + commandLineArgs: ["--incremental"], modifyFs, edits: [ noChangeRun, @@ -144,7 +149,7 @@ describe("unittests:: tsc:: incremental::", () => { "with noEmitOnError syntax errors", fs => fs.writeFileSync( - "/src/src/main.ts", + "src/main.ts", `import { A } from "../shared/types/db"; const a = { lastName: 'sdsd' @@ -157,14 +162,14 @@ const a = { "with noEmitOnError semantic errors", fs => fs.writeFileSync( - "/src/src/main.ts", + "src/main.ts", `import { A } from "../shared/types/db"; const a: string = "hello";`, "utf-8", ), fs => fs.writeFileSync( - "/src/src/main.ts", + "src/main.ts", `import { A } from "../shared/types/db"; const a: string = 10;`, "utf-8", @@ -295,7 +300,7 @@ const a: string = 10;`, "/src/project/src/noChangeFileWithEmitSpecificError.ts": Utils.dedent` function someFunc(arguments: boolean, ...rest: any[]) { }`, - "/src/project/tsconfig.json": JSON.stringify({ compilerOptions }), + "/src/project/tsconfig.json": jsonToReadableText({ compilerOptions }), }); } } @@ -317,7 +322,7 @@ const a: string = 10;`, function anotherFileWithSameReferenes() { } `, "/src/project/src/filePresent.ts": `function something() { return 10; }`, - "/src/project/tsconfig.json": JSON.stringify({ + "/src/project/tsconfig.json": jsonToReadableText({ compilerOptions: { composite: true }, include: ["src/**/*.ts"], }), @@ -382,7 +387,7 @@ declare global { "/src/project/node_modules/react/jsx-runtime.js": "export {}", // js needs to be present so there's a resolution result "/src/project/node_modules/@types/react/index.d.ts": getJsxLibraryContent(), // doesn't contain a jsx-runtime definition "/src/project/src/index.tsx": `export const App = () =>
;`, - "/src/project/tsconfig.json": JSON.stringify({ compilerOptions: { module: "commonjs", jsx: "react-jsx", incremental: true, jsxImportSource: "react" } }), + "/src/project/tsconfig.json": jsonToReadableText({ compilerOptions: { module: "commonjs", jsx: "react-jsx", incremental: true, jsxImportSource: "react" } }), }), commandLineArgs: ["--p", "src/project"], }); @@ -395,7 +400,7 @@ declare global { "/src/project/node_modules/react/jsx-runtime.js": "export {}", // js needs to be present so there's a resolution result "/src/project/node_modules/@types/react/index.d.ts": getJsxLibraryContent(), // doesn't contain a jsx-runtime definition "/src/project/src/index.tsx": `export const App = () =>
;`, - "/src/project/tsconfig.json": JSON.stringify({ compilerOptions: { module: "commonjs", jsx: "react-jsx", incremental: true, jsxImportSource: "react" } }), + "/src/project/tsconfig.json": jsonToReadableText({ compilerOptions: { module: "commonjs", jsx: "react-jsx", incremental: true, jsxImportSource: "react" } }), }), commandLineArgs: ["--p", "src/project", "--strict"], }); @@ -407,7 +412,7 @@ declare global { commandLineArgs: ["-i", "-p", `src/projects/project2`], fs: () => loadProjectFromFiles({ - "/src/projects/project1/tsconfig.json": JSON.stringify({ + "/src/projects/project1/tsconfig.json": jsonToReadableText({ compilerOptions: { module: "none", composite: true, @@ -416,7 +421,7 @@ declare global { }), "/src/projects/project1/class1.ts": `class class1 {}`, "/src/projects/project1/class1.d.ts": `declare class class1 {}`, - "/src/projects/project2/tsconfig.json": JSON.stringify({ + "/src/projects/project2/tsconfig.json": jsonToReadableText({ compilerOptions: { module: "none", composite: true, @@ -468,7 +473,7 @@ declare global { commandLineArgs: ["-noEmit", "-p", `src/project`], fs: () => loadProjectFromFiles({ - "/src/project/tsconfig.json": JSON.stringify({ + "/src/project/tsconfig.json": jsonToReadableText({ compilerOptions: { incremental: true, strict: true, @@ -486,7 +491,7 @@ declare global { commandLineArgs: ["-p", `src/project`], fs: () => loadProjectFromFiles({ - "/src/project/tsconfig.json": JSON.stringify({ + "/src/project/tsconfig.json": jsonToReadableText({ compilerOptions: { incremental: true, strict: true, @@ -550,7 +555,7 @@ declare global { commandLineArgs: ["-p", `src/project`], fs: () => loadProjectFromFiles({ - "/src/project/tsconfig.json": JSON.stringify({ compilerOptions: { composite: true } }), + "/src/project/tsconfig.json": jsonToReadableText({ compilerOptions: { composite: true } }), "/src/project/class1.ts": `const a: MagicNumber = 1; console.log(a);`, "/src/project/constants.ts": "export default 1;", @@ -568,7 +573,7 @@ console.log(a);`, commandLineArgs: ["-p", `src/project`], fs: () => loadProjectFromFiles({ - "/src/project/tsconfig.json": JSON.stringify({ compilerOptions: { composite: true } }), + "/src/project/tsconfig.json": jsonToReadableText({ compilerOptions: { composite: true } }), "/src/project/class1.ts": `const a: MagicNumber = 1; console.log(a);`, "/src/project/constants.ts": "export default 1;", @@ -588,7 +593,7 @@ console.log(a);`, commandLineArgs: ["-p", "src/project", "--incremental"], fs: () => loadProjectFromFiles({ - "/src/project/tsconfig.json": JSON.stringify({ compilerOptions: { declaration } }), + "/src/project/tsconfig.json": jsonToReadableText({ compilerOptions: { declaration } }), "/src/project/main.ts": Utils.dedent` import MessageablePerson from './MessageablePerson.js'; function logMessage( person: MessageablePerson ) { @@ -632,7 +637,7 @@ console.log(a);`, subScenario: `when declarationMap changes`, fs: () => loadProjectFromFiles({ - "/src/project/tsconfig.json": JSON.stringify({ + "/src/project/tsconfig.json": jsonToReadableText({ compilerOptions: { noEmitOnError: true, declaration: true, @@ -667,7 +672,7 @@ console.log(a);`, subScenario: `when declarationMap changes with outFile`, fs: () => loadProjectFromFiles({ - "/src/project/tsconfig.json": JSON.stringify({ + "/src/project/tsconfig.json": jsonToReadableText({ compilerOptions: { noEmitOnError: true, declaration: true, @@ -750,7 +755,7 @@ console.log(a);`, } function fs(options: ts.CompilerOptions) { return loadProjectFromFiles({ - "/src/project/tsconfig.json": JSON.stringify({ compilerOptions: compilerOptionsToConfigJson(options) }), + "/src/project/tsconfig.json": jsonToReadableText({ compilerOptions: compilerOptionsToConfigJson(options) }), "/src/project/a.ts": `export const a = 10;const aLocal = 10;`, "/src/project/b.ts": `export const b = 10;const bLocal = 10;`, "/src/project/c.ts": `import { a } from "./a";export const c = a;`, @@ -763,7 +768,7 @@ console.log(a);`, edit: fs => { const config = JSON.parse(fs.readFileSync("/src/project/tsconfig.json", "utf-8")); config.compilerOptions.declarationMap = true; - fs.writeFileSync("/src/project/tsconfig.json", JSON.stringify(config)); + fs.writeFileSync("/src/project/tsconfig.json", jsonToReadableText(config)); }, }; } @@ -865,7 +870,7 @@ console.log(a);`, commandLineArgs: ["-p", `/src/project`], fs: () => loadProjectFromFiles({ - "/src/project/tsconfig.json": JSON.stringify({ + "/src/project/tsconfig.json": jsonToReadableText({ compilerOptions: { composite: true, outDir: "outDir", @@ -887,7 +892,7 @@ console.log(a);`, subScenario: "file deleted before fixing error with noEmitOnError", fs: () => loadProjectFromFiles({ - "/src/project/tsconfig.json": JSON.stringify({ + "/src/project/tsconfig.json": jsonToReadableText({ compilerOptions: { outDir: "outDir", noEmitOnError: true, diff --git a/src/testRunner/unittests/tsc/projectReferences.ts b/src/testRunner/unittests/tsc/projectReferences.ts index bd3df222617d7..8a0a9394e7316 100644 --- a/src/testRunner/unittests/tsc/projectReferences.ts +++ b/src/testRunner/unittests/tsc/projectReferences.ts @@ -1,3 +1,6 @@ +import { + jsonToReadableText, +} from "../helpers"; import { verifyTsc, } from "../helpers/tsc"; @@ -12,7 +15,7 @@ describe("unittests:: tsc:: projectReferences::", () => { fs: () => loadProjectFromFiles({ "/src/project/src/main.ts": "export const x = 10;", - "/src/project/tsconfig.json": JSON.stringify({ + "/src/project/tsconfig.json": jsonToReadableText({ compilerOptions: { module: "amd", outFile: "theApp.js", @@ -31,14 +34,14 @@ describe("unittests:: tsc:: projectReferences::", () => { fs: () => loadProjectFromFiles({ "/src/utils/index.ts": "export const x = 10;", - "/src/utils/tsconfig.json": JSON.stringify({ + "/src/utils/tsconfig.json": jsonToReadableText({ compilerOptions: { composite: true, noEmit: true, }, }), "/src/project/index.ts": `import { x } from "../utils";`, - "/src/project/tsconfig.json": JSON.stringify({ + "/src/project/tsconfig.json": jsonToReadableText({ references: [ { path: "../utils" }, ], diff --git a/src/testRunner/unittests/tsc/projectReferencesConfig.ts b/src/testRunner/unittests/tsc/projectReferencesConfig.ts index 4a631c946702f..b641bb3038454 100644 --- a/src/testRunner/unittests/tsc/projectReferencesConfig.ts +++ b/src/testRunner/unittests/tsc/projectReferencesConfig.ts @@ -1,4 +1,7 @@ import * as ts from "../../_namespaces/ts"; +import { + jsonToReadableText, +} from "../helpers"; import { verifyTsc, } from "../helpers/tsc"; @@ -23,24 +26,20 @@ function getConfig({ references, options, config }: { options?: ts.CompilerOptions; config?: object; } = {}) { - return JSON.stringify( - { - compilerOptions: { - composite: true, - outDir: "bin", - ...options, - }, - references: references?.map(r => { - if (typeof r === "string") { - return { path: r }; - } - return r; - }) || [], - ...config, + return jsonToReadableText({ + compilerOptions: { + composite: true, + outDir: "bin", + ...options, }, - undefined, - " ", - ); + references: references?.map(r => { + if (typeof r === "string") { + return { path: r }; + } + return r; + }) || [], + ...config, + }); } describe("unittests:: config:: project-references meta check", () => { diff --git a/src/testRunner/unittests/tsc/redirect.ts b/src/testRunner/unittests/tsc/redirect.ts index 83328e47c052f..37646f7479a1b 100644 --- a/src/testRunner/unittests/tsc/redirect.ts +++ b/src/testRunner/unittests/tsc/redirect.ts @@ -1,3 +1,6 @@ +import { + jsonToReadableText, +} from "../helpers"; import { verifyTsc, } from "../helpers/tsc"; @@ -11,7 +14,7 @@ describe("unittests:: tsc:: redirect::", () => { subScenario: "when redirecting ts file", fs: () => loadProjectFromFiles({ - "/src/project/tsconfig.json": JSON.stringify({ + "/src/project/tsconfig.json": jsonToReadableText({ compilerOptions: { outDir: "out", }, @@ -22,14 +25,14 @@ describe("unittests:: tsc:: redirect::", () => { }), "/src/project/copy1/node_modules/target/index.ts": "export const a = 1;", "/src/project/copy1/node_modules/target/import.ts": `import {} from "./";`, - "/src/project/copy1/node_modules/target/package.json": JSON.stringify({ + "/src/project/copy1/node_modules/target/package.json": jsonToReadableText({ name: "target", version: "1.0.0", main: "index.js", }), "/src/project/copy2/node_modules/target/index.ts": "export const a = 1;", "/src/project/copy2/node_modules/target/import.ts": `import {} from "./";`, - "/src/project/copy2/node_modules/target/package.json": JSON.stringify({ + "/src/project/copy2/node_modules/target/package.json": jsonToReadableText({ name: "target", version: "1.0.0", main: "index.js", diff --git a/src/testRunner/unittests/tscWatch/consoleClearing.ts b/src/testRunner/unittests/tscWatch/consoleClearing.ts index 60d1cb0e9690e..3e759eb0b7a09 100644 --- a/src/testRunner/unittests/tscWatch/consoleClearing.ts +++ b/src/testRunner/unittests/tscWatch/consoleClearing.ts @@ -1,4 +1,7 @@ import * as ts from "../../_namespaces/ts"; +import { + jsonToReadableText, +} from "../helpers"; import { createBaseline, createWatchCompilerHostOfConfigFileForBaseline, @@ -46,7 +49,7 @@ describe("unittests:: tsc-watch:: console clearing", () => { }; const configFile: File = { path: "/tsconfig.json", - content: JSON.stringify({ compilerOptions }), + content: jsonToReadableText({ compilerOptions }), }; const files = [file, configFile, libFile]; it("using createWatchOfConfigFile ", () => { diff --git a/src/testRunner/unittests/tscWatch/emit.ts b/src/testRunner/unittests/tscWatch/emit.ts index f2866743888f9..f29421b920af7 100644 --- a/src/testRunner/unittests/tscWatch/emit.ts +++ b/src/testRunner/unittests/tscWatch/emit.ts @@ -1,4 +1,7 @@ import * as ts from "../../_namespaces/ts"; +import { + jsonToReadableText, +} from "../helpers"; import { TscWatchCompileChange, verifyTscWatch, @@ -21,7 +24,7 @@ describe("unittests:: tsc-watch:: emit with outFile or out setting", () => { createWatchedSystem({ "/a/a.ts": "let x = 1", "/a/b.ts": "let y = 1", - "/a/tsconfig.json": JSON.stringify({ compilerOptions: { out, outFile } }), + "/a/tsconfig.json": jsonToReadableText({ compilerOptions: { out, outFile } }), [libFile.path]: libFile.content, }), edits: [ @@ -66,7 +69,7 @@ describe("unittests:: tsc-watch:: emit with outFile or out setting", () => { }; const configFile: File = { path: "/a/b/project/tsconfig.json", - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: useOutFile ? { outFile: "../output/common.js", target: "es5" } : { outDir: "../output", target: "es5" }, @@ -136,7 +139,7 @@ describe("unittests:: tsc-watch:: emit for configured projects", () => { }; const configFile: File = { path: configFilePath, - content: JSON.stringify(configObj || {}), + content: jsonToReadableText(configObj || {}), }; const additionalFiles = getAdditionalFileOrFolder?.() || ts.emptyArray; const files = [moduleFile1, file1Consumer1, file1Consumer2, globalFile3, moduleFile2, configFile, libFile, ...additionalFiles]; @@ -469,7 +472,7 @@ describe("unittests:: tsc-watch:: emit file content", () => { }; const configFile: File = { path: `${projectLocation}/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ include: [ "app/**/*.ts", ], @@ -496,7 +499,7 @@ describe("unittests:: tsc-watch:: emit with when module emit is specified as nod sys: () => { const configFile: File = { path: "/a/rootFolder/project/tsconfig.json", - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { module: "none", allowJs: true, diff --git a/src/testRunner/unittests/tscWatch/emitAndErrorUpdates.ts b/src/testRunner/unittests/tscWatch/emitAndErrorUpdates.ts index f46e0db56b05e..1585ef391a7ed 100644 --- a/src/testRunner/unittests/tscWatch/emitAndErrorUpdates.ts +++ b/src/testRunner/unittests/tscWatch/emitAndErrorUpdates.ts @@ -1,6 +1,12 @@ import { - libContent, + jsonToReadableText, +} from "../helpers"; +import { + FsContents, } from "../helpers/contents"; +import { + getFsContentsForNoEmitOnError, +} from "../helpers/noEmitOnError"; import { TscWatchCompileChange, verifyTscWatch, @@ -8,7 +14,6 @@ import { import { createWatchedSystem, File, - getTsBuildProjectFile, libFile, } from "../helpers/virtualFileSystemWithWatch"; @@ -19,7 +24,7 @@ describe("unittests:: tsc-watch:: Emit times and Error updates in builder after }; interface VerifyEmitAndErrorUpdates { subScenario: string; - files: () => File[]; + files: () => FsContents | readonly File[]; currentDirectory?: string; changes: TscWatchCompileChange[]; } @@ -251,7 +256,7 @@ getPoint().c.x;`, describe("updates errors when file transitively exported file changes", () => { const config: File = { path: `/user/username/projects/myproject/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ files: ["app.ts"], compilerOptions: { baseUrl: "." }, }), @@ -370,9 +375,7 @@ export class Data2 { verifyEmitAndErrorUpdates({ subScenario: "with noEmitOnError", currentDirectory: `/user/username/projects/noEmitOnError`, - files: () => - ["shared/types/db.ts", "src/main.ts", "src/other.ts", "tsconfig.json"] - .map(f => getTsBuildProjectFile("noEmitOnError", f)).concat({ path: libFile.path, content: libContent }), + files: getFsContentsForNoEmitOnError, changes: [ noChange, change( diff --git a/src/testRunner/unittests/tscWatch/forceConsistentCasingInFileNames.ts b/src/testRunner/unittests/tscWatch/forceConsistentCasingInFileNames.ts index 10943c2241081..1d1e1b652fe9c 100644 --- a/src/testRunner/unittests/tscWatch/forceConsistentCasingInFileNames.ts +++ b/src/testRunner/unittests/tscWatch/forceConsistentCasingInFileNames.ts @@ -1,4 +1,7 @@ import * as Utils from "../../_namespaces/Utils"; +import { + jsonToReadableText, +} from "../helpers"; import { TscWatchCompileChange, verifyTscWatch, @@ -21,7 +24,7 @@ describe("unittests:: tsc-watch:: forceConsistentCasingInFileNames", () => { }; const tsconfig: File = { path: `/user/username/projects/myproject/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { forceConsistentCasingInFileNames: true }, }), }; @@ -77,7 +80,7 @@ describe("unittests:: tsc-watch:: forceConsistentCasingInFileNames", () => { }; const tsconfig: File = { path: `/user/username/projects/myproject/tsconfig.json`, - content: JSON.stringify({ compilerOptions: { forceConsistentCasingInFileNames: true } }), + content: jsonToReadableText({ compilerOptions: { forceConsistentCasingInFileNames: true } }), }; return createWatchedSystem([moduleA, moduleB, moduleC, libFile, tsconfig], { currentDirectory: "/user/username/projects/myproject" }); }, @@ -119,7 +122,7 @@ export const Fragment: unique symbol; }, { path: `/user/username/projects/myproject/node_modules/react/package.json`, - content: JSON.stringify({ name: "react", version: "0.0.1" }), + content: jsonToReadableText({ name: "react", version: "0.0.1" }), }, { path: `/user/username/projects/myproject/index.tsx`, @@ -127,7 +130,7 @@ export const Fragment: unique symbol; }, { path: `/user/username/projects/myproject/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { jsx: "react-jsx", jsxImportSource: "react", forceConsistentCasingInFileNames: true }, files: ["node_modules/react/Jsx-Runtime/index.d.ts", "index.tsx"], }), @@ -159,7 +162,7 @@ a;b; }; const tsconfig: File = { path: `${windowsStyleRoot}/${projectRootRelative}/tsconfig.json`, - content: JSON.stringify({ compilerOptions: { forceConsistentCasingInFileNames: true } }), + content: jsonToReadableText({ compilerOptions: { forceConsistentCasingInFileNames: true } }), }; return createWatchedSystem([moduleA, moduleB, libFile, tsconfig], { windowsStyleRoot, useCaseSensitiveFileNames: false }); }, @@ -209,7 +212,7 @@ a;b; }; const tsconfig: File = { path: `/user/username/projects/myproject/tsconfig.json`, - content: JSON.stringify({ compilerOptions: { forceConsistentCasingInFileNames: true } }), + content: jsonToReadableText({ compilerOptions: { forceConsistentCasingInFileNames: true } }), }; return createWatchedSystem([moduleA, symlinkA, moduleB, libFile, tsconfig], { currentDirectory: "/user/username/projects/myproject" }); }, @@ -264,7 +267,7 @@ a;b; const tsconfig: File = { path: `/user/username/projects/myproject/tsconfig.json`, // Use outFile because otherwise the real and linked files will have the same output path - content: JSON.stringify({ compilerOptions: { forceConsistentCasingInFileNames: true, outFile: "out.js", module: "system" } }), + content: jsonToReadableText({ compilerOptions: { forceConsistentCasingInFileNames: true, outFile: "out.js", module: "system" } }), }; return createWatchedSystem([moduleA, symlinkA, moduleB, libFile, tsconfig], { currentDirectory: "/user/username/projects/myproject" }); }, @@ -299,7 +302,7 @@ a;b; "/Users/name/projects/web/src/bin.ts": `import { foo } from "yargs";`, "/Users/name/projects/web/node_modules/@types/yargs/index.d.ts": "export function foo(): void;", "/Users/name/projects/web/node_modules/@types/yargs/index.d.mts": "export function foo(): void;", - "/Users/name/projects/web/node_modules/@types/yargs/package.json": JSON.stringify({ + "/Users/name/projects/web/node_modules/@types/yargs/package.json": jsonToReadableText({ name: "yargs", version: "17.0.12", exports: { @@ -311,7 +314,7 @@ a;b; }, }, }), - "/Users/name/projects/web/tsconfig.json": JSON.stringify({ + "/Users/name/projects/web/tsconfig.json": jsonToReadableText({ compilerOptions: { moduleResolution: "nodenext", forceConsistentCasingInFileNames: true, @@ -328,7 +331,7 @@ a;b; commandLineArgs: ["-w", "--explainFiles"], sys: () => createWatchedSystem({ - "/Users/name/projects/web/package.json": JSON.stringify({ + "/Users/name/projects/web/package.json": jsonToReadableText({ name: "@this/package", type: "module", exports: { @@ -340,7 +343,7 @@ a;b; me.thing(); export function thing(): void {} `, - "/Users/name/projects/web/tsconfig.json": JSON.stringify({ + "/Users/name/projects/web/tsconfig.json": jsonToReadableText({ compilerOptions: { module: "nodenext", outDir: "./dist", @@ -360,7 +363,7 @@ a;b; commandLineArgs: ["-w", "--explainFiles"], sys: () => createWatchedSystem({ - "/Users/name/projects/lib-boilerplate/package.json": JSON.stringify({ + "/Users/name/projects/lib-boilerplate/package.json": jsonToReadableText({ name: "lib-boilerplate", version: "0.0.2", type: "module", @@ -372,7 +375,7 @@ a;b; "/Users/name/projects/lib-boilerplate/test/basic.spec.ts": Utils.dedent` import { thing } from 'lib-boilerplate' `, - "/Users/name/projects/lib-boilerplate/tsconfig.json": JSON.stringify({ + "/Users/name/projects/lib-boilerplate/tsconfig.json": jsonToReadableText({ compilerOptions: { module: "node16", target: "es2021", diff --git a/src/testRunner/unittests/tscWatch/incremental.ts b/src/testRunner/unittests/tscWatch/incremental.ts index c2218d1ae6037..a2b098774fead 100644 --- a/src/testRunner/unittests/tscWatch/incremental.ts +++ b/src/testRunner/unittests/tscWatch/incremental.ts @@ -1,5 +1,8 @@ import * as Harness from "../../_namespaces/Harness"; import * as ts from "../../_namespaces/ts"; +import { + jsonToReadableText, +} from "../helpers"; import { CommandLineProgram, } from "../helpers/baseline"; @@ -25,7 +28,7 @@ describe("unittests:: tsc-watch:: emit file --incremental", () => { const configFile: File = { path: `${project}/tsconfig.json`, - content: JSON.stringify({ compilerOptions: { incremental: true } }), + content: jsonToReadableText({ compilerOptions: { incremental: true } }), }; interface VerifyIncrementalWatchEmitInput { @@ -115,7 +118,7 @@ describe("unittests:: tsc-watch:: emit file --incremental", () => { verifyIncrementalWatchEmit({ files: () => [libFile, file1, file2, { path: configFile.path, - content: JSON.stringify({ compilerOptions: { incremental: true, outFile: "out.js" } }), + content: jsonToReadableText({ compilerOptions: { incremental: true, outFile: "out.js" } }), }], subScenario: "with --out", }); @@ -132,7 +135,7 @@ describe("unittests:: tsc-watch:: emit file --incremental", () => { }; const config: File = { path: configFile.path, - content: JSON.stringify({ compilerOptions: { incremental: true, module: "amd" } }), + content: jsonToReadableText({ compilerOptions: { incremental: true, module: "amd" } }), }; verifyIncrementalWatchEmit({ @@ -229,7 +232,7 @@ describe("unittests:: tsc-watch:: emit file --incremental", () => { verifyIncrementalWatchEmit({ files: () => [libFile, file1, file2, { path: configFile.path, - content: JSON.stringify({ compilerOptions: { incremental: true, module: "amd", outFile: "out.js" } }), + content: jsonToReadableText({ compilerOptions: { incremental: true, module: "amd", outFile: "out.js" } }), }], subScenario: "module compilation/with --out", }); @@ -239,7 +242,7 @@ describe("unittests:: tsc-watch:: emit file --incremental", () => { files: () => { const config: File = { path: configFile.path, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { incremental: true, target: "es5", @@ -301,7 +304,7 @@ export interface A { { path: libFile.path, content: libContent }, { path: `${project}/globals.d.ts`, content: `declare namespace Config { const value: string;} ` }, { path: `${project}/index.ts`, content: `console.log(Config.value);` }, - { path: configFile.path, content: JSON.stringify({ compilerOptions: { incremental: true } }) }, + { path: configFile.path, content: jsonToReadableText({ compilerOptions: { incremental: true } }) }, ], modifyFs: host => host.deleteFile(`${project}/globals.d.ts`), }); @@ -326,13 +329,13 @@ export const Fragment: unique symbol; files: () => [ { path: libFile.path, content: libContent }, { path: `${project}/node_modules/react/jsx-runtime/index.d.ts`, content: jsxLibraryContent }, - { path: `${project}/node_modules/react/package.json`, content: JSON.stringify({ name: "react", version: "0.0.1" }) }, + { path: `${project}/node_modules/react/package.json`, content: jsonToReadableText({ name: "react", version: "0.0.1" }) }, { path: `${project}/node_modules/preact/jsx-runtime/index.d.ts`, content: jsxLibraryContent.replace("propA", "propB") }, - { path: `${project}/node_modules/preact/package.json`, content: JSON.stringify({ name: "preact", version: "0.0.1" }) }, + { path: `${project}/node_modules/preact/package.json`, content: jsonToReadableText({ name: "preact", version: "0.0.1" }) }, { path: `${project}/index.tsx`, content: `export const App = () =>
;` }, - { path: configFile.path, content: JSON.stringify({ compilerOptions: jsxImportSourceOptions }) }, + { path: configFile.path, content: jsonToReadableText({ compilerOptions: jsxImportSourceOptions }) }, ], - modifyFs: host => host.writeFile(configFile.path, JSON.stringify({ compilerOptions: { ...jsxImportSourceOptions, jsxImportSource: "preact" } })), + modifyFs: host => host.writeFile(configFile.path, jsonToReadableText({ compilerOptions: { ...jsxImportSourceOptions, jsxImportSource: "preact" } })), optionsToExtend: ["--explainFiles"], }); @@ -341,14 +344,14 @@ export const Fragment: unique symbol; files: () => [ { path: libFile.path, content: libContent }, { path: `${project}/index.tsx`, content: `export const App = () =>
;` }, - { path: configFile.path, content: JSON.stringify({ compilerOptions: jsxImportSourceOptions }) }, + { path: configFile.path, content: jsonToReadableText({ compilerOptions: jsxImportSourceOptions }) }, ], modifyFs: host => { host.createDirectory(`${project}/node_modules`); host.createDirectory(`${project}/node_modules/react`); host.createDirectory(`${project}/node_modules/react/jsx-runtime`); host.writeFile(`${project}/node_modules/react/jsx-runtime/index.d.ts`, jsxLibraryContent); - host.writeFile(`${project}/node_modules/react/package.json`, JSON.stringify({ name: "react", version: "0.0.1" })); + host.writeFile(`${project}/node_modules/react/package.json`, jsonToReadableText({ name: "react", version: "0.0.1" })); }, }); @@ -357,9 +360,9 @@ export const Fragment: unique symbol; files: () => [ { path: libFile.path, content: libContent }, { path: `${project}/node_modules/react/jsx-runtime/index.d.ts`, content: jsxLibraryContent }, - { path: `${project}/node_modules/react/package.json`, content: JSON.stringify({ name: "react", version: "0.0.1" }) }, + { path: `${project}/node_modules/react/package.json`, content: jsonToReadableText({ name: "react", version: "0.0.1" }) }, { path: `${project}/index.tsx`, content: `export const App = () =>
;` }, - { path: configFile.path, content: JSON.stringify({ compilerOptions: jsxImportSourceOptions }) }, + { path: configFile.path, content: jsonToReadableText({ compilerOptions: jsxImportSourceOptions }) }, ], modifyFs: host => { host.deleteFile(`${project}/node_modules/react/jsx-runtime/index.d.ts`); @@ -372,9 +375,9 @@ export const Fragment: unique symbol; files: () => [ { path: libFile.path, content: libContent }, { path: `${project}/node_modules/tslib/index.d.ts`, content: "export function __assign(...args: any[]): any;" }, - { path: `${project}/node_modules/tslib/package.json`, content: JSON.stringify({ name: "tslib", version: "0.0.1" }) }, + { path: `${project}/node_modules/tslib/package.json`, content: jsonToReadableText({ name: "tslib", version: "0.0.1" }) }, { path: `${project}/index.tsx`, content: `export const x = {...{}};` }, - { path: configFile.path, content: JSON.stringify({ compilerOptions: { importHelpers: true } }) }, + { path: configFile.path, content: jsonToReadableText({ compilerOptions: { importHelpers: true } }) }, ], modifyFs: host => { host.deleteFile(`${project}/node_modules/tslib/index.d.ts`); @@ -391,7 +394,7 @@ export const Fragment: unique symbol; { path: `${project}/node_modules/classnames/index.d.ts`, content: `export interface Result {} export default function classNames(): Result;` }, { path: `${project}/src/types/classnames.d.ts`, content: `export {}; declare module "classnames" { interface Result { foo } }` }, { path: `${project}/src/index.ts`, content: `import classNames from "classnames"; classNames().foo;` }, - { path: configFile.path, content: JSON.stringify({ compilerOptions: { module: "commonjs", incremental: true } }) }, + { path: configFile.path, content: jsonToReadableText({ compilerOptions: { module: "commonjs", incremental: true } }) }, ], modifyFs: host => { // delete 'foo' diff --git a/src/testRunner/unittests/tscWatch/libraryResolution.ts b/src/testRunner/unittests/tscWatch/libraryResolution.ts index fe6e1447b8fa7..a3778c4ef4460 100644 --- a/src/testRunner/unittests/tscWatch/libraryResolution.ts +++ b/src/testRunner/unittests/tscWatch/libraryResolution.ts @@ -1,3 +1,6 @@ +import { + jsonToReadableText, +} from "../helpers"; import { getCommandLineArgsForLibResolution, getSysForLibResolution, @@ -20,7 +23,7 @@ describe("unittests:: tsc-watch:: libraryResolution", () => { edit: sys => sys.writeFile( "/home/src/projects/project1/tsconfig.json", - JSON.stringify({ + jsonToReadableText({ compilerOptions: { composite: true, typeRoots: ["./typeroot1", "./typeroot2"], @@ -36,7 +39,7 @@ describe("unittests:: tsc-watch:: libraryResolution", () => { edit: sys => { sys.writeFile( "/home/src/projects/project1/tsconfig.json", - JSON.stringify({ + jsonToReadableText({ compilerOptions: { composite: true, typeRoots: ["./typeroot1"], diff --git a/src/testRunner/unittests/tscWatch/moduleResolution.ts b/src/testRunner/unittests/tscWatch/moduleResolution.ts index 099d43066f6ba..649644039d848 100644 --- a/src/testRunner/unittests/tscWatch/moduleResolution.ts +++ b/src/testRunner/unittests/tscWatch/moduleResolution.ts @@ -1,4 +1,7 @@ import * as Utils from "../../_namespaces/Utils"; +import { + jsonToReadableText, +} from "../helpers"; import { getFsConentsForNode10ResultAtTypesPackageJson, getFsContentsForNode10Result, @@ -22,7 +25,7 @@ describe("unittests:: tsc-watch:: moduleResolution", () => { createWatchedSystem([ { path: `/user/username/projects/myproject/packages/pkg1/package.json`, - content: JSON.stringify({ + content: jsonToReadableText({ name: "pkg1", version: "1.0.0", main: "build/index.js", @@ -36,7 +39,7 @@ describe("unittests:: tsc-watch:: moduleResolution", () => { }, { path: `/user/username/projects/myproject/packages/pkg1/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { outDir: "build", }, @@ -56,7 +59,7 @@ describe("unittests:: tsc-watch:: moduleResolution", () => { }, { path: `/user/username/projects/myproject/packages/pkg2/package.json`, - content: JSON.stringify({ + content: jsonToReadableText({ name: "pkg2", version: "1.0.0", main: "build/index.js", @@ -96,7 +99,7 @@ describe("unittests:: tsc-watch:: moduleResolution", () => { createWatchedSystem([ { path: `/user/username/projects/myproject/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { moduleResolution: "nodenext", outDir: "./dist", @@ -107,7 +110,7 @@ describe("unittests:: tsc-watch:: moduleResolution", () => { }, { path: `/user/username/projects/myproject/package.json`, - content: JSON.stringify({ + content: jsonToReadableText({ name: "@this/package", type: "module", exports: { @@ -146,7 +149,7 @@ describe("unittests:: tsc-watch:: moduleResolution", () => { function getSys(packageFileContents: string) { const configFile: File = { path: `/user/username/projects/myproject/src/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { target: "es2016", module: "Node16", @@ -181,14 +184,14 @@ describe("unittests:: tsc-watch:: moduleResolution", () => { scenario: "moduleResolution", subScenario: "package json file is edited", commandLineArgs: ["--w", "--p", "src", "--extendedDiagnostics", "-traceResolution", "--explainFiles"], - sys: () => getSys(JSON.stringify({ name: "app", version: "1.0.0" })), + sys: () => getSys(jsonToReadableText({ name: "app", version: "1.0.0" })), edits: [ { caption: "Modify package json file to add type module", edit: sys => sys.writeFile( `/user/username/projects/myproject/package.json`, - JSON.stringify({ + jsonToReadableText({ name: "app", version: "1.0.0", type: "module", @@ -201,7 +204,7 @@ describe("unittests:: tsc-watch:: moduleResolution", () => { }, { caption: "Modify package.json file to remove type module", - edit: sys => sys.writeFile(`/user/username/projects/myproject/package.json`, JSON.stringify({ name: "app", version: "1.0.0" })), + edit: sys => sys.writeFile(`/user/username/projects/myproject/package.json`, jsonToReadableText({ name: "app", version: "1.0.0" })), timeouts: host => { host.runQueuedTimeoutCallbacks(); // Failed lookup updates host.runQueuedTimeoutCallbacks(); // Actual update @@ -220,7 +223,7 @@ describe("unittests:: tsc-watch:: moduleResolution", () => { edit: sys => sys.writeFile( `/user/username/projects/myproject/package.json`, - JSON.stringify({ + jsonToReadableText({ name: "app", version: "1.0.0", type: "module", @@ -247,7 +250,7 @@ describe("unittests:: tsc-watch:: moduleResolution", () => { subScenario: "package json file is edited when package json with type module exists", commandLineArgs: ["--w", "--p", "src", "--extendedDiagnostics", "-traceResolution", "--explainFiles"], sys: () => - getSys(JSON.stringify({ + getSys(jsonToReadableText({ name: "app", version: "1.0.0", type: "module", @@ -255,7 +258,7 @@ describe("unittests:: tsc-watch:: moduleResolution", () => { edits: [ { caption: "Modify package.json file to remove type module", - edit: sys => sys.writeFile(`/user/username/projects/myproject/package.json`, JSON.stringify({ name: "app", version: "1.0.0" })), + edit: sys => sys.writeFile(`/user/username/projects/myproject/package.json`, jsonToReadableText({ name: "app", version: "1.0.0" })), timeouts: host => { host.runQueuedTimeoutCallbacks(); // Failed lookup updates host.runQueuedTimeoutCallbacks(); // Actual update @@ -266,7 +269,7 @@ describe("unittests:: tsc-watch:: moduleResolution", () => { edit: sys => sys.writeFile( `/user/username/projects/myproject/package.json`, - JSON.stringify({ + jsonToReadableText({ name: "app", version: "1.0.0", type: "module", @@ -287,7 +290,7 @@ describe("unittests:: tsc-watch:: moduleResolution", () => { }, { caption: "Modify package json file to without type module", - edit: sys => sys.writeFile(`/user/username/projects/myproject/package.json`, JSON.stringify({ name: "app", version: "1.0.0" })), + edit: sys => sys.writeFile(`/user/username/projects/myproject/package.json`, jsonToReadableText({ name: "app", version: "1.0.0" })), timeouts: host => { host.runQueuedTimeoutCallbacks(); // Failed lookup updates host.runQueuedTimeoutCallbacks(); // Actual update @@ -312,7 +315,7 @@ describe("unittests:: tsc-watch:: moduleResolution", () => { createWatchedSystem([ { path: `/user/username/projects/myproject/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { moduleResolution: "node16" }, }), }, @@ -332,7 +335,7 @@ describe("unittests:: tsc-watch:: moduleResolution", () => { }, { path: `/user/username/projects/myproject/node_modules/pkg/package.json`, - content: JSON.stringify({ + content: jsonToReadableText({ name: "pkg", version: "0.0.1", exports: { @@ -351,7 +354,7 @@ describe("unittests:: tsc-watch:: moduleResolution", () => { }, { path: `/user/username/projects/myproject/node_modules/pkg1/package.json`, - content: JSON.stringify({ + content: jsonToReadableText({ name: "pkg1", version: "0.0.1", exports: { @@ -383,7 +386,7 @@ describe("unittests:: tsc-watch:: moduleResolution", () => { createWatchedSystem([ { path: `/user/username/projects/myproject/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { moduleResolution: "node16" }, }), }, @@ -403,7 +406,7 @@ describe("unittests:: tsc-watch:: moduleResolution", () => { }, { path: `/user/username/projects/myproject/node_modules/pkg/package.json`, - content: JSON.stringify({ + content: jsonToReadableText({ name: "pkg", version: "0.0.1", exports: { @@ -422,7 +425,7 @@ describe("unittests:: tsc-watch:: moduleResolution", () => { }, { path: `/user/username/projects/myproject/node_modules/pkg1/package.json`, - content: JSON.stringify({ + content: jsonToReadableText({ name: "pkg1", version: "0.0.1", exports: { @@ -454,7 +457,7 @@ describe("unittests:: tsc-watch:: moduleResolution", () => { createWatchedSystem([ { path: `/user/username/projects/myproject/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { moduleResolution: "node16" }, }), }, @@ -474,7 +477,7 @@ describe("unittests:: tsc-watch:: moduleResolution", () => { }, { path: `/user/username/projects/myproject/node_modules/pkg/package.json`, - content: JSON.stringify({ + content: jsonToReadableText({ name: "pkg", version: "0.0.1", exports: { @@ -503,7 +506,7 @@ describe("unittests:: tsc-watch:: moduleResolution", () => { }, { path: `/user/username/projects/myproject/node_modules/pkg1/package.json`, - content: JSON.stringify({ + content: jsonToReadableText({ name: "pkg1", version: "0.0.1", exports: { diff --git a/src/testRunner/unittests/tscWatch/nodeNextWatch.ts b/src/testRunner/unittests/tscWatch/nodeNextWatch.ts index 9f66c823ab3e2..820b83a82ed52 100644 --- a/src/testRunner/unittests/tscWatch/nodeNextWatch.ts +++ b/src/testRunner/unittests/tscWatch/nodeNextWatch.ts @@ -1,4 +1,7 @@ import * as Utils from "../../_namespaces/Utils"; +import { + jsonToReadableText, +} from "../helpers"; import { verifyTscWatch, } from "../helpers/tscWatch"; @@ -16,7 +19,7 @@ describe("unittests:: tsc-watch:: nodeNextWatch:: emit when module emit is speci sys: () => { const configFile: File = { path: "/project/tsconfig.json", - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { strict: true, target: "es2020", @@ -28,7 +31,7 @@ describe("unittests:: tsc-watch:: nodeNextWatch:: emit when module emit is speci }; const packageFile: File = { path: "/project/package.json", - content: JSON.stringify({ + content: jsonToReadableText({ name: "some-proj", version: "1.0.0", description: "", diff --git a/src/testRunner/unittests/tscWatch/programUpdates.ts b/src/testRunner/unittests/tscWatch/programUpdates.ts index 09b66e5ae9194..4b07b7d25ad43 100644 --- a/src/testRunner/unittests/tscWatch/programUpdates.ts +++ b/src/testRunner/unittests/tscWatch/programUpdates.ts @@ -1,5 +1,8 @@ import * as Harness from "../../_namespaces/Harness"; import * as ts from "../../_namespaces/ts"; +import { + jsonToReadableText, +} from "../helpers"; import { commandLineCallbacks, } from "../helpers/baseline"; @@ -64,7 +67,7 @@ describe("unittests:: tsc-watch:: program updates", () => { }; const config = { path: configFilePath, - content: JSON.stringify({ + content: jsonToReadableText({ include: ["app.ts"], }), }; @@ -259,7 +262,7 @@ describe("unittests:: tsc-watch:: program updates", () => { }; const tsconfig: File = { path: "/tsconfig.json", - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { allowUnusedLabels: true }, }), }; @@ -271,7 +274,7 @@ describe("unittests:: tsc-watch:: program updates", () => { edit: sys => sys.modifyFile( "/tsconfig.json", - JSON.stringify({ + jsonToReadableText({ compilerOptions: { allowUnusedLabels: false }, }), ), @@ -282,7 +285,7 @@ describe("unittests:: tsc-watch:: program updates", () => { edit: sys => sys.modifyFile( "/tsconfig.json", - JSON.stringify({ + jsonToReadableText({ compilerOptions: { allowUnusedLabels: true }, }), ), @@ -306,7 +309,7 @@ describe("unittests:: tsc-watch:: program updates", () => { }; const tsconfig: File = { path: "/tsconfig.json", - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { allowArbitraryExtensions: true }, files: ["/a.ts"], }), @@ -319,7 +322,7 @@ describe("unittests:: tsc-watch:: program updates", () => { edit: sys => sys.modifyFile( "/tsconfig.json", - JSON.stringify({ + jsonToReadableText({ compilerOptions: { allowArbitraryExtensions: false }, files: ["/a.ts"], }), @@ -331,7 +334,7 @@ describe("unittests:: tsc-watch:: program updates", () => { edit: sys => sys.modifyFile( "/tsconfig.json", - JSON.stringify({ + jsonToReadableText({ compilerOptions: { allowArbitraryExtensions: true }, files: ["/a.ts"], }), @@ -360,7 +363,7 @@ export class A { }; const tsconfig: File = { path: "/tsconfig.json", - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { target: "es6", importsNotUsedAsValues: "error" }, }), }; @@ -372,7 +375,7 @@ export class A { edit: sys => sys.modifyFile( "/tsconfig.json", - JSON.stringify({ + jsonToReadableText({ compilerOptions: { target: "es6", importsNotUsedAsValues: "error", experimentalDecorators: true }, }), ), @@ -383,7 +386,7 @@ export class A { edit: sys => sys.modifyFile( "/tsconfig.json", - JSON.stringify({ + jsonToReadableText({ compilerOptions: { target: "es6", importsNotUsedAsValues: "error", experimentalDecorators: true, emitDecoratorMetadata: true }, }), ), @@ -581,7 +584,7 @@ export class A { }; const configFile = { path: "/a/c/tsconfig.json", - content: JSON.stringify({ compilerOptions: {}, files: ["f2.ts", "f3.ts"] }), + content: jsonToReadableText({ compilerOptions: {}, files: ["f2.ts", "f3.ts"] }), }; return createWatchedSystem([file1, file2, file3, libFile, configFile]); }, @@ -602,7 +605,7 @@ export class A { caption: "change `module` to 'none'", timeouts: sys => sys.runQueuedTimeoutCallbacks(), edit: sys => { - sys.writeFile(configFilePath, JSON.stringify({ compilerOptions: { module: "none" } })); + sys.writeFile(configFilePath, jsonToReadableText({ compilerOptions: { module: "none" } })); }, }], }); @@ -699,14 +702,14 @@ export class A { }; const configFile = { path: configFilePath, - content: JSON.stringify({ compilerOptions: {}, files: ["f1.ts"] }), + content: jsonToReadableText({ compilerOptions: {}, files: ["f1.ts"] }), }; return createWatchedSystem([file1, file2, libFile, configFile]); }, edits: [ { caption: "Modify config to make f2 as root too", - edit: sys => sys.writeFile(configFilePath, JSON.stringify({ compilerOptions: {}, files: ["f1.ts", "f2.ts"] })), + edit: sys => sys.writeFile(configFilePath, jsonToReadableText({ compilerOptions: {}, files: ["f1.ts", "f2.ts"] })), timeouts: sys => sys.runQueuedTimeoutCallbacks(), }, ], @@ -727,7 +730,7 @@ export class A { }; const configFile = { path: `/user/username/projects/myproject/tsconfig.json`, - content: JSON.stringify({ compilerOptions: { composite: true }, include: ["./", "./**/*.json"] }), + content: jsonToReadableText({ compilerOptions: { composite: true }, include: ["./", "./**/*.json"] }), }; return createWatchedSystem([file1, file2, libFile, configFile], { currentDirectory: "/user/username/projects/myproject" }); }, @@ -756,7 +759,7 @@ export class A { }; const configFile = { path: `/user/username/projects/myproject/Project/tsconfig.json`, - content: JSON.stringify({ include: [".", "./**/*.json"] }), + content: jsonToReadableText({ include: [".", "./**/*.json"] }), }; return createWatchedSystem([file1, libFile, configFile], { currentDirectory: `/user/username/projects/myproject/Project` }); }, @@ -784,14 +787,14 @@ export class A { }; const configFile = { path: configFilePath, - content: JSON.stringify({ compilerOptions: {}, files: ["f1.ts", "f2.ts"] }), + content: jsonToReadableText({ compilerOptions: {}, files: ["f1.ts", "f2.ts"] }), }; return createWatchedSystem([file1, file2, libFile, configFile]); }, edits: [ { caption: "Modify config to set outFile option", - edit: sys => sys.writeFile(configFilePath, JSON.stringify({ compilerOptions: { outFile: "out.js" }, files: ["f1.ts", "f2.ts"] })), + edit: sys => sys.writeFile(configFilePath, jsonToReadableText({ compilerOptions: { outFile: "out.js" }, files: ["f1.ts", "f2.ts"] })), timeouts: sys => sys.runQueuedTimeoutCallbacks(), }, ], @@ -812,7 +815,7 @@ export class A { }; const configFile = { path: configFilePath, - content: JSON.stringify({ compilerOptions: {}, files: ["f1.ts", "f2.ts"] }), + content: jsonToReadableText({ compilerOptions: {}, files: ["f1.ts", "f2.ts"] }), }; return createWatchedSystem([file1, file2, libFile, configFile]); }, @@ -886,7 +889,7 @@ declare const eval: any`, }; const config1 = { path: "/src/tsconfig.json", - content: JSON.stringify( + content: jsonToReadableText( { compilerOptions: { module: "commonjs", @@ -908,7 +911,7 @@ declare const eval: any`, edit: sys => sys.writeFile( "/src/tsconfig.json", - JSON.stringify( + jsonToReadableText( { compilerOptions: { module: "commonjs", @@ -939,7 +942,7 @@ declare const eval: any`, }; const config = { path: "/a/tsconfig.json", - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: {}, include: [ "src/**/*", @@ -1031,7 +1034,7 @@ declare const eval: any`, }; const config = { path: configFilePath, - content: JSON.stringify({ compilerOptions: { types: ["node"], typeRoots: includeTypeRoots ? [] : undefined } }), + content: jsonToReadableText({ compilerOptions: { types: ["node"], typeRoots: includeTypeRoots ? [] : undefined } }), }; const node = { path: "/a/b/node_modules/@types/node/index.d.ts", @@ -1180,7 +1183,7 @@ declare const eval: any`, }; const config = { path: "/a/tsconfig.json", - content: JSON.stringify({ + content: jsonToReadableText({ compiler: {}, files: [], }), @@ -1281,7 +1284,7 @@ declare const eval: any`, }; const tsconfig: File = { path: `/user/username/projects/myproject/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: compilerOptionsToConfigJson(options), }), }; @@ -1416,7 +1419,7 @@ export default test;`, }; const tsconfigFile: File = { path: `/user/username/projects/myproject/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { module: "commonjs", noEmit: true, @@ -1446,24 +1449,24 @@ foo().hello`, }; const config: File = { path: `/user/username/projects/myproject/tsconfig.json`, - content: JSON.stringify({ compilerOptions: {} }), + content: jsonToReadableText({ compilerOptions: {} }), }; return createWatchedSystem([aFile, config, libFile], { currentDirectory: "/user/username/projects/myproject" }); }, edits: [ { caption: "Enable strict null checks", - edit: sys => sys.writeFile(`/user/username/projects/myproject/tsconfig.json`, JSON.stringify({ compilerOptions: { strictNullChecks: true } })), + edit: sys => sys.writeFile(`/user/username/projects/myproject/tsconfig.json`, jsonToReadableText({ compilerOptions: { strictNullChecks: true } })), timeouts: sys => sys.runQueuedTimeoutCallbacks(), }, { caption: "Set always strict false", - edit: sys => sys.writeFile(`/user/username/projects/myproject/tsconfig.json`, JSON.stringify({ compilerOptions: { strict: true, alwaysStrict: false } })), // Avoid changing 'alwaysStrict' or must re-bind + edit: sys => sys.writeFile(`/user/username/projects/myproject/tsconfig.json`, jsonToReadableText({ compilerOptions: { strict: true, alwaysStrict: false } })), // Avoid changing 'alwaysStrict' or must re-bind timeouts: sys => sys.runQueuedTimeoutCallbacks(), }, { caption: "Disable strict", - edit: sys => sys.writeFile(`/user/username/projects/myproject/tsconfig.json`, JSON.stringify({ compilerOptions: {} })), + edit: sys => sys.writeFile(`/user/username/projects/myproject/tsconfig.json`, jsonToReadableText({ compilerOptions: {} })), timeouts: sys => sys.runQueuedTimeoutCallbacks(), }, ], @@ -1489,14 +1492,14 @@ v === 'foo';`, }; const config: File = { path: `/user/username/projects/myproject/tsconfig.json`, - content: JSON.stringify({ compilerOptions: {} }), + content: jsonToReadableText({ compilerOptions: {} }), }; return createWatchedSystem([aFile, config, libFile], { currentDirectory: "/user/username/projects/myproject" }); }, edits: [ { caption: "Enable noErrorTruncation", - edit: sys => sys.writeFile(`/user/username/projects/myproject/tsconfig.json`, JSON.stringify({ compilerOptions: { noErrorTruncation: true } })), + edit: sys => sys.writeFile(`/user/username/projects/myproject/tsconfig.json`, jsonToReadableText({ compilerOptions: { noErrorTruncation: true } })), timeouts: sys => sys.runQueuedTimeoutCallbacks(), }, ], @@ -1514,14 +1517,14 @@ class D extends C { prop = 1; }`, }; const config: File = { path: `/tsconfig.json`, - content: JSON.stringify({ compilerOptions: { target: "es6" } }), + content: jsonToReadableText({ compilerOptions: { target: "es6" } }), }; return createWatchedSystem([aFile, config, libFile]); }, edits: [ { caption: "Enable useDefineForClassFields", - edit: sys => sys.writeFile(`/tsconfig.json`, JSON.stringify({ compilerOptions: { target: "es6", useDefineForClassFields: true } })), + edit: sys => sys.writeFile(`/tsconfig.json`, jsonToReadableText({ compilerOptions: { target: "es6", useDefineForClassFields: true } })), timeouts: sys => sys.runQueuedTimeoutCallbacks(), }, ], @@ -1543,24 +1546,24 @@ export function f(p: C) { return p; }`, }; const config: File = { path: `/user/username/projects/myproject/tsconfig.json`, - content: JSON.stringify({ compilerOptions: {} }), + content: jsonToReadableText({ compilerOptions: {} }), }; return createWatchedSystem([aFile, bFile, config, libFile], { currentDirectory: "/user/username/projects/myproject" }); }, edits: [ { caption: 'Set to "remove"', - edit: sys => sys.writeFile(`/user/username/projects/myproject/tsconfig.json`, JSON.stringify({ compilerOptions: { importsNotUsedAsValues: "remove" } })), + edit: sys => sys.writeFile(`/user/username/projects/myproject/tsconfig.json`, jsonToReadableText({ compilerOptions: { importsNotUsedAsValues: "remove" } })), timeouts: sys => sys.runQueuedTimeoutCallbacks(), }, { caption: 'Set to "error"', - edit: sys => sys.writeFile(`/user/username/projects/myproject/tsconfig.json`, JSON.stringify({ compilerOptions: { importsNotUsedAsValues: "error" } })), + edit: sys => sys.writeFile(`/user/username/projects/myproject/tsconfig.json`, jsonToReadableText({ compilerOptions: { importsNotUsedAsValues: "error" } })), timeouts: sys => sys.runQueuedTimeoutCallbacks(), }, { caption: 'Set to "preserve"', - edit: sys => sys.writeFile(`/user/username/projects/myproject/tsconfig.json`, JSON.stringify({ compilerOptions: { importsNotUsedAsValues: "preserve" } })), + edit: sys => sys.writeFile(`/user/username/projects/myproject/tsconfig.json`, jsonToReadableText({ compilerOptions: { importsNotUsedAsValues: "preserve" } })), timeouts: sys => sys.runQueuedTimeoutCallbacks(), }, ], @@ -1581,14 +1584,14 @@ export function f(p: C) { return p; }`, }; const config: File = { path: `/tsconfig.json`, - content: JSON.stringify({ compilerOptions: { forceConsistentCasingInFileNames: false } }), + content: jsonToReadableText({ compilerOptions: { forceConsistentCasingInFileNames: false } }), }; return createWatchedSystem([aFile, bFile, config, libFile], { useCaseSensitiveFileNames: false }); }, edits: [ { caption: "Enable forceConsistentCasingInFileNames", - edit: sys => sys.writeFile(`/tsconfig.json`, JSON.stringify({ compilerOptions: { forceConsistentCasingInFileNames: true } })), + edit: sys => sys.writeFile(`/tsconfig.json`, jsonToReadableText({ compilerOptions: { forceConsistentCasingInFileNames: true } })), timeouts: sys => sys.runQueuedTimeoutCallbacks(), }, ], @@ -1609,14 +1612,14 @@ export function f(p: C) { return p; }`, }; const config: File = { path: `/user/username/projects/myproject/tsconfig.json`, - content: JSON.stringify({ compilerOptions: { moduleResolution: "node" } }), + content: jsonToReadableText({ compilerOptions: { moduleResolution: "node" } }), }; return createWatchedSystem([aFile, jsonFile, config, libFile], { currentDirectory: "/user/username/projects/myproject" }); }, edits: [ { caption: "Enable resolveJsonModule", - edit: sys => sys.writeFile(`/user/username/projects/myproject/tsconfig.json`, JSON.stringify({ compilerOptions: { moduleResolution: "node", resolveJsonModule: true } })), + edit: sys => sys.writeFile(`/user/username/projects/myproject/tsconfig.json`, jsonToReadableText({ compilerOptions: { moduleResolution: "node", resolveJsonModule: true } })), timeouts: sys => sys.runQueuedTimeoutCallbacks(), }, ], @@ -1724,7 +1727,7 @@ var y: number; }); function changeWhenLibCheckChanges(compilerOptions: ts.CompilerOptions): TscWatchCompileChange { - const configFileContent = JSON.stringify({ compilerOptions }); + const configFileContent = jsonToReadableText({ compilerOptions }); return { caption: `Changing config to ${configFileContent}`, edit: sys => sys.writeFile(`/user/username/projects/myproject/tsconfig.json`, configFileContent), @@ -1789,7 +1792,7 @@ const b: string = a;`, }; const configFile: File = { path: `/user/username/projects/myproject/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { isolatedModules: true, }, @@ -1821,7 +1824,7 @@ const b: string = a;`, }; const configFile: File = { path: `/user/username/projects/myproject/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { rootDir: ".", outDir: "lib", @@ -1856,7 +1859,7 @@ import { x } from "../b";`, }; const configFile: File = { path: `/user/username/projects/myproject/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { jsx: "preserve", }, @@ -1884,7 +1887,7 @@ import { x } from "../b";`, }; const configFile: File = { path: `/user/username/projects/myproject/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: {}, }), }; @@ -1906,7 +1909,7 @@ import { x } from "../b";`, sys: () => { const firstExtendedConfigFile: File = { path: "/a/b/first.tsconfig.json", - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { strict: true, }, @@ -1914,13 +1917,13 @@ import { x } from "../b";`, }; const secondExtendedConfigFile: File = { path: "/a/b/second.tsconfig.json", - content: JSON.stringify({ + content: jsonToReadableText({ extends: "./first.tsconfig.json", }), }; const configFile: File = { path: configFilePath, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: {}, files: [commonFile1.path, commonFile2.path], }), @@ -1940,7 +1943,7 @@ import { x } from "../b";`, edit: sys => sys.modifyFile( configFilePath, - JSON.stringify({ + jsonToReadableText({ extends: "./second.tsconfig.json", compilerOptions: {}, files: [commonFile1.path, commonFile2.path], @@ -1953,7 +1956,7 @@ import { x } from "../b";`, edit: sys => sys.modifyFile( "/a/b/first.tsconfig.json", - JSON.stringify({ + jsonToReadableText({ compilerOptions: { strict: false, }, @@ -1966,7 +1969,7 @@ import { x } from "../b";`, edit: sys => sys.modifyFile( "/a/b/second.tsconfig.json", - JSON.stringify({ + jsonToReadableText({ extends: "./first.tsconfig.json", compilerOptions: { strictNullChecks: true, @@ -1980,7 +1983,7 @@ import { x } from "../b";`, edit: sys => sys.modifyFile( configFilePath, - JSON.stringify({ + jsonToReadableText({ compilerOptions: {}, files: [commonFile1.path, commonFile2.path], }), @@ -2009,7 +2012,7 @@ import { x } from "../b";`, }; const config: File = { path: `/user/username/projects/myproject/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { baseUrl: "client", paths: { "*": ["*"] }, @@ -2035,7 +2038,7 @@ import { x } from "../b";`, sys: () => { const config1: File = { path: `/user/username/projects/myproject/projects/project1/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { module: "none", composite: true, @@ -2054,7 +2057,7 @@ import { x } from "../b";`, }; const config2: File = { path: `/user/username/projects/myproject/projects/project2/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { module: "none", composite: true, @@ -2138,7 +2141,7 @@ import { x } from "../b";`, }; const config: File = { path: `/user/username/projects/myproject/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { noEmit: true, allowImportingTsExtensions: false, @@ -2153,7 +2156,7 @@ import { x } from "../b";`, edit: sys => sys.writeFile( `/user/username/projects/myproject/tsconfig.json`, - JSON.stringify({ + jsonToReadableText({ compilerOptions: { noEmit: true, allowImportingTsExtensions: true, @@ -2180,7 +2183,7 @@ import { x } from "../b";`, }; const config: File = { path: `/user/username/projects/myproject/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { checkJs: false, }, @@ -2194,7 +2197,7 @@ import { x } from "../b";`, edit: sys => sys.writeFile( `/user/username/projects/myproject/tsconfig.json`, - JSON.stringify({ + jsonToReadableText({ compilerOptions: { checkJs: true, }, diff --git a/src/testRunner/unittests/tscWatch/projectsWithReferences.ts b/src/testRunner/unittests/tscWatch/projectsWithReferences.ts index 1fe3bc5200e05..36a8ed801f271 100644 --- a/src/testRunner/unittests/tscWatch/projectsWithReferences.ts +++ b/src/testRunner/unittests/tscWatch/projectsWithReferences.ts @@ -1,13 +1,24 @@ +import { + jsonToReadableText, +} from "../helpers"; +import { + getSysForSampleProjectReferences, +} from "../helpers/sampleProjectReferences"; import { createSolutionBuilder, - createSystemWithSolutionBuild, + solutionBuildWithBaseline, } from "../helpers/solutionBuilder"; +import { + getFsContentsForTransitiveReferences, + getFsContentsForTransitiveReferencesAConfig, + getFsContentsForTransitiveReferencesBConfig, + getFsContentsForTransitiveReferencesRefsAdts, +} from "../helpers/transitiveReferences"; import { verifyTscWatch, } from "../helpers/tscWatch"; import { - getTsBuildProjectFile, - getTsBuildProjectFilePath, + createWatchedSystem, libFile, TestServerHost, } from "../helpers/virtualFileSystemWithWatch"; @@ -17,27 +28,16 @@ describe("unittests:: tsc-watch:: projects with references: invoking when refere scenario: "projectsWithReferences", subScenario: "on sample project", sys: () => - createSystemWithSolutionBuild( + solutionBuildWithBaseline( + getSysForSampleProjectReferences(), ["tests"], - [ - libFile, - getTsBuildProjectFile("sample1", "core/tsconfig.json"), - getTsBuildProjectFile("sample1", "core/index.ts"), - getTsBuildProjectFile("sample1", "core/anotherModule.ts"), - getTsBuildProjectFile("sample1", "core/some_decl.d.ts"), - getTsBuildProjectFile("sample1", "logic/tsconfig.json"), - getTsBuildProjectFile("sample1", "logic/index.ts"), - getTsBuildProjectFile("sample1", "tests/tsconfig.json"), - getTsBuildProjectFile("sample1", "tests/index.ts"), - ], - { currentDirectory: `/user/username/projects/sample1` }, ), commandLineArgs: ["-w", "-p", "tests", "--traceResolution", "--explainFiles"], edits: [ { caption: "local edit in logic ts, and build logic", edit: sys => { - sys.appendFile(getTsBuildProjectFilePath("sample1", "logic/index.ts"), `function foo() { }`); + sys.appendFile("/user/username/projects/sample1/logic/index.ts", `function foo() { }`); const solutionBuilder = createSolutionBuilder(sys, ["logic"]); solutionBuilder.build(); }, @@ -48,7 +48,7 @@ describe("unittests:: tsc-watch:: projects with references: invoking when refere { caption: "non local edit in logic ts, and build logic", edit: sys => { - sys.appendFile(getTsBuildProjectFilePath("sample1", "logic/index.ts"), `export function gfoo() { }`); + sys.appendFile("/user/username/projects/sample1/logic/index.ts", `export function gfoo() { }`); const solutionBuilder = createSolutionBuilder(sys, ["logic"]); solutionBuilder.build(); }, @@ -58,8 +58,8 @@ describe("unittests:: tsc-watch:: projects with references: invoking when refere caption: "change in project reference config file builds correctly", edit: sys => { sys.writeFile( - getTsBuildProjectFilePath("sample1", "logic/tsconfig.json"), - JSON.stringify({ + "/user/username/projects/sample1/logic/tsconfig.json", + jsonToReadableText({ compilerOptions: { composite: true, declaration: true, declarationDir: "decls" }, references: [{ path: "../core" }], }), @@ -76,33 +76,26 @@ describe("unittests:: tsc-watch:: projects with references: invoking when refere function changeCompilerOpitonsPaths(sys: TestServerHost, config: string, newPaths: object) { const configJson = JSON.parse(sys.readFile(config)!); configJson.compilerOptions.paths = newPaths; - sys.writeFile(config, JSON.stringify(configJson)); + sys.writeFile(config, jsonToReadableText(configJson)); } verifyTscWatch({ scenario: "projectsWithReferences", subScenario: "on transitive references", sys: () => - createSystemWithSolutionBuild( + solutionBuildWithBaseline( + createWatchedSystem( + getFsContentsForTransitiveReferences(), + { currentDirectory: `/user/username/projects/transitiveReferences` }, + ), ["tsconfig.c.json"], - [ - libFile, - getTsBuildProjectFile("transitiveReferences", "tsconfig.a.json"), - getTsBuildProjectFile("transitiveReferences", "tsconfig.b.json"), - getTsBuildProjectFile("transitiveReferences", "tsconfig.c.json"), - getTsBuildProjectFile("transitiveReferences", "a.ts"), - getTsBuildProjectFile("transitiveReferences", "b.ts"), - getTsBuildProjectFile("transitiveReferences", "c.ts"), - getTsBuildProjectFile("transitiveReferences", "refs/a.d.ts"), - ], - { currentDirectory: `/user/username/projects/transitiveReferences` }, ), commandLineArgs: ["-w", "-p", "tsconfig.c.json", "--traceResolution", "--explainFiles"], edits: [ { caption: "non local edit b ts, and build b", edit: sys => { - sys.appendFile(getTsBuildProjectFilePath("transitiveReferences", "b.ts"), `export function gfoo() { }`); + sys.appendFile("b.ts", `export function gfoo() { }`); const solutionBuilder = createSolutionBuilder(sys, ["tsconfig.b.json"]); solutionBuilder.build(); }, @@ -112,46 +105,46 @@ describe("unittests:: tsc-watch:: projects with references: invoking when refere caption: "edit on config file", edit: sys => { sys.ensureFileOrFolder({ - path: getTsBuildProjectFilePath("transitiveReferences", "nrefs/a.d.ts"), - content: sys.readFile(getTsBuildProjectFilePath("transitiveReferences", "refs/a.d.ts"))!, + path: "/user/username/projects/transitiveReferences/nrefs/a.d.ts", + content: sys.readFile("/user/username/projects/transitiveReferences/refs/a.d.ts")!, }); - changeCompilerOpitonsPaths(sys, getTsBuildProjectFilePath("transitiveReferences", "tsconfig.c.json"), { "@ref/*": ["./nrefs/*"] }); + changeCompilerOpitonsPaths(sys, "tsconfig.c.json", { "@ref/*": ["./nrefs/*"] }); }, timeouts: sys => sys.runQueuedTimeoutCallbacks(), }, { caption: "Revert config file edit", - edit: sys => changeCompilerOpitonsPaths(sys, getTsBuildProjectFilePath("transitiveReferences", "tsconfig.c.json"), { "@ref/*": ["./refs/*"] }), + edit: sys => changeCompilerOpitonsPaths(sys, "tsconfig.c.json", { "@ref/*": ["./refs/*"] }), timeouts: sys => sys.runQueuedTimeoutCallbacks(), }, { caption: "edit in referenced config file", - edit: sys => changeCompilerOpitonsPaths(sys, getTsBuildProjectFilePath("transitiveReferences", "tsconfig.b.json"), { "@ref/*": ["./nrefs/*"] }), + edit: sys => changeCompilerOpitonsPaths(sys, "tsconfig.b.json", { "@ref/*": ["./nrefs/*"] }), timeouts: sys => sys.runQueuedTimeoutCallbacks(), }, { caption: "Revert referenced config file edit", - edit: sys => changeCompilerOpitonsPaths(sys, getTsBuildProjectFilePath("transitiveReferences", "tsconfig.b.json"), { "@ref/*": ["./refs/*"] }), + edit: sys => changeCompilerOpitonsPaths(sys, "tsconfig.b.json", { "@ref/*": ["./refs/*"] }), timeouts: sys => sys.runQueuedTimeoutCallbacks(), }, { caption: "deleting referenced config file", - edit: sys => sys.deleteFile(getTsBuildProjectFilePath("transitiveReferences", "tsconfig.b.json")), + edit: sys => sys.deleteFile("tsconfig.b.json"), timeouts: sys => sys.runQueuedTimeoutCallbacks(), }, { caption: "Revert deleting referenced config file", - edit: sys => sys.ensureFileOrFolder(getTsBuildProjectFile("transitiveReferences", "tsconfig.b.json")), + edit: sys => sys.writeFile("tsconfig.b.json", getFsContentsForTransitiveReferencesBConfig()), timeouts: sys => sys.runQueuedTimeoutCallbacks(), }, { caption: "deleting transitively referenced config file", - edit: sys => sys.deleteFile(getTsBuildProjectFilePath("transitiveReferences", "tsconfig.a.json")), + edit: sys => sys.deleteFile("tsconfig.a.json"), timeouts: sys => sys.runQueuedTimeoutCallbacks(), }, { caption: "Revert deleting transitively referenced config file", - edit: sys => sys.ensureFileOrFolder(getTsBuildProjectFile("transitiveReferences", "tsconfig.a.json")), + edit: sys => sys.writeFile("tsconfig.a.json", getFsContentsForTransitiveReferencesAConfig()), timeouts: sys => sys.runQueuedTimeoutCallbacks(), }, ], @@ -162,29 +155,20 @@ describe("unittests:: tsc-watch:: projects with references: invoking when refere scenario: "projectsWithReferences", subScenario: "when referenced project uses different module resolution", sys: () => - createSystemWithSolutionBuild( - ["tsconfig.c.json"], - [ - libFile, - getTsBuildProjectFile("transitiveReferences", "tsconfig.a.json"), + solutionBuildWithBaseline( + createWatchedSystem( { - path: getTsBuildProjectFilePath("transitiveReferences", "tsconfig.b.json"), - content: JSON.stringify({ + ...getFsContentsForTransitiveReferences(), + "/user/username/projects/transitiveReferences/tsconfig.b.json": jsonToReadableText({ compilerOptions: { composite: true, moduleResolution: "classic" }, files: ["b.ts"], references: [{ path: "tsconfig.a.json" }], }), + "/user/username/projects/transitiveReferences/b.ts": `import {A} from "a";export const b = new A();`, }, - getTsBuildProjectFile("transitiveReferences", "tsconfig.c.json"), - getTsBuildProjectFile("transitiveReferences", "a.ts"), - { - path: getTsBuildProjectFilePath("transitiveReferences", "b.ts"), - content: `import {A} from "a";export const b = new A();`, - }, - getTsBuildProjectFile("transitiveReferences", "c.ts"), - getTsBuildProjectFile("transitiveReferences", "refs/a.d.ts"), - ], - { currentDirectory: `/user/username/projects/transitiveReferences` }, + { currentDirectory: `/user/username/projects/transitiveReferences` }, + ), + ["tsconfig.c.json"], ), commandLineArgs: ["-w", "-p", "tsconfig.c.json", "--traceResolution", "--explainFiles"], baselineDependencies: true, @@ -194,59 +178,43 @@ describe("unittests:: tsc-watch:: projects with references: invoking when refere scenario: "projectsWithReferences", subScenario: "on transitive references in different folders", sys: () => - createSystemWithSolutionBuild( - ["c"], - [ - libFile, + solutionBuildWithBaseline( + createWatchedSystem( { - path: getTsBuildProjectFilePath("transitiveReferences", "a/tsconfig.json"), - content: JSON.stringify({ + [libFile.path]: libFile.content, + "/user/username/projects/transitiveReferences/a/tsconfig.json": jsonToReadableText({ compilerOptions: { composite: true }, files: ["index.ts"], }), - }, - { - path: getTsBuildProjectFilePath("transitiveReferences", "b/tsconfig.json"), - content: JSON.stringify({ + "/user/username/projects/transitiveReferences/b/tsconfig.json": jsonToReadableText({ compilerOptions: { composite: true, baseUrl: "./", paths: { "@ref/*": ["../*"] } }, files: ["index.ts"], references: [{ path: `../a` }], }), - }, - { - path: getTsBuildProjectFilePath("transitiveReferences", "c/tsconfig.json"), - content: JSON.stringify({ + "/user/username/projects/transitiveReferences/c/tsconfig.json": jsonToReadableText({ compilerOptions: { baseUrl: "./", paths: { "@ref/*": ["../refs/*"] } }, files: ["index.ts"], references: [{ path: `../b` }], }), - }, - { - path: getTsBuildProjectFilePath("transitiveReferences", "a/index.ts"), - content: `export class A {}`, - }, - { - path: getTsBuildProjectFilePath("transitiveReferences", "b/index.ts"), - content: `import {A} from '@ref/a'; + "/user/username/projects/transitiveReferences/a/index.ts": `export class A {}`, + "/user/username/projects/transitiveReferences/b/index.ts": `import {A} from '@ref/a'; export const b = new A();`, - }, - { - path: getTsBuildProjectFilePath("transitiveReferences", "c/index.ts"), - content: `import {b} from '../b'; + "/user/username/projects/transitiveReferences/c/index.ts": `import {b} from '../b'; import {X} from "@ref/a"; b; X;`, + "/user/username/projects/transitiveReferences/refs/a.d.ts": getFsContentsForTransitiveReferencesRefsAdts(), }, - getTsBuildProjectFile("transitiveReferences", "refs/a.d.ts"), - ], - { currentDirectory: `/user/username/projects/transitiveReferences` }, + { currentDirectory: `/user/username/projects/transitiveReferences` }, + ), + ["c"], ), commandLineArgs: ["-w", "-p", "c", "--traceResolution", "--explainFiles"], edits: [ { caption: "non local edit b ts, and build b", edit: sys => { - sys.appendFile(getTsBuildProjectFilePath("transitiveReferences", "b/index.ts"), `export function gfoo() { }`); + sys.appendFile("b/index.ts", `export function gfoo() { }`); const solutionBuilder = createSolutionBuilder(sys, ["b"]); solutionBuilder.build(); }, @@ -256,39 +224,39 @@ X;`, caption: "edit on config file", edit: sys => { sys.ensureFileOrFolder({ - path: getTsBuildProjectFilePath("transitiveReferences", "nrefs/a.d.ts"), - content: sys.readFile(getTsBuildProjectFilePath("transitiveReferences", "refs/a.d.ts"))!, + path: "/user/username/projects/transitiveReferences/nrefs/a.d.ts", + content: sys.readFile("/user/username/projects/transitiveReferences/refs/a.d.ts")!, }); - changeCompilerOpitonsPaths(sys, getTsBuildProjectFilePath("transitiveReferences", "c/tsconfig.json"), { "@ref/*": ["../nrefs/*"] }); + changeCompilerOpitonsPaths(sys, "c/tsconfig.json", { "@ref/*": ["../nrefs/*"] }); }, timeouts: sys => sys.runQueuedTimeoutCallbacks(), }, { caption: "Revert config file edit", - edit: sys => changeCompilerOpitonsPaths(sys, getTsBuildProjectFilePath("transitiveReferences", "c/tsconfig.json"), { "@ref/*": ["../refs/*"] }), + edit: sys => changeCompilerOpitonsPaths(sys, "c/tsconfig.json", { "@ref/*": ["../refs/*"] }), timeouts: sys => sys.runQueuedTimeoutCallbacks(), }, { caption: "edit in referenced config file", - edit: sys => changeCompilerOpitonsPaths(sys, getTsBuildProjectFilePath("transitiveReferences", "b/tsconfig.json"), { "@ref/*": ["../nrefs/*"] }), + edit: sys => changeCompilerOpitonsPaths(sys, "b/tsconfig.json", { "@ref/*": ["../nrefs/*"] }), timeouts: sys => sys.runQueuedTimeoutCallbacks(), }, { caption: "Revert referenced config file edit", - edit: sys => changeCompilerOpitonsPaths(sys, getTsBuildProjectFilePath("transitiveReferences", "b/tsconfig.json"), { "@ref/*": ["../refs/*"] }), + edit: sys => changeCompilerOpitonsPaths(sys, "b/tsconfig.json", { "@ref/*": ["../refs/*"] }), timeouts: sys => sys.runQueuedTimeoutCallbacks(), }, { caption: "deleting referenced config file", - edit: sys => sys.deleteFile(getTsBuildProjectFilePath("transitiveReferences", "b/tsconfig.json")), + edit: sys => sys.deleteFile("b/tsconfig.json"), timeouts: sys => sys.runQueuedTimeoutCallbacks(), }, { caption: "Revert deleting referenced config file", edit: sys => sys.writeFile( - getTsBuildProjectFilePath("transitiveReferences", "b/tsconfig.json"), - JSON.stringify({ + "b/tsconfig.json", + jsonToReadableText({ compilerOptions: { composite: true, baseUrl: "./", paths: { "@ref/*": ["../*"] } }, files: ["index.ts"], references: [{ path: `../a` }], @@ -298,15 +266,15 @@ X;`, }, { caption: "deleting transitively referenced config file", - edit: sys => sys.deleteFile(getTsBuildProjectFilePath("transitiveReferences", "a/tsconfig.json")), + edit: sys => sys.deleteFile("a/tsconfig.json"), timeouts: sys => sys.runQueuedTimeoutCallbacks(), }, { caption: "Revert deleting transitively referenced config file", edit: sys => sys.writeFile( - getTsBuildProjectFilePath("transitiveReferences", "a/tsconfig.json"), - JSON.stringify({ + "a/tsconfig.json", + jsonToReadableText({ compilerOptions: { composite: true }, files: ["index.ts"], }), @@ -321,54 +289,38 @@ X;`, scenario: "projectsWithReferences", subScenario: "on transitive references in different folders with no files clause", sys: () => - createSystemWithSolutionBuild( - ["c"], - [ - libFile, + solutionBuildWithBaseline( + createWatchedSystem( { - path: getTsBuildProjectFilePath("transitiveReferences", "a/tsconfig.json"), - content: JSON.stringify({ compilerOptions: { composite: true } }), - }, - { - path: getTsBuildProjectFilePath("transitiveReferences", "b/tsconfig.json"), - content: JSON.stringify({ + [libFile.path]: libFile.content, + "/user/username/projects/transitiveReferences/a/tsconfig.json": jsonToReadableText({ compilerOptions: { composite: true } }), + "/user/username/projects/transitiveReferences/b/tsconfig.json": jsonToReadableText({ compilerOptions: { composite: true, baseUrl: "./", paths: { "@ref/*": ["../*"] } }, references: [{ path: `../a` }], }), - }, - { - path: getTsBuildProjectFilePath("transitiveReferences", "c/tsconfig.json"), - content: JSON.stringify({ + "/user/username/projects/transitiveReferences/c/tsconfig.json": jsonToReadableText({ compilerOptions: { baseUrl: "./", paths: { "@ref/*": ["../refs/*"] } }, references: [{ path: `../b` }], }), - }, - { - path: getTsBuildProjectFilePath("transitiveReferences", "a/index.ts"), - content: `export class A {}`, - }, - { - path: getTsBuildProjectFilePath("transitiveReferences", "b/index.ts"), - content: `import {A} from '@ref/a'; + "/user/username/projects/transitiveReferences/a/index.ts": `export class A {}`, + "/user/username/projects/transitiveReferences/b/index.ts": `import {A} from '@ref/a'; export const b = new A();`, - }, - { - path: getTsBuildProjectFilePath("transitiveReferences", "c/index.ts"), - content: `import {b} from '../b'; + "/user/username/projects/transitiveReferences/c/index.ts": `import {b} from '../b'; import {X} from "@ref/a"; b; X;`, + "/user/username/projects/transitiveReferences/refs/a.d.ts": getFsContentsForTransitiveReferencesRefsAdts(), }, - getTsBuildProjectFile("transitiveReferences", "refs/a.d.ts"), - ], - { currentDirectory: `/user/username/projects/transitiveReferences` }, + { currentDirectory: `/user/username/projects/transitiveReferences` }, + ), + ["c"], ), commandLineArgs: ["-w", "-p", "c", "--traceResolution", "--explainFiles"], edits: [ { caption: "non local edit b ts, and build b", edit: sys => { - sys.appendFile(getTsBuildProjectFilePath("transitiveReferences", "b/index.ts"), `export function gfoo() { }`); + sys.appendFile("b/index.ts", `export function gfoo() { }`); const solutionBuilder = createSolutionBuilder(sys, ["b"]); solutionBuilder.build(); }, @@ -378,39 +330,39 @@ X;`, caption: "edit on config file", edit: sys => { sys.ensureFileOrFolder({ - path: getTsBuildProjectFilePath("transitiveReferences", "nrefs/a.d.ts"), - content: sys.readFile(getTsBuildProjectFilePath("transitiveReferences", "refs/a.d.ts"))!, + path: "nrefs/a.d.ts", + content: sys.readFile("refs/a.d.ts")!, }); - changeCompilerOpitonsPaths(sys, getTsBuildProjectFilePath("transitiveReferences", "c/tsconfig.json"), { "@ref/*": ["../nrefs/*"] }); + changeCompilerOpitonsPaths(sys, "c/tsconfig.json", { "@ref/*": ["../nrefs/*"] }); }, timeouts: sys => sys.runQueuedTimeoutCallbacks(), }, { caption: "Revert config file edit", - edit: sys => changeCompilerOpitonsPaths(sys, getTsBuildProjectFilePath("transitiveReferences", "c/tsconfig.json"), { "@ref/*": ["../refs/*"] }), + edit: sys => changeCompilerOpitonsPaths(sys, "c/tsconfig.json", { "@ref/*": ["../refs/*"] }), timeouts: sys => sys.runQueuedTimeoutCallbacks(), }, { caption: "edit in referenced config file", - edit: sys => changeCompilerOpitonsPaths(sys, getTsBuildProjectFilePath("transitiveReferences", "b/tsconfig.json"), { "@ref/*": ["../nrefs/*"] }), + edit: sys => changeCompilerOpitonsPaths(sys, "b/tsconfig.json", { "@ref/*": ["../nrefs/*"] }), timeouts: sys => sys.runQueuedTimeoutCallbacks(), }, { caption: "Revert referenced config file edit", - edit: sys => changeCompilerOpitonsPaths(sys, getTsBuildProjectFilePath("transitiveReferences", "b/tsconfig.json"), { "@ref/*": ["../refs/*"] }), + edit: sys => changeCompilerOpitonsPaths(sys, "b/tsconfig.json", { "@ref/*": ["../refs/*"] }), timeouts: sys => sys.runQueuedTimeoutCallbacks(), }, { caption: "deleting referenced config file", - edit: sys => sys.deleteFile(getTsBuildProjectFilePath("transitiveReferences", "b/tsconfig.json")), + edit: sys => sys.deleteFile("b/tsconfig.json"), timeouts: sys => sys.runQueuedTimeoutCallbacks(), }, { caption: "Revert deleting referenced config file", edit: sys => sys.writeFile( - getTsBuildProjectFilePath("transitiveReferences", "b/tsconfig.json"), - JSON.stringify({ + "b/tsconfig.json", + jsonToReadableText({ compilerOptions: { composite: true, baseUrl: "./", paths: { "@ref/*": ["../*"] } }, references: [{ path: `../a` }], }), @@ -419,15 +371,15 @@ X;`, }, { caption: "deleting transitively referenced config file", - edit: sys => sys.deleteFile(getTsBuildProjectFilePath("transitiveReferences", "a/tsconfig.json")), + edit: sys => sys.deleteFile("a/tsconfig.json"), timeouts: sys => sys.runQueuedTimeoutCallbacks(), }, { caption: "Revert deleting transitively referenced config file", edit: sys => sys.writeFile( - getTsBuildProjectFilePath("transitiveReferences", "a/tsconfig.json"), - JSON.stringify({ compilerOptions: { composite: true } }), + "a/tsconfig.json", + jsonToReadableText({ compilerOptions: { composite: true } }), ), timeouts: sys => sys.runQueuedTimeoutCallbacks(), }, @@ -439,25 +391,16 @@ X;`, scenario: "projectsWithReferences", subScenario: "when declarationMap changes for dependency", sys: () => - createSystemWithSolutionBuild( + solutionBuildWithBaseline( + getSysForSampleProjectReferences(), ["core"], - [ - libFile, - getTsBuildProjectFile("sample1", "core/tsconfig.json"), - getTsBuildProjectFile("sample1", "core/index.ts"), - getTsBuildProjectFile("sample1", "core/anotherModule.ts"), - getTsBuildProjectFile("sample1", "core/some_decl.d.ts"), - getTsBuildProjectFile("sample1", "logic/tsconfig.json"), - getTsBuildProjectFile("sample1", "logic/index.ts"), - ], - { currentDirectory: `/user/username/projects/sample1` }, ), commandLineArgs: ["-w", "-p", "logic", "--traceResolution", "--explainFiles"], edits: [ { caption: "change declration map in core", edit: sys => { - sys.replaceFileText(getTsBuildProjectFilePath("sample1", "core/tsconfig.json"), `"declarationMap": true,`, `"declarationMap": false,`); + sys.replaceFileText("/user/username/projects/sample1/core/tsconfig.json", `"declarationMap": true,`, `"declarationMap": false,`); const solutionBuilder = createSolutionBuilder(sys, ["core"]); solutionBuilder.build(); }, diff --git a/src/testRunner/unittests/tscWatch/resolutionCache.ts b/src/testRunner/unittests/tscWatch/resolutionCache.ts index 45ea0a2e261d8..83a39a38f3af0 100644 --- a/src/testRunner/unittests/tscWatch/resolutionCache.ts +++ b/src/testRunner/unittests/tscWatch/resolutionCache.ts @@ -1,5 +1,8 @@ import * as ts from "../../_namespaces/ts"; import * as Utils from "../../_namespaces/Utils"; +import { + jsonToReadableText, +} from "../helpers"; import { libContent, } from "../helpers/contents"; @@ -334,7 +337,7 @@ declare module "fs" { }; const configFile: File = { path: configDir + "tsconfig.json", - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { allowJs: true, rootDir: ".", @@ -406,7 +409,7 @@ declare module "fs" { edit: sys => sys.ensureFileOrFolder({ path: `/user/username/projects/myproject/node_modules/.cache/babel-loader/89c02171edab901b9926470ba6d5677e.ts`, - content: JSON.stringify({ something: 10 }), + content: jsonToReadableText({ something: 10 }), }), timeouts: sys => sys.logTimeoutQueueLength(), }, @@ -428,7 +431,7 @@ declare module "fs" { }; const tsconfig: File = { path: `/user/username/projects/myproject/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { module: "none", types: ["@myapp/ts-types"], @@ -443,7 +446,7 @@ declare module "fs" { edit: sys => { sys.ensureFileOrFolder({ path: `/user/username/projects/myproject/node_modules/@myapp/ts-types/package.json`, - content: JSON.stringify({ + content: jsonToReadableText({ version: "1.65.1", types: "types/somefile.define.d.ts", }), @@ -487,7 +490,7 @@ declare namespace myapp { }; const config: File = { path: `${mainPackageRoot}/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { module: "commonjs", moduleResolution: "node", baseUrl: ".", rootDir: "." }, files: ["index.ts"], }), @@ -498,7 +501,7 @@ declare namespace myapp { }; const linkedPackageJson: File = { path: `${linkedPackageRoot}/package.json`, - content: JSON.stringify({ name: "@scoped/linked-package", version: "0.0.1", types: "dist/index.d.ts", main: "dist/index.js" }), + content: jsonToReadableText({ name: "@scoped/linked-package", version: "0.0.1", types: "dist/index.d.ts", main: "dist/index.js" }), }; const linkedPackageIndex: File = { path: `${linkedPackageRoot}/dist/index.d.ts`, @@ -598,7 +601,7 @@ declare namespace NodeJS { subScenario: "reusing type ref resolution", sys: () => createWatchedSystem({ - "/users/username/projects/project/tsconfig.json": JSON.stringify({ + "/users/username/projects/project/tsconfig.json": jsonToReadableText({ compilerOptions: { composite: true, traceResolution: true, diff --git a/src/testRunner/unittests/tscWatch/resolveJsonModuleWithIncremental.ts b/src/testRunner/unittests/tscWatch/resolveJsonModuleWithIncremental.ts index ca6bd441fa680..c53e697927d72 100644 --- a/src/testRunner/unittests/tscWatch/resolveJsonModuleWithIncremental.ts +++ b/src/testRunner/unittests/tscWatch/resolveJsonModuleWithIncremental.ts @@ -1,3 +1,6 @@ +import { + jsonToReadableText, +} from "../helpers"; import { verifyTscWatch, } from "../helpers/tscWatch"; @@ -15,13 +18,13 @@ describe("unittests:: tsc-watch:: resolveJsonModuleWithIncremental:: emit file - "/src/project/main.ts": `import data from "./data.json"; let x: string = data;`, "/src/project/data.json": `{}`, // this file intentionally left blank "/src/project/data.d.json.ts": `declare var val: string; export default val;`, - "/src/project/tsconfig.json": JSON.stringify({ compilerOptions: { resolveJsonModule: true } }, null, 4), // eslint-disable-line no-null/no-null + "/src/project/tsconfig.json": jsonToReadableText({ compilerOptions: { resolveJsonModule: true } }), [libFile.path]: libFile.content, }), commandLineArgs: ["--p", "src/project", "-i", "-w"], edits: [{ caption: "Change json setting", - edit: sys => sys.writeFile("/src/project/tsconfig.json", JSON.stringify({ compilerOptions: { resolveJsonModule: false } }, null, 4)), // eslint-disable-line no-null/no-null + edit: sys => sys.writeFile("/src/project/tsconfig.json", jsonToReadableText({ compilerOptions: { resolveJsonModule: false } })), timeouts: sys => sys.runQueuedTimeoutCallbacks(), }], }); diff --git a/src/testRunner/unittests/tscWatch/sourceOfProjectReferenceRedirect.ts b/src/testRunner/unittests/tscWatch/sourceOfProjectReferenceRedirect.ts index 03819615cfb44..146ba559d1aec 100644 --- a/src/testRunner/unittests/tscWatch/sourceOfProjectReferenceRedirect.ts +++ b/src/testRunner/unittests/tscWatch/sourceOfProjectReferenceRedirect.ts @@ -1,7 +1,13 @@ import * as ts from "../../_namespaces/ts"; import { - libContent, + jsonToReadableText, +} from "../helpers"; +import { + FsContents, } from "../helpers/contents"; +import { + getFsContentsForDemoProjectReferences, +} from "../helpers/demoProjectReferences"; import { solutionBuildWithBaseline, } from "../helpers/solutionBuilder"; @@ -14,14 +20,13 @@ import { createWatchedSystem, File, FileOrFolderOrSymLink, - getTsBuildProjectFile, libFile, SymLink, } from "../helpers/virtualFileSystemWithWatch"; describe("unittests:: tsc-watch:: watchAPI:: with sourceOfProjectReferenceRedirect", () => { interface VerifyWatchInput { - files: readonly FileOrFolderOrSymLink[]; + files: FsContents | readonly FileOrFolderOrSymLink[]; config: string; subScenario: string; } @@ -66,16 +71,9 @@ describe("unittests:: tsc-watch:: watchAPI:: with sourceOfProjectReferenceRedire describe("with simple project", () => { verifyScenario(() => { - const baseConfig = getTsBuildProjectFile("demo", "tsconfig-base.json"); - const coreTs = getTsBuildProjectFile("demo", "core/utilities.ts"); - const coreConfig = getTsBuildProjectFile("demo", "core/tsconfig.json"); - const animalTs = getTsBuildProjectFile("demo", "animals/animal.ts"); - const dogTs = getTsBuildProjectFile("demo", "animals/dog.ts"); - const indexTs = getTsBuildProjectFile("demo", "animals/index.ts"); - const animalsConfig = getTsBuildProjectFile("demo", "animals/tsconfig.json"); return { - files: [{ path: libFile.path, content: libContent }, baseConfig, coreTs, coreConfig, animalTs, dogTs, indexTs, animalsConfig], - config: animalsConfig.path, + files: getFsContentsForDemoProjectReferences(), + config: "/user/username/projects/demo/animals/tsconfig.json", subScenario: "with simple project", }; }); @@ -115,7 +113,7 @@ describe("unittests:: tsc-watch:: watchAPI:: with sourceOfProjectReferenceRedire function config(packageName: string, extraOptions: ts.CompilerOptions, references?: string[]): File { return { path: `/user/username/projects/myproject/packages/${packageName}/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { outDir: "lib", rootDir: "src", @@ -140,7 +138,7 @@ describe("unittests:: tsc-watch:: watchAPI:: with sourceOfProjectReferenceRedire verifySymlinkScenario(() => ({ bPackageJson: { path: `/user/username/projects/myproject/packages/B/package.json`, - content: JSON.stringify({ + content: jsonToReadableText({ main: "lib/index.js", types: "lib/index.d.ts", }), diff --git a/src/testRunner/unittests/tscWatch/watchApi.ts b/src/testRunner/unittests/tscWatch/watchApi.ts index b1583e112ec03..b7a193e69adeb 100644 --- a/src/testRunner/unittests/tscWatch/watchApi.ts +++ b/src/testRunner/unittests/tscWatch/watchApi.ts @@ -3,6 +3,9 @@ import * as ts from "../../_namespaces/ts"; import { dedent, } from "../../_namespaces/Utils"; +import { + jsonToReadableText, +} from "../helpers"; import { commandLineCallbacks, } from "../helpers/baseline"; @@ -36,11 +39,11 @@ describe("unittests:: tsc-watch:: watchAPI:: tsc-watch with custom module resolu }; const config: File = { path: `/user/username/projects/myproject/tsconfig.json`, - content: JSON.stringify(configFileJson), + content: jsonToReadableText(configFileJson), }; const settingsJson: File = { path: `/user/username/projects/myproject/settings.json`, - content: JSON.stringify({ content: "Print this" }), + content: jsonToReadableText({ content: "Print this" }), }; const { sys, baseline, oldSnap, cb, getPrograms } = createBaseline(createWatchedSystem( [libFile, mainFile, config, settingsJson], @@ -79,7 +82,7 @@ describe("unittests:: tsc-watch:: watchAPI:: tsc-watch with custom module resolu function verifyWatch(subScenario: string, implementHasInvalidatedResolution: boolean) { it(subScenario, () => { const { sys, baseline, oldSnap, cb, getPrograms } = createBaseline(createWatchedSystem({ - [`/user/username/projects/myproject/tsconfig.json`]: JSON.stringify({ + [`/user/username/projects/myproject/tsconfig.json`]: jsonToReadableText({ compilerOptions: { traceResolution: true, extendedDiagnostics: true }, files: ["main.ts"], }), @@ -137,7 +140,7 @@ describe("unittests:: tsc-watch:: watchAPI:: tsc-watch expose error count to wat it("verify that the error count is correctly passed down to the watch status reporter", () => { const config: File = { path: `/user/username/projects/myproject/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { module: "commonjs" }, files: ["index.ts"], }), @@ -381,7 +384,7 @@ describe("unittests:: tsc-watch:: watchAPI:: when watchHost uses createSemanticD let baseline: string[]; let emitBaseline: string[]; before(() => { - const configText = JSON.stringify({ compilerOptions: { composite: true } }); + const configText = jsonToReadableText({ compilerOptions: { composite: true } }); const mainText = "export const x = 10;"; const result = createSystemForBuilderTest(configText, mainText); baseline = result.baseline; @@ -425,7 +428,7 @@ describe("unittests:: tsc-watch:: watchAPI:: when watchHost uses createSemanticD let baseline: string[]; let emitBaseline: string[]; before(() => { - const configText = JSON.stringify({ compilerOptions: { composite: true, noEmitOnError: true } }); + const configText = jsonToReadableText({ compilerOptions: { composite: true, noEmitOnError: true } }); const mainText = "export const x: string = 10;"; const result = createSystemForBuilderTest(configText, mainText); baseline = result.baseline; @@ -459,7 +462,7 @@ describe("unittests:: tsc-watch:: watchAPI:: when watchHost uses createSemanticD it("SemanticDiagnosticsBuilderProgram emitDtsOnly does not update affected files pending emit", () => { // Initial - const { sys, baseline, config, mainFile } = createSystem(JSON.stringify({ compilerOptions: { composite: true, noEmitOnError: true } }), "export const x: string = 10;"); + const { sys, baseline, config, mainFile } = createSystem(jsonToReadableText({ compilerOptions: { composite: true, noEmitOnError: true } }), "export const x: string = 10;"); createWatch(baseline, config, sys, ts.createSemanticDiagnosticsBuilderProgram); // Fix error and emit @@ -505,7 +508,7 @@ describe("unittests:: tsc-watch:: watchAPI:: when getParsedCommandLine is implem function setup(useSourceOfProjectReferenceRedirect?: () => boolean) { const config1: File = { path: `/user/username/projects/myproject/projects/project1/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { module: "none", composite: true, @@ -523,7 +526,7 @@ describe("unittests:: tsc-watch:: watchAPI:: when getParsedCommandLine is implem }; const config2: File = { path: `/user/username/projects/myproject/projects/project2/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { module: "none", composite: true, @@ -641,7 +644,7 @@ describe("unittests:: tsc-watch:: watchAPI:: when builder emit occurs with emitO function verify(subScenario: string, outFile?: string) { it(subScenario, () => { const system = createWatchedSystem({ - [`/user/username/projects/myproject/tsconfig.json`]: JSON.stringify({ + [`/user/username/projects/myproject/tsconfig.json`]: jsonToReadableText({ compilerOptions: { composite: true, noEmitOnError: true, module: "amd", outFile }, files: ["a.ts", "b.ts"], }), @@ -733,7 +736,7 @@ describe("unittests:: tsc-watch:: watchAPI:: when builder emit occurs with emitO describe("unittests:: tsc-watch:: watchAPI:: when creating program with project references but not config file", () => { function setup(libExtends: boolean) { const system = createWatchedSystem({ - "/user/username/projects/project/tsconfig.json": JSON.stringify({ + "/user/username/projects/project/tsconfig.json": jsonToReadableText({ compilerOptions: { types: [] }, files: ["app.ts"], references: [{ path: "./lib" }], @@ -742,12 +745,12 @@ describe("unittests:: tsc-watch:: watchAPI:: when creating program with project import { one } from './lib'; console.log(one); `, - "/user/username/projects/project/lib/tsconfig.json": JSON.stringify({ + "/user/username/projects/project/lib/tsconfig.json": jsonToReadableText({ extends: libExtends ? "./tsconfig.base.json" : undefined, compilerOptions: libExtends ? undefined : { composite: true, types: [] }, files: ["index.ts"], }), - "/user/username/projects/project/lib/tsconfig.base.json": JSON.stringify({ + "/user/username/projects/project/lib/tsconfig.base.json": jsonToReadableText({ compilerOptions: { composite: true, types: [] }, }), "/user/username/projects/project/lib/index.ts": "export const one = 1;", @@ -792,7 +795,7 @@ describe("unittests:: tsc-watch:: watchAPI:: when creating program with project edit: sys => sys.writeFile( `/user/username/projects/project/lib/tsconfig.json`, - JSON.stringify({ + jsonToReadableText({ compilerOptions: { composite: true }, files: ["index.ts"], }), @@ -817,7 +820,7 @@ describe("unittests:: tsc-watch:: watchAPI:: when creating program with project edit: sys => sys.writeFile( `/user/username/projects/project/lib/tsconfig.json`, - JSON.stringify({ + jsonToReadableText({ extends: "./tsconfig.base.json", compilerOptions: { typeRoots: [] }, files: ["index.ts"], @@ -830,7 +833,7 @@ describe("unittests:: tsc-watch:: watchAPI:: when creating program with project edit: sys => sys.writeFile( `/user/username/projects/project/lib/tsconfig.base.json`, - JSON.stringify({ + jsonToReadableText({ compilerOptions: { composite: true }, }), ), diff --git a/src/testRunner/unittests/tscWatch/watchEnvironment.ts b/src/testRunner/unittests/tscWatch/watchEnvironment.ts index fb9b5c362540c..9f8974d6313ab 100644 --- a/src/testRunner/unittests/tscWatch/watchEnvironment.ts +++ b/src/testRunner/unittests/tscWatch/watchEnvironment.ts @@ -1,4 +1,7 @@ import * as ts from "../../_namespaces/ts"; +import { + jsonToReadableText, +} from "../helpers"; import { commonFile1, commonFile2, @@ -88,7 +91,7 @@ describe("unittests:: tsc-watch:: watchEnvironment:: tsc-watch with different po sys: () => { const configFile: File = { path: "/a/b/tsconfig.json", - content: JSON.stringify({ + content: jsonToReadableText({ watchOptions: { watchFile: "FixedChunkSizePolling", }, @@ -141,7 +144,7 @@ describe("unittests:: tsc-watch:: watchEnvironment:: tsc-watch with different po const projectSrcFolder = `${projectFolder}/src`; const configFile: File = { path: `${projectFolder}/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ watchOptions: { synchronousWatchDirectory: true, }, @@ -316,7 +319,7 @@ describe("unittests:: tsc-watch:: watchEnvironment:: tsc-watch with different po sys: () => { const configFile: File = { path: `/user/username/projects/myproject/tsconfig.json`, - content: JSON.stringify({ compilerOptions: { outDir: "dist", declaration: true } }), + content: jsonToReadableText({ compilerOptions: { outDir: "dist", declaration: true } }), }; const file1: File = { path: `/user/username/projects/myproject/src/file1.ts`, @@ -357,7 +360,7 @@ describe("unittests:: tsc-watch:: watchEnvironment:: tsc-watch with different po sys: () => { const configFile: File = { path: `/user/username/projects/myproject/tsconfig.json`, - content: JSON.stringify({ compilerOptions: { outDir: "dist" } }), + content: jsonToReadableText({ compilerOptions: { outDir: "dist" } }), }; const file1: File = { path: `/user/username/projects/myproject/src/file1.ts`, @@ -399,7 +402,7 @@ describe("unittests:: tsc-watch:: watchEnvironment:: tsc-watch with different po sys: () => { const configFile: File = { path: "/a/b/tsconfig.json", - content: JSON.stringify({ + content: jsonToReadableText({ watchOptions: { watchFile: "UseFsEvents", }, @@ -417,7 +420,7 @@ describe("unittests:: tsc-watch:: watchEnvironment:: tsc-watch with different po sys: () => { const configFile: File = { path: "/a/b/tsconfig.json", - content: JSON.stringify({ + content: jsonToReadableText({ watchOptions: { watchDirectory: "UseFsEvents", }, @@ -435,7 +438,7 @@ describe("unittests:: tsc-watch:: watchEnvironment:: tsc-watch with different po sys: () => { const configFile: File = { path: "/a/b/tsconfig.json", - content: JSON.stringify({ + content: jsonToReadableText({ watchOptions: { fallbackPolling: "PriorityInterval", }, @@ -464,7 +467,7 @@ describe("unittests:: tsc-watch:: watchEnvironment:: tsc-watch with different po function sys(watchOptions: ts.WatchOptions, runWithoutRecursiveWatches?: boolean): TestServerHost { const configFile: File = { path: `/user/username/projects/myproject/tsconfig.json`, - content: JSON.stringify({ exclude: ["node_modules"], watchOptions }), + content: jsonToReadableText({ exclude: ["node_modules"], watchOptions }), }; const main: File = { path: `/user/username/projects/myproject/src/main.ts`, @@ -554,7 +557,7 @@ describe("unittests:: tsc-watch:: watchEnvironment:: tsc-watch with different po [libFile.path]: libFile.content, [`/user/username/projects/myproject/main.ts`]: `import { foo } from "./foo"; foo();`, [`/user/username/projects/myproject/foo.ts`]: `export declare function foo(): string;`, - [`/user/username/projects/myproject/tsconfig.json`]: JSON.stringify({ + [`/user/username/projects/myproject/tsconfig.json`]: jsonToReadableText({ watchOptions: { watchFile: "useFsEvents" }, files: ["foo.ts", "main.ts"], }), @@ -592,7 +595,7 @@ describe("unittests:: tsc-watch:: watchEnvironment:: tsc-watch with different po [libFile.path]: libFile.content, [`/user/username/projects/myproject/main.ts`]: `import { foo } from "./foo"; foo();`, [`/user/username/projects/myproject/foo.d.ts`]: `export function foo(): string;`, - [`/user/username/projects/myproject/tsconfig.json`]: JSON.stringify({ watchOptions: { watchFile: "useFsEvents" }, files: ["foo.d.ts", "main.ts"] }), + [`/user/username/projects/myproject/tsconfig.json`]: jsonToReadableText({ watchOptions: { watchFile: "useFsEvents" }, files: ["foo.d.ts", "main.ts"] }), }, { currentDirectory: "/user/username/projects/myproject", @@ -623,7 +626,7 @@ describe("unittests:: tsc-watch:: watchEnvironment:: tsc-watch with different po [libFile.path]: libFile.content, [`/user/username/projects/myproject/main.ts`]: `import { foo } from "./foo"; foo();`, [`/user/username/projects/myproject/foo.d.ts`]: `export function foo(): string;`, - [`/user/username/projects/myproject/tsconfig.json`]: JSON.stringify({ watchOptions: { watchFile: "useFsEvents" }, files: ["foo.d.ts", "main.ts"] }), + [`/user/username/projects/myproject/tsconfig.json`]: jsonToReadableText({ watchOptions: { watchFile: "useFsEvents" }, files: ["foo.d.ts", "main.ts"] }), }, { currentDirectory: "/user/username/projects/myproject", @@ -654,7 +657,7 @@ describe("unittests:: tsc-watch:: watchEnvironment:: tsc-watch with different po [libFile.path]: libFile.content, [`/user/username/projects/myproject/main.ts`]: `import { foo } from "./foo"; foo();`, [`/user/username/projects/myproject/foo.ts`]: `export declare function foo(): string;`, - [`/user/username/projects/myproject/tsconfig.json`]: JSON.stringify({ + [`/user/username/projects/myproject/tsconfig.json`]: jsonToReadableText({ watchOptions: { watchFile: "useFsEvents" }, files: ["foo.ts", "main.ts"], }), diff --git a/src/testRunner/unittests/tsserver/autoImportProvider.ts b/src/testRunner/unittests/tsserver/autoImportProvider.ts index fafb15de8fe3b..00aee3dda1b96 100644 --- a/src/testRunner/unittests/tsserver/autoImportProvider.ts +++ b/src/testRunner/unittests/tsserver/autoImportProvider.ts @@ -2,6 +2,9 @@ import { createLoggerWithInMemoryLogs, } from "../../../harness/tsserverLogger"; import * as ts from "../../_namespaces/ts"; +import { + jsonToReadableText, +} from "../helpers"; import { baselineTsserverLogs, createSession, @@ -261,7 +264,7 @@ describe("unittests:: tsserver:: autoImportProvider", () => { } const dependencies = packages.reduce((hash, p) => ({ ...hash, [JSON.parse(p[0].content).name]: "*" }), {}); - const packageJson: File = { path: "/package.json", content: JSON.stringify(dependencies) }; + const packageJson: File = { path: "/package.json", content: jsonToReadableText(dependencies) }; const { projectService, session } = setup([...ts.flatten(packages), indexTs, tsconfig, packageJson]); openFilesForSession([indexTs], session); @@ -273,11 +276,11 @@ describe("unittests:: tsserver:: autoImportProvider", () => { it("Shared source files between AutoImportProvider and main program do not cause duplicate entries in export info map", () => { const files = [ // node_modules/memfs - AutoImportProvider only - { path: "/node_modules/memfs/package.json", content: `{ "name": "memfs", "version": "1.0.0", "types": "lib/index.d.ts" }` }, + { path: "/node_modules/memfs/package.json", content: jsonToReadableText({ name: "memfs", version: "1.0.0", types: "lib/index.d.ts" }) }, { path: "/node_modules/memfs/lib/index.d.ts", content: `/// \nexport declare class Volume {}` }, // node_modules/@types/node - AutoImportProvider and main program - { path: "/node_modules/@types/node/package.json", content: `{ "name": "@types/node", "version": "1.0.0" }` }, + { path: "/node_modules/@types/node/package.json", content: jsonToReadableText({ name: "@types/node", version: "1.0.0" }) }, { path: "/node_modules/@types/node/index.d.ts", content: `export declare class Stats {}` }, // root diff --git a/src/testRunner/unittests/tsserver/auxiliaryProject.ts b/src/testRunner/unittests/tsserver/auxiliaryProject.ts index 188594dd04262..4b28ce4051b54 100644 --- a/src/testRunner/unittests/tsserver/auxiliaryProject.ts +++ b/src/testRunner/unittests/tsserver/auxiliaryProject.ts @@ -5,6 +5,9 @@ import * as ts from "../../_namespaces/ts"; import { dedent, } from "../../_namespaces/Utils"; +import { + jsonToReadableText, +} from "../helpers"; import { baselineTsserverLogs, createSession, @@ -76,15 +79,11 @@ describe("unittests:: tsserver:: auxiliaryProject::", () => { `, }; const host = createServerHost({ - "/user/users/projects/myproject/node_modules/@types/yargs/package.json": JSON.stringify( - { - name: "@types/yargs", - version: "1.0.0", - types: "./index.d.ts", - }, - undefined, - " ", - ), + "/user/users/projects/myproject/node_modules/@types/yargs/package.json": jsonToReadableText({ + name: "@types/yargs", + version: "1.0.0", + types: "./index.d.ts", + }), "/user/users/projects/myproject/node_modules/@types/yargs/callback.d.ts": dedent` export declare class Yargs { positional(): Yargs; } `, @@ -92,15 +91,11 @@ describe("unittests:: tsserver:: auxiliaryProject::", () => { import { Yargs } from "./callback"; export declare function command(command: string, cb: (yargs: Yargs) => void): void; `, - "/user/users/projects/myproject/node_modules/yargs/package.json": JSON.stringify( - { - name: "yargs", - version: "1.0.0", - main: "index.js", - }, - undefined, - " ", - ), + "/user/users/projects/myproject/node_modules/yargs/package.json": jsonToReadableText({ + name: "yargs", + version: "1.0.0", + main: "index.js", + }), "/user/users/projects/myproject/node_modules/yargs/callback.js": dedent` export class Yargs { positional() { } } `, @@ -140,15 +135,11 @@ describe("unittests:: tsserver:: auxiliaryProject::", () => { `, }; const host = createServerHost({ - "/user/users/projects/myproject/node_modules/@types/yargs/package.json": JSON.stringify( - { - name: "@types/yargs", - version: "1.0.0", - types: "./index.d.ts", - }, - undefined, - " ", - ), + "/user/users/projects/myproject/node_modules/@types/yargs/package.json": jsonToReadableText({ + name: "@types/yargs", + version: "1.0.0", + types: "./index.d.ts", + }), "/user/users/projects/myproject/node_modules/@types/yargs/callback.d.ts": dedent` export declare class Yargs { positional(): Yargs; } `, @@ -156,15 +147,11 @@ describe("unittests:: tsserver:: auxiliaryProject::", () => { import { Yargs } from "./callback"; export declare function command(command: string, cb: (yargs: Yargs) => void): void; `, - "/user/users/projects/myproject/node_modules/yargs/package.json": JSON.stringify( - { - name: "yargs", - version: "1.0.0", - main: "index.js", - }, - undefined, - " ", - ), + "/user/users/projects/myproject/node_modules/yargs/package.json": jsonToReadableText({ + name: "yargs", + version: "1.0.0", + main: "index.js", + }), "/user/users/projects/myproject/node_modules/yargs/callback.js": dedent` export class Yargs { positional() { } } `, diff --git a/src/testRunner/unittests/tsserver/cachingFileSystemInformation.ts b/src/testRunner/unittests/tsserver/cachingFileSystemInformation.ts index 3533b4e89a951..0456ac8c0d5bc 100644 --- a/src/testRunner/unittests/tsserver/cachingFileSystemInformation.ts +++ b/src/testRunner/unittests/tsserver/cachingFileSystemInformation.ts @@ -6,6 +6,9 @@ import { Logger, } from "../../../harness/tsserverLogger"; import * as ts from "../../_namespaces/ts"; +import { + jsonToReadableText, +} from "../helpers"; import { baselineTsserverLogs, createProjectService, @@ -78,7 +81,7 @@ describe("unittests:: tsserver:: CachingFileSystemInformation:: tsserverProjectS function logCacheEntry(logger: Logger, callback: CalledMaps) { const result = Array.from<[string, (true | CalledWithFiveArgs)[]], { key: string; count: number; }>(calledMaps[callback].entries(), ([key, arr]) => ({ key, count: arr.length })); - logger.info(`${callback}:: ${JSON.stringify(result)}`); + logger.info(`${callback}:: ${jsonToReadableText(result)}`); calledMaps[callback].clear(); } @@ -214,7 +217,7 @@ describe("unittests:: tsserver:: CachingFileSystemInformation:: tsserverProjectS }; const tsconfigFile: File = { path: "/a/b/tsconfig.json", - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { target: "es6", module: "es6", @@ -283,7 +286,7 @@ describe("unittests:: tsserver:: CachingFileSystemInformation:: tsserverProjectS const types = ["node", "jest"]; const tsconfigFile: File = { path: `${frontendDir}/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { strict: true, strictNullChecks: true, @@ -348,7 +351,7 @@ describe("unittests:: tsserver:: CachingFileSystemInformation:: tsserverProjectS }; const tsconfig: File = { path: `${projectLocation}/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ files: ["foo/boo/app.ts", "foo/boo/moo/app.ts"], moduleResolution: resolution, }), @@ -603,7 +606,7 @@ describe("unittests:: tsserver:: CachingFileSystemInformation:: tsserverProjectS }; const config: File = { path: `/user/username/projects/myproject/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { baseUrl: "client", paths: { "*": ["*"] }, diff --git a/src/testRunner/unittests/tsserver/cancellationToken.ts b/src/testRunner/unittests/tsserver/cancellationToken.ts index c9f58d3c4e016..ce29913f2af67 100644 --- a/src/testRunner/unittests/tsserver/cancellationToken.ts +++ b/src/testRunner/unittests/tsserver/cancellationToken.ts @@ -2,6 +2,9 @@ import { createLoggerWithInMemoryLogs, } from "../../../harness/tsserverLogger"; import * as ts from "../../_namespaces/ts"; +import { + jsonToReadableText, +} from "../helpers"; import { baselineTsserverLogs, createSession, @@ -66,7 +69,7 @@ describe("unittests:: tsserver:: cancellationToken", () => { }; const config = { path: "/a/tsconfig.json", - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: {}, }), }; @@ -163,7 +166,7 @@ describe("unittests:: tsserver:: cancellationToken", () => { }; const config = { path: "/a/tsconfig.json", - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: {}, }), }; @@ -223,7 +226,7 @@ describe("unittests:: tsserver:: cancellationToken", () => { session.logger.log(`Exception is OperationCanceledException: ${e instanceof ts.OperationCanceledException}`); operationCanceledExceptionThrown = true; } - if (!operationCanceledExceptionThrown) session.logger.log("Operation Canceled Exception not thrown for request: " + JSON.stringify(request)); + if (!operationCanceledExceptionThrown) session.logger.log("Operation Canceled Exception not thrown for request: " + jsonToReadableText(request)); } }); }); diff --git a/src/testRunner/unittests/tsserver/compileOnSave.ts b/src/testRunner/unittests/tsserver/compileOnSave.ts index 9e02f3da536ba..8289832dab372 100644 --- a/src/testRunner/unittests/tsserver/compileOnSave.ts +++ b/src/testRunner/unittests/tsserver/compileOnSave.ts @@ -3,6 +3,9 @@ import { Logger, } from "../../../harness/tsserverLogger"; import * as ts from "../../_namespaces/ts"; +import { + jsonToReadableText, +} from "../helpers"; import { baselineTsserverLogs, createSession, @@ -644,7 +647,7 @@ describe("unittests:: tsserver:: compileOnSave:: affected list", () => { }; const config = { path: "/a/tsconfig.json", - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: opts, compileOnSave: true, }), @@ -714,7 +717,7 @@ describe("unittests:: tsserver:: compileOnSave:: affected list", () => { }; const config = { path: "/a/tsconfig.json", - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: opts, compileOnSave: true, }), @@ -861,7 +864,7 @@ describe("unittests:: tsserver:: compileOnSave:: EmitFile test", () => { function verify(richResponse: boolean | undefined) { const config: File = { path: `/user/username/projects/myproject/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compileOnSave: true, compilerOptions: { outDir: "test", @@ -919,7 +922,7 @@ describe("unittests:: tsserver:: compileOnSave:: EmitFile test", () => { function verifyGlobalSave(declaration: boolean, hasModule: boolean) { const config: File = { path: `/user/username/projects/myproject/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compileOnSave: true, compilerOptions: { declaration, @@ -1041,7 +1044,7 @@ describe("unittests:: tsserver:: compileOnSave:: CompileOnSaveAffectedFileListRe }; const app1Config: File = { path: `/user/username/projects/myproject/app1/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ files: ["app.ts", "../core/core.ts"], compilerOptions: { outFile: "build/output.js" }, compileOnSave: true, @@ -1049,7 +1052,7 @@ describe("unittests:: tsserver:: compileOnSave:: CompileOnSaveAffectedFileListRe }; const app2Config: File = { path: `/user/username/projects/myproject/app2/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ files: ["app.ts", "../core/core.ts"], compilerOptions: { outFile: "build/output.js" }, compileOnSave: true, diff --git a/src/testRunner/unittests/tsserver/completions.ts b/src/testRunner/unittests/tsserver/completions.ts index d7a03bdd61ae5..787d034e7aee3 100644 --- a/src/testRunner/unittests/tsserver/completions.ts +++ b/src/testRunner/unittests/tsserver/completions.ts @@ -2,6 +2,9 @@ import { createLoggerWithInMemoryLogs, } from "../../../harness/tsserverLogger"; import * as ts from "../../_namespaces/ts"; +import { + jsonToReadableText, +} from "../helpers"; import { baselineTsserverLogs, createSession, @@ -73,7 +76,7 @@ describe("unittests:: tsserver:: completions", () => { const projectRoot = "e:/myproject"; const appPackage: File = { path: `${projectRoot}/package.json`, - content: JSON.stringify({ + content: jsonToReadableText({ name: "test", version: "0.1.0", dependencies: { @@ -94,7 +97,7 @@ import { const localAtTypes = `${localNodeModules}/@types`; const localReactPackage: File = { path: `${localAtTypes}/react/package.json`, - content: JSON.stringify({ + content: jsonToReadableText({ name: "@types/react", version: "16.9.14", }), @@ -106,7 +109,7 @@ import { }; const localReactRouterDomPackage: File = { path: `${localNodeModules}/react-router-dom/package.json`, - content: JSON.stringify({ + content: jsonToReadableText({ name: "react-router-dom", version: "5.1.2", }), @@ -117,7 +120,7 @@ import { }; const localPropTypesPackage: File = { path: `${localAtTypes}/prop-types/package.json`, - content: JSON.stringify({ + content: jsonToReadableText({ name: "@types/prop-types", version: "15.7.3", }), @@ -135,7 +138,7 @@ import { const globalAtTypes = `${globalTypingsCacheLocation}/node_modules/@types`; const globalReactRouterDomPackage: File = { path: `${globalAtTypes}/react-router-dom/package.json`, - content: JSON.stringify({ + content: jsonToReadableText({ name: "@types/react-router-dom", version: "5.1.2", }), diff --git a/src/testRunner/unittests/tsserver/configuredProjects.ts b/src/testRunner/unittests/tsserver/configuredProjects.ts index 1411db07de4a4..3cc6ce0367120 100644 --- a/src/testRunner/unittests/tsserver/configuredProjects.ts +++ b/src/testRunner/unittests/tsserver/configuredProjects.ts @@ -2,6 +2,9 @@ import { createLoggerWithInMemoryLogs, } from "../../../harness/tsserverLogger"; import * as ts from "../../_namespaces/ts"; +import { + jsonToReadableText, +} from "../helpers"; import { ensureErrorFreeBuild, } from "../helpers/solutionBuilder"; @@ -55,7 +58,7 @@ describe("unittests:: tsserver:: ConfiguredProjects", () => { const { configFileName, configFileErrors } = projectService.openClientFile(file1.path); assert(configFileName, "should find config file"); - assert.isTrue(!configFileErrors || configFileErrors.length === 0, `expect no errors in config file, got ${JSON.stringify(configFileErrors)}`); + assert.isTrue(!configFileErrors || configFileErrors.length === 0, `expect no errors in config file, got ${jsonToReadableText(configFileErrors)}`); baselineTsserverLogs("configuredProjects", "create configured project without file list", projectService); }); @@ -87,7 +90,7 @@ describe("unittests:: tsserver:: ConfiguredProjects", () => { const { configFileName, configFileErrors } = projectService.openClientFile(file1.path); assert(configFileName, "should find config file"); - assert.isTrue(!configFileErrors || configFileErrors.length === 0, `expect no errors in config file, got ${JSON.stringify(configFileErrors)}`); + assert.isTrue(!configFileErrors || configFileErrors.length === 0, `expect no errors in config file, got ${jsonToReadableText(configFileErrors)}`); baselineTsserverLogs("configuredProjects", "create configured project with the file list", projectService); }); @@ -366,7 +369,7 @@ describe("unittests:: tsserver:: ConfiguredProjects", () => { }; const configFile = { path: `/user/username/projects/myproject/a/c/tsconfig.json`, - content: JSON.stringify({ compilerOptions: {}, files: ["f2.ts", "f3.ts"] }), + content: jsonToReadableText({ compilerOptions: {}, files: ["f2.ts", "f3.ts"] }), }; const host = createServerHost([file1, file2, file3]); @@ -393,7 +396,7 @@ describe("unittests:: tsserver:: ConfiguredProjects", () => { }; const configFile = { path: "/a/b/tsconfig.json", - content: JSON.stringify({ compilerOptions: {} }), + content: jsonToReadableText({ compilerOptions: {} }), }; const host = createServerHost([file1, configFile]); @@ -419,7 +422,7 @@ describe("unittests:: tsserver:: ConfiguredProjects", () => { }; const configFile = { path: "/a/b/tsconfig.json", - content: JSON.stringify({ compilerOptions: {}, files: ["f1.ts"] }), + content: jsonToReadableText({ compilerOptions: {}, files: ["f1.ts"] }), }; const host = createServerHost([file1, file2, configFile]); @@ -427,7 +430,7 @@ describe("unittests:: tsserver:: ConfiguredProjects", () => { projectService.openClientFile(file1.path); - host.writeFile(configFile.path, JSON.stringify({ compilerOptions: {}, files: ["f1.ts", "f2.ts"] })); + host.writeFile(configFile.path, jsonToReadableText({ compilerOptions: {}, files: ["f1.ts", "f2.ts"] })); host.runQueuedTimeoutCallbacks(); baselineTsserverLogs("configuredProjects", "can correctly update configured project when set of root files has changed (new file in list of files)", projectService); @@ -444,7 +447,7 @@ describe("unittests:: tsserver:: ConfiguredProjects", () => { }; const configFile = { path: "/a/b/tsconfig.json", - content: JSON.stringify({ compilerOptions: {}, files: ["f1.ts", "f2.ts"] }), + content: jsonToReadableText({ compilerOptions: {}, files: ["f1.ts", "f2.ts"] }), }; const host = createServerHost([file1, file2, configFile]); @@ -452,7 +455,7 @@ describe("unittests:: tsserver:: ConfiguredProjects", () => { projectService.openClientFile(file1.path); - host.writeFile(configFile.path, JSON.stringify({ compilerOptions: { outFile: "out.js" }, files: ["f1.ts", "f2.ts"] })); + host.writeFile(configFile.path, jsonToReadableText({ compilerOptions: { outFile: "out.js" }, files: ["f1.ts", "f2.ts"] })); host.runQueuedTimeoutCallbacks(); baselineTsserverLogs("configuredProjects", "can update configured project when set of root files was not changed", projectService); @@ -477,7 +480,7 @@ describe("unittests:: tsserver:: ConfiguredProjects", () => { }; const configFile = { path: "/a/b/tsconfig.json", - content: JSON.stringify({ files: ["src/file1.ts", "file3.ts"] }), + content: jsonToReadableText({ files: ["src/file1.ts", "file3.ts"] }), }; const files = [file1, file2, file3, file4]; @@ -540,7 +543,7 @@ describe("unittests:: tsserver:: ConfiguredProjects", () => { }; const configFile = { path: "/a/b/tsconfig.json", - content: JSON.stringify({ files: ["src/file1.ts", "file3.ts"] }), + content: jsonToReadableText({ files: ["src/file1.ts", "file3.ts"] }), }; const files = [file1, file2, file3]; @@ -587,7 +590,7 @@ describe("unittests:: tsserver:: ConfiguredProjects", () => { }; const config = { path: "/a/tsconfig.json", - content: JSON.stringify({ compilerOptions: { allowJs: true } }), + content: jsonToReadableText({ compilerOptions: { allowJs: true } }), }; const host = createServerHost([f1, f2, f3, config]); const originalGetFileSize = host.getFileSize; @@ -653,7 +656,7 @@ describe("unittests:: tsserver:: ConfiguredProjects", () => { it("when multiple projects are open, detects correct default project", () => { const barConfig: File = { path: `/user/username/projects/myproject/bar/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ include: ["index.ts"], compilerOptions: { lib: ["dom", "es2017"], @@ -669,7 +672,7 @@ export function bar() { }; const fooConfig: File = { path: `/user/username/projects/myproject/foo/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ include: ["index.ts"], compilerOptions: { lib: ["es2017"], @@ -735,7 +738,7 @@ declare var console: { }; const config: File = { path: `/user/username/projects/myproject/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ include: ["./src"], }), }; @@ -752,7 +755,7 @@ declare var console: { withExclude ? { path: config.path, - content: JSON.stringify({ + content: jsonToReadableText({ include: ["./src"], exclude: ["./src/sub"], }), @@ -852,7 +855,7 @@ foo();`, }; const fooConfig: File = { path: `/user/username/projects/myproject/foo/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ include: ["index.ts"], compilerOptions: { declaration: true, @@ -892,13 +895,13 @@ foo();`, }; const bravoExtendedConfig: File = { path: `/user/username/projects/myproject/extended/bravo.tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ extends: "./alpha.tsconfig.json", }), }; const aConfig: File = { path: `/user/username/projects/myproject/a/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ extends: "../extended/alpha.tsconfig.json", files: ["a.ts"], }), @@ -909,7 +912,7 @@ foo();`, }; const bConfig: File = { path: `/user/username/projects/myproject/b/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ extends: "../extended/bravo.tsconfig.json", files: ["b.ts"], }), @@ -932,7 +935,7 @@ foo();`, host.writeFile( alphaExtendedConfig.path, - JSON.stringify({ + jsonToReadableText({ compilerOptions: { strict: true, }, @@ -942,7 +945,7 @@ foo();`, host.writeFile( bravoExtendedConfig.path, - JSON.stringify({ + jsonToReadableText({ extends: "./alpha.tsconfig.json", compilerOptions: { strict: false, @@ -953,7 +956,7 @@ foo();`, host.writeFile( bConfig.path, - JSON.stringify({ + jsonToReadableText({ extends: "../extended/alpha.tsconfig.json", }), ); @@ -1021,7 +1024,7 @@ describe("unittests:: tsserver:: ConfiguredProjects:: non-existing directories l }; const config = { path: "/a/tsconfig.json", - content: JSON.stringify({ + content: jsonToReadableText({ compiler: {}, files: [], }), @@ -1049,7 +1052,7 @@ describe("unittests:: tsserver:: ConfiguredProjects:: non-existing directories l }; const config = { path: `/user/username/projects/myproject/src/server/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compiler: { module: "commonjs", outDir: "../../build", @@ -1082,7 +1085,7 @@ describe("unittests:: tsserver:: ConfiguredProjects:: non-existing directories l }; const configFile: File = { path: "/users/username/projects/project/tsconfig.json", - content: JSON.stringify({ files: [file1.path], compilerOptions: { module: "amd" } }), + content: jsonToReadableText({ files: [file1.path], compilerOptions: { module: "amd" } }), }; const files = [file1, file2a, configFile, libFile]; const host = createServerHost(files); @@ -1119,7 +1122,7 @@ describe("unittests:: tsserver:: ConfiguredProjects:: non-existing directories l }; const configFile: File = { path: "/a/b/src/tsconfig.json", - content: JSON.stringify({ files: ["file1.ts"] }), + content: jsonToReadableText({ files: ["file1.ts"] }), }; const nonLibFiles = [file1, module1, module2, module3, configFile]; nonLibFiles.forEach(f => f.path = root + f.path); diff --git a/src/testRunner/unittests/tsserver/declarationFileMaps.ts b/src/testRunner/unittests/tsserver/declarationFileMaps.ts index b3de82ed32053..ed797ea7676fd 100644 --- a/src/testRunner/unittests/tsserver/declarationFileMaps.ts +++ b/src/testRunner/unittests/tsserver/declarationFileMaps.ts @@ -2,6 +2,9 @@ import { createLoggerWithInMemoryLogs, } from "../../../harness/tsserverLogger"; import * as ts from "../../_namespaces/ts"; +import { + jsonToReadableText, +} from "../helpers"; import { baselineTsserverLogs, closeFilesForSession, @@ -20,7 +23,7 @@ function checkDeclarationFiles(file: File, session: TestSession): void { const project = ts.Debug.checkDefined(session.getProjectService().getDefaultProjectForFile(file.path as ts.server.NormalizedPath, /*ensureProject*/ false)); const program = project.getCurrentProgram()!; const output = ts.getFileEmitOutput(program, ts.Debug.checkDefined(program.getSourceFile(file.path)), /*emitOnlyDtsFiles*/ true); - session.logger.log(`ts.getFileEmitOutput: ${file.path}: ${JSON.stringify(output, undefined, " ")}`); + session.logger.log(`ts.getFileEmitOutput: ${file.path}: ${jsonToReadableText(output)}`); closeFilesForSession([file], session); } @@ -35,7 +38,7 @@ describe("unittests:: tsserver:: with declaration file maps:: project references declarationMap: true, composite: true, }; - const configContent = JSON.stringify({ compilerOptions }); + const configContent = jsonToReadableText({ compilerOptions }); const aTsconfig: File = { path: "/a/tsconfig.json", content: configContent }; const aDtsMapContent: ts.RawSourceMap = { @@ -48,7 +51,7 @@ describe("unittests:: tsserver:: with declaration file maps:: project references }; const aDtsMap: File = { path: "/a/bin/a.d.ts.map", - content: JSON.stringify(aDtsMapContent), + content: jsonToReadableText(aDtsMapContent), }; const aDts: File = { path: "/a/bin/a.d.ts", @@ -72,7 +75,7 @@ describe("unittests:: tsserver:: with declaration file maps:: project references }; const bDtsMap: File = { path: "/b/bin/b.d.ts.map", - content: JSON.stringify(bDtsMapContent), + content: jsonToReadableText(bDtsMapContent), }; const bDts: File = { // ${""} is need to mangle the sourceMappingURL part so it doesn't break the build @@ -97,7 +100,7 @@ describe("unittests:: tsserver:: with declaration file maps:: project references const userTsconfig: File = { path: "/user/tsconfig.json", - content: JSON.stringify({ + content: jsonToReadableText({ file: ["user.ts"], references: [{ path: "../a" }, { path: "../b" }], }), @@ -271,14 +274,14 @@ describe("unittests:: tsserver:: with declaration file maps:: project references const aTs: File = { path: "/a/a.ts", content: `function f() {}` }; const aTsconfig: File = { path: "/a/tsconfig.json", - content: JSON.stringify({ compilerOptions: { declaration: true, declarationMap: true, outFile: "../bin/a.js" } }), + content: jsonToReadableText({ compilerOptions: { declaration: true, declarationMap: true, outFile: "../bin/a.js" } }), }; const bTs: File = { path: "/b/b.ts", content: `f();` }; - const bTsconfig: File = { path: "/b/tsconfig.json", content: JSON.stringify({ references: [{ path: "../a" }] }) }; + const bTsconfig: File = { path: "/b/tsconfig.json", content: jsonToReadableText({ references: [{ path: "../a" }] }) }; const aDts: File = { path: "/bin/a.d.ts", content: `declare function f(): void;\n//# sourceMappingURL=a.d.ts.map` }; const aDtsMap: File = { path: "/bin/a.d.ts.map", - content: JSON.stringify({ version: 3, file: "a.d.ts", sourceRoot: "", sources: ["../a/a.ts"], names: [], mappings: "AAAA,iBAAS,CAAC,SAAK" }), + content: jsonToReadableText({ version: 3, file: "a.d.ts", sourceRoot: "", sources: ["../a/a.ts"], names: [], mappings: "AAAA,iBAAS,CAAC,SAAK" }), }; const host = createServerHost([aTs, aTsconfig, bTs, bTsconfig, aDts, aDtsMap]); @@ -361,7 +364,7 @@ describe("unittests:: tsserver:: with declaration file maps:: project references const aTs: File = { path: "/a/src/a.ts", content: "" }; const aTsconfig: File = { path: "/a/tsconfig.json", - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { composite: true, declaration: true, @@ -373,7 +376,7 @@ describe("unittests:: tsserver:: with declaration file maps:: project references const bTs: File = { path: "/b/src/b.ts", content: "" }; const bTsconfig: File = { path: "/b/tsconfig.json", - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { composite: true, outDir: "./build", @@ -403,7 +406,7 @@ describe("unittests:: tsserver:: with declaration file maps:: project references }; const aDtsMapInlinedSources: File = { path: aDtsMap.path, - content: JSON.stringify(aDtsInlinedSources), + content: jsonToReadableText(aDtsInlinedSources), }; const host = createServerHost([aTs, aDtsMapInlinedSources, aDts, bTs, bDtsMap, bDts, userTs, dummyFile]); const session = createSession(host, { logger: createLoggerWithInMemoryLogs(host) }); diff --git a/src/testRunner/unittests/tsserver/documentRegistry.ts b/src/testRunner/unittests/tsserver/documentRegistry.ts index 6f78f0185bf0b..43706ab46806f 100644 --- a/src/testRunner/unittests/tsserver/documentRegistry.ts +++ b/src/testRunner/unittests/tsserver/documentRegistry.ts @@ -5,6 +5,9 @@ import { createLoggerWithInMemoryLogs, } from "../../../harness/tsserverLogger"; import * as ts from "../../_namespaces/ts"; +import { + jsonToReadableText, +} from "../helpers"; import { baselineTsserverLogs, closeFilesForSession, @@ -31,7 +34,7 @@ describe("unittests:: tsserver:: documentRegistry:: document registry in project }; const configFile: File = { path: `/user/username/projects/myproject/tsconfig.json`, - content: JSON.stringify({ files: ["index.ts"] }), + content: jsonToReadableText({ files: ["index.ts"] }), }; function getProject(service: TestProjectService) { diff --git a/src/testRunner/unittests/tsserver/duplicatePackages.ts b/src/testRunner/unittests/tsserver/duplicatePackages.ts index d01dc584501e1..ab3c22fdbe1d7 100644 --- a/src/testRunner/unittests/tsserver/duplicatePackages.ts +++ b/src/testRunner/unittests/tsserver/duplicatePackages.ts @@ -2,6 +2,9 @@ import { createLoggerWithInMemoryLogs, } from "../../../harness/tsserverLogger"; import * as ts from "../../_namespaces/ts"; +import { + jsonToReadableText, +} from "../helpers"; import { baselineTsserverLogs, createSession, @@ -16,7 +19,7 @@ describe("unittests:: tsserver:: duplicate packages", () => { // Tests that 'moduleSpecifiers.ts' will import from the redirecting file, and not from the file it redirects to, if that can provide a global module specifier. it("works with import fixes", () => { const packageContent = "export const foo: number;"; - const packageJsonContent = JSON.stringify({ name: "foo", version: "1.2.3" }); + const packageJsonContent = jsonToReadableText({ name: "foo", version: "1.2.3" }); const aFooIndex: File = { path: "/a/node_modules/foo/index.d.ts", content: packageContent }; const aFooPackage: File = { path: "/a/node_modules/foo/package.json", content: packageJsonContent }; const bFooIndex: File = { path: "/b/node_modules/foo/index.d.ts", content: packageContent }; diff --git a/src/testRunner/unittests/tsserver/events/largeFileReferenced.ts b/src/testRunner/unittests/tsserver/events/largeFileReferenced.ts index 6280d4fc979ca..e2ce5a25190ad 100644 --- a/src/testRunner/unittests/tsserver/events/largeFileReferenced.ts +++ b/src/testRunner/unittests/tsserver/events/largeFileReferenced.ts @@ -2,6 +2,9 @@ import { createLoggerWithInMemoryLogs, } from "../../../../harness/tsserverLogger"; import * as ts from "../../../_namespaces/ts"; +import { + jsonToReadableText, +} from "../../helpers"; import { baselineTsserverLogs, createSession, @@ -42,7 +45,7 @@ describe("unittests:: tsserver:: events:: LargeFileReferencedEvent with large fi }; const tsconfig: File = { path: `/user/username/projects/myproject/tsconfig.json`, - content: JSON.stringify({ files: ["src/file.ts", getLargeFile(useLargeTsFile)], compilerOptions: { target: 1, allowJs: true } }), + content: jsonToReadableText({ files: ["src/file.ts", getLargeFile(useLargeTsFile)], compilerOptions: { target: 1, allowJs: true } }), }; const files = [file, libFile, tsconfig]; const session = createSessionWithEventHandler(files, useLargeTsFile); diff --git a/src/testRunner/unittests/tsserver/events/projectLanguageServiceState.ts b/src/testRunner/unittests/tsserver/events/projectLanguageServiceState.ts index fb64c6bc2c8e7..048b5194d3b18 100644 --- a/src/testRunner/unittests/tsserver/events/projectLanguageServiceState.ts +++ b/src/testRunner/unittests/tsserver/events/projectLanguageServiceState.ts @@ -2,6 +2,9 @@ import { createLoggerWithInMemoryLogs, } from "../../../../harness/tsserverLogger"; import * as ts from "../../../_namespaces/ts"; +import { + jsonToReadableText, +} from "../../helpers"; import { baselineTsserverLogs, createProjectService, @@ -30,7 +33,7 @@ describe("unittests:: tsserver:: events:: ProjectLanguageServiceStateEvent", () }; const configWithExclude = { path: config.path, - content: JSON.stringify({ exclude: ["largefile.js"] }), + content: jsonToReadableText({ exclude: ["largefile.js"] }), }; const host = createServerHost([f1, f2, config]); const originalGetFileSize = host.getFileSize; diff --git a/src/testRunner/unittests/tsserver/events/projectLoading.ts b/src/testRunner/unittests/tsserver/events/projectLoading.ts index 2eebb4284c646..f555d6e23c4fe 100644 --- a/src/testRunner/unittests/tsserver/events/projectLoading.ts +++ b/src/testRunner/unittests/tsserver/events/projectLoading.ts @@ -2,6 +2,9 @@ import { createLoggerWithInMemoryLogs, } from "../../../../harness/tsserverLogger"; import * as ts from "../../../_namespaces/ts"; +import { + jsonToReadableText, +} from "../../helpers"; import { baselineTsserverLogs, createSession, @@ -67,7 +70,7 @@ describe("unittests:: tsserver:: events:: ProjectLoadingStart and ProjectLoading }; const configB: File = { path: configBPath, - content: JSON.stringify({ + content: jsonToReadableText({ extends: "../a/tsconfig.json", }), }; @@ -99,7 +102,7 @@ describe("unittests:: tsserver:: events:: ProjectLoadingStart and ProjectLoading }; const aDTsMap: File = { path: `/user/username/projects/a/a.d.ts.map`, - content: `{"version":3,"file":"a.d.ts","sourceRoot":"","sources":["./a.ts"],"names":[],"mappings":"AAAA,qBAAa,CAAC;CAAI"}`, + content: jsonToReadableText({ version: 3, file: "a.d.ts", sourceRoot: "", sources: ["./a.ts"], names: [], mappings: "AAAA,qBAAa,CAAC;CAAI" }), }; const bTs: File = { path: bTsPath, @@ -107,7 +110,7 @@ describe("unittests:: tsserver:: events:: ProjectLoadingStart and ProjectLoading }; const configB: File = { path: configBPath, - content: JSON.stringify({ + content: jsonToReadableText({ ...(disableSourceOfProjectReferenceRedirect && { compilerOptions: { disableSourceOfProjectReferenceRedirect, diff --git a/src/testRunner/unittests/tsserver/events/projectUpdatedInBackground.ts b/src/testRunner/unittests/tsserver/events/projectUpdatedInBackground.ts index ab025be7e8fcd..54c29910a527b 100644 --- a/src/testRunner/unittests/tsserver/events/projectUpdatedInBackground.ts +++ b/src/testRunner/unittests/tsserver/events/projectUpdatedInBackground.ts @@ -2,6 +2,9 @@ import { createLoggerWithInMemoryLogs, } from "../../../../harness/tsserverLogger"; import * as ts from "../../../_namespaces/ts"; +import { + jsonToReadableText, +} from "../../helpers"; import { baselineTsserverLogs, createSession, @@ -52,7 +55,7 @@ describe("unittests:: tsserver:: events:: ProjectsUpdatedInBackground", () => { it(subScenario, () => { const config: File = { path: "/users/username/projects/project/tsconfig.json", - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions, }), }; @@ -125,7 +128,7 @@ describe("unittests:: tsserver:: events:: ProjectsUpdatedInBackground", () => { const additionalFiles = getAdditionalFileOrFolder ? getAdditionalFileOrFolder() : []; const configFile = { path: configFilePath, - content: JSON.stringify(configObj || { compilerOptions: {} }), + content: jsonToReadableText(configObj || { compilerOptions: {} }), }; const files: File[] = [file1Consumer1, moduleFile1, file1Consumer2, moduleFile2, ...additionalFiles, globalFile3, libFile, configFile]; @@ -378,7 +381,7 @@ describe("unittests:: tsserver:: events:: ProjectsUpdatedInBackground", () => { }; const configFile: File = { path: rootFolder + "a/b/project/tsconfig.json", - content: JSON.stringify({ compilerOptions: { typeRoots: [] } }), + content: jsonToReadableText({ compilerOptions: { typeRoots: [] } }), }; const host = createServerHost([file1, file3, libFile, configFile]); diff --git a/src/testRunner/unittests/tsserver/exportMapCache.ts b/src/testRunner/unittests/tsserver/exportMapCache.ts index 0142dee7cefde..1a3063ce86029 100644 --- a/src/testRunner/unittests/tsserver/exportMapCache.ts +++ b/src/testRunner/unittests/tsserver/exportMapCache.ts @@ -2,6 +2,9 @@ import { createLoggerWithInMemoryLogs, } from "../../../harness/tsserverLogger"; import * as ts from "../../_namespaces/ts"; +import { + jsonToReadableText, +} from "../helpers"; import { baselineTsserverLogs, createSession, @@ -34,7 +37,7 @@ const ambientDeclaration: File = { }; const mobxPackageJson: File = { path: "/node_modules/mobx/package.json", - content: `{ "name": "mobx", "version": "1.0.0" }`, + content: jsonToReadableText({ name: "mobx", version: "1.0.0" }), }; const mobxDts: File = { path: "/node_modules/mobx/index.d.ts", diff --git a/src/testRunner/unittests/tsserver/externalProjects.ts b/src/testRunner/unittests/tsserver/externalProjects.ts index 23bd06b5f0e34..d695621c184ae 100644 --- a/src/testRunner/unittests/tsserver/externalProjects.ts +++ b/src/testRunner/unittests/tsserver/externalProjects.ts @@ -3,6 +3,9 @@ import { } from "../../../harness/tsserverLogger"; import * as Harness from "../../_namespaces/Harness"; import * as ts from "../../_namespaces/ts"; +import { + jsonToReadableText, +} from "../helpers"; import { baselineTsserverLogs, createProjectService, @@ -31,7 +34,7 @@ describe("unittests:: tsserver:: externalProjects", () => { }; const config = { path: "/a/b/tsconfig.json", - content: JSON.stringify({ + content: jsonToReadableText({ include: [], }), }; @@ -209,7 +212,7 @@ describe("unittests:: tsserver:: externalProjects", () => { }; const config1 = { path: "/a/b/tsconfig.json", - content: JSON.stringify( + content: jsonToReadableText( { compilerOptions: {}, files: ["f1.ts"], @@ -222,7 +225,7 @@ describe("unittests:: tsserver:: externalProjects", () => { }; const config2 = { path: "/a/c/tsconfig.json", - content: JSON.stringify( + content: jsonToReadableText( { compilerOptions: {}, files: ["f2.ts"], @@ -270,7 +273,7 @@ describe("unittests:: tsserver:: externalProjects", () => { }; const configFile = { path: "/a/b/tsconfig.json", - content: JSON.stringify({ compilerOptions: {} }), + content: jsonToReadableText({ compilerOptions: {} }), }; const externalProjectName = "externalproject"; const host = createServerHost([file1, configFile]); @@ -302,7 +305,7 @@ describe("unittests:: tsserver:: externalProjects", () => { }; const configFile = { path: "/a/b/tsconfig.json", - content: JSON.stringify({ compilerOptions: {} }), + content: jsonToReadableText({ compilerOptions: {} }), }; const externalProjectName = "externalproject"; const host = createServerHost([file1, file2, libFile, configFile]); @@ -600,7 +603,7 @@ describe("unittests:: tsserver:: externalProjects", () => { }; const config1 = { path: "/src/tsconfig.json", - content: JSON.stringify( + content: jsonToReadableText( { compilerOptions: { module: "commonjs", @@ -616,7 +619,7 @@ describe("unittests:: tsserver:: externalProjects", () => { }; const config2 = { path: config1.path, - content: JSON.stringify( + content: jsonToReadableText( { compilerOptions: { module: "commonjs", @@ -648,7 +651,7 @@ describe("unittests:: tsserver:: externalProjects", () => { }; const config = { path: "/a/tsconfig.json", - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: {}, include: [ "src/**/*", @@ -675,7 +678,7 @@ describe("unittests:: tsserver:: externalProjects", () => { }; const config = { path: "/a/b/tsconfig.json", - content: JSON.stringify({}), + content: jsonToReadableText({}), }; const projectFileName = "/a/b/project.csproj"; const host = createServerHost([f1, config]); diff --git a/src/testRunner/unittests/tsserver/forceConsistentCasingInFileNames.ts b/src/testRunner/unittests/tsserver/forceConsistentCasingInFileNames.ts index bc77c0276fd81..16e24dfb6dbc2 100644 --- a/src/testRunner/unittests/tsserver/forceConsistentCasingInFileNames.ts +++ b/src/testRunner/unittests/tsserver/forceConsistentCasingInFileNames.ts @@ -2,6 +2,9 @@ import { createLoggerWithInMemoryLogs, } from "../../../harness/tsserverLogger"; import * as ts from "../../_namespaces/ts"; +import { + jsonToReadableText, +} from "../helpers"; import { baselineTsserverLogs, closeFilesForSession, @@ -33,7 +36,7 @@ describe("unittests:: tsserver:: forceConsistentCasingInFileNames", () => { }; const tsconfigAll: File = { path: `${rootPath}/tsconfig.all.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { baseUrl: ".", paths: { file2: ["./file2.js"] }, @@ -44,7 +47,7 @@ describe("unittests:: tsserver:: forceConsistentCasingInFileNames", () => { }; const tsconfig: File = { path: `${rootPath}/tsconfig.json`, - content: JSON.stringify({ extends: "./tsconfig.all.json" }), + content: jsonToReadableText({ extends: "./tsconfig.all.json" }), }; const host = createServerHost([file1, file2, file2Dts, libFile, tsconfig, tsconfigAll], { useCaseSensitiveFileNames: false }); @@ -71,7 +74,7 @@ describe("unittests:: tsserver:: forceConsistentCasingInFileNames", () => { }; const tsconfig: File = { path: `/user/username/projects/myproject/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { forceConsistentCasingInFileNames: true }, }), }; @@ -120,7 +123,7 @@ describe("unittests:: tsserver:: forceConsistentCasingInFileNames", () => { }; const tsconfig: File = { path: `/user/username/projects/myproject/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { forceConsistentCasingInFileNames: true }, }), }; diff --git a/src/testRunner/unittests/tsserver/formatSettings.ts b/src/testRunner/unittests/tsserver/formatSettings.ts index 027abb5160273..0cd2c18536759 100644 --- a/src/testRunner/unittests/tsserver/formatSettings.ts +++ b/src/testRunner/unittests/tsserver/formatSettings.ts @@ -2,6 +2,9 @@ import { createLoggerWithInMemoryLogs, } from "../../../harness/tsserverLogger"; import * as ts from "../../_namespaces/ts"; +import { + jsonToReadableText, +} from "../helpers"; import { baselineTsserverLogs, createSession, @@ -31,7 +34,7 @@ describe("unittests:: tsserver:: formatSettings", () => { }); // get format options for file - should be equal to new global settings - session.logger.log(`FormatCodeOptions should be global:: ${f1.path}:: ${JSON.stringify(session.getProjectService().getFormatCodeOptions(ts.server.toNormalizedPath(f1.path)), undefined, " ")}`); + session.logger.log(`FormatCodeOptions should be global:: ${f1.path}:: ${jsonToReadableText(session.getProjectService().getFormatCodeOptions(ts.server.toNormalizedPath(f1.path)))}`); // set per file format options const newPerFileSettings = { ...defaultSettings, insertSpaceAfterCommaDelimiter: !defaultSettings.insertSpaceAfterCommaDelimiter }; @@ -41,7 +44,7 @@ describe("unittests:: tsserver:: formatSettings", () => { }); // get format options for file - should be equal to new per-file settings - session.logger.log(`FormatCodeOptions should be per file:: ${f1.path}:: ${JSON.stringify(session.getProjectService().getFormatCodeOptions(ts.server.toNormalizedPath(f1.path)), undefined, " ")}`); + session.logger.log(`FormatCodeOptions should be per file:: ${f1.path}:: ${jsonToReadableText(session.getProjectService().getFormatCodeOptions(ts.server.toNormalizedPath(f1.path)))}`); // set new global settings - they should not affect ones that were set per-file const newGlobalSettings2 = { ...defaultSettings, insertSpaceAfterSemicolonInForStatements: !defaultSettings.insertSpaceAfterSemicolonInForStatements }; @@ -51,7 +54,7 @@ describe("unittests:: tsserver:: formatSettings", () => { }); // get format options for file - should be equal to new per-file settings - session.logger.log(`FormatCodeOptions should be per file:: ${f1.path}:: ${JSON.stringify(session.getProjectService().getFormatCodeOptions(ts.server.toNormalizedPath(f1.path)), undefined, " ")}`); + session.logger.log(`FormatCodeOptions should be per file:: ${f1.path}:: ${jsonToReadableText(session.getProjectService().getFormatCodeOptions(ts.server.toNormalizedPath(f1.path)))}`); baselineTsserverLogs("formatSettings", "works when extends is specified with a case insensitive file system", session); }); }); diff --git a/src/testRunner/unittests/tsserver/getEditsForFileRename.ts b/src/testRunner/unittests/tsserver/getEditsForFileRename.ts index 298baa5d2fb32..2c8cc169642f8 100644 --- a/src/testRunner/unittests/tsserver/getEditsForFileRename.ts +++ b/src/testRunner/unittests/tsserver/getEditsForFileRename.ts @@ -2,6 +2,9 @@ import { createLoggerWithInMemoryLogs, } from "../../../harness/tsserverLogger"; import * as ts from "../../_namespaces/ts"; +import { + jsonToReadableText, +} from "../helpers"; import { baselineTsserverLogs, createSession, @@ -68,7 +71,7 @@ describe("unittests:: tsserver:: getEditsForFileRename", () => { }; const aTsconfig: File = { path: "/a/tsconfig.json", - content: JSON.stringify({ files: ["./old.ts", "./user.ts"] }), + content: jsonToReadableText({ files: ["./old.ts", "./user.ts"] }), }; const bUserTs: File = { path: "/b/user.ts", @@ -96,7 +99,7 @@ describe("unittests:: tsserver:: getEditsForFileRename", () => { it("works with file moved to inferred project", () => { const aTs: File = { path: "/a.ts", content: 'import {} from "./b";' }; const cTs: File = { path: "/c.ts", content: "export {};" }; - const tsconfig: File = { path: "/tsconfig.json", content: JSON.stringify({ files: ["./a.ts", "./b.ts"] }) }; + const tsconfig: File = { path: "/tsconfig.json", content: jsonToReadableText({ files: ["./a.ts", "./b.ts"] }) }; const host = createServerHost([aTs, cTs, tsconfig]); const session = createSession(host, { logger: createLoggerWithInMemoryLogs(host) }); diff --git a/src/testRunner/unittests/tsserver/getMoveToRefactoringFileSuggestions.ts b/src/testRunner/unittests/tsserver/getMoveToRefactoringFileSuggestions.ts index 2d0336232d51e..402ebf9929ca1 100644 --- a/src/testRunner/unittests/tsserver/getMoveToRefactoringFileSuggestions.ts +++ b/src/testRunner/unittests/tsserver/getMoveToRefactoringFileSuggestions.ts @@ -2,6 +2,9 @@ import { createLoggerWithInMemoryLogs, } from "../../../harness/tsserverLogger"; import * as ts from "../../_namespaces/ts"; +import { + jsonToReadableText, +} from "../helpers"; import { baselineTsserverLogs, createSession, @@ -63,7 +66,7 @@ import { value1 } from "../node_modules/.cache/someFile.d.ts";`, const file5: File = { path: "/file5.js", content: "" }; const file6: File = { path: "/file6.d.ts", content: "" }; const file7: File = { path: "/file7.ts", content: "" }; - const tsconfig: File = { path: "/tsconfig.json", content: JSON.stringify({ files: ["./file1.ts", "./file2.tsx", "./file3.mts", "./file4.cts", "./file5.js", "./file6.d.ts", "./file7.ts"] }) }; + const tsconfig: File = { path: "/tsconfig.json", content: jsonToReadableText({ files: ["./file1.ts", "./file2.tsx", "./file3.mts", "./file4.cts", "./file5.js", "./file6.d.ts", "./file7.ts"] }) }; const host = createServerHost([file1, file2, file3, file4, file5, file6, file7, tsconfig]); const session = createSession(host, { logger: createLoggerWithInMemoryLogs(host) }); @@ -84,7 +87,7 @@ import { value1 } from "../node_modules/.cache/someFile.d.ts";`, const file3: File = { path: "/file3.mts", content: "" }; const file4: File = { path: "/file4.ts", content: "" }; const file5: File = { path: "/file5.js", content: "" }; - const tsconfig: File = { path: "/tsconfig.json", content: JSON.stringify({ files: ["./file1.js", "./file2.js", "./file3.mts", "./file4.ts", "./file5.js"] }) }; + const tsconfig: File = { path: "/tsconfig.json", content: jsonToReadableText({ files: ["./file1.js", "./file2.js", "./file3.mts", "./file4.ts", "./file5.js"] }) }; const host = createServerHost([file1, file2, file3, file4, file5, tsconfig]); const session = createSession(host, { logger: createLoggerWithInMemoryLogs(host) }); @@ -104,7 +107,7 @@ import { value1 } from "../node_modules/.cache/someFile.d.ts";`, const file2: File = { path: "/a/lib.d.ts", content: "" }; const file3: File = { path: "/a/file3.d.ts", content: "" }; const file4: File = { path: "/a/lib.es6.d.ts", content: "" }; - const tsconfig: File = { path: "/tsconfig.json", content: JSON.stringify({ files: ["./file1.d.ts", "./a/lib.d.ts", "./a/file3.d.ts", "/a/lib.es6.d.ts"] }) }; + const tsconfig: File = { path: "/tsconfig.json", content: jsonToReadableText({ files: ["./file1.d.ts", "./a/lib.d.ts", "./a/file3.d.ts", "/a/lib.es6.d.ts"] }) }; const host = createServerHost([file1, file2, file3, file4, tsconfig]); const session = createSession(host, { logger: createLoggerWithInMemoryLogs(host) }); diff --git a/src/testRunner/unittests/tsserver/inferredProjects.ts b/src/testRunner/unittests/tsserver/inferredProjects.ts index ecf3ffa252044..5b3c16aa00196 100644 --- a/src/testRunner/unittests/tsserver/inferredProjects.ts +++ b/src/testRunner/unittests/tsserver/inferredProjects.ts @@ -5,6 +5,9 @@ import * as ts from "../../_namespaces/ts"; import { dedent, } from "../../_namespaces/Utils"; +import { + jsonToReadableText, +} from "../helpers"; import { commonFile1, } from "../helpers/tscWatch"; @@ -280,7 +283,7 @@ describe("unittests:: tsserver:: inferredProjects", () => { const inferredProject = projectService.inferredProjects[0]; projectService.logger.log(`typeAcquisition : setting to undefined`); inferredProject.setTypeAcquisition(undefined); - projectService.logger.log(`typeAcquisition should be inferred for inferred projects: ${JSON.stringify(inferredProject.getTypeAcquisition(), undefined, " ")}`); + projectService.logger.log(`typeAcquisition should be inferred for inferred projects: ${jsonToReadableText(inferredProject.getTypeAcquisition())}`); baselineTsserverLogs("inferredProjects", "regression test - should infer typeAcquisition for inferred projects when set undefined", projectService); }); @@ -310,7 +313,7 @@ describe("unittests:: tsserver:: inferredProjects", () => { "/user/username/projects/myproject/module2.d.ts": dedent` export const y = 10; `, - "/user/username/projects/myproject/node_modules/module3/package.json": JSON.stringify({ + "/user/username/projects/myproject/node_modules/module3/package.json": jsonToReadableText({ name: "module3", version: "1.0.0", }), diff --git a/src/testRunner/unittests/tsserver/libraryResolution.ts b/src/testRunner/unittests/tsserver/libraryResolution.ts index 1bfdb90aa15b4..a33433a1beee0 100644 --- a/src/testRunner/unittests/tsserver/libraryResolution.ts +++ b/src/testRunner/unittests/tsserver/libraryResolution.ts @@ -2,7 +2,10 @@ import { createLoggerWithInMemoryLogs, } from "../../../harness/tsserverLogger"; import { - getServerHosForLibResolution, + jsonToReadableText, +} from "../helpers"; +import { + getServerHostForLibResolution, } from "../helpers/libraryResolution"; import { baselineTsserverLogs, @@ -12,7 +15,7 @@ import { describe("unittests:: tsserver:: libraryResolution", () => { it("with config", () => { - const host = getServerHosForLibResolution(); + const host = getServerHostForLibResolution(); const session = createSession(host, { logger: createLoggerWithInMemoryLogs(host) }); openFilesForSession(["/home/src/projects/project1/index.ts"], session); host.ensureFileOrFolder({ path: "/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts", content: "interface DOMInterface { }" }); @@ -26,7 +29,7 @@ describe("unittests:: tsserver:: libraryResolution", () => { host.runQueuedTimeoutCallbacks(); host.writeFile( "/home/src/projects/project1/tsconfig.json", - JSON.stringify({ + jsonToReadableText({ compilerOptions: { composite: true, typeRoots: ["./typeroot1", "./typeroot2"], @@ -38,7 +41,7 @@ describe("unittests:: tsserver:: libraryResolution", () => { host.runQueuedTimeoutCallbacks(); host.writeFile( "/home/src/projects/project1/tsconfig.json", - JSON.stringify({ + jsonToReadableText({ compilerOptions: { composite: true, typeRoots: ["./typeroot1"], @@ -57,7 +60,7 @@ describe("unittests:: tsserver:: libraryResolution", () => { baselineTsserverLogs("libraryResolution", "with config", session); }); it("with config with redirection", () => { - const host = getServerHosForLibResolution(/*libRedirection*/ true); + const host = getServerHostForLibResolution(/*libRedirection*/ true); const session = createSession(host, { logger: createLoggerWithInMemoryLogs(host) }); openFilesForSession(["/home/src/projects/project1/index.ts"], session); host.deleteFile("/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts"); @@ -71,7 +74,7 @@ describe("unittests:: tsserver:: libraryResolution", () => { host.runQueuedTimeoutCallbacks(); host.writeFile( "/home/src/projects/project1/tsconfig.json", - JSON.stringify({ + jsonToReadableText({ compilerOptions: { composite: true, typeRoots: ["./typeroot1", "./typeroot2"], @@ -83,7 +86,7 @@ describe("unittests:: tsserver:: libraryResolution", () => { host.runQueuedTimeoutCallbacks(); host.writeFile( "/home/src/projects/project1/tsconfig.json", - JSON.stringify({ + jsonToReadableText({ compilerOptions: { composite: true, typeRoots: ["./typeroot1"], diff --git a/src/testRunner/unittests/tsserver/metadataInResponse.ts b/src/testRunner/unittests/tsserver/metadataInResponse.ts index ff838057a9d4a..83df002ab4a94 100644 --- a/src/testRunner/unittests/tsserver/metadataInResponse.ts +++ b/src/testRunner/unittests/tsserver/metadataInResponse.ts @@ -3,6 +3,9 @@ import { } from "../../../harness/tsserverLogger"; import * as Harness from "../../_namespaces/Harness"; import * as ts from "../../_namespaces/ts"; +import { + jsonToReadableText, +} from "../helpers"; import { baselineTsserverLogs, createSession, @@ -18,7 +21,7 @@ describe("unittests:: tsserver:: with metadataInResponse::", () => { const aTs: File = { path: "/a.ts", content: `class c { prop = "hello"; foo() { return this.prop; } }` }; const tsconfig: File = { path: "/tsconfig.json", - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { plugins: [{ name: "myplugin" }] }, }), }; diff --git a/src/testRunner/unittests/tsserver/moduleResolution.ts b/src/testRunner/unittests/tsserver/moduleResolution.ts index 7397a6ab7bbd9..92430c080577b 100644 --- a/src/testRunner/unittests/tsserver/moduleResolution.ts +++ b/src/testRunner/unittests/tsserver/moduleResolution.ts @@ -5,6 +5,9 @@ import * as ts from "../../_namespaces/ts"; import { dedent, } from "../../_namespaces/Utils"; +import { + jsonToReadableText, +} from "../helpers"; import { libContent, } from "../helpers/contents"; @@ -35,7 +38,7 @@ describe("unittests:: tsserver:: moduleResolution", () => { function setup(packageFileContents: string) { const configFile: File = { path: `/user/username/projects/myproject/src/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { target: "es2016", module: "Node16", @@ -73,12 +76,12 @@ describe("unittests:: tsserver:: moduleResolution", () => { }; } it("package json file is edited", () => { - const { host, session, packageFile, verifyErr } = setup(JSON.stringify({ name: "app", version: "1.0.0" })); + const { host, session, packageFile, verifyErr } = setup(jsonToReadableText({ name: "app", version: "1.0.0" })); session.logger.info("Modify package json file to add type module"); host.writeFile( packageFile.path, - JSON.stringify({ + jsonToReadableText({ name: "app", version: "1.0.0", type: "module", @@ -103,7 +106,7 @@ describe("unittests:: tsserver:: moduleResolution", () => { session.logger.info("Modify package json file to add type module"); host.writeFile( packageFile.path, - JSON.stringify({ + jsonToReadableText({ name: "app", version: "1.0.0", type: "module", @@ -123,14 +126,14 @@ describe("unittests:: tsserver:: moduleResolution", () => { }); it("package json file is edited when package json with type module exists", () => { - const { host, session, packageFile, verifyErr } = setup(JSON.stringify({ + const { host, session, packageFile, verifyErr } = setup(jsonToReadableText({ name: "app", version: "1.0.0", type: "module", })); session.logger.info("Modify package json file to remove type module"); - host.writeFile(packageFile.path, JSON.stringify({ name: "app", version: "1.0.0" })); + host.writeFile(packageFile.path, jsonToReadableText({ name: "app", version: "1.0.0" })); host.runQueuedTimeoutCallbacks(); // Failed lookup updates host.runQueuedTimeoutCallbacks(); // Actual update verifyErr(); @@ -148,7 +151,7 @@ describe("unittests:: tsserver:: moduleResolution", () => { verifyErr(); session.logger.info("Modify package json file to without type module"); - host.writeFile(packageFile.path, JSON.stringify({ name: "app", version: "1.0.0" })); + host.writeFile(packageFile.path, jsonToReadableText({ name: "app", version: "1.0.0" })); host.runQueuedTimeoutCallbacks(); // Failed lookup updates host.runQueuedTimeoutCallbacks(); // Actual update verifyErr(); @@ -280,25 +283,21 @@ describe("unittests:: tsserver:: moduleResolution", () => { baselineTsserverLogs("moduleResolution", `using referenced project${built ? " built" : ""}`, session); } function getPackageJson(packageName: string) { - return JSON.stringify( - { - name: packageName, - version: "1.0.0", - type: "module", - main: "build/index.js", - exports: { - ".": "./build/index.js", - "./package.json": "./package.json", - "./*": ["./build/*/index.js", "./build/*.js"], - }, + return jsonToReadableText({ + name: packageName, + version: "1.0.0", + type: "module", + main: "build/index.js", + exports: { + ".": "./build/index.js", + "./package.json": "./package.json", + "./*": ["./build/*/index.js", "./build/*.js"], }, - undefined, - " ", - ); + }); } function getTsConfig(references?: object[]) { - return JSON.stringify({ + return jsonToReadableText({ compilerOptions: { allowSyntheticDefaultImports: true, baseUrl: "./", diff --git a/src/testRunner/unittests/tsserver/moduleSpecifierCache.ts b/src/testRunner/unittests/tsserver/moduleSpecifierCache.ts index 2cbe1983cd687..3022b193bb006 100644 --- a/src/testRunner/unittests/tsserver/moduleSpecifierCache.ts +++ b/src/testRunner/unittests/tsserver/moduleSpecifierCache.ts @@ -2,6 +2,9 @@ import { createLoggerWithInMemoryLogs, } from "../../../harness/tsserverLogger"; import * as ts from "../../_namespaces/ts"; +import { + jsonToReadableText, +} from "../helpers"; import { baselineTsserverLogs, createSession, @@ -43,7 +46,7 @@ const ambientDeclaration: File = { }; const mobxPackageJson: File = { path: "/node_modules/mobx/package.json", - content: `{ "name": "mobx", "version": "1.0.0" }`, + content: jsonToReadableText({ name: "mobx", version: "1.0.0" }), }; const mobxDts: File = { path: "/node_modules/mobx/index.d.ts", @@ -61,7 +64,7 @@ describe("unittests:: tsserver:: moduleSpecifierCache", () => { const { session, moduleSpecifierCache, triggerCompletions } = setup(); // Completion at an import statement will calculate and cache module specifiers triggerCompletions({ file: cTs.path, line: 1, offset: cTs.content.length + 1 }); - session.logger.info(`mobxCache: ${JSON.stringify(moduleSpecifierCache.get(cTs.path as ts.Path, mobxDts.path as ts.Path, {}, {}), undefined, " ")}`); + session.logger.info(`mobxCache: ${jsonToReadableText(moduleSpecifierCache.get(cTs.path as ts.Path, mobxDts.path as ts.Path, {}, {}))}`); baselineTsserverLogs("moduleSpecifierCache", "caches module specifiers within a file", session); }); @@ -134,7 +137,7 @@ describe("unittests:: tsserver:: moduleSpecifierCache", () => { baselineTsserverLogs("moduleSpecifierCache", "invalidates the cache when user preferences change", session); function getWithPreferences(preferences: ts.UserPreferences) { - session.logger.info(`moduleSpecifierCache for ${JSON.stringify(preferences)} (${bTs.path} -> ${aTs.path}) ${JSON.stringify(moduleSpecifierCache.get(bTs.path as ts.Path, aTs.path as ts.Path, preferences, {}), undefined, " ")}`); + session.logger.info(`moduleSpecifierCache for ${jsonToReadableText(preferences)} (${bTs.path} -> ${aTs.path}) ${jsonToReadableText(moduleSpecifierCache.get(bTs.path as ts.Path, aTs.path as ts.Path, preferences, {}))}`); } }); }); diff --git a/src/testRunner/unittests/tsserver/navTo.ts b/src/testRunner/unittests/tsserver/navTo.ts index 0bae4e26a0ed0..4e6563cc4a0a6 100644 --- a/src/testRunner/unittests/tsserver/navTo.ts +++ b/src/testRunner/unittests/tsserver/navTo.ts @@ -2,6 +2,9 @@ import { createLoggerWithInMemoryLogs, } from "../../../harness/tsserverLogger"; import * as ts from "../../_namespaces/ts"; +import { + jsonToReadableText, +} from "../helpers"; import { baselineTsserverLogs, createSession, @@ -84,7 +87,7 @@ export const ghijkl = a.abcdef;`, it("should de-duplicate symbols when searching all projects", () => { const solutionConfig: File = { path: "/tsconfig.json", - content: JSON.stringify({ + content: jsonToReadableText({ references: [{ path: "./a" }, { path: "./b" }], files: [], }), diff --git a/src/testRunner/unittests/tsserver/packageJsonInfo.ts b/src/testRunner/unittests/tsserver/packageJsonInfo.ts index 0ef2f8c71bf55..a46e10ef9c592 100644 --- a/src/testRunner/unittests/tsserver/packageJsonInfo.ts +++ b/src/testRunner/unittests/tsserver/packageJsonInfo.ts @@ -2,6 +2,9 @@ import { createLoggerWithInMemoryLogs, } from "../../../harness/tsserverLogger"; import * as ts from "../../_namespaces/ts"; +import { + jsonToReadableText, +} from "../helpers"; import { baselineTsserverLogs, createSession, @@ -32,7 +35,7 @@ const packageJsonContent = { }; const packageJson: File = { path: "/package.json", - content: JSON.stringify(packageJsonContent, undefined, 2), + content: jsonToReadableText(packageJsonContent), }; describe("unittests:: tsserver:: packageJsonInfo::", () => { @@ -54,7 +57,7 @@ describe("unittests:: tsserver:: packageJsonInfo::", () => { // Edit package.json host.writeFile( packageJson.path, - JSON.stringify({ + jsonToReadableText({ ...packageJsonContent, dependencies: undefined, }), diff --git a/src/testRunner/unittests/tsserver/plugins.ts b/src/testRunner/unittests/tsserver/plugins.ts index a8c19216b9c05..fce061c612dcb 100644 --- a/src/testRunner/unittests/tsserver/plugins.ts +++ b/src/testRunner/unittests/tsserver/plugins.ts @@ -3,6 +3,9 @@ import { } from "../../../harness/tsserverLogger"; import * as Harness from "../../_namespaces/Harness"; import * as ts from "../../_namespaces/ts"; +import { + jsonToReadableText, +} from "../helpers"; import { baselineTsserverLogs, createSession, @@ -28,7 +31,7 @@ describe("unittests:: tsserver:: plugins:: loading", () => { module: () => ({ create(info: ts.server.PluginCreateInfo) { info.session?.addProtocolHandler(testProtocolCommand, request => { - session.logger.log(`addProtocolHandler: ${JSON.stringify(request, undefined, " ")}`); + session.logger.log(`addProtocolHandler: ${jsonToReadableText(request)}`); return { response: testProtocolCommandResponse, }; @@ -49,7 +52,7 @@ describe("unittests:: tsserver:: plugins:: loading", () => { const aTs: File = { path: "/a.ts", content: `class c { prop = "hello"; foo() { return this.prop; } }` }; const tsconfig: File = { path: "/tsconfig.json", - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { plugins: [ ...[...expectedToLoad, ...notToLoad].map(name => ({ name })), @@ -81,7 +84,7 @@ describe("unittests:: tsserver:: plugins:: loading", () => { const aTs: File = { path: "/a.ts", content: `class c { prop = "hello"; foo() { return this.prop; } }` }; const tsconfig: File = { path: "/tsconfig.json", - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { plugins: [ { name: pluginName }, @@ -106,7 +109,7 @@ describe("unittests:: tsserver:: plugins:: loading", () => { const aTs: File = { path: `/user/username/projects/myproject/a.ts`, content: `export const x = 10;` }; const tsconfig: File = { path: `/user/username/projects/myproject/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { plugins: [{ name: "some-plugin" }], }, @@ -134,18 +137,18 @@ describe("unittests:: tsserver:: plugins:: loading", () => { }; const session = createSession(host, { logger: createLoggerWithInMemoryLogs(host) }); openFilesForSession([aTs], session); - session.logger.log(`ExternalFiles:: ${JSON.stringify(session.getProjectService().configuredProjects.get(tsconfig.path)!.getExternalFiles())}`); + session.logger.log(`ExternalFiles:: ${jsonToReadableText(session.getProjectService().configuredProjects.get(tsconfig.path)!.getExternalFiles())}`); host.writeFile( tsconfig.path, - JSON.stringify({ + jsonToReadableText({ compilerOptions: { plugins: [{ name: "some-other-plugin" }], }, }), ); host.runQueuedTimeoutCallbacks(); - session.logger.log(`ExternalFiles:: ${JSON.stringify(session.getProjectService().configuredProjects.get(tsconfig.path)!.getExternalFiles())}`); + session.logger.log(`ExternalFiles:: ${jsonToReadableText(session.getProjectService().configuredProjects.get(tsconfig.path)!.getExternalFiles())}`); baselineTsserverLogs("plugins", "gets external files with config file reload", session); }); @@ -167,7 +170,7 @@ describe("unittests:: tsserver:: plugins:: overriding getSupportedCodeFixes", () }; const config: File = { path: "/tsconfig.json", - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { plugins: [{ name: "myplugin" }] }, }), }; @@ -237,14 +240,10 @@ describe("unittests:: tsserver:: plugins:: supportedExtensions::", () => { }; const config: File = { path: "/user/username/projects/myproject/tsconfig.json", - content: JSON.stringify( - { - compilerOptions: { composite: true }, - include: ["*.ts", "*.vue"], - }, - undefined, - " ", - ), + content: jsonToReadableText({ + compilerOptions: { composite: true }, + include: ["*.ts", "*.vue"], + }), }; const host = createServerHost([aTs, dTs, bVue, config, libFile]); const externalFiles = new Map(); diff --git a/src/testRunner/unittests/tsserver/projectErrors.ts b/src/testRunner/unittests/tsserver/projectErrors.ts index 9d80355308424..0fea7f1d5a6ad 100644 --- a/src/testRunner/unittests/tsserver/projectErrors.ts +++ b/src/testRunner/unittests/tsserver/projectErrors.ts @@ -2,6 +2,9 @@ import { createLoggerWithInMemoryLogs, } from "../../../harness/tsserverLogger"; import * as ts from "../../_namespaces/ts"; +import { + jsonToReadableText, +} from "../helpers"; import { appendAllScriptInfos, baselineTsserverLogs, @@ -76,7 +79,7 @@ describe("unittests:: tsserver:: projectErrors::", () => { }; const config = { path: "/a/b/tsconfig.json", - content: JSON.stringify({ files: [file1, file2].map(f => ts.getBaseFileName(f.path)) }), + content: jsonToReadableText({ files: [file1, file2].map(f => ts.getBaseFileName(f.path)) }), }; const host = createServerHost([file1, config, libFile]); const session = createSession(host, { logger: createLoggerWithInMemoryLogs(host) }); @@ -104,7 +107,7 @@ describe("unittests:: tsserver:: projectErrors::", () => { }; const correctConfig = { path: "/a/b/tsconfig.json", - content: JSON.stringify({ files: [file1, file2].map(f => ts.getBaseFileName(f.path)) }), + content: jsonToReadableText({ files: [file1, file2].map(f => ts.getBaseFileName(f.path)) }), }; const corruptedConfig = { path: correctConfig.path, @@ -156,7 +159,7 @@ describe("unittests:: tsserver:: projectErrors::", () => { }; const correctConfig = { path: "/a/b/tsconfig.json", - content: JSON.stringify({ files: [file1, file2].map(f => ts.getBaseFileName(f.path)) }), + content: jsonToReadableText({ files: [file1, file2].map(f => ts.getBaseFileName(f.path)) }), }; const corruptedConfig = { path: correctConfig.path, @@ -270,7 +273,7 @@ describe("unittests:: tsserver:: projectErrors:: are reported as appropriate", ( }; const configFile: File = { path: `${projectDir}/tsconfig.json`, - content: JSON.stringify({ compilerOptions: { module: "none", targer: "es5" }, exclude: ["node_modules"] }), + content: jsonToReadableText({ compilerOptions: { module: "none", targer: "es5" }, exclude: ["node_modules"] }), }; const host = createServerHost([app, foo, configFile]); const session = createSession(host, { canUseEvents: true, logger: createLoggerWithInMemoryLogs(host) }); @@ -343,7 +346,7 @@ function foo() { }; const config: File = { path: `${projectRootPath}/tsconfig.json`, - content: JSON.stringify({ include: ["src"] }), + content: jsonToReadableText({ include: ["src"] }), }; const plugin: File = { path: `${projectRootPath}/node_modules/@custom/plugin/index.d.ts`, @@ -708,7 +711,7 @@ console.log(blabla);`, }; const tsconfig: File = { path: `/user/username/projects/myproject/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { resolveJsonModule: true, composite: true, diff --git a/src/testRunner/unittests/tsserver/projectReferenceCompileOnSave.ts b/src/testRunner/unittests/tsserver/projectReferenceCompileOnSave.ts index 72d4270b0451f..4ac135e35681f 100644 --- a/src/testRunner/unittests/tsserver/projectReferenceCompileOnSave.ts +++ b/src/testRunner/unittests/tsserver/projectReferenceCompileOnSave.ts @@ -2,6 +2,9 @@ import { createLoggerWithInMemoryLogs, } from "../../../harness/tsserverLogger"; import * as ts from "../../_namespaces/ts"; +import { + jsonToReadableText, +} from "../helpers"; import { ensureErrorFreeBuild, } from "../helpers/solutionBuilder"; @@ -28,7 +31,7 @@ export function fn2() { } }; const dependencyConfig: File = { path: `${dependecyLocation}/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { composite: true, declarationDir: "../decls" }, compileOnSave: true, }), @@ -45,7 +48,7 @@ fn2(); }; const usageConfig: File = { path: `${usageLocation}/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compileOnSave: true, references: [{ path: "../dependency" }], }), @@ -1681,7 +1684,7 @@ describe("unittests:: tsserver:: with project references and compile on save wit it("compile on save emits same output as project build", () => { const tsbaseJson: File = { path: `/user/username/projects/myproject/tsbase.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compileOnSave: true, compilerOptions: { module: "none", @@ -1692,7 +1695,7 @@ describe("unittests:: tsserver:: with project references and compile on save wit const buttonClass = `/user/username/projects/myproject/buttonClass`; const buttonConfig: File = { path: `${buttonClass}/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ extends: "../tsbase.json", compilerOptions: { outFile: "Source.js", @@ -1713,7 +1716,7 @@ describe("unittests:: tsserver:: with project references and compile on save wit const siblingClass = `/user/username/projects/myproject/SiblingClass`; const siblingConfig: File = { path: `${siblingClass}/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ extends: "../tsbase.json", references: [{ path: "../buttonClass/", diff --git a/src/testRunner/unittests/tsserver/projectReferenceErrors.ts b/src/testRunner/unittests/tsserver/projectReferenceErrors.ts index 088eaeae560cd..584ea277b539d 100644 --- a/src/testRunner/unittests/tsserver/projectReferenceErrors.ts +++ b/src/testRunner/unittests/tsserver/projectReferenceErrors.ts @@ -1,3 +1,6 @@ +import { + jsonToReadableText, +} from "../helpers"; import { GetErrForProjectDiagnostics, verifyGetErrScenario, @@ -80,7 +83,7 @@ export let x: string = 10;`, }; const dependencyConfig: File = { path: `${dependecyLocation}/tsconfig.json`, - content: JSON.stringify({ compilerOptions: { composite: true, declarationDir: "../decls" } }), + content: jsonToReadableText({ compilerOptions: { composite: true, declarationDir: "../decls" } }), }; const usageTs: File = { path: `${usageLocation}/usage.ts`, @@ -96,7 +99,7 @@ fnErr(); }; const usageConfig: File = { path: `${usageLocation}/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { composite: true }, references: [{ path: "../dependency" }], }), @@ -116,7 +119,7 @@ let x: string = 10;`, }; const dependencyConfig: File = { path: `${dependecyLocation}/tsconfig.json`, - content: JSON.stringify({ compilerOptions: { composite: true, outFile: "../dependency.js" } }), + content: jsonToReadableText({ compilerOptions: { composite: true, outFile: "../dependency.js" } }), }; const usageTs: File = { path: `${usageLocation}/usage.ts`, @@ -127,7 +130,7 @@ fnErr(); }; const usageConfig: File = { path: `${usageLocation}/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { composite: true, outFile: "../usage.js" }, references: [{ path: "../dependency" }], }), diff --git a/src/testRunner/unittests/tsserver/projectReferences.ts b/src/testRunner/unittests/tsserver/projectReferences.ts index 21ceaa9f5b148..6f904e0424737 100644 --- a/src/testRunner/unittests/tsserver/projectReferences.ts +++ b/src/testRunner/unittests/tsserver/projectReferences.ts @@ -2,6 +2,12 @@ import { createLoggerWithInMemoryLogs, } from "../../../harness/tsserverLogger"; import * as ts from "../../_namespaces/ts"; +import { + dedent, +} from "../../_namespaces/Utils"; +import { + jsonToReadableText, +} from "../helpers"; import { solutionBuildWithBaseline, } from "../helpers/solutionBuilder"; @@ -18,36 +24,110 @@ import { import { createServerHost, File, - getTsBuildProjectFile, - getTsBuildProjectFilePath, libFile, SymLink, } from "../helpers/virtualFileSystemWithWatch"; describe("unittests:: tsserver:: with project references and tsbuild", () => { describe("with container project", () => { - function getProjectFiles(project: string): [File, File] { - return [ - getTsBuildProjectFile(project, "tsconfig.json"), - getTsBuildProjectFile(project, "index.ts"), - ]; + function setup(tempFile?: File) { + const containerLibConfig: File = { + path: "/user/username/projects/container/lib/tsconfig.json", + content: jsonToReadableText({ + compilerOptions: { + outFile: "../built/local/lib.js", + composite: true, + declarationMap: true, + }, + references: [], + files: [ + "index.ts", + ], + }), + }; + const containerLibIndex: File = { + path: "/user/username/projects/container/lib/index.ts", + content: dedent` + namespace container { + export const myConst = 30; + } + `, + }; + const containerExecConfig: File = { + path: "/user/username/projects/container/exec/tsconfig.json", + content: jsonToReadableText({ + compilerOptions: { + ignoreDeprecations: "5.0", + outFile: "../built/local/exec.js", + }, + files: [ + "index.ts", + ], + references: [ + { path: "../lib", prepend: true }, + ], + }), + }; + const containerExecIndex: File = { + path: "/user/username/projects/container/exec/index.ts", + content: dedent` + namespace container { + export function getMyConst() { + return myConst; + } + } + `, + }; + const containerCompositeExecConfig: File = { + path: "/user/username/projects/container/compositeExec/tsconfig.json", + content: jsonToReadableText({ + compilerOptions: { + ignoreDeprecations: "5.0", + outFile: "../built/local/compositeExec.js", + composite: true, + declarationMap: true, + }, + files: [ + "index.ts", + ], + references: [ + { path: "../lib", prepend: true }, + ], + }), + }; + const containerCompositeExecIndex: File = { + path: "/user/username/projects/container/compositeExec/index.ts", + content: dedent` + namespace container { + export function getMyConst() { + return myConst; + } + } + `, + }; + const containerConfig: File = { + path: "/user/username/projects/container/tsconfig.json", + content: jsonToReadableText({ + files: [], + include: [], + references: [ + { path: "./exec" }, + { path: "./compositeExec" }, + ], + }), + }; + const files = [libFile, containerLibConfig, containerLibIndex, containerExecConfig, containerExecIndex, containerCompositeExecConfig, containerCompositeExecIndex, containerConfig]; + if (tempFile) files.push(tempFile); + const host = createHostWithSolutionBuild(files, [containerConfig.path]); + const session = createSession(host, { logger: createLoggerWithInMemoryLogs(host) }); + return { files, session, containerConfig, containerCompositeExecIndex }; } - const project = "container"; - const containerLib = getProjectFiles("container/lib"); - const containerExec = getProjectFiles("container/exec"); - const containerCompositeExec = getProjectFiles("container/compositeExec"); - const containerConfig = getTsBuildProjectFile(project, "tsconfig.json"); - const files = [libFile, ...containerLib, ...containerExec, ...containerCompositeExec, containerConfig]; - it("does not error on container only project", () => { - const host = createHostWithSolutionBuild(files, [containerConfig.path]); - - // Open external project for the folder - const session = createSession(host, { logger: createLoggerWithInMemoryLogs(host) }); + const { files, session, containerConfig } = setup(); const service = session.getProjectService(); service.openExternalProjects([{ - projectFileName: getTsBuildProjectFilePath(project, project), + projectFileName: "/user/username/projects/container/container", rootFiles: files.map(f => ({ fileName: f.path })), options: {}, }]); @@ -74,13 +154,12 @@ describe("unittests:: tsserver:: with project references and tsbuild", () => { }); it("can successfully find references with --out options", () => { - const host = createHostWithSolutionBuild(files, [containerConfig.path]); - const session = createSession(host, { logger: createLoggerWithInMemoryLogs(host) }); - openFilesForSession([containerCompositeExec[1]], session); - const myConstStart = protocolLocationFromSubstring(containerCompositeExec[1].content, "myConst"); + const { session, containerCompositeExecIndex } = setup(); + openFilesForSession([containerCompositeExecIndex], session); + const myConstStart = protocolLocationFromSubstring(containerCompositeExecIndex.content, "myConst"); session.executeCommandSeq({ command: ts.server.protocol.CommandTypes.Rename, - arguments: { file: containerCompositeExec[1].path, ...myConstStart }, + arguments: { file: containerCompositeExecIndex.path, ...myConstStart }, }); baselineTsserverLogs("projectReferences", `can successfully find references with out option`, session); @@ -91,20 +170,19 @@ describe("unittests:: tsserver:: with project references and tsbuild", () => { path: `/user/username/projects/temp/temp.ts`, content: "let x = 10", }; - const host = createHostWithSolutionBuild(files.concat([tempFile]), [containerConfig.path]); - const session = createSession(host, { logger: createLoggerWithInMemoryLogs(host) }); - openFilesForSession([containerCompositeExec[1]], session); + const { session, containerCompositeExecIndex } = setup(tempFile); + openFilesForSession([containerCompositeExecIndex], session); const service = session.getProjectService(); // Open temp file and verify all projects alive openFilesForSession([tempFile], session); // Ref projects are loaded after as part of this command - const locationOfMyConst = protocolLocationFromSubstring(containerCompositeExec[1].content, "myConst"); + const locationOfMyConst = protocolLocationFromSubstring(containerCompositeExecIndex.content, "myConst"); session.executeCommandSeq({ command: ts.server.protocol.CommandTypes.Rename, arguments: { - file: containerCompositeExec[1].path, + file: containerCompositeExecIndex.path, ...locationOfMyConst, }, }); @@ -114,7 +192,7 @@ describe("unittests:: tsserver:: with project references and tsbuild", () => { openFilesForSession([tempFile], session); // Close all files and open temp file, only inferred project should be alive - service.closeClientFile(containerCompositeExec[1].path); + service.closeClientFile(containerCompositeExecIndex.path); service.closeClientFile(tempFile.path); openFilesForSession([tempFile], session); baselineTsserverLogs("projectReferences", `ancestor and project ref management`, session); @@ -126,7 +204,7 @@ describe("unittests:: tsserver:: with project references and tsbuild", () => { const projectLocation = `/user/username/projects/project`; const commonConfig: File = { path: `${projectLocation}/src/common/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { composite: true, declarationMap: true, @@ -152,7 +230,7 @@ function testEvaluateKeyboardEvent() { }; const srcConfig: File = { path: `${projectLocation}/src/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { composite: true, declarationMap: true, @@ -204,7 +282,7 @@ function foo() { it("reusing d.ts files from composite and non composite projects", () => { const configA: File = { path: `/user/username/projects/myproject/compositea/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { composite: true, outDir: "../dist/", @@ -236,7 +314,7 @@ function foo() { }; const configC: File = { path: `/user/username/projects/myproject/compositec/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { composite: true, outDir: "../dist/", @@ -334,7 +412,7 @@ function foo() { function config(packageName: string, extraOptions: ts.CompilerOptions, references?: string[]): File { return { path: `/user/username/projects/myproject/packages/${packageName}/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { outDir: "lib", rootDir: "src", @@ -358,7 +436,7 @@ function foo() { verifySymlinkScenario(`when packageJson has types field and has index.ts${scope ? " with scoped package" : ""}`, () => ({ bPackageJson: { path: `/user/username/projects/myproject/packages/B/package.json`, - content: JSON.stringify({ + content: jsonToReadableText({ main: "lib/index.js", types: "lib/index.d.ts", }), @@ -414,7 +492,7 @@ bar(); it("when the referenced projects have allowJs and emitDeclarationOnly", () => { const compositeConfig: File = { path: `/user/username/projects/myproject/packages/emit-composite/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { composite: true, allowJs: true, @@ -427,7 +505,7 @@ bar(); }; const compositePackageJson: File = { path: `/user/username/projects/myproject/packages/emit-composite/package.json`, - content: JSON.stringify({ + content: jsonToReadableText({ name: "emit-composite", version: "1.0.0", main: "src/index.js", @@ -454,7 +532,7 @@ module.exports = { }; const consumerConfig: File = { path: `/user/username/projects/myproject/packages/consumer/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ include: ["src"], references: [{ path: "../emit-composite" }], }), @@ -480,7 +558,7 @@ testCompositeFunction('why hello there', 42);`, const solutionLocation = "/user/username/projects/solution"; const solution: File = { path: `${solutionLocation}/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ files: [], include: [], references: [ @@ -491,7 +569,7 @@ testCompositeFunction('why hello there', 42);`, }; const compilerConfig: File = { path: `${solutionLocation}/compiler/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { composite: true, module: "none", @@ -520,7 +598,7 @@ testCompositeFunction('why hello there', 42);`, }; const servicesConfig: File = { path: `${solutionLocation}/services/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { composite: true, }, @@ -563,7 +641,7 @@ testCompositeFunction('why hello there', 42);`, const solutionLocation = "/user/username/projects/solution"; const solutionConfig: File = { path: `${solutionLocation}/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ files: [], include: [], references: [ @@ -576,7 +654,7 @@ testCompositeFunction('why hello there', 42);`, }; const aConfig: File = { path: `${solutionLocation}/a/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { composite: true, module: "none", @@ -594,7 +672,7 @@ testCompositeFunction('why hello there', 42);`, const bConfig: File = { path: `${solutionLocation}/b/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { composite: true, }, @@ -616,7 +694,7 @@ testCompositeFunction('why hello there', 42);`, const cConfig: File = { path: `${solutionLocation}/c/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { composite: true, }, @@ -638,7 +716,7 @@ testCompositeFunction('why hello there', 42);`, const dConfig: File = { path: `${solutionLocation}/d/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { composite: true, }, @@ -685,7 +763,7 @@ testCompositeFunction('why hello there', 42);`, const solutionLocation = "/user/username/projects/solution"; const solution: File = { path: `${solutionLocation}/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ files: [], references: [ { path: "./api" }, @@ -695,7 +773,7 @@ testCompositeFunction('why hello there', 42);`, }; const apiConfig: File = { path: `${solutionLocation}/api/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { composite: true, outDir: "dist", @@ -720,7 +798,7 @@ ${usage}`, }; const sharedConfig: File = { path: `${solutionLocation}/shared/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { composite: true, outDir: "dist", @@ -790,7 +868,7 @@ export const foo = local;`, const solutionLocation = "/user/username/projects/solution"; const solution: File = { path: `${solutionLocation}/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ files: [], include: [], references: [ @@ -801,7 +879,7 @@ export const foo = local;`, }; const compilerConfig: File = { path: `${solutionLocation}/compiler/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { composite: true, module: "none", @@ -831,7 +909,7 @@ export const foo = local;`, }; const servicesConfig: File = { path: `${solutionLocation}/services/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { composite: true, }, @@ -888,7 +966,14 @@ export { foo }; }; const mainDtsMap: File = { path: `/user/username/projects/myproject/target/src/main.d.ts.map`, - content: `{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../src/main.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAC,GAAG,EAAC,CAAC"}`, + content: jsonToReadableText({ + version: 3, + file: "main.d.ts", + sourceRoot: "", + sources: ["../../src/main.ts"], + names: [], + mappings: "AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAC,GAAG,EAAC,CAAC", + }), }; const helperDts: File = { path: `/user/username/projects/myproject/target/src/helpers/functions.d.ts`, @@ -897,11 +982,18 @@ export { foo }; }; const helperDtsMap: File = { path: `/user/username/projects/myproject/target/src/helpers/functions.d.ts.map`, - content: `{"version":3,"file":"functions.d.ts","sourceRoot":"","sources":["../../../src/helpers/functions.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,GAAG,IAAI,CAAC"}`, + content: jsonToReadableText({ + version: 3, + file: "functions.d.ts", + sourceRoot: "", + sources: ["../../../src/helpers/functions.ts"], + names: [], + mappings: "AAAA,eAAO,MAAM,GAAG,IAAI,CAAC", + }), }; const tsconfigIndirect3: File = { path: `/user/username/projects/myproject/indirect3/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { baseUrl: "../target/src/", }, @@ -919,7 +1011,7 @@ export function bar() {}`, function setup({ solutionFiles, solutionOptions, configRefs, additionalFiles }: Setup) { const tsconfigSrc: File = { path: tsconfigSrcPath, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { composite: true, outDir: "./target/", @@ -930,7 +1022,7 @@ export function bar() {}`, }; const tsconfig: File = { path: tsconfigPath, - content: JSON.stringify({ + content: jsonToReadableText({ ...(solutionOptions ? { compilerOptions: solutionOptions } : {}), references: configRefs.map(path => ({ path })), files: solutionFiles || [], @@ -1010,7 +1102,7 @@ export function bar() {}`, function getIndirectProject(postfix: string, optionsToExtend?: ts.CompilerOptions) { const tsconfigIndirect: File = { path: `/user/username/projects/myproject/tsconfig-indirect${postfix}.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { composite: true, outDir: "./target/", @@ -1198,7 +1290,7 @@ bar;`, function setup(extendOptionsProject2?: ts.CompilerOptions) { const config1: File = { path: `/user/username/projects/myproject/projects/project1/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { module: "none", composite: true, @@ -1216,7 +1308,7 @@ bar;`, }; const config2: File = { path: `/user/username/projects/myproject/projects/project2/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { module: "none", composite: true, @@ -1326,7 +1418,7 @@ bar;`, function verifyAutoImport(built: boolean, disableSourceOfProjectReferenceRedirect?: boolean) { const solnConfig: File = { path: `/user/username/projects/myproject/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ files: [], references: [ { path: "shared/src/library" }, @@ -1336,7 +1428,7 @@ bar;`, }; const sharedConfig: File = { path: `/user/username/projects/myproject/shared/src/library/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { composite: true, outDir: "../../bld/library", @@ -1349,7 +1441,7 @@ bar;`, }; const sharedPackage: File = { path: `/user/username/projects/myproject/shared/package.json`, - content: JSON.stringify({ + content: jsonToReadableText({ name: "shared", version: "1.0.0", main: "bld/library/index.js", @@ -1358,7 +1450,7 @@ bar;`, }; const appConfig: File = { path: `/user/username/projects/myproject/app/src/program/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { composite: true, outDir: "../../bld/program", @@ -1422,7 +1514,7 @@ bar;`, }; const config: File = { path: `/user/username/projects/myproject/${packageName}/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { composite: true, ...optionsToExtend || {} }, references: references?.map(path => ({ path: `../${path}` })), }), @@ -1490,13 +1582,13 @@ const b: B = new B();`, const configB: File = { path: `/user/username/projects/myproject/b/tsconfig.json`, - content: `{ -"compilerOptions": { - "declarationMap": true, - "outDir": "lib", - "composite": true -} -}`, + content: jsonToReadableText({ + compilerOptions: { + declarationMap: true, + outDir: "lib", + composite: true, + }, + }), }; const indexB: File = { @@ -1523,7 +1615,14 @@ const b: B = new B();`, const dtsMapB: File = { path: `/user/username/projects/myproject/b/lib/index.d.ts.map`, - content: `{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,qBAAa,CAAC;IACV,CAAC;CACJ"}`, + content: jsonToReadableText({ + version: 3, + file: "index.d.ts", + sourceRoot: "", + sources: ["../index.ts"], + names: [], + mappings: "AAAA,qBAAa,CAAC;IACV,CAAC;CACJ", + }), }; function baselineDisableReferencedProjectLoad( @@ -1546,10 +1645,10 @@ const b: B = new B();`, it(subScenario, () => { const configA: File = { path: `/user/username/projects/myproject/a/tsconfig.json`, - content: `{ - "compilerOptions": ${JSON.stringify(compilerOptions)}, - "references": [{ "path": "../b" }] - }`, + content: jsonToReadableText({ + compilerOptions, + references: [{ path: "../b" }], + }), }; const host = createServerHost([configA, indexA, configB, indexB, helperB, dtsB, ...(dtsMapPresent ? [dtsMapB] : [])]); diff --git a/src/testRunner/unittests/tsserver/projectReferencesSourcemap.ts b/src/testRunner/unittests/tsserver/projectReferencesSourcemap.ts index c8db545e77248..cd39268fc47fa 100644 --- a/src/testRunner/unittests/tsserver/projectReferencesSourcemap.ts +++ b/src/testRunner/unittests/tsserver/projectReferencesSourcemap.ts @@ -2,6 +2,9 @@ import { createLoggerWithInMemoryLogs, } from "../../../harness/tsserverLogger"; import * as ts from "../../_namespaces/ts"; +import { + jsonToReadableText, +} from "../helpers"; import { baselineTsserverLogs, closeFilesForSession, @@ -33,7 +36,7 @@ export function fn5() { } }; const dependencyConfig: File = { path: `${dependecyLocation}/tsconfig.json`, - content: JSON.stringify({ compilerOptions: { composite: true, declarationMap: true, declarationDir: "../decls" } }), + content: jsonToReadableText({ compilerOptions: { composite: true, declarationMap: true, declarationDir: "../decls" } }), }; const mainTs: File = { @@ -55,7 +58,7 @@ fn5(); }; const mainConfig: File = { path: `${mainLocation}/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { composite: true, declarationMap: true }, references: [{ path: "../dependency" }], }), @@ -90,7 +93,14 @@ fn5(); function changeDtsMapFile(host: TestServerHost) { host.writeFile( dtsMapLocation, - `{"version":3,"file":"FnS.d.ts","sourceRoot":"","sources":["../dependency/FnS.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,eAAO,MAAM,CAAC,KAAK,CAAC"}`, + jsonToReadableText({ + version: 3, + file: "FnS.d.ts", + sourceRoot: "", + sources: ["../dependency/FnS.ts"], + names: [], + mappings: "AAAA,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,eAAO,MAAM,CAAC,KAAK,CAAC", + }), ); } @@ -158,7 +168,7 @@ fn5(); for (let fn = 1; fn <= 5; fn++) { const fnAction = action(fn); session.executeCommandSeq(fnAction); - const debugInfo = `${JSON.stringify(fnAction)}:: ${fn}`; + const debugInfo = `${jsonToReadableText(fnAction)}:: ${fn}`; const dtsInfo = session.getProjectService().getScriptInfoForPath(dtsPath); const dtsMapInfo = session.getProjectService().getScriptInfoForPath(dtsMapPath); @@ -233,7 +243,7 @@ fn5(); // Erase project reference host.writeFile( mainConfig.path, - JSON.stringify({ + jsonToReadableText({ compilerOptions: { composite: true, declarationMap: true }, }), ); @@ -254,7 +264,7 @@ fn5(); // Erase project reference host.writeFile( mainConfig.path, - JSON.stringify({ + jsonToReadableText({ compilerOptions: { composite: true, declarationMap: true, diff --git a/src/testRunner/unittests/tsserver/projects.ts b/src/testRunner/unittests/tsserver/projects.ts index 61278b5f500a5..e65c2c6abdfc9 100644 --- a/src/testRunner/unittests/tsserver/projects.ts +++ b/src/testRunner/unittests/tsserver/projects.ts @@ -2,6 +2,9 @@ import { createLoggerWithInMemoryLogs, } from "../../../harness/tsserverLogger"; import * as ts from "../../_namespaces/ts"; +import { + jsonToReadableText, +} from "../helpers"; import { commonFile1, commonFile2, @@ -143,7 +146,7 @@ describe("unittests:: tsserver:: projects::", () => { }; const config1 = { path: "/a/b/tsconfig.json", - content: JSON.stringify( + content: jsonToReadableText( { compilerOptions: {}, files: ["f1.ts"], @@ -170,7 +173,7 @@ describe("unittests:: tsserver:: projects::", () => { }; const config1 = { path: "/a/b/tsconfig.json", - content: JSON.stringify( + content: jsonToReadableText( { compilerOptions: {}, files: ["f1.ts"], @@ -191,7 +194,7 @@ describe("unittests:: tsserver:: projects::", () => { }; const config1 = { path: "/a/b/tsconfig.json", - content: JSON.stringify( + content: jsonToReadableText( { compilerOptions: {}, files: ["f1.ts"], @@ -328,7 +331,7 @@ describe("unittests:: tsserver:: projects::", () => { const projectService = createProjectService(host, { logger: createLoggerWithInMemoryLogs(host) }); try { projectService.openExternalProject({ projectFileName: "project", options: {}, rootFiles: toExternalFiles([file1.path, office.path]) }); - projectService.logger.log(`TypeAcquisition:: ${JSON.stringify(projectService.externalProjects[0].getTypeAcquisition(), undefined, " ")}`); + projectService.logger.log(`TypeAcquisition:: ${jsonToReadableText(projectService.externalProjects[0].getTypeAcquisition())}`); } finally { projectService.resetSafeList(); @@ -357,7 +360,7 @@ describe("unittests:: tsserver:: projects::", () => { installPackage: ts.notImplemented, enqueueInstallTypingsRequest: (proj, typeAcquisition, unresolvedImports) => { assert.isUndefined(request); - request = JSON.stringify(ts.server.createInstallTypingsRequest(proj, typeAcquisition, unresolvedImports || ts.server.emptyArray, cachePath)); + request = jsonToReadableText(ts.server.createInstallTypingsRequest(proj, typeAcquisition, unresolvedImports || ts.server.emptyArray, cachePath)); }, attach: ts.noop, onProjectClosed: ts.noop, @@ -369,7 +372,7 @@ describe("unittests:: tsserver:: projects::", () => { projectService.openExternalProject({ projectFileName: projectName, options: {}, rootFiles: toExternalFiles([file1.path, constructorFile.path, bliss.path]) }); assert.equal( request, - JSON.stringify({ + jsonToReadableText({ projectName, fileNames: [libFile.path, file1.path, constructorFile.path, bliss.path], compilerOptions: { allowNonTsExtensions: true, noEmitForJsFiles: true }, @@ -430,7 +433,7 @@ describe("unittests:: tsserver:: projects::", () => { const projectService = createProjectService(host, { logger: createLoggerWithInMemoryLogs(host) }); try { projectService.openExternalProject({ projectFileName: "project", options: {}, rootFiles: toExternalFiles(files.map(f => f.path)) }); - projectService.logger.log(`TypeAcquisition:: ${JSON.stringify(projectService.externalProjects[0].getTypeAcquisition(), undefined, " ")}`); + projectService.logger.log(`TypeAcquisition:: ${jsonToReadableText(projectService.externalProjects[0].getTypeAcquisition())}`); } finally { projectService.resetSafeList(); @@ -550,7 +553,7 @@ describe("unittests:: tsserver:: projects::", () => { }; const config = { path: "/a/b/tsconfig.json", - content: JSON.stringify({ compilerOptions: {} }), + content: jsonToReadableText({ compilerOptions: {} }), }; const host = createServerHost([file1, file2, config]); const projectService = createProjectService(host, { logger: createLoggerWithInMemoryLogs(host) }); @@ -579,7 +582,7 @@ describe("unittests:: tsserver:: projects::", () => { }; const config = { path: "/a/tsconfig.json", - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { allowJs: true }, }), }; @@ -614,7 +617,7 @@ describe("unittests:: tsserver:: projects::", () => { }; const config = { path: "/a/b/tsconfig.json", - content: JSON.stringify({ compilerOptions: { allowJs: true } }), + content: jsonToReadableText({ compilerOptions: { allowJs: true } }), }; const host = createServerHost([file1, file2, config]); const session = createSession(host, { logger: createLoggerWithInMemoryLogs(host) }); @@ -684,7 +687,7 @@ describe("unittests:: tsserver:: projects::", () => { }; const config1 = { path: "/a/b/tsconfig.json", - content: JSON.stringify({ compilerOptions: { allowJs: true } }), + content: jsonToReadableText({ compilerOptions: { allowJs: true } }), }; const logger = createLoggerWithInMemoryLogs(/*host*/ undefined!); // Special @@ -696,14 +699,14 @@ describe("unittests:: tsserver:: projects::", () => { // #2. Ensure no errors when allowJs is false const config2 = { path: "/a/b/tsconfig.json", - content: JSON.stringify({ compilerOptions: { allowJs: false } }), + content: jsonToReadableText({ compilerOptions: { allowJs: false } }), }; verfiy(config2, createServerHost([file1, file2, config2, libFile], { executingFilePath: ts.combinePaths(ts.getDirectoryPath(libFile.path), "tsc.js") })); // #3. Ensure no errors when compiler options aren't specified const config3 = { path: "/a/b/tsconfig.json", - content: JSON.stringify({}), + content: jsonToReadableText({}), }; verfiy(config3, createServerHost([file1, file2, config3, libFile], { executingFilePath: ts.combinePaths(ts.getDirectoryPath(libFile.path), "tsc.js") })); @@ -711,7 +714,7 @@ describe("unittests:: tsserver:: projects::", () => { // #4. Ensure no errors when files are explicitly specified in tsconfig const config4 = { path: "/a/b/tsconfig.json", - content: JSON.stringify({ compilerOptions: { allowJs: true }, files: [file1.path, file2.path] }), + content: jsonToReadableText({ compilerOptions: { allowJs: true }, files: [file1.path, file2.path] }), }; verfiy(config4, createServerHost([file1, file2, config4, libFile], { executingFilePath: ts.combinePaths(ts.getDirectoryPath(libFile.path), "tsc.js") })); @@ -719,7 +722,7 @@ describe("unittests:: tsserver:: projects::", () => { // #4. Ensure no errors when files are explicitly excluded in tsconfig const config5 = { path: "/a/b/tsconfig.json", - content: JSON.stringify({ compilerOptions: { allowJs: true }, exclude: [file2.path] }), + content: jsonToReadableText({ compilerOptions: { allowJs: true }, exclude: [file2.path] }), }; const session = verfiy(config5, createServerHost([file1, file2, config5, libFile], { executingFilePath: ts.combinePaths(ts.getDirectoryPath(libFile.path), "tsc.js") })); @@ -889,7 +892,7 @@ describe("unittests:: tsserver:: projects::", () => { }; const config = { path: "/a/b/tsconfig.json", - content: JSON.stringify({ compilerOptions: {} }), + content: jsonToReadableText({ compilerOptions: {} }), }; const host = createServerHost([f1, libFile, config]); const session = createSession(host, { logger: createLoggerWithInMemoryLogs(host) }); @@ -918,7 +921,7 @@ describe("unittests:: tsserver:: projects::", () => { it("Properly handle Windows-style outDir", () => { const configFile: File = { path: "C:\\a\\tsconfig.json", - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { outDir: `C:\\a\\b`, }, @@ -1112,7 +1115,7 @@ describe("unittests:: tsserver:: projects::", () => { path: `/user/username/projects/myproject/src/file2.ts`, content: "export let y = 10;", }; - const configContent1 = JSON.stringify({ + const configContent1 = jsonToReadableText({ files: ["src/file1.ts", "src/file2.ts"], }); const config: File = { @@ -1124,7 +1127,7 @@ describe("unittests:: tsserver:: projects::", () => { const service = createProjectService(host, { logger: createLoggerWithInMemoryLogs(host) }); service.openClientFile(file1.path); - const configContent2 = JSON.stringify({ + const configContent2 = jsonToReadableText({ files: ["src/file1.ts"], }); config.content = configContent2; @@ -1281,7 +1284,7 @@ describe("unittests:: tsserver:: projects::", () => { }; const config: File = { path: `/user/username/projects/myproject/tsconfig.json`, - content: JSON.stringify({ extends: "./tsconfig_base.json" }), + content: jsonToReadableText({ extends: "./tsconfig_base.json" }), }; const host = createServerHost([file, config, libFile]); const session = createSession(host, { logger: createLoggerWithInMemoryLogs(host) }); @@ -1300,7 +1303,7 @@ describe("unittests:: tsserver:: projects::", () => { }; const config: File = { path: `/user/username/projects/myproject/tsconfig.json`, - content: JSON.stringify({ extends: "./tsconfig_base.json" }), + content: jsonToReadableText({ extends: "./tsconfig_base.json" }), }; const host = createServerHost([file, config, libFile]); const session = createSession(host, { logger: createLoggerWithInMemoryLogs(host) }); @@ -1440,7 +1443,7 @@ describe("unittests:: tsserver:: projects::", () => { }; const innerConfig: File = { path: `/user/username/projects/myproject/playground/tsconfig-json/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ include: ["./src"], }), }; @@ -1476,7 +1479,7 @@ describe("unittests:: tsserver:: projects::", () => { it("js file opened is in configured project that will be removed", () => { const rootConfig: File = { path: `/user/username/projects/myproject/tsconfig.json`, - content: JSON.stringify({ compilerOptions: { allowJs: true } }), + content: jsonToReadableText({ compilerOptions: { allowJs: true } }), }; const mocksFile: File = { path: `/user/username/projects/myproject/mocks/cssMock.js`, @@ -1488,7 +1491,7 @@ describe("unittests:: tsserver:: projects::", () => { }; const innerConfig: File = { path: `/user/username/projects/myproject/apps/editor/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ extends: "../../tsconfig.json", include: ["./src"], }), diff --git a/src/testRunner/unittests/tsserver/projectsWithReferences.ts b/src/testRunner/unittests/tsserver/projectsWithReferences.ts index 6d031cc431beb..fefd376ab0818 100644 --- a/src/testRunner/unittests/tsserver/projectsWithReferences.ts +++ b/src/testRunner/unittests/tsserver/projectsWithReferences.ts @@ -1,6 +1,12 @@ import { createLoggerWithInMemoryLogs, } from "../../../harness/tsserverLogger"; +import { + jsonToReadableText, +} from "../helpers"; +import { + getFsContentsForSampleProjectReferences, +} from "../helpers/sampleProjectReferences"; import { baselineTsserverLogs, createProjectService, @@ -8,37 +14,28 @@ import { import { createServerHost, File, - getTsBuildProjectFile, libFile, } from "../helpers/virtualFileSystemWithWatch"; describe("unittests:: tsserver:: projects with references: invoking when references are already built", () => { it("on sample project", () => { - const coreConfig = getTsBuildProjectFile("sample1", "core/tsconfig.json"); - const coreIndex = getTsBuildProjectFile("sample1", "core/index.ts"); - const coreAnotherModule = getTsBuildProjectFile("sample1", "core/anotherModule.ts"); - const coreSomeDecl = getTsBuildProjectFile("sample1", "core/some_decl.d.ts"); - const logicConfig = getTsBuildProjectFile("sample1", "logic/tsconfig.json"); - const logicIndex = getTsBuildProjectFile("sample1", "logic/index.ts"); - const testsConfig = getTsBuildProjectFile("sample1", "tests/tsconfig.json"); - const testsIndex = getTsBuildProjectFile("sample1", "tests/index.ts"); - const host = createServerHost([libFile, coreConfig, coreIndex, coreAnotherModule, coreSomeDecl, logicConfig, logicIndex, testsConfig, testsIndex]); + const host = createServerHost(getFsContentsForSampleProjectReferences()); const logger = createLoggerWithInMemoryLogs(host); const service = createProjectService(host, { logger }); - service.openClientFile(testsIndex.path); + service.openClientFile("/user/username/projects/sample1/tests/index.ts"); // local edit in ts file - host.appendFile(logicIndex.path, `function foo() {}`); + host.appendFile("/user/username/projects/sample1/logic/index.ts", `function foo() {}`); host.runQueuedTimeoutCallbacks(); // non local edit in ts file - host.appendFile(logicIndex.path, `export function gfoo() {}`); + host.appendFile("/user/username/projects/sample1/logic/index.ts", `export function gfoo() {}`); host.runQueuedTimeoutCallbacks(); // change in project reference config file host.writeFile( - logicConfig.path, - JSON.stringify({ + "/user/username/projects/sample1/logic/tsconfig.json", + jsonToReadableText({ compilerOptions: { composite: true, declaration: true, declarationDir: "decls" }, references: [{ path: "../core" }], }), @@ -51,14 +48,14 @@ describe("unittests:: tsserver:: projects with references: invoking when referen function createService() { const aConfig: File = { path: `/user/username/projects/myproject/a/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { composite: true }, files: ["index.ts"], }), }; const bConfig: File = { path: `/user/username/projects/myproject/b/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { composite: true, baseUrl: "./", paths: { "@ref/*": ["../*"] } }, files: ["index.ts"], references: [{ path: `../a` }], @@ -66,7 +63,7 @@ describe("unittests:: tsserver:: projects with references: invoking when referen }; const cConfig: File = { path: `/user/username/projects/myproject/c/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { baseUrl: "./", paths: { "@ref/*": ["../refs/*"] } }, files: ["index.ts"], references: [{ path: `../b` }], @@ -117,7 +114,7 @@ export class A {}`, const cTsConfigJson = JSON.parse(cConfig.content); host.ensureFileOrFolder(nRefsTs); cTsConfigJson.compilerOptions.paths = { "@ref/*": ["../nrefs/*"] }; - host.writeFile(cConfig.path, JSON.stringify(cTsConfigJson)); + host.writeFile(cConfig.path, jsonToReadableText(cTsConfigJson)); host.runQueuedTimeoutCallbacks(); // revert the edit on config file @@ -135,7 +132,7 @@ export class A {}`, const bTsConfigJson = JSON.parse(bConfig.content); host.ensureFileOrFolder(nRefsTs); bTsConfigJson.compilerOptions.paths = { "@ref/*": ["../nrefs/*"] }; - host.writeFile(bConfig.path, JSON.stringify(bTsConfigJson)); + host.writeFile(bConfig.path, jsonToReadableText(bTsConfigJson)); host.runQueuedTimeoutCallbacks(); // revert the edit on config file @@ -171,18 +168,18 @@ export class A {}`, function createService() { const aConfig: File = { path: `/user/username/projects/myproject/a/tsconfig.json`, - content: JSON.stringify({ compilerOptions: { composite: true } }), + content: jsonToReadableText({ compilerOptions: { composite: true } }), }; const bConfig: File = { path: `/user/username/projects/myproject/b/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { composite: true, baseUrl: "./", paths: { "@ref/*": ["../*"] } }, references: [{ path: `../a` }], }), }; const cConfig: File = { path: `/user/username/projects/myproject/c/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { baseUrl: "./", paths: { "@ref/*": ["../refs/*"] } }, references: [{ path: `../b` }], }), @@ -232,7 +229,7 @@ export class A {}`, const cTsConfigJson = JSON.parse(cConfig.content); host.ensureFileOrFolder(nRefsTs); cTsConfigJson.compilerOptions.paths = { "@ref/*": ["../nrefs/*"] }; - host.writeFile(cConfig.path, JSON.stringify(cTsConfigJson)); + host.writeFile(cConfig.path, jsonToReadableText(cTsConfigJson)); host.runQueuedTimeoutCallbacks(); // revert the edit on config file @@ -250,7 +247,7 @@ export class A {}`, const bTsConfigJson = JSON.parse(bConfig.content); host.ensureFileOrFolder(nRefsTs); bTsConfigJson.compilerOptions.paths = { "@ref/*": ["../nrefs/*"] }; - host.writeFile(bConfig.path, JSON.stringify(bTsConfigJson)); + host.writeFile(bConfig.path, jsonToReadableText(bTsConfigJson)); host.runQueuedTimeoutCallbacks(); // revert the edit on config file diff --git a/src/testRunner/unittests/tsserver/reloadProjects.ts b/src/testRunner/unittests/tsserver/reloadProjects.ts index 06cb510de1195..1dd8ce8d378cc 100644 --- a/src/testRunner/unittests/tsserver/reloadProjects.ts +++ b/src/testRunner/unittests/tsserver/reloadProjects.ts @@ -2,6 +2,9 @@ import { createLoggerWithInMemoryLogs, } from "../../../harness/tsserverLogger"; import * as ts from "../../_namespaces/ts"; +import { + jsonToReadableText, +} from "../helpers"; import { baselineTsserverLogs, createSession, @@ -20,7 +23,7 @@ import { describe("unittests:: tsserver:: reloadProjects", () => { const configFile: File = { path: `/user/username/projects/myproject/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ watchOptions: { excludeDirectories: ["node_modules"] }, }), }; diff --git a/src/testRunner/unittests/tsserver/resolutionCache.ts b/src/testRunner/unittests/tsserver/resolutionCache.ts index 94f695e654a40..e4eec4cda52b6 100644 --- a/src/testRunner/unittests/tsserver/resolutionCache.ts +++ b/src/testRunner/unittests/tsserver/resolutionCache.ts @@ -3,6 +3,9 @@ import { } from "../../../harness/tsserverLogger"; import * as ts from "../../_namespaces/ts"; import * as Utils from "../../_namespaces/Utils"; +import { + jsonToReadableText, +} from "../helpers"; import { compilerOptionsToConfigJson, } from "../helpers/contents"; @@ -63,7 +66,7 @@ describe("unittests:: tsserver:: resolutionCache:: tsserverProjectSystem watchin }; const tsconfig = { path: "/users/username/projects/project/tsconfig.json", - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: {}, exclude: ["node_modules"], }), @@ -347,7 +350,7 @@ describe("unittests:: tsserver:: resolutionCache:: tsserverProjectSystem rename }; const config = { path: "/a/b/tsconfig.json", - content: JSON.stringify({ compilerOptions: { types: ["node"], typeRoots: includeTypeRoots ? [] : undefined } }), + content: jsonToReadableText({ compilerOptions: { types: ["node"], typeRoots: includeTypeRoots ? [] : undefined } }), }; const node = { path: "/a/b/node_modules/@types/node/index.d.ts", @@ -370,7 +373,7 @@ describe("unittests:: tsserver:: resolutionCache:: tsserverProjectSystem rename describe("unittests:: tsserver:: resolutionCache:: tsserverProjectSystem module resolution caching", () => { const configFile: File = { path: `/user/username/projects/myproject/tsconfig.json`, - content: JSON.stringify({ compilerOptions: { traceResolution: true } }), + content: jsonToReadableText({ compilerOptions: { traceResolution: true } }), }; function getModules(module1Path: string, module2Path: string) { @@ -544,7 +547,7 @@ export const x = 10;`, }; const configFile: File = { path: `/user/username/projects/myproject/src/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { module: "amd", moduleResolution: "classic", @@ -570,7 +573,7 @@ export const x = 10;`, describe("ignores files/folder changes in node_modules that start with '.'", () => { const npmCacheFile: File = { path: `/user/username/projects/myproject/node_modules/.cache/babel-loader/89c02171edab901b9926470ba6d5677e.ts`, - content: JSON.stringify({ something: 10 }), + content: jsonToReadableText({ something: 10 }), }; const file1: File = { path: `/user/username/projects/myproject/test.ts`, @@ -633,7 +636,7 @@ describe("unittests:: tsserver:: resolutionCache:: tsserverProjectSystem with pr it("sharing across references", () => { const host = createServerHost({ "/users/username/projects/node_modules/moduleX/index.d.ts": "export const x = 10;", - "/users/username/projects/common/tsconfig.json": JSON.stringify({ + "/users/username/projects/common/tsconfig.json": jsonToReadableText({ compilerOptions: compilerOptionsToConfigJson({ composite: true, traceResolution: true, @@ -644,7 +647,7 @@ describe("unittests:: tsserver:: resolutionCache:: tsserverProjectSystem with pr import { x } from "moduleX"; export const b = x; `, - "/users/username/projects/app/tsconfig.json": JSON.stringify({ + "/users/username/projects/app/tsconfig.json": jsonToReadableText({ compilerOptions: compilerOptionsToConfigJson({ composite: true, traceResolution: true, @@ -668,7 +671,7 @@ describe("unittests:: tsserver:: resolutionCache:: tsserverProjectSystem with pr it("not sharing across references", () => { const host = createServerHost({ "/users/username/projects/node_modules/moduleX/index.d.ts": "export const x = 10;", - "/users/username/projects/common/tsconfig.json": JSON.stringify({ + "/users/username/projects/common/tsconfig.json": jsonToReadableText({ compilerOptions: { composite: true, traceResolution: true }, }), "/users/username/projects/common/moduleA.ts": "export const a = 10;", @@ -676,7 +679,7 @@ describe("unittests:: tsserver:: resolutionCache:: tsserverProjectSystem with pr import { x } from "moduleX"; export const b = x; `, - "/users/username/projects/app/tsconfig.json": JSON.stringify({ + "/users/username/projects/app/tsconfig.json": jsonToReadableText({ compilerOptions: { composite: true, traceResolution: true, diff --git a/src/testRunner/unittests/tsserver/skipLibCheck.ts b/src/testRunner/unittests/tsserver/skipLibCheck.ts index 9955442735155..e623ccadab98a 100644 --- a/src/testRunner/unittests/tsserver/skipLibCheck.ts +++ b/src/testRunner/unittests/tsserver/skipLibCheck.ts @@ -2,6 +2,9 @@ import { createLoggerWithInMemoryLogs, } from "../../../harness/tsserverLogger"; import * as ts from "../../_namespaces/ts"; +import { + jsonToReadableText, +} from "../helpers"; import { baselineTsserverLogs, createSession, @@ -204,7 +207,7 @@ describe("unittests:: tsserver:: with skipLibCheck", () => { it("should report semantic errors for configured js project with checkJs=true and skipLibCheck=true", () => { const jsconfigFile = { path: "/a/jsconfig.json", - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { checkJs: true, skipLibCheck: true, diff --git a/src/testRunner/unittests/tsserver/symLinks.ts b/src/testRunner/unittests/tsserver/symLinks.ts index 82f0720cb41c7..7b71bb599e67a 100644 --- a/src/testRunner/unittests/tsserver/symLinks.ts +++ b/src/testRunner/unittests/tsserver/symLinks.ts @@ -5,6 +5,9 @@ import * as ts from "../../_namespaces/ts"; import { dedent, } from "../../_namespaces/Utils"; +import { + jsonToReadableText, +} from "../helpers"; import { baselineTsserverLogs, closeFilesForSession, @@ -30,7 +33,7 @@ describe("unittests:: tsserver:: symLinks", () => { }; const aTsconfig: File = { path: `${folderA}/tsconfig.json`, - content: JSON.stringify({ compilerOptions: { module: "commonjs" } }), + content: jsonToReadableText({ compilerOptions: { module: "commonjs" } }), }; const aC: SymLink = { path: `${folderA}/c`, @@ -45,7 +48,7 @@ describe("unittests:: tsserver:: symLinks", () => { }; const bTsconfig: File = { path: `${folderB}/tsconfig.json`, - content: JSON.stringify({ compilerOptions: { module: "commonjs" } }), + content: jsonToReadableText({ compilerOptions: { module: "commonjs" } }), }; const bC: SymLink = { path: `${folderB}/c`, @@ -94,13 +97,13 @@ new C();`, const recognizerDateTimeTsconfigPath = `${recognizersDateTime}/tsconfig.json`; const recognizerDateTimeTsconfigWithoutPathMapping: File = { path: recognizerDateTimeTsconfigPath, - content: JSON.stringify({ + content: jsonToReadableText({ include: ["src"], }), }; const recognizerDateTimeTsconfigWithPathMapping: File = { path: recognizerDateTimeTsconfigPath, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { rootDir: "src", baseUrl: "./", @@ -125,7 +128,7 @@ new C();`, }; const recongnizerTextPackageJson: File = { path: `${recognizersText}/package.json`, - content: JSON.stringify({ + content: jsonToReadableText({ typings: "dist/types/recognizers-text.d.ts", }), }; @@ -161,7 +164,7 @@ new C();`, const config = JSON.parse(host.readFile(recognizerDateTimeTsconfigPath)!); host.writeFile( recognizerDateTimeTsconfigPath, - JSON.stringify({ + jsonToReadableText({ ...config, compilerOptions: { ...config.compilerOptions, resolveJsonModule: true }, }), @@ -230,12 +233,12 @@ new C();`, "C:/temp/replay/axios-src/lib/core/settle.js": dedent` export const b2 = 10; `, - "C:/temp/replay/axios-src/package.json": JSON.stringify({ + "C:/temp/replay/axios-src/package.json": jsonToReadableText({ name: "axios", version: "1.4.0", dependencies: { "follow-redirects": "^1.15.0" }, }), - "C:/temp/replay/axios-src/node_modules/follow-redirects/package.json": JSON.stringify({ + "C:/temp/replay/axios-src/node_modules/follow-redirects/package.json": jsonToReadableText({ name: "follow-redirects", version: "1.15.0", }), diff --git a/src/testRunner/unittests/tsserver/telemetry.ts b/src/testRunner/unittests/tsserver/telemetry.ts index 7ea855435f542..d628db6eeb8ba 100644 --- a/src/testRunner/unittests/tsserver/telemetry.ts +++ b/src/testRunner/unittests/tsserver/telemetry.ts @@ -2,6 +2,9 @@ import { createLoggerWithInMemoryLogs, } from "../../../harness/tsserverLogger"; import * as ts from "../../_namespaces/ts"; +import { + jsonToReadableText, +} from "../helpers"; import { baselineTsserverLogs, closeFilesForSession, @@ -257,5 +260,5 @@ describe("unittests:: tsserver:: project telemetry", () => { }); function makeFile(path: string, content: {} = ""): File { - return { path, content: ts.isString(content) ? content : JSON.stringify(content) }; + return { path, content: ts.isString(content) ? content : jsonToReadableText(content) }; } diff --git a/src/testRunner/unittests/tsserver/typeAquisition.ts b/src/testRunner/unittests/tsserver/typeAquisition.ts index 18a53dcdb0579..7fec72db9b518 100644 --- a/src/testRunner/unittests/tsserver/typeAquisition.ts +++ b/src/testRunner/unittests/tsserver/typeAquisition.ts @@ -2,6 +2,9 @@ import { createLoggerWithInMemoryLogs, } from "../../../harness/tsserverLogger"; import * as ts from "../../_namespaces/ts"; +import { + jsonToReadableText, +} from "../helpers"; import { baselineTsserverLogs, createProjectService, @@ -54,7 +57,7 @@ describe("unittests:: tsserver:: typeAquisition:: prefer typings to js", () => { }; const config = { path: "/a/b/jsconfig.json", - content: JSON.stringify({ compilerOptions: { allowJs: true }, exclude: ["node_modules"] }), + content: jsonToReadableText({ compilerOptions: { allowJs: true }, exclude: ["node_modules"] }), }; const host = createServerHost([f1, barjs, barTypings, config]); const logger = createLoggerWithInMemoryLogs(host); diff --git a/src/testRunner/unittests/tsserver/typeReferenceDirectives.ts b/src/testRunner/unittests/tsserver/typeReferenceDirectives.ts index a7be45f1fd698..174aef7e40b1b 100644 --- a/src/testRunner/unittests/tsserver/typeReferenceDirectives.ts +++ b/src/testRunner/unittests/tsserver/typeReferenceDirectives.ts @@ -1,6 +1,9 @@ import { createLoggerWithInMemoryLogs, } from "../../../harness/tsserverLogger"; +import { + jsonToReadableText, +} from "../helpers"; import { baselineTsserverLogs, createSession, @@ -50,7 +53,7 @@ declare class TestLib { }; const testConfig: File = { path: `${testProjectLocation}/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { module: "amd", typeRoots: ["../lib/@types", "../lib/@app"], @@ -75,7 +78,7 @@ declare class TestLib { }; const tsconfig: File = { path: `${projectPath}/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { types: [ "../typedefs/filesystem", diff --git a/src/testRunner/unittests/tsserver/typingsInstaller.ts b/src/testRunner/unittests/tsserver/typingsInstaller.ts index 45c10e104064c..ddd45b234b2d7 100644 --- a/src/testRunner/unittests/tsserver/typingsInstaller.ts +++ b/src/testRunner/unittests/tsserver/typingsInstaller.ts @@ -16,6 +16,7 @@ import { import { createTypesRegistry, customTypesMap, + FileWithPackageName, loggerToTypingsInstallerLog, TestTypingsInstaller, } from "../helpers/typingsInstaller"; @@ -31,6 +32,9 @@ import NameValidationResult = ts.JsTyping.NameValidationResult; import { stringifyIndented, } from "../../_namespaces/ts.server"; +import { + jsonToReadableText, +} from "../helpers"; describe("unittests:: tsserver:: typingsInstaller:: local module", () => { it("should not be picked up", () => { @@ -49,7 +53,7 @@ describe("unittests:: tsserver:: typingsInstaller:: local module", () => { }; const config = { path: "/a/jsconfig.json", - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { moduleResolution: "commonjs" }, typeAcquisition: { enable: true }, }), @@ -80,7 +84,7 @@ describe("unittests:: tsserver:: typingsInstaller:: General functionality", () = }; const tsconfig = { path: "/a/b/tsconfig.json", - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { allowJs: true, }, @@ -91,7 +95,7 @@ describe("unittests:: tsserver:: typingsInstaller:: General functionality", () = }; const packageJson = { path: "/a/b/package.json", - content: JSON.stringify({ + content: jsonToReadableText({ name: "test", dependencies: { jquery: "^3.1.0", @@ -134,7 +138,7 @@ describe("unittests:: tsserver:: typingsInstaller:: General functionality", () = }; const packageJson = { path: "/a/b/package.json", - content: JSON.stringify({ + content: jsonToReadableText({ name: "test", dependencies: { jquery: "^3.1.0", @@ -486,7 +490,7 @@ describe("unittests:: tsserver:: typingsInstaller:: General functionality", () = }; const packageJson = { path: "/a/b/package.json", - content: JSON.stringify({ + content: jsonToReadableText({ name: "test", dependencies: { express: "^3.1.0", @@ -560,7 +564,7 @@ describe("unittests:: tsserver:: typingsInstaller:: General functionality", () = }; const packageJson = { path: "/a/b/package.json", - content: JSON.stringify({ + content: jsonToReadableText({ name: "test", dependencies: { express: "^3.1.0", @@ -633,35 +637,35 @@ describe("unittests:: tsserver:: typingsInstaller:: General functionality", () = content: "", }; - const commander = { + const commander: FileWithPackageName = { path: "/a/data/node_modules/@types/commander/index.d.ts", content: "declare const commander: { x: number }", - typings: ts.server.typingsInstaller.typingsName("commander"), + package: "commander", }; - const jquery = { + const jquery: FileWithPackageName = { path: "/a/data/node_modules/@types/jquery/index.d.ts", content: "declare const jquery: { x: number }", - typings: ts.server.typingsInstaller.typingsName("jquery"), + package: "jquery", }; - const lodash = { + const lodash: FileWithPackageName = { path: "/a/data/node_modules/@types/lodash/index.d.ts", content: "declare const lodash: { x: number }", - typings: ts.server.typingsInstaller.typingsName("lodash"), + package: "lodash", }; - const cordova = { + const cordova: FileWithPackageName = { path: "/a/data/node_modules/@types/cordova/index.d.ts", content: "declare const cordova: { x: number }", - typings: ts.server.typingsInstaller.typingsName("cordova"), + package: "cordova", }; - const grunt = { + const grunt: FileWithPackageName = { path: "/a/data/node_modules/@types/grunt/index.d.ts", content: "declare const grunt: { x: number }", - typings: ts.server.typingsInstaller.typingsName("grunt"), + package: "grunt", }; - const gulp = { + const gulp: FileWithPackageName = { path: "/a/data/node_modules/@types/gulp/index.d.ts", content: "declare const gulp: { x: number }", - typings: ts.server.typingsInstaller.typingsName("gulp"), + package: "gulp", }; const host = createServerHost([lodashJs, commanderJs, file3, customTypesMap]); @@ -670,22 +674,7 @@ describe("unittests:: tsserver:: typingsInstaller:: General functionality", () = host, logger, { - installAction: (installer, requestId, packageNames, cb) => { - let typingFiles: (File & { typings: string; })[] = []; - if (packageNames.includes(ts.server.typingsInstaller.typingsName("commander"))) { - typingFiles = [commander, jquery, lodash, cordova]; - } - else { - typingFiles = [grunt, gulp]; - } - installer.executeInstallWithTypingFiles( - requestId, - packageNames, - typingFiles.map(f => f.typings), - typingFiles, - cb, - ); - }, + installAction: [[commander, jquery, lodash, cordova, grunt, gulp]], throttleLimit: 1, typesRegistry: ["commander", "jquery", "lodash", "cordova", "gulp", "grunt"], }, @@ -730,7 +719,7 @@ describe("unittests:: tsserver:: typingsInstaller:: General functionality", () = }; const pkgJson = { path: "/package.json", - content: JSON.stringify({ + content: jsonToReadableText({ dependencies: { "@zkat/cacache": "1.0.0", }, @@ -738,7 +727,7 @@ describe("unittests:: tsserver:: typingsInstaller:: General functionality", () = }; const jsconfig = { path: "/jsconfig.json", - content: JSON.stringify({}), + content: jsonToReadableText({}), }; // Should only accept direct dependencies. const commander = { @@ -747,7 +736,7 @@ describe("unittests:: tsserver:: typingsInstaller:: General functionality", () = }; const commanderPackage = { path: "/node_modules/commander/package.json", - content: JSON.stringify({ + content: jsonToReadableText({ name: "commander", }), }; @@ -757,7 +746,7 @@ describe("unittests:: tsserver:: typingsInstaller:: General functionality", () = }; const cacachePackage = { path: "/node_modules/@zkat/cacache/package.json", - content: JSON.stringify({ name: "@zkat/cacache" }), + content: jsonToReadableText({ name: "@zkat/cacache" }), }; const cacacheDTS = { path: "/tmp/node_modules/@types/zkat__cacache/index.d.ts", @@ -798,7 +787,7 @@ describe("unittests:: tsserver:: typingsInstaller:: General functionality", () = }; const pkgJson = { path: "/package.json", - content: JSON.stringify({ + content: jsonToReadableText({ dependencies: { jquery: "1.0.0", }, @@ -806,7 +795,7 @@ describe("unittests:: tsserver:: typingsInstaller:: General functionality", () = }; const jsconfig = { path: "/jsconfig.json", - content: JSON.stringify(jsconfigContent || {}), + content: jsonToReadableText(jsconfigContent || {}), }; // Should only accept direct dependencies. const commander = { @@ -815,7 +804,7 @@ describe("unittests:: tsserver:: typingsInstaller:: General functionality", () = }; const commanderPackage = { path: "/node_modules/commander/package.json", - content: JSON.stringify({ + content: jsonToReadableText({ name: "commander", }), }; @@ -825,12 +814,12 @@ describe("unittests:: tsserver:: typingsInstaller:: General functionality", () = }; const jqueryPackage = { path: "/node_modules/jquery/package.json", - content: JSON.stringify({ name: "jquery" }), + content: jsonToReadableText({ name: "jquery" }), }; // Should not search deeply in node_modules. const nestedPackage = { path: "/node_modules/jquery/nested/package.json", - content: JSON.stringify({ name: "nested" }), + content: jsonToReadableText({ name: "nested" }), }; const jqueryDTS = { path: "/tmp/node_modules/@types/jquery/index.d.ts", @@ -882,7 +871,7 @@ describe("unittests:: tsserver:: typingsInstaller:: General functionality", () = }; const jsconfig = { path: "/jsconfig.json", - content: JSON.stringify({}), + content: jsonToReadableText({}), }; const jquery = { path: "/bower_components/jquery/index.js", @@ -890,7 +879,7 @@ describe("unittests:: tsserver:: typingsInstaller:: General functionality", () = }; const jqueryPackage = { path: "/bower_components/jquery/bower.json", - content: JSON.stringify({ name: "jquery" }), + content: jsonToReadableText({ name: "jquery" }), }; const jqueryDTS = { path: "/tmp/node_modules/@types/jquery/index.d.ts", @@ -928,11 +917,11 @@ describe("unittests:: tsserver:: typingsInstaller:: General functionality", () = }; const jsconfig = { path: "/jsconfig.json", - content: JSON.stringify({}), + content: jsonToReadableText({}), }; const bowerJson = { path: "/bower.json", - content: JSON.stringify({ + content: jsonToReadableText({ dependencies: { jquery: "^3.1.0", }, @@ -1176,7 +1165,7 @@ describe("unittests:: tsserver:: typingsInstaller:: General functionality", () = }; const tsconfig = { path: "/user/username/projects/project/tsconfig.json", - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { allowJs: true, }, @@ -1187,7 +1176,7 @@ describe("unittests:: tsserver:: typingsInstaller:: General functionality", () = }; const packageJson = { path: "/user/username/projects/project/package.json", - content: JSON.stringify({ + content: jsonToReadableText({ name: "test", dependencies: { jquery: "^3.1.0", @@ -1200,7 +1189,7 @@ describe("unittests:: tsserver:: typingsInstaller:: General functionality", () = }; const tsconfig2 = { path: "/user/username/projects/project2/tsconfig.json", - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { allowJs: true, }, @@ -1211,7 +1200,7 @@ describe("unittests:: tsserver:: typingsInstaller:: General functionality", () = }; const packageJson2 = { path: "/user/username/projects/project2/package.json", - content: JSON.stringify({ + content: jsonToReadableText({ name: "test", dependencies: { commander: "^3.1.0", @@ -1219,15 +1208,15 @@ describe("unittests:: tsserver:: typingsInstaller:: General functionality", () = }), }; - const jquery = { + const jquery: FileWithPackageName = { path: "/a/data/node_modules/@types/jquery/index.d.ts", content: "declare const $: { x: number }", - typings: "jquery", + package: "jquery", }; - const commander = { + const commander: FileWithPackageName = { path: "/a/data/node_modules/@types/commander/index.d.ts", content: "export let x: number", - typings: "commander", + package: "commander", }; const host = createServerHost([file1, tsconfig, packageJson, file2, tsconfig2, packageJson2, libFile]); const logger = createLoggerWithInMemoryLogs(host); @@ -1235,22 +1224,7 @@ describe("unittests:: tsserver:: typingsInstaller:: General functionality", () = host, logger, { - installAction: (installer, requestId, packageNames, cb) => { - let typingFiles: (File & { typings: string; })[] = []; - if (packageNames.includes(ts.server.typingsInstaller.typingsName("commander"))) { - typingFiles = [commander]; - } - else { - typingFiles = [jquery]; - } - installer.executeInstallWithTypingFiles( - requestId, - packageNames, - typingFiles.map(f => f.typings), - typingFiles, - cb, - ); - }, + installAction: [[commander, jquery]], typesRegistry: ["jquery", "commander"], }, ); @@ -1277,7 +1251,7 @@ describe("unittests:: tsserver:: typingsInstaller:: General functionality", () = }; const packageJson = { path: "/a/b/package.json", - content: JSON.stringify({ + content: jsonToReadableText({ name: "test", dependencies: { jquery: "^3.1.0", @@ -1290,7 +1264,7 @@ describe("unittests:: tsserver:: typingsInstaller:: General functionality", () = }; const cacheConfig = { path: "/a/data/package.json", - content: JSON.stringify({ + content: jsonToReadableText({ dependencies: { "types-registry": "^0.1.317", }, @@ -1301,7 +1275,7 @@ describe("unittests:: tsserver:: typingsInstaller:: General functionality", () = }; const cacheLockConfig = { path: "/a/data/package-lock.json", - content: JSON.stringify({ + content: jsonToReadableText({ dependencies: { "@types/jquery": { version: "1.0.0", @@ -1335,7 +1309,7 @@ describe("unittests:: tsserver:: typingsInstaller:: General functionality", () = }; const packageJson = { path: "/a/b/package.json", - content: JSON.stringify({ + content: jsonToReadableText({ name: "test", dependencies: { jquery: "^3.1.0", @@ -1344,7 +1318,7 @@ describe("unittests:: tsserver:: typingsInstaller:: General functionality", () = }; const cacheConfig = { path: "/a/data/package.json", - content: JSON.stringify({ + content: jsonToReadableText({ dependencies: { "types-registry": "^0.1.317", }, @@ -1355,7 +1329,7 @@ describe("unittests:: tsserver:: typingsInstaller:: General functionality", () = }; const cacheLockConfig = { path: "/a/data/package-lock.json", - content: JSON.stringify({ + content: jsonToReadableText({ dependencies: { "@types/jquery": { version: "1.3.0", @@ -1441,7 +1415,7 @@ describe("unittests:: tsserver:: typingsInstaller:: Invalid package names", () = }; const packageJson = { path: "/a/b/package.json", - content: JSON.stringify({ + content: jsonToReadableText({ dependencies: { "; say ‘Hello from TypeScript!’ #": "0.0.x", }, @@ -1565,11 +1539,11 @@ describe("unittests:: tsserver:: typingsInstaller:: discover typings", () => { }; const a = { path: "/node_modules/a/package.json", - content: JSON.stringify({ name: "a" }), + content: jsonToReadableText({ name: "a" }), }; const b = { path: "/node_modules/a/b/package.json", - content: JSON.stringify({ name: "b" }), + content: jsonToReadableText({ name: "b" }), }; const { discoverTypings, baseline } = setup([app, a, b]); const cache = new Map(); @@ -1593,7 +1567,7 @@ describe("unittests:: tsserver:: typingsInstaller:: discover typings", () => { }; const a = { path: "/node_modules/@a/b/package.json", - content: JSON.stringify({ name: "@a/b" }), + content: jsonToReadableText({ name: "@a/b" }), }; const { discoverTypings, baseline } = setup([app, a]); const cache = new Map(); @@ -1777,7 +1751,7 @@ describe("unittests:: tsserver:: typingsInstaller:: telemetry events", () => { }; const packageFile = { path: "/a/package.json", - content: JSON.stringify({ dependencies: { commander: "1.0.0" } }), + content: jsonToReadableText({ dependencies: { commander: "1.0.0" } }), }; const cachePath = "/a/cache/"; const commander = { @@ -1812,11 +1786,11 @@ describe("unittests:: tsserver:: typingsInstaller:: progress notifications", () }; const packageFile = { path: "/a/package.json", - content: JSON.stringify({ dependencies: { commander: "1.0.0" } }), + content: jsonToReadableText({ dependencies: { commander: "1.0.0" } }), }; const packageLockFile = { path: "/a/cache/package-lock.json", - content: JSON.stringify({ + content: jsonToReadableText({ dependencies: { "@types/commander": { version: "1.0.0", @@ -1855,7 +1829,7 @@ describe("unittests:: tsserver:: typingsInstaller:: progress notifications", () }; const packageFile = { path: "/a/package.json", - content: JSON.stringify({ dependencies: { commander: "1.0.0" } }), + content: jsonToReadableText({ dependencies: { commander: "1.0.0" } }), }; const cachePath = "/a/cache/"; const host = createServerHost([f1, packageFile]); @@ -2568,7 +2542,7 @@ describe("unittests:: tsserver:: typingsInstaller:: tsserver:: with inferred Pro const currentDirectory = `/user/username/projects/anotherProject`; const packageJsonInCurrentDirectory: File = { path: `${currentDirectory}/package.json`, - content: JSON.stringify({ + content: jsonToReadableText({ devDependencies: { pkgcurrentdirectory: "", }, @@ -2576,7 +2550,7 @@ describe("unittests:: tsserver:: typingsInstaller:: tsserver:: with inferred Pro }; const packageJsonOfPkgcurrentdirectory: File = { path: `${currentDirectory}/node_modules/pkgcurrentdirectory/package.json`, - content: JSON.stringify({ + content: jsonToReadableText({ name: "pkgcurrentdirectory", main: "index.js", typings: "index.d.ts", @@ -2590,13 +2564,13 @@ describe("unittests:: tsserver:: typingsInstaller:: tsserver:: with inferred Pro const typingsCache = `/users/username/Library/Caches/typescript/2.7`; const typingsCachePackageJson: File = { path: `${typingsCache}/package.json`, - content: JSON.stringify({ + content: jsonToReadableText({ devDependencies: {}, }), }; const typingsCachePackageLockJson: File = { path: `${typingsCache}/package-lock.json`, - content: JSON.stringify({ + content: jsonToReadableText({ dependencies: {}, }), }; diff --git a/src/testRunner/unittests/tsserver/watchEnvironment.ts b/src/testRunner/unittests/tsserver/watchEnvironment.ts index 617620f2f6550..21669b5650768 100644 --- a/src/testRunner/unittests/tsserver/watchEnvironment.ts +++ b/src/testRunner/unittests/tsserver/watchEnvironment.ts @@ -3,6 +3,9 @@ import { Logger, } from "../../../harness/tsserverLogger"; import * as ts from "../../_namespaces/ts"; +import { + jsonToReadableText, +} from "../helpers"; import { commonFile1, commonFile2, @@ -33,7 +36,7 @@ describe("unittests:: tsserver:: watchEnvironment:: tsserverProjectSystem watchD const projectSrcFolder = `${projectFolder}/src`; const configFile: File = { path: `${projectFolder}/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ watchOptions: { synchronousWatchDirectory: true, }, @@ -272,7 +275,7 @@ describe("unittests:: tsserver:: watchEnvironment:: handles watch compiler optio it("with watchFile option in configFile", () => { const configFile: File = { path: "/a/b/tsconfig.json", - content: JSON.stringify({ + content: jsonToReadableText({ watchOptions: { watchFile: "UseFsEvents", }, @@ -289,7 +292,7 @@ describe("unittests:: tsserver:: watchEnvironment:: handles watch compiler optio it("with watchDirectory option in configFile", () => { const configFile: File = { path: "/a/b/tsconfig.json", - content: JSON.stringify({ + content: jsonToReadableText({ watchOptions: { watchDirectory: "UseFsEvents", }, @@ -306,7 +309,7 @@ describe("unittests:: tsserver:: watchEnvironment:: handles watch compiler optio it("with fallbackPolling option in configFile", () => { const configFile: File = { path: "/a/b/tsconfig.json", - content: JSON.stringify({ + content: jsonToReadableText({ watchOptions: { fallbackPolling: "PriorityInterval", }, @@ -358,7 +361,7 @@ describe("unittests:: tsserver:: watchEnvironment:: handles watch compiler optio function setup(configureHost?: boolean) { const configFile: File = { path: `/user/username/projects/myproject/tsconfig.json`, - content: JSON.stringify({ include: ["src"], watchOptions: { excludeDirectories: ["node_modules"] } }), + content: jsonToReadableText({ include: ["src"], watchOptions: { excludeDirectories: ["node_modules"] } }), }; const { main, bar, foo } = setupFiles(); const files = [libFile, main, bar, foo, configFile]; @@ -416,7 +419,7 @@ describe("unittests:: tsserver:: watchEnvironment:: handles watch compiler optio } as ts.server.protocol.ExternalProject); service.openClientFile(main.path); const project = service.externalProjects[0]; - service.logger.info(JSON.stringify(project.getAllProjectErrors(), undefined, 2)); + service.logger.info(jsonToReadableText(project.getAllProjectErrors())); baselineTsserverLogs("watchEnvironment", `external project watch options errors`, service); }); @@ -452,7 +455,7 @@ describe("unittests:: tsserver:: watchEnvironment:: handles watch compiler optio service.setCompilerOptionsForInferredProjects({ excludeDirectories: ["**/../*"] }, "/user/username/projects/myproject"); service.openClientFile(main.path, main.content, ts.ScriptKind.TS, "/user/username/projects/myproject"); const project = service.inferredProjects[0]; - service.logger.info(JSON.stringify(project.getAllProjectErrors(), undefined, 2)); + service.logger.info(jsonToReadableText(project.getAllProjectErrors())); baselineTsserverLogs("watchEnvironment", `inferred project watch options errors`, service); }); }); @@ -481,7 +484,7 @@ describe("unittests:: tsserver:: watchEnvironment:: watchFile is single watcher it("when watchFile is single watcher per file", () => { const config: File = { path: `/user/username/projects/myproject/tsconfig.json`, - content: JSON.stringify({ + content: jsonToReadableText({ compilerOptions: { composite: true, resolveJsonModule: true, diff --git a/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/--clean and --force together is invalid.js b/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/--clean and --force together is invalid.js index ff703f25ce7fa..6dc943c79accd 100644 --- a/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/--clean and --force together is invalid.js +++ b/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/--clean and --force together is invalid.js @@ -1,8 +1,8 @@ --clean --force buildOptions:: { - "clean": true, - "force": true + "clean": true, + "force": true } WatchOptions:: diff --git a/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/--clean and --verbose together is invalid.js b/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/--clean and --verbose together is invalid.js index a5f665c196d61..d4fd1effda873 100644 --- a/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/--clean and --verbose together is invalid.js +++ b/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/--clean and --verbose together is invalid.js @@ -1,8 +1,8 @@ --clean --verbose buildOptions:: { - "clean": true, - "verbose": true + "clean": true, + "verbose": true } WatchOptions:: diff --git a/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/--clean and --watch together is invalid.js b/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/--clean and --watch together is invalid.js index 754283ce029bd..f9bd6692d469b 100644 --- a/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/--clean and --watch together is invalid.js +++ b/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/--clean and --watch together is invalid.js @@ -1,8 +1,8 @@ --clean --watch buildOptions:: { - "clean": true, - "watch": true + "clean": true, + "watch": true } WatchOptions:: diff --git a/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/--watch and --dry together is invalid.js b/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/--watch and --dry together is invalid.js index 841b0dfbb57eb..8da5f11fee8fb 100644 --- a/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/--watch and --dry together is invalid.js +++ b/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/--watch and --dry together is invalid.js @@ -1,8 +1,8 @@ --watch --dry buildOptions:: { - "watch": true, - "dry": true + "watch": true, + "dry": true } WatchOptions:: diff --git a/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/Parse multiple flags with input projects at the end.js b/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/Parse multiple flags with input projects at the end.js index e647a4a039c25..2804cf12be4b4 100644 --- a/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/Parse multiple flags with input projects at the end.js +++ b/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/Parse multiple flags with input projects at the end.js @@ -1,8 +1,8 @@ --force --verbose src tests buildOptions:: { - "force": true, - "verbose": true + "force": true, + "verbose": true } WatchOptions:: diff --git a/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/Parse multiple flags with input projects in the beginning.js b/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/Parse multiple flags with input projects in the beginning.js index 42aae4de856c4..e46e9b3bc6330 100644 --- a/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/Parse multiple flags with input projects in the beginning.js +++ b/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/Parse multiple flags with input projects in the beginning.js @@ -1,8 +1,8 @@ src tests --force --verbose buildOptions:: { - "force": true, - "verbose": true + "force": true, + "verbose": true } WatchOptions:: diff --git a/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/Parse multiple flags with input projects in the middle.js b/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/Parse multiple flags with input projects in the middle.js index 0dbec2c7666ad..0df7f097b23e5 100644 --- a/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/Parse multiple flags with input projects in the middle.js +++ b/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/Parse multiple flags with input projects in the middle.js @@ -1,8 +1,8 @@ --force src tests --verbose buildOptions:: { - "force": true, - "verbose": true + "force": true, + "verbose": true } WatchOptions:: diff --git a/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/Parse multiple options.js b/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/Parse multiple options.js index e29895636f602..f6f91d79be4d5 100644 --- a/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/Parse multiple options.js +++ b/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/Parse multiple options.js @@ -1,8 +1,8 @@ --verbose --force tests buildOptions:: { - "verbose": true, - "force": true + "verbose": true, + "force": true } WatchOptions:: diff --git a/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/Parse option with invalid option.js b/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/Parse option with invalid option.js index d385a51f7320d..274495fed2931 100644 --- a/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/Parse option with invalid option.js +++ b/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/Parse option with invalid option.js @@ -1,7 +1,7 @@ --verbose --invalidOption buildOptions:: { - "verbose": true + "verbose": true } WatchOptions:: diff --git a/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/errors on invalid excludeDirectories.js b/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/errors on invalid excludeDirectories.js index 35f0a639f9c8d..bc674651ccad3 100644 --- a/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/errors on invalid excludeDirectories.js +++ b/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/errors on invalid excludeDirectories.js @@ -3,7 +3,7 @@ buildOptions:: {} WatchOptions:: { - "excludeDirectories": [] + "excludeDirectories": [] } Projects:: . diff --git a/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/errors on invalid excludeFiles.js b/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/errors on invalid excludeFiles.js index 89d564b19aa96..9039447dce7cd 100644 --- a/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/errors on invalid excludeFiles.js +++ b/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/errors on invalid excludeFiles.js @@ -3,7 +3,7 @@ buildOptions:: {} WatchOptions:: { - "excludeFiles": [] + "excludeFiles": [] } Projects:: . diff --git a/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/errors on missing argument.js b/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/errors on missing argument.js index 212cae1eb636e..4bc33936ed957 100644 --- a/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/errors on missing argument.js +++ b/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/errors on missing argument.js @@ -1,7 +1,7 @@ --verbose --fallbackPolling buildOptions:: { - "verbose": true + "verbose": true } WatchOptions:: {} diff --git a/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/parse --excludeFiles.js b/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/parse --excludeFiles.js index d62c5f98e0450..b14d514d716a2 100644 --- a/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/parse --excludeFiles.js +++ b/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/parse --excludeFiles.js @@ -3,9 +3,9 @@ buildOptions:: {} WatchOptions:: { - "excludeFiles": [ - "**/temp/*.ts" - ] + "excludeFiles": [ + "**/temp/*.ts" + ] } Projects:: . diff --git a/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/parse --fallbackPolling.js b/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/parse --fallbackPolling.js index 1fd285ef9759f..d74b3d3932f18 100644 --- a/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/parse --fallbackPolling.js +++ b/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/parse --fallbackPolling.js @@ -1,11 +1,11 @@ --fallbackPolling PriorityInterval --verbose buildOptions:: { - "verbose": true + "verbose": true } WatchOptions:: { - "fallbackPolling": 1 + "fallbackPolling": 1 } Projects:: . diff --git a/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/parse --synchronousWatchDirectory.js b/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/parse --synchronousWatchDirectory.js index 5b065234cf12c..50f843f54f054 100644 --- a/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/parse --synchronousWatchDirectory.js +++ b/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/parse --synchronousWatchDirectory.js @@ -1,11 +1,11 @@ --synchronousWatchDirectory --verbose buildOptions:: { - "verbose": true + "verbose": true } WatchOptions:: { - "synchronousWatchDirectory": true + "synchronousWatchDirectory": true } Projects:: . diff --git a/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/parse --watchDirectory.js b/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/parse --watchDirectory.js index 62a74a7a9d26c..e92aba3174808 100644 --- a/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/parse --watchDirectory.js +++ b/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/parse --watchDirectory.js @@ -1,11 +1,11 @@ --watchDirectory FixedPollingInterval --verbose buildOptions:: { - "verbose": true + "verbose": true } WatchOptions:: { - "watchDirectory": 1 + "watchDirectory": 1 } Projects:: . diff --git a/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/parse --watchFile.js b/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/parse --watchFile.js index 1f881f80f8a8e..6a1b663637ca6 100644 --- a/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/parse --watchFile.js +++ b/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/parse --watchFile.js @@ -1,11 +1,11 @@ --watchFile UseFsEvents --verbose buildOptions:: { - "verbose": true + "verbose": true } WatchOptions:: { - "watchFile": 4 + "watchFile": 4 } Projects:: . diff --git a/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/parse build with --incremental.js b/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/parse build with --incremental.js index 91cebea73a395..3e42a87190a9d 100644 --- a/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/parse build with --incremental.js +++ b/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/parse build with --incremental.js @@ -1,7 +1,7 @@ --incremental tests buildOptions:: { - "incremental": true + "incremental": true } WatchOptions:: diff --git a/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/parse build with --locale en-us.js b/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/parse build with --locale en-us.js index 8b3e814d4f1c7..cc5ae668c0a48 100644 --- a/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/parse build with --locale en-us.js +++ b/tests/baselines/reference/config/commandLineParsing/parseBuildOptions/parse build with --locale en-us.js @@ -1,7 +1,7 @@ --locale en-us src buildOptions:: { - "locale": "en-us" + "locale": "en-us" } WatchOptions:: diff --git a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse --lib option with extra comma.js b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse --lib option with extra comma.js index b3a026e682307..9f8473507c202 100644 --- a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse --lib option with extra comma.js +++ b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse --lib option with extra comma.js @@ -1,9 +1,9 @@ --lib es5, es7 0.ts CompilerOptions:: { - "lib": [ - "lib.es5.d.ts" - ] + "lib": [ + "lib.es5.d.ts" + ] } WatchOptions:: diff --git a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse --lib option with trailing white-space.js b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse --lib option with trailing white-space.js index 576d7a4f33612..6de11407aebba 100644 --- a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse --lib option with trailing white-space.js +++ b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse --lib option with trailing white-space.js @@ -1,9 +1,9 @@ --lib es5, es7 0.ts CompilerOptions:: { - "lib": [ - "lib.es5.d.ts" - ] + "lib": [ + "lib.es5.d.ts" + ] } WatchOptions:: diff --git a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse empty options of --lib.js b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse empty options of --lib.js index d3f0a03b606d1..63c0c0f126c9b 100644 --- a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse empty options of --lib.js +++ b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse empty options of --lib.js @@ -1,7 +1,7 @@ 0.ts --lib CompilerOptions:: { - "lib": [] + "lib": [] } WatchOptions:: diff --git a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse empty string of --lib.js b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse empty string of --lib.js index a21dc499ae458..54b1bae76ae97 100644 --- a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse empty string of --lib.js +++ b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse empty string of --lib.js @@ -1,7 +1,7 @@ 0.ts --lib CompilerOptions:: { - "lib": [] + "lib": [] } WatchOptions:: diff --git a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse explicit boolean flag value.js b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse explicit boolean flag value.js index dd8cca535a400..1f004f182a046 100644 --- a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse explicit boolean flag value.js +++ b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse explicit boolean flag value.js @@ -1,7 +1,7 @@ --strictNullChecks false 0.ts CompilerOptions:: { - "strictNullChecks": false + "strictNullChecks": false } WatchOptions:: diff --git a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse immediately following command line argument of --lib.js b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse immediately following command line argument of --lib.js index 635303d8967ef..068b4d5311301 100644 --- a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse immediately following command line argument of --lib.js +++ b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse immediately following command line argument of --lib.js @@ -1,8 +1,8 @@ 0.ts --lib --sourcemap CompilerOptions:: { - "lib": [], - "sourceMap": true + "lib": [], + "sourceMap": true } WatchOptions:: diff --git a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse implicit boolean flag value.js b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse implicit boolean flag value.js index b278bb6260549..de964391a63b0 100644 --- a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse implicit boolean flag value.js +++ b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse implicit boolean flag value.js @@ -1,7 +1,7 @@ --strictNullChecks CompilerOptions:: { - "strictNullChecks": true + "strictNullChecks": true } WatchOptions:: diff --git a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse invalid option of library flags.js b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse invalid option of library flags.js index caddcaf841b25..a6953d11f0af8 100644 --- a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse invalid option of library flags.js +++ b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse invalid option of library flags.js @@ -1,9 +1,9 @@ --lib es5,invalidOption 0.ts CompilerOptions:: { - "lib": [ - "lib.es5.d.ts" - ] + "lib": [ + "lib.es5.d.ts" + ] } WatchOptions:: diff --git a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse multiple compiler flags with input files at the end.js b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse multiple compiler flags with input files at the end.js index b3c7bea3fd566..b076c1d486a5d 100644 --- a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse multiple compiler flags with input files at the end.js +++ b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse multiple compiler flags with input files at the end.js @@ -1,11 +1,11 @@ --lib es5,es2015.symbol.wellknown --target es5 0.ts CompilerOptions:: { - "lib": [ - "lib.es5.d.ts", - "lib.es2015.symbol.wellknown.d.ts" - ], - "target": 1 + "lib": [ + "lib.es5.d.ts", + "lib.es2015.symbol.wellknown.d.ts" + ], + "target": 1 } WatchOptions:: diff --git a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse multiple compiler flags with input files in the middle.js b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse multiple compiler flags with input files in the middle.js index 6dd0ef5b372dc..70d0d9717ad7a 100644 --- a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse multiple compiler flags with input files in the middle.js +++ b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse multiple compiler flags with input files in the middle.js @@ -1,12 +1,12 @@ --module commonjs --target es5 0.ts --lib es5,es2015.symbol.wellknown CompilerOptions:: { - "module": 1, - "target": 1, - "lib": [ - "lib.es5.d.ts", - "lib.es2015.symbol.wellknown.d.ts" - ] + "module": 1, + "target": 1, + "lib": [ + "lib.es5.d.ts", + "lib.es2015.symbol.wellknown.d.ts" + ] } WatchOptions:: diff --git a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse multiple library compiler flags .js b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse multiple library compiler flags .js index fe6bf903acfca..05ce1830e873f 100644 --- a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse multiple library compiler flags .js +++ b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse multiple library compiler flags .js @@ -1,12 +1,12 @@ --module commonjs --target es5 --lib es5 0.ts --lib es2015.core, es2015.symbol.wellknown CompilerOptions:: { - "module": 1, - "target": 1, - "lib": [ - "lib.es2015.core.d.ts", - "lib.es2015.symbol.wellknown.d.ts" - ] + "module": 1, + "target": 1, + "lib": [ + "lib.es2015.core.d.ts", + "lib.es2015.symbol.wellknown.d.ts" + ] } WatchOptions:: diff --git a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse multiple options of library flags.js b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse multiple options of library flags.js index 02be8361d616c..c87030253b98b 100644 --- a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse multiple options of library flags.js +++ b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse multiple options of library flags.js @@ -1,10 +1,10 @@ --lib es5,es2015.symbol.wellknown 0.ts CompilerOptions:: { - "lib": [ - "lib.es5.d.ts", - "lib.es2015.symbol.wellknown.d.ts" - ] + "lib": [ + "lib.es5.d.ts", + "lib.es2015.symbol.wellknown.d.ts" + ] } WatchOptions:: diff --git a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse non boolean argument after boolean flag.js b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse non boolean argument after boolean flag.js index f170c944b910d..4cde82a9f26cf 100644 --- a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse non boolean argument after boolean flag.js +++ b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse non boolean argument after boolean flag.js @@ -1,7 +1,7 @@ --noImplicitAny t 0.ts CompilerOptions:: { - "noImplicitAny": true + "noImplicitAny": true } WatchOptions:: diff --git a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse single option of library flag.js b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse single option of library flag.js index 085396bb590ef..3366550df6c53 100644 --- a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse single option of library flag.js +++ b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse single option of library flag.js @@ -1,9 +1,9 @@ --lib es6 0.ts CompilerOptions:: { - "lib": [ - "lib.es2015.d.ts" - ] + "lib": [ + "lib.es2015.d.ts" + ] } WatchOptions:: diff --git a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/allows setting option type boolean to false.js b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/allows setting option type boolean to false.js index f030755d829ca..e4240cbaeb0d3 100644 --- a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/allows setting option type boolean to false.js +++ b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/allows setting option type boolean to false.js @@ -1,7 +1,7 @@ --composite false 0.ts CompilerOptions:: { - "composite": false + "composite": false } WatchOptions:: diff --git a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/errors on invalid excludeDirectories.js b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/errors on invalid excludeDirectories.js index fbe68473c5a5b..81440b194dcc9 100644 --- a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/errors on invalid excludeDirectories.js +++ b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/errors on invalid excludeDirectories.js @@ -3,7 +3,7 @@ CompilerOptions:: {} WatchOptions:: { - "excludeDirectories": [] + "excludeDirectories": [] } FileNames:: 0.ts diff --git a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/errors on invalid excludeFiles.js b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/errors on invalid excludeFiles.js index 83588c628de48..600514be1e6d7 100644 --- a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/errors on invalid excludeFiles.js +++ b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/errors on invalid excludeFiles.js @@ -3,7 +3,7 @@ CompilerOptions:: {} WatchOptions:: { - "excludeFiles": [] + "excludeFiles": [] } FileNames:: 0.ts diff --git a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/option of type boolean errors if its followed by another option.js b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/option of type boolean errors if its followed by another option.js index 7c257fe64a8b7..eef5f3c471181 100644 --- a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/option of type boolean errors if its followed by another option.js +++ b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/option of type boolean errors if its followed by another option.js @@ -1,7 +1,7 @@ 0.ts --strictNullChecks --composite CompilerOptions:: { - "strictNullChecks": true + "strictNullChecks": true } WatchOptions:: diff --git a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/option of type custom map errors if its followed by another option.js b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/option of type custom map errors if its followed by another option.js index c37d4e514708f..d217cefd02935 100644 --- a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/option of type custom map errors if its followed by another option.js +++ b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/option of type custom map errors if its followed by another option.js @@ -1,7 +1,7 @@ 0.ts --strictNullChecks --optionName CompilerOptions:: { - "strictNullChecks": true + "strictNullChecks": true } WatchOptions:: diff --git a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/option of type list errors if its followed by another option.js b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/option of type list errors if its followed by another option.js index 66cf451885b78..40478b9d0f291 100644 --- a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/option of type list errors if its followed by another option.js +++ b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/option of type list errors if its followed by another option.js @@ -1,7 +1,7 @@ 0.ts --strictNullChecks --rootDirs CompilerOptions:: { - "strictNullChecks": true + "strictNullChecks": true } WatchOptions:: diff --git a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/option of type number errors if its followed by another option.js b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/option of type number errors if its followed by another option.js index c37d4e514708f..d217cefd02935 100644 --- a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/option of type number errors if its followed by another option.js +++ b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/option of type number errors if its followed by another option.js @@ -1,7 +1,7 @@ 0.ts --strictNullChecks --optionName CompilerOptions:: { - "strictNullChecks": true + "strictNullChecks": true } WatchOptions:: diff --git a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/option of type object errors if its followed by another option.js b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/option of type object errors if its followed by another option.js index f7fe0fb368ee6..3d791c023b876 100644 --- a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/option of type object errors if its followed by another option.js +++ b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/option of type object errors if its followed by another option.js @@ -1,7 +1,7 @@ 0.ts --strictNullChecks --paths CompilerOptions:: { - "strictNullChecks": true + "strictNullChecks": true } WatchOptions:: diff --git a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/option of type string errors if its followed by another option.js b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/option of type string errors if its followed by another option.js index c37d4e514708f..d217cefd02935 100644 --- a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/option of type string errors if its followed by another option.js +++ b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/option of type string errors if its followed by another option.js @@ -1,7 +1,7 @@ 0.ts --strictNullChecks --optionName CompilerOptions:: { - "strictNullChecks": true + "strictNullChecks": true } WatchOptions:: diff --git a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/parse --excludeDirectories.js b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/parse --excludeDirectories.js index 4c27ef1ace0e0..d3e5566dd218b 100644 --- a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/parse --excludeDirectories.js +++ b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/parse --excludeDirectories.js @@ -3,9 +3,9 @@ CompilerOptions:: {} WatchOptions:: { - "excludeDirectories": [ - "**/temp" - ] + "excludeDirectories": [ + "**/temp" + ] } FileNames:: 0.ts diff --git a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/parse --excludeFiles.js b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/parse --excludeFiles.js index 0ec40cbf6a32b..bae68213457f7 100644 --- a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/parse --excludeFiles.js +++ b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/parse --excludeFiles.js @@ -3,9 +3,9 @@ CompilerOptions:: {} WatchOptions:: { - "excludeFiles": [ - "**/temp/*.ts" - ] + "excludeFiles": [ + "**/temp/*.ts" + ] } FileNames:: 0.ts diff --git a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/parse --fallbackPolling.js b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/parse --fallbackPolling.js index 3380894332710..ca162171068b3 100644 --- a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/parse --fallbackPolling.js +++ b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/parse --fallbackPolling.js @@ -3,7 +3,7 @@ CompilerOptions:: {} WatchOptions:: { - "fallbackPolling": 1 + "fallbackPolling": 1 } FileNames:: 0.ts diff --git a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/parse --incremental.js b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/parse --incremental.js index d2abf3408a1fc..c54bdd1cf83af 100644 --- a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/parse --incremental.js +++ b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/parse --incremental.js @@ -1,7 +1,7 @@ --incremental 0.ts CompilerOptions:: { - "incremental": true + "incremental": true } WatchOptions:: diff --git a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/parse --synchronousWatchDirectory.js b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/parse --synchronousWatchDirectory.js index c8dbf2744c9a7..e42bb1b9a6d9f 100644 --- a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/parse --synchronousWatchDirectory.js +++ b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/parse --synchronousWatchDirectory.js @@ -3,7 +3,7 @@ CompilerOptions:: {} WatchOptions:: { - "synchronousWatchDirectory": true + "synchronousWatchDirectory": true } FileNames:: 0.ts diff --git a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/parse --tsBuildInfoFile.js b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/parse --tsBuildInfoFile.js index 2abe1bcc152a9..4b5f7573d1792 100644 --- a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/parse --tsBuildInfoFile.js +++ b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/parse --tsBuildInfoFile.js @@ -1,7 +1,7 @@ --tsBuildInfoFile build.tsbuildinfo 0.ts CompilerOptions:: { - "tsBuildInfoFile": "build.tsbuildinfo" + "tsBuildInfoFile": "build.tsbuildinfo" } WatchOptions:: diff --git a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/parse --watchDirectory.js b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/parse --watchDirectory.js index f2ac41de85c1f..b3adf4901f000 100644 --- a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/parse --watchDirectory.js +++ b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/parse --watchDirectory.js @@ -3,7 +3,7 @@ CompilerOptions:: {} WatchOptions:: { - "watchDirectory": 1 + "watchDirectory": 1 } FileNames:: 0.ts diff --git a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/parse --watchFile.js b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/parse --watchFile.js index 6869e6d47b0ce..a7e3a7a27e247 100644 --- a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/parse --watchFile.js +++ b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/parse --watchFile.js @@ -3,7 +3,7 @@ CompilerOptions:: {} WatchOptions:: { - "watchFile": 4 + "watchFile": 4 } FileNames:: 0.ts diff --git a/tests/baselines/reference/config/configurationExtension/adds extendedSourceFiles from an array only once under a case insensitive host.js b/tests/baselines/reference/config/configurationExtension/adds extendedSourceFiles from an array only once under a case insensitive host.js index 25df25570d0df..0a5004eb33118 100644 --- a/tests/baselines/reference/config/configurationExtension/adds extendedSourceFiles from an array only once under a case insensitive host.js +++ b/tests/baselines/reference/config/configurationExtension/adds extendedSourceFiles from an array only once under a case insensitive host.js @@ -1,99 +1,274 @@ Fs:: //// [c:/dev/circular.json] -{"extends":"./circular2","compilerOptions":{"module":"amd"}} +{ + "extends": "./circular2", + "compilerOptions": { + "module": "amd" + } +} //// [c:/dev/circular2.json] -{"extends":"./circular","compilerOptions":{"module":"commonjs"}} +{ + "extends": "./circular", + "compilerOptions": { + "module": "commonjs" + } +} //// [c:/dev/configs/base.json] -{"compilerOptions":{"allowJs":true,"noImplicitAny":true,"strictNullChecks":true}} +{ + "compilerOptions": { + "allowJs": true, + "noImplicitAny": true, + "strictNullChecks": true + } +} //// [c:/dev/configs/extendsArrayFifth.json] -{"extends":["./extendsArrayFirst","./extendsArraySecond","./extendsArrayThird","./extendsArrayFourth"],"files":[]} +{ + "extends": [ + "./extendsArrayFirst", + "./extendsArraySecond", + "./extendsArrayThird", + "./extendsArrayFourth" + ], + "files": [] +} //// [c:/dev/configs/extendsArrayFirst.json] -{"compilerOptions":{"allowJs":true,"noImplicitAny":true,"strictNullChecks":true}} +{ + "compilerOptions": { + "allowJs": true, + "noImplicitAny": true, + "strictNullChecks": true + } +} //// [c:/dev/configs/extendsArrayFourth.json] -{"compilerOptions":{"module":"system","strictNullChecks":false},"include":null,"files":["../main.ts"]} +{ + "compilerOptions": { + "module": "system", + "strictNullChecks": false + }, + "include": null, + "files": [ + "../main.ts" + ] +} //// [c:/dev/configs/extendsArraySecond.json] -{"compilerOptions":{"module":"amd"},"include":["../supplemental.*"]} +{ + "compilerOptions": { + "module": "amd" + }, + "include": [ + "../supplemental.*" + ] +} //// [c:/dev/configs/extendsArrayThird.json] -{"compilerOptions":{"module":null,"noImplicitAny":false},"extends":"./extendsArrayFirst","include":["../supplemental.*"]} +{ + "compilerOptions": { + "module": null, + "noImplicitAny": false + }, + "extends": "./extendsArrayFirst", + "include": [ + "../supplemental.*" + ] +} //// [c:/dev/configs/fifth.json] -{"extends":"./fourth","include":["../tests/utils.ts"],"files":[]} +{ + "extends": "./fourth", + "include": [ + "../tests/utils.ts" + ], + "files": [] +} //// [c:/dev/configs/first.json] -{"extends":"./base","compilerOptions":{"module":"commonjs"},"files":["../main.ts"]} +{ + "extends": "./base", + "compilerOptions": { + "module": "commonjs" + }, + "files": [ + "../main.ts" + ] +} //// [c:/dev/configs/fourth.json] -{"extends":"./third","compilerOptions":{"module":"system"},"include":null,"files":["../main.ts"]} +{ + "extends": "./third", + "compilerOptions": { + "module": "system" + }, + "include": null, + "files": [ + "../main.ts" + ] +} //// [c:/dev/configs/second.json] -{"extends":"./base","compilerOptions":{"module":"amd"},"include":["../supplemental.*"]} +{ + "extends": "./base", + "compilerOptions": { + "module": "amd" + }, + "include": [ + "../supplemental.*" + ] +} //// [c:/dev/configs/tests.json] -{"compilerOptions":{"preserveConstEnums":true,"removeComments":false,"sourceMap":true},"exclude":["../tests/baselines","../tests/scenarios"],"include":["../tests/**/*.ts"]} +{ + "compilerOptions": { + "preserveConstEnums": true, + "removeComments": false, + "sourceMap": true + }, + "exclude": [ + "../tests/baselines", + "../tests/scenarios" + ], + "include": [ + "../tests/**/*.ts" + ] +} //// [c:/dev/configs/third.json] -{"extends":"./second","compilerOptions":{"module":null},"include":["../supplemental.*"]} +{ + "extends": "./second", + "compilerOptions": { + "module": null + }, + "include": [ + "../supplemental.*" + ] +} //// [c:/dev/extends.json] -{"extends":42} +{ + "extends": 42 +} //// [c:/dev/extends2.json] -{"extends":"configs/base"} +{ + "extends": "configs/base" +} //// [c:/dev/extends3.json] -{"extends":""} +{ + "extends": "" +} //// [c:/dev/extends4.json] -{"extends":[""]} +{ + "extends": [ + "" + ] +} //// [c:/dev/extendsArrayFails.json] -{"extends":["./missingFile"],"compilerOptions":{"types":[]}} +{ + "extends": [ + "./missingFile" + ], + "compilerOptions": { + "types": [] + } +} //// [c:/dev/extendsArrayFails2.json] -{"extends":[42]} +{ + "extends": [ + 42 + ] +} //// [c:/dev/failure.json] -{"extends":"./failure2.json","compilerOptions":{"typeRoots":[]}} +{ + "extends": "./failure2.json", + "compilerOptions": { + "typeRoots": [] + } +} //// [c:/dev/failure2.json] -{"excludes":["*.js"]} +{ + "excludes": [ + "*.js" + ] +} //// [c:/dev/main.ts] //// [c:/dev/missing.json] -{"extends":"./missing2","compilerOptions":{"types":[]}} +{ + "extends": "./missing2", + "compilerOptions": { + "types": [] + } +} //// [c:/dev/node_modules/@foo/tsconfig/package.json] -{"name":"@foo/tsconfig","version":"1.0.0","exports":{".":"./src/tsconfig.json"}} +{ + "name": "@foo/tsconfig", + "version": "1.0.0", + "exports": { + ".": "./src/tsconfig.json" + } +} //// [c:/dev/node_modules/@foo/tsconfig/src/tsconfig.json] -{"compilerOptions":{"strict":true}} +{ + "compilerOptions": { + "strict": true + } +} //// [c:/dev/node_modules/config-box/package.json] -{"name":"config-box","version":"1.0.0","tsconfig":"./strict.json"} +{ + "name": "config-box", + "version": "1.0.0", + "tsconfig": "./strict.json" +} //// [c:/dev/node_modules/config-box/strict.json] -{"compilerOptions":{"strict":true}} +{ + "compilerOptions": { + "strict": true + } +} //// [c:/dev/node_modules/config-box/unstrict.json] -{"compilerOptions":{"strict":false}} +{ + "compilerOptions": { + "strict": false + } +} //// [c:/dev/node_modules/config-box-implied/package.json] -{"name":"config-box-implied","version":"1.0.0"} +{ + "name": "config-box-implied", + "version": "1.0.0" +} //// [c:/dev/node_modules/config-box-implied/tsconfig.json] -{"compilerOptions":{"strict":true}} +{ + "compilerOptions": { + "strict": true + } +} //// [c:/dev/node_modules/config-box-implied/unstrict/tsconfig.json] -{"compilerOptions":{"strict":false}} +{ + "compilerOptions": { + "strict": false + } +} //// [c:/dev/supplemental.ts] @@ -111,37 +286,93 @@ Fs:: //// [c:/dev/tsconfig.extendsBox.json] -{"extends":"config-box","files":["main.ts"]} +{ + "extends": "config-box", + "files": [ + "main.ts" + ] +} //// [c:/dev/tsconfig.extendsBoxImplied.json] -{"extends":"config-box-implied","files":["main.ts"]} +{ + "extends": "config-box-implied", + "files": [ + "main.ts" + ] +} //// [c:/dev/tsconfig.extendsBoxImpliedPath.json] -{"extends":"config-box-implied/tsconfig.json","files":["main.ts"]} +{ + "extends": "config-box-implied/tsconfig.json", + "files": [ + "main.ts" + ] +} //// [c:/dev/tsconfig.extendsBoxImpliedUnstrict.json] -{"extends":"config-box-implied/unstrict","files":["main.ts"]} +{ + "extends": "config-box-implied/unstrict", + "files": [ + "main.ts" + ] +} //// [c:/dev/tsconfig.extendsBoxImpliedUnstrictExtension.json] -{"extends":"config-box-implied/unstrict/tsconfig","files":["main.ts"]} +{ + "extends": "config-box-implied/unstrict/tsconfig", + "files": [ + "main.ts" + ] +} //// [c:/dev/tsconfig.extendsFoo.json] -{"extends":"@foo/tsconfig","files":["main.ts"]} +{ + "extends": "@foo/tsconfig", + "files": [ + "main.ts" + ] +} //// [c:/dev/tsconfig.extendsStrict.json] -{"extends":"config-box/strict","files":["main.ts"]} +{ + "extends": "config-box/strict", + "files": [ + "main.ts" + ] +} //// [c:/dev/tsconfig.extendsStrictExtension.json] -{"extends":"config-box/strict.json","files":["main.ts"]} +{ + "extends": "config-box/strict.json", + "files": [ + "main.ts" + ] +} //// [c:/dev/tsconfig.extendsUnStrict.json] -{"extends":"config-box/unstrict","files":["main.ts"]} +{ + "extends": "config-box/unstrict", + "files": [ + "main.ts" + ] +} //// [c:/dev/tsconfig.json] -{"extends":"./configs/base","files":["main.ts","supplemental.ts"]} +{ + "extends": "./configs/base", + "files": [ + "main.ts", + "supplemental.ts" + ] +} //// [c:/dev/tsconfig.nostrictnull.json] -{"extends":"./tsconfig","compilerOptions":{"strictNullChecks":false}} +{ + "extends": "./tsconfig", + "compilerOptions": { + "strictNullChecks": false + } +} configFileName:: adds extendedSourceFiles from an array only once diff --git a/tests/baselines/reference/config/configurationExtension/adds extendedSourceFiles from an array only once under a case sensitive host.js b/tests/baselines/reference/config/configurationExtension/adds extendedSourceFiles from an array only once under a case sensitive host.js index 8abed829c1535..7bfedca3af8f4 100644 --- a/tests/baselines/reference/config/configurationExtension/adds extendedSourceFiles from an array only once under a case sensitive host.js +++ b/tests/baselines/reference/config/configurationExtension/adds extendedSourceFiles from an array only once under a case sensitive host.js @@ -1,99 +1,274 @@ Fs:: //// [/dev/circular.json] -{"extends":"./circular2","compilerOptions":{"module":"amd"}} +{ + "extends": "./circular2", + "compilerOptions": { + "module": "amd" + } +} //// [/dev/circular2.json] -{"extends":"./circular","compilerOptions":{"module":"commonjs"}} +{ + "extends": "./circular", + "compilerOptions": { + "module": "commonjs" + } +} //// [/dev/configs/base.json] -{"compilerOptions":{"allowJs":true,"noImplicitAny":true,"strictNullChecks":true}} +{ + "compilerOptions": { + "allowJs": true, + "noImplicitAny": true, + "strictNullChecks": true + } +} //// [/dev/configs/extendsArrayFifth.json] -{"extends":["./extendsArrayFirst","./extendsArraySecond","./extendsArrayThird","./extendsArrayFourth"],"files":[]} +{ + "extends": [ + "./extendsArrayFirst", + "./extendsArraySecond", + "./extendsArrayThird", + "./extendsArrayFourth" + ], + "files": [] +} //// [/dev/configs/extendsArrayFirst.json] -{"compilerOptions":{"allowJs":true,"noImplicitAny":true,"strictNullChecks":true}} +{ + "compilerOptions": { + "allowJs": true, + "noImplicitAny": true, + "strictNullChecks": true + } +} //// [/dev/configs/extendsArrayFourth.json] -{"compilerOptions":{"module":"system","strictNullChecks":false},"include":null,"files":["../main.ts"]} +{ + "compilerOptions": { + "module": "system", + "strictNullChecks": false + }, + "include": null, + "files": [ + "../main.ts" + ] +} //// [/dev/configs/extendsArraySecond.json] -{"compilerOptions":{"module":"amd"},"include":["../supplemental.*"]} +{ + "compilerOptions": { + "module": "amd" + }, + "include": [ + "../supplemental.*" + ] +} //// [/dev/configs/extendsArrayThird.json] -{"compilerOptions":{"module":null,"noImplicitAny":false},"extends":"./extendsArrayFirst","include":["../supplemental.*"]} +{ + "compilerOptions": { + "module": null, + "noImplicitAny": false + }, + "extends": "./extendsArrayFirst", + "include": [ + "../supplemental.*" + ] +} //// [/dev/configs/fifth.json] -{"extends":"./fourth","include":["../tests/utils.ts"],"files":[]} +{ + "extends": "./fourth", + "include": [ + "../tests/utils.ts" + ], + "files": [] +} //// [/dev/configs/first.json] -{"extends":"./base","compilerOptions":{"module":"commonjs"},"files":["../main.ts"]} +{ + "extends": "./base", + "compilerOptions": { + "module": "commonjs" + }, + "files": [ + "../main.ts" + ] +} //// [/dev/configs/fourth.json] -{"extends":"./third","compilerOptions":{"module":"system"},"include":null,"files":["../main.ts"]} +{ + "extends": "./third", + "compilerOptions": { + "module": "system" + }, + "include": null, + "files": [ + "../main.ts" + ] +} //// [/dev/configs/second.json] -{"extends":"./base","compilerOptions":{"module":"amd"},"include":["../supplemental.*"]} +{ + "extends": "./base", + "compilerOptions": { + "module": "amd" + }, + "include": [ + "../supplemental.*" + ] +} //// [/dev/configs/tests.json] -{"compilerOptions":{"preserveConstEnums":true,"removeComments":false,"sourceMap":true},"exclude":["../tests/baselines","../tests/scenarios"],"include":["../tests/**/*.ts"]} +{ + "compilerOptions": { + "preserveConstEnums": true, + "removeComments": false, + "sourceMap": true + }, + "exclude": [ + "../tests/baselines", + "../tests/scenarios" + ], + "include": [ + "../tests/**/*.ts" + ] +} //// [/dev/configs/third.json] -{"extends":"./second","compilerOptions":{"module":null},"include":["../supplemental.*"]} +{ + "extends": "./second", + "compilerOptions": { + "module": null + }, + "include": [ + "../supplemental.*" + ] +} //// [/dev/extends.json] -{"extends":42} +{ + "extends": 42 +} //// [/dev/extends2.json] -{"extends":"configs/base"} +{ + "extends": "configs/base" +} //// [/dev/extends3.json] -{"extends":""} +{ + "extends": "" +} //// [/dev/extends4.json] -{"extends":[""]} +{ + "extends": [ + "" + ] +} //// [/dev/extendsArrayFails.json] -{"extends":["./missingFile"],"compilerOptions":{"types":[]}} +{ + "extends": [ + "./missingFile" + ], + "compilerOptions": { + "types": [] + } +} //// [/dev/extendsArrayFails2.json] -{"extends":[42]} +{ + "extends": [ + 42 + ] +} //// [/dev/failure.json] -{"extends":"./failure2.json","compilerOptions":{"typeRoots":[]}} +{ + "extends": "./failure2.json", + "compilerOptions": { + "typeRoots": [] + } +} //// [/dev/failure2.json] -{"excludes":["*.js"]} +{ + "excludes": [ + "*.js" + ] +} //// [/dev/main.ts] //// [/dev/missing.json] -{"extends":"./missing2","compilerOptions":{"types":[]}} +{ + "extends": "./missing2", + "compilerOptions": { + "types": [] + } +} //// [/dev/node_modules/@foo/tsconfig/package.json] -{"name":"@foo/tsconfig","version":"1.0.0","exports":{".":"./src/tsconfig.json"}} +{ + "name": "@foo/tsconfig", + "version": "1.0.0", + "exports": { + ".": "./src/tsconfig.json" + } +} //// [/dev/node_modules/@foo/tsconfig/src/tsconfig.json] -{"compilerOptions":{"strict":true}} +{ + "compilerOptions": { + "strict": true + } +} //// [/dev/node_modules/config-box/package.json] -{"name":"config-box","version":"1.0.0","tsconfig":"./strict.json"} +{ + "name": "config-box", + "version": "1.0.0", + "tsconfig": "./strict.json" +} //// [/dev/node_modules/config-box/strict.json] -{"compilerOptions":{"strict":true}} +{ + "compilerOptions": { + "strict": true + } +} //// [/dev/node_modules/config-box/unstrict.json] -{"compilerOptions":{"strict":false}} +{ + "compilerOptions": { + "strict": false + } +} //// [/dev/node_modules/config-box-implied/package.json] -{"name":"config-box-implied","version":"1.0.0"} +{ + "name": "config-box-implied", + "version": "1.0.0" +} //// [/dev/node_modules/config-box-implied/tsconfig.json] -{"compilerOptions":{"strict":true}} +{ + "compilerOptions": { + "strict": true + } +} //// [/dev/node_modules/config-box-implied/unstrict/tsconfig.json] -{"compilerOptions":{"strict":false}} +{ + "compilerOptions": { + "strict": false + } +} //// [/dev/supplemental.ts] @@ -111,37 +286,93 @@ Fs:: //// [/dev/tsconfig.extendsBox.json] -{"extends":"config-box","files":["main.ts"]} +{ + "extends": "config-box", + "files": [ + "main.ts" + ] +} //// [/dev/tsconfig.extendsBoxImplied.json] -{"extends":"config-box-implied","files":["main.ts"]} +{ + "extends": "config-box-implied", + "files": [ + "main.ts" + ] +} //// [/dev/tsconfig.extendsBoxImpliedPath.json] -{"extends":"config-box-implied/tsconfig.json","files":["main.ts"]} +{ + "extends": "config-box-implied/tsconfig.json", + "files": [ + "main.ts" + ] +} //// [/dev/tsconfig.extendsBoxImpliedUnstrict.json] -{"extends":"config-box-implied/unstrict","files":["main.ts"]} +{ + "extends": "config-box-implied/unstrict", + "files": [ + "main.ts" + ] +} //// [/dev/tsconfig.extendsBoxImpliedUnstrictExtension.json] -{"extends":"config-box-implied/unstrict/tsconfig","files":["main.ts"]} +{ + "extends": "config-box-implied/unstrict/tsconfig", + "files": [ + "main.ts" + ] +} //// [/dev/tsconfig.extendsFoo.json] -{"extends":"@foo/tsconfig","files":["main.ts"]} +{ + "extends": "@foo/tsconfig", + "files": [ + "main.ts" + ] +} //// [/dev/tsconfig.extendsStrict.json] -{"extends":"config-box/strict","files":["main.ts"]} +{ + "extends": "config-box/strict", + "files": [ + "main.ts" + ] +} //// [/dev/tsconfig.extendsStrictExtension.json] -{"extends":"config-box/strict.json","files":["main.ts"]} +{ + "extends": "config-box/strict.json", + "files": [ + "main.ts" + ] +} //// [/dev/tsconfig.extendsUnStrict.json] -{"extends":"config-box/unstrict","files":["main.ts"]} +{ + "extends": "config-box/unstrict", + "files": [ + "main.ts" + ] +} //// [/dev/tsconfig.json] -{"extends":"./configs/base","files":["main.ts","supplemental.ts"]} +{ + "extends": "./configs/base", + "files": [ + "main.ts", + "supplemental.ts" + ] +} //// [/dev/tsconfig.nostrictnull.json] -{"extends":"./tsconfig","compilerOptions":{"strictNullChecks":false}} +{ + "extends": "./tsconfig", + "compilerOptions": { + "strictNullChecks": false + } +} configFileName:: adds extendedSourceFiles from an array only once diff --git a/tests/baselines/reference/config/configurationExtension/adds extendedSourceFiles only once under a case insensitive host.js b/tests/baselines/reference/config/configurationExtension/adds extendedSourceFiles only once under a case insensitive host.js index d65f68384f02e..6436a84efb14a 100644 --- a/tests/baselines/reference/config/configurationExtension/adds extendedSourceFiles only once under a case insensitive host.js +++ b/tests/baselines/reference/config/configurationExtension/adds extendedSourceFiles only once under a case insensitive host.js @@ -1,99 +1,274 @@ Fs:: //// [c:/dev/circular.json] -{"extends":"./circular2","compilerOptions":{"module":"amd"}} +{ + "extends": "./circular2", + "compilerOptions": { + "module": "amd" + } +} //// [c:/dev/circular2.json] -{"extends":"./circular","compilerOptions":{"module":"commonjs"}} +{ + "extends": "./circular", + "compilerOptions": { + "module": "commonjs" + } +} //// [c:/dev/configs/base.json] -{"compilerOptions":{"allowJs":true,"noImplicitAny":true,"strictNullChecks":true}} +{ + "compilerOptions": { + "allowJs": true, + "noImplicitAny": true, + "strictNullChecks": true + } +} //// [c:/dev/configs/extendsArrayFifth.json] -{"extends":["./extendsArrayFirst","./extendsArraySecond","./extendsArrayThird","./extendsArrayFourth"],"files":[]} +{ + "extends": [ + "./extendsArrayFirst", + "./extendsArraySecond", + "./extendsArrayThird", + "./extendsArrayFourth" + ], + "files": [] +} //// [c:/dev/configs/extendsArrayFirst.json] -{"compilerOptions":{"allowJs":true,"noImplicitAny":true,"strictNullChecks":true}} +{ + "compilerOptions": { + "allowJs": true, + "noImplicitAny": true, + "strictNullChecks": true + } +} //// [c:/dev/configs/extendsArrayFourth.json] -{"compilerOptions":{"module":"system","strictNullChecks":false},"include":null,"files":["../main.ts"]} +{ + "compilerOptions": { + "module": "system", + "strictNullChecks": false + }, + "include": null, + "files": [ + "../main.ts" + ] +} //// [c:/dev/configs/extendsArraySecond.json] -{"compilerOptions":{"module":"amd"},"include":["../supplemental.*"]} +{ + "compilerOptions": { + "module": "amd" + }, + "include": [ + "../supplemental.*" + ] +} //// [c:/dev/configs/extendsArrayThird.json] -{"compilerOptions":{"module":null,"noImplicitAny":false},"extends":"./extendsArrayFirst","include":["../supplemental.*"]} +{ + "compilerOptions": { + "module": null, + "noImplicitAny": false + }, + "extends": "./extendsArrayFirst", + "include": [ + "../supplemental.*" + ] +} //// [c:/dev/configs/fifth.json] -{"extends":"./fourth","include":["../tests/utils.ts"],"files":[]} +{ + "extends": "./fourth", + "include": [ + "../tests/utils.ts" + ], + "files": [] +} //// [c:/dev/configs/first.json] -{"extends":"./base","compilerOptions":{"module":"commonjs"},"files":["../main.ts"]} +{ + "extends": "./base", + "compilerOptions": { + "module": "commonjs" + }, + "files": [ + "../main.ts" + ] +} //// [c:/dev/configs/fourth.json] -{"extends":"./third","compilerOptions":{"module":"system"},"include":null,"files":["../main.ts"]} +{ + "extends": "./third", + "compilerOptions": { + "module": "system" + }, + "include": null, + "files": [ + "../main.ts" + ] +} //// [c:/dev/configs/second.json] -{"extends":"./base","compilerOptions":{"module":"amd"},"include":["../supplemental.*"]} +{ + "extends": "./base", + "compilerOptions": { + "module": "amd" + }, + "include": [ + "../supplemental.*" + ] +} //// [c:/dev/configs/tests.json] -{"compilerOptions":{"preserveConstEnums":true,"removeComments":false,"sourceMap":true},"exclude":["../tests/baselines","../tests/scenarios"],"include":["../tests/**/*.ts"]} +{ + "compilerOptions": { + "preserveConstEnums": true, + "removeComments": false, + "sourceMap": true + }, + "exclude": [ + "../tests/baselines", + "../tests/scenarios" + ], + "include": [ + "../tests/**/*.ts" + ] +} //// [c:/dev/configs/third.json] -{"extends":"./second","compilerOptions":{"module":null},"include":["../supplemental.*"]} +{ + "extends": "./second", + "compilerOptions": { + "module": null + }, + "include": [ + "../supplemental.*" + ] +} //// [c:/dev/extends.json] -{"extends":42} +{ + "extends": 42 +} //// [c:/dev/extends2.json] -{"extends":"configs/base"} +{ + "extends": "configs/base" +} //// [c:/dev/extends3.json] -{"extends":""} +{ + "extends": "" +} //// [c:/dev/extends4.json] -{"extends":[""]} +{ + "extends": [ + "" + ] +} //// [c:/dev/extendsArrayFails.json] -{"extends":["./missingFile"],"compilerOptions":{"types":[]}} +{ + "extends": [ + "./missingFile" + ], + "compilerOptions": { + "types": [] + } +} //// [c:/dev/extendsArrayFails2.json] -{"extends":[42]} +{ + "extends": [ + 42 + ] +} //// [c:/dev/failure.json] -{"extends":"./failure2.json","compilerOptions":{"typeRoots":[]}} +{ + "extends": "./failure2.json", + "compilerOptions": { + "typeRoots": [] + } +} //// [c:/dev/failure2.json] -{"excludes":["*.js"]} +{ + "excludes": [ + "*.js" + ] +} //// [c:/dev/main.ts] //// [c:/dev/missing.json] -{"extends":"./missing2","compilerOptions":{"types":[]}} +{ + "extends": "./missing2", + "compilerOptions": { + "types": [] + } +} //// [c:/dev/node_modules/@foo/tsconfig/package.json] -{"name":"@foo/tsconfig","version":"1.0.0","exports":{".":"./src/tsconfig.json"}} +{ + "name": "@foo/tsconfig", + "version": "1.0.0", + "exports": { + ".": "./src/tsconfig.json" + } +} //// [c:/dev/node_modules/@foo/tsconfig/src/tsconfig.json] -{"compilerOptions":{"strict":true}} +{ + "compilerOptions": { + "strict": true + } +} //// [c:/dev/node_modules/config-box/package.json] -{"name":"config-box","version":"1.0.0","tsconfig":"./strict.json"} +{ + "name": "config-box", + "version": "1.0.0", + "tsconfig": "./strict.json" +} //// [c:/dev/node_modules/config-box/strict.json] -{"compilerOptions":{"strict":true}} +{ + "compilerOptions": { + "strict": true + } +} //// [c:/dev/node_modules/config-box/unstrict.json] -{"compilerOptions":{"strict":false}} +{ + "compilerOptions": { + "strict": false + } +} //// [c:/dev/node_modules/config-box-implied/package.json] -{"name":"config-box-implied","version":"1.0.0"} +{ + "name": "config-box-implied", + "version": "1.0.0" +} //// [c:/dev/node_modules/config-box-implied/tsconfig.json] -{"compilerOptions":{"strict":true}} +{ + "compilerOptions": { + "strict": true + } +} //// [c:/dev/node_modules/config-box-implied/unstrict/tsconfig.json] -{"compilerOptions":{"strict":false}} +{ + "compilerOptions": { + "strict": false + } +} //// [c:/dev/supplemental.ts] @@ -111,37 +286,93 @@ Fs:: //// [c:/dev/tsconfig.extendsBox.json] -{"extends":"config-box","files":["main.ts"]} +{ + "extends": "config-box", + "files": [ + "main.ts" + ] +} //// [c:/dev/tsconfig.extendsBoxImplied.json] -{"extends":"config-box-implied","files":["main.ts"]} +{ + "extends": "config-box-implied", + "files": [ + "main.ts" + ] +} //// [c:/dev/tsconfig.extendsBoxImpliedPath.json] -{"extends":"config-box-implied/tsconfig.json","files":["main.ts"]} +{ + "extends": "config-box-implied/tsconfig.json", + "files": [ + "main.ts" + ] +} //// [c:/dev/tsconfig.extendsBoxImpliedUnstrict.json] -{"extends":"config-box-implied/unstrict","files":["main.ts"]} +{ + "extends": "config-box-implied/unstrict", + "files": [ + "main.ts" + ] +} //// [c:/dev/tsconfig.extendsBoxImpliedUnstrictExtension.json] -{"extends":"config-box-implied/unstrict/tsconfig","files":["main.ts"]} +{ + "extends": "config-box-implied/unstrict/tsconfig", + "files": [ + "main.ts" + ] +} //// [c:/dev/tsconfig.extendsFoo.json] -{"extends":"@foo/tsconfig","files":["main.ts"]} +{ + "extends": "@foo/tsconfig", + "files": [ + "main.ts" + ] +} //// [c:/dev/tsconfig.extendsStrict.json] -{"extends":"config-box/strict","files":["main.ts"]} +{ + "extends": "config-box/strict", + "files": [ + "main.ts" + ] +} //// [c:/dev/tsconfig.extendsStrictExtension.json] -{"extends":"config-box/strict.json","files":["main.ts"]} +{ + "extends": "config-box/strict.json", + "files": [ + "main.ts" + ] +} //// [c:/dev/tsconfig.extendsUnStrict.json] -{"extends":"config-box/unstrict","files":["main.ts"]} +{ + "extends": "config-box/unstrict", + "files": [ + "main.ts" + ] +} //// [c:/dev/tsconfig.json] -{"extends":"./configs/base","files":["main.ts","supplemental.ts"]} +{ + "extends": "./configs/base", + "files": [ + "main.ts", + "supplemental.ts" + ] +} //// [c:/dev/tsconfig.nostrictnull.json] -{"extends":"./tsconfig","compilerOptions":{"strictNullChecks":false}} +{ + "extends": "./tsconfig", + "compilerOptions": { + "strictNullChecks": false + } +} configFileName:: adds extendedSourceFiles only once diff --git a/tests/baselines/reference/config/configurationExtension/adds extendedSourceFiles only once under a case sensitive host.js b/tests/baselines/reference/config/configurationExtension/adds extendedSourceFiles only once under a case sensitive host.js index 06001b27e981c..896d69b9586c3 100644 --- a/tests/baselines/reference/config/configurationExtension/adds extendedSourceFiles only once under a case sensitive host.js +++ b/tests/baselines/reference/config/configurationExtension/adds extendedSourceFiles only once under a case sensitive host.js @@ -1,99 +1,274 @@ Fs:: //// [/dev/circular.json] -{"extends":"./circular2","compilerOptions":{"module":"amd"}} +{ + "extends": "./circular2", + "compilerOptions": { + "module": "amd" + } +} //// [/dev/circular2.json] -{"extends":"./circular","compilerOptions":{"module":"commonjs"}} +{ + "extends": "./circular", + "compilerOptions": { + "module": "commonjs" + } +} //// [/dev/configs/base.json] -{"compilerOptions":{"allowJs":true,"noImplicitAny":true,"strictNullChecks":true}} +{ + "compilerOptions": { + "allowJs": true, + "noImplicitAny": true, + "strictNullChecks": true + } +} //// [/dev/configs/extendsArrayFifth.json] -{"extends":["./extendsArrayFirst","./extendsArraySecond","./extendsArrayThird","./extendsArrayFourth"],"files":[]} +{ + "extends": [ + "./extendsArrayFirst", + "./extendsArraySecond", + "./extendsArrayThird", + "./extendsArrayFourth" + ], + "files": [] +} //// [/dev/configs/extendsArrayFirst.json] -{"compilerOptions":{"allowJs":true,"noImplicitAny":true,"strictNullChecks":true}} +{ + "compilerOptions": { + "allowJs": true, + "noImplicitAny": true, + "strictNullChecks": true + } +} //// [/dev/configs/extendsArrayFourth.json] -{"compilerOptions":{"module":"system","strictNullChecks":false},"include":null,"files":["../main.ts"]} +{ + "compilerOptions": { + "module": "system", + "strictNullChecks": false + }, + "include": null, + "files": [ + "../main.ts" + ] +} //// [/dev/configs/extendsArraySecond.json] -{"compilerOptions":{"module":"amd"},"include":["../supplemental.*"]} +{ + "compilerOptions": { + "module": "amd" + }, + "include": [ + "../supplemental.*" + ] +} //// [/dev/configs/extendsArrayThird.json] -{"compilerOptions":{"module":null,"noImplicitAny":false},"extends":"./extendsArrayFirst","include":["../supplemental.*"]} +{ + "compilerOptions": { + "module": null, + "noImplicitAny": false + }, + "extends": "./extendsArrayFirst", + "include": [ + "../supplemental.*" + ] +} //// [/dev/configs/fifth.json] -{"extends":"./fourth","include":["../tests/utils.ts"],"files":[]} +{ + "extends": "./fourth", + "include": [ + "../tests/utils.ts" + ], + "files": [] +} //// [/dev/configs/first.json] -{"extends":"./base","compilerOptions":{"module":"commonjs"},"files":["../main.ts"]} +{ + "extends": "./base", + "compilerOptions": { + "module": "commonjs" + }, + "files": [ + "../main.ts" + ] +} //// [/dev/configs/fourth.json] -{"extends":"./third","compilerOptions":{"module":"system"},"include":null,"files":["../main.ts"]} +{ + "extends": "./third", + "compilerOptions": { + "module": "system" + }, + "include": null, + "files": [ + "../main.ts" + ] +} //// [/dev/configs/second.json] -{"extends":"./base","compilerOptions":{"module":"amd"},"include":["../supplemental.*"]} +{ + "extends": "./base", + "compilerOptions": { + "module": "amd" + }, + "include": [ + "../supplemental.*" + ] +} //// [/dev/configs/tests.json] -{"compilerOptions":{"preserveConstEnums":true,"removeComments":false,"sourceMap":true},"exclude":["../tests/baselines","../tests/scenarios"],"include":["../tests/**/*.ts"]} +{ + "compilerOptions": { + "preserveConstEnums": true, + "removeComments": false, + "sourceMap": true + }, + "exclude": [ + "../tests/baselines", + "../tests/scenarios" + ], + "include": [ + "../tests/**/*.ts" + ] +} //// [/dev/configs/third.json] -{"extends":"./second","compilerOptions":{"module":null},"include":["../supplemental.*"]} +{ + "extends": "./second", + "compilerOptions": { + "module": null + }, + "include": [ + "../supplemental.*" + ] +} //// [/dev/extends.json] -{"extends":42} +{ + "extends": 42 +} //// [/dev/extends2.json] -{"extends":"configs/base"} +{ + "extends": "configs/base" +} //// [/dev/extends3.json] -{"extends":""} +{ + "extends": "" +} //// [/dev/extends4.json] -{"extends":[""]} +{ + "extends": [ + "" + ] +} //// [/dev/extendsArrayFails.json] -{"extends":["./missingFile"],"compilerOptions":{"types":[]}} +{ + "extends": [ + "./missingFile" + ], + "compilerOptions": { + "types": [] + } +} //// [/dev/extendsArrayFails2.json] -{"extends":[42]} +{ + "extends": [ + 42 + ] +} //// [/dev/failure.json] -{"extends":"./failure2.json","compilerOptions":{"typeRoots":[]}} +{ + "extends": "./failure2.json", + "compilerOptions": { + "typeRoots": [] + } +} //// [/dev/failure2.json] -{"excludes":["*.js"]} +{ + "excludes": [ + "*.js" + ] +} //// [/dev/main.ts] //// [/dev/missing.json] -{"extends":"./missing2","compilerOptions":{"types":[]}} +{ + "extends": "./missing2", + "compilerOptions": { + "types": [] + } +} //// [/dev/node_modules/@foo/tsconfig/package.json] -{"name":"@foo/tsconfig","version":"1.0.0","exports":{".":"./src/tsconfig.json"}} +{ + "name": "@foo/tsconfig", + "version": "1.0.0", + "exports": { + ".": "./src/tsconfig.json" + } +} //// [/dev/node_modules/@foo/tsconfig/src/tsconfig.json] -{"compilerOptions":{"strict":true}} +{ + "compilerOptions": { + "strict": true + } +} //// [/dev/node_modules/config-box/package.json] -{"name":"config-box","version":"1.0.0","tsconfig":"./strict.json"} +{ + "name": "config-box", + "version": "1.0.0", + "tsconfig": "./strict.json" +} //// [/dev/node_modules/config-box/strict.json] -{"compilerOptions":{"strict":true}} +{ + "compilerOptions": { + "strict": true + } +} //// [/dev/node_modules/config-box/unstrict.json] -{"compilerOptions":{"strict":false}} +{ + "compilerOptions": { + "strict": false + } +} //// [/dev/node_modules/config-box-implied/package.json] -{"name":"config-box-implied","version":"1.0.0"} +{ + "name": "config-box-implied", + "version": "1.0.0" +} //// [/dev/node_modules/config-box-implied/tsconfig.json] -{"compilerOptions":{"strict":true}} +{ + "compilerOptions": { + "strict": true + } +} //// [/dev/node_modules/config-box-implied/unstrict/tsconfig.json] -{"compilerOptions":{"strict":false}} +{ + "compilerOptions": { + "strict": false + } +} //// [/dev/supplemental.ts] @@ -111,37 +286,93 @@ Fs:: //// [/dev/tsconfig.extendsBox.json] -{"extends":"config-box","files":["main.ts"]} +{ + "extends": "config-box", + "files": [ + "main.ts" + ] +} //// [/dev/tsconfig.extendsBoxImplied.json] -{"extends":"config-box-implied","files":["main.ts"]} +{ + "extends": "config-box-implied", + "files": [ + "main.ts" + ] +} //// [/dev/tsconfig.extendsBoxImpliedPath.json] -{"extends":"config-box-implied/tsconfig.json","files":["main.ts"]} +{ + "extends": "config-box-implied/tsconfig.json", + "files": [ + "main.ts" + ] +} //// [/dev/tsconfig.extendsBoxImpliedUnstrict.json] -{"extends":"config-box-implied/unstrict","files":["main.ts"]} +{ + "extends": "config-box-implied/unstrict", + "files": [ + "main.ts" + ] +} //// [/dev/tsconfig.extendsBoxImpliedUnstrictExtension.json] -{"extends":"config-box-implied/unstrict/tsconfig","files":["main.ts"]} +{ + "extends": "config-box-implied/unstrict/tsconfig", + "files": [ + "main.ts" + ] +} //// [/dev/tsconfig.extendsFoo.json] -{"extends":"@foo/tsconfig","files":["main.ts"]} +{ + "extends": "@foo/tsconfig", + "files": [ + "main.ts" + ] +} //// [/dev/tsconfig.extendsStrict.json] -{"extends":"config-box/strict","files":["main.ts"]} +{ + "extends": "config-box/strict", + "files": [ + "main.ts" + ] +} //// [/dev/tsconfig.extendsStrictExtension.json] -{"extends":"config-box/strict.json","files":["main.ts"]} +{ + "extends": "config-box/strict.json", + "files": [ + "main.ts" + ] +} //// [/dev/tsconfig.extendsUnStrict.json] -{"extends":"config-box/unstrict","files":["main.ts"]} +{ + "extends": "config-box/unstrict", + "files": [ + "main.ts" + ] +} //// [/dev/tsconfig.json] -{"extends":"./configs/base","files":["main.ts","supplemental.ts"]} +{ + "extends": "./configs/base", + "files": [ + "main.ts", + "supplemental.ts" + ] +} //// [/dev/tsconfig.nostrictnull.json] -{"extends":"./tsconfig","compilerOptions":{"strictNullChecks":false}} +{ + "extends": "./tsconfig", + "compilerOptions": { + "strictNullChecks": false + } +} configFileName:: adds extendedSourceFiles only once diff --git a/tests/baselines/reference/config/configurationExtension/under a case insensitive host with json api.js b/tests/baselines/reference/config/configurationExtension/under a case insensitive host with json api.js index 50a875b2cd864..3fee8ffedb325 100644 --- a/tests/baselines/reference/config/configurationExtension/under a case insensitive host with json api.js +++ b/tests/baselines/reference/config/configurationExtension/under a case insensitive host with json api.js @@ -1,99 +1,274 @@ Fs:: //// [c:/dev/circular.json] -{"extends":"./circular2","compilerOptions":{"module":"amd"}} +{ + "extends": "./circular2", + "compilerOptions": { + "module": "amd" + } +} //// [c:/dev/circular2.json] -{"extends":"./circular","compilerOptions":{"module":"commonjs"}} +{ + "extends": "./circular", + "compilerOptions": { + "module": "commonjs" + } +} //// [c:/dev/configs/base.json] -{"compilerOptions":{"allowJs":true,"noImplicitAny":true,"strictNullChecks":true}} +{ + "compilerOptions": { + "allowJs": true, + "noImplicitAny": true, + "strictNullChecks": true + } +} //// [c:/dev/configs/extendsArrayFifth.json] -{"extends":["./extendsArrayFirst","./extendsArraySecond","./extendsArrayThird","./extendsArrayFourth"],"files":[]} +{ + "extends": [ + "./extendsArrayFirst", + "./extendsArraySecond", + "./extendsArrayThird", + "./extendsArrayFourth" + ], + "files": [] +} //// [c:/dev/configs/extendsArrayFirst.json] -{"compilerOptions":{"allowJs":true,"noImplicitAny":true,"strictNullChecks":true}} +{ + "compilerOptions": { + "allowJs": true, + "noImplicitAny": true, + "strictNullChecks": true + } +} //// [c:/dev/configs/extendsArrayFourth.json] -{"compilerOptions":{"module":"system","strictNullChecks":false},"include":null,"files":["../main.ts"]} +{ + "compilerOptions": { + "module": "system", + "strictNullChecks": false + }, + "include": null, + "files": [ + "../main.ts" + ] +} //// [c:/dev/configs/extendsArraySecond.json] -{"compilerOptions":{"module":"amd"},"include":["../supplemental.*"]} +{ + "compilerOptions": { + "module": "amd" + }, + "include": [ + "../supplemental.*" + ] +} //// [c:/dev/configs/extendsArrayThird.json] -{"compilerOptions":{"module":null,"noImplicitAny":false},"extends":"./extendsArrayFirst","include":["../supplemental.*"]} +{ + "compilerOptions": { + "module": null, + "noImplicitAny": false + }, + "extends": "./extendsArrayFirst", + "include": [ + "../supplemental.*" + ] +} //// [c:/dev/configs/fifth.json] -{"extends":"./fourth","include":["../tests/utils.ts"],"files":[]} +{ + "extends": "./fourth", + "include": [ + "../tests/utils.ts" + ], + "files": [] +} //// [c:/dev/configs/first.json] -{"extends":"./base","compilerOptions":{"module":"commonjs"},"files":["../main.ts"]} +{ + "extends": "./base", + "compilerOptions": { + "module": "commonjs" + }, + "files": [ + "../main.ts" + ] +} //// [c:/dev/configs/fourth.json] -{"extends":"./third","compilerOptions":{"module":"system"},"include":null,"files":["../main.ts"]} +{ + "extends": "./third", + "compilerOptions": { + "module": "system" + }, + "include": null, + "files": [ + "../main.ts" + ] +} //// [c:/dev/configs/second.json] -{"extends":"./base","compilerOptions":{"module":"amd"},"include":["../supplemental.*"]} +{ + "extends": "./base", + "compilerOptions": { + "module": "amd" + }, + "include": [ + "../supplemental.*" + ] +} //// [c:/dev/configs/tests.json] -{"compilerOptions":{"preserveConstEnums":true,"removeComments":false,"sourceMap":true},"exclude":["../tests/baselines","../tests/scenarios"],"include":["../tests/**/*.ts"]} +{ + "compilerOptions": { + "preserveConstEnums": true, + "removeComments": false, + "sourceMap": true + }, + "exclude": [ + "../tests/baselines", + "../tests/scenarios" + ], + "include": [ + "../tests/**/*.ts" + ] +} //// [c:/dev/configs/third.json] -{"extends":"./second","compilerOptions":{"module":null},"include":["../supplemental.*"]} +{ + "extends": "./second", + "compilerOptions": { + "module": null + }, + "include": [ + "../supplemental.*" + ] +} //// [c:/dev/extends.json] -{"extends":42} +{ + "extends": 42 +} //// [c:/dev/extends2.json] -{"extends":"configs/base"} +{ + "extends": "configs/base" +} //// [c:/dev/extends3.json] -{"extends":""} +{ + "extends": "" +} //// [c:/dev/extends4.json] -{"extends":[""]} +{ + "extends": [ + "" + ] +} //// [c:/dev/extendsArrayFails.json] -{"extends":["./missingFile"],"compilerOptions":{"types":[]}} +{ + "extends": [ + "./missingFile" + ], + "compilerOptions": { + "types": [] + } +} //// [c:/dev/extendsArrayFails2.json] -{"extends":[42]} +{ + "extends": [ + 42 + ] +} //// [c:/dev/failure.json] -{"extends":"./failure2.json","compilerOptions":{"typeRoots":[]}} +{ + "extends": "./failure2.json", + "compilerOptions": { + "typeRoots": [] + } +} //// [c:/dev/failure2.json] -{"excludes":["*.js"]} +{ + "excludes": [ + "*.js" + ] +} //// [c:/dev/main.ts] //// [c:/dev/missing.json] -{"extends":"./missing2","compilerOptions":{"types":[]}} +{ + "extends": "./missing2", + "compilerOptions": { + "types": [] + } +} //// [c:/dev/node_modules/@foo/tsconfig/package.json] -{"name":"@foo/tsconfig","version":"1.0.0","exports":{".":"./src/tsconfig.json"}} +{ + "name": "@foo/tsconfig", + "version": "1.0.0", + "exports": { + ".": "./src/tsconfig.json" + } +} //// [c:/dev/node_modules/@foo/tsconfig/src/tsconfig.json] -{"compilerOptions":{"strict":true}} +{ + "compilerOptions": { + "strict": true + } +} //// [c:/dev/node_modules/config-box/package.json] -{"name":"config-box","version":"1.0.0","tsconfig":"./strict.json"} +{ + "name": "config-box", + "version": "1.0.0", + "tsconfig": "./strict.json" +} //// [c:/dev/node_modules/config-box/strict.json] -{"compilerOptions":{"strict":true}} +{ + "compilerOptions": { + "strict": true + } +} //// [c:/dev/node_modules/config-box/unstrict.json] -{"compilerOptions":{"strict":false}} +{ + "compilerOptions": { + "strict": false + } +} //// [c:/dev/node_modules/config-box-implied/package.json] -{"name":"config-box-implied","version":"1.0.0"} +{ + "name": "config-box-implied", + "version": "1.0.0" +} //// [c:/dev/node_modules/config-box-implied/tsconfig.json] -{"compilerOptions":{"strict":true}} +{ + "compilerOptions": { + "strict": true + } +} //// [c:/dev/node_modules/config-box-implied/unstrict/tsconfig.json] -{"compilerOptions":{"strict":false}} +{ + "compilerOptions": { + "strict": false + } +} //// [c:/dev/supplemental.ts] @@ -111,47 +286,103 @@ Fs:: //// [c:/dev/tsconfig.extendsBox.json] -{"extends":"config-box","files":["main.ts"]} +{ + "extends": "config-box", + "files": [ + "main.ts" + ] +} //// [c:/dev/tsconfig.extendsBoxImplied.json] -{"extends":"config-box-implied","files":["main.ts"]} +{ + "extends": "config-box-implied", + "files": [ + "main.ts" + ] +} //// [c:/dev/tsconfig.extendsBoxImpliedPath.json] -{"extends":"config-box-implied/tsconfig.json","files":["main.ts"]} +{ + "extends": "config-box-implied/tsconfig.json", + "files": [ + "main.ts" + ] +} //// [c:/dev/tsconfig.extendsBoxImpliedUnstrict.json] -{"extends":"config-box-implied/unstrict","files":["main.ts"]} +{ + "extends": "config-box-implied/unstrict", + "files": [ + "main.ts" + ] +} //// [c:/dev/tsconfig.extendsBoxImpliedUnstrictExtension.json] -{"extends":"config-box-implied/unstrict/tsconfig","files":["main.ts"]} +{ + "extends": "config-box-implied/unstrict/tsconfig", + "files": [ + "main.ts" + ] +} //// [c:/dev/tsconfig.extendsFoo.json] -{"extends":"@foo/tsconfig","files":["main.ts"]} +{ + "extends": "@foo/tsconfig", + "files": [ + "main.ts" + ] +} //// [c:/dev/tsconfig.extendsStrict.json] -{"extends":"config-box/strict","files":["main.ts"]} +{ + "extends": "config-box/strict", + "files": [ + "main.ts" + ] +} //// [c:/dev/tsconfig.extendsStrictExtension.json] -{"extends":"config-box/strict.json","files":["main.ts"]} +{ + "extends": "config-box/strict.json", + "files": [ + "main.ts" + ] +} //// [c:/dev/tsconfig.extendsUnStrict.json] -{"extends":"config-box/unstrict","files":["main.ts"]} +{ + "extends": "config-box/unstrict", + "files": [ + "main.ts" + ] +} //// [c:/dev/tsconfig.json] -{"extends":"./configs/base","files":["main.ts","supplemental.ts"]} +{ + "extends": "./configs/base", + "files": [ + "main.ts", + "supplemental.ts" + ] +} //// [c:/dev/tsconfig.nostrictnull.json] -{"extends":"./tsconfig","compilerOptions":{"strictNullChecks":false}} +{ + "extends": "./tsconfig", + "compilerOptions": { + "strictNullChecks": false + } +} can resolve an extension with a base extension configFileName:: tsconfig.json CompilerOptions:: { - "allowJs": true, - "noImplicitAny": true, - "strictNullChecks": true, - "configFilePath": "tsconfig.json" + "allowJs": true, + "noImplicitAny": true, + "strictNullChecks": true, + "configFilePath": "tsconfig.json" } FileNames:: c:/dev/main.ts,c:/dev/supplemental.ts @@ -162,10 +393,10 @@ can resolve an extension with a base extension that overrides options configFileName:: tsconfig.nostrictnull.json CompilerOptions:: { - "allowJs": true, - "noImplicitAny": true, - "strictNullChecks": false, - "configFilePath": "tsconfig.nostrictnull.json" + "allowJs": true, + "noImplicitAny": true, + "strictNullChecks": false, + "configFilePath": "tsconfig.nostrictnull.json" } FileNames:: c:/dev/main.ts,c:/dev/supplemental.ts @@ -176,8 +407,8 @@ can report errors on circular imports configFileName:: circular.json CompilerOptions:: { - "module": 2, - "configFilePath": "circular.json" + "module": 2, + "configFilePath": "circular.json" } FileNames:: c:/dev/main.ts,c:/dev/supplemental.ts,c:/dev/tests/utils.ts,c:/dev/tests/baselines/first/output.ts,c:/dev/tests/unit/spec.ts @@ -189,8 +420,8 @@ can report missing configurations configFileName:: missing.json CompilerOptions:: { - "types": [], - "configFilePath": "missing.json" + "types": [], + "configFilePath": "missing.json" } FileNames:: c:/dev/main.ts,c:/dev/supplemental.ts,c:/dev/tests/utils.ts,c:/dev/tests/baselines/first/output.ts,c:/dev/tests/unit/spec.ts @@ -202,23 +433,23 @@ can report errors in extended configs configFileName:: failure.json CompilerOptions:: { - "typeRoots": [], - "configFilePath": "failure.json" + "typeRoots": [], + "configFilePath": "failure.json" } FileNames:: c:/dev/main.ts,c:/dev/supplemental.ts,c:/dev/tests/utils.ts,c:/dev/tests/baselines/first/output.ts,c:/dev/tests/unit/spec.ts Errors:: -failure2.json:1:2 - error TS6114: Unknown option 'excludes'. Did you mean 'exclude'? +failure2.json:2:3 - error TS6114: Unknown option 'excludes'. Did you mean 'exclude'? -1 {"excludes":["*.js"]} -   ~~~~~~~~~~ +2 "excludes": [ +   ~~~~~~~~~~ can error when 'extends' is not a string or Array configFileName:: extends.json CompilerOptions:: { - "configFilePath": "extends.json" + "configFilePath": "extends.json" } FileNames:: c:/dev/main.ts,c:/dev/supplemental.ts,c:/dev/tests/utils.ts,c:/dev/tests/baselines/first/output.ts,c:/dev/tests/unit/spec.ts @@ -230,7 +461,7 @@ can error when 'extends' is given an empty string configFileName:: extends3.json CompilerOptions:: { - "configFilePath": "extends3.json" + "configFilePath": "extends3.json" } FileNames:: c:/dev/main.ts,c:/dev/supplemental.ts,c:/dev/tests/utils.ts,c:/dev/tests/baselines/first/output.ts,c:/dev/tests/unit/spec.ts @@ -242,7 +473,7 @@ can error when 'extends' is given an empty string in an array configFileName:: extends4.json CompilerOptions:: { - "configFilePath": "extends4.json" + "configFilePath": "extends4.json" } FileNames:: c:/dev/main.ts,c:/dev/supplemental.ts,c:/dev/tests/utils.ts,c:/dev/tests/baselines/first/output.ts,c:/dev/tests/unit/spec.ts @@ -254,10 +485,10 @@ can overwrite compiler options using extended 'null' configFileName:: configs/third.json CompilerOptions:: { - "allowJs": true, - "noImplicitAny": true, - "strictNullChecks": true, - "configFilePath": "configs/third.json" + "allowJs": true, + "noImplicitAny": true, + "strictNullChecks": true, + "configFilePath": "configs/third.json" } FileNames:: c:/dev/supplemental.ts @@ -268,11 +499,11 @@ can overwrite top-level options using extended 'null' configFileName:: configs/fourth.json CompilerOptions:: { - "allowJs": true, - "noImplicitAny": true, - "strictNullChecks": true, - "module": 4, - "configFilePath": "configs/fourth.json" + "allowJs": true, + "noImplicitAny": true, + "strictNullChecks": true, + "module": 4, + "configFilePath": "configs/fourth.json" } FileNames:: c:/dev/main.ts @@ -283,11 +514,11 @@ can overwrite top-level files using extended [] configFileName:: configs/fifth.json CompilerOptions:: { - "allowJs": true, - "noImplicitAny": true, - "strictNullChecks": true, - "module": 4, - "configFilePath": "configs/fifth.json" + "allowJs": true, + "noImplicitAny": true, + "strictNullChecks": true, + "module": 4, + "configFilePath": "configs/fifth.json" } FileNames:: c:/dev/tests/utils.ts @@ -298,8 +529,8 @@ can lookup via tsconfig field configFileName:: tsconfig.extendsBox.json CompilerOptions:: { - "strict": true, - "configFilePath": "tsconfig.extendsBox.json" + "strict": true, + "configFilePath": "tsconfig.extendsBox.json" } FileNames:: c:/dev/main.ts @@ -310,8 +541,8 @@ can lookup via package-relative path configFileName:: tsconfig.extendsStrict.json CompilerOptions:: { - "strict": true, - "configFilePath": "tsconfig.extendsStrict.json" + "strict": true, + "configFilePath": "tsconfig.extendsStrict.json" } FileNames:: c:/dev/main.ts @@ -322,8 +553,8 @@ can lookup via non-redirected-to package-relative path configFileName:: tsconfig.extendsUnStrict.json CompilerOptions:: { - "strict": false, - "configFilePath": "tsconfig.extendsUnStrict.json" + "strict": false, + "configFilePath": "tsconfig.extendsUnStrict.json" } FileNames:: c:/dev/main.ts @@ -334,8 +565,8 @@ can lookup via package-relative path with extension configFileName:: tsconfig.extendsStrictExtension.json CompilerOptions:: { - "strict": true, - "configFilePath": "tsconfig.extendsStrictExtension.json" + "strict": true, + "configFilePath": "tsconfig.extendsStrictExtension.json" } FileNames:: c:/dev/main.ts @@ -346,8 +577,8 @@ can lookup via an implicit tsconfig configFileName:: tsconfig.extendsBoxImplied.json CompilerOptions:: { - "strict": true, - "configFilePath": "tsconfig.extendsBoxImplied.json" + "strict": true, + "configFilePath": "tsconfig.extendsBoxImplied.json" } FileNames:: c:/dev/main.ts @@ -358,8 +589,8 @@ can lookup via an implicit tsconfig in a package-relative directory configFileName:: tsconfig.extendsBoxImpliedUnstrict.json CompilerOptions:: { - "strict": false, - "configFilePath": "tsconfig.extendsBoxImpliedUnstrict.json" + "strict": false, + "configFilePath": "tsconfig.extendsBoxImpliedUnstrict.json" } FileNames:: c:/dev/main.ts @@ -370,8 +601,8 @@ can lookup via an implicit tsconfig in a package-relative directory with name configFileName:: tsconfig.extendsBoxImpliedUnstrictExtension.json CompilerOptions:: { - "strict": false, - "configFilePath": "tsconfig.extendsBoxImpliedUnstrictExtension.json" + "strict": false, + "configFilePath": "tsconfig.extendsBoxImpliedUnstrictExtension.json" } FileNames:: c:/dev/main.ts @@ -382,8 +613,8 @@ can lookup via an implicit tsconfig in a package-relative directory with extensi configFileName:: tsconfig.extendsBoxImpliedPath.json CompilerOptions:: { - "strict": true, - "configFilePath": "tsconfig.extendsBoxImpliedPath.json" + "strict": true, + "configFilePath": "tsconfig.extendsBoxImpliedPath.json" } FileNames:: c:/dev/main.ts @@ -394,8 +625,8 @@ can lookup via an package.json exports configFileName:: tsconfig.extendsFoo.json CompilerOptions:: { - "strict": true, - "configFilePath": "tsconfig.extendsFoo.json" + "strict": true, + "configFilePath": "tsconfig.extendsFoo.json" } FileNames:: c:/dev/main.ts @@ -406,11 +637,11 @@ can overwrite top-level compilerOptions configFileName:: configs/extendsArrayFifth.json CompilerOptions:: { - "allowJs": true, - "noImplicitAny": false, - "strictNullChecks": false, - "module": 4, - "configFilePath": "configs/extendsArrayFifth.json" + "allowJs": true, + "noImplicitAny": false, + "strictNullChecks": false, + "module": 4, + "configFilePath": "configs/extendsArrayFifth.json" } FileNames:: @@ -421,8 +652,8 @@ can report missing configurations configFileName:: extendsArrayFails.json CompilerOptions:: { - "types": [], - "configFilePath": "extendsArrayFails.json" + "types": [], + "configFilePath": "extendsArrayFails.json" } FileNames:: c:/dev/main.ts,c:/dev/supplemental.ts,c:/dev/tests/utils.ts,c:/dev/tests/baselines/first/output.ts,c:/dev/tests/unit/spec.ts @@ -434,7 +665,7 @@ can error when 'extends' is not a string or Array2 configFileName:: extendsArrayFails2.json CompilerOptions:: { - "configFilePath": "extendsArrayFails2.json" + "configFilePath": "extendsArrayFails2.json" } FileNames:: c:/dev/main.ts,c:/dev/supplemental.ts,c:/dev/tests/utils.ts,c:/dev/tests/baselines/first/output.ts,c:/dev/tests/unit/spec.ts diff --git a/tests/baselines/reference/config/configurationExtension/under a case insensitive host with jsonSourceFile api.js b/tests/baselines/reference/config/configurationExtension/under a case insensitive host with jsonSourceFile api.js index 9e7dad1da7c65..70421f19a5b6a 100644 --- a/tests/baselines/reference/config/configurationExtension/under a case insensitive host with jsonSourceFile api.js +++ b/tests/baselines/reference/config/configurationExtension/under a case insensitive host with jsonSourceFile api.js @@ -1,99 +1,274 @@ Fs:: //// [c:/dev/circular.json] -{"extends":"./circular2","compilerOptions":{"module":"amd"}} +{ + "extends": "./circular2", + "compilerOptions": { + "module": "amd" + } +} //// [c:/dev/circular2.json] -{"extends":"./circular","compilerOptions":{"module":"commonjs"}} +{ + "extends": "./circular", + "compilerOptions": { + "module": "commonjs" + } +} //// [c:/dev/configs/base.json] -{"compilerOptions":{"allowJs":true,"noImplicitAny":true,"strictNullChecks":true}} +{ + "compilerOptions": { + "allowJs": true, + "noImplicitAny": true, + "strictNullChecks": true + } +} //// [c:/dev/configs/extendsArrayFifth.json] -{"extends":["./extendsArrayFirst","./extendsArraySecond","./extendsArrayThird","./extendsArrayFourth"],"files":[]} +{ + "extends": [ + "./extendsArrayFirst", + "./extendsArraySecond", + "./extendsArrayThird", + "./extendsArrayFourth" + ], + "files": [] +} //// [c:/dev/configs/extendsArrayFirst.json] -{"compilerOptions":{"allowJs":true,"noImplicitAny":true,"strictNullChecks":true}} +{ + "compilerOptions": { + "allowJs": true, + "noImplicitAny": true, + "strictNullChecks": true + } +} //// [c:/dev/configs/extendsArrayFourth.json] -{"compilerOptions":{"module":"system","strictNullChecks":false},"include":null,"files":["../main.ts"]} +{ + "compilerOptions": { + "module": "system", + "strictNullChecks": false + }, + "include": null, + "files": [ + "../main.ts" + ] +} //// [c:/dev/configs/extendsArraySecond.json] -{"compilerOptions":{"module":"amd"},"include":["../supplemental.*"]} +{ + "compilerOptions": { + "module": "amd" + }, + "include": [ + "../supplemental.*" + ] +} //// [c:/dev/configs/extendsArrayThird.json] -{"compilerOptions":{"module":null,"noImplicitAny":false},"extends":"./extendsArrayFirst","include":["../supplemental.*"]} +{ + "compilerOptions": { + "module": null, + "noImplicitAny": false + }, + "extends": "./extendsArrayFirst", + "include": [ + "../supplemental.*" + ] +} //// [c:/dev/configs/fifth.json] -{"extends":"./fourth","include":["../tests/utils.ts"],"files":[]} +{ + "extends": "./fourth", + "include": [ + "../tests/utils.ts" + ], + "files": [] +} //// [c:/dev/configs/first.json] -{"extends":"./base","compilerOptions":{"module":"commonjs"},"files":["../main.ts"]} +{ + "extends": "./base", + "compilerOptions": { + "module": "commonjs" + }, + "files": [ + "../main.ts" + ] +} //// [c:/dev/configs/fourth.json] -{"extends":"./third","compilerOptions":{"module":"system"},"include":null,"files":["../main.ts"]} +{ + "extends": "./third", + "compilerOptions": { + "module": "system" + }, + "include": null, + "files": [ + "../main.ts" + ] +} //// [c:/dev/configs/second.json] -{"extends":"./base","compilerOptions":{"module":"amd"},"include":["../supplemental.*"]} +{ + "extends": "./base", + "compilerOptions": { + "module": "amd" + }, + "include": [ + "../supplemental.*" + ] +} //// [c:/dev/configs/tests.json] -{"compilerOptions":{"preserveConstEnums":true,"removeComments":false,"sourceMap":true},"exclude":["../tests/baselines","../tests/scenarios"],"include":["../tests/**/*.ts"]} +{ + "compilerOptions": { + "preserveConstEnums": true, + "removeComments": false, + "sourceMap": true + }, + "exclude": [ + "../tests/baselines", + "../tests/scenarios" + ], + "include": [ + "../tests/**/*.ts" + ] +} //// [c:/dev/configs/third.json] -{"extends":"./second","compilerOptions":{"module":null},"include":["../supplemental.*"]} +{ + "extends": "./second", + "compilerOptions": { + "module": null + }, + "include": [ + "../supplemental.*" + ] +} //// [c:/dev/extends.json] -{"extends":42} +{ + "extends": 42 +} //// [c:/dev/extends2.json] -{"extends":"configs/base"} +{ + "extends": "configs/base" +} //// [c:/dev/extends3.json] -{"extends":""} +{ + "extends": "" +} //// [c:/dev/extends4.json] -{"extends":[""]} +{ + "extends": [ + "" + ] +} //// [c:/dev/extendsArrayFails.json] -{"extends":["./missingFile"],"compilerOptions":{"types":[]}} +{ + "extends": [ + "./missingFile" + ], + "compilerOptions": { + "types": [] + } +} //// [c:/dev/extendsArrayFails2.json] -{"extends":[42]} +{ + "extends": [ + 42 + ] +} //// [c:/dev/failure.json] -{"extends":"./failure2.json","compilerOptions":{"typeRoots":[]}} +{ + "extends": "./failure2.json", + "compilerOptions": { + "typeRoots": [] + } +} //// [c:/dev/failure2.json] -{"excludes":["*.js"]} +{ + "excludes": [ + "*.js" + ] +} //// [c:/dev/main.ts] //// [c:/dev/missing.json] -{"extends":"./missing2","compilerOptions":{"types":[]}} +{ + "extends": "./missing2", + "compilerOptions": { + "types": [] + } +} //// [c:/dev/node_modules/@foo/tsconfig/package.json] -{"name":"@foo/tsconfig","version":"1.0.0","exports":{".":"./src/tsconfig.json"}} +{ + "name": "@foo/tsconfig", + "version": "1.0.0", + "exports": { + ".": "./src/tsconfig.json" + } +} //// [c:/dev/node_modules/@foo/tsconfig/src/tsconfig.json] -{"compilerOptions":{"strict":true}} +{ + "compilerOptions": { + "strict": true + } +} //// [c:/dev/node_modules/config-box/package.json] -{"name":"config-box","version":"1.0.0","tsconfig":"./strict.json"} +{ + "name": "config-box", + "version": "1.0.0", + "tsconfig": "./strict.json" +} //// [c:/dev/node_modules/config-box/strict.json] -{"compilerOptions":{"strict":true}} +{ + "compilerOptions": { + "strict": true + } +} //// [c:/dev/node_modules/config-box/unstrict.json] -{"compilerOptions":{"strict":false}} +{ + "compilerOptions": { + "strict": false + } +} //// [c:/dev/node_modules/config-box-implied/package.json] -{"name":"config-box-implied","version":"1.0.0"} +{ + "name": "config-box-implied", + "version": "1.0.0" +} //// [c:/dev/node_modules/config-box-implied/tsconfig.json] -{"compilerOptions":{"strict":true}} +{ + "compilerOptions": { + "strict": true + } +} //// [c:/dev/node_modules/config-box-implied/unstrict/tsconfig.json] -{"compilerOptions":{"strict":false}} +{ + "compilerOptions": { + "strict": false + } +} //// [c:/dev/supplemental.ts] @@ -111,47 +286,103 @@ Fs:: //// [c:/dev/tsconfig.extendsBox.json] -{"extends":"config-box","files":["main.ts"]} +{ + "extends": "config-box", + "files": [ + "main.ts" + ] +} //// [c:/dev/tsconfig.extendsBoxImplied.json] -{"extends":"config-box-implied","files":["main.ts"]} +{ + "extends": "config-box-implied", + "files": [ + "main.ts" + ] +} //// [c:/dev/tsconfig.extendsBoxImpliedPath.json] -{"extends":"config-box-implied/tsconfig.json","files":["main.ts"]} +{ + "extends": "config-box-implied/tsconfig.json", + "files": [ + "main.ts" + ] +} //// [c:/dev/tsconfig.extendsBoxImpliedUnstrict.json] -{"extends":"config-box-implied/unstrict","files":["main.ts"]} +{ + "extends": "config-box-implied/unstrict", + "files": [ + "main.ts" + ] +} //// [c:/dev/tsconfig.extendsBoxImpliedUnstrictExtension.json] -{"extends":"config-box-implied/unstrict/tsconfig","files":["main.ts"]} +{ + "extends": "config-box-implied/unstrict/tsconfig", + "files": [ + "main.ts" + ] +} //// [c:/dev/tsconfig.extendsFoo.json] -{"extends":"@foo/tsconfig","files":["main.ts"]} +{ + "extends": "@foo/tsconfig", + "files": [ + "main.ts" + ] +} //// [c:/dev/tsconfig.extendsStrict.json] -{"extends":"config-box/strict","files":["main.ts"]} +{ + "extends": "config-box/strict", + "files": [ + "main.ts" + ] +} //// [c:/dev/tsconfig.extendsStrictExtension.json] -{"extends":"config-box/strict.json","files":["main.ts"]} +{ + "extends": "config-box/strict.json", + "files": [ + "main.ts" + ] +} //// [c:/dev/tsconfig.extendsUnStrict.json] -{"extends":"config-box/unstrict","files":["main.ts"]} +{ + "extends": "config-box/unstrict", + "files": [ + "main.ts" + ] +} //// [c:/dev/tsconfig.json] -{"extends":"./configs/base","files":["main.ts","supplemental.ts"]} +{ + "extends": "./configs/base", + "files": [ + "main.ts", + "supplemental.ts" + ] +} //// [c:/dev/tsconfig.nostrictnull.json] -{"extends":"./tsconfig","compilerOptions":{"strictNullChecks":false}} +{ + "extends": "./tsconfig", + "compilerOptions": { + "strictNullChecks": false + } +} can resolve an extension with a base extension configFileName:: tsconfig.json CompilerOptions:: { - "allowJs": true, - "noImplicitAny": true, - "strictNullChecks": true, - "configFilePath": "tsconfig.json" + "allowJs": true, + "noImplicitAny": true, + "strictNullChecks": true, + "configFilePath": "tsconfig.json" } FileNames:: c:/dev/main.ts,c:/dev/supplemental.ts @@ -162,10 +393,10 @@ can resolve an extension with a base extension that overrides options configFileName:: tsconfig.nostrictnull.json CompilerOptions:: { - "allowJs": true, - "noImplicitAny": true, - "strictNullChecks": false, - "configFilePath": "tsconfig.nostrictnull.json" + "allowJs": true, + "noImplicitAny": true, + "strictNullChecks": false, + "configFilePath": "tsconfig.nostrictnull.json" } FileNames:: c:/dev/main.ts,c:/dev/supplemental.ts @@ -176,8 +407,8 @@ can report errors on circular imports configFileName:: circular.json CompilerOptions:: { - "module": 2, - "configFilePath": "circular.json" + "module": 2, + "configFilePath": "circular.json" } FileNames:: c:/dev/main.ts,c:/dev/supplemental.ts,c:/dev/tests/utils.ts,c:/dev/tests/baselines/first/output.ts,c:/dev/tests/unit/spec.ts @@ -189,87 +420,87 @@ can report missing configurations configFileName:: missing.json CompilerOptions:: { - "types": [], - "configFilePath": "missing.json" + "types": [], + "configFilePath": "missing.json" } FileNames:: c:/dev/main.ts,c:/dev/supplemental.ts,c:/dev/tests/utils.ts,c:/dev/tests/baselines/first/output.ts,c:/dev/tests/unit/spec.ts Errors:: -missing.json:1:12 - error TS6053: File './missing2' not found. +missing.json:2:14 - error TS6053: File './missing2' not found. -1 {"extends":"./missing2","compilerOptions":{"types":[]}} -   ~~~~~~~~~~~~ +2 "extends": "./missing2", +   ~~~~~~~~~~~~ can report errors in extended configs configFileName:: failure.json CompilerOptions:: { - "typeRoots": [], - "configFilePath": "failure.json" + "typeRoots": [], + "configFilePath": "failure.json" } FileNames:: c:/dev/main.ts,c:/dev/supplemental.ts,c:/dev/tests/utils.ts,c:/dev/tests/baselines/first/output.ts,c:/dev/tests/unit/spec.ts Errors:: -failure2.json:1:2 - error TS6114: Unknown option 'excludes'. Did you mean 'exclude'? +failure2.json:2:3 - error TS6114: Unknown option 'excludes'. Did you mean 'exclude'? -1 {"excludes":["*.js"]} -   ~~~~~~~~~~ +2 "excludes": [ +   ~~~~~~~~~~ can error when 'extends' is not a string or Array configFileName:: extends.json CompilerOptions:: { - "configFilePath": "extends.json" + "configFilePath": "extends.json" } FileNames:: c:/dev/main.ts,c:/dev/supplemental.ts,c:/dev/tests/utils.ts,c:/dev/tests/baselines/first/output.ts,c:/dev/tests/unit/spec.ts Errors:: -extends.json:1:12 - error TS5024: Compiler option 'extends' requires a value of type string or Array. +extends.json:2:14 - error TS5024: Compiler option 'extends' requires a value of type string or Array. -1 {"extends":42} -   ~~ +2 "extends": 42 +   ~~ can error when 'extends' is given an empty string configFileName:: extends3.json CompilerOptions:: { - "configFilePath": "extends3.json" + "configFilePath": "extends3.json" } FileNames:: c:/dev/main.ts,c:/dev/supplemental.ts,c:/dev/tests/utils.ts,c:/dev/tests/baselines/first/output.ts,c:/dev/tests/unit/spec.ts Errors:: -extends3.json:1:12 - error TS18051: Compiler option 'extends' cannot be given an empty string. +extends3.json:2:14 - error TS18051: Compiler option 'extends' cannot be given an empty string. -1 {"extends":""} -   ~~ +2 "extends": "" +   ~~ can error when 'extends' is given an empty string in an array configFileName:: extends4.json CompilerOptions:: { - "configFilePath": "extends4.json" + "configFilePath": "extends4.json" } FileNames:: c:/dev/main.ts,c:/dev/supplemental.ts,c:/dev/tests/utils.ts,c:/dev/tests/baselines/first/output.ts,c:/dev/tests/unit/spec.ts Errors:: -extends4.json:1:13 - error TS18051: Compiler option 'extends' cannot be given an empty string. +extends4.json:3:5 - error TS18051: Compiler option 'extends' cannot be given an empty string. -1 {"extends":[""]} -   ~~ +3 "" +   ~~ can overwrite compiler options using extended 'null' configFileName:: configs/third.json CompilerOptions:: { - "allowJs": true, - "noImplicitAny": true, - "strictNullChecks": true, - "configFilePath": "configs/third.json" + "allowJs": true, + "noImplicitAny": true, + "strictNullChecks": true, + "configFilePath": "configs/third.json" } FileNames:: c:/dev/supplemental.ts @@ -280,11 +511,11 @@ can overwrite top-level options using extended 'null' configFileName:: configs/fourth.json CompilerOptions:: { - "allowJs": true, - "noImplicitAny": true, - "strictNullChecks": true, - "module": 4, - "configFilePath": "configs/fourth.json" + "allowJs": true, + "noImplicitAny": true, + "strictNullChecks": true, + "module": 4, + "configFilePath": "configs/fourth.json" } FileNames:: c:/dev/main.ts @@ -295,11 +526,11 @@ can overwrite top-level files using extended [] configFileName:: configs/fifth.json CompilerOptions:: { - "allowJs": true, - "noImplicitAny": true, - "strictNullChecks": true, - "module": 4, - "configFilePath": "configs/fifth.json" + "allowJs": true, + "noImplicitAny": true, + "strictNullChecks": true, + "module": 4, + "configFilePath": "configs/fifth.json" } FileNames:: c:/dev/tests/utils.ts @@ -310,8 +541,8 @@ can lookup via tsconfig field configFileName:: tsconfig.extendsBox.json CompilerOptions:: { - "strict": true, - "configFilePath": "tsconfig.extendsBox.json" + "strict": true, + "configFilePath": "tsconfig.extendsBox.json" } FileNames:: c:/dev/main.ts @@ -322,8 +553,8 @@ can lookup via package-relative path configFileName:: tsconfig.extendsStrict.json CompilerOptions:: { - "strict": true, - "configFilePath": "tsconfig.extendsStrict.json" + "strict": true, + "configFilePath": "tsconfig.extendsStrict.json" } FileNames:: c:/dev/main.ts @@ -334,8 +565,8 @@ can lookup via non-redirected-to package-relative path configFileName:: tsconfig.extendsUnStrict.json CompilerOptions:: { - "strict": false, - "configFilePath": "tsconfig.extendsUnStrict.json" + "strict": false, + "configFilePath": "tsconfig.extendsUnStrict.json" } FileNames:: c:/dev/main.ts @@ -346,8 +577,8 @@ can lookup via package-relative path with extension configFileName:: tsconfig.extendsStrictExtension.json CompilerOptions:: { - "strict": true, - "configFilePath": "tsconfig.extendsStrictExtension.json" + "strict": true, + "configFilePath": "tsconfig.extendsStrictExtension.json" } FileNames:: c:/dev/main.ts @@ -358,8 +589,8 @@ can lookup via an implicit tsconfig configFileName:: tsconfig.extendsBoxImplied.json CompilerOptions:: { - "strict": true, - "configFilePath": "tsconfig.extendsBoxImplied.json" + "strict": true, + "configFilePath": "tsconfig.extendsBoxImplied.json" } FileNames:: c:/dev/main.ts @@ -370,8 +601,8 @@ can lookup via an implicit tsconfig in a package-relative directory configFileName:: tsconfig.extendsBoxImpliedUnstrict.json CompilerOptions:: { - "strict": false, - "configFilePath": "tsconfig.extendsBoxImpliedUnstrict.json" + "strict": false, + "configFilePath": "tsconfig.extendsBoxImpliedUnstrict.json" } FileNames:: c:/dev/main.ts @@ -382,8 +613,8 @@ can lookup via an implicit tsconfig in a package-relative directory with name configFileName:: tsconfig.extendsBoxImpliedUnstrictExtension.json CompilerOptions:: { - "strict": false, - "configFilePath": "tsconfig.extendsBoxImpliedUnstrictExtension.json" + "strict": false, + "configFilePath": "tsconfig.extendsBoxImpliedUnstrictExtension.json" } FileNames:: c:/dev/main.ts @@ -394,8 +625,8 @@ can lookup via an implicit tsconfig in a package-relative directory with extensi configFileName:: tsconfig.extendsBoxImpliedPath.json CompilerOptions:: { - "strict": true, - "configFilePath": "tsconfig.extendsBoxImpliedPath.json" + "strict": true, + "configFilePath": "tsconfig.extendsBoxImpliedPath.json" } FileNames:: c:/dev/main.ts @@ -406,8 +637,8 @@ can lookup via an package.json exports configFileName:: tsconfig.extendsFoo.json CompilerOptions:: { - "strict": true, - "configFilePath": "tsconfig.extendsFoo.json" + "strict": true, + "configFilePath": "tsconfig.extendsFoo.json" } FileNames:: c:/dev/main.ts @@ -418,11 +649,11 @@ can overwrite top-level compilerOptions configFileName:: configs/extendsArrayFifth.json CompilerOptions:: { - "allowJs": true, - "noImplicitAny": false, - "strictNullChecks": false, - "module": 4, - "configFilePath": "configs/extendsArrayFifth.json" + "allowJs": true, + "noImplicitAny": false, + "strictNullChecks": false, + "module": 4, + "configFilePath": "configs/extendsArrayFifth.json" } FileNames:: @@ -433,29 +664,29 @@ can report missing configurations configFileName:: extendsArrayFails.json CompilerOptions:: { - "types": [], - "configFilePath": "extendsArrayFails.json" + "types": [], + "configFilePath": "extendsArrayFails.json" } FileNames:: c:/dev/main.ts,c:/dev/supplemental.ts,c:/dev/tests/utils.ts,c:/dev/tests/baselines/first/output.ts,c:/dev/tests/unit/spec.ts Errors:: -extendsArrayFails.json:1:13 - error TS6053: File './missingFile' not found. +extendsArrayFails.json:3:5 - error TS6053: File './missingFile' not found. -1 {"extends":["./missingFile"],"compilerOptions":{"types":[]}} -   ~~~~~~~~~~~~~~~ +3 "./missingFile" +   ~~~~~~~~~~~~~~~ can error when 'extends' is not a string or Array2 configFileName:: extendsArrayFails2.json CompilerOptions:: { - "configFilePath": "extendsArrayFails2.json" + "configFilePath": "extendsArrayFails2.json" } FileNames:: c:/dev/main.ts,c:/dev/supplemental.ts,c:/dev/tests/utils.ts,c:/dev/tests/baselines/first/output.ts,c:/dev/tests/unit/spec.ts Errors:: -extendsArrayFails2.json:1:13 - error TS5024: Compiler option 'extends' requires a value of type string. +extendsArrayFails2.json:3:5 - error TS5024: Compiler option 'extends' requires a value of type string. -1 {"extends":[42]} -   ~~ +3 42 +   ~~ diff --git a/tests/baselines/reference/config/configurationExtension/under a case sensitive host with json api.js b/tests/baselines/reference/config/configurationExtension/under a case sensitive host with json api.js index 4f0167c4cdad4..b0d9dd7826fa1 100644 --- a/tests/baselines/reference/config/configurationExtension/under a case sensitive host with json api.js +++ b/tests/baselines/reference/config/configurationExtension/under a case sensitive host with json api.js @@ -1,99 +1,274 @@ Fs:: //// [/dev/circular.json] -{"extends":"./circular2","compilerOptions":{"module":"amd"}} +{ + "extends": "./circular2", + "compilerOptions": { + "module": "amd" + } +} //// [/dev/circular2.json] -{"extends":"./circular","compilerOptions":{"module":"commonjs"}} +{ + "extends": "./circular", + "compilerOptions": { + "module": "commonjs" + } +} //// [/dev/configs/base.json] -{"compilerOptions":{"allowJs":true,"noImplicitAny":true,"strictNullChecks":true}} +{ + "compilerOptions": { + "allowJs": true, + "noImplicitAny": true, + "strictNullChecks": true + } +} //// [/dev/configs/extendsArrayFifth.json] -{"extends":["./extendsArrayFirst","./extendsArraySecond","./extendsArrayThird","./extendsArrayFourth"],"files":[]} +{ + "extends": [ + "./extendsArrayFirst", + "./extendsArraySecond", + "./extendsArrayThird", + "./extendsArrayFourth" + ], + "files": [] +} //// [/dev/configs/extendsArrayFirst.json] -{"compilerOptions":{"allowJs":true,"noImplicitAny":true,"strictNullChecks":true}} +{ + "compilerOptions": { + "allowJs": true, + "noImplicitAny": true, + "strictNullChecks": true + } +} //// [/dev/configs/extendsArrayFourth.json] -{"compilerOptions":{"module":"system","strictNullChecks":false},"include":null,"files":["../main.ts"]} +{ + "compilerOptions": { + "module": "system", + "strictNullChecks": false + }, + "include": null, + "files": [ + "../main.ts" + ] +} //// [/dev/configs/extendsArraySecond.json] -{"compilerOptions":{"module":"amd"},"include":["../supplemental.*"]} +{ + "compilerOptions": { + "module": "amd" + }, + "include": [ + "../supplemental.*" + ] +} //// [/dev/configs/extendsArrayThird.json] -{"compilerOptions":{"module":null,"noImplicitAny":false},"extends":"./extendsArrayFirst","include":["../supplemental.*"]} +{ + "compilerOptions": { + "module": null, + "noImplicitAny": false + }, + "extends": "./extendsArrayFirst", + "include": [ + "../supplemental.*" + ] +} //// [/dev/configs/fifth.json] -{"extends":"./fourth","include":["../tests/utils.ts"],"files":[]} +{ + "extends": "./fourth", + "include": [ + "../tests/utils.ts" + ], + "files": [] +} //// [/dev/configs/first.json] -{"extends":"./base","compilerOptions":{"module":"commonjs"},"files":["../main.ts"]} +{ + "extends": "./base", + "compilerOptions": { + "module": "commonjs" + }, + "files": [ + "../main.ts" + ] +} //// [/dev/configs/fourth.json] -{"extends":"./third","compilerOptions":{"module":"system"},"include":null,"files":["../main.ts"]} +{ + "extends": "./third", + "compilerOptions": { + "module": "system" + }, + "include": null, + "files": [ + "../main.ts" + ] +} //// [/dev/configs/second.json] -{"extends":"./base","compilerOptions":{"module":"amd"},"include":["../supplemental.*"]} +{ + "extends": "./base", + "compilerOptions": { + "module": "amd" + }, + "include": [ + "../supplemental.*" + ] +} //// [/dev/configs/tests.json] -{"compilerOptions":{"preserveConstEnums":true,"removeComments":false,"sourceMap":true},"exclude":["../tests/baselines","../tests/scenarios"],"include":["../tests/**/*.ts"]} +{ + "compilerOptions": { + "preserveConstEnums": true, + "removeComments": false, + "sourceMap": true + }, + "exclude": [ + "../tests/baselines", + "../tests/scenarios" + ], + "include": [ + "../tests/**/*.ts" + ] +} //// [/dev/configs/third.json] -{"extends":"./second","compilerOptions":{"module":null},"include":["../supplemental.*"]} +{ + "extends": "./second", + "compilerOptions": { + "module": null + }, + "include": [ + "../supplemental.*" + ] +} //// [/dev/extends.json] -{"extends":42} +{ + "extends": 42 +} //// [/dev/extends2.json] -{"extends":"configs/base"} +{ + "extends": "configs/base" +} //// [/dev/extends3.json] -{"extends":""} +{ + "extends": "" +} //// [/dev/extends4.json] -{"extends":[""]} +{ + "extends": [ + "" + ] +} //// [/dev/extendsArrayFails.json] -{"extends":["./missingFile"],"compilerOptions":{"types":[]}} +{ + "extends": [ + "./missingFile" + ], + "compilerOptions": { + "types": [] + } +} //// [/dev/extendsArrayFails2.json] -{"extends":[42]} +{ + "extends": [ + 42 + ] +} //// [/dev/failure.json] -{"extends":"./failure2.json","compilerOptions":{"typeRoots":[]}} +{ + "extends": "./failure2.json", + "compilerOptions": { + "typeRoots": [] + } +} //// [/dev/failure2.json] -{"excludes":["*.js"]} +{ + "excludes": [ + "*.js" + ] +} //// [/dev/main.ts] //// [/dev/missing.json] -{"extends":"./missing2","compilerOptions":{"types":[]}} +{ + "extends": "./missing2", + "compilerOptions": { + "types": [] + } +} //// [/dev/node_modules/@foo/tsconfig/package.json] -{"name":"@foo/tsconfig","version":"1.0.0","exports":{".":"./src/tsconfig.json"}} +{ + "name": "@foo/tsconfig", + "version": "1.0.0", + "exports": { + ".": "./src/tsconfig.json" + } +} //// [/dev/node_modules/@foo/tsconfig/src/tsconfig.json] -{"compilerOptions":{"strict":true}} +{ + "compilerOptions": { + "strict": true + } +} //// [/dev/node_modules/config-box/package.json] -{"name":"config-box","version":"1.0.0","tsconfig":"./strict.json"} +{ + "name": "config-box", + "version": "1.0.0", + "tsconfig": "./strict.json" +} //// [/dev/node_modules/config-box/strict.json] -{"compilerOptions":{"strict":true}} +{ + "compilerOptions": { + "strict": true + } +} //// [/dev/node_modules/config-box/unstrict.json] -{"compilerOptions":{"strict":false}} +{ + "compilerOptions": { + "strict": false + } +} //// [/dev/node_modules/config-box-implied/package.json] -{"name":"config-box-implied","version":"1.0.0"} +{ + "name": "config-box-implied", + "version": "1.0.0" +} //// [/dev/node_modules/config-box-implied/tsconfig.json] -{"compilerOptions":{"strict":true}} +{ + "compilerOptions": { + "strict": true + } +} //// [/dev/node_modules/config-box-implied/unstrict/tsconfig.json] -{"compilerOptions":{"strict":false}} +{ + "compilerOptions": { + "strict": false + } +} //// [/dev/supplemental.ts] @@ -111,47 +286,103 @@ Fs:: //// [/dev/tsconfig.extendsBox.json] -{"extends":"config-box","files":["main.ts"]} +{ + "extends": "config-box", + "files": [ + "main.ts" + ] +} //// [/dev/tsconfig.extendsBoxImplied.json] -{"extends":"config-box-implied","files":["main.ts"]} +{ + "extends": "config-box-implied", + "files": [ + "main.ts" + ] +} //// [/dev/tsconfig.extendsBoxImpliedPath.json] -{"extends":"config-box-implied/tsconfig.json","files":["main.ts"]} +{ + "extends": "config-box-implied/tsconfig.json", + "files": [ + "main.ts" + ] +} //// [/dev/tsconfig.extendsBoxImpliedUnstrict.json] -{"extends":"config-box-implied/unstrict","files":["main.ts"]} +{ + "extends": "config-box-implied/unstrict", + "files": [ + "main.ts" + ] +} //// [/dev/tsconfig.extendsBoxImpliedUnstrictExtension.json] -{"extends":"config-box-implied/unstrict/tsconfig","files":["main.ts"]} +{ + "extends": "config-box-implied/unstrict/tsconfig", + "files": [ + "main.ts" + ] +} //// [/dev/tsconfig.extendsFoo.json] -{"extends":"@foo/tsconfig","files":["main.ts"]} +{ + "extends": "@foo/tsconfig", + "files": [ + "main.ts" + ] +} //// [/dev/tsconfig.extendsStrict.json] -{"extends":"config-box/strict","files":["main.ts"]} +{ + "extends": "config-box/strict", + "files": [ + "main.ts" + ] +} //// [/dev/tsconfig.extendsStrictExtension.json] -{"extends":"config-box/strict.json","files":["main.ts"]} +{ + "extends": "config-box/strict.json", + "files": [ + "main.ts" + ] +} //// [/dev/tsconfig.extendsUnStrict.json] -{"extends":"config-box/unstrict","files":["main.ts"]} +{ + "extends": "config-box/unstrict", + "files": [ + "main.ts" + ] +} //// [/dev/tsconfig.json] -{"extends":"./configs/base","files":["main.ts","supplemental.ts"]} +{ + "extends": "./configs/base", + "files": [ + "main.ts", + "supplemental.ts" + ] +} //// [/dev/tsconfig.nostrictnull.json] -{"extends":"./tsconfig","compilerOptions":{"strictNullChecks":false}} +{ + "extends": "./tsconfig", + "compilerOptions": { + "strictNullChecks": false + } +} can resolve an extension with a base extension configFileName:: tsconfig.json CompilerOptions:: { - "allowJs": true, - "noImplicitAny": true, - "strictNullChecks": true, - "configFilePath": "tsconfig.json" + "allowJs": true, + "noImplicitAny": true, + "strictNullChecks": true, + "configFilePath": "tsconfig.json" } FileNames:: /dev/main.ts,/dev/supplemental.ts @@ -162,10 +393,10 @@ can resolve an extension with a base extension that overrides options configFileName:: tsconfig.nostrictnull.json CompilerOptions:: { - "allowJs": true, - "noImplicitAny": true, - "strictNullChecks": false, - "configFilePath": "tsconfig.nostrictnull.json" + "allowJs": true, + "noImplicitAny": true, + "strictNullChecks": false, + "configFilePath": "tsconfig.nostrictnull.json" } FileNames:: /dev/main.ts,/dev/supplemental.ts @@ -176,8 +407,8 @@ can report errors on circular imports configFileName:: circular.json CompilerOptions:: { - "module": 2, - "configFilePath": "circular.json" + "module": 2, + "configFilePath": "circular.json" } FileNames:: /dev/main.ts,/dev/supplemental.ts,/dev/tests/utils.ts,/dev/tests/baselines/first/output.ts,/dev/tests/unit/spec.ts @@ -189,8 +420,8 @@ can report missing configurations configFileName:: missing.json CompilerOptions:: { - "types": [], - "configFilePath": "missing.json" + "types": [], + "configFilePath": "missing.json" } FileNames:: /dev/main.ts,/dev/supplemental.ts,/dev/tests/utils.ts,/dev/tests/baselines/first/output.ts,/dev/tests/unit/spec.ts @@ -202,23 +433,23 @@ can report errors in extended configs configFileName:: failure.json CompilerOptions:: { - "typeRoots": [], - "configFilePath": "failure.json" + "typeRoots": [], + "configFilePath": "failure.json" } FileNames:: /dev/main.ts,/dev/supplemental.ts,/dev/tests/utils.ts,/dev/tests/baselines/first/output.ts,/dev/tests/unit/spec.ts Errors:: -failure2.json:1:2 - error TS6114: Unknown option 'excludes'. Did you mean 'exclude'? +failure2.json:2:3 - error TS6114: Unknown option 'excludes'. Did you mean 'exclude'? -1 {"excludes":["*.js"]} -   ~~~~~~~~~~ +2 "excludes": [ +   ~~~~~~~~~~ can error when 'extends' is not a string or Array configFileName:: extends.json CompilerOptions:: { - "configFilePath": "extends.json" + "configFilePath": "extends.json" } FileNames:: /dev/main.ts,/dev/supplemental.ts,/dev/tests/utils.ts,/dev/tests/baselines/first/output.ts,/dev/tests/unit/spec.ts @@ -230,7 +461,7 @@ can error when 'extends' is given an empty string configFileName:: extends3.json CompilerOptions:: { - "configFilePath": "extends3.json" + "configFilePath": "extends3.json" } FileNames:: /dev/main.ts,/dev/supplemental.ts,/dev/tests/utils.ts,/dev/tests/baselines/first/output.ts,/dev/tests/unit/spec.ts @@ -242,7 +473,7 @@ can error when 'extends' is given an empty string in an array configFileName:: extends4.json CompilerOptions:: { - "configFilePath": "extends4.json" + "configFilePath": "extends4.json" } FileNames:: /dev/main.ts,/dev/supplemental.ts,/dev/tests/utils.ts,/dev/tests/baselines/first/output.ts,/dev/tests/unit/spec.ts @@ -254,10 +485,10 @@ can overwrite compiler options using extended 'null' configFileName:: configs/third.json CompilerOptions:: { - "allowJs": true, - "noImplicitAny": true, - "strictNullChecks": true, - "configFilePath": "configs/third.json" + "allowJs": true, + "noImplicitAny": true, + "strictNullChecks": true, + "configFilePath": "configs/third.json" } FileNames:: /dev/supplemental.ts @@ -268,11 +499,11 @@ can overwrite top-level options using extended 'null' configFileName:: configs/fourth.json CompilerOptions:: { - "allowJs": true, - "noImplicitAny": true, - "strictNullChecks": true, - "module": 4, - "configFilePath": "configs/fourth.json" + "allowJs": true, + "noImplicitAny": true, + "strictNullChecks": true, + "module": 4, + "configFilePath": "configs/fourth.json" } FileNames:: /dev/main.ts @@ -283,11 +514,11 @@ can overwrite top-level files using extended [] configFileName:: configs/fifth.json CompilerOptions:: { - "allowJs": true, - "noImplicitAny": true, - "strictNullChecks": true, - "module": 4, - "configFilePath": "configs/fifth.json" + "allowJs": true, + "noImplicitAny": true, + "strictNullChecks": true, + "module": 4, + "configFilePath": "configs/fifth.json" } FileNames:: /dev/tests/utils.ts @@ -298,8 +529,8 @@ can lookup via tsconfig field configFileName:: tsconfig.extendsBox.json CompilerOptions:: { - "strict": true, - "configFilePath": "tsconfig.extendsBox.json" + "strict": true, + "configFilePath": "tsconfig.extendsBox.json" } FileNames:: /dev/main.ts @@ -310,8 +541,8 @@ can lookup via package-relative path configFileName:: tsconfig.extendsStrict.json CompilerOptions:: { - "strict": true, - "configFilePath": "tsconfig.extendsStrict.json" + "strict": true, + "configFilePath": "tsconfig.extendsStrict.json" } FileNames:: /dev/main.ts @@ -322,8 +553,8 @@ can lookup via non-redirected-to package-relative path configFileName:: tsconfig.extendsUnStrict.json CompilerOptions:: { - "strict": false, - "configFilePath": "tsconfig.extendsUnStrict.json" + "strict": false, + "configFilePath": "tsconfig.extendsUnStrict.json" } FileNames:: /dev/main.ts @@ -334,8 +565,8 @@ can lookup via package-relative path with extension configFileName:: tsconfig.extendsStrictExtension.json CompilerOptions:: { - "strict": true, - "configFilePath": "tsconfig.extendsStrictExtension.json" + "strict": true, + "configFilePath": "tsconfig.extendsStrictExtension.json" } FileNames:: /dev/main.ts @@ -346,8 +577,8 @@ can lookup via an implicit tsconfig configFileName:: tsconfig.extendsBoxImplied.json CompilerOptions:: { - "strict": true, - "configFilePath": "tsconfig.extendsBoxImplied.json" + "strict": true, + "configFilePath": "tsconfig.extendsBoxImplied.json" } FileNames:: /dev/main.ts @@ -358,8 +589,8 @@ can lookup via an implicit tsconfig in a package-relative directory configFileName:: tsconfig.extendsBoxImpliedUnstrict.json CompilerOptions:: { - "strict": false, - "configFilePath": "tsconfig.extendsBoxImpliedUnstrict.json" + "strict": false, + "configFilePath": "tsconfig.extendsBoxImpliedUnstrict.json" } FileNames:: /dev/main.ts @@ -370,8 +601,8 @@ can lookup via an implicit tsconfig in a package-relative directory with name configFileName:: tsconfig.extendsBoxImpliedUnstrictExtension.json CompilerOptions:: { - "strict": false, - "configFilePath": "tsconfig.extendsBoxImpliedUnstrictExtension.json" + "strict": false, + "configFilePath": "tsconfig.extendsBoxImpliedUnstrictExtension.json" } FileNames:: /dev/main.ts @@ -382,8 +613,8 @@ can lookup via an implicit tsconfig in a package-relative directory with extensi configFileName:: tsconfig.extendsBoxImpliedPath.json CompilerOptions:: { - "strict": true, - "configFilePath": "tsconfig.extendsBoxImpliedPath.json" + "strict": true, + "configFilePath": "tsconfig.extendsBoxImpliedPath.json" } FileNames:: /dev/main.ts @@ -394,8 +625,8 @@ can lookup via an package.json exports configFileName:: tsconfig.extendsFoo.json CompilerOptions:: { - "strict": true, - "configFilePath": "tsconfig.extendsFoo.json" + "strict": true, + "configFilePath": "tsconfig.extendsFoo.json" } FileNames:: /dev/main.ts @@ -406,11 +637,11 @@ can overwrite top-level compilerOptions configFileName:: configs/extendsArrayFifth.json CompilerOptions:: { - "allowJs": true, - "noImplicitAny": false, - "strictNullChecks": false, - "module": 4, - "configFilePath": "configs/extendsArrayFifth.json" + "allowJs": true, + "noImplicitAny": false, + "strictNullChecks": false, + "module": 4, + "configFilePath": "configs/extendsArrayFifth.json" } FileNames:: @@ -421,8 +652,8 @@ can report missing configurations configFileName:: extendsArrayFails.json CompilerOptions:: { - "types": [], - "configFilePath": "extendsArrayFails.json" + "types": [], + "configFilePath": "extendsArrayFails.json" } FileNames:: /dev/main.ts,/dev/supplemental.ts,/dev/tests/utils.ts,/dev/tests/baselines/first/output.ts,/dev/tests/unit/spec.ts @@ -434,7 +665,7 @@ can error when 'extends' is not a string or Array2 configFileName:: extendsArrayFails2.json CompilerOptions:: { - "configFilePath": "extendsArrayFails2.json" + "configFilePath": "extendsArrayFails2.json" } FileNames:: /dev/main.ts,/dev/supplemental.ts,/dev/tests/utils.ts,/dev/tests/baselines/first/output.ts,/dev/tests/unit/spec.ts diff --git a/tests/baselines/reference/config/configurationExtension/under a case sensitive host with jsonSourceFile api.js b/tests/baselines/reference/config/configurationExtension/under a case sensitive host with jsonSourceFile api.js index d2aefd8f29bbd..260443b0c0f80 100644 --- a/tests/baselines/reference/config/configurationExtension/under a case sensitive host with jsonSourceFile api.js +++ b/tests/baselines/reference/config/configurationExtension/under a case sensitive host with jsonSourceFile api.js @@ -1,99 +1,274 @@ Fs:: //// [/dev/circular.json] -{"extends":"./circular2","compilerOptions":{"module":"amd"}} +{ + "extends": "./circular2", + "compilerOptions": { + "module": "amd" + } +} //// [/dev/circular2.json] -{"extends":"./circular","compilerOptions":{"module":"commonjs"}} +{ + "extends": "./circular", + "compilerOptions": { + "module": "commonjs" + } +} //// [/dev/configs/base.json] -{"compilerOptions":{"allowJs":true,"noImplicitAny":true,"strictNullChecks":true}} +{ + "compilerOptions": { + "allowJs": true, + "noImplicitAny": true, + "strictNullChecks": true + } +} //// [/dev/configs/extendsArrayFifth.json] -{"extends":["./extendsArrayFirst","./extendsArraySecond","./extendsArrayThird","./extendsArrayFourth"],"files":[]} +{ + "extends": [ + "./extendsArrayFirst", + "./extendsArraySecond", + "./extendsArrayThird", + "./extendsArrayFourth" + ], + "files": [] +} //// [/dev/configs/extendsArrayFirst.json] -{"compilerOptions":{"allowJs":true,"noImplicitAny":true,"strictNullChecks":true}} +{ + "compilerOptions": { + "allowJs": true, + "noImplicitAny": true, + "strictNullChecks": true + } +} //// [/dev/configs/extendsArrayFourth.json] -{"compilerOptions":{"module":"system","strictNullChecks":false},"include":null,"files":["../main.ts"]} +{ + "compilerOptions": { + "module": "system", + "strictNullChecks": false + }, + "include": null, + "files": [ + "../main.ts" + ] +} //// [/dev/configs/extendsArraySecond.json] -{"compilerOptions":{"module":"amd"},"include":["../supplemental.*"]} +{ + "compilerOptions": { + "module": "amd" + }, + "include": [ + "../supplemental.*" + ] +} //// [/dev/configs/extendsArrayThird.json] -{"compilerOptions":{"module":null,"noImplicitAny":false},"extends":"./extendsArrayFirst","include":["../supplemental.*"]} +{ + "compilerOptions": { + "module": null, + "noImplicitAny": false + }, + "extends": "./extendsArrayFirst", + "include": [ + "../supplemental.*" + ] +} //// [/dev/configs/fifth.json] -{"extends":"./fourth","include":["../tests/utils.ts"],"files":[]} +{ + "extends": "./fourth", + "include": [ + "../tests/utils.ts" + ], + "files": [] +} //// [/dev/configs/first.json] -{"extends":"./base","compilerOptions":{"module":"commonjs"},"files":["../main.ts"]} +{ + "extends": "./base", + "compilerOptions": { + "module": "commonjs" + }, + "files": [ + "../main.ts" + ] +} //// [/dev/configs/fourth.json] -{"extends":"./third","compilerOptions":{"module":"system"},"include":null,"files":["../main.ts"]} +{ + "extends": "./third", + "compilerOptions": { + "module": "system" + }, + "include": null, + "files": [ + "../main.ts" + ] +} //// [/dev/configs/second.json] -{"extends":"./base","compilerOptions":{"module":"amd"},"include":["../supplemental.*"]} +{ + "extends": "./base", + "compilerOptions": { + "module": "amd" + }, + "include": [ + "../supplemental.*" + ] +} //// [/dev/configs/tests.json] -{"compilerOptions":{"preserveConstEnums":true,"removeComments":false,"sourceMap":true},"exclude":["../tests/baselines","../tests/scenarios"],"include":["../tests/**/*.ts"]} +{ + "compilerOptions": { + "preserveConstEnums": true, + "removeComments": false, + "sourceMap": true + }, + "exclude": [ + "../tests/baselines", + "../tests/scenarios" + ], + "include": [ + "../tests/**/*.ts" + ] +} //// [/dev/configs/third.json] -{"extends":"./second","compilerOptions":{"module":null},"include":["../supplemental.*"]} +{ + "extends": "./second", + "compilerOptions": { + "module": null + }, + "include": [ + "../supplemental.*" + ] +} //// [/dev/extends.json] -{"extends":42} +{ + "extends": 42 +} //// [/dev/extends2.json] -{"extends":"configs/base"} +{ + "extends": "configs/base" +} //// [/dev/extends3.json] -{"extends":""} +{ + "extends": "" +} //// [/dev/extends4.json] -{"extends":[""]} +{ + "extends": [ + "" + ] +} //// [/dev/extendsArrayFails.json] -{"extends":["./missingFile"],"compilerOptions":{"types":[]}} +{ + "extends": [ + "./missingFile" + ], + "compilerOptions": { + "types": [] + } +} //// [/dev/extendsArrayFails2.json] -{"extends":[42]} +{ + "extends": [ + 42 + ] +} //// [/dev/failure.json] -{"extends":"./failure2.json","compilerOptions":{"typeRoots":[]}} +{ + "extends": "./failure2.json", + "compilerOptions": { + "typeRoots": [] + } +} //// [/dev/failure2.json] -{"excludes":["*.js"]} +{ + "excludes": [ + "*.js" + ] +} //// [/dev/main.ts] //// [/dev/missing.json] -{"extends":"./missing2","compilerOptions":{"types":[]}} +{ + "extends": "./missing2", + "compilerOptions": { + "types": [] + } +} //// [/dev/node_modules/@foo/tsconfig/package.json] -{"name":"@foo/tsconfig","version":"1.0.0","exports":{".":"./src/tsconfig.json"}} +{ + "name": "@foo/tsconfig", + "version": "1.0.0", + "exports": { + ".": "./src/tsconfig.json" + } +} //// [/dev/node_modules/@foo/tsconfig/src/tsconfig.json] -{"compilerOptions":{"strict":true}} +{ + "compilerOptions": { + "strict": true + } +} //// [/dev/node_modules/config-box/package.json] -{"name":"config-box","version":"1.0.0","tsconfig":"./strict.json"} +{ + "name": "config-box", + "version": "1.0.0", + "tsconfig": "./strict.json" +} //// [/dev/node_modules/config-box/strict.json] -{"compilerOptions":{"strict":true}} +{ + "compilerOptions": { + "strict": true + } +} //// [/dev/node_modules/config-box/unstrict.json] -{"compilerOptions":{"strict":false}} +{ + "compilerOptions": { + "strict": false + } +} //// [/dev/node_modules/config-box-implied/package.json] -{"name":"config-box-implied","version":"1.0.0"} +{ + "name": "config-box-implied", + "version": "1.0.0" +} //// [/dev/node_modules/config-box-implied/tsconfig.json] -{"compilerOptions":{"strict":true}} +{ + "compilerOptions": { + "strict": true + } +} //// [/dev/node_modules/config-box-implied/unstrict/tsconfig.json] -{"compilerOptions":{"strict":false}} +{ + "compilerOptions": { + "strict": false + } +} //// [/dev/supplemental.ts] @@ -111,47 +286,103 @@ Fs:: //// [/dev/tsconfig.extendsBox.json] -{"extends":"config-box","files":["main.ts"]} +{ + "extends": "config-box", + "files": [ + "main.ts" + ] +} //// [/dev/tsconfig.extendsBoxImplied.json] -{"extends":"config-box-implied","files":["main.ts"]} +{ + "extends": "config-box-implied", + "files": [ + "main.ts" + ] +} //// [/dev/tsconfig.extendsBoxImpliedPath.json] -{"extends":"config-box-implied/tsconfig.json","files":["main.ts"]} +{ + "extends": "config-box-implied/tsconfig.json", + "files": [ + "main.ts" + ] +} //// [/dev/tsconfig.extendsBoxImpliedUnstrict.json] -{"extends":"config-box-implied/unstrict","files":["main.ts"]} +{ + "extends": "config-box-implied/unstrict", + "files": [ + "main.ts" + ] +} //// [/dev/tsconfig.extendsBoxImpliedUnstrictExtension.json] -{"extends":"config-box-implied/unstrict/tsconfig","files":["main.ts"]} +{ + "extends": "config-box-implied/unstrict/tsconfig", + "files": [ + "main.ts" + ] +} //// [/dev/tsconfig.extendsFoo.json] -{"extends":"@foo/tsconfig","files":["main.ts"]} +{ + "extends": "@foo/tsconfig", + "files": [ + "main.ts" + ] +} //// [/dev/tsconfig.extendsStrict.json] -{"extends":"config-box/strict","files":["main.ts"]} +{ + "extends": "config-box/strict", + "files": [ + "main.ts" + ] +} //// [/dev/tsconfig.extendsStrictExtension.json] -{"extends":"config-box/strict.json","files":["main.ts"]} +{ + "extends": "config-box/strict.json", + "files": [ + "main.ts" + ] +} //// [/dev/tsconfig.extendsUnStrict.json] -{"extends":"config-box/unstrict","files":["main.ts"]} +{ + "extends": "config-box/unstrict", + "files": [ + "main.ts" + ] +} //// [/dev/tsconfig.json] -{"extends":"./configs/base","files":["main.ts","supplemental.ts"]} +{ + "extends": "./configs/base", + "files": [ + "main.ts", + "supplemental.ts" + ] +} //// [/dev/tsconfig.nostrictnull.json] -{"extends":"./tsconfig","compilerOptions":{"strictNullChecks":false}} +{ + "extends": "./tsconfig", + "compilerOptions": { + "strictNullChecks": false + } +} can resolve an extension with a base extension configFileName:: tsconfig.json CompilerOptions:: { - "allowJs": true, - "noImplicitAny": true, - "strictNullChecks": true, - "configFilePath": "tsconfig.json" + "allowJs": true, + "noImplicitAny": true, + "strictNullChecks": true, + "configFilePath": "tsconfig.json" } FileNames:: /dev/main.ts,/dev/supplemental.ts @@ -162,10 +393,10 @@ can resolve an extension with a base extension that overrides options configFileName:: tsconfig.nostrictnull.json CompilerOptions:: { - "allowJs": true, - "noImplicitAny": true, - "strictNullChecks": false, - "configFilePath": "tsconfig.nostrictnull.json" + "allowJs": true, + "noImplicitAny": true, + "strictNullChecks": false, + "configFilePath": "tsconfig.nostrictnull.json" } FileNames:: /dev/main.ts,/dev/supplemental.ts @@ -176,8 +407,8 @@ can report errors on circular imports configFileName:: circular.json CompilerOptions:: { - "module": 2, - "configFilePath": "circular.json" + "module": 2, + "configFilePath": "circular.json" } FileNames:: /dev/main.ts,/dev/supplemental.ts,/dev/tests/utils.ts,/dev/tests/baselines/first/output.ts,/dev/tests/unit/spec.ts @@ -189,87 +420,87 @@ can report missing configurations configFileName:: missing.json CompilerOptions:: { - "types": [], - "configFilePath": "missing.json" + "types": [], + "configFilePath": "missing.json" } FileNames:: /dev/main.ts,/dev/supplemental.ts,/dev/tests/utils.ts,/dev/tests/baselines/first/output.ts,/dev/tests/unit/spec.ts Errors:: -missing.json:1:12 - error TS6053: File './missing2' not found. +missing.json:2:14 - error TS6053: File './missing2' not found. -1 {"extends":"./missing2","compilerOptions":{"types":[]}} -   ~~~~~~~~~~~~ +2 "extends": "./missing2", +   ~~~~~~~~~~~~ can report errors in extended configs configFileName:: failure.json CompilerOptions:: { - "typeRoots": [], - "configFilePath": "failure.json" + "typeRoots": [], + "configFilePath": "failure.json" } FileNames:: /dev/main.ts,/dev/supplemental.ts,/dev/tests/utils.ts,/dev/tests/baselines/first/output.ts,/dev/tests/unit/spec.ts Errors:: -failure2.json:1:2 - error TS6114: Unknown option 'excludes'. Did you mean 'exclude'? +failure2.json:2:3 - error TS6114: Unknown option 'excludes'. Did you mean 'exclude'? -1 {"excludes":["*.js"]} -   ~~~~~~~~~~ +2 "excludes": [ +   ~~~~~~~~~~ can error when 'extends' is not a string or Array configFileName:: extends.json CompilerOptions:: { - "configFilePath": "extends.json" + "configFilePath": "extends.json" } FileNames:: /dev/main.ts,/dev/supplemental.ts,/dev/tests/utils.ts,/dev/tests/baselines/first/output.ts,/dev/tests/unit/spec.ts Errors:: -extends.json:1:12 - error TS5024: Compiler option 'extends' requires a value of type string or Array. +extends.json:2:14 - error TS5024: Compiler option 'extends' requires a value of type string or Array. -1 {"extends":42} -   ~~ +2 "extends": 42 +   ~~ can error when 'extends' is given an empty string configFileName:: extends3.json CompilerOptions:: { - "configFilePath": "extends3.json" + "configFilePath": "extends3.json" } FileNames:: /dev/main.ts,/dev/supplemental.ts,/dev/tests/utils.ts,/dev/tests/baselines/first/output.ts,/dev/tests/unit/spec.ts Errors:: -extends3.json:1:12 - error TS18051: Compiler option 'extends' cannot be given an empty string. +extends3.json:2:14 - error TS18051: Compiler option 'extends' cannot be given an empty string. -1 {"extends":""} -   ~~ +2 "extends": "" +   ~~ can error when 'extends' is given an empty string in an array configFileName:: extends4.json CompilerOptions:: { - "configFilePath": "extends4.json" + "configFilePath": "extends4.json" } FileNames:: /dev/main.ts,/dev/supplemental.ts,/dev/tests/utils.ts,/dev/tests/baselines/first/output.ts,/dev/tests/unit/spec.ts Errors:: -extends4.json:1:13 - error TS18051: Compiler option 'extends' cannot be given an empty string. +extends4.json:3:5 - error TS18051: Compiler option 'extends' cannot be given an empty string. -1 {"extends":[""]} -   ~~ +3 "" +   ~~ can overwrite compiler options using extended 'null' configFileName:: configs/third.json CompilerOptions:: { - "allowJs": true, - "noImplicitAny": true, - "strictNullChecks": true, - "configFilePath": "configs/third.json" + "allowJs": true, + "noImplicitAny": true, + "strictNullChecks": true, + "configFilePath": "configs/third.json" } FileNames:: /dev/supplemental.ts @@ -280,11 +511,11 @@ can overwrite top-level options using extended 'null' configFileName:: configs/fourth.json CompilerOptions:: { - "allowJs": true, - "noImplicitAny": true, - "strictNullChecks": true, - "module": 4, - "configFilePath": "configs/fourth.json" + "allowJs": true, + "noImplicitAny": true, + "strictNullChecks": true, + "module": 4, + "configFilePath": "configs/fourth.json" } FileNames:: /dev/main.ts @@ -295,11 +526,11 @@ can overwrite top-level files using extended [] configFileName:: configs/fifth.json CompilerOptions:: { - "allowJs": true, - "noImplicitAny": true, - "strictNullChecks": true, - "module": 4, - "configFilePath": "configs/fifth.json" + "allowJs": true, + "noImplicitAny": true, + "strictNullChecks": true, + "module": 4, + "configFilePath": "configs/fifth.json" } FileNames:: /dev/tests/utils.ts @@ -310,8 +541,8 @@ can lookup via tsconfig field configFileName:: tsconfig.extendsBox.json CompilerOptions:: { - "strict": true, - "configFilePath": "tsconfig.extendsBox.json" + "strict": true, + "configFilePath": "tsconfig.extendsBox.json" } FileNames:: /dev/main.ts @@ -322,8 +553,8 @@ can lookup via package-relative path configFileName:: tsconfig.extendsStrict.json CompilerOptions:: { - "strict": true, - "configFilePath": "tsconfig.extendsStrict.json" + "strict": true, + "configFilePath": "tsconfig.extendsStrict.json" } FileNames:: /dev/main.ts @@ -334,8 +565,8 @@ can lookup via non-redirected-to package-relative path configFileName:: tsconfig.extendsUnStrict.json CompilerOptions:: { - "strict": false, - "configFilePath": "tsconfig.extendsUnStrict.json" + "strict": false, + "configFilePath": "tsconfig.extendsUnStrict.json" } FileNames:: /dev/main.ts @@ -346,8 +577,8 @@ can lookup via package-relative path with extension configFileName:: tsconfig.extendsStrictExtension.json CompilerOptions:: { - "strict": true, - "configFilePath": "tsconfig.extendsStrictExtension.json" + "strict": true, + "configFilePath": "tsconfig.extendsStrictExtension.json" } FileNames:: /dev/main.ts @@ -358,8 +589,8 @@ can lookup via an implicit tsconfig configFileName:: tsconfig.extendsBoxImplied.json CompilerOptions:: { - "strict": true, - "configFilePath": "tsconfig.extendsBoxImplied.json" + "strict": true, + "configFilePath": "tsconfig.extendsBoxImplied.json" } FileNames:: /dev/main.ts @@ -370,8 +601,8 @@ can lookup via an implicit tsconfig in a package-relative directory configFileName:: tsconfig.extendsBoxImpliedUnstrict.json CompilerOptions:: { - "strict": false, - "configFilePath": "tsconfig.extendsBoxImpliedUnstrict.json" + "strict": false, + "configFilePath": "tsconfig.extendsBoxImpliedUnstrict.json" } FileNames:: /dev/main.ts @@ -382,8 +613,8 @@ can lookup via an implicit tsconfig in a package-relative directory with name configFileName:: tsconfig.extendsBoxImpliedUnstrictExtension.json CompilerOptions:: { - "strict": false, - "configFilePath": "tsconfig.extendsBoxImpliedUnstrictExtension.json" + "strict": false, + "configFilePath": "tsconfig.extendsBoxImpliedUnstrictExtension.json" } FileNames:: /dev/main.ts @@ -394,8 +625,8 @@ can lookup via an implicit tsconfig in a package-relative directory with extensi configFileName:: tsconfig.extendsBoxImpliedPath.json CompilerOptions:: { - "strict": true, - "configFilePath": "tsconfig.extendsBoxImpliedPath.json" + "strict": true, + "configFilePath": "tsconfig.extendsBoxImpliedPath.json" } FileNames:: /dev/main.ts @@ -406,8 +637,8 @@ can lookup via an package.json exports configFileName:: tsconfig.extendsFoo.json CompilerOptions:: { - "strict": true, - "configFilePath": "tsconfig.extendsFoo.json" + "strict": true, + "configFilePath": "tsconfig.extendsFoo.json" } FileNames:: /dev/main.ts @@ -418,11 +649,11 @@ can overwrite top-level compilerOptions configFileName:: configs/extendsArrayFifth.json CompilerOptions:: { - "allowJs": true, - "noImplicitAny": false, - "strictNullChecks": false, - "module": 4, - "configFilePath": "configs/extendsArrayFifth.json" + "allowJs": true, + "noImplicitAny": false, + "strictNullChecks": false, + "module": 4, + "configFilePath": "configs/extendsArrayFifth.json" } FileNames:: @@ -433,29 +664,29 @@ can report missing configurations configFileName:: extendsArrayFails.json CompilerOptions:: { - "types": [], - "configFilePath": "extendsArrayFails.json" + "types": [], + "configFilePath": "extendsArrayFails.json" } FileNames:: /dev/main.ts,/dev/supplemental.ts,/dev/tests/utils.ts,/dev/tests/baselines/first/output.ts,/dev/tests/unit/spec.ts Errors:: -extendsArrayFails.json:1:13 - error TS6053: File './missingFile' not found. +extendsArrayFails.json:3:5 - error TS6053: File './missingFile' not found. -1 {"extends":["./missingFile"],"compilerOptions":{"types":[]}} -   ~~~~~~~~~~~~~~~ +3 "./missingFile" +   ~~~~~~~~~~~~~~~ can error when 'extends' is not a string or Array2 configFileName:: extendsArrayFails2.json CompilerOptions:: { - "configFilePath": "extendsArrayFails2.json" + "configFilePath": "extendsArrayFails2.json" } FileNames:: /dev/main.ts,/dev/supplemental.ts,/dev/tests/utils.ts,/dev/tests/baselines/first/output.ts,/dev/tests/unit/spec.ts Errors:: -extendsArrayFails2.json:1:13 - error TS5024: Compiler option 'extends' requires a value of type string. +extendsArrayFails2.json:3:5 - error TS5024: Compiler option 'extends' requires a value of type string. -1 {"extends":[42]} -   ~~ +3 42 +   ~~ diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Allow trailing comments with jsonSourceFile api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Allow trailing comments with jsonSourceFile api.js index e2426e5f2c370..1540688aeb520 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Allow trailing comments with jsonSourceFile api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Allow trailing comments with jsonSourceFile api.js @@ -12,7 +12,7 @@ Fs:: configFileName:: tsconfig.json CompilerOptions:: { - "configFilePath": "tsconfig.json" + "configFilePath": "tsconfig.json" } Errors:: diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert a tsconfig file as an array with jsonSourceFile api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert a tsconfig file as an array with jsonSourceFile api.js index 8dd1abf9d2156..90fa66bb14fc7 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert a tsconfig file as an array with jsonSourceFile api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert a tsconfig file as an array with jsonSourceFile api.js @@ -16,8 +16,8 @@ Fs:: configFileName:: tsconfig.json CompilerOptions:: { - "target": 99, - "configFilePath": "tsconfig.json" + "target": 99, + "configFilePath": "tsconfig.json" } Errors:: tsconfig.json:1:1 - error TS5092: The root value of a 'tsconfig.json' file must be an object. diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert a tsconfig file with stray leading characters with jsonSourceFile api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert a tsconfig file with stray leading characters with jsonSourceFile api.js index c279e51a5fb6c..84ae731089bf3 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert a tsconfig file with stray leading characters with jsonSourceFile api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert a tsconfig file with stray leading characters with jsonSourceFile api.js @@ -16,8 +16,8 @@ blah { configFileName:: tsconfig.json CompilerOptions:: { - "target": 99, - "configFilePath": "tsconfig.json" + "target": 99, + "configFilePath": "tsconfig.json" } Errors:: tsconfig.json:1:1 - error TS1136: Property assignment expected. diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert a tsconfig file with stray trailing characters with jsonSourceFile api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert a tsconfig file with stray trailing characters with jsonSourceFile api.js index 576fd7db78e77..5b96f9b0eb8d4 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert a tsconfig file with stray trailing characters with jsonSourceFile api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert a tsconfig file with stray trailing characters with jsonSourceFile api.js @@ -16,8 +16,8 @@ Fs:: configFileName:: tsconfig.json CompilerOptions:: { - "target": 99, - "configFilePath": "tsconfig.json" + "target": 99, + "configFilePath": "tsconfig.json" } Errors:: tsconfig.json:1:1 - error TS5092: The root value of a 'tsconfig.json' file must be an object. diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert correctly format jsconfig.json to compiler-options with json api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert correctly format jsconfig.json to compiler-options with json api.js index 1e8650209fa0c..0879e79e7177c 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert correctly format jsconfig.json to compiler-options with json api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert correctly format jsconfig.json to compiler-options with json api.js @@ -7,38 +7,38 @@ Fs:: //// [/apath/jsconfig.json] { - "compilerOptions": { - "module": "commonjs", - "target": "es5", - "noImplicitAny": false, - "sourceMap": false, - "lib": [ - "es5", - "es2015.core", - "es2015.symbol" - ] - } + "compilerOptions": { + "module": "commonjs", + "target": "es5", + "noImplicitAny": false, + "sourceMap": false, + "lib": [ + "es5", + "es2015.core", + "es2015.symbol" + ] + } } configFileName:: jsconfig.json CompilerOptions:: { - "allowJs": true, - "maxNodeModuleJsDepth": 2, - "allowSyntheticDefaultImports": true, - "skipLibCheck": true, - "noEmit": true, - "module": 1, - "target": 1, - "noImplicitAny": false, - "sourceMap": false, - "lib": [ - "lib.es5.d.ts", - "lib.es2015.core.d.ts", - "lib.es2015.symbol.d.ts" - ], - "configFilePath": "jsconfig.json" + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "module": 1, + "target": 1, + "noImplicitAny": false, + "sourceMap": false, + "lib": [ + "lib.es5.d.ts", + "lib.es2015.core.d.ts", + "lib.es2015.symbol.d.ts" + ], + "configFilePath": "jsconfig.json" } Errors:: diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert correctly format jsconfig.json to compiler-options with jsonSourceFile api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert correctly format jsconfig.json to compiler-options with jsonSourceFile api.js index 1e8650209fa0c..0879e79e7177c 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert correctly format jsconfig.json to compiler-options with jsonSourceFile api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert correctly format jsconfig.json to compiler-options with jsonSourceFile api.js @@ -7,38 +7,38 @@ Fs:: //// [/apath/jsconfig.json] { - "compilerOptions": { - "module": "commonjs", - "target": "es5", - "noImplicitAny": false, - "sourceMap": false, - "lib": [ - "es5", - "es2015.core", - "es2015.symbol" - ] - } + "compilerOptions": { + "module": "commonjs", + "target": "es5", + "noImplicitAny": false, + "sourceMap": false, + "lib": [ + "es5", + "es2015.core", + "es2015.symbol" + ] + } } configFileName:: jsconfig.json CompilerOptions:: { - "allowJs": true, - "maxNodeModuleJsDepth": 2, - "allowSyntheticDefaultImports": true, - "skipLibCheck": true, - "noEmit": true, - "module": 1, - "target": 1, - "noImplicitAny": false, - "sourceMap": false, - "lib": [ - "lib.es5.d.ts", - "lib.es2015.core.d.ts", - "lib.es2015.symbol.d.ts" - ], - "configFilePath": "jsconfig.json" + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "module": 1, + "target": 1, + "noImplicitAny": false, + "sourceMap": false, + "lib": [ + "lib.es5.d.ts", + "lib.es2015.core.d.ts", + "lib.es2015.symbol.d.ts" + ], + "configFilePath": "jsconfig.json" } Errors:: diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert correctly format jsconfig.json with allowJs is false to compiler-options with json api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert correctly format jsconfig.json with allowJs is false to compiler-options with json api.js index 3c67eb6c08cd2..5b9debc51a06b 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert correctly format jsconfig.json with allowJs is false to compiler-options with json api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert correctly format jsconfig.json with allowJs is false to compiler-options with json api.js @@ -7,39 +7,39 @@ Fs:: //// [/apath/jsconfig.json] { - "compilerOptions": { - "module": "commonjs", - "target": "es5", - "noImplicitAny": false, - "sourceMap": false, - "allowJs": false, - "lib": [ - "es5", - "es2015.core", - "es2015.symbol" - ] - } + "compilerOptions": { + "module": "commonjs", + "target": "es5", + "noImplicitAny": false, + "sourceMap": false, + "allowJs": false, + "lib": [ + "es5", + "es2015.core", + "es2015.symbol" + ] + } } configFileName:: jsconfig.json CompilerOptions:: { - "allowJs": false, - "maxNodeModuleJsDepth": 2, - "allowSyntheticDefaultImports": true, - "skipLibCheck": true, - "noEmit": true, - "module": 1, - "target": 1, - "noImplicitAny": false, - "sourceMap": false, - "lib": [ - "lib.es5.d.ts", - "lib.es2015.core.d.ts", - "lib.es2015.symbol.d.ts" - ], - "configFilePath": "jsconfig.json" + "allowJs": false, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "module": 1, + "target": 1, + "noImplicitAny": false, + "sourceMap": false, + "lib": [ + "lib.es5.d.ts", + "lib.es2015.core.d.ts", + "lib.es2015.symbol.d.ts" + ], + "configFilePath": "jsconfig.json" } Errors:: diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert correctly format jsconfig.json with allowJs is false to compiler-options with jsonSourceFile api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert correctly format jsconfig.json with allowJs is false to compiler-options with jsonSourceFile api.js index 3c67eb6c08cd2..5b9debc51a06b 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert correctly format jsconfig.json with allowJs is false to compiler-options with jsonSourceFile api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert correctly format jsconfig.json with allowJs is false to compiler-options with jsonSourceFile api.js @@ -7,39 +7,39 @@ Fs:: //// [/apath/jsconfig.json] { - "compilerOptions": { - "module": "commonjs", - "target": "es5", - "noImplicitAny": false, - "sourceMap": false, - "allowJs": false, - "lib": [ - "es5", - "es2015.core", - "es2015.symbol" - ] - } + "compilerOptions": { + "module": "commonjs", + "target": "es5", + "noImplicitAny": false, + "sourceMap": false, + "allowJs": false, + "lib": [ + "es5", + "es2015.core", + "es2015.symbol" + ] + } } configFileName:: jsconfig.json CompilerOptions:: { - "allowJs": false, - "maxNodeModuleJsDepth": 2, - "allowSyntheticDefaultImports": true, - "skipLibCheck": true, - "noEmit": true, - "module": 1, - "target": 1, - "noImplicitAny": false, - "sourceMap": false, - "lib": [ - "lib.es5.d.ts", - "lib.es2015.core.d.ts", - "lib.es2015.symbol.d.ts" - ], - "configFilePath": "jsconfig.json" + "allowJs": false, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "module": 1, + "target": 1, + "noImplicitAny": false, + "sourceMap": false, + "lib": [ + "lib.es5.d.ts", + "lib.es2015.core.d.ts", + "lib.es2015.symbol.d.ts" + ], + "configFilePath": "jsconfig.json" } Errors:: diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert correctly format tsconfig.json to compiler-options with json api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert correctly format tsconfig.json to compiler-options with json api.js index 4b35dd8cc8a1b..c037bbfc6e645 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert correctly format tsconfig.json to compiler-options with json api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert correctly format tsconfig.json to compiler-options with json api.js @@ -7,33 +7,33 @@ Fs:: //// [/apath/tsconfig.json] { - "compilerOptions": { - "module": "commonjs", - "target": "es5", - "noImplicitAny": false, - "sourceMap": false, - "lib": [ - "es5", - "es2015.core", - "es2015.symbol" - ] - } + "compilerOptions": { + "module": "commonjs", + "target": "es5", + "noImplicitAny": false, + "sourceMap": false, + "lib": [ + "es5", + "es2015.core", + "es2015.symbol" + ] + } } configFileName:: tsconfig.json CompilerOptions:: { - "module": 1, - "target": 1, - "noImplicitAny": false, - "sourceMap": false, - "lib": [ - "lib.es5.d.ts", - "lib.es2015.core.d.ts", - "lib.es2015.symbol.d.ts" - ], - "configFilePath": "tsconfig.json" + "module": 1, + "target": 1, + "noImplicitAny": false, + "sourceMap": false, + "lib": [ + "lib.es5.d.ts", + "lib.es2015.core.d.ts", + "lib.es2015.symbol.d.ts" + ], + "configFilePath": "tsconfig.json" } Errors:: diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert correctly format tsconfig.json to compiler-options with jsonSourceFile api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert correctly format tsconfig.json to compiler-options with jsonSourceFile api.js index 4b35dd8cc8a1b..c037bbfc6e645 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert correctly format tsconfig.json to compiler-options with jsonSourceFile api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert correctly format tsconfig.json to compiler-options with jsonSourceFile api.js @@ -7,33 +7,33 @@ Fs:: //// [/apath/tsconfig.json] { - "compilerOptions": { - "module": "commonjs", - "target": "es5", - "noImplicitAny": false, - "sourceMap": false, - "lib": [ - "es5", - "es2015.core", - "es2015.symbol" - ] - } + "compilerOptions": { + "module": "commonjs", + "target": "es5", + "noImplicitAny": false, + "sourceMap": false, + "lib": [ + "es5", + "es2015.core", + "es2015.symbol" + ] + } } configFileName:: tsconfig.json CompilerOptions:: { - "module": 1, - "target": 1, - "noImplicitAny": false, - "sourceMap": false, - "lib": [ - "lib.es5.d.ts", - "lib.es2015.core.d.ts", - "lib.es2015.symbol.d.ts" - ], - "configFilePath": "tsconfig.json" + "module": 1, + "target": 1, + "noImplicitAny": false, + "sourceMap": false, + "lib": [ + "lib.es5.d.ts", + "lib.es2015.core.d.ts", + "lib.es2015.symbol.d.ts" + ], + "configFilePath": "tsconfig.json" } Errors:: diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert correctly format tsconfig.json with allowJs is false to compiler-options with json api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert correctly format tsconfig.json with allowJs is false to compiler-options with json api.js index 24bfd8aeed5fa..a2cdca3964103 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert correctly format tsconfig.json with allowJs is false to compiler-options with json api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert correctly format tsconfig.json with allowJs is false to compiler-options with json api.js @@ -7,35 +7,35 @@ Fs:: //// [/apath/tsconfig.json] { - "compilerOptions": { - "module": "commonjs", - "target": "es5", - "noImplicitAny": false, - "sourceMap": false, - "allowJs": false, - "lib": [ - "es5", - "es2015.core", - "es2015.symbol" - ] - } + "compilerOptions": { + "module": "commonjs", + "target": "es5", + "noImplicitAny": false, + "sourceMap": false, + "allowJs": false, + "lib": [ + "es5", + "es2015.core", + "es2015.symbol" + ] + } } configFileName:: tsconfig.json CompilerOptions:: { - "module": 1, - "target": 1, - "noImplicitAny": false, - "sourceMap": false, - "allowJs": false, - "lib": [ - "lib.es5.d.ts", - "lib.es2015.core.d.ts", - "lib.es2015.symbol.d.ts" - ], - "configFilePath": "tsconfig.json" + "module": 1, + "target": 1, + "noImplicitAny": false, + "sourceMap": false, + "allowJs": false, + "lib": [ + "lib.es5.d.ts", + "lib.es2015.core.d.ts", + "lib.es2015.symbol.d.ts" + ], + "configFilePath": "tsconfig.json" } Errors:: diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert correctly format tsconfig.json with allowJs is false to compiler-options with jsonSourceFile api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert correctly format tsconfig.json with allowJs is false to compiler-options with jsonSourceFile api.js index 24bfd8aeed5fa..a2cdca3964103 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert correctly format tsconfig.json with allowJs is false to compiler-options with jsonSourceFile api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert correctly format tsconfig.json with allowJs is false to compiler-options with jsonSourceFile api.js @@ -7,35 +7,35 @@ Fs:: //// [/apath/tsconfig.json] { - "compilerOptions": { - "module": "commonjs", - "target": "es5", - "noImplicitAny": false, - "sourceMap": false, - "allowJs": false, - "lib": [ - "es5", - "es2015.core", - "es2015.symbol" - ] - } + "compilerOptions": { + "module": "commonjs", + "target": "es5", + "noImplicitAny": false, + "sourceMap": false, + "allowJs": false, + "lib": [ + "es5", + "es2015.core", + "es2015.symbol" + ] + } } configFileName:: tsconfig.json CompilerOptions:: { - "module": 1, - "target": 1, - "noImplicitAny": false, - "sourceMap": false, - "allowJs": false, - "lib": [ - "lib.es5.d.ts", - "lib.es2015.core.d.ts", - "lib.es2015.symbol.d.ts" - ], - "configFilePath": "tsconfig.json" + "module": 1, + "target": 1, + "noImplicitAny": false, + "sourceMap": false, + "allowJs": false, + "lib": [ + "lib.es5.d.ts", + "lib.es2015.core.d.ts", + "lib.es2015.symbol.d.ts" + ], + "configFilePath": "tsconfig.json" } Errors:: diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert default jsconfig.json to compiler-options with json api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert default jsconfig.json to compiler-options with json api.js index 02ee479e8cdab..cb4cd771c7a9b 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert default jsconfig.json to compiler-options with json api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert default jsconfig.json to compiler-options with json api.js @@ -12,12 +12,12 @@ Fs:: configFileName:: jsconfig.json CompilerOptions:: { - "allowJs": true, - "maxNodeModuleJsDepth": 2, - "allowSyntheticDefaultImports": true, - "skipLibCheck": true, - "noEmit": true, - "configFilePath": "jsconfig.json" + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "configFilePath": "jsconfig.json" } Errors:: diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert default jsconfig.json to compiler-options with jsonSourceFile api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert default jsconfig.json to compiler-options with jsonSourceFile api.js index 02ee479e8cdab..cb4cd771c7a9b 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert default jsconfig.json to compiler-options with jsonSourceFile api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert default jsconfig.json to compiler-options with jsonSourceFile api.js @@ -12,12 +12,12 @@ Fs:: configFileName:: jsconfig.json CompilerOptions:: { - "allowJs": true, - "maxNodeModuleJsDepth": 2, - "allowSyntheticDefaultImports": true, - "skipLibCheck": true, - "noEmit": true, - "configFilePath": "jsconfig.json" + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "configFilePath": "jsconfig.json" } Errors:: diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert default tsconfig.json to compiler-options with json api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert default tsconfig.json to compiler-options with json api.js index 0890fd9558614..35bf143090a47 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert default tsconfig.json to compiler-options with json api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert default tsconfig.json to compiler-options with json api.js @@ -12,7 +12,7 @@ Fs:: configFileName:: tsconfig.json CompilerOptions:: { - "configFilePath": "tsconfig.json" + "configFilePath": "tsconfig.json" } Errors:: diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert default tsconfig.json to compiler-options with jsonSourceFile api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert default tsconfig.json to compiler-options with jsonSourceFile api.js index 0890fd9558614..35bf143090a47 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert default tsconfig.json to compiler-options with jsonSourceFile api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert default tsconfig.json to compiler-options with jsonSourceFile api.js @@ -12,7 +12,7 @@ Fs:: configFileName:: tsconfig.json CompilerOptions:: { - "configFilePath": "tsconfig.json" + "configFilePath": "tsconfig.json" } Errors:: diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert empty option of libs to compiler-options with json api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert empty option of libs to compiler-options with json api.js index a11242e30a573..ca5e5fb2d69a2 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert empty option of libs to compiler-options with json api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert empty option of libs to compiler-options with json api.js @@ -7,25 +7,25 @@ Fs:: //// [/apath/tsconfig.json] { - "compilerOptions": { - "module": "commonjs", - "target": "es5", - "noImplicitAny": false, - "sourceMap": false, - "lib": [] - } + "compilerOptions": { + "module": "commonjs", + "target": "es5", + "noImplicitAny": false, + "sourceMap": false, + "lib": [] + } } configFileName:: tsconfig.json CompilerOptions:: { - "module": 1, - "target": 1, - "noImplicitAny": false, - "sourceMap": false, - "lib": [], - "configFilePath": "tsconfig.json" + "module": 1, + "target": 1, + "noImplicitAny": false, + "sourceMap": false, + "lib": [], + "configFilePath": "tsconfig.json" } Errors:: diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert empty option of libs to compiler-options with jsonSourceFile api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert empty option of libs to compiler-options with jsonSourceFile api.js index a11242e30a573..ca5e5fb2d69a2 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert empty option of libs to compiler-options with jsonSourceFile api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert empty option of libs to compiler-options with jsonSourceFile api.js @@ -7,25 +7,25 @@ Fs:: //// [/apath/tsconfig.json] { - "compilerOptions": { - "module": "commonjs", - "target": "es5", - "noImplicitAny": false, - "sourceMap": false, - "lib": [] - } + "compilerOptions": { + "module": "commonjs", + "target": "es5", + "noImplicitAny": false, + "sourceMap": false, + "lib": [] + } } configFileName:: tsconfig.json CompilerOptions:: { - "module": 1, - "target": 1, - "noImplicitAny": false, - "sourceMap": false, - "lib": [], - "configFilePath": "tsconfig.json" + "module": 1, + "target": 1, + "noImplicitAny": false, + "sourceMap": false, + "lib": [], + "configFilePath": "tsconfig.json" } Errors:: diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert empty option of moduleSuffixes to compiler-options with json api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert empty option of moduleSuffixes to compiler-options with json api.js index 93647f7bdea8d..cb440a9a82d1e 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert empty option of moduleSuffixes to compiler-options with json api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert empty option of moduleSuffixes to compiler-options with json api.js @@ -7,17 +7,17 @@ Fs:: //// [/apath/tsconfig.json] { - "compilerOptions": { - "moduleSuffixes": [] - } + "compilerOptions": { + "moduleSuffixes": [] + } } configFileName:: tsconfig.json CompilerOptions:: { - "moduleSuffixes": [], - "configFilePath": "tsconfig.json" + "moduleSuffixes": [], + "configFilePath": "tsconfig.json" } Errors:: diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert empty option of moduleSuffixes to compiler-options with jsonSourceFile api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert empty option of moduleSuffixes to compiler-options with jsonSourceFile api.js index 93647f7bdea8d..cb440a9a82d1e 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert empty option of moduleSuffixes to compiler-options with jsonSourceFile api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert empty option of moduleSuffixes to compiler-options with jsonSourceFile api.js @@ -7,17 +7,17 @@ Fs:: //// [/apath/tsconfig.json] { - "compilerOptions": { - "moduleSuffixes": [] - } + "compilerOptions": { + "moduleSuffixes": [] + } } configFileName:: tsconfig.json CompilerOptions:: { - "moduleSuffixes": [], - "configFilePath": "tsconfig.json" + "moduleSuffixes": [], + "configFilePath": "tsconfig.json" } Errors:: diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert empty string option of libs array to compiler-options with json api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert empty string option of libs array to compiler-options with json api.js index b41282b381aae..37c32f65103f5 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert empty string option of libs array to compiler-options with json api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert empty string option of libs array to compiler-options with json api.js @@ -7,27 +7,27 @@ Fs:: //// [/apath/tsconfig.json] { - "compilerOptions": { - "module": "commonjs", - "target": "es5", - "noImplicitAny": false, - "sourceMap": false, - "lib": [ - "" - ] - } + "compilerOptions": { + "module": "commonjs", + "target": "es5", + "noImplicitAny": false, + "sourceMap": false, + "lib": [ + "" + ] + } } configFileName:: tsconfig.json CompilerOptions:: { - "module": 1, - "target": 1, - "noImplicitAny": false, - "sourceMap": false, - "lib": [], - "configFilePath": "tsconfig.json" + "module": 1, + "target": 1, + "noImplicitAny": false, + "sourceMap": false, + "lib": [], + "configFilePath": "tsconfig.json" } Errors:: error TS6046: Argument for '--lib' option must be: 'es5', 'es6', 'es2015', 'es7', 'es2016', 'es2017', 'es2018', 'es2019', 'es2020', 'es2021', 'es2022', 'es2023', 'esnext', 'dom', 'dom.iterable', 'webworker', 'webworker.importscripts', 'webworker.iterable', 'scripthost', 'es2015.core', 'es2015.collection', 'es2015.generator', 'es2015.iterable', 'es2015.promise', 'es2015.proxy', 'es2015.reflect', 'es2015.symbol', 'es2015.symbol.wellknown', 'es2016.array.include', 'es2017.date', 'es2017.object', 'es2017.sharedmemory', 'es2017.string', 'es2017.intl', 'es2017.typedarrays', 'es2018.asyncgenerator', 'es2018.asynciterable', 'es2018.intl', 'es2018.promise', 'es2018.regexp', 'es2019.array', 'es2019.object', 'es2019.string', 'es2019.symbol', 'es2019.intl', 'es2020.bigint', 'es2020.date', 'es2020.promise', 'es2020.sharedmemory', 'es2020.string', 'es2020.symbol.wellknown', 'es2020.intl', 'es2020.number', 'es2021.promise', 'es2021.string', 'es2021.weakref', 'es2021.intl', 'es2022.array', 'es2022.error', 'es2022.intl', 'es2022.object', 'es2022.sharedmemory', 'es2022.string', 'es2022.regexp', 'es2023.array', 'es2023.collection', 'esnext.array', 'esnext.collection', 'esnext.symbol', 'esnext.asynciterable', 'esnext.intl', 'esnext.disposable', 'esnext.bigint', 'esnext.string', 'esnext.promise', 'esnext.weakref', 'esnext.decorators', 'decorators', 'decorators.legacy'. diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert empty string option of libs array to compiler-options with jsonSourceFile api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert empty string option of libs array to compiler-options with jsonSourceFile api.js index 02ac569fedb9f..0dc6edd2646cf 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert empty string option of libs array to compiler-options with jsonSourceFile api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert empty string option of libs array to compiler-options with jsonSourceFile api.js @@ -7,31 +7,31 @@ Fs:: //// [/apath/tsconfig.json] { - "compilerOptions": { - "module": "commonjs", - "target": "es5", - "noImplicitAny": false, - "sourceMap": false, - "lib": [ - "" - ] - } + "compilerOptions": { + "module": "commonjs", + "target": "es5", + "noImplicitAny": false, + "sourceMap": false, + "lib": [ + "" + ] + } } configFileName:: tsconfig.json CompilerOptions:: { - "module": 1, - "target": 1, - "noImplicitAny": false, - "sourceMap": false, - "lib": [], - "configFilePath": "tsconfig.json" + "module": 1, + "target": 1, + "noImplicitAny": false, + "sourceMap": false, + "lib": [], + "configFilePath": "tsconfig.json" } Errors:: -tsconfig.json:8:4 - error TS6046: Argument for '--lib' option must be: 'es5', 'es6', 'es2015', 'es7', 'es2016', 'es2017', 'es2018', 'es2019', 'es2020', 'es2021', 'es2022', 'es2023', 'esnext', 'dom', 'dom.iterable', 'webworker', 'webworker.importscripts', 'webworker.iterable', 'scripthost', 'es2015.core', 'es2015.collection', 'es2015.generator', 'es2015.iterable', 'es2015.promise', 'es2015.proxy', 'es2015.reflect', 'es2015.symbol', 'es2015.symbol.wellknown', 'es2016.array.include', 'es2017.date', 'es2017.object', 'es2017.sharedmemory', 'es2017.string', 'es2017.intl', 'es2017.typedarrays', 'es2018.asyncgenerator', 'es2018.asynciterable', 'es2018.intl', 'es2018.promise', 'es2018.regexp', 'es2019.array', 'es2019.object', 'es2019.string', 'es2019.symbol', 'es2019.intl', 'es2020.bigint', 'es2020.date', 'es2020.promise', 'es2020.sharedmemory', 'es2020.string', 'es2020.symbol.wellknown', 'es2020.intl', 'es2020.number', 'es2021.promise', 'es2021.string', 'es2021.weakref', 'es2021.intl', 'es2022.array', 'es2022.error', 'es2022.intl', 'es2022.object', 'es2022.sharedmemory', 'es2022.string', 'es2022.regexp', 'es2023.array', 'es2023.collection', 'esnext.array', 'esnext.collection', 'esnext.symbol', 'esnext.asynciterable', 'esnext.intl', 'esnext.disposable', 'esnext.bigint', 'esnext.string', 'esnext.promise', 'esnext.weakref', 'esnext.decorators', 'decorators', 'decorators.legacy'. +tsconfig.json:8:7 - error TS6046: Argument for '--lib' option must be: 'es5', 'es6', 'es2015', 'es7', 'es2016', 'es2017', 'es2018', 'es2019', 'es2020', 'es2021', 'es2022', 'es2023', 'esnext', 'dom', 'dom.iterable', 'webworker', 'webworker.importscripts', 'webworker.iterable', 'scripthost', 'es2015.core', 'es2015.collection', 'es2015.generator', 'es2015.iterable', 'es2015.promise', 'es2015.proxy', 'es2015.reflect', 'es2015.symbol', 'es2015.symbol.wellknown', 'es2016.array.include', 'es2017.date', 'es2017.object', 'es2017.sharedmemory', 'es2017.string', 'es2017.intl', 'es2017.typedarrays', 'es2018.asyncgenerator', 'es2018.asynciterable', 'es2018.intl', 'es2018.promise', 'es2018.regexp', 'es2019.array', 'es2019.object', 'es2019.string', 'es2019.symbol', 'es2019.intl', 'es2020.bigint', 'es2020.date', 'es2020.promise', 'es2020.sharedmemory', 'es2020.string', 'es2020.symbol.wellknown', 'es2020.intl', 'es2020.number', 'es2021.promise', 'es2021.string', 'es2021.weakref', 'es2021.intl', 'es2022.array', 'es2022.error', 'es2022.intl', 'es2022.object', 'es2022.sharedmemory', 'es2022.string', 'es2022.regexp', 'es2023.array', 'es2023.collection', 'esnext.array', 'esnext.collection', 'esnext.symbol', 'esnext.asynciterable', 'esnext.intl', 'esnext.disposable', 'esnext.bigint', 'esnext.string', 'esnext.promise', 'esnext.weakref', 'esnext.decorators', 'decorators', 'decorators.legacy'. -8 "" -   ~~ +8 "" +   ~~ diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert empty string option of libs to compiler-options with json api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert empty string option of libs to compiler-options with json api.js index c634db54a0bf3..2c726ae2767a7 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert empty string option of libs to compiler-options with json api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert empty string option of libs to compiler-options with json api.js @@ -7,30 +7,30 @@ Fs:: //// [/apath/tsconfig.json] { - "compilerOptions": { - "module": "commonjs", - "target": "es5", - "noImplicitAny": false, - "sourceMap": false, - "lib": [ - "es5", - "" - ] - } + "compilerOptions": { + "module": "commonjs", + "target": "es5", + "noImplicitAny": false, + "sourceMap": false, + "lib": [ + "es5", + "" + ] + } } configFileName:: tsconfig.json CompilerOptions:: { - "module": 1, - "target": 1, - "noImplicitAny": false, - "sourceMap": false, - "lib": [ - "lib.es5.d.ts" - ], - "configFilePath": "tsconfig.json" + "module": 1, + "target": 1, + "noImplicitAny": false, + "sourceMap": false, + "lib": [ + "lib.es5.d.ts" + ], + "configFilePath": "tsconfig.json" } Errors:: error TS6046: Argument for '--lib' option must be: 'es5', 'es6', 'es2015', 'es7', 'es2016', 'es2017', 'es2018', 'es2019', 'es2020', 'es2021', 'es2022', 'es2023', 'esnext', 'dom', 'dom.iterable', 'webworker', 'webworker.importscripts', 'webworker.iterable', 'scripthost', 'es2015.core', 'es2015.collection', 'es2015.generator', 'es2015.iterable', 'es2015.promise', 'es2015.proxy', 'es2015.reflect', 'es2015.symbol', 'es2015.symbol.wellknown', 'es2016.array.include', 'es2017.date', 'es2017.object', 'es2017.sharedmemory', 'es2017.string', 'es2017.intl', 'es2017.typedarrays', 'es2018.asyncgenerator', 'es2018.asynciterable', 'es2018.intl', 'es2018.promise', 'es2018.regexp', 'es2019.array', 'es2019.object', 'es2019.string', 'es2019.symbol', 'es2019.intl', 'es2020.bigint', 'es2020.date', 'es2020.promise', 'es2020.sharedmemory', 'es2020.string', 'es2020.symbol.wellknown', 'es2020.intl', 'es2020.number', 'es2021.promise', 'es2021.string', 'es2021.weakref', 'es2021.intl', 'es2022.array', 'es2022.error', 'es2022.intl', 'es2022.object', 'es2022.sharedmemory', 'es2022.string', 'es2022.regexp', 'es2023.array', 'es2023.collection', 'esnext.array', 'esnext.collection', 'esnext.symbol', 'esnext.asynciterable', 'esnext.intl', 'esnext.disposable', 'esnext.bigint', 'esnext.string', 'esnext.promise', 'esnext.weakref', 'esnext.decorators', 'decorators', 'decorators.legacy'. diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert empty string option of libs to compiler-options with jsonSourceFile api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert empty string option of libs to compiler-options with jsonSourceFile api.js index 9e6c26bc9d9d3..f511b2a932f70 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert empty string option of libs to compiler-options with jsonSourceFile api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert empty string option of libs to compiler-options with jsonSourceFile api.js @@ -7,34 +7,34 @@ Fs:: //// [/apath/tsconfig.json] { - "compilerOptions": { - "module": "commonjs", - "target": "es5", - "noImplicitAny": false, - "sourceMap": false, - "lib": [ - "es5", - "" - ] - } + "compilerOptions": { + "module": "commonjs", + "target": "es5", + "noImplicitAny": false, + "sourceMap": false, + "lib": [ + "es5", + "" + ] + } } configFileName:: tsconfig.json CompilerOptions:: { - "module": 1, - "target": 1, - "noImplicitAny": false, - "sourceMap": false, - "lib": [ - "lib.es5.d.ts" - ], - "configFilePath": "tsconfig.json" + "module": 1, + "target": 1, + "noImplicitAny": false, + "sourceMap": false, + "lib": [ + "lib.es5.d.ts" + ], + "configFilePath": "tsconfig.json" } Errors:: -tsconfig.json:9:4 - error TS6046: Argument for '--lib' option must be: 'es5', 'es6', 'es2015', 'es7', 'es2016', 'es2017', 'es2018', 'es2019', 'es2020', 'es2021', 'es2022', 'es2023', 'esnext', 'dom', 'dom.iterable', 'webworker', 'webworker.importscripts', 'webworker.iterable', 'scripthost', 'es2015.core', 'es2015.collection', 'es2015.generator', 'es2015.iterable', 'es2015.promise', 'es2015.proxy', 'es2015.reflect', 'es2015.symbol', 'es2015.symbol.wellknown', 'es2016.array.include', 'es2017.date', 'es2017.object', 'es2017.sharedmemory', 'es2017.string', 'es2017.intl', 'es2017.typedarrays', 'es2018.asyncgenerator', 'es2018.asynciterable', 'es2018.intl', 'es2018.promise', 'es2018.regexp', 'es2019.array', 'es2019.object', 'es2019.string', 'es2019.symbol', 'es2019.intl', 'es2020.bigint', 'es2020.date', 'es2020.promise', 'es2020.sharedmemory', 'es2020.string', 'es2020.symbol.wellknown', 'es2020.intl', 'es2020.number', 'es2021.promise', 'es2021.string', 'es2021.weakref', 'es2021.intl', 'es2022.array', 'es2022.error', 'es2022.intl', 'es2022.object', 'es2022.sharedmemory', 'es2022.string', 'es2022.regexp', 'es2023.array', 'es2023.collection', 'esnext.array', 'esnext.collection', 'esnext.symbol', 'esnext.asynciterable', 'esnext.intl', 'esnext.disposable', 'esnext.bigint', 'esnext.string', 'esnext.promise', 'esnext.weakref', 'esnext.decorators', 'decorators', 'decorators.legacy'. +tsconfig.json:9:7 - error TS6046: Argument for '--lib' option must be: 'es5', 'es6', 'es2015', 'es7', 'es2016', 'es2017', 'es2018', 'es2019', 'es2020', 'es2021', 'es2022', 'es2023', 'esnext', 'dom', 'dom.iterable', 'webworker', 'webworker.importscripts', 'webworker.iterable', 'scripthost', 'es2015.core', 'es2015.collection', 'es2015.generator', 'es2015.iterable', 'es2015.promise', 'es2015.proxy', 'es2015.reflect', 'es2015.symbol', 'es2015.symbol.wellknown', 'es2016.array.include', 'es2017.date', 'es2017.object', 'es2017.sharedmemory', 'es2017.string', 'es2017.intl', 'es2017.typedarrays', 'es2018.asyncgenerator', 'es2018.asynciterable', 'es2018.intl', 'es2018.promise', 'es2018.regexp', 'es2019.array', 'es2019.object', 'es2019.string', 'es2019.symbol', 'es2019.intl', 'es2020.bigint', 'es2020.date', 'es2020.promise', 'es2020.sharedmemory', 'es2020.string', 'es2020.symbol.wellknown', 'es2020.intl', 'es2020.number', 'es2021.promise', 'es2021.string', 'es2021.weakref', 'es2021.intl', 'es2022.array', 'es2022.error', 'es2022.intl', 'es2022.object', 'es2022.sharedmemory', 'es2022.string', 'es2022.regexp', 'es2023.array', 'es2023.collection', 'esnext.array', 'esnext.collection', 'esnext.symbol', 'esnext.asynciterable', 'esnext.intl', 'esnext.disposable', 'esnext.bigint', 'esnext.string', 'esnext.promise', 'esnext.weakref', 'esnext.decorators', 'decorators', 'decorators.legacy'. -9 "" -   ~~ +9 "" +   ~~ diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert empty string option of moduleSuffixes single to compiler-options with json api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert empty string option of moduleSuffixes single to compiler-options with json api.js index 08442f6d71de5..ca3303bf9ec7c 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert empty string option of moduleSuffixes single to compiler-options with json api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert empty string option of moduleSuffixes single to compiler-options with json api.js @@ -7,21 +7,21 @@ Fs:: //// [/apath/tsconfig.json] { - "compilerOptions": { - "moduleSuffixes": [ - "" - ] - } + "compilerOptions": { + "moduleSuffixes": [ + "" + ] + } } configFileName:: tsconfig.json CompilerOptions:: { - "moduleSuffixes": [ - "" - ], - "configFilePath": "tsconfig.json" + "moduleSuffixes": [ + "" + ], + "configFilePath": "tsconfig.json" } Errors:: diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert empty string option of moduleSuffixes single to compiler-options with jsonSourceFile api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert empty string option of moduleSuffixes single to compiler-options with jsonSourceFile api.js index 08442f6d71de5..ca3303bf9ec7c 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert empty string option of moduleSuffixes single to compiler-options with jsonSourceFile api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert empty string option of moduleSuffixes single to compiler-options with jsonSourceFile api.js @@ -7,21 +7,21 @@ Fs:: //// [/apath/tsconfig.json] { - "compilerOptions": { - "moduleSuffixes": [ - "" - ] - } + "compilerOptions": { + "moduleSuffixes": [ + "" + ] + } } configFileName:: tsconfig.json CompilerOptions:: { - "moduleSuffixes": [ - "" - ], - "configFilePath": "tsconfig.json" + "moduleSuffixes": [ + "" + ], + "configFilePath": "tsconfig.json" } Errors:: diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert empty string option of moduleSuffixes to compiler-options with json api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert empty string option of moduleSuffixes to compiler-options with json api.js index 52ced41a915bd..b5a7418acbc06 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert empty string option of moduleSuffixes to compiler-options with json api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert empty string option of moduleSuffixes to compiler-options with json api.js @@ -7,23 +7,23 @@ Fs:: //// [/apath/tsconfig.json] { - "compilerOptions": { - "moduleSuffixes": [ - ".ios", - "" - ] - } + "compilerOptions": { + "moduleSuffixes": [ + ".ios", + "" + ] + } } configFileName:: tsconfig.json CompilerOptions:: { - "moduleSuffixes": [ - ".ios", - "" - ], - "configFilePath": "tsconfig.json" + "moduleSuffixes": [ + ".ios", + "" + ], + "configFilePath": "tsconfig.json" } Errors:: diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert empty string option of moduleSuffixes to compiler-options with jsonSourceFile api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert empty string option of moduleSuffixes to compiler-options with jsonSourceFile api.js index 52ced41a915bd..b5a7418acbc06 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert empty string option of moduleSuffixes to compiler-options with jsonSourceFile api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert empty string option of moduleSuffixes to compiler-options with jsonSourceFile api.js @@ -7,23 +7,23 @@ Fs:: //// [/apath/tsconfig.json] { - "compilerOptions": { - "moduleSuffixes": [ - ".ios", - "" - ] - } + "compilerOptions": { + "moduleSuffixes": [ + ".ios", + "" + ] + } } configFileName:: tsconfig.json CompilerOptions:: { - "moduleSuffixes": [ - ".ios", - "" - ], - "configFilePath": "tsconfig.json" + "moduleSuffixes": [ + ".ios", + "" + ], + "configFilePath": "tsconfig.json" } Errors:: diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of jsx to compiler-options with json api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of jsx to compiler-options with json api.js index cf59459a5d22c..3f866a5e8f25e 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of jsx to compiler-options with json api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of jsx to compiler-options with json api.js @@ -7,24 +7,24 @@ Fs:: //// [/apath/tsconfig.json] { - "compilerOptions": { - "module": "commonjs", - "target": "es5", - "noImplicitAny": false, - "sourceMap": false, - "jsx": "" - } + "compilerOptions": { + "module": "commonjs", + "target": "es5", + "noImplicitAny": false, + "sourceMap": false, + "jsx": "" + } } configFileName:: tsconfig.json CompilerOptions:: { - "module": 1, - "target": 1, - "noImplicitAny": false, - "sourceMap": false, - "configFilePath": "tsconfig.json" + "module": 1, + "target": 1, + "noImplicitAny": false, + "sourceMap": false, + "configFilePath": "tsconfig.json" } Errors:: error TS6046: Argument for '--jsx' option must be: 'preserve', 'react-native', 'react', 'react-jsx', 'react-jsxdev'. diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of jsx to compiler-options with jsonSourceFile api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of jsx to compiler-options with jsonSourceFile api.js index 054fd96490174..728db743229c7 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of jsx to compiler-options with jsonSourceFile api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of jsx to compiler-options with jsonSourceFile api.js @@ -7,28 +7,28 @@ Fs:: //// [/apath/tsconfig.json] { - "compilerOptions": { - "module": "commonjs", - "target": "es5", - "noImplicitAny": false, - "sourceMap": false, - "jsx": "" - } + "compilerOptions": { + "module": "commonjs", + "target": "es5", + "noImplicitAny": false, + "sourceMap": false, + "jsx": "" + } } configFileName:: tsconfig.json CompilerOptions:: { - "module": 1, - "target": 1, - "noImplicitAny": false, - "sourceMap": false, - "configFilePath": "tsconfig.json" + "module": 1, + "target": 1, + "noImplicitAny": false, + "sourceMap": false, + "configFilePath": "tsconfig.json" } Errors:: -tsconfig.json:7:10 - error TS6046: Argument for '--jsx' option must be: 'preserve', 'react-native', 'react', 'react-jsx', 'react-jsxdev'. +tsconfig.json:7:12 - error TS6046: Argument for '--jsx' option must be: 'preserve', 'react-native', 'react', 'react-jsx', 'react-jsxdev'. -7 "jsx": "" -   ~~ +7 "jsx": "" +   ~~ diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of libs to compiler-options with json api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of libs to compiler-options with json api.js index 94f4d23012bcc..df138a23464e8 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of libs to compiler-options with json api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of libs to compiler-options with json api.js @@ -7,32 +7,32 @@ Fs:: //// [/apath/tsconfig.json] { - "compilerOptions": { - "module": "commonjs", - "target": "es5", - "noImplicitAny": false, - "sourceMap": false, - "lib": [ - "es5", - "es2015.core", - "incorrectLib" - ] - } + "compilerOptions": { + "module": "commonjs", + "target": "es5", + "noImplicitAny": false, + "sourceMap": false, + "lib": [ + "es5", + "es2015.core", + "incorrectLib" + ] + } } configFileName:: tsconfig.json CompilerOptions:: { - "module": 1, - "target": 1, - "noImplicitAny": false, - "sourceMap": false, - "lib": [ - "lib.es5.d.ts", - "lib.es2015.core.d.ts" - ], - "configFilePath": "tsconfig.json" + "module": 1, + "target": 1, + "noImplicitAny": false, + "sourceMap": false, + "lib": [ + "lib.es5.d.ts", + "lib.es2015.core.d.ts" + ], + "configFilePath": "tsconfig.json" } Errors:: error TS6046: Argument for '--lib' option must be: 'es5', 'es6', 'es2015', 'es7', 'es2016', 'es2017', 'es2018', 'es2019', 'es2020', 'es2021', 'es2022', 'es2023', 'esnext', 'dom', 'dom.iterable', 'webworker', 'webworker.importscripts', 'webworker.iterable', 'scripthost', 'es2015.core', 'es2015.collection', 'es2015.generator', 'es2015.iterable', 'es2015.promise', 'es2015.proxy', 'es2015.reflect', 'es2015.symbol', 'es2015.symbol.wellknown', 'es2016.array.include', 'es2017.date', 'es2017.object', 'es2017.sharedmemory', 'es2017.string', 'es2017.intl', 'es2017.typedarrays', 'es2018.asyncgenerator', 'es2018.asynciterable', 'es2018.intl', 'es2018.promise', 'es2018.regexp', 'es2019.array', 'es2019.object', 'es2019.string', 'es2019.symbol', 'es2019.intl', 'es2020.bigint', 'es2020.date', 'es2020.promise', 'es2020.sharedmemory', 'es2020.string', 'es2020.symbol.wellknown', 'es2020.intl', 'es2020.number', 'es2021.promise', 'es2021.string', 'es2021.weakref', 'es2021.intl', 'es2022.array', 'es2022.error', 'es2022.intl', 'es2022.object', 'es2022.sharedmemory', 'es2022.string', 'es2022.regexp', 'es2023.array', 'es2023.collection', 'esnext.array', 'esnext.collection', 'esnext.symbol', 'esnext.asynciterable', 'esnext.intl', 'esnext.disposable', 'esnext.bigint', 'esnext.string', 'esnext.promise', 'esnext.weakref', 'esnext.decorators', 'decorators', 'decorators.legacy'. diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of libs to compiler-options with jsonSourceFile api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of libs to compiler-options with jsonSourceFile api.js index 501c5b1b47a37..20aa8f26b4b3e 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of libs to compiler-options with jsonSourceFile api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of libs to compiler-options with jsonSourceFile api.js @@ -7,36 +7,36 @@ Fs:: //// [/apath/tsconfig.json] { - "compilerOptions": { - "module": "commonjs", - "target": "es5", - "noImplicitAny": false, - "sourceMap": false, - "lib": [ - "es5", - "es2015.core", - "incorrectLib" - ] - } + "compilerOptions": { + "module": "commonjs", + "target": "es5", + "noImplicitAny": false, + "sourceMap": false, + "lib": [ + "es5", + "es2015.core", + "incorrectLib" + ] + } } configFileName:: tsconfig.json CompilerOptions:: { - "module": 1, - "target": 1, - "noImplicitAny": false, - "sourceMap": false, - "lib": [ - "lib.es5.d.ts", - "lib.es2015.core.d.ts" - ], - "configFilePath": "tsconfig.json" + "module": 1, + "target": 1, + "noImplicitAny": false, + "sourceMap": false, + "lib": [ + "lib.es5.d.ts", + "lib.es2015.core.d.ts" + ], + "configFilePath": "tsconfig.json" } Errors:: -tsconfig.json:10:4 - error TS6046: Argument for '--lib' option must be: 'es5', 'es6', 'es2015', 'es7', 'es2016', 'es2017', 'es2018', 'es2019', 'es2020', 'es2021', 'es2022', 'es2023', 'esnext', 'dom', 'dom.iterable', 'webworker', 'webworker.importscripts', 'webworker.iterable', 'scripthost', 'es2015.core', 'es2015.collection', 'es2015.generator', 'es2015.iterable', 'es2015.promise', 'es2015.proxy', 'es2015.reflect', 'es2015.symbol', 'es2015.symbol.wellknown', 'es2016.array.include', 'es2017.date', 'es2017.object', 'es2017.sharedmemory', 'es2017.string', 'es2017.intl', 'es2017.typedarrays', 'es2018.asyncgenerator', 'es2018.asynciterable', 'es2018.intl', 'es2018.promise', 'es2018.regexp', 'es2019.array', 'es2019.object', 'es2019.string', 'es2019.symbol', 'es2019.intl', 'es2020.bigint', 'es2020.date', 'es2020.promise', 'es2020.sharedmemory', 'es2020.string', 'es2020.symbol.wellknown', 'es2020.intl', 'es2020.number', 'es2021.promise', 'es2021.string', 'es2021.weakref', 'es2021.intl', 'es2022.array', 'es2022.error', 'es2022.intl', 'es2022.object', 'es2022.sharedmemory', 'es2022.string', 'es2022.regexp', 'es2023.array', 'es2023.collection', 'esnext.array', 'esnext.collection', 'esnext.symbol', 'esnext.asynciterable', 'esnext.intl', 'esnext.disposable', 'esnext.bigint', 'esnext.string', 'esnext.promise', 'esnext.weakref', 'esnext.decorators', 'decorators', 'decorators.legacy'. +tsconfig.json:10:7 - error TS6046: Argument for '--lib' option must be: 'es5', 'es6', 'es2015', 'es7', 'es2016', 'es2017', 'es2018', 'es2019', 'es2020', 'es2021', 'es2022', 'es2023', 'esnext', 'dom', 'dom.iterable', 'webworker', 'webworker.importscripts', 'webworker.iterable', 'scripthost', 'es2015.core', 'es2015.collection', 'es2015.generator', 'es2015.iterable', 'es2015.promise', 'es2015.proxy', 'es2015.reflect', 'es2015.symbol', 'es2015.symbol.wellknown', 'es2016.array.include', 'es2017.date', 'es2017.object', 'es2017.sharedmemory', 'es2017.string', 'es2017.intl', 'es2017.typedarrays', 'es2018.asyncgenerator', 'es2018.asynciterable', 'es2018.intl', 'es2018.promise', 'es2018.regexp', 'es2019.array', 'es2019.object', 'es2019.string', 'es2019.symbol', 'es2019.intl', 'es2020.bigint', 'es2020.date', 'es2020.promise', 'es2020.sharedmemory', 'es2020.string', 'es2020.symbol.wellknown', 'es2020.intl', 'es2020.number', 'es2021.promise', 'es2021.string', 'es2021.weakref', 'es2021.intl', 'es2022.array', 'es2022.error', 'es2022.intl', 'es2022.object', 'es2022.sharedmemory', 'es2022.string', 'es2022.regexp', 'es2023.array', 'es2023.collection', 'esnext.array', 'esnext.collection', 'esnext.symbol', 'esnext.asynciterable', 'esnext.intl', 'esnext.disposable', 'esnext.bigint', 'esnext.string', 'esnext.promise', 'esnext.weakref', 'esnext.decorators', 'decorators', 'decorators.legacy'. -10 "incorrectLib" -   ~~~~~~~~~~~~~~ +10 "incorrectLib" +   ~~~~~~~~~~~~~~ diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of module to compiler-options with json api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of module to compiler-options with json api.js index 3f98e11569243..09dde5cc6ad82 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of module to compiler-options with json api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of module to compiler-options with json api.js @@ -7,22 +7,22 @@ Fs:: //// [/apath/tsconfig.json] { - "compilerOptions": { - "module": "", - "target": "es5", - "noImplicitAny": false, - "sourceMap": false - } + "compilerOptions": { + "module": "", + "target": "es5", + "noImplicitAny": false, + "sourceMap": false + } } configFileName:: tsconfig.json CompilerOptions:: { - "target": 1, - "noImplicitAny": false, - "sourceMap": false, - "configFilePath": "tsconfig.json" + "target": 1, + "noImplicitAny": false, + "sourceMap": false, + "configFilePath": "tsconfig.json" } Errors:: error TS6046: Argument for '--module' option must be: 'none', 'commonjs', 'amd', 'system', 'umd', 'es6', 'es2015', 'es2020', 'es2022', 'esnext', 'node16', 'nodenext'. diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of module to compiler-options with jsonSourceFile api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of module to compiler-options with jsonSourceFile api.js index cb967c5a0a366..85fd807b94586 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of module to compiler-options with jsonSourceFile api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of module to compiler-options with jsonSourceFile api.js @@ -7,26 +7,26 @@ Fs:: //// [/apath/tsconfig.json] { - "compilerOptions": { - "module": "", - "target": "es5", - "noImplicitAny": false, - "sourceMap": false - } + "compilerOptions": { + "module": "", + "target": "es5", + "noImplicitAny": false, + "sourceMap": false + } } configFileName:: tsconfig.json CompilerOptions:: { - "target": 1, - "noImplicitAny": false, - "sourceMap": false, - "configFilePath": "tsconfig.json" + "target": 1, + "noImplicitAny": false, + "sourceMap": false, + "configFilePath": "tsconfig.json" } Errors:: -tsconfig.json:3:13 - error TS6046: Argument for '--module' option must be: 'none', 'commonjs', 'amd', 'system', 'umd', 'es6', 'es2015', 'es2020', 'es2022', 'esnext', 'node16', 'nodenext'. +tsconfig.json:3:15 - error TS6046: Argument for '--module' option must be: 'none', 'commonjs', 'amd', 'system', 'umd', 'es6', 'es2015', 'es2020', 'es2022', 'esnext', 'node16', 'nodenext'. -3 "module": "", -   ~~ +3 "module": "", +   ~~ diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of module-resolution to compiler-options with json api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of module-resolution to compiler-options with json api.js index 363c7ebffb694..5204cf0d28744 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of module-resolution to compiler-options with json api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of module-resolution to compiler-options with json api.js @@ -7,20 +7,20 @@ Fs:: //// [/apath/tsconfig.json] { - "compilerOptions": { - "moduleResolution": "", - "noImplicitAny": false, - "sourceMap": false - } + "compilerOptions": { + "moduleResolution": "", + "noImplicitAny": false, + "sourceMap": false + } } configFileName:: tsconfig.json CompilerOptions:: { - "noImplicitAny": false, - "sourceMap": false, - "configFilePath": "tsconfig.json" + "noImplicitAny": false, + "sourceMap": false, + "configFilePath": "tsconfig.json" } Errors:: error TS6046: Argument for '--moduleResolution' option must be: 'node10', 'classic', 'node16', 'nodenext', 'bundler'. diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of module-resolution to compiler-options with jsonSourceFile api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of module-resolution to compiler-options with jsonSourceFile api.js index 9085f8a5386e2..b2f2b2263ca90 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of module-resolution to compiler-options with jsonSourceFile api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of module-resolution to compiler-options with jsonSourceFile api.js @@ -7,24 +7,24 @@ Fs:: //// [/apath/tsconfig.json] { - "compilerOptions": { - "moduleResolution": "", - "noImplicitAny": false, - "sourceMap": false - } + "compilerOptions": { + "moduleResolution": "", + "noImplicitAny": false, + "sourceMap": false + } } configFileName:: tsconfig.json CompilerOptions:: { - "noImplicitAny": false, - "sourceMap": false, - "configFilePath": "tsconfig.json" + "noImplicitAny": false, + "sourceMap": false, + "configFilePath": "tsconfig.json" } Errors:: -tsconfig.json:3:23 - error TS6046: Argument for '--moduleResolution' option must be: 'node10', 'classic', 'node16', 'nodenext', 'bundler'. +tsconfig.json:3:25 - error TS6046: Argument for '--moduleResolution' option must be: 'node10', 'classic', 'node16', 'nodenext', 'bundler'. -3 "moduleResolution": "", -   ~~ +3 "moduleResolution": "", +   ~~ diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of newLine to compiler-options with json api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of newLine to compiler-options with json api.js index f30c5f75816e2..cb6b2c119694f 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of newLine to compiler-options with json api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of newLine to compiler-options with json api.js @@ -7,22 +7,22 @@ Fs:: //// [/apath/tsconfig.json] { - "compilerOptions": { - "newLine": "", - "target": "es5", - "noImplicitAny": false, - "sourceMap": false - } + "compilerOptions": { + "newLine": "", + "target": "es5", + "noImplicitAny": false, + "sourceMap": false + } } configFileName:: tsconfig.json CompilerOptions:: { - "target": 1, - "noImplicitAny": false, - "sourceMap": false, - "configFilePath": "tsconfig.json" + "target": 1, + "noImplicitAny": false, + "sourceMap": false, + "configFilePath": "tsconfig.json" } Errors:: error TS6046: Argument for '--newLine' option must be: 'crlf', 'lf'. diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of newLine to compiler-options with jsonSourceFile api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of newLine to compiler-options with jsonSourceFile api.js index 0e68f7a123d4f..eb7498cff0220 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of newLine to compiler-options with jsonSourceFile api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of newLine to compiler-options with jsonSourceFile api.js @@ -7,26 +7,26 @@ Fs:: //// [/apath/tsconfig.json] { - "compilerOptions": { - "newLine": "", - "target": "es5", - "noImplicitAny": false, - "sourceMap": false - } + "compilerOptions": { + "newLine": "", + "target": "es5", + "noImplicitAny": false, + "sourceMap": false + } } configFileName:: tsconfig.json CompilerOptions:: { - "target": 1, - "noImplicitAny": false, - "sourceMap": false, - "configFilePath": "tsconfig.json" + "target": 1, + "noImplicitAny": false, + "sourceMap": false, + "configFilePath": "tsconfig.json" } Errors:: -tsconfig.json:3:14 - error TS6046: Argument for '--newLine' option must be: 'crlf', 'lf'. +tsconfig.json:3:16 - error TS6046: Argument for '--newLine' option must be: 'crlf', 'lf'. -3 "newLine": "", -   ~~ +3 "newLine": "", +   ~~ diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of target to compiler-options with json api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of target to compiler-options with json api.js index 92a98d406fe72..d86d38e9d9f06 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of target to compiler-options with json api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of target to compiler-options with json api.js @@ -7,20 +7,20 @@ Fs:: //// [/apath/tsconfig.json] { - "compilerOptions": { - "target": "", - "noImplicitAny": false, - "sourceMap": false - } + "compilerOptions": { + "target": "", + "noImplicitAny": false, + "sourceMap": false + } } configFileName:: tsconfig.json CompilerOptions:: { - "noImplicitAny": false, - "sourceMap": false, - "configFilePath": "tsconfig.json" + "noImplicitAny": false, + "sourceMap": false, + "configFilePath": "tsconfig.json" } Errors:: error TS6046: Argument for '--target' option must be: 'es3', 'es5', 'es6', 'es2015', 'es2016', 'es2017', 'es2018', 'es2019', 'es2020', 'es2021', 'es2022', 'esnext'. diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of target to compiler-options with jsonSourceFile api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of target to compiler-options with jsonSourceFile api.js index 6389e6a9a69f9..29bef221d0bdc 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of target to compiler-options with jsonSourceFile api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of target to compiler-options with jsonSourceFile api.js @@ -7,24 +7,24 @@ Fs:: //// [/apath/tsconfig.json] { - "compilerOptions": { - "target": "", - "noImplicitAny": false, - "sourceMap": false - } + "compilerOptions": { + "target": "", + "noImplicitAny": false, + "sourceMap": false + } } configFileName:: tsconfig.json CompilerOptions:: { - "noImplicitAny": false, - "sourceMap": false, - "configFilePath": "tsconfig.json" + "noImplicitAny": false, + "sourceMap": false, + "configFilePath": "tsconfig.json" } Errors:: -tsconfig.json:3:13 - error TS6046: Argument for '--target' option must be: 'es3', 'es5', 'es6', 'es2015', 'es2016', 'es2017', 'es2018', 'es2019', 'es2020', 'es2021', 'es2022', 'esnext'. +tsconfig.json:3:15 - error TS6046: Argument for '--target' option must be: 'es3', 'es5', 'es6', 'es2015', 'es2016', 'es2017', 'es2018', 'es2019', 'es2020', 'es2021', 'es2022', 'esnext'. -3 "target": "", -   ~~ +3 "target": "", +   ~~ diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrectly format jsconfig.json to compiler-options with json api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrectly format jsconfig.json to compiler-options with json api.js index d83c6e50cd9ca..7994e903e05a9 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrectly format jsconfig.json to compiler-options with json api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrectly format jsconfig.json to compiler-options with json api.js @@ -7,21 +7,21 @@ Fs:: //// [/apath/jsconfig.json] { - "compilerOptions": { - "modu": "commonjs" - } + "compilerOptions": { + "modu": "commonjs" + } } configFileName:: jsconfig.json CompilerOptions:: { - "allowJs": true, - "maxNodeModuleJsDepth": 2, - "allowSyntheticDefaultImports": true, - "skipLibCheck": true, - "noEmit": true, - "configFilePath": "jsconfig.json" + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "configFilePath": "jsconfig.json" } Errors:: error TS5023: Unknown compiler option 'modu'. diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrectly format jsconfig.json to compiler-options with jsonSourceFile api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrectly format jsconfig.json to compiler-options with jsonSourceFile api.js index d20b5a9728363..5a35f7a40261d 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrectly format jsconfig.json to compiler-options with jsonSourceFile api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrectly format jsconfig.json to compiler-options with jsonSourceFile api.js @@ -7,25 +7,25 @@ Fs:: //// [/apath/jsconfig.json] { - "compilerOptions": { - "modu": "commonjs" - } + "compilerOptions": { + "modu": "commonjs" + } } configFileName:: jsconfig.json CompilerOptions:: { - "allowJs": true, - "maxNodeModuleJsDepth": 2, - "allowSyntheticDefaultImports": true, - "skipLibCheck": true, - "noEmit": true, - "configFilePath": "jsconfig.json" + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "configFilePath": "jsconfig.json" } Errors:: -jsconfig.json:3:3 - error TS5023: Unknown compiler option 'modu'. +jsconfig.json:3:5 - error TS5023: Unknown compiler option 'modu'. -3 "modu": "commonjs" -   ~~~~~~ +3 "modu": "commonjs" +   ~~~~~~ diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrectly format tsconfig.json to compiler-options with json api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrectly format tsconfig.json to compiler-options with json api.js index 34697eac42e1c..c3e9e9df54a55 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrectly format tsconfig.json to compiler-options with json api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrectly format tsconfig.json to compiler-options with json api.js @@ -7,16 +7,16 @@ Fs:: //// [/apath/tsconfig.json] { - "compilerOptions": { - "modu": "commonjs" - } + "compilerOptions": { + "modu": "commonjs" + } } configFileName:: tsconfig.json CompilerOptions:: { - "configFilePath": "tsconfig.json" + "configFilePath": "tsconfig.json" } Errors:: error TS5023: Unknown compiler option 'modu'. diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrectly format tsconfig.json to compiler-options with jsonSourceFile api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrectly format tsconfig.json to compiler-options with jsonSourceFile api.js index 15f0de5e8f9f6..dea38289c15d3 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrectly format tsconfig.json to compiler-options with jsonSourceFile api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrectly format tsconfig.json to compiler-options with jsonSourceFile api.js @@ -7,20 +7,20 @@ Fs:: //// [/apath/tsconfig.json] { - "compilerOptions": { - "modu": "commonjs" - } + "compilerOptions": { + "modu": "commonjs" + } } configFileName:: tsconfig.json CompilerOptions:: { - "configFilePath": "tsconfig.json" + "configFilePath": "tsconfig.json" } Errors:: -tsconfig.json:3:3 - error TS5023: Unknown compiler option 'modu'. +tsconfig.json:3:5 - error TS5023: Unknown compiler option 'modu'. -3 "modu": "commonjs" -   ~~~~~~ +3 "modu": "commonjs" +   ~~~~~~ diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert negative numbers in tsconfig.json with json api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert negative numbers in tsconfig.json with json api.js index 814f4b9bf6dec..120701d86ace1 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert negative numbers in tsconfig.json with json api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert negative numbers in tsconfig.json with json api.js @@ -7,19 +7,19 @@ Fs:: //// [/apath/tsconfig.json] { - "compilerOptions": { - "allowJs": true, - "maxNodeModuleJsDepth": -1 - } + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": -1 + } } configFileName:: tsconfig.json CompilerOptions:: { - "allowJs": true, - "maxNodeModuleJsDepth": -1, - "configFilePath": "tsconfig.json" + "allowJs": true, + "maxNodeModuleJsDepth": -1, + "configFilePath": "tsconfig.json" } Errors:: diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert negative numbers in tsconfig.json with jsonSourceFile api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert negative numbers in tsconfig.json with jsonSourceFile api.js index 814f4b9bf6dec..120701d86ace1 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert negative numbers in tsconfig.json with jsonSourceFile api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert negative numbers in tsconfig.json with jsonSourceFile api.js @@ -7,19 +7,19 @@ Fs:: //// [/apath/tsconfig.json] { - "compilerOptions": { - "allowJs": true, - "maxNodeModuleJsDepth": -1 - } + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": -1 + } } configFileName:: tsconfig.json CompilerOptions:: { - "allowJs": true, - "maxNodeModuleJsDepth": -1, - "configFilePath": "tsconfig.json" + "allowJs": true, + "maxNodeModuleJsDepth": -1, + "configFilePath": "tsconfig.json" } Errors:: diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert trailing-whitespace string option of libs to compiler-options with json api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert trailing-whitespace string option of libs to compiler-options with json api.js index 919cd5a6a5707..35db85805c893 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert trailing-whitespace string option of libs to compiler-options with json api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert trailing-whitespace string option of libs to compiler-options with json api.js @@ -7,27 +7,27 @@ Fs:: //// [/apath/tsconfig.json] { - "compilerOptions": { - "module": "commonjs", - "target": "es5", - "noImplicitAny": false, - "sourceMap": false, - "lib": [ - " " - ] - } + "compilerOptions": { + "module": "commonjs", + "target": "es5", + "noImplicitAny": false, + "sourceMap": false, + "lib": [ + " " + ] + } } configFileName:: tsconfig.json CompilerOptions:: { - "module": 1, - "target": 1, - "noImplicitAny": false, - "sourceMap": false, - "lib": [], - "configFilePath": "tsconfig.json" + "module": 1, + "target": 1, + "noImplicitAny": false, + "sourceMap": false, + "lib": [], + "configFilePath": "tsconfig.json" } Errors:: error TS6046: Argument for '--lib' option must be: 'es5', 'es6', 'es2015', 'es7', 'es2016', 'es2017', 'es2018', 'es2019', 'es2020', 'es2021', 'es2022', 'es2023', 'esnext', 'dom', 'dom.iterable', 'webworker', 'webworker.importscripts', 'webworker.iterable', 'scripthost', 'es2015.core', 'es2015.collection', 'es2015.generator', 'es2015.iterable', 'es2015.promise', 'es2015.proxy', 'es2015.reflect', 'es2015.symbol', 'es2015.symbol.wellknown', 'es2016.array.include', 'es2017.date', 'es2017.object', 'es2017.sharedmemory', 'es2017.string', 'es2017.intl', 'es2017.typedarrays', 'es2018.asyncgenerator', 'es2018.asynciterable', 'es2018.intl', 'es2018.promise', 'es2018.regexp', 'es2019.array', 'es2019.object', 'es2019.string', 'es2019.symbol', 'es2019.intl', 'es2020.bigint', 'es2020.date', 'es2020.promise', 'es2020.sharedmemory', 'es2020.string', 'es2020.symbol.wellknown', 'es2020.intl', 'es2020.number', 'es2021.promise', 'es2021.string', 'es2021.weakref', 'es2021.intl', 'es2022.array', 'es2022.error', 'es2022.intl', 'es2022.object', 'es2022.sharedmemory', 'es2022.string', 'es2022.regexp', 'es2023.array', 'es2023.collection', 'esnext.array', 'esnext.collection', 'esnext.symbol', 'esnext.asynciterable', 'esnext.intl', 'esnext.disposable', 'esnext.bigint', 'esnext.string', 'esnext.promise', 'esnext.weakref', 'esnext.decorators', 'decorators', 'decorators.legacy'. diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert trailing-whitespace string option of libs to compiler-options with jsonSourceFile api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert trailing-whitespace string option of libs to compiler-options with jsonSourceFile api.js index d304abeb726a9..d6f2192a91e8a 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert trailing-whitespace string option of libs to compiler-options with jsonSourceFile api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert trailing-whitespace string option of libs to compiler-options with jsonSourceFile api.js @@ -7,31 +7,31 @@ Fs:: //// [/apath/tsconfig.json] { - "compilerOptions": { - "module": "commonjs", - "target": "es5", - "noImplicitAny": false, - "sourceMap": false, - "lib": [ - " " - ] - } + "compilerOptions": { + "module": "commonjs", + "target": "es5", + "noImplicitAny": false, + "sourceMap": false, + "lib": [ + " " + ] + } } configFileName:: tsconfig.json CompilerOptions:: { - "module": 1, - "target": 1, - "noImplicitAny": false, - "sourceMap": false, - "lib": [], - "configFilePath": "tsconfig.json" + "module": 1, + "target": 1, + "noImplicitAny": false, + "sourceMap": false, + "lib": [], + "configFilePath": "tsconfig.json" } Errors:: -tsconfig.json:8:4 - error TS6046: Argument for '--lib' option must be: 'es5', 'es6', 'es2015', 'es7', 'es2016', 'es2017', 'es2018', 'es2019', 'es2020', 'es2021', 'es2022', 'es2023', 'esnext', 'dom', 'dom.iterable', 'webworker', 'webworker.importscripts', 'webworker.iterable', 'scripthost', 'es2015.core', 'es2015.collection', 'es2015.generator', 'es2015.iterable', 'es2015.promise', 'es2015.proxy', 'es2015.reflect', 'es2015.symbol', 'es2015.symbol.wellknown', 'es2016.array.include', 'es2017.date', 'es2017.object', 'es2017.sharedmemory', 'es2017.string', 'es2017.intl', 'es2017.typedarrays', 'es2018.asyncgenerator', 'es2018.asynciterable', 'es2018.intl', 'es2018.promise', 'es2018.regexp', 'es2019.array', 'es2019.object', 'es2019.string', 'es2019.symbol', 'es2019.intl', 'es2020.bigint', 'es2020.date', 'es2020.promise', 'es2020.sharedmemory', 'es2020.string', 'es2020.symbol.wellknown', 'es2020.intl', 'es2020.number', 'es2021.promise', 'es2021.string', 'es2021.weakref', 'es2021.intl', 'es2022.array', 'es2022.error', 'es2022.intl', 'es2022.object', 'es2022.sharedmemory', 'es2022.string', 'es2022.regexp', 'es2023.array', 'es2023.collection', 'esnext.array', 'esnext.collection', 'esnext.symbol', 'esnext.asynciterable', 'esnext.intl', 'esnext.disposable', 'esnext.bigint', 'esnext.string', 'esnext.promise', 'esnext.weakref', 'esnext.decorators', 'decorators', 'decorators.legacy'. +tsconfig.json:8:7 - error TS6046: Argument for '--lib' option must be: 'es5', 'es6', 'es2015', 'es7', 'es2016', 'es2017', 'es2018', 'es2019', 'es2020', 'es2021', 'es2022', 'es2023', 'esnext', 'dom', 'dom.iterable', 'webworker', 'webworker.importscripts', 'webworker.iterable', 'scripthost', 'es2015.core', 'es2015.collection', 'es2015.generator', 'es2015.iterable', 'es2015.promise', 'es2015.proxy', 'es2015.reflect', 'es2015.symbol', 'es2015.symbol.wellknown', 'es2016.array.include', 'es2017.date', 'es2017.object', 'es2017.sharedmemory', 'es2017.string', 'es2017.intl', 'es2017.typedarrays', 'es2018.asyncgenerator', 'es2018.asynciterable', 'es2018.intl', 'es2018.promise', 'es2018.regexp', 'es2019.array', 'es2019.object', 'es2019.string', 'es2019.symbol', 'es2019.intl', 'es2020.bigint', 'es2020.date', 'es2020.promise', 'es2020.sharedmemory', 'es2020.string', 'es2020.symbol.wellknown', 'es2020.intl', 'es2020.number', 'es2021.promise', 'es2021.string', 'es2021.weakref', 'es2021.intl', 'es2022.array', 'es2022.error', 'es2022.intl', 'es2022.object', 'es2022.sharedmemory', 'es2022.string', 'es2022.regexp', 'es2023.array', 'es2023.collection', 'esnext.array', 'esnext.collection', 'esnext.symbol', 'esnext.asynciterable', 'esnext.intl', 'esnext.disposable', 'esnext.bigint', 'esnext.string', 'esnext.promise', 'esnext.weakref', 'esnext.decorators', 'decorators', 'decorators.legacy'. -8 " " -   ~~~~~ +8 " " +   ~~~~~ diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert trailing-whitespace string option of moduleSuffixes to compiler-options with json api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert trailing-whitespace string option of moduleSuffixes to compiler-options with json api.js index 082ae9d08bdc7..0305e62a881ce 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert trailing-whitespace string option of moduleSuffixes to compiler-options with json api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert trailing-whitespace string option of moduleSuffixes to compiler-options with json api.js @@ -7,21 +7,21 @@ Fs:: //// [/apath/tsconfig.json] { - "compilerOptions": { - "moduleSuffixes": [ - " " - ] - } + "compilerOptions": { + "moduleSuffixes": [ + " " + ] + } } configFileName:: tsconfig.json CompilerOptions:: { - "moduleSuffixes": [ - " " - ], - "configFilePath": "tsconfig.json" + "moduleSuffixes": [ + " " + ], + "configFilePath": "tsconfig.json" } Errors:: diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert trailing-whitespace string option of moduleSuffixes to compiler-options with jsonSourceFile api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert trailing-whitespace string option of moduleSuffixes to compiler-options with jsonSourceFile api.js index 082ae9d08bdc7..0305e62a881ce 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert trailing-whitespace string option of moduleSuffixes to compiler-options with jsonSourceFile api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert trailing-whitespace string option of moduleSuffixes to compiler-options with jsonSourceFile api.js @@ -7,21 +7,21 @@ Fs:: //// [/apath/tsconfig.json] { - "compilerOptions": { - "moduleSuffixes": [ - " " - ] - } + "compilerOptions": { + "moduleSuffixes": [ + " " + ] + } } configFileName:: tsconfig.json CompilerOptions:: { - "moduleSuffixes": [ - " " - ], - "configFilePath": "tsconfig.json" + "moduleSuffixes": [ + " " + ], + "configFilePath": "tsconfig.json" } Errors:: diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert tsconfig options when there are multiple invalid strings with jsonSourceFile api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert tsconfig options when there are multiple invalid strings with jsonSourceFile api.js index d2a216a02e2c7..37c9d09e74604 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert tsconfig options when there are multiple invalid strings with jsonSourceFile api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert tsconfig options when there are multiple invalid strings with jsonSourceFile api.js @@ -31,9 +31,9 @@ Fs:: configFileName:: tsconfig.json CompilerOptions:: { - "module": 99, - "experimentalDecorators": true, - "configFilePath": "tsconfig.json" + "module": 99, + "experimentalDecorators": true, + "configFilePath": "tsconfig.json" } Errors:: tsconfig.json:1:1 - error TS5092: The root value of a 'tsconfig.json' file must be an object. diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Don't crash when root expression is not object at all with jsonSourceFile api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Don't crash when root expression is not object at all with jsonSourceFile api.js index 8ee271bbee883..dcbb9d1d452fc 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Don't crash when root expression is not object at all with jsonSourceFile api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Don't crash when root expression is not object at all with jsonSourceFile api.js @@ -12,7 +12,7 @@ Fs:: configFileName:: tsconfig.json CompilerOptions:: { - "configFilePath": "tsconfig.json" + "configFilePath": "tsconfig.json" } Errors:: tsconfig.json:1:1 - error TS5092: The root value of a 'tsconfig.json' file must be an object. diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/does not raise an error if you've set a compiler flag in the root when you have included 'compilerOptions' with jsonSourceFile api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/does not raise an error if you've set a compiler flag in the root when you have included 'compilerOptions' with jsonSourceFile api.js index 269283eb9d5f4..171b47e984e2f 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/does not raise an error if you've set a compiler flag in the root when you have included 'compilerOptions' with jsonSourceFile api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/does not raise an error if you've set a compiler flag in the root when you have included 'compilerOptions' with jsonSourceFile api.js @@ -17,8 +17,8 @@ Fs:: configFileName:: tsconfig.json CompilerOptions:: { - "module": 99, - "configFilePath": "tsconfig.json" + "module": 99, + "configFilePath": "tsconfig.json" } Errors:: diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/raises an error if you've set a compiler flag in the root without including compilerOptions with jsonSourceFile api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/raises an error if you've set a compiler flag in the root without including compilerOptions with jsonSourceFile api.js index 64ecb5e2fc619..8dac8661f4bb6 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/raises an error if you've set a compiler flag in the root without including compilerOptions with jsonSourceFile api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/raises an error if you've set a compiler flag in the root without including compilerOptions with jsonSourceFile api.js @@ -14,7 +14,7 @@ Fs:: configFileName:: tsconfig.json CompilerOptions:: { - "configFilePath": "tsconfig.json" + "configFilePath": "tsconfig.json" } Errors:: tsconfig.json:2:13 - error TS6258: 'module' should be set inside the 'compilerOptions' object of the config json file diff --git a/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert correctly format tsconfig.json to typeAcquisition with json api.js b/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert correctly format tsconfig.json to typeAcquisition with json api.js index 95ff0f2309aee..65f64251edcb9 100644 --- a/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert correctly format tsconfig.json to typeAcquisition with json api.js +++ b/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert correctly format tsconfig.json to typeAcquisition with json api.js @@ -7,32 +7,32 @@ Fs:: //// [/apath/tsconfig.json] { - "typeAcquisition": { - "enable": true, - "include": [ - "0.d.ts", - "1.d.ts" - ], - "exclude": [ - "0.js", - "1.js" - ] - } + "typeAcquisition": { + "enable": true, + "include": [ + "0.d.ts", + "1.d.ts" + ], + "exclude": [ + "0.js", + "1.js" + ] + } } configFileName:: tsconfig.json TypeAcquisition:: { - "enable": true, - "include": [ - "0.d.ts", - "1.d.ts" - ], - "exclude": [ - "0.js", - "1.js" - ] + "enable": true, + "include": [ + "0.d.ts", + "1.d.ts" + ], + "exclude": [ + "0.js", + "1.js" + ] } Errors:: diff --git a/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert correctly format tsconfig.json to typeAcquisition with jsonSourceFile api.js b/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert correctly format tsconfig.json to typeAcquisition with jsonSourceFile api.js index 95ff0f2309aee..65f64251edcb9 100644 --- a/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert correctly format tsconfig.json to typeAcquisition with jsonSourceFile api.js +++ b/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert correctly format tsconfig.json to typeAcquisition with jsonSourceFile api.js @@ -7,32 +7,32 @@ Fs:: //// [/apath/tsconfig.json] { - "typeAcquisition": { - "enable": true, - "include": [ - "0.d.ts", - "1.d.ts" - ], - "exclude": [ - "0.js", - "1.js" - ] - } + "typeAcquisition": { + "enable": true, + "include": [ + "0.d.ts", + "1.d.ts" + ], + "exclude": [ + "0.js", + "1.js" + ] + } } configFileName:: tsconfig.json TypeAcquisition:: { - "enable": true, - "include": [ - "0.d.ts", - "1.d.ts" - ], - "exclude": [ - "0.js", - "1.js" - ] + "enable": true, + "include": [ + "0.d.ts", + "1.d.ts" + ], + "exclude": [ + "0.js", + "1.js" + ] } Errors:: diff --git a/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert default jsconfig.json to typeAcquisition with json api.js b/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert default jsconfig.json to typeAcquisition with json api.js index 868fb7743ddd7..0700d602f5277 100644 --- a/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert default jsconfig.json to typeAcquisition with json api.js +++ b/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert default jsconfig.json to typeAcquisition with json api.js @@ -12,9 +12,9 @@ Fs:: configFileName:: jsconfig.json TypeAcquisition:: { - "enable": true, - "include": [], - "exclude": [] + "enable": true, + "include": [], + "exclude": [] } Errors:: diff --git a/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert default jsconfig.json to typeAcquisition with jsonSourceFile api.js b/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert default jsconfig.json to typeAcquisition with jsonSourceFile api.js index 868fb7743ddd7..0700d602f5277 100644 --- a/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert default jsconfig.json to typeAcquisition with jsonSourceFile api.js +++ b/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert default jsconfig.json to typeAcquisition with jsonSourceFile api.js @@ -12,9 +12,9 @@ Fs:: configFileName:: jsconfig.json TypeAcquisition:: { - "enable": true, - "include": [], - "exclude": [] + "enable": true, + "include": [], + "exclude": [] } Errors:: diff --git a/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert default tsconfig.json to typeAcquisition with json api.js b/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert default tsconfig.json to typeAcquisition with json api.js index 4b98a66335b00..66f667524d4fa 100644 --- a/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert default tsconfig.json to typeAcquisition with json api.js +++ b/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert default tsconfig.json to typeAcquisition with json api.js @@ -12,9 +12,9 @@ Fs:: configFileName:: tsconfig.json TypeAcquisition:: { - "enable": false, - "include": [], - "exclude": [] + "enable": false, + "include": [], + "exclude": [] } Errors:: diff --git a/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert default tsconfig.json to typeAcquisition with jsonSourceFile api.js b/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert default tsconfig.json to typeAcquisition with jsonSourceFile api.js index 4b98a66335b00..66f667524d4fa 100644 --- a/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert default tsconfig.json to typeAcquisition with jsonSourceFile api.js +++ b/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert default tsconfig.json to typeAcquisition with jsonSourceFile api.js @@ -12,9 +12,9 @@ Fs:: configFileName:: tsconfig.json TypeAcquisition:: { - "enable": false, - "include": [], - "exclude": [] + "enable": false, + "include": [], + "exclude": [] } Errors:: diff --git a/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert incorrect format jsconfig.json to typeAcquisition with json api.js b/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert incorrect format jsconfig.json to typeAcquisition with json api.js index f93cdebf07dd0..fd07676eb9dc8 100644 --- a/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert incorrect format jsconfig.json to typeAcquisition with json api.js +++ b/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert incorrect format jsconfig.json to typeAcquisition with json api.js @@ -7,18 +7,18 @@ Fs:: //// [/apath/jsconfig.json] { - "typeAcquisition": { - "enableAutoDiscovy": true - } + "typeAcquisition": { + "enableAutoDiscovy": true + } } configFileName:: jsconfig.json TypeAcquisition:: { - "enable": true, - "include": [], - "exclude": [] + "enable": true, + "include": [], + "exclude": [] } Errors:: error TS17010: Unknown type acquisition option 'enableAutoDiscovy'. diff --git a/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert incorrect format jsconfig.json to typeAcquisition with jsonSourceFile api.js b/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert incorrect format jsconfig.json to typeAcquisition with jsonSourceFile api.js index fdb27fee0f535..d6b951309ef57 100644 --- a/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert incorrect format jsconfig.json to typeAcquisition with jsonSourceFile api.js +++ b/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert incorrect format jsconfig.json to typeAcquisition with jsonSourceFile api.js @@ -7,22 +7,22 @@ Fs:: //// [/apath/jsconfig.json] { - "typeAcquisition": { - "enableAutoDiscovy": true - } + "typeAcquisition": { + "enableAutoDiscovy": true + } } configFileName:: jsconfig.json TypeAcquisition:: { - "enable": true, - "include": [], - "exclude": [] + "enable": true, + "include": [], + "exclude": [] } Errors:: -jsconfig.json:3:3 - error TS17010: Unknown type acquisition option 'enableAutoDiscovy'. +jsconfig.json:3:5 - error TS17010: Unknown type acquisition option 'enableAutoDiscovy'. -3 "enableAutoDiscovy": true -   ~~~~~~~~~~~~~~~~~~~ +3 "enableAutoDiscovy": true +   ~~~~~~~~~~~~~~~~~~~ diff --git a/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert incorrect format tsconfig.json to typeAcquisition with json api.js b/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert incorrect format tsconfig.json to typeAcquisition with json api.js index ec3afbb22bac9..56dabbe3e169b 100644 --- a/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert incorrect format tsconfig.json to typeAcquisition with json api.js +++ b/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert incorrect format tsconfig.json to typeAcquisition with json api.js @@ -7,18 +7,18 @@ Fs:: //// [/apath/tsconfig.json] { - "typeAcquisition": { - "enableAutoDiscovy": true - } + "typeAcquisition": { + "enableAutoDiscovy": true + } } configFileName:: tsconfig.json TypeAcquisition:: { - "enable": false, - "include": [], - "exclude": [] + "enable": false, + "include": [], + "exclude": [] } Errors:: error TS17010: Unknown type acquisition option 'enableAutoDiscovy'. diff --git a/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert incorrect format tsconfig.json to typeAcquisition with jsonSourceFile api.js b/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert incorrect format tsconfig.json to typeAcquisition with jsonSourceFile api.js index b2e3f9703ca17..c045d54ba7a37 100644 --- a/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert incorrect format tsconfig.json to typeAcquisition with jsonSourceFile api.js +++ b/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert incorrect format tsconfig.json to typeAcquisition with jsonSourceFile api.js @@ -7,22 +7,22 @@ Fs:: //// [/apath/tsconfig.json] { - "typeAcquisition": { - "enableAutoDiscovy": true - } + "typeAcquisition": { + "enableAutoDiscovy": true + } } configFileName:: tsconfig.json TypeAcquisition:: { - "enable": false, - "include": [], - "exclude": [] + "enable": false, + "include": [], + "exclude": [] } Errors:: -tsconfig.json:3:3 - error TS17010: Unknown type acquisition option 'enableAutoDiscovy'. +tsconfig.json:3:5 - error TS17010: Unknown type acquisition option 'enableAutoDiscovy'. -3 "enableAutoDiscovy": true -   ~~~~~~~~~~~~~~~~~~~ +3 "enableAutoDiscovy": true +   ~~~~~~~~~~~~~~~~~~~ diff --git a/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert jsconfig.json to typeAcquisition with json api.js b/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert jsconfig.json to typeAcquisition with json api.js index 654798085f9a5..ea4e17c43f53c 100644 --- a/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert jsconfig.json to typeAcquisition with json api.js +++ b/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert jsconfig.json to typeAcquisition with json api.js @@ -7,28 +7,28 @@ Fs:: //// [/apath/jsconfig.json] { - "typeAcquisition": { - "enable": false, - "include": [ - "0.d.ts" - ], - "exclude": [ - "0.js" - ] - } + "typeAcquisition": { + "enable": false, + "include": [ + "0.d.ts" + ], + "exclude": [ + "0.js" + ] + } } configFileName:: jsconfig.json TypeAcquisition:: { - "enable": false, - "include": [ - "0.d.ts" - ], - "exclude": [ - "0.js" - ] + "enable": false, + "include": [ + "0.d.ts" + ], + "exclude": [ + "0.js" + ] } Errors:: diff --git a/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert jsconfig.json to typeAcquisition with jsonSourceFile api.js b/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert jsconfig.json to typeAcquisition with jsonSourceFile api.js index 654798085f9a5..ea4e17c43f53c 100644 --- a/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert jsconfig.json to typeAcquisition with jsonSourceFile api.js +++ b/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert jsconfig.json to typeAcquisition with jsonSourceFile api.js @@ -7,28 +7,28 @@ Fs:: //// [/apath/jsconfig.json] { - "typeAcquisition": { - "enable": false, - "include": [ - "0.d.ts" - ], - "exclude": [ - "0.js" - ] - } + "typeAcquisition": { + "enable": false, + "include": [ + "0.d.ts" + ], + "exclude": [ + "0.js" + ] + } } configFileName:: jsconfig.json TypeAcquisition:: { - "enable": false, - "include": [ - "0.d.ts" - ], - "exclude": [ - "0.js" - ] + "enable": false, + "include": [ + "0.d.ts" + ], + "exclude": [ + "0.js" + ] } Errors:: diff --git a/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert jsconfig.json with only enable property to typeAcquisition with json api.js b/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert jsconfig.json with only enable property to typeAcquisition with json api.js index c5b848a23b502..bfe5ba3f284ef 100644 --- a/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert jsconfig.json with only enable property to typeAcquisition with json api.js +++ b/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert jsconfig.json with only enable property to typeAcquisition with json api.js @@ -7,18 +7,18 @@ Fs:: //// [/apath/jsconfig.json] { - "typeAcquisition": { - "enable": false - } + "typeAcquisition": { + "enable": false + } } configFileName:: jsconfig.json TypeAcquisition:: { - "enable": false, - "include": [], - "exclude": [] + "enable": false, + "include": [], + "exclude": [] } Errors:: diff --git a/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert jsconfig.json with only enable property to typeAcquisition with jsonSourceFile api.js b/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert jsconfig.json with only enable property to typeAcquisition with jsonSourceFile api.js index c5b848a23b502..bfe5ba3f284ef 100644 --- a/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert jsconfig.json with only enable property to typeAcquisition with jsonSourceFile api.js +++ b/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert jsconfig.json with only enable property to typeAcquisition with jsonSourceFile api.js @@ -7,18 +7,18 @@ Fs:: //// [/apath/jsconfig.json] { - "typeAcquisition": { - "enable": false - } + "typeAcquisition": { + "enable": false + } } configFileName:: jsconfig.json TypeAcquisition:: { - "enable": false, - "include": [], - "exclude": [] + "enable": false, + "include": [], + "exclude": [] } Errors:: diff --git a/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert tsconfig.json with only enable property to typeAcquisition with json api.js b/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert tsconfig.json with only enable property to typeAcquisition with json api.js index e9cfcace7b526..cc0c863a3171e 100644 --- a/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert tsconfig.json with only enable property to typeAcquisition with json api.js +++ b/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert tsconfig.json with only enable property to typeAcquisition with json api.js @@ -7,18 +7,18 @@ Fs:: //// [/apath/tsconfig.json] { - "typeAcquisition": { - "enable": true - } + "typeAcquisition": { + "enable": true + } } configFileName:: tsconfig.json TypeAcquisition:: { - "enable": true, - "include": [], - "exclude": [] + "enable": true, + "include": [], + "exclude": [] } Errors:: diff --git a/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert tsconfig.json with only enable property to typeAcquisition with jsonSourceFile api.js b/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert tsconfig.json with only enable property to typeAcquisition with jsonSourceFile api.js index e9cfcace7b526..cc0c863a3171e 100644 --- a/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert tsconfig.json with only enable property to typeAcquisition with jsonSourceFile api.js +++ b/tests/baselines/reference/config/convertTypeAcquisitionFromJson/Convert tsconfig.json with only enable property to typeAcquisition with jsonSourceFile api.js @@ -7,18 +7,18 @@ Fs:: //// [/apath/tsconfig.json] { - "typeAcquisition": { - "enable": true - } + "typeAcquisition": { + "enable": true + } } configFileName:: tsconfig.json TypeAcquisition:: { - "enable": true, - "include": [], - "exclude": [] + "enable": true, + "include": [], + "exclude": [] } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/Expands z to z/starstart/star with json api.js b/tests/baselines/reference/config/matchFiles/Expands z to z/starstart/star with json api.js index 3998377aab051..b264a41d78d80 100644 --- a/tests/baselines/reference/config/matchFiles/Expands z to z/starstart/star with json api.js +++ b/tests/baselines/reference/config/matchFiles/Expands z to z/starstart/star with json api.js @@ -1,8 +1,8 @@ config: { - "include": [ - "z" - ] + "include": [ + "z" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -78,32 +78,32 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/z/a.ts", - "c:/dev/z/aba.ts", - "c:/dev/z/abz.ts", - "c:/dev/z/b.ts", - "c:/dev/z/bba.ts", - "c:/dev/z/bbz.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "z" + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/z/a.ts", + "c:/dev/z/aba.ts", + "c:/dev/z/abz.ts", + "c:/dev/z/b.ts", + "c:/dev/z/bba.ts", + "c:/dev/z/bbz.ts" ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "z" + ], + "compileOnSave": false + }, + "wildcardDirectories": { + "c:/dev/z": "WatchDirectoryFlags.Recursive" + }, "compileOnSave": false - }, - "wildcardDirectories": { - "c:/dev/z": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/Expands z to z/starstart/star with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/Expands z to z/starstart/star with jsonSourceFile api.js index 57ebdd5c647c4..e0f27a87a2262 100644 --- a/tests/baselines/reference/config/matchFiles/Expands z to z/starstart/star with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/Expands z to z/starstart/star with jsonSourceFile api.js @@ -1,8 +1,8 @@ config: { - "include": [ - "z" - ] + "include": [ + "z" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -78,31 +78,31 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/z/a.ts", - "c:/dev/z/aba.ts", - "c:/dev/z/abz.ts", - "c:/dev/z/b.ts", - "c:/dev/z/bba.ts", - "c:/dev/z/bbz.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "z" - ] - }, - "wildcardDirectories": { - "c:/dev/z": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/z/a.ts", + "c:/dev/z/aba.ts", + "c:/dev/z/abz.ts", + "c:/dev/z/b.ts", + "c:/dev/z/bba.ts", + "c:/dev/z/bbz.ts" + ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "z" + ] + }, + "wildcardDirectories": { + "c:/dev/z": "WatchDirectoryFlags.Recursive" + }, + "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/always include literal files with json api.js b/tests/baselines/reference/config/matchFiles/always include literal files with json api.js index a80b94f9b6868..e0d835c16380b 100644 --- a/tests/baselines/reference/config/matchFiles/always include literal files with json api.js +++ b/tests/baselines/reference/config/matchFiles/always include literal files with json api.js @@ -1,14 +1,14 @@ config: { - "files": [ - "a.ts" - ], - "include": [ - "*/z.ts" - ], - "exclude": [ - "**/a.ts" - ] + "files": [ + "a.ts" + ], + "include": [ + "*/z.ts" + ], + "exclude": [ + "**/a.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -84,33 +84,33 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "files": [ - "a.ts" - ], - "include": [ - "*/z.ts" - ], - "exclude": [ - "**/a.ts" + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.ts" ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "files": [ + "a.ts" + ], + "include": [ + "*/z.ts" + ], + "exclude": [ + "**/a.ts" + ], + "compileOnSave": false + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.Recursive" + }, "compileOnSave": false - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/always include literal files with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/always include literal files with jsonSourceFile api.js index 1c730b32eb50a..9adab813d032c 100644 --- a/tests/baselines/reference/config/matchFiles/always include literal files with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/always include literal files with jsonSourceFile api.js @@ -1,14 +1,14 @@ config: { - "files": [ - "a.ts" - ], - "include": [ - "*/z.ts" - ], - "exclude": [ - "**/a.ts" - ] + "files": [ + "a.ts" + ], + "include": [ + "*/z.ts" + ], + "exclude": [ + "**/a.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -84,32 +84,32 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "files": [ - "a.ts" - ], - "include": [ - "*/z.ts" + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.ts" ], - "exclude": [ - "**/a.ts" - ] - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "files": [ + "a.ts" + ], + "include": [ + "*/z.ts" + ], + "exclude": [ + "**/a.ts" + ] + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.Recursive" + }, + "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/and empty exclude with json api.js b/tests/baselines/reference/config/matchFiles/and empty exclude with json api.js index 1bee3c7ab69b9..ab47694562f4f 100644 --- a/tests/baselines/reference/config/matchFiles/and empty exclude with json api.js +++ b/tests/baselines/reference/config/matchFiles/and empty exclude with json api.js @@ -1,9 +1,9 @@ config: { - "include": [ - "**/a.ts" - ], - "exclude": [] + "include": [ + "**/a.ts" + ], + "exclude": [] } Fs:: //// [c:/dev/a.d.ts] @@ -34,29 +34,29 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.ts", - "c:/dev/x/a.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "**/a.ts" + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.ts", + "c:/dev/x/a.ts" ], - "exclude": [], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "**/a.ts" + ], + "exclude": [], + "compileOnSave": false + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.Recursive" + }, "compileOnSave": false - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/and empty exclude with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/and empty exclude with jsonSourceFile api.js index d4ece58b81d9d..b397599711e20 100644 --- a/tests/baselines/reference/config/matchFiles/and empty exclude with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/and empty exclude with jsonSourceFile api.js @@ -1,9 +1,9 @@ config: { - "include": [ - "**/a.ts" - ], - "exclude": [] + "include": [ + "**/a.ts" + ], + "exclude": [] } Fs:: //// [c:/dev/a.d.ts] @@ -34,28 +34,28 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.ts", - "c:/dev/x/a.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "**/a.ts" + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.ts", + "c:/dev/x/a.ts" ], - "exclude": [] - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "**/a.ts" + ], + "exclude": [] + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.Recursive" + }, + "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/and exclusions with json api.js b/tests/baselines/reference/config/matchFiles/and exclusions with json api.js index b32af48d22714..f1aab891a2800 100644 --- a/tests/baselines/reference/config/matchFiles/and exclusions with json api.js +++ b/tests/baselines/reference/config/matchFiles/and exclusions with json api.js @@ -1,11 +1,11 @@ config: { - "include": [ - "**/?.ts" - ], - "exclude": [ - "a.ts" - ] + "include": [ + "**/?.ts" + ], + "exclude": [ + "a.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -36,31 +36,31 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/b.ts", - "c:/dev/x/a.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "**/?.ts" - ], - "exclude": [ - "a.ts" + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/b.ts", + "c:/dev/x/a.ts" ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "**/?.ts" + ], + "exclude": [ + "a.ts" + ], + "compileOnSave": false + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.Recursive" + }, "compileOnSave": false - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/and exclusions with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/and exclusions with jsonSourceFile api.js index 2365e1a790356..817daa63ddab5 100644 --- a/tests/baselines/reference/config/matchFiles/and exclusions with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/and exclusions with jsonSourceFile api.js @@ -1,11 +1,11 @@ config: { - "include": [ - "**/?.ts" - ], - "exclude": [ - "a.ts" - ] + "include": [ + "**/?.ts" + ], + "exclude": [ + "a.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -36,30 +36,30 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/b.ts", - "c:/dev/x/a.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "**/?.ts" + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/b.ts", + "c:/dev/x/a.ts" ], - "exclude": [ - "a.ts" - ] - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "**/?.ts" + ], + "exclude": [ + "a.ts" + ] + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.Recursive" + }, + "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/and explicit recursive include with json api.js b/tests/baselines/reference/config/matchFiles/and explicit recursive include with json api.js index 1821e59ed2334..61ac49c9b63c2 100644 --- a/tests/baselines/reference/config/matchFiles/and explicit recursive include with json api.js +++ b/tests/baselines/reference/config/matchFiles/and explicit recursive include with json api.js @@ -1,9 +1,9 @@ config: { - "include": [ - "**/a.ts", - "**/node_modules/a.ts" - ] + "include": [ + "**/a.ts", + "**/node_modules/a.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -34,30 +34,30 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.ts", - "c:/dev/x/a.ts", - "c:/dev/node_modules/a.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "**/a.ts", - "**/node_modules/a.ts" + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.ts", + "c:/dev/x/a.ts", + "c:/dev/node_modules/a.ts" ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "**/a.ts", + "**/node_modules/a.ts" + ], + "compileOnSave": false + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.Recursive" + }, "compileOnSave": false - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/and explicit recursive include with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/and explicit recursive include with jsonSourceFile api.js index 3f47bed36a925..05a5a86fc0c9f 100644 --- a/tests/baselines/reference/config/matchFiles/and explicit recursive include with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/and explicit recursive include with jsonSourceFile api.js @@ -1,9 +1,9 @@ config: { - "include": [ - "**/a.ts", - "**/node_modules/a.ts" - ] + "include": [ + "**/a.ts", + "**/node_modules/a.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -34,29 +34,29 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.ts", - "c:/dev/x/a.ts", - "c:/dev/node_modules/a.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "**/a.ts", - "**/node_modules/a.ts" - ] - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.ts", + "c:/dev/x/a.ts", + "c:/dev/node_modules/a.ts" + ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "**/a.ts", + "**/node_modules/a.ts" + ] + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.Recursive" + }, + "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/and explicit wildcard include with json api.js b/tests/baselines/reference/config/matchFiles/and explicit wildcard include with json api.js index 83bee1dabe647..a23533735147c 100644 --- a/tests/baselines/reference/config/matchFiles/and explicit wildcard include with json api.js +++ b/tests/baselines/reference/config/matchFiles/and explicit wildcard include with json api.js @@ -1,9 +1,9 @@ config: { - "include": [ - "*/a.ts", - "node_modules/a.ts" - ] + "include": [ + "*/a.ts", + "node_modules/a.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -34,29 +34,29 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/x/a.ts", - "c:/dev/node_modules/a.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "*/a.ts", - "node_modules/a.ts" + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/x/a.ts", + "c:/dev/node_modules/a.ts" ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "*/a.ts", + "node_modules/a.ts" + ], + "compileOnSave": false + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.Recursive" + }, "compileOnSave": false - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/and explicit wildcard include with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/and explicit wildcard include with jsonSourceFile api.js index 421e96679c648..76f8aab2fac9c 100644 --- a/tests/baselines/reference/config/matchFiles/and explicit wildcard include with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/and explicit wildcard include with jsonSourceFile api.js @@ -1,9 +1,9 @@ config: { - "include": [ - "*/a.ts", - "node_modules/a.ts" - ] + "include": [ + "*/a.ts", + "node_modules/a.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -34,28 +34,28 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/x/a.ts", - "c:/dev/node_modules/a.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "*/a.ts", - "node_modules/a.ts" - ] - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/x/a.ts", + "c:/dev/node_modules/a.ts" + ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "*/a.ts", + "node_modules/a.ts" + ] + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.Recursive" + }, + "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/and no exclusions with json api.js b/tests/baselines/reference/config/matchFiles/and no exclusions with json api.js index d731b74f840b9..ab0a2d43b6aea 100644 --- a/tests/baselines/reference/config/matchFiles/and no exclusions with json api.js +++ b/tests/baselines/reference/config/matchFiles/and no exclusions with json api.js @@ -1,8 +1,8 @@ config: { - "include": [ - "**/a.ts" - ] + "include": [ + "**/a.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -33,28 +33,28 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.ts", - "c:/dev/x/a.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "**/a.ts" + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.ts", + "c:/dev/x/a.ts" ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "**/a.ts" + ], + "compileOnSave": false + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.Recursive" + }, "compileOnSave": false - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/and no exclusions with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/and no exclusions with jsonSourceFile api.js index a5462b86bb350..4a9aaeef3943e 100644 --- a/tests/baselines/reference/config/matchFiles/and no exclusions with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/and no exclusions with jsonSourceFile api.js @@ -1,8 +1,8 @@ config: { - "include": [ - "**/a.ts" - ] + "include": [ + "**/a.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -33,27 +33,27 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.ts", - "c:/dev/x/a.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "**/a.ts" - ] - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.ts", + "c:/dev/x/a.ts" + ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "**/a.ts" + ] + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.Recursive" + }, + "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/and wildcard include with json api.js b/tests/baselines/reference/config/matchFiles/and wildcard include with json api.js index fe0804dc6a443..01507a0e38cb5 100644 --- a/tests/baselines/reference/config/matchFiles/and wildcard include with json api.js +++ b/tests/baselines/reference/config/matchFiles/and wildcard include with json api.js @@ -1,8 +1,8 @@ config: { - "include": [ - "*/a.ts" - ] + "include": [ + "*/a.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -33,27 +33,27 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/x/a.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "*/a.ts" + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/x/a.ts" ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "*/a.ts" + ], + "compileOnSave": false + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.Recursive" + }, "compileOnSave": false - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/and wildcard include with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/and wildcard include with jsonSourceFile api.js index 7e28ff8996145..7c9fec3180a46 100644 --- a/tests/baselines/reference/config/matchFiles/and wildcard include with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/and wildcard include with jsonSourceFile api.js @@ -1,8 +1,8 @@ config: { - "include": [ - "*/a.ts" - ] + "include": [ + "*/a.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -33,26 +33,26 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/x/a.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "*/a.ts" - ] - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/x/a.ts" + ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "*/a.ts" + ] + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.Recursive" + }, + "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/are not removed due to excludes with json api.js b/tests/baselines/reference/config/matchFiles/are not removed due to excludes with json api.js index 2b5129a8a20a8..407aca960daba 100644 --- a/tests/baselines/reference/config/matchFiles/are not removed due to excludes with json api.js +++ b/tests/baselines/reference/config/matchFiles/are not removed due to excludes with json api.js @@ -1,12 +1,12 @@ config: { - "files": [ - "a.ts", - "b.ts" - ], - "exclude": [ - "b.ts" - ] + "files": [ + "a.ts", + "b.ts" + ], + "exclude": [ + "b.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -82,30 +82,30 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.ts", - "c:/dev/b.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "files": [ - "a.ts", - "b.ts" - ], - "exclude": [ - "b.ts" + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.ts", + "c:/dev/b.ts" ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "files": [ + "a.ts", + "b.ts" + ], + "exclude": [ + "b.ts" + ], + "compileOnSave": false + }, + "wildcardDirectories": {}, "compileOnSave": false - }, - "wildcardDirectories": {}, - "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/are not removed due to excludes with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/are not removed due to excludes with jsonSourceFile api.js index db253ef243aa0..8e5ffab0f7c24 100644 --- a/tests/baselines/reference/config/matchFiles/are not removed due to excludes with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/are not removed due to excludes with jsonSourceFile api.js @@ -1,12 +1,12 @@ config: { - "files": [ - "a.ts", - "b.ts" - ], - "exclude": [ - "b.ts" - ] + "files": [ + "a.ts", + "b.ts" + ], + "exclude": [ + "b.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -82,29 +82,29 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.ts", - "c:/dev/b.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "files": [ - "a.ts", - "b.ts" + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.ts", + "c:/dev/b.ts" ], - "exclude": [ - "b.ts" - ] - }, - "wildcardDirectories": {}, - "compileOnSave": false + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "files": [ + "a.ts", + "b.ts" + ], + "exclude": [ + "b.ts" + ] + }, + "wildcardDirectories": {}, + "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/can exclude dirs whose pattern starts with starstar with json api.js b/tests/baselines/reference/config/matchFiles/can exclude dirs whose pattern starts with starstar with json api.js index 98c1a4543d928..be5bc206e61c7 100644 --- a/tests/baselines/reference/config/matchFiles/can exclude dirs whose pattern starts with starstar with json api.js +++ b/tests/baselines/reference/config/matchFiles/can exclude dirs whose pattern starts with starstar with json api.js @@ -1,8 +1,8 @@ config: { - "exclude": [ - "**/x" - ] + "exclude": [ + "**/x" + ] } Fs:: //// [/dev/A.ts] @@ -72,25 +72,25 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "exclude": [ - "**/x" - ], + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "exclude": [ + "**/x" + ], + "compileOnSave": false + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.Recursive" + }, "compileOnSave": false - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false } Errors:: error TS18003: No inputs were found in config file 'c:/dev/tsconfig.json'. Specified 'include' paths were '["**/*"]' and 'exclude' paths were '["**/x"]'. diff --git a/tests/baselines/reference/config/matchFiles/can exclude dirs whose pattern starts with starstar with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/can exclude dirs whose pattern starts with starstar with jsonSourceFile api.js index c0cc715e61027..10d29daebfa72 100644 --- a/tests/baselines/reference/config/matchFiles/can exclude dirs whose pattern starts with starstar with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/can exclude dirs whose pattern starts with starstar with jsonSourceFile api.js @@ -1,8 +1,8 @@ config: { - "exclude": [ - "**/x" - ] + "exclude": [ + "**/x" + ] } Fs:: //// [/dev/A.ts] @@ -72,24 +72,24 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "exclude": [ - "**/x" - ] - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "exclude": [ + "**/x" + ] + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.Recursive" + }, + "compileOnSave": false } Errors:: error TS18003: No inputs were found in config file 'c:/dev/tsconfig.json'. Specified 'include' paths were '["**/*"]' and 'exclude' paths were '["**/x"]'. diff --git a/tests/baselines/reference/config/matchFiles/can include dirs whose pattern starts with starstart with json api.js b/tests/baselines/reference/config/matchFiles/can include dirs whose pattern starts with starstart with json api.js index c0baf78d540e4..44426b4c14089 100644 --- a/tests/baselines/reference/config/matchFiles/can include dirs whose pattern starts with starstart with json api.js +++ b/tests/baselines/reference/config/matchFiles/can include dirs whose pattern starts with starstart with json api.js @@ -1,9 +1,9 @@ config: { - "include": [ - "**/x", - "**/a/**/b" - ] + "include": [ + "**/x", + "**/a/**/b" + ] } Fs:: //// [/dev/A.ts] @@ -73,26 +73,26 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "**/x", - "**/a/**/b" - ], + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "**/x", + "**/a/**/b" + ], + "compileOnSave": false + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.Recursive" + }, "compileOnSave": false - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false } Errors:: error TS18003: No inputs were found in config file 'c:/dev/tsconfig.json'. Specified 'include' paths were '["**/x","**/a/**/b"]' and 'exclude' paths were '[]'. diff --git a/tests/baselines/reference/config/matchFiles/can include dirs whose pattern starts with starstart with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/can include dirs whose pattern starts with starstart with jsonSourceFile api.js index 16e9270262fc2..70ce6b45ac917 100644 --- a/tests/baselines/reference/config/matchFiles/can include dirs whose pattern starts with starstart with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/can include dirs whose pattern starts with starstart with jsonSourceFile api.js @@ -1,9 +1,9 @@ config: { - "include": [ - "**/x", - "**/a/**/b" - ] + "include": [ + "**/x", + "**/a/**/b" + ] } Fs:: //// [/dev/A.ts] @@ -73,25 +73,25 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "**/x", - "**/a/**/b" - ] - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "**/x", + "**/a/**/b" + ] + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.Recursive" + }, + "compileOnSave": false } Errors:: error TS18003: No inputs were found in config file 'c:/dev/tsconfig.json'. Specified 'include' paths were '["**/x","**/a/**/b"]' and 'exclude' paths were '[]'. diff --git a/tests/baselines/reference/config/matchFiles/can include files in the same order on multiple platforms case insensitive with json api.js b/tests/baselines/reference/config/matchFiles/can include files in the same order on multiple platforms case insensitive with json api.js index 7d4e736799427..a25e9f1d2088f 100644 --- a/tests/baselines/reference/config/matchFiles/can include files in the same order on multiple platforms case insensitive with json api.js +++ b/tests/baselines/reference/config/matchFiles/can include files in the same order on multiple platforms case insensitive with json api.js @@ -14,26 +14,26 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/Yosemite.ts", - "c:/dev/xylophone.ts", - "c:/dev/zebra.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/Yosemite.ts", + "c:/dev/xylophone.ts", + "c:/dev/zebra.ts" + ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "compileOnSave": false + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.Recursive" + }, "compileOnSave": false - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/can include files in the same order on multiple platforms case insensitive with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/can include files in the same order on multiple platforms case insensitive with jsonSourceFile api.js index 287a1a916ddfe..df2b0e785ccea 100644 --- a/tests/baselines/reference/config/matchFiles/can include files in the same order on multiple platforms case insensitive with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/can include files in the same order on multiple platforms case insensitive with jsonSourceFile api.js @@ -14,24 +14,24 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/Yosemite.ts", - "c:/dev/xylophone.ts", - "c:/dev/zebra.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": {}, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/Yosemite.ts", + "c:/dev/xylophone.ts", + "c:/dev/zebra.ts" + ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": {}, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.Recursive" + }, + "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/can include files in the same order on multiple platforms case sensitive with json api.js b/tests/baselines/reference/config/matchFiles/can include files in the same order on multiple platforms case sensitive with json api.js index dcdf5cebde4f3..3f10f2cbc1870 100644 --- a/tests/baselines/reference/config/matchFiles/can include files in the same order on multiple platforms case sensitive with json api.js +++ b/tests/baselines/reference/config/matchFiles/can include files in the same order on multiple platforms case sensitive with json api.js @@ -14,22 +14,22 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "compileOnSave": false + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.Recursive" + }, "compileOnSave": false - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false } Errors:: error TS18003: No inputs were found in config file 'c:/dev/tsconfig.json'. Specified 'include' paths were '["**/*"]' and 'exclude' paths were '[]'. diff --git a/tests/baselines/reference/config/matchFiles/can include files in the same order on multiple platforms case sensitive with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/can include files in the same order on multiple platforms case sensitive with jsonSourceFile api.js index dc0755bf6f313..fb99c9df0327d 100644 --- a/tests/baselines/reference/config/matchFiles/can include files in the same order on multiple platforms case sensitive with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/can include files in the same order on multiple platforms case sensitive with jsonSourceFile api.js @@ -14,20 +14,20 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": {}, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": {}, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.Recursive" + }, + "compileOnSave": false } Errors:: error TS18003: No inputs were found in config file 'c:/dev/tsconfig.json'. Specified 'include' paths were '["**/*"]' and 'exclude' paths were '[]'. diff --git a/tests/baselines/reference/config/matchFiles/case sensitive with json api.js b/tests/baselines/reference/config/matchFiles/case sensitive with json api.js index eacd16926c42f..6dc36dda48bbe 100644 --- a/tests/baselines/reference/config/matchFiles/case sensitive with json api.js +++ b/tests/baselines/reference/config/matchFiles/case sensitive with json api.js @@ -1,8 +1,8 @@ config: { - "include": [ - "**/A.ts" - ] + "include": [ + "**/A.ts" + ] } Fs:: //// [/dev/A.ts] @@ -72,25 +72,25 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "**/A.ts" - ], + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "**/A.ts" + ], + "compileOnSave": false + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.Recursive" + }, "compileOnSave": false - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false } Errors:: error TS18003: No inputs were found in config file 'c:/dev/tsconfig.json'. Specified 'include' paths were '["**/A.ts"]' and 'exclude' paths were '[]'. diff --git a/tests/baselines/reference/config/matchFiles/case sensitive with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/case sensitive with jsonSourceFile api.js index 8354874b16601..c87e3846a3c84 100644 --- a/tests/baselines/reference/config/matchFiles/case sensitive with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/case sensitive with jsonSourceFile api.js @@ -1,8 +1,8 @@ config: { - "include": [ - "**/A.ts" - ] + "include": [ + "**/A.ts" + ] } Fs:: //// [/dev/A.ts] @@ -72,24 +72,24 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "**/A.ts" - ] - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "**/A.ts" + ] + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.Recursive" + }, + "compileOnSave": false } Errors:: error TS18003: No inputs were found in config file 'c:/dev/tsconfig.json'. Specified 'include' paths were '["**/A.ts"]' and 'exclude' paths were '[]'. diff --git a/tests/baselines/reference/config/matchFiles/exclude .js files when allowJs=false with json api.js b/tests/baselines/reference/config/matchFiles/exclude .js files when allowJs=false with json api.js index 8abd00d303d36..57d16bba59f94 100644 --- a/tests/baselines/reference/config/matchFiles/exclude .js files when allowJs=false with json api.js +++ b/tests/baselines/reference/config/matchFiles/exclude .js files when allowJs=false with json api.js @@ -1,11 +1,11 @@ config: { - "compilerOptions": { - "allowJs": false - }, - "include": [ - "js/*" - ] + "compilerOptions": { + "allowJs": false + }, + "include": [ + "js/*" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -81,29 +81,29 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "allowJs": false, - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "compilerOptions": { - "allowJs": false + "options": { + "allowJs": false, + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "compilerOptions": { + "allowJs": false + }, + "include": [ + "js/*" + ], + "compileOnSave": false + }, + "wildcardDirectories": { + "c:/dev/js": "WatchDirectoryFlags.None" }, - "include": [ - "js/*" - ], "compileOnSave": false - }, - "wildcardDirectories": { - "c:/dev/js": "WatchDirectoryFlags.None" - }, - "compileOnSave": false } Errors:: error TS18003: No inputs were found in config file 'c:/dev/tsconfig.json'. Specified 'include' paths were '["js/*"]' and 'exclude' paths were '[]'. diff --git a/tests/baselines/reference/config/matchFiles/exclude .js files when allowJs=false with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/exclude .js files when allowJs=false with jsonSourceFile api.js index 8abe45c57bd99..e410a7c082dcc 100644 --- a/tests/baselines/reference/config/matchFiles/exclude .js files when allowJs=false with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/exclude .js files when allowJs=false with jsonSourceFile api.js @@ -1,11 +1,11 @@ config: { - "compilerOptions": { - "allowJs": false - }, - "include": [ - "js/*" - ] + "compilerOptions": { + "allowJs": false + }, + "include": [ + "js/*" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -81,28 +81,28 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "allowJs": false, - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "compilerOptions": { - "allowJs": false + "options": { + "allowJs": false, + "configFilePath": "c:/dev/tsconfig.json" }, - "include": [ - "js/*" - ] - }, - "wildcardDirectories": { - "c:/dev/js": "WatchDirectoryFlags.None" - }, - "compileOnSave": false + "fileNames": [], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "compilerOptions": { + "allowJs": false + }, + "include": [ + "js/*" + ] + }, + "wildcardDirectories": { + "c:/dev/js": "WatchDirectoryFlags.None" + }, + "compileOnSave": false } Errors:: error TS18003: No inputs were found in config file 'c:/dev/tsconfig.json'. Specified 'include' paths were '["js/*"]' and 'exclude' paths were '[]'. diff --git a/tests/baselines/reference/config/matchFiles/exclude .min.js files using wildcards with json api.js b/tests/baselines/reference/config/matchFiles/exclude .min.js files using wildcards with json api.js index f2515327be3c7..53343a4274e8c 100644 --- a/tests/baselines/reference/config/matchFiles/exclude .min.js files using wildcards with json api.js +++ b/tests/baselines/reference/config/matchFiles/exclude .min.js files using wildcards with json api.js @@ -1,14 +1,14 @@ config: { - "compilerOptions": { - "allowJs": true - }, - "include": [ - "js/*.min.js" - ], - "exclude": [ - "js/a*" - ] + "compilerOptions": { + "allowJs": true + }, + "include": [ + "js/*.min.js" + ], + "exclude": [ + "js/a*" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -84,34 +84,34 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "allowJs": true, - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/js/d.min.js" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "compilerOptions": { - "allowJs": true + "options": { + "allowJs": true, + "configFilePath": "c:/dev/tsconfig.json" }, - "include": [ - "js/*.min.js" - ], - "exclude": [ - "js/a*" + "fileNames": [ + "c:/dev/js/d.min.js" ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "compilerOptions": { + "allowJs": true + }, + "include": [ + "js/*.min.js" + ], + "exclude": [ + "js/a*" + ], + "compileOnSave": false + }, + "wildcardDirectories": { + "c:/dev/js": "WatchDirectoryFlags.None" + }, "compileOnSave": false - }, - "wildcardDirectories": { - "c:/dev/js": "WatchDirectoryFlags.None" - }, - "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/exclude .min.js files using wildcards with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/exclude .min.js files using wildcards with jsonSourceFile api.js index f4f481ce27ad9..a374b5fae42b9 100644 --- a/tests/baselines/reference/config/matchFiles/exclude .min.js files using wildcards with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/exclude .min.js files using wildcards with jsonSourceFile api.js @@ -1,14 +1,14 @@ config: { - "compilerOptions": { - "allowJs": true - }, - "include": [ - "js/*.min.js" - ], - "exclude": [ - "js/a*" - ] + "compilerOptions": { + "allowJs": true + }, + "include": [ + "js/*.min.js" + ], + "exclude": [ + "js/a*" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -84,33 +84,33 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "allowJs": true, - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/js/d.min.js" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "compilerOptions": { - "allowJs": true + "options": { + "allowJs": true, + "configFilePath": "c:/dev/tsconfig.json" }, - "include": [ - "js/*.min.js" + "fileNames": [ + "c:/dev/js/d.min.js" ], - "exclude": [ - "js/a*" - ] - }, - "wildcardDirectories": { - "c:/dev/js": "WatchDirectoryFlags.None" - }, - "compileOnSave": false + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "compilerOptions": { + "allowJs": true + }, + "include": [ + "js/*.min.js" + ], + "exclude": [ + "js/a*" + ] + }, + "wildcardDirectories": { + "c:/dev/js": "WatchDirectoryFlags.None" + }, + "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/exclude files with .. in their name with json api.js b/tests/baselines/reference/config/matchFiles/exclude files with .. in their name with json api.js index 2b8d54e5382f6..a59ece3dd1169 100644 --- a/tests/baselines/reference/config/matchFiles/exclude files with .. in their name with json api.js +++ b/tests/baselines/reference/config/matchFiles/exclude files with .. in their name with json api.js @@ -1,11 +1,11 @@ config: { - "include": [ - "c:/ext/**/*" - ], - "exclude": [ - "c:/ext/b/a..b.ts" - ] + "include": [ + "c:/ext/**/*" + ], + "exclude": [ + "c:/ext/b/a..b.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -81,30 +81,30 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/ext/ext.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "c:/ext/**/*" - ], - "exclude": [ - "c:/ext/b/a..b.ts" + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/ext/ext.ts" ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "c:/ext/**/*" + ], + "exclude": [ + "c:/ext/b/a..b.ts" + ], + "compileOnSave": false + }, + "wildcardDirectories": { + "c:/ext": "WatchDirectoryFlags.Recursive" + }, "compileOnSave": false - }, - "wildcardDirectories": { - "c:/ext": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/exclude files with .. in their name with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/exclude files with .. in their name with jsonSourceFile api.js index 3c749ba5aefb0..3cd8e16c19513 100644 --- a/tests/baselines/reference/config/matchFiles/exclude files with .. in their name with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/exclude files with .. in their name with jsonSourceFile api.js @@ -1,11 +1,11 @@ config: { - "include": [ - "c:/ext/**/*" - ], - "exclude": [ - "c:/ext/b/a..b.ts" - ] + "include": [ + "c:/ext/**/*" + ], + "exclude": [ + "c:/ext/b/a..b.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -81,29 +81,29 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/ext/ext.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "c:/ext/**/*" + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/ext/ext.ts" ], - "exclude": [ - "c:/ext/b/a..b.ts" - ] - }, - "wildcardDirectories": { - "c:/ext": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "c:/ext/**/*" + ], + "exclude": [ + "c:/ext/b/a..b.ts" + ] + }, + "wildcardDirectories": { + "c:/ext": "WatchDirectoryFlags.Recursive" + }, + "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/exclude folders with json api.js b/tests/baselines/reference/config/matchFiles/exclude folders with json api.js index bfbc9b3dc0007..9f7b2d9b36a6c 100644 --- a/tests/baselines/reference/config/matchFiles/exclude folders with json api.js +++ b/tests/baselines/reference/config/matchFiles/exclude folders with json api.js @@ -1,12 +1,12 @@ config: { - "include": [ - "**/*" - ], - "exclude": [ - "z", - "x" - ] + "include": [ + "**/*" + ], + "exclude": [ + "z", + "x" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -82,33 +82,33 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.ts", - "c:/dev/b.ts", - "c:/dev/c.d.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "**/*" - ], - "exclude": [ - "z", - "x" + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.ts", + "c:/dev/b.ts", + "c:/dev/c.d.ts" ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "**/*" + ], + "exclude": [ + "z", + "x" + ], + "compileOnSave": false + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.Recursive" + }, "compileOnSave": false - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/exclude folders with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/exclude folders with jsonSourceFile api.js index 2345662ea47f0..cd2d0b74a5f38 100644 --- a/tests/baselines/reference/config/matchFiles/exclude folders with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/exclude folders with jsonSourceFile api.js @@ -1,12 +1,12 @@ config: { - "include": [ - "**/*" - ], - "exclude": [ - "z", - "x" - ] + "include": [ + "**/*" + ], + "exclude": [ + "z", + "x" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -82,32 +82,32 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.ts", - "c:/dev/b.ts", - "c:/dev/c.d.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "**/*" + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.ts", + "c:/dev/b.ts", + "c:/dev/c.d.ts" ], - "exclude": [ - "z", - "x" - ] - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "**/*" + ], + "exclude": [ + "z", + "x" + ] + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.Recursive" + }, + "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/exclude paths outside of the project using relative paths with json api.js b/tests/baselines/reference/config/matchFiles/exclude paths outside of the project using relative paths with json api.js index 373996f1495a8..af80907d365ec 100644 --- a/tests/baselines/reference/config/matchFiles/exclude paths outside of the project using relative paths with json api.js +++ b/tests/baselines/reference/config/matchFiles/exclude paths outside of the project using relative paths with json api.js @@ -1,11 +1,11 @@ config: { - "include": [ - "c:/**/*" - ], - "exclude": [ - "../**" - ] + "include": [ + "c:/**/*" + ], + "exclude": [ + "../**" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -81,26 +81,26 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "c:/**/*" - ], - "exclude": [ - "../**" - ], + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "c:/**/*" + ], + "exclude": [ + "../**" + ], + "compileOnSave": false + }, + "wildcardDirectories": {}, "compileOnSave": false - }, - "wildcardDirectories": {}, - "compileOnSave": false } Errors:: error TS18003: No inputs were found in config file 'c:/dev/tsconfig.json'. Specified 'include' paths were '["c:/**/*"]' and 'exclude' paths were '["../**"]'. diff --git a/tests/baselines/reference/config/matchFiles/exclude paths outside of the project using relative paths with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/exclude paths outside of the project using relative paths with jsonSourceFile api.js index aacae1a829949..02db83c032554 100644 --- a/tests/baselines/reference/config/matchFiles/exclude paths outside of the project using relative paths with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/exclude paths outside of the project using relative paths with jsonSourceFile api.js @@ -1,11 +1,11 @@ config: { - "include": [ - "c:/**/*" - ], - "exclude": [ - "../**" - ] + "include": [ + "c:/**/*" + ], + "exclude": [ + "../**" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -81,25 +81,25 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "c:/**/*" - ], - "exclude": [ - "../**" - ] - }, - "wildcardDirectories": {}, - "compileOnSave": false + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "c:/**/*" + ], + "exclude": [ + "../**" + ] + }, + "wildcardDirectories": {}, + "compileOnSave": false } Errors:: error TS18003: No inputs were found in config file 'c:/dev/tsconfig.json'. Specified 'include' paths were '["c:/**/*"]' and 'exclude' paths were '["../**"]'. diff --git a/tests/baselines/reference/config/matchFiles/in excludes after a subdirectory with json api.js b/tests/baselines/reference/config/matchFiles/in excludes after a subdirectory with json api.js index 3792b9bc78c0e..ee76e7b29fd2b 100644 --- a/tests/baselines/reference/config/matchFiles/in excludes after a subdirectory with json api.js +++ b/tests/baselines/reference/config/matchFiles/in excludes after a subdirectory with json api.js @@ -1,11 +1,11 @@ config: { - "include": [ - "**/a.ts" - ], - "exclude": [ - "**/y/.." - ] + "include": [ + "**/a.ts" + ], + "exclude": [ + "**/y/.." + ] } Fs:: //// [c:/dev/a.d.ts] @@ -81,33 +81,33 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.ts", - "c:/dev/x/a.ts", - "c:/dev/x/y/a.ts", - "c:/dev/z/a.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "**/a.ts" - ], - "exclude": [ - "**/y/.." + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.ts", + "c:/dev/x/a.ts", + "c:/dev/x/y/a.ts", + "c:/dev/z/a.ts" ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "**/a.ts" + ], + "exclude": [ + "**/y/.." + ], + "compileOnSave": false + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.Recursive" + }, "compileOnSave": false - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false } Errors:: error TS5065: File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '**/y/..'. diff --git a/tests/baselines/reference/config/matchFiles/in excludes after a subdirectory with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/in excludes after a subdirectory with jsonSourceFile api.js index 5af1e5230aaf2..7d5f948f767fd 100644 --- a/tests/baselines/reference/config/matchFiles/in excludes after a subdirectory with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/in excludes after a subdirectory with jsonSourceFile api.js @@ -1,11 +1,11 @@ config: { - "include": [ - "**/a.ts" - ], - "exclude": [ - "**/y/.." - ] + "include": [ + "**/a.ts" + ], + "exclude": [ + "**/y/.." + ] } Fs:: //// [c:/dev/a.d.ts] @@ -81,36 +81,36 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.ts", - "c:/dev/x/a.ts", - "c:/dev/x/y/a.ts", - "c:/dev/z/a.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "**/a.ts" + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.ts", + "c:/dev/x/a.ts", + "c:/dev/x/y/a.ts", + "c:/dev/z/a.ts" ], - "exclude": [ - "**/y/.." - ] - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "**/a.ts" + ], + "exclude": [ + "**/y/.." + ] + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.Recursive" + }, + "compileOnSave": false } Errors:: -tsconfig.json:6:3 - error TS5065: File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '**/y/..'. +tsconfig.json:6:5 - error TS5065: File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '**/y/..'. -6 "**/y/.." -   ~~~~~~~~~ +6 "**/y/.." +   ~~~~~~~~~ diff --git a/tests/baselines/reference/config/matchFiles/in excludes immediately after with json api.js b/tests/baselines/reference/config/matchFiles/in excludes immediately after with json api.js index eb4c641aef2d7..7963fa17063c9 100644 --- a/tests/baselines/reference/config/matchFiles/in excludes immediately after with json api.js +++ b/tests/baselines/reference/config/matchFiles/in excludes immediately after with json api.js @@ -1,11 +1,11 @@ config: { - "include": [ - "**/a.ts" - ], - "exclude": [ - "**/.." - ] + "include": [ + "**/a.ts" + ], + "exclude": [ + "**/.." + ] } Fs:: //// [c:/dev/a.d.ts] @@ -81,33 +81,33 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.ts", - "c:/dev/x/a.ts", - "c:/dev/x/y/a.ts", - "c:/dev/z/a.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "**/a.ts" - ], - "exclude": [ - "**/.." + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.ts", + "c:/dev/x/a.ts", + "c:/dev/x/y/a.ts", + "c:/dev/z/a.ts" ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "**/a.ts" + ], + "exclude": [ + "**/.." + ], + "compileOnSave": false + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.Recursive" + }, "compileOnSave": false - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false } Errors:: error TS5065: File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '**/..'. diff --git a/tests/baselines/reference/config/matchFiles/in excludes immediately after with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/in excludes immediately after with jsonSourceFile api.js index d0e3d6356e48d..cadb07e81872f 100644 --- a/tests/baselines/reference/config/matchFiles/in excludes immediately after with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/in excludes immediately after with jsonSourceFile api.js @@ -1,11 +1,11 @@ config: { - "include": [ - "**/a.ts" - ], - "exclude": [ - "**/.." - ] + "include": [ + "**/a.ts" + ], + "exclude": [ + "**/.." + ] } Fs:: //// [c:/dev/a.d.ts] @@ -81,36 +81,36 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.ts", - "c:/dev/x/a.ts", - "c:/dev/x/y/a.ts", - "c:/dev/z/a.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "**/a.ts" + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.ts", + "c:/dev/x/a.ts", + "c:/dev/x/y/a.ts", + "c:/dev/z/a.ts" ], - "exclude": [ - "**/.." - ] - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "**/a.ts" + ], + "exclude": [ + "**/.." + ] + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.Recursive" + }, + "compileOnSave": false } Errors:: -tsconfig.json:6:3 - error TS5065: File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '**/..'. +tsconfig.json:6:5 - error TS5065: File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '**/..'. -6 "**/.." -   ~~~~~~~ +6 "**/.." +   ~~~~~~~ diff --git a/tests/baselines/reference/config/matchFiles/in excludes with json api.js b/tests/baselines/reference/config/matchFiles/in excludes with json api.js index fdea974132a97..77005982a73e0 100644 --- a/tests/baselines/reference/config/matchFiles/in excludes with json api.js +++ b/tests/baselines/reference/config/matchFiles/in excludes with json api.js @@ -1,11 +1,11 @@ config: { - "include": [ - "**/a.ts" - ], - "exclude": [ - "**/x/**" - ] + "include": [ + "**/a.ts" + ], + "exclude": [ + "**/x/**" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -81,31 +81,31 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.ts", - "c:/dev/z/a.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "**/a.ts" - ], - "exclude": [ - "**/x/**" + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.ts", + "c:/dev/z/a.ts" ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "**/a.ts" + ], + "exclude": [ + "**/x/**" + ], + "compileOnSave": false + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.Recursive" + }, "compileOnSave": false - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/in excludes with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/in excludes with jsonSourceFile api.js index 2c35e4f366bb7..8707e5c9ab54d 100644 --- a/tests/baselines/reference/config/matchFiles/in excludes with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/in excludes with jsonSourceFile api.js @@ -1,11 +1,11 @@ config: { - "include": [ - "**/a.ts" - ], - "exclude": [ - "**/x/**" - ] + "include": [ + "**/a.ts" + ], + "exclude": [ + "**/x/**" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -81,30 +81,30 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.ts", - "c:/dev/z/a.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "**/a.ts" + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.ts", + "c:/dev/z/a.ts" ], - "exclude": [ - "**/x/**" - ] - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "**/a.ts" + ], + "exclude": [ + "**/x/**" + ] + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.Recursive" + }, + "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/in excludes with trailing recursive directory with json api.js b/tests/baselines/reference/config/matchFiles/in excludes with trailing recursive directory with json api.js index 989b631a68ffc..9324c8ad7f48f 100644 --- a/tests/baselines/reference/config/matchFiles/in excludes with trailing recursive directory with json api.js +++ b/tests/baselines/reference/config/matchFiles/in excludes with trailing recursive directory with json api.js @@ -1,11 +1,11 @@ config: { - "include": [ - "**/*" - ], - "exclude": [ - "**" - ] + "include": [ + "**/*" + ], + "exclude": [ + "**" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -81,26 +81,26 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "**/*" - ], - "exclude": [ - "**" - ], + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "**/*" + ], + "exclude": [ + "**" + ], + "compileOnSave": false + }, + "wildcardDirectories": {}, "compileOnSave": false - }, - "wildcardDirectories": {}, - "compileOnSave": false } Errors:: error TS18003: No inputs were found in config file 'c:/dev/tsconfig.json'. Specified 'include' paths were '["**/*"]' and 'exclude' paths were '["**"]'. diff --git a/tests/baselines/reference/config/matchFiles/in excludes with trailing recursive directory with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/in excludes with trailing recursive directory with jsonSourceFile api.js index 06b77203f5236..d4ccd9cc87ac8 100644 --- a/tests/baselines/reference/config/matchFiles/in excludes with trailing recursive directory with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/in excludes with trailing recursive directory with jsonSourceFile api.js @@ -1,11 +1,11 @@ config: { - "include": [ - "**/*" - ], - "exclude": [ - "**" - ] + "include": [ + "**/*" + ], + "exclude": [ + "**" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -81,25 +81,25 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "**/*" - ], - "exclude": [ - "**" - ] - }, - "wildcardDirectories": {}, - "compileOnSave": false + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "**/*" + ], + "exclude": [ + "**" + ] + }, + "wildcardDirectories": {}, + "compileOnSave": false } Errors:: error TS18003: No inputs were found in config file 'c:/dev/tsconfig.json'. Specified 'include' paths were '["**/*"]' and 'exclude' paths were '["**"]'. diff --git a/tests/baselines/reference/config/matchFiles/in includes after a subdirectory with json api.js b/tests/baselines/reference/config/matchFiles/in includes after a subdirectory with json api.js index 85c93a0b484d1..3a962ca742465 100644 --- a/tests/baselines/reference/config/matchFiles/in includes after a subdirectory with json api.js +++ b/tests/baselines/reference/config/matchFiles/in includes after a subdirectory with json api.js @@ -1,8 +1,8 @@ config: { - "include": [ - "**/y/../*" - ] + "include": [ + "**/y/../*" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -78,23 +78,23 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "**/y/../*" - ], + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "**/y/../*" + ], + "compileOnSave": false + }, + "wildcardDirectories": {}, "compileOnSave": false - }, - "wildcardDirectories": {}, - "compileOnSave": false } Errors:: error TS5065: File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '**/y/../*'. diff --git a/tests/baselines/reference/config/matchFiles/in includes after a subdirectory with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/in includes after a subdirectory with jsonSourceFile api.js index b6cd1c33ddcef..bb16cae994e42 100644 --- a/tests/baselines/reference/config/matchFiles/in includes after a subdirectory with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/in includes after a subdirectory with jsonSourceFile api.js @@ -1,8 +1,8 @@ config: { - "include": [ - "**/y/../*" - ] + "include": [ + "**/y/../*" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -78,27 +78,27 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "**/y/../*" - ] - }, - "wildcardDirectories": {}, - "compileOnSave": false + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "**/y/../*" + ] + }, + "wildcardDirectories": {}, + "compileOnSave": false } Errors:: -tsconfig.json:3:3 - error TS5065: File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '**/y/../*'. +tsconfig.json:3:5 - error TS5065: File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '**/y/../*'. -3 "**/y/../*" -   ~~~~~~~~~~~ +3 "**/y/../*" +   ~~~~~~~~~~~ error TS18003: No inputs were found in config file 'c:/dev/tsconfig.json'. Specified 'include' paths were '["**/y/../*"]' and 'exclude' paths were '[]'. diff --git a/tests/baselines/reference/config/matchFiles/in includes immediately after with json api.js b/tests/baselines/reference/config/matchFiles/in includes immediately after with json api.js index ae93f65c99c06..ed19a8de35cbd 100644 --- a/tests/baselines/reference/config/matchFiles/in includes immediately after with json api.js +++ b/tests/baselines/reference/config/matchFiles/in includes immediately after with json api.js @@ -1,8 +1,8 @@ config: { - "include": [ - "**/../*" - ] + "include": [ + "**/../*" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -78,23 +78,23 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "**/../*" - ], + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "**/../*" + ], + "compileOnSave": false + }, + "wildcardDirectories": {}, "compileOnSave": false - }, - "wildcardDirectories": {}, - "compileOnSave": false } Errors:: error TS5065: File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '**/../*'. diff --git a/tests/baselines/reference/config/matchFiles/in includes immediately after with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/in includes immediately after with jsonSourceFile api.js index c073e84ce2d9d..f1693a848d2db 100644 --- a/tests/baselines/reference/config/matchFiles/in includes immediately after with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/in includes immediately after with jsonSourceFile api.js @@ -1,8 +1,8 @@ config: { - "include": [ - "**/../*" - ] + "include": [ + "**/../*" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -78,27 +78,27 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "**/../*" - ] - }, - "wildcardDirectories": {}, - "compileOnSave": false + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "**/../*" + ] + }, + "wildcardDirectories": {}, + "compileOnSave": false } Errors:: -tsconfig.json:3:3 - error TS5065: File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '**/../*'. +tsconfig.json:3:5 - error TS5065: File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '**/../*'. -3 "**/../*" -   ~~~~~~~~~ +3 "**/../*" +   ~~~~~~~~~ error TS18003: No inputs were found in config file 'c:/dev/tsconfig.json'. Specified 'include' paths were '["**/../*"]' and 'exclude' paths were '[]'. diff --git a/tests/baselines/reference/config/matchFiles/in includes with multiple recursive directory patterns with json api.js b/tests/baselines/reference/config/matchFiles/in includes with multiple recursive directory patterns with json api.js index cf4673cab1b35..8a1960d798060 100644 --- a/tests/baselines/reference/config/matchFiles/in includes with multiple recursive directory patterns with json api.js +++ b/tests/baselines/reference/config/matchFiles/in includes with multiple recursive directory patterns with json api.js @@ -1,8 +1,8 @@ config: { - "include": [ - "**/x/**/*" - ] + "include": [ + "**/x/**/*" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -78,31 +78,31 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/x/a.ts", - "c:/dev/x/aa.ts", - "c:/dev/x/b.ts", - "c:/dev/x/y/a.ts", - "c:/dev/x/y/b.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "**/x/**/*" + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/x/a.ts", + "c:/dev/x/aa.ts", + "c:/dev/x/b.ts", + "c:/dev/x/y/a.ts", + "c:/dev/x/y/b.ts" ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "**/x/**/*" + ], + "compileOnSave": false + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.Recursive" + }, "compileOnSave": false - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/in includes with multiple recursive directory patterns with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/in includes with multiple recursive directory patterns with jsonSourceFile api.js index 0ee0690bf7ef2..4207e3fff7bbb 100644 --- a/tests/baselines/reference/config/matchFiles/in includes with multiple recursive directory patterns with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/in includes with multiple recursive directory patterns with jsonSourceFile api.js @@ -1,8 +1,8 @@ config: { - "include": [ - "**/x/**/*" - ] + "include": [ + "**/x/**/*" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -78,30 +78,30 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/x/a.ts", - "c:/dev/x/aa.ts", - "c:/dev/x/b.ts", - "c:/dev/x/y/a.ts", - "c:/dev/x/y/b.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "**/x/**/*" - ] - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/x/a.ts", + "c:/dev/x/aa.ts", + "c:/dev/x/b.ts", + "c:/dev/x/y/a.ts", + "c:/dev/x/y/b.ts" + ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "**/x/**/*" + ] + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.Recursive" + }, + "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/in includes with trailing recursive directory with json api.js b/tests/baselines/reference/config/matchFiles/in includes with trailing recursive directory with json api.js index 2df0a02448bd8..0dffc1f4a19aa 100644 --- a/tests/baselines/reference/config/matchFiles/in includes with trailing recursive directory with json api.js +++ b/tests/baselines/reference/config/matchFiles/in includes with trailing recursive directory with json api.js @@ -1,8 +1,8 @@ config: { - "include": [ - "**" - ] + "include": [ + "**" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -78,23 +78,23 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "**" - ], + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "**" + ], + "compileOnSave": false + }, + "wildcardDirectories": {}, "compileOnSave": false - }, - "wildcardDirectories": {}, - "compileOnSave": false } Errors:: error TS5010: File specification cannot end in a recursive directory wildcard ('**'): '**'. diff --git a/tests/baselines/reference/config/matchFiles/in includes with trailing recursive directory with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/in includes with trailing recursive directory with jsonSourceFile api.js index 59e50c45b495d..35f7c448c5315 100644 --- a/tests/baselines/reference/config/matchFiles/in includes with trailing recursive directory with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/in includes with trailing recursive directory with jsonSourceFile api.js @@ -1,8 +1,8 @@ config: { - "include": [ - "**" - ] + "include": [ + "**" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -78,27 +78,27 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "**" - ] - }, - "wildcardDirectories": {}, - "compileOnSave": false + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "**" + ] + }, + "wildcardDirectories": {}, + "compileOnSave": false } Errors:: -tsconfig.json:3:3 - error TS5010: File specification cannot end in a recursive directory wildcard ('**'): '**'. +tsconfig.json:3:5 - error TS5010: File specification cannot end in a recursive directory wildcard ('**'): '**'. -3 "**" -   ~~~~ +3 "**" +   ~~~~ error TS18003: No inputs were found in config file 'c:/dev/tsconfig.json'. Specified 'include' paths were '["**"]' and 'exclude' paths were '[]'. diff --git a/tests/baselines/reference/config/matchFiles/include .js files when allowJs=true with json api.js b/tests/baselines/reference/config/matchFiles/include .js files when allowJs=true with json api.js index e659849dc28b9..7664716caf7c5 100644 --- a/tests/baselines/reference/config/matchFiles/include .js files when allowJs=true with json api.js +++ b/tests/baselines/reference/config/matchFiles/include .js files when allowJs=true with json api.js @@ -1,11 +1,11 @@ config: { - "compilerOptions": { - "allowJs": true - }, - "include": [ - "js/*" - ] + "compilerOptions": { + "allowJs": true + }, + "include": [ + "js/*" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -81,32 +81,32 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "allowJs": true, - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/js/a.js", - "c:/dev/js/b.js" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "compilerOptions": { - "allowJs": true + "options": { + "allowJs": true, + "configFilePath": "c:/dev/tsconfig.json" }, - "include": [ - "js/*" + "fileNames": [ + "c:/dev/js/a.js", + "c:/dev/js/b.js" ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "compilerOptions": { + "allowJs": true + }, + "include": [ + "js/*" + ], + "compileOnSave": false + }, + "wildcardDirectories": { + "c:/dev/js": "WatchDirectoryFlags.None" + }, "compileOnSave": false - }, - "wildcardDirectories": { - "c:/dev/js": "WatchDirectoryFlags.None" - }, - "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/include .js files when allowJs=true with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/include .js files when allowJs=true with jsonSourceFile api.js index c64b0de13e8a8..1662d4d7f9563 100644 --- a/tests/baselines/reference/config/matchFiles/include .js files when allowJs=true with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/include .js files when allowJs=true with jsonSourceFile api.js @@ -1,11 +1,11 @@ config: { - "compilerOptions": { - "allowJs": true - }, - "include": [ - "js/*" - ] + "compilerOptions": { + "allowJs": true + }, + "include": [ + "js/*" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -81,31 +81,31 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "allowJs": true, - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/js/a.js", - "c:/dev/js/b.js" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "compilerOptions": { - "allowJs": true + "options": { + "allowJs": true, + "configFilePath": "c:/dev/tsconfig.json" }, - "include": [ - "js/*" - ] - }, - "wildcardDirectories": { - "c:/dev/js": "WatchDirectoryFlags.None" - }, - "compileOnSave": false + "fileNames": [ + "c:/dev/js/a.js", + "c:/dev/js/b.js" + ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "compilerOptions": { + "allowJs": true + }, + "include": [ + "js/*" + ] + }, + "wildcardDirectories": { + "c:/dev/js": "WatchDirectoryFlags.None" + }, + "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/include explicitly listed .min.js files when allowJs=true with json api.js b/tests/baselines/reference/config/matchFiles/include explicitly listed .min.js files when allowJs=true with json api.js index 245e50e95e7cf..4bb2d8d27d0bc 100644 --- a/tests/baselines/reference/config/matchFiles/include explicitly listed .min.js files when allowJs=true with json api.js +++ b/tests/baselines/reference/config/matchFiles/include explicitly listed .min.js files when allowJs=true with json api.js @@ -1,11 +1,11 @@ config: { - "compilerOptions": { - "allowJs": true - }, - "include": [ - "js/*.min.js" - ] + "compilerOptions": { + "allowJs": true + }, + "include": [ + "js/*.min.js" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -81,32 +81,32 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "allowJs": true, - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/js/ab.min.js", - "c:/dev/js/d.min.js" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "compilerOptions": { - "allowJs": true + "options": { + "allowJs": true, + "configFilePath": "c:/dev/tsconfig.json" }, - "include": [ - "js/*.min.js" + "fileNames": [ + "c:/dev/js/ab.min.js", + "c:/dev/js/d.min.js" ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "compilerOptions": { + "allowJs": true + }, + "include": [ + "js/*.min.js" + ], + "compileOnSave": false + }, + "wildcardDirectories": { + "c:/dev/js": "WatchDirectoryFlags.None" + }, "compileOnSave": false - }, - "wildcardDirectories": { - "c:/dev/js": "WatchDirectoryFlags.None" - }, - "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/include explicitly listed .min.js files when allowJs=true with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/include explicitly listed .min.js files when allowJs=true with jsonSourceFile api.js index 988d5a28c32a4..c38d76d9c6ec6 100644 --- a/tests/baselines/reference/config/matchFiles/include explicitly listed .min.js files when allowJs=true with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/include explicitly listed .min.js files when allowJs=true with jsonSourceFile api.js @@ -1,11 +1,11 @@ config: { - "compilerOptions": { - "allowJs": true - }, - "include": [ - "js/*.min.js" - ] + "compilerOptions": { + "allowJs": true + }, + "include": [ + "js/*.min.js" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -81,31 +81,31 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "allowJs": true, - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/js/ab.min.js", - "c:/dev/js/d.min.js" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "compilerOptions": { - "allowJs": true + "options": { + "allowJs": true, + "configFilePath": "c:/dev/tsconfig.json" }, - "include": [ - "js/*.min.js" - ] - }, - "wildcardDirectories": { - "c:/dev/js": "WatchDirectoryFlags.None" - }, - "compileOnSave": false + "fileNames": [ + "c:/dev/js/ab.min.js", + "c:/dev/js/d.min.js" + ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "compilerOptions": { + "allowJs": true + }, + "include": [ + "js/*.min.js" + ] + }, + "wildcardDirectories": { + "c:/dev/js": "WatchDirectoryFlags.None" + }, + "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/include files with .. in their name with json api.js b/tests/baselines/reference/config/matchFiles/include files with .. in their name with json api.js index f1131049a0674..c1e60f14da80d 100644 --- a/tests/baselines/reference/config/matchFiles/include files with .. in their name with json api.js +++ b/tests/baselines/reference/config/matchFiles/include files with .. in their name with json api.js @@ -1,11 +1,11 @@ config: { - "include": [ - "c:/ext/b/a..b.ts" - ], - "exclude": [ - "**" - ] + "include": [ + "c:/ext/b/a..b.ts" + ], + "exclude": [ + "**" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -81,28 +81,28 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/ext/b/a..b.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "c:/ext/b/a..b.ts" - ], - "exclude": [ - "**" + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/ext/b/a..b.ts" ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "c:/ext/b/a..b.ts" + ], + "exclude": [ + "**" + ], + "compileOnSave": false + }, + "wildcardDirectories": {}, "compileOnSave": false - }, - "wildcardDirectories": {}, - "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/include files with .. in their name with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/include files with .. in their name with jsonSourceFile api.js index 6230b48f3edee..077e212089a54 100644 --- a/tests/baselines/reference/config/matchFiles/include files with .. in their name with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/include files with .. in their name with jsonSourceFile api.js @@ -1,11 +1,11 @@ config: { - "include": [ - "c:/ext/b/a..b.ts" - ], - "exclude": [ - "**" - ] + "include": [ + "c:/ext/b/a..b.ts" + ], + "exclude": [ + "**" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -81,27 +81,27 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/ext/b/a..b.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "c:/ext/b/a..b.ts" + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/ext/b/a..b.ts" ], - "exclude": [ - "**" - ] - }, - "wildcardDirectories": {}, - "compileOnSave": false + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "c:/ext/b/a..b.ts" + ], + "exclude": [ + "**" + ] + }, + "wildcardDirectories": {}, + "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/include paths outside of the project using relative paths with json api.js b/tests/baselines/reference/config/matchFiles/include paths outside of the project using relative paths with json api.js index 0cff994f910a0..012db4786d361 100644 --- a/tests/baselines/reference/config/matchFiles/include paths outside of the project using relative paths with json api.js +++ b/tests/baselines/reference/config/matchFiles/include paths outside of the project using relative paths with json api.js @@ -1,12 +1,12 @@ config: { - "include": [ - "*", - "../ext/*" - ], - "exclude": [ - "**" - ] + "include": [ + "*", + "../ext/*" + ], + "exclude": [ + "**" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -82,31 +82,31 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/ext/ext.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "*", - "../ext/*" - ], - "exclude": [ - "**" + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/ext/ext.ts" ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "*", + "../ext/*" + ], + "exclude": [ + "**" + ], + "compileOnSave": false + }, + "wildcardDirectories": { + "c:/ext": "WatchDirectoryFlags.None" + }, "compileOnSave": false - }, - "wildcardDirectories": { - "c:/ext": "WatchDirectoryFlags.None" - }, - "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/include paths outside of the project using relative paths with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/include paths outside of the project using relative paths with jsonSourceFile api.js index 35e261c5b2ecb..61b8ee639bb1f 100644 --- a/tests/baselines/reference/config/matchFiles/include paths outside of the project using relative paths with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/include paths outside of the project using relative paths with jsonSourceFile api.js @@ -1,12 +1,12 @@ config: { - "include": [ - "*", - "../ext/*" - ], - "exclude": [ - "**" - ] + "include": [ + "*", + "../ext/*" + ], + "exclude": [ + "**" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -82,30 +82,30 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/ext/ext.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "*", - "../ext/*" + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/ext/ext.ts" ], - "exclude": [ - "**" - ] - }, - "wildcardDirectories": { - "c:/ext": "WatchDirectoryFlags.None" - }, - "compileOnSave": false + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "*", + "../ext/*" + ], + "exclude": [ + "**" + ] + }, + "wildcardDirectories": { + "c:/ext": "WatchDirectoryFlags.None" + }, + "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/include paths outside of the project with json api.js b/tests/baselines/reference/config/matchFiles/include paths outside of the project with json api.js index 168a943a715c3..dc47810062761 100644 --- a/tests/baselines/reference/config/matchFiles/include paths outside of the project with json api.js +++ b/tests/baselines/reference/config/matchFiles/include paths outside of the project with json api.js @@ -1,9 +1,9 @@ config: { - "include": [ - "*", - "c:/ext/*" - ] + "include": [ + "*", + "c:/ext/*" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -79,32 +79,32 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.ts", - "c:/dev/b.ts", - "c:/dev/c.d.ts", - "c:/ext/ext.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "*", - "c:/ext/*" + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.ts", + "c:/dev/b.ts", + "c:/dev/c.d.ts", + "c:/ext/ext.ts" ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "*", + "c:/ext/*" + ], + "compileOnSave": false + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.None", + "c:/ext": "WatchDirectoryFlags.None" + }, "compileOnSave": false - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.None", - "c:/ext": "WatchDirectoryFlags.None" - }, - "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/include paths outside of the project with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/include paths outside of the project with jsonSourceFile api.js index 9b5fc7cb68a7f..2a9135d700a01 100644 --- a/tests/baselines/reference/config/matchFiles/include paths outside of the project with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/include paths outside of the project with jsonSourceFile api.js @@ -1,9 +1,9 @@ config: { - "include": [ - "*", - "c:/ext/*" - ] + "include": [ + "*", + "c:/ext/*" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -79,31 +79,31 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.ts", - "c:/dev/b.ts", - "c:/dev/c.d.ts", - "c:/ext/ext.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "*", - "c:/ext/*" - ] - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.None", - "c:/ext": "WatchDirectoryFlags.None" - }, - "compileOnSave": false + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.ts", + "c:/dev/b.ts", + "c:/dev/c.d.ts", + "c:/ext/ext.ts" + ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "*", + "c:/ext/*" + ] + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.None", + "c:/ext": "WatchDirectoryFlags.None" + }, + "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/is sorted in include order, then in alphabetical order with json api.js b/tests/baselines/reference/config/matchFiles/is sorted in include order, then in alphabetical order with json api.js index 754659c963358..85152e4b1f6c6 100644 --- a/tests/baselines/reference/config/matchFiles/is sorted in include order, then in alphabetical order with json api.js +++ b/tests/baselines/reference/config/matchFiles/is sorted in include order, then in alphabetical order with json api.js @@ -1,9 +1,9 @@ config: { - "include": [ - "z/*.ts", - "x/*.ts" - ] + "include": [ + "z/*.ts", + "x/*.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -79,37 +79,37 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/z/a.ts", - "c:/dev/z/aba.ts", - "c:/dev/z/abz.ts", - "c:/dev/z/b.ts", - "c:/dev/z/bba.ts", - "c:/dev/z/bbz.ts", - "c:/dev/x/a.ts", - "c:/dev/x/aa.ts", - "c:/dev/x/b.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "z/*.ts", - "x/*.ts" + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/z/a.ts", + "c:/dev/z/aba.ts", + "c:/dev/z/abz.ts", + "c:/dev/z/b.ts", + "c:/dev/z/bba.ts", + "c:/dev/z/bbz.ts", + "c:/dev/x/a.ts", + "c:/dev/x/aa.ts", + "c:/dev/x/b.ts" ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "z/*.ts", + "x/*.ts" + ], + "compileOnSave": false + }, + "wildcardDirectories": { + "c:/dev/z": "WatchDirectoryFlags.None", + "c:/dev/x": "WatchDirectoryFlags.None" + }, "compileOnSave": false - }, - "wildcardDirectories": { - "c:/dev/z": "WatchDirectoryFlags.None", - "c:/dev/x": "WatchDirectoryFlags.None" - }, - "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/is sorted in include order, then in alphabetical order with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/is sorted in include order, then in alphabetical order with jsonSourceFile api.js index 4961455ad98a7..7e03dba39ccb4 100644 --- a/tests/baselines/reference/config/matchFiles/is sorted in include order, then in alphabetical order with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/is sorted in include order, then in alphabetical order with jsonSourceFile api.js @@ -1,9 +1,9 @@ config: { - "include": [ - "z/*.ts", - "x/*.ts" - ] + "include": [ + "z/*.ts", + "x/*.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -79,36 +79,36 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/z/a.ts", - "c:/dev/z/aba.ts", - "c:/dev/z/abz.ts", - "c:/dev/z/b.ts", - "c:/dev/z/bba.ts", - "c:/dev/z/bbz.ts", - "c:/dev/x/a.ts", - "c:/dev/x/aa.ts", - "c:/dev/x/b.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "z/*.ts", - "x/*.ts" - ] - }, - "wildcardDirectories": { - "c:/dev/z": "WatchDirectoryFlags.None", - "c:/dev/x": "WatchDirectoryFlags.None" - }, - "compileOnSave": false + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/z/a.ts", + "c:/dev/z/aba.ts", + "c:/dev/z/abz.ts", + "c:/dev/z/b.ts", + "c:/dev/z/bba.ts", + "c:/dev/z/bbz.ts", + "c:/dev/x/a.ts", + "c:/dev/x/aa.ts", + "c:/dev/x/b.ts" + ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "z/*.ts", + "x/*.ts" + ] + }, + "wildcardDirectories": { + "c:/dev/z": "WatchDirectoryFlags.None", + "c:/dev/x": "WatchDirectoryFlags.None" + }, + "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/missing files are still present with json api.js b/tests/baselines/reference/config/matchFiles/missing files are still present with json api.js index 0e856bcc8dd10..6bd0732c33b33 100644 --- a/tests/baselines/reference/config/matchFiles/missing files are still present with json api.js +++ b/tests/baselines/reference/config/matchFiles/missing files are still present with json api.js @@ -1,9 +1,9 @@ config: { - "files": [ - "z.ts", - "x.ts" - ] + "files": [ + "z.ts", + "x.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -79,27 +79,27 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/z.ts", - "c:/dev/x.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "files": [ - "z.ts", - "x.ts" + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/z.ts", + "c:/dev/x.ts" ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "files": [ + "z.ts", + "x.ts" + ], + "compileOnSave": false + }, + "wildcardDirectories": {}, "compileOnSave": false - }, - "wildcardDirectories": {}, - "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/missing files are still present with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/missing files are still present with jsonSourceFile api.js index 0a8f3b90d49cf..bfbcd9500872a 100644 --- a/tests/baselines/reference/config/matchFiles/missing files are still present with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/missing files are still present with jsonSourceFile api.js @@ -1,9 +1,9 @@ config: { - "files": [ - "z.ts", - "x.ts" - ] + "files": [ + "z.ts", + "x.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -79,26 +79,26 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/z.ts", - "c:/dev/x.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "files": [ - "z.ts", - "x.ts" - ] - }, - "wildcardDirectories": {}, - "compileOnSave": false + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/z.ts", + "c:/dev/x.ts" + ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "files": [ + "z.ts", + "x.ts" + ] + }, + "wildcardDirectories": {}, + "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/question matches only a single character with json api.js b/tests/baselines/reference/config/matchFiles/question matches only a single character with json api.js index ad59392038443..22f1cea42b756 100644 --- a/tests/baselines/reference/config/matchFiles/question matches only a single character with json api.js +++ b/tests/baselines/reference/config/matchFiles/question matches only a single character with json api.js @@ -1,8 +1,8 @@ config: { - "include": [ - "x/?.ts" - ] + "include": [ + "x/?.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -78,28 +78,28 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/x/a.ts", - "c:/dev/x/b.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "x/?.ts" + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/x/a.ts", + "c:/dev/x/b.ts" ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "x/?.ts" + ], + "compileOnSave": false + }, + "wildcardDirectories": { + "c:/dev/x": "WatchDirectoryFlags.None" + }, "compileOnSave": false - }, - "wildcardDirectories": { - "c:/dev/x": "WatchDirectoryFlags.None" - }, - "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/question matches only a single character with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/question matches only a single character with jsonSourceFile api.js index 19959f4698ac8..15c8873a7cc58 100644 --- a/tests/baselines/reference/config/matchFiles/question matches only a single character with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/question matches only a single character with jsonSourceFile api.js @@ -1,8 +1,8 @@ config: { - "include": [ - "x/?.ts" - ] + "include": [ + "x/?.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -78,27 +78,27 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/x/a.ts", - "c:/dev/x/b.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "x/?.ts" - ] - }, - "wildcardDirectories": { - "c:/dev/x": "WatchDirectoryFlags.None" - }, - "compileOnSave": false + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/x/a.ts", + "c:/dev/x/b.ts" + ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "x/?.ts" + ] + }, + "wildcardDirectories": { + "c:/dev/x": "WatchDirectoryFlags.None" + }, + "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/same named declarations are excluded with json api.js b/tests/baselines/reference/config/matchFiles/same named declarations are excluded with json api.js index 91fcf3fc66875..a5da485ded138 100644 --- a/tests/baselines/reference/config/matchFiles/same named declarations are excluded with json api.js +++ b/tests/baselines/reference/config/matchFiles/same named declarations are excluded with json api.js @@ -1,8 +1,8 @@ config: { - "include": [ - "*.ts" - ] + "include": [ + "*.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -78,29 +78,29 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.ts", - "c:/dev/b.ts", - "c:/dev/c.d.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "*.ts" + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.ts", + "c:/dev/b.ts", + "c:/dev/c.d.ts" ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "*.ts" + ], + "compileOnSave": false + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.None" + }, "compileOnSave": false - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.None" - }, - "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/same named declarations are excluded with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/same named declarations are excluded with jsonSourceFile api.js index d0a89f98e4480..3720faaaf2ab9 100644 --- a/tests/baselines/reference/config/matchFiles/same named declarations are excluded with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/same named declarations are excluded with jsonSourceFile api.js @@ -1,8 +1,8 @@ config: { - "include": [ - "*.ts" - ] + "include": [ + "*.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -78,28 +78,28 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.ts", - "c:/dev/b.ts", - "c:/dev/c.d.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "*.ts" - ] - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.None" - }, - "compileOnSave": false + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.ts", + "c:/dev/b.ts", + "c:/dev/c.d.ts" + ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "*.ts" + ] + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.None" + }, + "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/same named declarations with include dts tsx with json api.js b/tests/baselines/reference/config/matchFiles/same named declarations with include dts tsx with json api.js index 2919f010225ca..46e52a49db285 100644 --- a/tests/baselines/reference/config/matchFiles/same named declarations with include dts tsx with json api.js +++ b/tests/baselines/reference/config/matchFiles/same named declarations with include dts tsx with json api.js @@ -1,9 +1,9 @@ config: { - "include": [ - "*.tsx", - "*.d.ts" - ] + "include": [ + "*.tsx", + "*.d.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -46,33 +46,33 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.tsx", - "c:/dev/b.tsx", - "c:/dev/c.tsx", - "c:/dev/n.tsx", - "c:/dev/m.d.ts", - "c:/dev/x.d.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "*.tsx", - "*.d.ts" + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.tsx", + "c:/dev/b.tsx", + "c:/dev/c.tsx", + "c:/dev/n.tsx", + "c:/dev/m.d.ts", + "c:/dev/x.d.ts" ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "*.tsx", + "*.d.ts" + ], + "compileOnSave": false + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.None" + }, "compileOnSave": false - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.None" - }, - "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/same named declarations with include dts tsx with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/same named declarations with include dts tsx with jsonSourceFile api.js index c995a1aaf2909..92a08c8a46dd7 100644 --- a/tests/baselines/reference/config/matchFiles/same named declarations with include dts tsx with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/same named declarations with include dts tsx with jsonSourceFile api.js @@ -1,9 +1,9 @@ config: { - "include": [ - "*.tsx", - "*.d.ts" - ] + "include": [ + "*.tsx", + "*.d.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -46,32 +46,32 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.tsx", - "c:/dev/b.tsx", - "c:/dev/c.tsx", - "c:/dev/n.tsx", - "c:/dev/m.d.ts", - "c:/dev/x.d.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "*.tsx", - "*.d.ts" - ] - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.None" - }, - "compileOnSave": false + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.tsx", + "c:/dev/b.tsx", + "c:/dev/c.tsx", + "c:/dev/n.tsx", + "c:/dev/m.d.ts", + "c:/dev/x.d.ts" + ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "*.tsx", + "*.d.ts" + ] + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.None" + }, + "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/same named declarations with include ts dts with json api.js b/tests/baselines/reference/config/matchFiles/same named declarations with include ts dts with json api.js index e720253f033ee..447236fce692f 100644 --- a/tests/baselines/reference/config/matchFiles/same named declarations with include ts dts with json api.js +++ b/tests/baselines/reference/config/matchFiles/same named declarations with include ts dts with json api.js @@ -1,9 +1,9 @@ config: { - "include": [ - "*.ts", - "*.d.ts" - ] + "include": [ + "*.ts", + "*.d.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -46,33 +46,33 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.d.ts", - "c:/dev/b.ts", - "c:/dev/m.ts", - "c:/dev/n.ts", - "c:/dev/o.ts", - "c:/dev/x.d.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "*.ts", - "*.d.ts" + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.d.ts", + "c:/dev/b.ts", + "c:/dev/m.ts", + "c:/dev/n.ts", + "c:/dev/o.ts", + "c:/dev/x.d.ts" ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "*.ts", + "*.d.ts" + ], + "compileOnSave": false + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.None" + }, "compileOnSave": false - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.None" - }, - "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/same named declarations with include ts dts with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/same named declarations with include ts dts with jsonSourceFile api.js index f6fe6ac8399c3..ae5f0c97d0964 100644 --- a/tests/baselines/reference/config/matchFiles/same named declarations with include ts dts with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/same named declarations with include ts dts with jsonSourceFile api.js @@ -1,9 +1,9 @@ config: { - "include": [ - "*.ts", - "*.d.ts" - ] + "include": [ + "*.ts", + "*.d.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -46,32 +46,32 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.d.ts", - "c:/dev/b.ts", - "c:/dev/m.ts", - "c:/dev/n.ts", - "c:/dev/o.ts", - "c:/dev/x.d.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "*.ts", - "*.d.ts" - ] - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.None" - }, - "compileOnSave": false + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.d.ts", + "c:/dev/b.ts", + "c:/dev/m.ts", + "c:/dev/n.ts", + "c:/dev/o.ts", + "c:/dev/x.d.ts" + ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "*.ts", + "*.d.ts" + ] + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.None" + }, + "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/same named declarations with include ts tsx with json api.js b/tests/baselines/reference/config/matchFiles/same named declarations with include ts tsx with json api.js index 464b696cc30ac..3f26a449e4c82 100644 --- a/tests/baselines/reference/config/matchFiles/same named declarations with include ts tsx with json api.js +++ b/tests/baselines/reference/config/matchFiles/same named declarations with include ts tsx with json api.js @@ -1,9 +1,9 @@ config: { - "include": [ - "*.tsx", - "*.ts" - ] + "include": [ + "*.tsx", + "*.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -46,34 +46,34 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.tsx", - "c:/dev/c.tsx", - "c:/dev/b.ts", - "c:/dev/m.ts", - "c:/dev/n.ts", - "c:/dev/o.ts", - "c:/dev/x.d.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "*.tsx", - "*.ts" + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.tsx", + "c:/dev/c.tsx", + "c:/dev/b.ts", + "c:/dev/m.ts", + "c:/dev/n.ts", + "c:/dev/o.ts", + "c:/dev/x.d.ts" ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "*.tsx", + "*.ts" + ], + "compileOnSave": false + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.None" + }, "compileOnSave": false - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.None" - }, - "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/same named declarations with include ts tsx with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/same named declarations with include ts tsx with jsonSourceFile api.js index dee8f48844ace..1629813a93509 100644 --- a/tests/baselines/reference/config/matchFiles/same named declarations with include ts tsx with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/same named declarations with include ts tsx with jsonSourceFile api.js @@ -1,9 +1,9 @@ config: { - "include": [ - "*.tsx", - "*.ts" - ] + "include": [ + "*.tsx", + "*.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -46,33 +46,33 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.tsx", - "c:/dev/c.tsx", - "c:/dev/b.ts", - "c:/dev/m.ts", - "c:/dev/n.ts", - "c:/dev/o.ts", - "c:/dev/x.d.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "*.tsx", - "*.ts" - ] - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.None" - }, - "compileOnSave": false + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.tsx", + "c:/dev/c.tsx", + "c:/dev/b.ts", + "c:/dev/m.ts", + "c:/dev/n.ts", + "c:/dev/o.ts", + "c:/dev/x.d.ts" + ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "*.tsx", + "*.ts" + ] + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.None" + }, + "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/same named declarations with include ts with json api.js b/tests/baselines/reference/config/matchFiles/same named declarations with include ts with json api.js index e3d978c412cbc..00e3e43b1a425 100644 --- a/tests/baselines/reference/config/matchFiles/same named declarations with include ts with json api.js +++ b/tests/baselines/reference/config/matchFiles/same named declarations with include ts with json api.js @@ -1,8 +1,8 @@ config: { - "include": [ - "*.ts" - ] + "include": [ + "*.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -45,32 +45,32 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.d.ts", - "c:/dev/b.ts", - "c:/dev/m.ts", - "c:/dev/n.ts", - "c:/dev/o.ts", - "c:/dev/x.d.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "*.ts" + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.d.ts", + "c:/dev/b.ts", + "c:/dev/m.ts", + "c:/dev/n.ts", + "c:/dev/o.ts", + "c:/dev/x.d.ts" ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "*.ts" + ], + "compileOnSave": false + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.None" + }, "compileOnSave": false - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.None" - }, - "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/same named declarations with include ts with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/same named declarations with include ts with jsonSourceFile api.js index 6f79d59013866..fd29b9899b0e1 100644 --- a/tests/baselines/reference/config/matchFiles/same named declarations with include ts with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/same named declarations with include ts with jsonSourceFile api.js @@ -1,8 +1,8 @@ config: { - "include": [ - "*.ts" - ] + "include": [ + "*.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -45,31 +45,31 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.d.ts", - "c:/dev/b.ts", - "c:/dev/m.ts", - "c:/dev/n.ts", - "c:/dev/o.ts", - "c:/dev/x.d.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "*.ts" - ] - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.None" - }, - "compileOnSave": false + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.d.ts", + "c:/dev/b.ts", + "c:/dev/m.ts", + "c:/dev/n.ts", + "c:/dev/o.ts", + "c:/dev/x.d.ts" + ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "*.ts" + ] + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.None" + }, + "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/same named declarations with include tsx dts with json api.js b/tests/baselines/reference/config/matchFiles/same named declarations with include tsx dts with json api.js index 2919f010225ca..46e52a49db285 100644 --- a/tests/baselines/reference/config/matchFiles/same named declarations with include tsx dts with json api.js +++ b/tests/baselines/reference/config/matchFiles/same named declarations with include tsx dts with json api.js @@ -1,9 +1,9 @@ config: { - "include": [ - "*.tsx", - "*.d.ts" - ] + "include": [ + "*.tsx", + "*.d.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -46,33 +46,33 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.tsx", - "c:/dev/b.tsx", - "c:/dev/c.tsx", - "c:/dev/n.tsx", - "c:/dev/m.d.ts", - "c:/dev/x.d.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "*.tsx", - "*.d.ts" + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.tsx", + "c:/dev/b.tsx", + "c:/dev/c.tsx", + "c:/dev/n.tsx", + "c:/dev/m.d.ts", + "c:/dev/x.d.ts" ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "*.tsx", + "*.d.ts" + ], + "compileOnSave": false + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.None" + }, "compileOnSave": false - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.None" - }, - "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/same named declarations with include tsx dts with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/same named declarations with include tsx dts with jsonSourceFile api.js index c995a1aaf2909..92a08c8a46dd7 100644 --- a/tests/baselines/reference/config/matchFiles/same named declarations with include tsx dts with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/same named declarations with include tsx dts with jsonSourceFile api.js @@ -1,9 +1,9 @@ config: { - "include": [ - "*.tsx", - "*.d.ts" - ] + "include": [ + "*.tsx", + "*.d.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -46,32 +46,32 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.tsx", - "c:/dev/b.tsx", - "c:/dev/c.tsx", - "c:/dev/n.tsx", - "c:/dev/m.d.ts", - "c:/dev/x.d.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "*.tsx", - "*.d.ts" - ] - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.None" - }, - "compileOnSave": false + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.tsx", + "c:/dev/b.tsx", + "c:/dev/c.tsx", + "c:/dev/n.tsx", + "c:/dev/m.d.ts", + "c:/dev/x.d.ts" + ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "*.tsx", + "*.d.ts" + ] + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.None" + }, + "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/same named declarations with include tsx ts with json api.js b/tests/baselines/reference/config/matchFiles/same named declarations with include tsx ts with json api.js index 464b696cc30ac..3f26a449e4c82 100644 --- a/tests/baselines/reference/config/matchFiles/same named declarations with include tsx ts with json api.js +++ b/tests/baselines/reference/config/matchFiles/same named declarations with include tsx ts with json api.js @@ -1,9 +1,9 @@ config: { - "include": [ - "*.tsx", - "*.ts" - ] + "include": [ + "*.tsx", + "*.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -46,34 +46,34 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.tsx", - "c:/dev/c.tsx", - "c:/dev/b.ts", - "c:/dev/m.ts", - "c:/dev/n.ts", - "c:/dev/o.ts", - "c:/dev/x.d.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "*.tsx", - "*.ts" + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.tsx", + "c:/dev/c.tsx", + "c:/dev/b.ts", + "c:/dev/m.ts", + "c:/dev/n.ts", + "c:/dev/o.ts", + "c:/dev/x.d.ts" ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "*.tsx", + "*.ts" + ], + "compileOnSave": false + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.None" + }, "compileOnSave": false - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.None" - }, - "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/same named declarations with include tsx ts with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/same named declarations with include tsx ts with jsonSourceFile api.js index dee8f48844ace..1629813a93509 100644 --- a/tests/baselines/reference/config/matchFiles/same named declarations with include tsx ts with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/same named declarations with include tsx ts with jsonSourceFile api.js @@ -1,9 +1,9 @@ config: { - "include": [ - "*.tsx", - "*.ts" - ] + "include": [ + "*.tsx", + "*.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -46,33 +46,33 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.tsx", - "c:/dev/c.tsx", - "c:/dev/b.ts", - "c:/dev/m.ts", - "c:/dev/n.ts", - "c:/dev/o.ts", - "c:/dev/x.d.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "*.tsx", - "*.ts" - ] - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.None" - }, - "compileOnSave": false + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.tsx", + "c:/dev/c.tsx", + "c:/dev/b.ts", + "c:/dev/m.ts", + "c:/dev/n.ts", + "c:/dev/o.ts", + "c:/dev/x.d.ts" + ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "*.tsx", + "*.ts" + ] + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.None" + }, + "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/same named declarations with include tsx with json api.js b/tests/baselines/reference/config/matchFiles/same named declarations with include tsx with json api.js index 371e54a4fc176..f9b99b4605da4 100644 --- a/tests/baselines/reference/config/matchFiles/same named declarations with include tsx with json api.js +++ b/tests/baselines/reference/config/matchFiles/same named declarations with include tsx with json api.js @@ -1,8 +1,8 @@ config: { - "include": [ - "*.tsx" - ] + "include": [ + "*.tsx" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -45,30 +45,30 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.tsx", - "c:/dev/b.tsx", - "c:/dev/c.tsx", - "c:/dev/n.tsx" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "*.tsx" + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.tsx", + "c:/dev/b.tsx", + "c:/dev/c.tsx", + "c:/dev/n.tsx" ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "*.tsx" + ], + "compileOnSave": false + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.None" + }, "compileOnSave": false - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.None" - }, - "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/same named declarations with include tsx with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/same named declarations with include tsx with jsonSourceFile api.js index fa4240db4d5b9..83928cdd301f0 100644 --- a/tests/baselines/reference/config/matchFiles/same named declarations with include tsx with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/same named declarations with include tsx with jsonSourceFile api.js @@ -1,8 +1,8 @@ config: { - "include": [ - "*.tsx" - ] + "include": [ + "*.tsx" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -45,29 +45,29 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.tsx", - "c:/dev/b.tsx", - "c:/dev/c.tsx", - "c:/dev/n.tsx" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "*.tsx" - ] - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.None" - }, - "compileOnSave": false + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.tsx", + "c:/dev/b.tsx", + "c:/dev/c.tsx", + "c:/dev/n.tsx" + ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "*.tsx" + ] + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.None" + }, + "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/star matches only ts files with json api.js b/tests/baselines/reference/config/matchFiles/star matches only ts files with json api.js index 45e0d5ba4966e..5bb1fcf7b9285 100644 --- a/tests/baselines/reference/config/matchFiles/star matches only ts files with json api.js +++ b/tests/baselines/reference/config/matchFiles/star matches only ts files with json api.js @@ -1,8 +1,8 @@ config: { - "include": [ - "*" - ] + "include": [ + "*" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -78,29 +78,29 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.ts", - "c:/dev/b.ts", - "c:/dev/c.d.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "*" + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.ts", + "c:/dev/b.ts", + "c:/dev/c.d.ts" ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "*" + ], + "compileOnSave": false + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.None" + }, "compileOnSave": false - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.None" - }, - "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/star matches only ts files with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/star matches only ts files with jsonSourceFile api.js index ce3a1bd8a0fbc..fae6434f5682f 100644 --- a/tests/baselines/reference/config/matchFiles/star matches only ts files with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/star matches only ts files with jsonSourceFile api.js @@ -1,8 +1,8 @@ config: { - "include": [ - "*" - ] + "include": [ + "*" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -78,28 +78,28 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.ts", - "c:/dev/b.ts", - "c:/dev/c.d.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "*" - ] - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.None" - }, - "compileOnSave": false + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.ts", + "c:/dev/b.ts", + "c:/dev/c.d.ts" + ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "*" + ] + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.None" + }, + "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/that are not explicitly included with json api.js b/tests/baselines/reference/config/matchFiles/that are not explicitly included with json api.js index c3f5e3710bd9a..a542fe7d5ce87 100644 --- a/tests/baselines/reference/config/matchFiles/that are not explicitly included with json api.js +++ b/tests/baselines/reference/config/matchFiles/that are not explicitly included with json api.js @@ -1,9 +1,9 @@ config: { - "include": [ - "x/**/*", - "w/*/*" - ] + "include": [ + "x/**/*", + "w/*/*" + ] } Fs:: //// [c:/dev/.z/.b.ts] @@ -34,30 +34,30 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/x/d.ts", - "c:/dev/x/y/d.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "x/**/*", - "w/*/*" + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/x/d.ts", + "c:/dev/x/y/d.ts" ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "x/**/*", + "w/*/*" + ], + "compileOnSave": false + }, + "wildcardDirectories": { + "c:/dev/x": "WatchDirectoryFlags.Recursive", + "c:/dev/w": "WatchDirectoryFlags.Recursive" + }, "compileOnSave": false - }, - "wildcardDirectories": { - "c:/dev/x": "WatchDirectoryFlags.Recursive", - "c:/dev/w": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/that are not explicitly included with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/that are not explicitly included with jsonSourceFile api.js index 0f817bc7e4599..9a558920241c1 100644 --- a/tests/baselines/reference/config/matchFiles/that are not explicitly included with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/that are not explicitly included with jsonSourceFile api.js @@ -1,9 +1,9 @@ config: { - "include": [ - "x/**/*", - "w/*/*" - ] + "include": [ + "x/**/*", + "w/*/*" + ] } Fs:: //// [c:/dev/.z/.b.ts] @@ -34,29 +34,29 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/x/d.ts", - "c:/dev/x/y/d.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "x/**/*", - "w/*/*" - ] - }, - "wildcardDirectories": { - "c:/dev/x": "WatchDirectoryFlags.Recursive", - "c:/dev/w": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/x/d.ts", + "c:/dev/x/y/d.ts" + ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "x/**/*", + "w/*/*" + ] + }, + "wildcardDirectories": { + "c:/dev/x": "WatchDirectoryFlags.Recursive", + "c:/dev/w": "WatchDirectoryFlags.Recursive" + }, + "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/when recursive symlinked directories are present with json api.js b/tests/baselines/reference/config/matchFiles/when recursive symlinked directories are present with json api.js index 20c4978089449..3824ec23e86c0 100644 --- a/tests/baselines/reference/config/matchFiles/when recursive symlinked directories are present with json api.js +++ b/tests/baselines/reference/config/matchFiles/when recursive symlinked directories are present with json api.js @@ -11,24 +11,24 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/index.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/index.ts" + ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "compileOnSave": false + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.Recursive" + }, "compileOnSave": false - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/when recursive symlinked directories are present with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/when recursive symlinked directories are present with jsonSourceFile api.js index f8fea8e6e3e86..22c5f39277736 100644 --- a/tests/baselines/reference/config/matchFiles/when recursive symlinked directories are present with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/when recursive symlinked directories are present with jsonSourceFile api.js @@ -11,22 +11,22 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/index.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": {}, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/index.ts" + ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": {}, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.Recursive" + }, + "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/with case sensitive exclude with json api.js b/tests/baselines/reference/config/matchFiles/with case sensitive exclude with json api.js index 893aa2d70bb11..cdd1e492edc8f 100644 --- a/tests/baselines/reference/config/matchFiles/with case sensitive exclude with json api.js +++ b/tests/baselines/reference/config/matchFiles/with case sensitive exclude with json api.js @@ -1,11 +1,11 @@ config: { - "include": [ - "B.ts" - ], - "exclude": [ - "**/b.ts" - ] + "include": [ + "B.ts" + ], + "exclude": [ + "**/b.ts" + ] } Fs:: //// [/dev/A.ts] @@ -75,26 +75,26 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "B.ts" - ], - "exclude": [ - "**/b.ts" - ], + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "B.ts" + ], + "exclude": [ + "**/b.ts" + ], + "compileOnSave": false + }, + "wildcardDirectories": {}, "compileOnSave": false - }, - "wildcardDirectories": {}, - "compileOnSave": false } Errors:: error TS18003: No inputs were found in config file 'c:/dev/tsconfig.json'. Specified 'include' paths were '["B.ts"]' and 'exclude' paths were '["**/b.ts"]'. diff --git a/tests/baselines/reference/config/matchFiles/with case sensitive exclude with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/with case sensitive exclude with jsonSourceFile api.js index e7b11727e4aad..b42cc5c42ebf6 100644 --- a/tests/baselines/reference/config/matchFiles/with case sensitive exclude with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/with case sensitive exclude with jsonSourceFile api.js @@ -1,11 +1,11 @@ config: { - "include": [ - "B.ts" - ], - "exclude": [ - "**/b.ts" - ] + "include": [ + "B.ts" + ], + "exclude": [ + "**/b.ts" + ] } Fs:: //// [/dev/A.ts] @@ -75,25 +75,25 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "B.ts" - ], - "exclude": [ - "**/b.ts" - ] - }, - "wildcardDirectories": {}, - "compileOnSave": false + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "B.ts" + ], + "exclude": [ + "**/b.ts" + ] + }, + "wildcardDirectories": {}, + "compileOnSave": false } Errors:: error TS18003: No inputs were found in config file 'c:/dev/tsconfig.json'. Specified 'include' paths were '["B.ts"]' and 'exclude' paths were '["**/b.ts"]'. diff --git a/tests/baselines/reference/config/matchFiles/with common package folders and empty exclude with json api.js b/tests/baselines/reference/config/matchFiles/with common package folders and empty exclude with json api.js index 2f4f9bda3d342..3d7c0936b9c57 100644 --- a/tests/baselines/reference/config/matchFiles/with common package folders and empty exclude with json api.js +++ b/tests/baselines/reference/config/matchFiles/with common package folders and empty exclude with json api.js @@ -1,12 +1,12 @@ config: { - "include": [ - "a.ts", - "b.ts", - "node_modules/a.ts", - "bower_components/a.ts", - "jspm_packages/a.ts" - ] + "include": [ + "a.ts", + "b.ts", + "node_modules/a.ts", + "bower_components/a.ts", + "jspm_packages/a.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -37,33 +37,33 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.ts", - "c:/dev/b.ts", - "c:/dev/node_modules/a.ts", - "c:/dev/bower_components/a.ts", - "c:/dev/jspm_packages/a.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "a.ts", - "b.ts", - "node_modules/a.ts", - "bower_components/a.ts", - "jspm_packages/a.ts" + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.ts", + "c:/dev/b.ts", + "c:/dev/node_modules/a.ts", + "c:/dev/bower_components/a.ts", + "c:/dev/jspm_packages/a.ts" ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "a.ts", + "b.ts", + "node_modules/a.ts", + "bower_components/a.ts", + "jspm_packages/a.ts" + ], + "compileOnSave": false + }, + "wildcardDirectories": {}, "compileOnSave": false - }, - "wildcardDirectories": {}, - "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/with common package folders and empty exclude with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/with common package folders and empty exclude with jsonSourceFile api.js index 544280641d1e8..c5ebf7c3b87b4 100644 --- a/tests/baselines/reference/config/matchFiles/with common package folders and empty exclude with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/with common package folders and empty exclude with jsonSourceFile api.js @@ -1,12 +1,12 @@ config: { - "include": [ - "a.ts", - "b.ts", - "node_modules/a.ts", - "bower_components/a.ts", - "jspm_packages/a.ts" - ] + "include": [ + "a.ts", + "b.ts", + "node_modules/a.ts", + "bower_components/a.ts", + "jspm_packages/a.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -37,32 +37,32 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.ts", - "c:/dev/b.ts", - "c:/dev/node_modules/a.ts", - "c:/dev/bower_components/a.ts", - "c:/dev/jspm_packages/a.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "a.ts", - "b.ts", - "node_modules/a.ts", - "bower_components/a.ts", - "jspm_packages/a.ts" - ] - }, - "wildcardDirectories": {}, - "compileOnSave": false + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.ts", + "c:/dev/b.ts", + "c:/dev/node_modules/a.ts", + "c:/dev/bower_components/a.ts", + "c:/dev/jspm_packages/a.ts" + ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "a.ts", + "b.ts", + "node_modules/a.ts", + "bower_components/a.ts", + "jspm_packages/a.ts" + ] + }, + "wildcardDirectories": {}, + "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/with common package folders and exclusions with json api.js b/tests/baselines/reference/config/matchFiles/with common package folders and exclusions with json api.js index be9925b06f450..5b0a80856757f 100644 --- a/tests/baselines/reference/config/matchFiles/with common package folders and exclusions with json api.js +++ b/tests/baselines/reference/config/matchFiles/with common package folders and exclusions with json api.js @@ -1,16 +1,16 @@ config: { - "include": [ - "a.ts", - "b.ts", - "node_modules/a.ts", - "bower_components/a.ts", - "jspm_packages/a.ts" - ], - "exclude": [ - "a.ts", - "b.ts" - ] + "include": [ + "a.ts", + "b.ts", + "node_modules/a.ts", + "bower_components/a.ts", + "jspm_packages/a.ts" + ], + "exclude": [ + "a.ts", + "b.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -41,35 +41,35 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/node_modules/a.ts", - "c:/dev/bower_components/a.ts", - "c:/dev/jspm_packages/a.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "a.ts", - "b.ts", - "node_modules/a.ts", - "bower_components/a.ts", - "jspm_packages/a.ts" - ], - "exclude": [ - "a.ts", - "b.ts" + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/node_modules/a.ts", + "c:/dev/bower_components/a.ts", + "c:/dev/jspm_packages/a.ts" ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "a.ts", + "b.ts", + "node_modules/a.ts", + "bower_components/a.ts", + "jspm_packages/a.ts" + ], + "exclude": [ + "a.ts", + "b.ts" + ], + "compileOnSave": false + }, + "wildcardDirectories": {}, "compileOnSave": false - }, - "wildcardDirectories": {}, - "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/with common package folders and exclusions with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/with common package folders and exclusions with jsonSourceFile api.js index b01acd4b9f94e..2ab73bedde96f 100644 --- a/tests/baselines/reference/config/matchFiles/with common package folders and exclusions with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/with common package folders and exclusions with jsonSourceFile api.js @@ -1,16 +1,16 @@ config: { - "include": [ - "a.ts", - "b.ts", - "node_modules/a.ts", - "bower_components/a.ts", - "jspm_packages/a.ts" - ], - "exclude": [ - "a.ts", - "b.ts" - ] + "include": [ + "a.ts", + "b.ts", + "node_modules/a.ts", + "bower_components/a.ts", + "jspm_packages/a.ts" + ], + "exclude": [ + "a.ts", + "b.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -41,34 +41,34 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/node_modules/a.ts", - "c:/dev/bower_components/a.ts", - "c:/dev/jspm_packages/a.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "a.ts", - "b.ts", - "node_modules/a.ts", - "bower_components/a.ts", - "jspm_packages/a.ts" + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/node_modules/a.ts", + "c:/dev/bower_components/a.ts", + "c:/dev/jspm_packages/a.ts" ], - "exclude": [ - "a.ts", - "b.ts" - ] - }, - "wildcardDirectories": {}, - "compileOnSave": false + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "a.ts", + "b.ts", + "node_modules/a.ts", + "bower_components/a.ts", + "jspm_packages/a.ts" + ], + "exclude": [ + "a.ts", + "b.ts" + ] + }, + "wildcardDirectories": {}, + "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/with common package folders and no exclusions with json api.js b/tests/baselines/reference/config/matchFiles/with common package folders and no exclusions with json api.js index 2f4f9bda3d342..3d7c0936b9c57 100644 --- a/tests/baselines/reference/config/matchFiles/with common package folders and no exclusions with json api.js +++ b/tests/baselines/reference/config/matchFiles/with common package folders and no exclusions with json api.js @@ -1,12 +1,12 @@ config: { - "include": [ - "a.ts", - "b.ts", - "node_modules/a.ts", - "bower_components/a.ts", - "jspm_packages/a.ts" - ] + "include": [ + "a.ts", + "b.ts", + "node_modules/a.ts", + "bower_components/a.ts", + "jspm_packages/a.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -37,33 +37,33 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.ts", - "c:/dev/b.ts", - "c:/dev/node_modules/a.ts", - "c:/dev/bower_components/a.ts", - "c:/dev/jspm_packages/a.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "a.ts", - "b.ts", - "node_modules/a.ts", - "bower_components/a.ts", - "jspm_packages/a.ts" + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.ts", + "c:/dev/b.ts", + "c:/dev/node_modules/a.ts", + "c:/dev/bower_components/a.ts", + "c:/dev/jspm_packages/a.ts" ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "a.ts", + "b.ts", + "node_modules/a.ts", + "bower_components/a.ts", + "jspm_packages/a.ts" + ], + "compileOnSave": false + }, + "wildcardDirectories": {}, "compileOnSave": false - }, - "wildcardDirectories": {}, - "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/with common package folders and no exclusions with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/with common package folders and no exclusions with jsonSourceFile api.js index 544280641d1e8..c5ebf7c3b87b4 100644 --- a/tests/baselines/reference/config/matchFiles/with common package folders and no exclusions with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/with common package folders and no exclusions with jsonSourceFile api.js @@ -1,12 +1,12 @@ config: { - "include": [ - "a.ts", - "b.ts", - "node_modules/a.ts", - "bower_components/a.ts", - "jspm_packages/a.ts" - ] + "include": [ + "a.ts", + "b.ts", + "node_modules/a.ts", + "bower_components/a.ts", + "jspm_packages/a.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -37,32 +37,32 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.ts", - "c:/dev/b.ts", - "c:/dev/node_modules/a.ts", - "c:/dev/bower_components/a.ts", - "c:/dev/jspm_packages/a.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "a.ts", - "b.ts", - "node_modules/a.ts", - "bower_components/a.ts", - "jspm_packages/a.ts" - ] - }, - "wildcardDirectories": {}, - "compileOnSave": false + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.ts", + "c:/dev/b.ts", + "c:/dev/node_modules/a.ts", + "c:/dev/bower_components/a.ts", + "c:/dev/jspm_packages/a.ts" + ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "a.ts", + "b.ts", + "node_modules/a.ts", + "bower_components/a.ts", + "jspm_packages/a.ts" + ] + }, + "wildcardDirectories": {}, + "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/with defaults with json api.js b/tests/baselines/reference/config/matchFiles/with defaults with json api.js index a91a4e7b5a2cb..fb2aec6b856d0 100644 --- a/tests/baselines/reference/config/matchFiles/with defaults with json api.js +++ b/tests/baselines/reference/config/matchFiles/with defaults with json api.js @@ -29,26 +29,26 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.ts", - "c:/dev/b.ts", - "c:/dev/x/a.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.ts", + "c:/dev/b.ts", + "c:/dev/x/a.ts" + ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "compileOnSave": false + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.Recursive" + }, "compileOnSave": false - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/with defaults with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/with defaults with jsonSourceFile api.js index f4101c99717af..a9e8134876f81 100644 --- a/tests/baselines/reference/config/matchFiles/with defaults with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/with defaults with jsonSourceFile api.js @@ -29,24 +29,24 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.ts", - "c:/dev/b.ts", - "c:/dev/x/a.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": {}, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.ts", + "c:/dev/b.ts", + "c:/dev/x/a.ts" + ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": {}, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.Recursive" + }, + "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/with jsx=none, allowJs=false with json api.js b/tests/baselines/reference/config/matchFiles/with jsx=none, allowJs=false with json api.js index ff009e69f0cf0..879abeee3aaec 100644 --- a/tests/baselines/reference/config/matchFiles/with jsx=none, allowJs=false with json api.js +++ b/tests/baselines/reference/config/matchFiles/with jsx=none, allowJs=false with json api.js @@ -1,8 +1,8 @@ config: { - "compilerOptions": { - "allowJs": false - } + "compilerOptions": { + "allowJs": false + } } Fs:: //// [c:/dev/a.d.ts] @@ -42,30 +42,30 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "allowJs": false, - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.ts", - "c:/dev/b.tsx", - "c:/dev/c.tsx" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "compilerOptions": { - "allowJs": false + "options": { + "allowJs": false, + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.ts", + "c:/dev/b.tsx", + "c:/dev/c.tsx" + ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "compilerOptions": { + "allowJs": false + }, + "compileOnSave": false + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.Recursive" }, "compileOnSave": false - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/with jsx=none, allowJs=false with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/with jsx=none, allowJs=false with jsonSourceFile api.js index 9ffe78421310a..3c5a5379091f2 100644 --- a/tests/baselines/reference/config/matchFiles/with jsx=none, allowJs=false with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/with jsx=none, allowJs=false with jsonSourceFile api.js @@ -1,8 +1,8 @@ config: { - "compilerOptions": { - "allowJs": false - } + "compilerOptions": { + "allowJs": false + } } Fs:: //// [c:/dev/a.d.ts] @@ -42,29 +42,29 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "allowJs": false, - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.ts", - "c:/dev/b.tsx", - "c:/dev/c.tsx" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "compilerOptions": { - "allowJs": false - } - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false + "options": { + "allowJs": false, + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.ts", + "c:/dev/b.tsx", + "c:/dev/c.tsx" + ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "compilerOptions": { + "allowJs": false + } + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.Recursive" + }, + "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/with jsx=none, allowJs=true with json api.js b/tests/baselines/reference/config/matchFiles/with jsx=none, allowJs=true with json api.js index fbcef69799d9e..7b625f9a8d1c3 100644 --- a/tests/baselines/reference/config/matchFiles/with jsx=none, allowJs=true with json api.js +++ b/tests/baselines/reference/config/matchFiles/with jsx=none, allowJs=true with json api.js @@ -1,8 +1,8 @@ config: { - "compilerOptions": { - "allowJs": true - } + "compilerOptions": { + "allowJs": true + } } Fs:: //// [c:/dev/a.d.ts] @@ -42,32 +42,32 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "allowJs": true, - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.ts", - "c:/dev/b.tsx", - "c:/dev/c.tsx", - "c:/dev/d.js", - "c:/dev/e.jsx" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "compilerOptions": { - "allowJs": true + "options": { + "allowJs": true, + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.ts", + "c:/dev/b.tsx", + "c:/dev/c.tsx", + "c:/dev/d.js", + "c:/dev/e.jsx" + ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "compilerOptions": { + "allowJs": true + }, + "compileOnSave": false + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.Recursive" }, "compileOnSave": false - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/with jsx=none, allowJs=true with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/with jsx=none, allowJs=true with jsonSourceFile api.js index fab75bbcc11db..b90f9c5206343 100644 --- a/tests/baselines/reference/config/matchFiles/with jsx=none, allowJs=true with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/with jsx=none, allowJs=true with jsonSourceFile api.js @@ -1,8 +1,8 @@ config: { - "compilerOptions": { - "allowJs": true - } + "compilerOptions": { + "allowJs": true + } } Fs:: //// [c:/dev/a.d.ts] @@ -42,31 +42,31 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "allowJs": true, - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.ts", - "c:/dev/b.tsx", - "c:/dev/c.tsx", - "c:/dev/d.js", - "c:/dev/e.jsx" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "compilerOptions": { - "allowJs": true - } - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false + "options": { + "allowJs": true, + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.ts", + "c:/dev/b.tsx", + "c:/dev/c.tsx", + "c:/dev/d.js", + "c:/dev/e.jsx" + ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "compilerOptions": { + "allowJs": true + } + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.Recursive" + }, + "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/with jsx=preserve, allowJs=false with json api.js b/tests/baselines/reference/config/matchFiles/with jsx=preserve, allowJs=false with json api.js index d9ec43f454afb..4349e4c540af8 100644 --- a/tests/baselines/reference/config/matchFiles/with jsx=preserve, allowJs=false with json api.js +++ b/tests/baselines/reference/config/matchFiles/with jsx=preserve, allowJs=false with json api.js @@ -1,9 +1,9 @@ config: { - "compilerOptions": { - "jsx": "preserve", - "allowJs": false - } + "compilerOptions": { + "jsx": "preserve", + "allowJs": false + } } Fs:: //// [c:/dev/a.d.ts] @@ -43,32 +43,32 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "jsx": 1, - "allowJs": false, - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.ts", - "c:/dev/b.tsx", - "c:/dev/c.tsx" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "compilerOptions": { - "jsx": "preserve", - "allowJs": false + "options": { + "jsx": 1, + "allowJs": false, + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.ts", + "c:/dev/b.tsx", + "c:/dev/c.tsx" + ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "compilerOptions": { + "jsx": "preserve", + "allowJs": false + }, + "compileOnSave": false + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.Recursive" }, "compileOnSave": false - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/with jsx=preserve, allowJs=false with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/with jsx=preserve, allowJs=false with jsonSourceFile api.js index a5d7cb2bd44cb..50045d299aabf 100644 --- a/tests/baselines/reference/config/matchFiles/with jsx=preserve, allowJs=false with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/with jsx=preserve, allowJs=false with jsonSourceFile api.js @@ -1,9 +1,9 @@ config: { - "compilerOptions": { - "jsx": "preserve", - "allowJs": false - } + "compilerOptions": { + "jsx": "preserve", + "allowJs": false + } } Fs:: //// [c:/dev/a.d.ts] @@ -43,31 +43,31 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "jsx": 1, - "allowJs": false, - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.ts", - "c:/dev/b.tsx", - "c:/dev/c.tsx" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "compilerOptions": { - "jsx": "preserve", - "allowJs": false - } - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false + "options": { + "jsx": 1, + "allowJs": false, + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.ts", + "c:/dev/b.tsx", + "c:/dev/c.tsx" + ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "compilerOptions": { + "jsx": "preserve", + "allowJs": false + } + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.Recursive" + }, + "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/with jsx=preserve, allowJs=true with json api.js b/tests/baselines/reference/config/matchFiles/with jsx=preserve, allowJs=true with json api.js index 99c17534127e6..e10d47e53cce5 100644 --- a/tests/baselines/reference/config/matchFiles/with jsx=preserve, allowJs=true with json api.js +++ b/tests/baselines/reference/config/matchFiles/with jsx=preserve, allowJs=true with json api.js @@ -1,9 +1,9 @@ config: { - "compilerOptions": { - "jsx": "preserve", - "allowJs": true - } + "compilerOptions": { + "jsx": "preserve", + "allowJs": true + } } Fs:: //// [c:/dev/a.d.ts] @@ -43,34 +43,34 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "jsx": 1, - "allowJs": true, - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.ts", - "c:/dev/b.tsx", - "c:/dev/c.tsx", - "c:/dev/d.js", - "c:/dev/e.jsx" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "compilerOptions": { - "jsx": "preserve", - "allowJs": true + "options": { + "jsx": 1, + "allowJs": true, + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.ts", + "c:/dev/b.tsx", + "c:/dev/c.tsx", + "c:/dev/d.js", + "c:/dev/e.jsx" + ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "compilerOptions": { + "jsx": "preserve", + "allowJs": true + }, + "compileOnSave": false + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.Recursive" }, "compileOnSave": false - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/with jsx=preserve, allowJs=true with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/with jsx=preserve, allowJs=true with jsonSourceFile api.js index ecd1e44fde157..46562aec81b42 100644 --- a/tests/baselines/reference/config/matchFiles/with jsx=preserve, allowJs=true with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/with jsx=preserve, allowJs=true with jsonSourceFile api.js @@ -1,9 +1,9 @@ config: { - "compilerOptions": { - "jsx": "preserve", - "allowJs": true - } + "compilerOptions": { + "jsx": "preserve", + "allowJs": true + } } Fs:: //// [c:/dev/a.d.ts] @@ -43,33 +43,33 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "jsx": 1, - "allowJs": true, - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.ts", - "c:/dev/b.tsx", - "c:/dev/c.tsx", - "c:/dev/d.js", - "c:/dev/e.jsx" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "compilerOptions": { - "jsx": "preserve", - "allowJs": true - } - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false + "options": { + "jsx": 1, + "allowJs": true, + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.ts", + "c:/dev/b.tsx", + "c:/dev/c.tsx", + "c:/dev/d.js", + "c:/dev/e.jsx" + ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "compilerOptions": { + "jsx": "preserve", + "allowJs": true + } + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.Recursive" + }, + "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/with jsx=react-native, allowJs=false with json api.js b/tests/baselines/reference/config/matchFiles/with jsx=react-native, allowJs=false with json api.js index e74950607a648..62111c7a4e7d1 100644 --- a/tests/baselines/reference/config/matchFiles/with jsx=react-native, allowJs=false with json api.js +++ b/tests/baselines/reference/config/matchFiles/with jsx=react-native, allowJs=false with json api.js @@ -1,9 +1,9 @@ config: { - "compilerOptions": { - "jsx": "react-native", - "allowJs": false - } + "compilerOptions": { + "jsx": "react-native", + "allowJs": false + } } Fs:: //// [c:/dev/a.d.ts] @@ -43,32 +43,32 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "jsx": 3, - "allowJs": false, - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.ts", - "c:/dev/b.tsx", - "c:/dev/c.tsx" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "compilerOptions": { - "jsx": "react-native", - "allowJs": false + "options": { + "jsx": 3, + "allowJs": false, + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.ts", + "c:/dev/b.tsx", + "c:/dev/c.tsx" + ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "compilerOptions": { + "jsx": "react-native", + "allowJs": false + }, + "compileOnSave": false + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.Recursive" }, "compileOnSave": false - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/with jsx=react-native, allowJs=false with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/with jsx=react-native, allowJs=false with jsonSourceFile api.js index 8148573f9ef46..8e64e1f352177 100644 --- a/tests/baselines/reference/config/matchFiles/with jsx=react-native, allowJs=false with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/with jsx=react-native, allowJs=false with jsonSourceFile api.js @@ -1,9 +1,9 @@ config: { - "compilerOptions": { - "jsx": "react-native", - "allowJs": false - } + "compilerOptions": { + "jsx": "react-native", + "allowJs": false + } } Fs:: //// [c:/dev/a.d.ts] @@ -43,31 +43,31 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "jsx": 3, - "allowJs": false, - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.ts", - "c:/dev/b.tsx", - "c:/dev/c.tsx" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "compilerOptions": { - "jsx": "react-native", - "allowJs": false - } - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false + "options": { + "jsx": 3, + "allowJs": false, + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.ts", + "c:/dev/b.tsx", + "c:/dev/c.tsx" + ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "compilerOptions": { + "jsx": "react-native", + "allowJs": false + } + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.Recursive" + }, + "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/with jsx=react-native, allowJs=true with json api.js b/tests/baselines/reference/config/matchFiles/with jsx=react-native, allowJs=true with json api.js index 46acb795c5096..89e204db2622a 100644 --- a/tests/baselines/reference/config/matchFiles/with jsx=react-native, allowJs=true with json api.js +++ b/tests/baselines/reference/config/matchFiles/with jsx=react-native, allowJs=true with json api.js @@ -1,9 +1,9 @@ config: { - "compilerOptions": { - "jsx": "react-native", - "allowJs": true - } + "compilerOptions": { + "jsx": "react-native", + "allowJs": true + } } Fs:: //// [c:/dev/a.d.ts] @@ -43,34 +43,34 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "jsx": 3, - "allowJs": true, - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.ts", - "c:/dev/b.tsx", - "c:/dev/c.tsx", - "c:/dev/d.js", - "c:/dev/e.jsx" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "compilerOptions": { - "jsx": "react-native", - "allowJs": true + "options": { + "jsx": 3, + "allowJs": true, + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.ts", + "c:/dev/b.tsx", + "c:/dev/c.tsx", + "c:/dev/d.js", + "c:/dev/e.jsx" + ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "compilerOptions": { + "jsx": "react-native", + "allowJs": true + }, + "compileOnSave": false + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.Recursive" }, "compileOnSave": false - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/with jsx=react-native, allowJs=true with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/with jsx=react-native, allowJs=true with jsonSourceFile api.js index c53d583a5e7bc..8136cd662b760 100644 --- a/tests/baselines/reference/config/matchFiles/with jsx=react-native, allowJs=true with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/with jsx=react-native, allowJs=true with jsonSourceFile api.js @@ -1,9 +1,9 @@ config: { - "compilerOptions": { - "jsx": "react-native", - "allowJs": true - } + "compilerOptions": { + "jsx": "react-native", + "allowJs": true + } } Fs:: //// [c:/dev/a.d.ts] @@ -43,33 +43,33 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "jsx": 3, - "allowJs": true, - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.ts", - "c:/dev/b.tsx", - "c:/dev/c.tsx", - "c:/dev/d.js", - "c:/dev/e.jsx" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "compilerOptions": { - "jsx": "react-native", - "allowJs": true - } - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false + "options": { + "jsx": 3, + "allowJs": true, + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.ts", + "c:/dev/b.tsx", + "c:/dev/c.tsx", + "c:/dev/d.js", + "c:/dev/e.jsx" + ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "compilerOptions": { + "jsx": "react-native", + "allowJs": true + } + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.Recursive" + }, + "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/with literal excludes with json api.js b/tests/baselines/reference/config/matchFiles/with literal excludes with json api.js index 5440c5aa65cf7..28156e0c5b845 100644 --- a/tests/baselines/reference/config/matchFiles/with literal excludes with json api.js +++ b/tests/baselines/reference/config/matchFiles/with literal excludes with json api.js @@ -1,12 +1,12 @@ config: { - "include": [ - "a.ts", - "b.ts" - ], - "exclude": [ - "b.ts" - ] + "include": [ + "a.ts", + "b.ts" + ], + "exclude": [ + "b.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -82,29 +82,29 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "a.ts", - "b.ts" - ], - "exclude": [ - "b.ts" + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.ts" ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "a.ts", + "b.ts" + ], + "exclude": [ + "b.ts" + ], + "compileOnSave": false + }, + "wildcardDirectories": {}, "compileOnSave": false - }, - "wildcardDirectories": {}, - "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/with literal excludes with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/with literal excludes with jsonSourceFile api.js index 5c8401da57e47..e87915cc5cd0c 100644 --- a/tests/baselines/reference/config/matchFiles/with literal excludes with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/with literal excludes with jsonSourceFile api.js @@ -1,12 +1,12 @@ config: { - "include": [ - "a.ts", - "b.ts" - ], - "exclude": [ - "b.ts" - ] + "include": [ + "a.ts", + "b.ts" + ], + "exclude": [ + "b.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -82,28 +82,28 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "a.ts", - "b.ts" + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.ts" ], - "exclude": [ - "b.ts" - ] - }, - "wildcardDirectories": {}, - "compileOnSave": false + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "a.ts", + "b.ts" + ], + "exclude": [ + "b.ts" + ] + }, + "wildcardDirectories": {}, + "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/with missing files are excluded with literal include list with json api.js b/tests/baselines/reference/config/matchFiles/with missing files are excluded with literal include list with json api.js index b067af459a636..832130f9163b2 100644 --- a/tests/baselines/reference/config/matchFiles/with missing files are excluded with literal include list with json api.js +++ b/tests/baselines/reference/config/matchFiles/with missing files are excluded with literal include list with json api.js @@ -1,9 +1,9 @@ config: { - "include": [ - "z.ts", - "x.ts" - ] + "include": [ + "z.ts", + "x.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -79,24 +79,24 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "z.ts", - "x.ts" - ], + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "z.ts", + "x.ts" + ], + "compileOnSave": false + }, + "wildcardDirectories": {}, "compileOnSave": false - }, - "wildcardDirectories": {}, - "compileOnSave": false } Errors:: error TS18003: No inputs were found in config file 'c:/dev/tsconfig.json'. Specified 'include' paths were '["z.ts","x.ts"]' and 'exclude' paths were '[]'. diff --git a/tests/baselines/reference/config/matchFiles/with missing files are excluded with literal include list with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/with missing files are excluded with literal include list with jsonSourceFile api.js index f534765db3fb8..f377ecb269377 100644 --- a/tests/baselines/reference/config/matchFiles/with missing files are excluded with literal include list with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/with missing files are excluded with literal include list with jsonSourceFile api.js @@ -1,9 +1,9 @@ config: { - "include": [ - "z.ts", - "x.ts" - ] + "include": [ + "z.ts", + "x.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -79,23 +79,23 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "z.ts", - "x.ts" - ] - }, - "wildcardDirectories": {}, - "compileOnSave": false + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "z.ts", + "x.ts" + ] + }, + "wildcardDirectories": {}, + "compileOnSave": false } Errors:: error TS18003: No inputs were found in config file 'c:/dev/tsconfig.json'. Specified 'include' paths were '["z.ts","x.ts"]' and 'exclude' paths were '[]'. diff --git a/tests/baselines/reference/config/matchFiles/with missing files are excluded with wildcard include list with json api.js b/tests/baselines/reference/config/matchFiles/with missing files are excluded with wildcard include list with json api.js index bbf8b64c14ffc..dcbae2680b99c 100644 --- a/tests/baselines/reference/config/matchFiles/with missing files are excluded with wildcard include list with json api.js +++ b/tests/baselines/reference/config/matchFiles/with missing files are excluded with wildcard include list with json api.js @@ -1,8 +1,8 @@ config: { - "include": [ - "*/z.ts" - ] + "include": [ + "*/z.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -78,25 +78,25 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "*/z.ts" - ], + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "*/z.ts" + ], + "compileOnSave": false + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.Recursive" + }, "compileOnSave": false - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false } Errors:: error TS18003: No inputs were found in config file 'c:/dev/tsconfig.json'. Specified 'include' paths were '["*/z.ts"]' and 'exclude' paths were '[]'. diff --git a/tests/baselines/reference/config/matchFiles/with missing files are excluded with wildcard include list with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/with missing files are excluded with wildcard include list with jsonSourceFile api.js index 3396b3630e0f1..122c2fb058eb6 100644 --- a/tests/baselines/reference/config/matchFiles/with missing files are excluded with wildcard include list with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/with missing files are excluded with wildcard include list with jsonSourceFile api.js @@ -1,8 +1,8 @@ config: { - "include": [ - "*/z.ts" - ] + "include": [ + "*/z.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -78,24 +78,24 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "*/z.ts" - ] - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "*/z.ts" + ] + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.Recursive" + }, + "compileOnSave": false } Errors:: error TS18003: No inputs were found in config file 'c:/dev/tsconfig.json'. Specified 'include' paths were '["*/z.ts"]' and 'exclude' paths were '[]'. diff --git a/tests/baselines/reference/config/matchFiles/with multiple recursive directories with json api.js b/tests/baselines/reference/config/matchFiles/with multiple recursive directories with json api.js index 7c863e1c544fe..4181f905baa09 100644 --- a/tests/baselines/reference/config/matchFiles/with multiple recursive directories with json api.js +++ b/tests/baselines/reference/config/matchFiles/with multiple recursive directories with json api.js @@ -1,10 +1,10 @@ config: { - "include": [ - "x/y/**/a.ts", - "x/**/a.ts", - "z/**/a.ts" - ] + "include": [ + "x/y/**/a.ts", + "x/**/a.ts", + "z/**/a.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -80,32 +80,32 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/x/y/a.ts", - "c:/dev/x/a.ts", - "c:/dev/z/a.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "x/y/**/a.ts", - "x/**/a.ts", - "z/**/a.ts" + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/x/y/a.ts", + "c:/dev/x/a.ts", + "c:/dev/z/a.ts" ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "x/y/**/a.ts", + "x/**/a.ts", + "z/**/a.ts" + ], + "compileOnSave": false + }, + "wildcardDirectories": { + "c:/dev/x": "WatchDirectoryFlags.Recursive", + "c:/dev/z": "WatchDirectoryFlags.Recursive" + }, "compileOnSave": false - }, - "wildcardDirectories": { - "c:/dev/x": "WatchDirectoryFlags.Recursive", - "c:/dev/z": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/with multiple recursive directories with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/with multiple recursive directories with jsonSourceFile api.js index 0f79bd9898329..974ad145cc67d 100644 --- a/tests/baselines/reference/config/matchFiles/with multiple recursive directories with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/with multiple recursive directories with jsonSourceFile api.js @@ -1,10 +1,10 @@ config: { - "include": [ - "x/y/**/a.ts", - "x/**/a.ts", - "z/**/a.ts" - ] + "include": [ + "x/y/**/a.ts", + "x/**/a.ts", + "z/**/a.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -80,31 +80,31 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/x/y/a.ts", - "c:/dev/x/a.ts", - "c:/dev/z/a.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "x/y/**/a.ts", - "x/**/a.ts", - "z/**/a.ts" - ] - }, - "wildcardDirectories": { - "c:/dev/x": "WatchDirectoryFlags.Recursive", - "c:/dev/z": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/x/y/a.ts", + "c:/dev/x/a.ts", + "c:/dev/z/a.ts" + ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "x/y/**/a.ts", + "x/**/a.ts", + "z/**/a.ts" + ] + }, + "wildcardDirectories": { + "c:/dev/x": "WatchDirectoryFlags.Recursive", + "c:/dev/z": "WatchDirectoryFlags.Recursive" + }, + "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/with non .ts file extensions are excluded with json api.js b/tests/baselines/reference/config/matchFiles/with non .ts file extensions are excluded with json api.js index 0f84295e12d11..72f2adbdc6aed 100644 --- a/tests/baselines/reference/config/matchFiles/with non .ts file extensions are excluded with json api.js +++ b/tests/baselines/reference/config/matchFiles/with non .ts file extensions are excluded with json api.js @@ -1,9 +1,9 @@ config: { - "include": [ - "a.js", - "b.js" - ] + "include": [ + "a.js", + "b.js" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -79,24 +79,24 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "a.js", - "b.js" - ], + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "a.js", + "b.js" + ], + "compileOnSave": false + }, + "wildcardDirectories": {}, "compileOnSave": false - }, - "wildcardDirectories": {}, - "compileOnSave": false } Errors:: error TS18003: No inputs were found in config file 'c:/dev/tsconfig.json'. Specified 'include' paths were '["a.js","b.js"]' and 'exclude' paths were '[]'. diff --git a/tests/baselines/reference/config/matchFiles/with non .ts file extensions are excluded with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/with non .ts file extensions are excluded with jsonSourceFile api.js index 18c0e0efa9abd..09fb7029caa4d 100644 --- a/tests/baselines/reference/config/matchFiles/with non .ts file extensions are excluded with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/with non .ts file extensions are excluded with jsonSourceFile api.js @@ -1,9 +1,9 @@ config: { - "include": [ - "a.js", - "b.js" - ] + "include": [ + "a.js", + "b.js" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -79,23 +79,23 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "a.js", - "b.js" - ] - }, - "wildcardDirectories": {}, - "compileOnSave": false + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "a.js", + "b.js" + ] + }, + "wildcardDirectories": {}, + "compileOnSave": false } Errors:: error TS18003: No inputs were found in config file 'c:/dev/tsconfig.json'. Specified 'include' paths were '["a.js","b.js"]' and 'exclude' paths were '[]'. diff --git a/tests/baselines/reference/config/matchFiles/with recursive directory with json api.js b/tests/baselines/reference/config/matchFiles/with recursive directory with json api.js index db2d570e6cea5..402839080d990 100644 --- a/tests/baselines/reference/config/matchFiles/with recursive directory with json api.js +++ b/tests/baselines/reference/config/matchFiles/with recursive directory with json api.js @@ -1,8 +1,8 @@ config: { - "include": [ - "**/a.ts" - ] + "include": [ + "**/a.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -78,30 +78,30 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.ts", - "c:/dev/x/a.ts", - "c:/dev/x/y/a.ts", - "c:/dev/z/a.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "**/a.ts" + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.ts", + "c:/dev/x/a.ts", + "c:/dev/x/y/a.ts", + "c:/dev/z/a.ts" ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "**/a.ts" + ], + "compileOnSave": false + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.Recursive" + }, "compileOnSave": false - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/with recursive directory with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/with recursive directory with jsonSourceFile api.js index d2aedb139a5e8..222cdb50be2d8 100644 --- a/tests/baselines/reference/config/matchFiles/with recursive directory with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/with recursive directory with jsonSourceFile api.js @@ -1,8 +1,8 @@ config: { - "include": [ - "**/a.ts" - ] + "include": [ + "**/a.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -78,29 +78,29 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.ts", - "c:/dev/x/a.ts", - "c:/dev/x/y/a.ts", - "c:/dev/z/a.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "**/a.ts" - ] - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.ts", + "c:/dev/x/a.ts", + "c:/dev/x/y/a.ts", + "c:/dev/z/a.ts" + ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "**/a.ts" + ] + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.Recursive" + }, + "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/with recursive excludes with json api.js b/tests/baselines/reference/config/matchFiles/with recursive excludes with json api.js index fe44fe8130794..6719d92173c7e 100644 --- a/tests/baselines/reference/config/matchFiles/with recursive excludes with json api.js +++ b/tests/baselines/reference/config/matchFiles/with recursive excludes with json api.js @@ -1,16 +1,16 @@ config: { - "include": [ - "a.ts", - "b.ts", - "x/a.ts", - "x/b.ts", - "x/y/a.ts", - "x/y/b.ts" - ], - "exclude": [ - "**/b.ts" - ] + "include": [ + "a.ts", + "b.ts", + "x/a.ts", + "x/b.ts", + "x/y/a.ts", + "x/y/b.ts" + ], + "exclude": [ + "**/b.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -86,35 +86,35 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.ts", - "c:/dev/x/a.ts", - "c:/dev/x/y/a.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "a.ts", - "b.ts", - "x/a.ts", - "x/b.ts", - "x/y/a.ts", - "x/y/b.ts" - ], - "exclude": [ - "**/b.ts" + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.ts", + "c:/dev/x/a.ts", + "c:/dev/x/y/a.ts" ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "a.ts", + "b.ts", + "x/a.ts", + "x/b.ts", + "x/y/a.ts", + "x/y/b.ts" + ], + "exclude": [ + "**/b.ts" + ], + "compileOnSave": false + }, + "wildcardDirectories": {}, "compileOnSave": false - }, - "wildcardDirectories": {}, - "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/with recursive excludes with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/with recursive excludes with jsonSourceFile api.js index ba00ddf5f9f34..3552088a4aac1 100644 --- a/tests/baselines/reference/config/matchFiles/with recursive excludes with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/with recursive excludes with jsonSourceFile api.js @@ -1,16 +1,16 @@ config: { - "include": [ - "a.ts", - "b.ts", - "x/a.ts", - "x/b.ts", - "x/y/a.ts", - "x/y/b.ts" - ], - "exclude": [ - "**/b.ts" - ] + "include": [ + "a.ts", + "b.ts", + "x/a.ts", + "x/b.ts", + "x/y/a.ts", + "x/y/b.ts" + ], + "exclude": [ + "**/b.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -86,34 +86,34 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.ts", - "c:/dev/x/a.ts", - "c:/dev/x/y/a.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "a.ts", - "b.ts", - "x/a.ts", - "x/b.ts", - "x/y/a.ts", - "x/y/b.ts" + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.ts", + "c:/dev/x/a.ts", + "c:/dev/x/y/a.ts" ], - "exclude": [ - "**/b.ts" - ] - }, - "wildcardDirectories": {}, - "compileOnSave": false + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "a.ts", + "b.ts", + "x/a.ts", + "x/b.ts", + "x/y/a.ts", + "x/y/b.ts" + ], + "exclude": [ + "**/b.ts" + ] + }, + "wildcardDirectories": {}, + "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/with recursive wildcards that match directories with json api.js b/tests/baselines/reference/config/matchFiles/with recursive wildcards that match directories with json api.js index bc489887e96fb..411da86d786c1 100644 --- a/tests/baselines/reference/config/matchFiles/with recursive wildcards that match directories with json api.js +++ b/tests/baselines/reference/config/matchFiles/with recursive wildcards that match directories with json api.js @@ -1,8 +1,8 @@ config: { - "include": [ - "**/.*/*" - ] + "include": [ + "**/.*/*" + ] } Fs:: //// [c:/dev/.z/.b.ts] @@ -33,30 +33,30 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/.z/c.ts", - "c:/dev/g.min.js/.g/g.ts", - "c:/dev/w/.u/e.ts", - "c:/dev/x/.y/a.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "**/.*/*" + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/.z/c.ts", + "c:/dev/g.min.js/.g/g.ts", + "c:/dev/w/.u/e.ts", + "c:/dev/x/.y/a.ts" ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "**/.*/*" + ], + "compileOnSave": false + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.Recursive" + }, "compileOnSave": false - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/with recursive wildcards that match directories with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/with recursive wildcards that match directories with jsonSourceFile api.js index 949066398022a..995b8da037aea 100644 --- a/tests/baselines/reference/config/matchFiles/with recursive wildcards that match directories with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/with recursive wildcards that match directories with jsonSourceFile api.js @@ -1,8 +1,8 @@ config: { - "include": [ - "**/.*/*" - ] + "include": [ + "**/.*/*" + ] } Fs:: //// [c:/dev/.z/.b.ts] @@ -33,29 +33,29 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/.z/c.ts", - "c:/dev/g.min.js/.g/g.ts", - "c:/dev/w/.u/e.ts", - "c:/dev/x/.y/a.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "**/.*/*" - ] - }, - "wildcardDirectories": { - "c:/dev": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/.z/c.ts", + "c:/dev/g.min.js/.g/g.ts", + "c:/dev/w/.u/e.ts", + "c:/dev/x/.y/a.ts" + ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "**/.*/*" + ] + }, + "wildcardDirectories": { + "c:/dev": "WatchDirectoryFlags.Recursive" + }, + "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/with recursive wildcards that match nothing with json api.js b/tests/baselines/reference/config/matchFiles/with recursive wildcards that match nothing with json api.js index a2f4a468a14c2..635817aaf4582 100644 --- a/tests/baselines/reference/config/matchFiles/with recursive wildcards that match nothing with json api.js +++ b/tests/baselines/reference/config/matchFiles/with recursive wildcards that match nothing with json api.js @@ -1,9 +1,9 @@ config: { - "include": [ - "x/**/.y/*", - ".z/**/.*" - ] + "include": [ + "x/**/.y/*", + ".z/**/.*" + ] } Fs:: //// [c:/dev/.z/.b.ts] @@ -34,30 +34,30 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/x/.y/a.ts", - "c:/dev/.z/.b.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "x/**/.y/*", - ".z/**/.*" + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/x/.y/a.ts", + "c:/dev/.z/.b.ts" ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "x/**/.y/*", + ".z/**/.*" + ], + "compileOnSave": false + }, + "wildcardDirectories": { + "c:/dev/x": "WatchDirectoryFlags.Recursive", + "c:/dev/.z": "WatchDirectoryFlags.Recursive" + }, "compileOnSave": false - }, - "wildcardDirectories": { - "c:/dev/x": "WatchDirectoryFlags.Recursive", - "c:/dev/.z": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/with recursive wildcards that match nothing with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/with recursive wildcards that match nothing with jsonSourceFile api.js index e30f906e18d97..a44ddb2da7d1c 100644 --- a/tests/baselines/reference/config/matchFiles/with recursive wildcards that match nothing with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/with recursive wildcards that match nothing with jsonSourceFile api.js @@ -1,9 +1,9 @@ config: { - "include": [ - "x/**/.y/*", - ".z/**/.*" - ] + "include": [ + "x/**/.y/*", + ".z/**/.*" + ] } Fs:: //// [c:/dev/.z/.b.ts] @@ -34,29 +34,29 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/x/.y/a.ts", - "c:/dev/.z/.b.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "x/**/.y/*", - ".z/**/.*" - ] - }, - "wildcardDirectories": { - "c:/dev/x": "WatchDirectoryFlags.Recursive", - "c:/dev/.z": "WatchDirectoryFlags.Recursive" - }, - "compileOnSave": false + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/x/.y/a.ts", + "c:/dev/.z/.b.ts" + ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "x/**/.y/*", + ".z/**/.*" + ] + }, + "wildcardDirectories": { + "c:/dev/x": "WatchDirectoryFlags.Recursive", + "c:/dev/.z": "WatchDirectoryFlags.Recursive" + }, + "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/with wildcard excludes that implicitly exclude dotted files with json api.js b/tests/baselines/reference/config/matchFiles/with wildcard excludes that implicitly exclude dotted files with json api.js index 63be05aeba969..767bf464f9c0e 100644 --- a/tests/baselines/reference/config/matchFiles/with wildcard excludes that implicitly exclude dotted files with json api.js +++ b/tests/baselines/reference/config/matchFiles/with wildcard excludes that implicitly exclude dotted files with json api.js @@ -1,11 +1,11 @@ config: { - "include": [ - "**/.*/*" - ], - "exclude": [ - "**/*" - ] + "include": [ + "**/.*/*" + ], + "exclude": [ + "**/*" + ] } Fs:: //// [c:/dev/.z/.b.ts] @@ -36,26 +36,26 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "**/.*/*" - ], - "exclude": [ - "**/*" - ], + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "**/.*/*" + ], + "exclude": [ + "**/*" + ], + "compileOnSave": false + }, + "wildcardDirectories": {}, "compileOnSave": false - }, - "wildcardDirectories": {}, - "compileOnSave": false } Errors:: error TS18003: No inputs were found in config file 'c:/dev/tsconfig.json'. Specified 'include' paths were '["**/.*/*"]' and 'exclude' paths were '["**/*"]'. diff --git a/tests/baselines/reference/config/matchFiles/with wildcard excludes that implicitly exclude dotted files with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/with wildcard excludes that implicitly exclude dotted files with jsonSourceFile api.js index 226284fe14f52..ac091d35e601f 100644 --- a/tests/baselines/reference/config/matchFiles/with wildcard excludes that implicitly exclude dotted files with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/with wildcard excludes that implicitly exclude dotted files with jsonSourceFile api.js @@ -1,11 +1,11 @@ config: { - "include": [ - "**/.*/*" - ], - "exclude": [ - "**/*" - ] + "include": [ + "**/.*/*" + ], + "exclude": [ + "**/*" + ] } Fs:: //// [c:/dev/.z/.b.ts] @@ -36,25 +36,25 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "**/.*/*" - ], - "exclude": [ - "**/*" - ] - }, - "wildcardDirectories": {}, - "compileOnSave": false + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "**/.*/*" + ], + "exclude": [ + "**/*" + ] + }, + "wildcardDirectories": {}, + "compileOnSave": false } Errors:: error TS18003: No inputs were found in config file 'c:/dev/tsconfig.json'. Specified 'include' paths were '["**/.*/*"]' and 'exclude' paths were '["**/*"]'. diff --git a/tests/baselines/reference/config/matchFiles/with wildcard excludes with json api.js b/tests/baselines/reference/config/matchFiles/with wildcard excludes with json api.js index c5711d8d642dc..2b7942a912afe 100644 --- a/tests/baselines/reference/config/matchFiles/with wildcard excludes with json api.js +++ b/tests/baselines/reference/config/matchFiles/with wildcard excludes with json api.js @@ -1,18 +1,18 @@ config: { - "include": [ - "a.ts", - "b.ts", - "z/a.ts", - "z/abz.ts", - "z/aba.ts", - "x/b.ts" - ], - "exclude": [ - "*.ts", - "z/??z.ts", - "*/b.ts" - ] + "include": [ + "a.ts", + "b.ts", + "z/a.ts", + "z/abz.ts", + "z/aba.ts", + "x/b.ts" + ], + "exclude": [ + "*.ts", + "z/??z.ts", + "*/b.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -88,36 +88,36 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/z/a.ts", - "c:/dev/z/aba.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "a.ts", - "b.ts", - "z/a.ts", - "z/abz.ts", - "z/aba.ts", - "x/b.ts" - ], - "exclude": [ - "*.ts", - "z/??z.ts", - "*/b.ts" + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/z/a.ts", + "c:/dev/z/aba.ts" ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "a.ts", + "b.ts", + "z/a.ts", + "z/abz.ts", + "z/aba.ts", + "x/b.ts" + ], + "exclude": [ + "*.ts", + "z/??z.ts", + "*/b.ts" + ], + "compileOnSave": false + }, + "wildcardDirectories": {}, "compileOnSave": false - }, - "wildcardDirectories": {}, - "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/with wildcard excludes with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/with wildcard excludes with jsonSourceFile api.js index 689aac8dba546..8c1f1040c0d0c 100644 --- a/tests/baselines/reference/config/matchFiles/with wildcard excludes with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/with wildcard excludes with jsonSourceFile api.js @@ -1,18 +1,18 @@ config: { - "include": [ - "a.ts", - "b.ts", - "z/a.ts", - "z/abz.ts", - "z/aba.ts", - "x/b.ts" - ], - "exclude": [ - "*.ts", - "z/??z.ts", - "*/b.ts" - ] + "include": [ + "a.ts", + "b.ts", + "z/a.ts", + "z/abz.ts", + "z/aba.ts", + "x/b.ts" + ], + "exclude": [ + "*.ts", + "z/??z.ts", + "*/b.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -88,35 +88,35 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/z/a.ts", - "c:/dev/z/aba.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "a.ts", - "b.ts", - "z/a.ts", - "z/abz.ts", - "z/aba.ts", - "x/b.ts" + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/z/a.ts", + "c:/dev/z/aba.ts" ], - "exclude": [ - "*.ts", - "z/??z.ts", - "*/b.ts" - ] - }, - "wildcardDirectories": {}, - "compileOnSave": false + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "a.ts", + "b.ts", + "z/a.ts", + "z/abz.ts", + "z/aba.ts", + "x/b.ts" + ], + "exclude": [ + "*.ts", + "z/??z.ts", + "*/b.ts" + ] + }, + "wildcardDirectories": {}, + "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/without exclusions with literal file list with json api.js b/tests/baselines/reference/config/matchFiles/without exclusions with literal file list with json api.js index c3e7aa2995368..d91a0950176f1 100644 --- a/tests/baselines/reference/config/matchFiles/without exclusions with literal file list with json api.js +++ b/tests/baselines/reference/config/matchFiles/without exclusions with literal file list with json api.js @@ -1,9 +1,9 @@ config: { - "files": [ - "a.ts", - "b.ts" - ] + "files": [ + "a.ts", + "b.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -79,27 +79,27 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.ts", - "c:/dev/b.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "files": [ - "a.ts", - "b.ts" + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.ts", + "c:/dev/b.ts" ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "files": [ + "a.ts", + "b.ts" + ], + "compileOnSave": false + }, + "wildcardDirectories": {}, "compileOnSave": false - }, - "wildcardDirectories": {}, - "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/without exclusions with literal file list with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/without exclusions with literal file list with jsonSourceFile api.js index 10fe1fcd3ae8e..6c5e86bb595d0 100644 --- a/tests/baselines/reference/config/matchFiles/without exclusions with literal file list with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/without exclusions with literal file list with jsonSourceFile api.js @@ -1,9 +1,9 @@ config: { - "files": [ - "a.ts", - "b.ts" - ] + "files": [ + "a.ts", + "b.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -79,26 +79,26 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.ts", - "c:/dev/b.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "files": [ - "a.ts", - "b.ts" - ] - }, - "wildcardDirectories": {}, - "compileOnSave": false + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.ts", + "c:/dev/b.ts" + ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "files": [ + "a.ts", + "b.ts" + ] + }, + "wildcardDirectories": {}, + "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/without exclusions with literal include list with json api.js b/tests/baselines/reference/config/matchFiles/without exclusions with literal include list with json api.js index 7bd60f518d523..cf205e908ec38 100644 --- a/tests/baselines/reference/config/matchFiles/without exclusions with literal include list with json api.js +++ b/tests/baselines/reference/config/matchFiles/without exclusions with literal include list with json api.js @@ -1,9 +1,9 @@ config: { - "include": [ - "a.ts", - "b.ts" - ] + "include": [ + "a.ts", + "b.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -79,27 +79,27 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.ts", - "c:/dev/b.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "a.ts", - "b.ts" + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.ts", + "c:/dev/b.ts" ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "a.ts", + "b.ts" + ], + "compileOnSave": false + }, + "wildcardDirectories": {}, "compileOnSave": false - }, - "wildcardDirectories": {}, - "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/without exclusions with literal include list with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/without exclusions with literal include list with jsonSourceFile api.js index 69c1aa6c26540..2e22319f70cd3 100644 --- a/tests/baselines/reference/config/matchFiles/without exclusions with literal include list with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/without exclusions with literal include list with jsonSourceFile api.js @@ -1,9 +1,9 @@ config: { - "include": [ - "a.ts", - "b.ts" - ] + "include": [ + "a.ts", + "b.ts" + ] } Fs:: //// [c:/dev/a.d.ts] @@ -79,26 +79,26 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/a.ts", - "c:/dev/b.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "a.ts", - "b.ts" - ] - }, - "wildcardDirectories": {}, - "compileOnSave": false + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/a.ts", + "c:/dev/b.ts" + ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "a.ts", + "b.ts" + ] + }, + "wildcardDirectories": {}, + "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/without wildcards with json api.js b/tests/baselines/reference/config/matchFiles/without wildcards with json api.js index 04924a1e9faae..e89c3fec60678 100644 --- a/tests/baselines/reference/config/matchFiles/without wildcards with json api.js +++ b/tests/baselines/reference/config/matchFiles/without wildcards with json api.js @@ -1,9 +1,9 @@ config: { - "include": [ - "x/.y/a.ts", - "c:/dev/.z/.b.ts" - ] + "include": [ + "x/.y/a.ts", + "c:/dev/.z/.b.ts" + ] } Fs:: //// [c:/dev/.z/.b.ts] @@ -34,27 +34,27 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/x/.y/a.ts", - "c:/dev/.z/.b.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "x/.y/a.ts", - "c:/dev/.z/.b.ts" + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/x/.y/a.ts", + "c:/dev/.z/.b.ts" ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "x/.y/a.ts", + "c:/dev/.z/.b.ts" + ], + "compileOnSave": false + }, + "wildcardDirectories": {}, "compileOnSave": false - }, - "wildcardDirectories": {}, - "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/matchFiles/without wildcards with jsonSourceFile api.js b/tests/baselines/reference/config/matchFiles/without wildcards with jsonSourceFile api.js index 5798a483fb368..0ed3449d0bc65 100644 --- a/tests/baselines/reference/config/matchFiles/without wildcards with jsonSourceFile api.js +++ b/tests/baselines/reference/config/matchFiles/without wildcards with jsonSourceFile api.js @@ -1,9 +1,9 @@ config: { - "include": [ - "x/.y/a.ts", - "c:/dev/.z/.b.ts" - ] + "include": [ + "x/.y/a.ts", + "c:/dev/.z/.b.ts" + ] } Fs:: //// [c:/dev/.z/.b.ts] @@ -34,26 +34,26 @@ Fs:: configFileName:: c:/dev/tsconfig.json Result { - "options": { - "configFilePath": "c:/dev/tsconfig.json" - }, - "fileNames": [ - "c:/dev/x/.y/a.ts", - "c:/dev/.z/.b.ts" - ], - "typeAcquisition": { - "enable": false, - "include": [], - "exclude": [] - }, - "raw": { - "include": [ - "x/.y/a.ts", - "c:/dev/.z/.b.ts" - ] - }, - "wildcardDirectories": {}, - "compileOnSave": false + "options": { + "configFilePath": "c:/dev/tsconfig.json" + }, + "fileNames": [ + "c:/dev/x/.y/a.ts", + "c:/dev/.z/.b.ts" + ], + "typeAcquisition": { + "enable": false, + "include": [], + "exclude": [] + }, + "raw": { + "include": [ + "x/.y/a.ts", + "c:/dev/.z/.b.ts" + ] + }, + "wildcardDirectories": {}, + "compileOnSave": false } Errors:: diff --git a/tests/baselines/reference/config/tsconfigParsing/correctly parses wild card directories from implicit glob when two keys differ only in directory seperator with json api.js b/tests/baselines/reference/config/tsconfigParsing/correctly parses wild card directories from implicit glob when two keys differ only in directory seperator with json api.js index 9dde48a11b419..60c02aafc812c 100644 --- a/tests/baselines/reference/config/tsconfigParsing/correctly parses wild card directories from implicit glob when two keys differ only in directory seperator with json api.js +++ b/tests/baselines/reference/config/tsconfigParsing/correctly parses wild card directories from implicit glob when two keys differ only in directory seperator with json api.js @@ -1,6 +1,11 @@ Fs:: //// [/foo.bar/tsconfig.json] -{"include":["./","./**/*.json"]} +{ + "include": [ + "./", + "./**/*.json" + ] +} configFileName:: /foo.bar/tsconfig.json diff --git a/tests/baselines/reference/config/tsconfigParsing/correctly parses wild card directories from implicit glob when two keys differ only in directory seperator with jsonSourceFile api.js b/tests/baselines/reference/config/tsconfigParsing/correctly parses wild card directories from implicit glob when two keys differ only in directory seperator with jsonSourceFile api.js index 9dde48a11b419..60c02aafc812c 100644 --- a/tests/baselines/reference/config/tsconfigParsing/correctly parses wild card directories from implicit glob when two keys differ only in directory seperator with jsonSourceFile api.js +++ b/tests/baselines/reference/config/tsconfigParsing/correctly parses wild card directories from implicit glob when two keys differ only in directory seperator with jsonSourceFile api.js @@ -1,6 +1,11 @@ Fs:: //// [/foo.bar/tsconfig.json] -{"include":["./","./**/*.json"]} +{ + "include": [ + "./", + "./**/*.json" + ] +} configFileName:: /foo.bar/tsconfig.json diff --git a/tests/baselines/reference/config/tsconfigParsing/generates errors when commandline option is in tsconfig with json api.js b/tests/baselines/reference/config/tsconfigParsing/generates errors when commandline option is in tsconfig with json api.js index 1da683b04b840..26382641787bb 100644 --- a/tests/baselines/reference/config/tsconfigParsing/generates errors when commandline option is in tsconfig with json api.js +++ b/tests/baselines/reference/config/tsconfigParsing/generates errors when commandline option is in tsconfig with json api.js @@ -3,7 +3,11 @@ Fs:: //// [/apath/tsconfig.json] -{"compilerOptions":{"help":true}} +{ + "compilerOptions": { + "help": true + } +} configFileName:: /apath/tsconfig.json diff --git a/tests/baselines/reference/config/tsconfigParsing/generates errors when commandline option is in tsconfig with jsonSourceFile api.js b/tests/baselines/reference/config/tsconfigParsing/generates errors when commandline option is in tsconfig with jsonSourceFile api.js index 0b796635dbf4d..f3d7aec1f9730 100644 --- a/tests/baselines/reference/config/tsconfigParsing/generates errors when commandline option is in tsconfig with jsonSourceFile api.js +++ b/tests/baselines/reference/config/tsconfigParsing/generates errors when commandline option is in tsconfig with jsonSourceFile api.js @@ -3,15 +3,19 @@ Fs:: //// [/apath/tsconfig.json] -{"compilerOptions":{"help":true}} +{ + "compilerOptions": { + "help": true + } +} configFileName:: /apath/tsconfig.json FileNames:: /apath/a.ts Errors:: -/apath/tsconfig.json:1:21 - error TS6266: Option 'help' can only be specified on command line. +/apath/tsconfig.json:3:5 - error TS6266: Option 'help' can only be specified on command line. -1 {"compilerOptions":{"help":true}} -   ~~~~~~ +3 "help": true +   ~~~~~~ diff --git a/tests/baselines/reference/config/tsconfigParsing/generates errors when files is not string with json api.js b/tests/baselines/reference/config/tsconfigParsing/generates errors when files is not string with json api.js index 9e9aa45cb026d..84e229b6d89fc 100644 --- a/tests/baselines/reference/config/tsconfigParsing/generates errors when files is not string with json api.js +++ b/tests/baselines/reference/config/tsconfigParsing/generates errors when files is not string with json api.js @@ -3,7 +3,16 @@ Fs:: //// [/apath/tsconfig.json] -{"files":[{"compilerOptions":{"experimentalDecorators":true,"allowJs":true}}]} +{ + "files": [ + { + "compilerOptions": { + "experimentalDecorators": true, + "allowJs": true + } + } + ] +} configFileName:: /apath/tsconfig.json diff --git a/tests/baselines/reference/config/tsconfigParsing/generates errors when files is not string with jsonSourceFile api.js b/tests/baselines/reference/config/tsconfigParsing/generates errors when files is not string with jsonSourceFile api.js index 5b0a30c38f4eb..cb084081ffce9 100644 --- a/tests/baselines/reference/config/tsconfigParsing/generates errors when files is not string with jsonSourceFile api.js +++ b/tests/baselines/reference/config/tsconfigParsing/generates errors when files is not string with jsonSourceFile api.js @@ -3,15 +3,31 @@ Fs:: //// [/apath/tsconfig.json] -{"files":[{"compilerOptions":{"experimentalDecorators":true,"allowJs":true}}]} +{ + "files": [ + { + "compilerOptions": { + "experimentalDecorators": true, + "allowJs": true + } + } + ] +} configFileName:: /apath/tsconfig.json FileNames:: Errors:: -/apath/tsconfig.json:1:11 - error TS5024: Compiler option 'files' requires a value of type string. +/apath/tsconfig.json:3:5 - error TS5024: Compiler option 'files' requires a value of type string. -1 {"files":[{"compilerOptions":{"experimentalDecorators":true,"allowJs":true}}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 3 { +   ~ + 4 "compilerOptions": { +  ~~~~~~~~~~~~~~~~~~~~~~~~~~ +... + 7 } +  ~~~~~~~ + 8 } +  ~~~~~ diff --git a/tests/baselines/reference/config/tsconfigParsing/generates errors when include is not string with json api.js b/tests/baselines/reference/config/tsconfigParsing/generates errors when include is not string with json api.js index b4e1615120a9f..e4e6af740d50a 100644 --- a/tests/baselines/reference/config/tsconfigParsing/generates errors when include is not string with json api.js +++ b/tests/baselines/reference/config/tsconfigParsing/generates errors when include is not string with json api.js @@ -3,7 +3,13 @@ Fs:: //// [/apath/tsconfig.json] -{"include":[["./**/*.ts"]]} +{ + "include": [ + [ + "./**/*.ts" + ] + ] +} configFileName:: /apath/tsconfig.json diff --git a/tests/baselines/reference/config/tsconfigParsing/generates errors when include is not string with jsonSourceFile api.js b/tests/baselines/reference/config/tsconfigParsing/generates errors when include is not string with jsonSourceFile api.js index 2f9c86b9a8254..e548ad9e333a0 100644 --- a/tests/baselines/reference/config/tsconfigParsing/generates errors when include is not string with jsonSourceFile api.js +++ b/tests/baselines/reference/config/tsconfigParsing/generates errors when include is not string with jsonSourceFile api.js @@ -3,16 +3,26 @@ Fs:: //// [/apath/tsconfig.json] -{"include":[["./**/*.ts"]]} +{ + "include": [ + [ + "./**/*.ts" + ] + ] +} configFileName:: /apath/tsconfig.json FileNames:: Errors:: -/apath/tsconfig.json:1:13 - error TS5024: Compiler option 'include' requires a value of type string. +/apath/tsconfig.json:3:5 - error TS5024: Compiler option 'include' requires a value of type string. -1 {"include":[["./**/*.ts"]]} -   ~~~~~~~~~~~~~ +3 [ +   ~ +4 "./**/*.ts" +  ~~~~~~~~~~~~~~~~~ +5 ] +  ~~~~~ error TS18003: No inputs were found in config file '/apath/tsconfig.json'. Specified 'include' paths were '[["./**/*.ts"]]' and 'exclude' paths were '[]'. diff --git a/tests/baselines/reference/config/tsconfigParsing/handles escaped characters in strings correctly jsonParse.js b/tests/baselines/reference/config/tsconfigParsing/handles escaped characters in strings correctly jsonParse.js index 03adeb8b825a8..90269c8c17d12 100644 --- a/tests/baselines/reference/config/tsconfigParsing/handles escaped characters in strings correctly jsonParse.js +++ b/tests/baselines/reference/config/tsconfigParsing/handles escaped characters in strings correctly jsonParse.js @@ -6,9 +6,9 @@ Input:: } Config:: { - "exclude": [ - "xx\"//files" - ] + "exclude": [ + "xx\"//files" + ] } Errors:: @@ -21,9 +21,9 @@ Input:: } Config:: { - "exclude": [ - "xx\\" - ] + "exclude": [ + "xx\\" + ] } Errors:: diff --git a/tests/baselines/reference/config/tsconfigParsing/keeps string content untouched jsonParse.js b/tests/baselines/reference/config/tsconfigParsing/keeps string content untouched jsonParse.js index 93db9affa44ec..e2647d8ef8a1b 100644 --- a/tests/baselines/reference/config/tsconfigParsing/keeps string content untouched jsonParse.js +++ b/tests/baselines/reference/config/tsconfigParsing/keeps string content untouched jsonParse.js @@ -6,9 +6,9 @@ Input:: } Config:: { - "exclude": [ - "xx//file.d.ts" - ] + "exclude": [ + "xx//file.d.ts" + ] } Errors:: @@ -21,9 +21,9 @@ Input:: } Config:: { - "exclude": [ - "xx/*file.d.ts*/" - ] + "exclude": [ + "xx/*file.d.ts*/" + ] } Errors:: diff --git a/tests/baselines/reference/config/tsconfigParsing/parse and re-emit tsconfig.json file with diagnostics.js b/tests/baselines/reference/config/tsconfigParsing/parse and re-emit tsconfig.json file with diagnostics.js index dc6be67e56c72..6973bd8078eac 100644 --- a/tests/baselines/reference/config/tsconfigParsing/parse and re-emit tsconfig.json file with diagnostics.js +++ b/tests/baselines/reference/config/tsconfigParsing/parse and re-emit tsconfig.json file with diagnostics.js @@ -9,13 +9,13 @@ Initial:: } Result:: { - "compilerOptions": { - "allowJs": true, - "outDir": "bin" - }, - "files": [ - "file1.ts" - ] + "compilerOptions": { + "allowJs": true, + "outDir": "bin" + }, + "files": [ + "file1.ts" + ] } Errors:: config.json:5:21 - error TS1005: ',' expected. diff --git a/tests/baselines/reference/config/tsconfigParsing/parses wildcard directories even when parent directories have dots with json api.js b/tests/baselines/reference/config/tsconfigParsing/parses wildcard directories even when parent directories have dots with json api.js index 77f4867a42f78..d93448031e8d5 100644 --- a/tests/baselines/reference/config/tsconfigParsing/parses wildcard directories even when parent directories have dots with json api.js +++ b/tests/baselines/reference/config/tsconfigParsing/parses wildcard directories even when parent directories have dots with json api.js @@ -1,6 +1,10 @@ Fs:: //// [/foo.bar/tsconfig.json] -{"include":["src"]} +{ + "include": [ + "src" + ] +} configFileName:: /foo.bar/tsconfig.json diff --git a/tests/baselines/reference/config/tsconfigParsing/parses wildcard directories even when parent directories have dots with jsonSourceFile api.js b/tests/baselines/reference/config/tsconfigParsing/parses wildcard directories even when parent directories have dots with jsonSourceFile api.js index 77f4867a42f78..d93448031e8d5 100644 --- a/tests/baselines/reference/config/tsconfigParsing/parses wildcard directories even when parent directories have dots with jsonSourceFile api.js +++ b/tests/baselines/reference/config/tsconfigParsing/parses wildcard directories even when parent directories have dots with jsonSourceFile api.js @@ -1,6 +1,10 @@ Fs:: //// [/foo.bar/tsconfig.json] -{"include":["src"]} +{ + "include": [ + "src" + ] +} configFileName:: /foo.bar/tsconfig.json diff --git a/tests/baselines/reference/config/tsconfigParsing/returns config object without comments jsonParse.js b/tests/baselines/reference/config/tsconfigParsing/returns config object without comments jsonParse.js index af0aa1822f94e..a4cf7c41aee7f 100644 --- a/tests/baselines/reference/config/tsconfigParsing/returns config object without comments jsonParse.js +++ b/tests/baselines/reference/config/tsconfigParsing/returns config object without comments jsonParse.js @@ -7,9 +7,9 @@ Input:: } Config:: { - "exclude": [ - "file.d.ts" - ] + "exclude": [ + "file.d.ts" + ] } Errors:: @@ -25,9 +25,9 @@ Input:: } Config:: { - "exclude": [ - "file.d.ts" - ] + "exclude": [ + "file.d.ts" + ] } Errors:: diff --git a/tests/baselines/reference/config/tsconfigParsing/returns object when users correctly specify library jsonParse.js b/tests/baselines/reference/config/tsconfigParsing/returns object when users correctly specify library jsonParse.js index da573d5049343..a8d9016690471 100644 --- a/tests/baselines/reference/config/tsconfigParsing/returns object when users correctly specify library jsonParse.js +++ b/tests/baselines/reference/config/tsconfigParsing/returns object when users correctly specify library jsonParse.js @@ -6,11 +6,11 @@ Input:: } Config:: { - "compilerOptions": { - "lib": [ - "es5" - ] - } + "compilerOptions": { + "lib": [ + "es5" + ] + } } Errors:: @@ -23,12 +23,12 @@ Input:: } Config:: { - "compilerOptions": { - "lib": [ - "es5", - "es6" - ] - } + "compilerOptions": { + "lib": [ + "es5", + "es6" + ] + } } Errors:: diff --git a/tests/baselines/reference/config/tsconfigParsingWatchOptions/different options with json api.js b/tests/baselines/reference/config/tsconfigParsingWatchOptions/different options with json api.js index 10368b04e7c7f..5e801403a740c 100644 --- a/tests/baselines/reference/config/tsconfigParsingWatchOptions/different options with json api.js +++ b/tests/baselines/reference/config/tsconfigParsingWatchOptions/different options with json api.js @@ -4,16 +4,16 @@ Fs:: //// [/tsconfig.json] { - "watchOptions": { - "watchFile": "UseFsEvents" - } + "watchOptions": { + "watchFile": "UseFsEvents" + } } configFileName:: tsconfig.json Result: WatchOptions:: { - "watchFile": 4 + "watchFile": 4 } Errors:: @@ -24,16 +24,16 @@ Fs:: //// [/tsconfig.json] { - "watchOptions": { - "watchDirectory": "UseFsEvents" - } + "watchOptions": { + "watchDirectory": "UseFsEvents" + } } configFileName:: tsconfig.json Result: WatchOptions:: { - "watchDirectory": 0 + "watchDirectory": 0 } Errors:: @@ -44,16 +44,16 @@ Fs:: //// [/tsconfig.json] { - "watchOptions": { - "fallbackPolling": "DynamicPriority" - } + "watchOptions": { + "fallbackPolling": "DynamicPriority" + } } configFileName:: tsconfig.json Result: WatchOptions:: { - "fallbackPolling": 2 + "fallbackPolling": 2 } Errors:: @@ -64,16 +64,16 @@ Fs:: //// [/tsconfig.json] { - "watchOptions": { - "synchronousWatchDirectory": true - } + "watchOptions": { + "synchronousWatchDirectory": true + } } configFileName:: tsconfig.json Result: WatchOptions:: { - "synchronousWatchDirectory": true + "synchronousWatchDirectory": true } Errors:: @@ -84,20 +84,20 @@ Fs:: //// [/tsconfig.json] { - "watchOptions": { - "excludeDirectories": [ - "**/temp" - ] - } + "watchOptions": { + "excludeDirectories": [ + "**/temp" + ] + } } configFileName:: tsconfig.json Result: WatchOptions:: { - "excludeDirectories": [ - "/**/temp" - ] + "excludeDirectories": [ + "/**/temp" + ] } Errors:: @@ -108,20 +108,20 @@ Fs:: //// [/tsconfig.json] { - "watchOptions": { - "excludeFiles": [ - "**/temp/*.ts" - ] - } + "watchOptions": { + "excludeFiles": [ + "**/temp/*.ts" + ] + } } configFileName:: tsconfig.json Result: WatchOptions:: { - "excludeFiles": [ - "/**/temp/*.ts" - ] + "excludeFiles": [ + "/**/temp/*.ts" + ] } Errors:: @@ -132,18 +132,18 @@ Fs:: //// [/tsconfig.json] { - "watchOptions": { - "excludeDirectories": [ - "**/../*" - ] - } + "watchOptions": { + "excludeDirectories": [ + "**/../*" + ] + } } configFileName:: tsconfig.json Result: WatchOptions:: { - "excludeDirectories": [] + "excludeDirectories": [] } Errors:: error TS5065: File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '**/../*'. @@ -155,18 +155,18 @@ Fs:: //// [/tsconfig.json] { - "watchOptions": { - "excludeFiles": [ - "**/../*" - ] - } + "watchOptions": { + "excludeFiles": [ + "**/../*" + ] + } } configFileName:: tsconfig.json Result: WatchOptions:: { - "excludeFiles": [] + "excludeFiles": [] } Errors:: error TS5065: File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '**/../*'. diff --git a/tests/baselines/reference/config/tsconfigParsingWatchOptions/different options with jsonSourceFile api.js b/tests/baselines/reference/config/tsconfigParsingWatchOptions/different options with jsonSourceFile api.js index 7748786348fe6..5849fea21ad7f 100644 --- a/tests/baselines/reference/config/tsconfigParsingWatchOptions/different options with jsonSourceFile api.js +++ b/tests/baselines/reference/config/tsconfigParsingWatchOptions/different options with jsonSourceFile api.js @@ -4,16 +4,16 @@ Fs:: //// [/tsconfig.json] { - "watchOptions": { - "watchFile": "UseFsEvents" - } + "watchOptions": { + "watchFile": "UseFsEvents" + } } configFileName:: tsconfig.json Result: WatchOptions:: { - "watchFile": 4 + "watchFile": 4 } Errors:: @@ -24,16 +24,16 @@ Fs:: //// [/tsconfig.json] { - "watchOptions": { - "watchDirectory": "UseFsEvents" - } + "watchOptions": { + "watchDirectory": "UseFsEvents" + } } configFileName:: tsconfig.json Result: WatchOptions:: { - "watchDirectory": 0 + "watchDirectory": 0 } Errors:: @@ -44,16 +44,16 @@ Fs:: //// [/tsconfig.json] { - "watchOptions": { - "fallbackPolling": "DynamicPriority" - } + "watchOptions": { + "fallbackPolling": "DynamicPriority" + } } configFileName:: tsconfig.json Result: WatchOptions:: { - "fallbackPolling": 2 + "fallbackPolling": 2 } Errors:: @@ -64,16 +64,16 @@ Fs:: //// [/tsconfig.json] { - "watchOptions": { - "synchronousWatchDirectory": true - } + "watchOptions": { + "synchronousWatchDirectory": true + } } configFileName:: tsconfig.json Result: WatchOptions:: { - "synchronousWatchDirectory": true + "synchronousWatchDirectory": true } Errors:: @@ -84,20 +84,20 @@ Fs:: //// [/tsconfig.json] { - "watchOptions": { - "excludeDirectories": [ - "**/temp" - ] - } + "watchOptions": { + "excludeDirectories": [ + "**/temp" + ] + } } configFileName:: tsconfig.json Result: WatchOptions:: { - "excludeDirectories": [ - "/**/temp" - ] + "excludeDirectories": [ + "/**/temp" + ] } Errors:: @@ -108,20 +108,20 @@ Fs:: //// [/tsconfig.json] { - "watchOptions": { - "excludeFiles": [ - "**/temp/*.ts" - ] - } + "watchOptions": { + "excludeFiles": [ + "**/temp/*.ts" + ] + } } configFileName:: tsconfig.json Result: WatchOptions:: { - "excludeFiles": [ - "/**/temp/*.ts" - ] + "excludeFiles": [ + "/**/temp/*.ts" + ] } Errors:: @@ -132,24 +132,24 @@ Fs:: //// [/tsconfig.json] { - "watchOptions": { - "excludeDirectories": [ - "**/../*" - ] - } + "watchOptions": { + "excludeDirectories": [ + "**/../*" + ] + } } configFileName:: tsconfig.json Result: WatchOptions:: { - "excludeDirectories": [] + "excludeDirectories": [] } Errors:: -tsconfig.json:4:4 - error TS5065: File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '**/../*'. +tsconfig.json:4:7 - error TS5065: File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '**/../*'. -4 "**/../*" -   ~~~~~~~~~ +4 "**/../*" +   ~~~~~~~~~ Fs:: @@ -158,22 +158,22 @@ Fs:: //// [/tsconfig.json] { - "watchOptions": { - "excludeFiles": [ - "**/../*" - ] - } + "watchOptions": { + "excludeFiles": [ + "**/../*" + ] + } } configFileName:: tsconfig.json Result: WatchOptions:: { - "excludeFiles": [] + "excludeFiles": [] } Errors:: -tsconfig.json:4:4 - error TS5065: File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '**/../*'. +tsconfig.json:4:7 - error TS5065: File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '**/../*'. -4 "**/../*" -   ~~~~~~~~~ +4 "**/../*" +   ~~~~~~~~~ diff --git a/tests/baselines/reference/config/tsconfigParsingWatchOptions/empty watchOptions specified option with json api.js b/tests/baselines/reference/config/tsconfigParsingWatchOptions/empty watchOptions specified option with json api.js index f74ac086ed4bb..a1252ed68d8be 100644 --- a/tests/baselines/reference/config/tsconfigParsingWatchOptions/empty watchOptions specified option with json api.js +++ b/tests/baselines/reference/config/tsconfigParsingWatchOptions/empty watchOptions specified option with json api.js @@ -4,7 +4,7 @@ Fs:: //// [/tsconfig.json] { - "watchOptions": {} + "watchOptions": {} } diff --git a/tests/baselines/reference/config/tsconfigParsingWatchOptions/empty watchOptions specified option with jsonSourceFile api.js b/tests/baselines/reference/config/tsconfigParsingWatchOptions/empty watchOptions specified option with jsonSourceFile api.js index f74ac086ed4bb..a1252ed68d8be 100644 --- a/tests/baselines/reference/config/tsconfigParsingWatchOptions/empty watchOptions specified option with jsonSourceFile api.js +++ b/tests/baselines/reference/config/tsconfigParsingWatchOptions/empty watchOptions specified option with jsonSourceFile api.js @@ -4,7 +4,7 @@ Fs:: //// [/tsconfig.json] { - "watchOptions": {} + "watchOptions": {} } diff --git a/tests/baselines/reference/config/tsconfigParsingWatchOptions/watch options extending passed in watch options with json api.js b/tests/baselines/reference/config/tsconfigParsingWatchOptions/watch options extending passed in watch options with json api.js index ecbeed86993fd..b6bf751f40d48 100644 --- a/tests/baselines/reference/config/tsconfigParsingWatchOptions/watch options extending passed in watch options with json api.js +++ b/tests/baselines/reference/config/tsconfigParsingWatchOptions/watch options extending passed in watch options with json api.js @@ -4,16 +4,16 @@ Fs:: //// [/tsconfig.json] { - "watchOptions": { - "watchFile": "UseFsEvents" - } + "watchOptions": { + "watchFile": "UseFsEvents" + } } configFileName:: tsconfig.json Result: WatchOptions:: { - "watchFile": 4 + "watchFile": 4 } Errors:: diff --git a/tests/baselines/reference/config/tsconfigParsingWatchOptions/watch options extending passed in watch options with jsonSourceFile api.js b/tests/baselines/reference/config/tsconfigParsingWatchOptions/watch options extending passed in watch options with jsonSourceFile api.js index ecbeed86993fd..b6bf751f40d48 100644 --- a/tests/baselines/reference/config/tsconfigParsingWatchOptions/watch options extending passed in watch options with jsonSourceFile api.js +++ b/tests/baselines/reference/config/tsconfigParsingWatchOptions/watch options extending passed in watch options with jsonSourceFile api.js @@ -4,16 +4,16 @@ Fs:: //// [/tsconfig.json] { - "watchOptions": { - "watchFile": "UseFsEvents" - } + "watchOptions": { + "watchFile": "UseFsEvents" + } } configFileName:: tsconfig.json Result: WatchOptions:: { - "watchFile": 4 + "watchFile": 4 } Errors:: diff --git a/tests/baselines/reference/config/tsconfigParsingWatchOptions/when extending config file with watchOptions with json api.js b/tests/baselines/reference/config/tsconfigParsingWatchOptions/when extending config file with watchOptions with json api.js index 92ed497816a48..b95fe3e4a4aa6 100644 --- a/tests/baselines/reference/config/tsconfigParsingWatchOptions/when extending config file with watchOptions with json api.js +++ b/tests/baselines/reference/config/tsconfigParsingWatchOptions/when extending config file with watchOptions with json api.js @@ -3,22 +3,27 @@ Fs:: //// [/base.json] -{"watchOptions":{"watchFile":"UseFsEventsOnParentDirectory","watchDirectory":"FixedPollingInterval"}} +{ + "watchOptions": { + "watchFile": "UseFsEventsOnParentDirectory", + "watchDirectory": "FixedPollingInterval" + } +} //// [/tsconfig.json] { - "extends": "./base.json", - "watchOptions": { - "watchFile": "UseFsEvents" - } + "extends": "./base.json", + "watchOptions": { + "watchFile": "UseFsEvents" + } } configFileName:: tsconfig.json Result: WatchOptions:: { - "watchFile": 4, - "watchDirectory": 1 + "watchFile": 4, + "watchDirectory": 1 } Errors:: @@ -28,19 +33,24 @@ Fs:: //// [/base.json] -{"watchOptions":{"watchFile":"UseFsEventsOnParentDirectory","watchDirectory":"FixedPollingInterval"}} +{ + "watchOptions": { + "watchFile": "UseFsEventsOnParentDirectory", + "watchDirectory": "FixedPollingInterval" + } +} //// [/tsconfig.json] { - "extends": "./base.json" + "extends": "./base.json" } configFileName:: tsconfig.json Result: WatchOptions:: { - "watchFile": 5, - "watchDirectory": 1 + "watchFile": 5, + "watchDirectory": 1 } Errors:: diff --git a/tests/baselines/reference/config/tsconfigParsingWatchOptions/when extending config file with watchOptions with jsonSourceFile api.js b/tests/baselines/reference/config/tsconfigParsingWatchOptions/when extending config file with watchOptions with jsonSourceFile api.js index 92ed497816a48..b95fe3e4a4aa6 100644 --- a/tests/baselines/reference/config/tsconfigParsingWatchOptions/when extending config file with watchOptions with jsonSourceFile api.js +++ b/tests/baselines/reference/config/tsconfigParsingWatchOptions/when extending config file with watchOptions with jsonSourceFile api.js @@ -3,22 +3,27 @@ Fs:: //// [/base.json] -{"watchOptions":{"watchFile":"UseFsEventsOnParentDirectory","watchDirectory":"FixedPollingInterval"}} +{ + "watchOptions": { + "watchFile": "UseFsEventsOnParentDirectory", + "watchDirectory": "FixedPollingInterval" + } +} //// [/tsconfig.json] { - "extends": "./base.json", - "watchOptions": { - "watchFile": "UseFsEvents" - } + "extends": "./base.json", + "watchOptions": { + "watchFile": "UseFsEvents" + } } configFileName:: tsconfig.json Result: WatchOptions:: { - "watchFile": 4, - "watchDirectory": 1 + "watchFile": 4, + "watchDirectory": 1 } Errors:: @@ -28,19 +33,24 @@ Fs:: //// [/base.json] -{"watchOptions":{"watchFile":"UseFsEventsOnParentDirectory","watchDirectory":"FixedPollingInterval"}} +{ + "watchOptions": { + "watchFile": "UseFsEventsOnParentDirectory", + "watchDirectory": "FixedPollingInterval" + } +} //// [/tsconfig.json] { - "extends": "./base.json" + "extends": "./base.json" } configFileName:: tsconfig.json Result: WatchOptions:: { - "watchFile": 5, - "watchDirectory": 1 + "watchFile": 5, + "watchDirectory": 1 } Errors:: diff --git a/tests/baselines/reference/config/tsconfigParsingWatchOptions/when extending config file without watchOptions with json api.js b/tests/baselines/reference/config/tsconfigParsingWatchOptions/when extending config file without watchOptions with json api.js index e08330e344ff7..c7c8cacdf68e3 100644 --- a/tests/baselines/reference/config/tsconfigParsingWatchOptions/when extending config file without watchOptions with json api.js +++ b/tests/baselines/reference/config/tsconfigParsingWatchOptions/when extending config file without watchOptions with json api.js @@ -7,17 +7,17 @@ Fs:: //// [/tsconfig.json] { - "extends": "./base.json", - "watchOptions": { - "watchFile": "UseFsEvents" - } + "extends": "./base.json", + "watchOptions": { + "watchFile": "UseFsEvents" + } } configFileName:: tsconfig.json Result: WatchOptions:: { - "watchFile": 4 + "watchFile": 4 } Errors:: @@ -31,7 +31,7 @@ Fs:: //// [/tsconfig.json] { - "extends": "./base.json" + "extends": "./base.json" } diff --git a/tests/baselines/reference/config/tsconfigParsingWatchOptions/when extending config file without watchOptions with jsonSourceFile api.js b/tests/baselines/reference/config/tsconfigParsingWatchOptions/when extending config file without watchOptions with jsonSourceFile api.js index e08330e344ff7..c7c8cacdf68e3 100644 --- a/tests/baselines/reference/config/tsconfigParsingWatchOptions/when extending config file without watchOptions with jsonSourceFile api.js +++ b/tests/baselines/reference/config/tsconfigParsingWatchOptions/when extending config file without watchOptions with jsonSourceFile api.js @@ -7,17 +7,17 @@ Fs:: //// [/tsconfig.json] { - "extends": "./base.json", - "watchOptions": { - "watchFile": "UseFsEvents" - } + "extends": "./base.json", + "watchOptions": { + "watchFile": "UseFsEvents" + } } configFileName:: tsconfig.json Result: WatchOptions:: { - "watchFile": 4 + "watchFile": 4 } Errors:: @@ -31,7 +31,7 @@ Fs:: //// [/tsconfig.json] { - "extends": "./base.json" + "extends": "./base.json" } diff --git a/tests/baselines/reference/moduleResolution/nested-node-module.js b/tests/baselines/reference/moduleResolution/nested-node-module.js index c1ba22b9f8397..5084ead6eb4ba 100644 --- a/tests/baselines/reference/moduleResolution/nested-node-module.js +++ b/tests/baselines/reference/moduleResolution/nested-node-module.js @@ -2,7 +2,9 @@ //// [/root/src/libs/guid/package.json] -{"typings":"dist/guid.d.ts"} +{ + "typings": "dist/guid.d.ts" +} //// [/root/src/libs/guid/dist/guid.d.ts] @@ -29,7 +31,9 @@ Resolution:: { //// [/root/src/libs/guid/package.json] -{"typings":"dist/guid.d.ts"} +{ + "typings": "dist/guid.d.ts" +} //// [/root/src/libs/guid/dist/guid.d.ts] diff --git a/tests/baselines/reference/moduleResolution/node-baseUrl-path-mappings.js b/tests/baselines/reference/moduleResolution/node-baseUrl-path-mappings.js index 30e9c41445cc7..f773dece940e4 100644 --- a/tests/baselines/reference/moduleResolution/node-baseUrl-path-mappings.js +++ b/tests/baselines/reference/moduleResolution/node-baseUrl-path-mappings.js @@ -11,7 +11,9 @@ //// [/root/generated/folder2/file4/package.json] -{"typings":"dist/types.d.ts"} +{ + "typings": "dist/types.d.ts" +} //// [/root/someanotherfolder/file5/index.d.ts] @@ -176,7 +178,9 @@ Resolution:: { //// [/root/generated/folder2/file4/package.json] -{"typings":"dist/types.d.ts"} +{ + "typings": "dist/types.d.ts" +} //// [/root/someanotherfolder/file5/index.d.ts] diff --git a/tests/baselines/reference/moduleResolution/node-baseUrl.js b/tests/baselines/reference/moduleResolution/node-baseUrl.js index ecb69b2076974..49064b654eb89 100644 --- a/tests/baselines/reference/moduleResolution/node-baseUrl.js +++ b/tests/baselines/reference/moduleResolution/node-baseUrl.js @@ -8,7 +8,9 @@ //// [/root/m3/package.json] -{"typings":"dist/typings.d.ts"} +{ + "typings": "dist/typings.d.ts" +} //// [/root/m3/dist/typings.d.ts] @@ -112,7 +114,9 @@ Resolution:: { //// [/root/m3/package.json] -{"typings":"dist/typings.d.ts"} +{ + "typings": "dist/typings.d.ts" +} //// [/root/m3/dist/typings.d.ts] diff --git a/tests/baselines/reference/moduleResolution/non-relative-preserveSymlinks.js b/tests/baselines/reference/moduleResolution/non-relative-preserveSymlinks.js index b5f9ceb12e06c..b8ffa99a4d13c 100644 --- a/tests/baselines/reference/moduleResolution/non-relative-preserveSymlinks.js +++ b/tests/baselines/reference/moduleResolution/non-relative-preserveSymlinks.js @@ -4,7 +4,10 @@ //// [/app/node_modules/linked/index.d.ts] symlink(/linked/index.d.ts) //// [/app/node_modules/linked/package.json] -{"version": "0.0.0", "main": "./index"} +{ + "version": "0.0.0", + "main": "./index" +} Resolving "linked" from /app/app.ts when preserveSymlinks is false Resolution:: { @@ -34,7 +37,10 @@ Resolution:: { //// [/app/node_modules/linked/index.d.ts] symlink(/linked/index.d.ts) //// [/app/node_modules/linked/package.json] -{"version": "0.0.0", "main": "./index"} +{ + "version": "0.0.0", + "main": "./index" +} Resolving "linked" from /app/app.ts when preserveSymlinks is true Resolution:: { diff --git a/tests/baselines/reference/moduleResolution/non-relative-preserves-originalPath-on-cache-hit.js b/tests/baselines/reference/moduleResolution/non-relative-preserves-originalPath-on-cache-hit.js index 50b20f9a56ff5..f13c1b45d436a 100644 --- a/tests/baselines/reference/moduleResolution/non-relative-preserves-originalPath-on-cache-hit.js +++ b/tests/baselines/reference/moduleResolution/non-relative-preserves-originalPath-on-cache-hit.js @@ -4,7 +4,10 @@ //// [/app/node_modules/linked/index.d.ts] symlink(/linked/index.d.ts) //// [/app/node_modules/linked/package.json] -{"version": "0.0.0", "main": "./index"} +{ + "version": "0.0.0", + "main": "./index" +} Resolving "linked" from /app/src/app.ts Resolution:: { diff --git a/tests/baselines/reference/moduleResolution/non-relative-uses-originalPath-for-caching.js b/tests/baselines/reference/moduleResolution/non-relative-uses-originalPath-for-caching.js index 5508c607f5330..8db60837c2da0 100644 --- a/tests/baselines/reference/moduleResolution/non-relative-uses-originalPath-for-caching.js +++ b/tests/baselines/reference/moduleResolution/non-relative-uses-originalPath-for-caching.js @@ -4,7 +4,10 @@ //// [/sub/node_modules/a/index.ts] symlink(/modules/a.ts) //// [/sub/node_modules/a/package.json] -{"version": "0.0.0", "main": "./index"} +{ + "version": "0.0.0", + "main": "./index" +} Resolving "a" from /sub/dir/foo.ts Resolution:: { diff --git a/tests/baselines/reference/moduleResolution/relative-module-name-as-directory-load-index.js b/tests/baselines/reference/moduleResolution/relative-module-name-as-directory-load-index.js index 94c2f091ad177..d438ba81df741 100644 --- a/tests/baselines/reference/moduleResolution/relative-module-name-as-directory-load-index.js +++ b/tests/baselines/reference/moduleResolution/relative-module-name-as-directory-load-index.js @@ -3,7 +3,9 @@ Resolving "./foo" from /a/b/c.ts //// [/a/b/foo/package.json] -{"main":"/c/d"} +{ + "main": "/c/d" +} //// [/a/b/foo/index.d.ts] @@ -39,7 +41,9 @@ Resolving "./foo" from /a/b/c.ts with host that doesnt have directoryExists //// [/a/b/foo/package.json] -{"main":"/c/d"} +{ + "main": "/c/d" +} //// [/a/b/foo/index.d.ts] diff --git a/tests/baselines/reference/moduleResolution/relative-module-name-as-directory-with-invalid-typings.js b/tests/baselines/reference/moduleResolution/relative-module-name-as-directory-with-invalid-typings.js index 9e5149dce238b..32b8649572df8 100644 --- a/tests/baselines/reference/moduleResolution/relative-module-name-as-directory-with-invalid-typings.js +++ b/tests/baselines/reference/moduleResolution/relative-module-name-as-directory-with-invalid-typings.js @@ -1,9 +1,17 @@ -Resolving "b" from /a/b.ts with typings: ["a","b"] +Resolving "b" from /a/b.ts with typings: [ + "a", + "b" +] //// [/a/b.ts] //// [/node_modules/b/package.json] -{"typings":["a","b"]} +{ + "typings": [ + "a", + "b" + ] +} //// [/a/b.d.ts] @@ -40,12 +48,20 @@ Resolution:: { ] } -Resolving "b" from /a/b.ts with typings: ["a","b"] with host that doesnt have directoryExists +Resolving "b" from /a/b.ts with typings: [ + "a", + "b" +] with host that doesnt have directoryExists //// [/a/b.ts] //// [/node_modules/b/package.json] -{"typings":["a","b"]} +{ + "typings": [ + "a", + "b" + ] +} //// [/a/b.d.ts] @@ -82,12 +98,18 @@ Resolution:: { ] } -Resolving "b" from /a/b.ts with typings: {"a":"b"} +Resolving "b" from /a/b.ts with typings: { + "a": "b" +} //// [/a/b.ts] //// [/node_modules/b/package.json] -{"typings":{"a":"b"}} +{ + "typings": { + "a": "b" + } +} //// [/a/b.d.ts] @@ -124,12 +146,18 @@ Resolution:: { ] } -Resolving "b" from /a/b.ts with typings: {"a":"b"} with host that doesnt have directoryExists +Resolving "b" from /a/b.ts with typings: { + "a": "b" +} with host that doesnt have directoryExists //// [/a/b.ts] //// [/node_modules/b/package.json] -{"typings":{"a":"b"}} +{ + "typings": { + "a": "b" + } +} //// [/a/b.d.ts] @@ -171,7 +199,9 @@ Resolving "b" from /a/b.ts with typings: true //// [/node_modules/b/package.json] -{"typings":true} +{ + "typings": true +} //// [/a/b.d.ts] @@ -213,7 +243,9 @@ Resolving "b" from /a/b.ts with typings: true with host that doesnt have directo //// [/node_modules/b/package.json] -{"typings":true} +{ + "typings": true +} //// [/a/b.d.ts] @@ -255,7 +287,9 @@ Resolving "b" from /a/b.ts with typings: null //// [/node_modules/b/package.json] -{"typings":null} +{ + "typings": null +} //// [/a/b.d.ts] @@ -297,7 +331,9 @@ Resolving "b" from /a/b.ts with typings: null with host that doesnt have directo //// [/node_modules/b/package.json] -{"typings":null} +{ + "typings": null +} //// [/a/b.d.ts] diff --git a/tests/baselines/reference/moduleResolution/relative-module-name-as-directory.js b/tests/baselines/reference/moduleResolution/relative-module-name-as-directory.js index 33180674c0dd2..4376a6e8bd88b 100644 --- a/tests/baselines/reference/moduleResolution/relative-module-name-as-directory.js +++ b/tests/baselines/reference/moduleResolution/relative-module-name-as-directory.js @@ -3,7 +3,9 @@ Resolving "./bar" from /a/b/c/d.ts with typings: c/d/e.d.ts //// [/a/b/c/bar/package.json] -{"typings":"c/d/e.d.ts"} +{ + "typings": "c/d/e.d.ts" +} //// [/a/b/c/bar/c/d/e.d.ts] @@ -30,7 +32,9 @@ Resolving "./bar" from /a/b/c/d.ts with typings: c/d/e.d.ts with host that doesn //// [/a/b/c/bar/package.json] -{"typings":"c/d/e.d.ts"} +{ + "typings": "c/d/e.d.ts" +} //// [/a/b/c/bar/c/d/e.d.ts] @@ -57,7 +61,9 @@ Resolving "../../bar" from /a/b/c/d.ts with typings: e.d.ts //// [/a/bar/package.json] -{"typings":"e.d.ts"} +{ + "typings": "e.d.ts" +} //// [/a/bar/e.d.ts] @@ -84,7 +90,9 @@ Resolving "../../bar" from /a/b/c/d.ts with typings: e.d.ts with host that doesn //// [/a/bar/package.json] -{"typings":"e.d.ts"} +{ + "typings": "e.d.ts" +} //// [/a/bar/e.d.ts] @@ -111,7 +119,9 @@ Resolving "/bar" from /a/b/c/d.ts with typings: e.d.ts //// [/bar/package.json] -{"typings":"e.d.ts"} +{ + "typings": "e.d.ts" +} //// [/bar/e.d.ts] @@ -138,7 +148,9 @@ Resolving "/bar" from /a/b/c/d.ts with typings: e.d.ts with host that doesnt hav //// [/bar/package.json] -{"typings":"e.d.ts"} +{ + "typings": "e.d.ts" +} //// [/bar/e.d.ts] @@ -165,7 +177,9 @@ Resolving "c:/bar" from c:/a/b/c/d.ts with typings: e.d.ts //// [c:/bar/package.json] -{"typings":"e.d.ts"} +{ + "typings": "e.d.ts" +} //// [c:/bar/e.d.ts] @@ -192,7 +206,9 @@ Resolving "c:/bar" from c:/a/b/c/d.ts with typings: e.d.ts with host that doesnt //// [c:/bar/package.json] -{"typings":"e.d.ts"} +{ + "typings": "e.d.ts" +} //// [c:/bar/e.d.ts] diff --git a/tests/baselines/reference/moduleResolution/type-reference-from-primary-location.js b/tests/baselines/reference/moduleResolution/type-reference-from-primary-location.js index c2b369638d185..00864f5b8e257 100644 --- a/tests/baselines/reference/moduleResolution/type-reference-from-primary-location.js +++ b/tests/baselines/reference/moduleResolution/type-reference-from-primary-location.js @@ -24,7 +24,9 @@ Resolution:: { //// [/root/src/types/lib/package.json] -{"types":"typings/lib.d.ts"} +{ + "types": "typings/lib.d.ts" +} Resolving "lib" from /root/src/app.ts typesRoots: [/root/src/types] with host that doesnt have directoryExists Resolution:: { @@ -70,7 +72,9 @@ Resolution:: { //// [/root/src/node_modules/lib/package.json] -{"types":"typings/lib.d.ts"} +{ + "types": "typings/lib.d.ts" +} Resolving "lib" from /root/src/app.ts typesRoots: [/root/src/types] with host that doesnt have directoryExists Resolution:: { @@ -122,7 +126,9 @@ Resolution:: { //// [/root/src/node_modules/@types/lib/package.json] -{"types":"typings/lib.d.ts"} +{ + "types": "typings/lib.d.ts" +} Resolving "lib" from /root/src/app.ts typesRoots: [/root/src/types] with host that doesnt have directoryExists Resolution:: { diff --git a/tests/baselines/reference/moduleResolution/type-reference-from-secondary-location.js b/tests/baselines/reference/moduleResolution/type-reference-from-secondary-location.js index 4f96a2c8cc9b8..ce3cedf209633 100644 --- a/tests/baselines/reference/moduleResolution/type-reference-from-secondary-location.js +++ b/tests/baselines/reference/moduleResolution/type-reference-from-secondary-location.js @@ -60,7 +60,9 @@ Resolution:: { //// [/root/node_modules/lib/package.json] -{"typings":"typings/lib.d.ts"} +{ + "typings": "typings/lib.d.ts" +} Resolving "lib" from /root/src/app.ts typesRoots: [/root/src/types] with host that doesnt have directoryExists Resolution:: { @@ -124,7 +126,9 @@ Resolution:: { //// [/root/node_modules/@types/lib/package.json] -{"typings":"typings/lib.d.ts"} +{ + "typings": "typings/lib.d.ts" +} Resolving "lib" from /root/src/app.ts typesRoots: [/root/src/types] with host that doesnt have directoryExists Resolution:: { diff --git a/tests/baselines/reference/reuseProgramStructure/can-reuse-ambient-module-declarations-from-non-modified-files.js b/tests/baselines/reference/reuseProgramStructure/can-reuse-ambient-module-declarations-from-non-modified-files.js index b30631e966001..e0a2cb5de0790 100644 --- a/tests/baselines/reference/reuseProgramStructure/can-reuse-ambient-module-declarations-from-non-modified-files.js +++ b/tests/baselines/reference/reuseProgramStructure/can-reuse-ambient-module-declarations-from-non-modified-files.js @@ -67,7 +67,9 @@ File '/fs.js' does not exist. File '/fs.jsx' does not exist. ======== Module name 'fs' was not resolved. ======== -MissingPaths:: ["lib.d.ts"] +MissingPaths:: [ + "lib.d.ts" +] @@ -114,7 +116,9 @@ declare module 'fs' {} Module 'fs' was resolved as ambient module declared in '/a/b/node.d.ts' since this file was not modified. -MissingPaths:: ["lib.d.ts"] +MissingPaths:: [ + "lib.d.ts" +] @@ -188,7 +192,9 @@ File '/fs.js' does not exist. File '/fs.jsx' does not exist. ======== Module name 'fs' was not resolved. ======== -MissingPaths:: ["lib.d.ts"] +MissingPaths:: [ + "lib.d.ts" +] /a/b/app.ts(2,21): error TS2792: Cannot find module 'fs'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? diff --git a/tests/baselines/reference/reuseProgramStructure/can-reuse-module-resolutions-from-non-modified-files.js b/tests/baselines/reference/reuseProgramStructure/can-reuse-module-resolutions-from-non-modified-files.js index 004e9587fbfad..514a18f42c628 100644 --- a/tests/baselines/reference/reuseProgramStructure/can-reuse-module-resolutions-from-non-modified-files.js +++ b/tests/baselines/reference/reuseProgramStructure/can-reuse-module-resolutions-from-non-modified-files.js @@ -230,7 +230,9 @@ Reusing resolution of type reference directive 'typerefs2' from 'f2.ts' of old p Reusing resolution of module './b2' from 'f2.ts' of old program, it was successfully resolved to 'b2.ts'. Reusing resolution of module './f1' from 'f2.ts' of old program, it was successfully resolved to 'f1.ts'. -MissingPaths:: ["lib.d.ts"] +MissingPaths:: [ + "lib.d.ts" +] a1.ts(3,5): error TS2451: Cannot redeclare block-scoped variable 'x'. a2.ts(3,5): error TS2451: Cannot redeclare block-scoped variable 'x'. @@ -328,7 +330,9 @@ Reusing resolution of type reference directive 'typerefs2' from 'f2.ts' of old p Reusing resolution of module './b2' from 'f2.ts' of old program, it was successfully resolved to 'b2.ts'. Reusing resolution of module './f1' from 'f2.ts' of old program, it was successfully resolved to 'f1.ts'. -MissingPaths:: ["lib.d.ts"] +MissingPaths:: [ + "lib.d.ts" +] a1.ts(3,5): error TS2451: Cannot redeclare block-scoped variable 'x'. a2.ts(3,5): error TS2451: Cannot redeclare block-scoped variable 'x'. @@ -426,7 +430,9 @@ Reusing resolution of type reference directive 'typerefs2' from 'f2.ts' of old p Reusing resolution of module './b2' from 'f2.ts' of old program, it was successfully resolved to 'b2.ts'. Reusing resolution of module './f1' from 'f2.ts' of old program, it was successfully resolved to 'f1.ts'. -MissingPaths:: ["lib.d.ts"] +MissingPaths:: [ + "lib.d.ts" +] a1.ts(3,5): error TS2451: Cannot redeclare block-scoped variable 'x'. a2.ts(3,5): error TS2451: Cannot redeclare block-scoped variable 'x'. @@ -520,7 +526,9 @@ Explicitly specified module resolution kind: 'Classic'. File 'b1.ts' exists - use it as a name resolution result. ======== Module name './b1' was successfully resolved to 'b1.ts'. ======== -MissingPaths:: ["lib.d.ts"] +MissingPaths:: [ + "lib.d.ts" +] a1.ts(3,5): error TS2451: Cannot redeclare block-scoped variable 'x'. a2.ts(3,5): error TS2451: Cannot redeclare block-scoped variable 'x'. @@ -618,7 +626,9 @@ Reusing resolution of type reference directive 'typerefs2' from 'f2.ts' of old p Reusing resolution of module './b2' from 'f2.ts' of old program, it was successfully resolved to 'b2.ts'. Reusing resolution of module './f1' from 'f2.ts' of old program, it was successfully resolved to 'f1.ts'. -MissingPaths:: ["lib.d.ts"] +MissingPaths:: [ + "lib.d.ts" +] a1.ts(3,5): error TS2451: Cannot redeclare block-scoped variable 'x'. a2.ts(3,5): error TS2451: Cannot redeclare block-scoped variable 'x'. @@ -703,7 +713,9 @@ Reusing resolution of type reference directive 'typerefs2' from 'f2.ts' of old p Reusing resolution of module './b2' from 'f2.ts' of old program, it was successfully resolved to 'b2.ts'. Reusing resolution of module './f1' from 'f2.ts' of old program, it was successfully resolved to 'f1.ts'. -MissingPaths:: ["lib.d.ts"] +MissingPaths:: [ + "lib.d.ts" +] a1.ts(3,5): error TS2451: Cannot redeclare block-scoped variable 'x'. a2.ts(3,5): error TS2451: Cannot redeclare block-scoped variable 'x'. diff --git a/tests/baselines/reference/reuseProgramStructure/change-affects-a-single-module-of-a-package.js b/tests/baselines/reference/reuseProgramStructure/change-affects-a-single-module-of-a-package.js index 72d2d86b7880d..7adcba0f8b2db 100644 --- a/tests/baselines/reference/reuseProgramStructure/change-affects-a-single-module-of-a-package.js +++ b/tests/baselines/reference/reuseProgramStructure/change-affects-a-single-module-of-a-package.js @@ -60,7 +60,9 @@ b: { } -MissingPaths:: ["lib.d.ts"] +MissingPaths:: [ + "lib.d.ts" +] @@ -127,7 +129,9 @@ b: { } -MissingPaths:: ["lib.d.ts"] +MissingPaths:: [ + "lib.d.ts" +] diff --git a/tests/baselines/reference/reuseProgramStructure/change-affects-imports.js b/tests/baselines/reference/reuseProgramStructure/change-affects-imports.js index 7a45a125154da..3db291a132cbe 100644 --- a/tests/baselines/reference/reuseProgramStructure/change-affects-imports.js +++ b/tests/baselines/reference/reuseProgramStructure/change-affects-imports.js @@ -32,7 +32,10 @@ typerefs: { } -MissingPaths:: ["non-existing-file.ts","lib.d.ts"] +MissingPaths:: [ + "non-existing-file.ts", + "lib.d.ts" +] a.ts(3,22): error TS6053: File 'non-existing-file.ts' not found. a.ts(4,23): error TS2688: Cannot find type definition file for 'typerefs'. @@ -82,7 +85,10 @@ typerefs: { } -MissingPaths:: ["non-existing-file.ts","lib.d.ts"] +MissingPaths:: [ + "non-existing-file.ts", + "lib.d.ts" +] a.ts(3,22): error TS6053: File 'non-existing-file.ts' not found. a.ts(4,23): error TS2688: Cannot find type definition file for 'typerefs'. diff --git a/tests/baselines/reference/reuseProgramStructure/change-affects-tripleslash-references.js b/tests/baselines/reference/reuseProgramStructure/change-affects-tripleslash-references.js index 18045e3e86b3d..975eed617936b 100644 --- a/tests/baselines/reference/reuseProgramStructure/change-affects-tripleslash-references.js +++ b/tests/baselines/reference/reuseProgramStructure/change-affects-tripleslash-references.js @@ -32,7 +32,10 @@ typerefs: { } -MissingPaths:: ["non-existing-file.ts","lib.d.ts"] +MissingPaths:: [ + "non-existing-file.ts", + "lib.d.ts" +] a.ts(3,22): error TS6053: File 'non-existing-file.ts' not found. a.ts(4,23): error TS2688: Cannot find type definition file for 'typerefs'. @@ -58,7 +61,9 @@ File: a.ts var x = 1 -MissingPaths:: ["lib.d.ts"] +MissingPaths:: [ + "lib.d.ts" +] diff --git a/tests/baselines/reference/reuseProgramStructure/change-affects-type-directives.js b/tests/baselines/reference/reuseProgramStructure/change-affects-type-directives.js index 3221fff6526dc..91db05ff83747 100644 --- a/tests/baselines/reference/reuseProgramStructure/change-affects-type-directives.js +++ b/tests/baselines/reference/reuseProgramStructure/change-affects-type-directives.js @@ -32,7 +32,10 @@ typerefs: { } -MissingPaths:: ["non-existing-file.ts","lib.d.ts"] +MissingPaths:: [ + "non-existing-file.ts", + "lib.d.ts" +] a.ts(3,22): error TS6053: File 'non-existing-file.ts' not found. a.ts(4,23): error TS2688: Cannot find type definition file for 'typerefs'. @@ -72,7 +75,10 @@ typerefs1: { } -MissingPaths:: ["non-existing-file.ts","lib.d.ts"] +MissingPaths:: [ + "non-existing-file.ts", + "lib.d.ts" +] a.ts(3,22): error TS6053: File 'non-existing-file.ts' not found. a.ts(4,23): error TS2688: Cannot find type definition file for 'typerefs1'. diff --git a/tests/baselines/reference/reuseProgramStructure/change-affects-type-references.js b/tests/baselines/reference/reuseProgramStructure/change-affects-type-references.js index b447d49cb829c..dae7716779778 100644 --- a/tests/baselines/reference/reuseProgramStructure/change-affects-type-references.js +++ b/tests/baselines/reference/reuseProgramStructure/change-affects-type-references.js @@ -45,7 +45,10 @@ a: { ] } -MissingPaths:: ["non-existing-file.ts","lib.d.ts"] +MissingPaths:: [ + "non-existing-file.ts", + "lib.d.ts" +] a.ts(3,22): error TS6053: File 'non-existing-file.ts' not found. a.ts(4,23): error TS2688: Cannot find type definition file for 'typerefs'. @@ -99,7 +102,10 @@ b: { ] } -MissingPaths:: ["non-existing-file.ts","lib.d.ts"] +MissingPaths:: [ + "non-existing-file.ts", + "lib.d.ts" +] a.ts(3,22): error TS6053: File 'non-existing-file.ts' not found. a.ts(4,23): error TS2688: Cannot find type definition file for 'typerefs'. diff --git a/tests/baselines/reference/reuseProgramStructure/change-does-not-affect-imports-or-type-refs.js b/tests/baselines/reference/reuseProgramStructure/change-does-not-affect-imports-or-type-refs.js index b1167cc20c170..358c57df5ec52 100644 --- a/tests/baselines/reference/reuseProgramStructure/change-does-not-affect-imports-or-type-refs.js +++ b/tests/baselines/reference/reuseProgramStructure/change-does-not-affect-imports-or-type-refs.js @@ -32,7 +32,10 @@ typerefs: { } -MissingPaths:: ["non-existing-file.ts","lib.d.ts"] +MissingPaths:: [ + "non-existing-file.ts", + "lib.d.ts" +] a.ts(3,22): error TS6053: File 'non-existing-file.ts' not found. a.ts(4,23): error TS2688: Cannot find type definition file for 'typerefs'. @@ -73,7 +76,10 @@ typerefs: { } -MissingPaths:: ["non-existing-file.ts","lib.d.ts"] +MissingPaths:: [ + "non-existing-file.ts", + "lib.d.ts" +] a.ts(3,22): error TS6053: File 'non-existing-file.ts' not found. a.ts(4,23): error TS2688: Cannot find type definition file for 'typerefs'. diff --git a/tests/baselines/reference/reuseProgramStructure/change-doesnot-affect-type-references.js b/tests/baselines/reference/reuseProgramStructure/change-doesnot-affect-type-references.js index 6f5da2221ba36..caa57f5c989ca 100644 --- a/tests/baselines/reference/reuseProgramStructure/change-doesnot-affect-type-references.js +++ b/tests/baselines/reference/reuseProgramStructure/change-doesnot-affect-type-references.js @@ -45,7 +45,10 @@ a: { ] } -MissingPaths:: ["non-existing-file.ts","lib.d.ts"] +MissingPaths:: [ + "non-existing-file.ts", + "lib.d.ts" +] a.ts(3,22): error TS6053: File 'non-existing-file.ts' not found. a.ts(4,23): error TS2688: Cannot find type definition file for 'typerefs'. @@ -99,7 +102,10 @@ a: { ] } -MissingPaths:: ["non-existing-file.ts","lib.d.ts"] +MissingPaths:: [ + "non-existing-file.ts", + "lib.d.ts" +] a.ts(3,22): error TS6053: File 'non-existing-file.ts' not found. a.ts(4,23): error TS2688: Cannot find type definition file for 'typerefs'. diff --git a/tests/baselines/reference/reuseProgramStructure/config-path-changes.js b/tests/baselines/reference/reuseProgramStructure/config-path-changes.js index f30dbc1a16f5c..7608a460c1017 100644 --- a/tests/baselines/reference/reuseProgramStructure/config-path-changes.js +++ b/tests/baselines/reference/reuseProgramStructure/config-path-changes.js @@ -36,7 +36,10 @@ typerefs: { } -MissingPaths:: ["non-existing-file.ts","lib.d.ts"] +MissingPaths:: [ + "non-existing-file.ts", + "lib.d.ts" +] a.ts(3,22): error TS6053: File 'non-existing-file.ts' not found. a.ts(4,23): error TS2688: Cannot find type definition file for 'typerefs'. @@ -81,7 +84,10 @@ typerefs: { } -MissingPaths:: ["non-existing-file.ts","lib.d.ts"] +MissingPaths:: [ + "non-existing-file.ts", + "lib.d.ts" +] a.ts(3,22): error TS6053: File 'non-existing-file.ts' not found. a.ts(4,23): error TS2688: Cannot find type definition file for 'typerefs'. diff --git a/tests/baselines/reference/reuseProgramStructure/fetches-imports-after-npm-install.js b/tests/baselines/reference/reuseProgramStructure/fetches-imports-after-npm-install.js index a5bf5df5b7cc6..a238d15384f72 100644 --- a/tests/baselines/reference/reuseProgramStructure/fetches-imports-after-npm-install.js +++ b/tests/baselines/reference/reuseProgramStructure/fetches-imports-after-npm-install.js @@ -52,7 +52,9 @@ File 'node_modules/a/index.js' does not exist. File 'node_modules/a/index.jsx' does not exist. ======== Module name 'a' was not resolved. ======== -MissingPaths:: ["lib.d.ts"] +MissingPaths:: [ + "lib.d.ts" +] file1.ts(2,20): error TS2307: Cannot find module 'a' or its corresponding type declarations. diff --git a/tests/baselines/reference/reuseProgramStructure/missing-file-is-created.js b/tests/baselines/reference/reuseProgramStructure/missing-file-is-created.js index e44d249ea7933..281b3fa52a82c 100644 --- a/tests/baselines/reference/reuseProgramStructure/missing-file-is-created.js +++ b/tests/baselines/reference/reuseProgramStructure/missing-file-is-created.js @@ -32,7 +32,9 @@ typerefs: { } -MissingPaths:: ["non-existing-file.ts"] +MissingPaths:: [ + "non-existing-file.ts" +] a.ts(3,22): error TS6053: File 'non-existing-file.ts' not found. a.ts(4,23): error TS2688: Cannot find type definition file for 'typerefs'. diff --git a/tests/baselines/reference/reuseProgramStructure/missing-files-remain-missing.js b/tests/baselines/reference/reuseProgramStructure/missing-files-remain-missing.js index 8a34bd96c9685..17543c39f00e4 100644 --- a/tests/baselines/reference/reuseProgramStructure/missing-files-remain-missing.js +++ b/tests/baselines/reference/reuseProgramStructure/missing-files-remain-missing.js @@ -32,7 +32,9 @@ typerefs: { } -MissingPaths:: ["non-existing-file.ts"] +MissingPaths:: [ + "non-existing-file.ts" +] a.ts(3,22): error TS6053: File 'non-existing-file.ts' not found. a.ts(4,23): error TS2688: Cannot find type definition file for 'typerefs'. @@ -73,7 +75,9 @@ typerefs: { } -MissingPaths:: ["non-existing-file.ts"] +MissingPaths:: [ + "non-existing-file.ts" +] a.ts(3,22): error TS6053: File 'non-existing-file.ts' not found. a.ts(4,23): error TS2688: Cannot find type definition file for 'typerefs'. diff --git a/tests/baselines/reference/reuseProgramStructure/module-kind-changes.js b/tests/baselines/reference/reuseProgramStructure/module-kind-changes.js index 0fd85855f91ad..f89808a1ea164 100644 --- a/tests/baselines/reference/reuseProgramStructure/module-kind-changes.js +++ b/tests/baselines/reference/reuseProgramStructure/module-kind-changes.js @@ -32,7 +32,10 @@ typerefs: { } -MissingPaths:: ["non-existing-file.ts","lib.d.ts"] +MissingPaths:: [ + "non-existing-file.ts", + "lib.d.ts" +] a.ts(3,22): error TS6053: File 'non-existing-file.ts' not found. a.ts(4,23): error TS2688: Cannot find type definition file for 'typerefs'. @@ -73,7 +76,10 @@ typerefs: { } -MissingPaths:: ["non-existing-file.ts","lib.d.ts"] +MissingPaths:: [ + "non-existing-file.ts", + "lib.d.ts" +] a.ts(3,22): error TS6053: File 'non-existing-file.ts' not found. a.ts(4,23): error TS2688: Cannot find type definition file for 'typerefs'. diff --git a/tests/baselines/reference/reuseProgramStructure/redirect-no-change.js b/tests/baselines/reference/reuseProgramStructure/redirect-no-change.js index 60ced1319f6d8..7658653c5fc75 100644 --- a/tests/baselines/reference/reuseProgramStructure/redirect-no-change.js +++ b/tests/baselines/reference/reuseProgramStructure/redirect-no-change.js @@ -106,7 +106,9 @@ b: { } -MissingPaths:: ["lib.d.ts"] +MissingPaths:: [ + "lib.d.ts" +] @@ -219,7 +221,9 @@ b: { } -MissingPaths:: ["lib.d.ts"] +MissingPaths:: [ + "lib.d.ts" +] diff --git a/tests/baselines/reference/reuseProgramStructure/redirect-previous-duplicate-packages.js b/tests/baselines/reference/reuseProgramStructure/redirect-previous-duplicate-packages.js index e494ceb849635..35fab4bb660fa 100644 --- a/tests/baselines/reference/reuseProgramStructure/redirect-previous-duplicate-packages.js +++ b/tests/baselines/reference/reuseProgramStructure/redirect-previous-duplicate-packages.js @@ -106,7 +106,9 @@ b: { } -MissingPaths:: ["lib.d.ts"] +MissingPaths:: [ + "lib.d.ts" +] /node_modules/b/index.d.ts(2,8): error TS1259: Module '"/node_modules/b/node_modules/x/index"' can only be default-imported using the 'allowSyntheticDefaultImports' flag /node_modules/b/node_modules/x/index.d.ts(3,16): error TS2714: The expression of an export assignment must be an identifier or qualified name in an ambient context. @@ -221,7 +223,9 @@ b: { } -MissingPaths:: ["lib.d.ts"] +MissingPaths:: [ + "lib.d.ts" +] diff --git a/tests/baselines/reference/reuseProgramStructure/redirect-target-changes.js b/tests/baselines/reference/reuseProgramStructure/redirect-target-changes.js index 49716296d4bcf..9a3a6bbd321ef 100644 --- a/tests/baselines/reference/reuseProgramStructure/redirect-target-changes.js +++ b/tests/baselines/reference/reuseProgramStructure/redirect-target-changes.js @@ -106,7 +106,9 @@ b: { } -MissingPaths:: ["lib.d.ts"] +MissingPaths:: [ + "lib.d.ts" +] @@ -214,7 +216,9 @@ b: { } -MissingPaths:: ["lib.d.ts"] +MissingPaths:: [ + "lib.d.ts" +] /a.ts(3,3): error TS2345: Argument of type 'import("/node_modules/b/node_modules/x/index").default' is not assignable to parameter of type 'import("/node_modules/a/node_modules/x/index").default'. Property 'y' is missing in type 'import("/node_modules/b/node_modules/x/index").default' but required in type 'import("/node_modules/a/node_modules/x/index").default'. diff --git a/tests/baselines/reference/reuseProgramStructure/redirect-underlying-changes.js b/tests/baselines/reference/reuseProgramStructure/redirect-underlying-changes.js index 8266c0b0a8c18..415b2885b5a77 100644 --- a/tests/baselines/reference/reuseProgramStructure/redirect-underlying-changes.js +++ b/tests/baselines/reference/reuseProgramStructure/redirect-underlying-changes.js @@ -106,7 +106,9 @@ b: { } -MissingPaths:: ["lib.d.ts"] +MissingPaths:: [ + "lib.d.ts" +] @@ -219,7 +221,9 @@ b: { } -MissingPaths:: ["lib.d.ts"] +MissingPaths:: [ + "lib.d.ts" +] /a.ts(3,3): error TS2345: Argument of type 'import("/node_modules/b/node_modules/x/index").default' is not assignable to parameter of type 'import("/node_modules/a/node_modules/x/index").default'. Types have separate declarations of a private property 'x'. diff --git a/tests/baselines/reference/reuseProgramStructure/redirect-with-getSourceFileByPath-no-change.js b/tests/baselines/reference/reuseProgramStructure/redirect-with-getSourceFileByPath-no-change.js index 60ced1319f6d8..7658653c5fc75 100644 --- a/tests/baselines/reference/reuseProgramStructure/redirect-with-getSourceFileByPath-no-change.js +++ b/tests/baselines/reference/reuseProgramStructure/redirect-with-getSourceFileByPath-no-change.js @@ -106,7 +106,9 @@ b: { } -MissingPaths:: ["lib.d.ts"] +MissingPaths:: [ + "lib.d.ts" +] @@ -219,7 +221,9 @@ b: { } -MissingPaths:: ["lib.d.ts"] +MissingPaths:: [ + "lib.d.ts" +] diff --git a/tests/baselines/reference/reuseProgramStructure/redirect-with-getSourceFileByPath-previous-duplicate-packages.js b/tests/baselines/reference/reuseProgramStructure/redirect-with-getSourceFileByPath-previous-duplicate-packages.js index e494ceb849635..35fab4bb660fa 100644 --- a/tests/baselines/reference/reuseProgramStructure/redirect-with-getSourceFileByPath-previous-duplicate-packages.js +++ b/tests/baselines/reference/reuseProgramStructure/redirect-with-getSourceFileByPath-previous-duplicate-packages.js @@ -106,7 +106,9 @@ b: { } -MissingPaths:: ["lib.d.ts"] +MissingPaths:: [ + "lib.d.ts" +] /node_modules/b/index.d.ts(2,8): error TS1259: Module '"/node_modules/b/node_modules/x/index"' can only be default-imported using the 'allowSyntheticDefaultImports' flag /node_modules/b/node_modules/x/index.d.ts(3,16): error TS2714: The expression of an export assignment must be an identifier or qualified name in an ambient context. @@ -221,7 +223,9 @@ b: { } -MissingPaths:: ["lib.d.ts"] +MissingPaths:: [ + "lib.d.ts" +] diff --git a/tests/baselines/reference/reuseProgramStructure/redirect-with-getSourceFileByPath-target-changes.js b/tests/baselines/reference/reuseProgramStructure/redirect-with-getSourceFileByPath-target-changes.js index 49716296d4bcf..9a3a6bbd321ef 100644 --- a/tests/baselines/reference/reuseProgramStructure/redirect-with-getSourceFileByPath-target-changes.js +++ b/tests/baselines/reference/reuseProgramStructure/redirect-with-getSourceFileByPath-target-changes.js @@ -106,7 +106,9 @@ b: { } -MissingPaths:: ["lib.d.ts"] +MissingPaths:: [ + "lib.d.ts" +] @@ -214,7 +216,9 @@ b: { } -MissingPaths:: ["lib.d.ts"] +MissingPaths:: [ + "lib.d.ts" +] /a.ts(3,3): error TS2345: Argument of type 'import("/node_modules/b/node_modules/x/index").default' is not assignable to parameter of type 'import("/node_modules/a/node_modules/x/index").default'. Property 'y' is missing in type 'import("/node_modules/b/node_modules/x/index").default' but required in type 'import("/node_modules/a/node_modules/x/index").default'. diff --git a/tests/baselines/reference/reuseProgramStructure/redirect-with-getSourceFileByPath-underlying-changes.js b/tests/baselines/reference/reuseProgramStructure/redirect-with-getSourceFileByPath-underlying-changes.js index 8266c0b0a8c18..415b2885b5a77 100644 --- a/tests/baselines/reference/reuseProgramStructure/redirect-with-getSourceFileByPath-underlying-changes.js +++ b/tests/baselines/reference/reuseProgramStructure/redirect-with-getSourceFileByPath-underlying-changes.js @@ -106,7 +106,9 @@ b: { } -MissingPaths:: ["lib.d.ts"] +MissingPaths:: [ + "lib.d.ts" +] @@ -219,7 +221,9 @@ b: { } -MissingPaths:: ["lib.d.ts"] +MissingPaths:: [ + "lib.d.ts" +] /a.ts(3,3): error TS2345: Argument of type 'import("/node_modules/b/node_modules/x/index").default' is not assignable to parameter of type 'import("/node_modules/a/node_modules/x/index").default'. Types have separate declarations of a private property 'x'. diff --git a/tests/baselines/reference/reuseProgramStructure/resolution-cache-follows-imports.js b/tests/baselines/reference/reuseProgramStructure/resolution-cache-follows-imports.js index 749a3ee2c2061..81d9d56b21ae5 100644 --- a/tests/baselines/reference/reuseProgramStructure/resolution-cache-follows-imports.js +++ b/tests/baselines/reference/reuseProgramStructure/resolution-cache-follows-imports.js @@ -19,7 +19,9 @@ b: { } -MissingPaths:: ["lib.d.ts"] +MissingPaths:: [ + "lib.d.ts" +] a.ts(2,17): error TS2306: File 'b.ts' is not a module. @@ -46,7 +48,9 @@ b: { } -MissingPaths:: ["lib.d.ts"] +MissingPaths:: [ + "lib.d.ts" +] a.ts(2,17): error TS2306: File 'b.ts' is not a module. @@ -59,7 +63,9 @@ File: a.ts var x = 2 -MissingPaths:: ["lib.d.ts"] +MissingPaths:: [ + "lib.d.ts" +] @@ -99,7 +105,9 @@ c: { } -MissingPaths:: ["lib.d.ts"] +MissingPaths:: [ + "lib.d.ts" +] a.ts(2,15): error TS2306: File 'b.ts' is not a module. a.ts(3,31): error TS2792: Cannot find module 'c'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? diff --git a/tests/baselines/reference/reuseProgramStructure/resolved-type-directives-cache-follows-type-directives.js b/tests/baselines/reference/reuseProgramStructure/resolved-type-directives-cache-follows-type-directives.js index d99269c37cbd8..7ed3ff6eba2d3 100644 --- a/tests/baselines/reference/reuseProgramStructure/resolved-type-directives-cache-follows-type-directives.js +++ b/tests/baselines/reference/reuseProgramStructure/resolved-type-directives-cache-follows-type-directives.js @@ -22,7 +22,9 @@ typedefs: { } -MissingPaths:: ["lib.d.ts"] +MissingPaths:: [ + "lib.d.ts" +] @@ -51,7 +53,9 @@ typedefs: { } -MissingPaths:: ["lib.d.ts"] +MissingPaths:: [ + "lib.d.ts" +] @@ -63,7 +67,9 @@ File: /a.ts var x = 2 -MissingPaths:: ["lib.d.ts"] +MissingPaths:: [ + "lib.d.ts" +] @@ -107,7 +113,9 @@ typedefs2: { } -MissingPaths:: ["lib.d.ts"] +MissingPaths:: [ + "lib.d.ts" +] /a.ts(2,39): error TS2688: Cannot find type definition file for 'typedefs2'. diff --git a/tests/baselines/reference/reuseProgramStructure/resolvedImports-after-re-using-an-ambient-external-module-declaration.js b/tests/baselines/reference/reuseProgramStructure/resolvedImports-after-re-using-an-ambient-external-module-declaration.js index 9beb9e804df80..94e20f8c9ca33 100644 --- a/tests/baselines/reference/reuseProgramStructure/resolvedImports-after-re-using-an-ambient-external-module-declaration.js +++ b/tests/baselines/reference/reuseProgramStructure/resolvedImports-after-re-using-an-ambient-external-module-declaration.js @@ -14,7 +14,9 @@ a: { } -MissingPaths:: ["lib.d.ts"] +MissingPaths:: [ + "lib.d.ts" +] @@ -35,7 +37,9 @@ a: { } -MissingPaths:: ["lib.d.ts"] +MissingPaths:: [ + "lib.d.ts" +] diff --git a/tests/baselines/reference/reuseProgramStructure/rootdir-changes.js b/tests/baselines/reference/reuseProgramStructure/rootdir-changes.js index 95e201cc9925c..72c9fc904bc3b 100644 --- a/tests/baselines/reference/reuseProgramStructure/rootdir-changes.js +++ b/tests/baselines/reference/reuseProgramStructure/rootdir-changes.js @@ -32,7 +32,10 @@ typerefs: { } -MissingPaths:: ["non-existing-file.ts","lib.d.ts"] +MissingPaths:: [ + "non-existing-file.ts", + "lib.d.ts" +] a.ts(2,22): error TS6059: File 'b.ts' is not under 'rootDir' '/a/b'. 'rootDir' is expected to contain all source files. a.ts(3,22): error TS6053: File 'non-existing-file.ts' not found. @@ -75,7 +78,10 @@ typerefs: { } -MissingPaths:: ["non-existing-file.ts","lib.d.ts"] +MissingPaths:: [ + "non-existing-file.ts", + "lib.d.ts" +] a.ts(2,22): error TS6059: File 'b.ts' is not under 'rootDir' '/a/c'. 'rootDir' is expected to contain all source files. a.ts(3,22): error TS6053: File 'non-existing-file.ts' not found. diff --git a/tests/baselines/reference/reuseProgramStructure/works-with-updated-SourceFiles.js b/tests/baselines/reference/reuseProgramStructure/works-with-updated-SourceFiles.js index 99e81c6693ea3..ea315d07916c4 100644 --- a/tests/baselines/reference/reuseProgramStructure/works-with-updated-SourceFiles.js +++ b/tests/baselines/reference/reuseProgramStructure/works-with-updated-SourceFiles.js @@ -14,7 +14,9 @@ a: { } -MissingPaths:: ["lib.d.ts"] +MissingPaths:: [ + "lib.d.ts" +] @@ -36,7 +38,9 @@ a: { } -MissingPaths:: ["lib.d.ts"] +MissingPaths:: [ + "lib.d.ts" +] diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/modules-and-globals-mixed-in-amd.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/modules-and-globals-mixed-in-amd.js index 567ccb0295e14..014b8a37247e8 100644 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/modules-and-globals-mixed-in-amd.js +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/modules-and-globals-mixed-in-amd.js @@ -16,28 +16,34 @@ interface ReadonlyArray {} declare const console: { log(msg: any): void; }; //// [/src/app/file3.ts] -export const z = 30; -import { x } from "file1"; +export const z = 30; +import { x } from "file1"; + //// [/src/app/file4.ts] const myVar = 30; //// [/src/app/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "module": "amd", - "composite": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "outFile": "module.js" - }, - "exclude": ["module.d.ts"], - "references": [ - { "path": "../lib", "prepend": true } - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "module": "amd", + "composite": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "outFile": "module.js" + }, + "exclude": [ + "module.d.ts" + ], + "references": [ + { + "path": "../lib", + "prepend": true + } + ] } //// [/src/lib/file0.ts] @@ -53,35 +59,36 @@ export const y = 20; const globalConst = 10; //// [/src/lib/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "module": "amd", - "composite": true, - "sourceMap": true, - "declarationMap": true, - "strict": false, - "outFile": "module.js" - }, - "exclude": ["module.d.ts"] - +{ + "compilerOptions": { + "target": "es5", + "module": "amd", + "composite": true, + "sourceMap": true, + "declarationMap": true, + "strict": false, + "outFile": "module.js" + }, + "exclude": [ + "module.d.ts" + ] } Output:: /lib/tsc --b /src/app --verbose -[12:00:06 AM] Projects in this build: +[12:00:16 AM] Projects in this build: * src/lib/tsconfig.json * src/app/tsconfig.json -[12:00:07 AM] Project 'src/lib/tsconfig.json' is out of date because output file 'src/lib/module.tsbuildinfo' does not exist +[12:00:17 AM] Project 'src/lib/tsconfig.json' is out of date because output file 'src/lib/module.tsbuildinfo' does not exist -[12:00:08 AM] Building project '/src/lib/tsconfig.json'... +[12:00:18 AM] Building project '/src/lib/tsconfig.json'... -[12:00:17 AM] Project 'src/app/tsconfig.json' is out of date because output file 'src/app/module.tsbuildinfo' does not exist +[12:00:27 AM] Project 'src/app/tsconfig.json' is out of date because output file 'src/app/module.tsbuildinfo' does not exist -[12:00:18 AM] Building project '/src/app/tsconfig.json'... +[12:00:28 AM] Building project '/src/app/tsconfig.json'... exitCode:: ExitStatus.Success @@ -472,7 +479,7 @@ sourceFile:file4.ts >>>//# sourceMappingURL=module.js.map //// [/src/app/module.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file3.ts","./file4.ts"],"js":{"sections":[{"pos":0,"end":445,"kind":"prepend","data":"../lib/module.js","texts":[{"pos":0,"end":445,"kind":"text"}]},{"pos":445,"end":664,"kind":"text"}],"mapHash":"5108062215-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\"AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;ICAL,QAAA,CAAC,GAAG,EAAE,CAAC;;;;;;ICAP,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,KAAK,GAAG,EAAE,CAAC\"}","hash":"8716820086-var myGlob = 20;\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.x = void 0;\n exports.x = 10;\n});\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.y = void 0;\n exports.y = 20;\n});\nvar globalConst = 10;\ndefine(\"file3\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.z = void 0;\n exports.z = 30;\n});\nvar myVar = 30;\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":0,"end":163,"kind":"prepend","data":"../lib/module.d.ts","texts":[{"pos":0,"end":163,"kind":"text"}]},{"pos":163,"end":241,"kind":"text"}],"mapHash":"-41254439122-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\"AAAA,QAAA,MAAM,MAAM,KAAK,CAAC;;ICAlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICAvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,KAAK,KAAK,CAAC\"}","hash":"11992050152-declare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../lib/module.d.ts","./file3.ts","./file4.ts"],"fileInfos":["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; };","29754794677-declare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\n","-2588783191-export const z = 30;\r\nimport { x } from \"file1\";","1463681686-const myVar = 30;"],"root":[3,4],"options":{"composite":true,"declarationMap":true,"module":2,"outFile":"./module.js","sourceMap":true,"strict":false,"target":1},"outSignature":"21172764033-declare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\n","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file3.ts","./file4.ts"],"js":{"sections":[{"pos":0,"end":445,"kind":"prepend","data":"../lib/module.js","texts":[{"pos":0,"end":445,"kind":"text"}]},{"pos":445,"end":664,"kind":"text"}],"mapHash":"5108062215-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\"AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;ICAL,QAAA,CAAC,GAAG,EAAE,CAAC;;;;;;ICAP,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,KAAK,GAAG,EAAE,CAAC\"}","hash":"8716820086-var myGlob = 20;\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.x = void 0;\n exports.x = 10;\n});\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.y = void 0;\n exports.y = 20;\n});\nvar globalConst = 10;\ndefine(\"file3\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.z = void 0;\n exports.z = 30;\n});\nvar myVar = 30;\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":0,"end":163,"kind":"prepend","data":"../lib/module.d.ts","texts":[{"pos":0,"end":163,"kind":"text"}]},{"pos":163,"end":241,"kind":"text"}],"mapHash":"-41254439122-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\"AAAA,QAAA,MAAM,MAAM,KAAK,CAAC;;ICAlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICAvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,KAAK,KAAK,CAAC\"}","hash":"11992050152-declare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../lib/module.d.ts","./file3.ts","./file4.ts"],"fileInfos":["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; };","29754794677-declare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\n","-10505171738-export const z = 30;\nimport { x } from \"file1\";\n","1463681686-const myVar = 30;"],"root":[3,4],"options":{"composite":true,"declarationMap":true,"module":2,"outFile":"./module.js","sourceMap":true,"strict":false,"target":1},"outSignature":"21172764033-declare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\n","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} //// [/src/app/module.tsbuildinfo.baseline.txt] ====================================================================== @@ -598,7 +605,7 @@ declare const myVar = 30; "fileInfos": { "../../lib/lib.d.ts": "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; };", "../lib/module.d.ts": "29754794677-declare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\n", - "./file3.ts": "-2588783191-export const z = 30;\r\nimport { x } from \"file1\";", + "./file3.ts": "-10505171738-export const z = 30;\nimport { x } from \"file1\";\n", "./file4.ts": "1463681686-const myVar = 30;" }, "root": [ @@ -624,7 +631,7 @@ declare const myVar = 30; "latestChangedDtsFile": "./module.d.ts" }, "version": "FakeTSVersion", - "size": 3705 + "size": 3706 } //// [/src/lib/module.d.ts] @@ -1022,17 +1029,17 @@ export const x = 10;console.log(x); Output:: /lib/tsc --b /src/app --verbose -[12:00:32 AM] Projects in this build: +[12:00:42 AM] Projects in this build: * src/lib/tsconfig.json * src/app/tsconfig.json -[12:00:33 AM] Project 'src/lib/tsconfig.json' is out of date because output 'src/lib/module.tsbuildinfo' is older than input 'src/lib/file1.ts' +[12:00:43 AM] Project 'src/lib/tsconfig.json' is out of date because output 'src/lib/module.tsbuildinfo' is older than input 'src/lib/file1.ts' -[12:00:34 AM] Building project '/src/lib/tsconfig.json'... +[12:00:44 AM] Building project '/src/lib/tsconfig.json'... -[12:00:42 AM] Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed +[12:00:52 AM] Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed -[12:00:43 AM] Updating output of project '/src/app/tsconfig.json'... +[12:00:53 AM] Updating output of project '/src/app/tsconfig.json'... exitCode:: ExitStatus.Success @@ -1264,7 +1271,7 @@ sourceFile:file4.ts >>>//# sourceMappingURL=module.js.map //// [/src/app/module.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file3.ts","./file4.ts"],"js":{"sections":[{"pos":0,"end":473,"kind":"prepend","data":"../lib/module.js","texts":[{"pos":0,"end":473,"kind":"text"}]},{"pos":473,"end":692,"kind":"text"}],"mapHash":"-3706363920-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\"AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;ICAL,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;;ICAtB,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,KAAK,GAAG,EAAE,CAAC\"}","hash":"-22725808438-var myGlob = 20;\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.x = void 0;\n exports.x = 10;\n console.log(exports.x);\n});\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.y = void 0;\n exports.y = 20;\n});\nvar globalConst = 10;\ndefine(\"file3\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.z = void 0;\n exports.z = 30;\n});\nvar myVar = 30;\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":0,"end":163,"kind":"prepend","data":"../lib/module.d.ts","texts":[{"pos":0,"end":163,"kind":"text"}]},{"pos":163,"end":241,"kind":"text"}],"mapHash":"-41254439122-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\"AAAA,QAAA,MAAM,MAAM,KAAK,CAAC;;ICAlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICAvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,KAAK,KAAK,CAAC\"}","hash":"11992050152-declare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../lib/module.d.ts","./file3.ts","./file4.ts"],"fileInfos":["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; };","29754794677-declare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\n","-2588783191-export const z = 30;\r\nimport { x } from \"file1\";","1463681686-const myVar = 30;"],"root":[3,4],"options":{"composite":true,"declarationMap":true,"module":2,"outFile":"./module.js","sourceMap":true,"strict":false,"target":1},"outSignature":"21172764033-declare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\n","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file3.ts","./file4.ts"],"js":{"sections":[{"pos":0,"end":473,"kind":"prepend","data":"../lib/module.js","texts":[{"pos":0,"end":473,"kind":"text"}]},{"pos":473,"end":692,"kind":"text"}],"mapHash":"-3706363920-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\"AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;ICAL,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;;ICAtB,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,KAAK,GAAG,EAAE,CAAC\"}","hash":"-22725808438-var myGlob = 20;\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.x = void 0;\n exports.x = 10;\n console.log(exports.x);\n});\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.y = void 0;\n exports.y = 20;\n});\nvar globalConst = 10;\ndefine(\"file3\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.z = void 0;\n exports.z = 30;\n});\nvar myVar = 30;\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":0,"end":163,"kind":"prepend","data":"../lib/module.d.ts","texts":[{"pos":0,"end":163,"kind":"text"}]},{"pos":163,"end":241,"kind":"text"}],"mapHash":"-41254439122-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\"AAAA,QAAA,MAAM,MAAM,KAAK,CAAC;;ICAlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICAvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,KAAK,KAAK,CAAC\"}","hash":"11992050152-declare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../lib/module.d.ts","./file3.ts","./file4.ts"],"fileInfos":["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; };","29754794677-declare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\n","-10505171738-export const z = 30;\nimport { x } from \"file1\";\n","1463681686-const myVar = 30;"],"root":[3,4],"options":{"composite":true,"declarationMap":true,"module":2,"outFile":"./module.js","sourceMap":true,"strict":false,"target":1},"outSignature":"21172764033-declare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\n","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} //// [/src/app/module.tsbuildinfo.baseline.txt] ====================================================================== @@ -1391,7 +1398,7 @@ declare const myVar = 30; "fileInfos": { "../../lib/lib.d.ts": "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; };", "../lib/module.d.ts": "29754794677-declare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\n", - "./file3.ts": "-2588783191-export const z = 30;\r\nimport { x } from \"file1\";", + "./file3.ts": "-10505171738-export const z = 30;\nimport { x } from \"file1\";\n", "./file4.ts": "1463681686-const myVar = 30;" }, "root": [ @@ -1417,7 +1424,7 @@ declare const myVar = 30; "latestChangedDtsFile": "./module.d.ts" }, "version": "FakeTSVersion", - "size": 3778 + "size": 3779 } //// [/src/lib/module.d.ts.map] file written with same contents diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/multiple-emitHelpers-in-all-projects.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/multiple-emitHelpers-in-all-projects.js index afc3828d7257f..60fcfc44c122b 100644 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/multiple-emitHelpers-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/multiple-emitHelpers-in-all-projects.js @@ -16,8 +16,9 @@ interface ReadonlyArray {} declare const console: { log(msg: any): void; }; //// [/src/app/file3.ts] -export const z = 30; -import { x } from "file1";function forappfile3Rest() { +export const z = 30; +import { x } from "file1"; +function forappfile3Rest() { const { b, ...rest } = { a: 10, b: 30, yy: 30 }; } @@ -28,22 +29,27 @@ const appfile4_ar = [20, 30]; appfile4Spread(10, ...appfile4_ar); //// [/src/app/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "module": "amd", - "composite": true, - "strict": false, - "downlevelIteration": true, - "sourceMap": true, - "declarationMap": true, - "outFile": "module.js" - }, - "exclude": ["module.d.ts"], - "references": [ - { "path": "../lib", "prepend": true } - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "module": "amd", + "composite": true, + "strict": false, + "downlevelIteration": true, + "sourceMap": true, + "declarationMap": true, + "outFile": "module.js" + }, + "exclude": [ + "module.d.ts" + ], + "references": [ + { + "path": "../lib", + "prepend": true + } + ] } //// [/src/lib/file0.ts] @@ -64,36 +70,37 @@ export const y = 20; const globalConst = 10; //// [/src/lib/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "module": "amd", - "composite": true, - "sourceMap": true, - "declarationMap": true, - "strict": false, - "downlevelIteration": true, - "outFile": "module.js" - }, - "exclude": ["module.d.ts"] - +{ + "compilerOptions": { + "target": "es5", + "module": "amd", + "composite": true, + "sourceMap": true, + "declarationMap": true, + "strict": false, + "downlevelIteration": true, + "outFile": "module.js" + }, + "exclude": [ + "module.d.ts" + ] } Output:: /lib/tsc --b /src/app --verbose -[12:00:12 AM] Projects in this build: +[12:00:22 AM] Projects in this build: * src/lib/tsconfig.json * src/app/tsconfig.json -[12:00:13 AM] Project 'src/lib/tsconfig.json' is out of date because output file 'src/lib/module.tsbuildinfo' does not exist +[12:00:23 AM] Project 'src/lib/tsconfig.json' is out of date because output file 'src/lib/module.tsbuildinfo' does not exist -[12:00:14 AM] Building project '/src/lib/tsconfig.json'... +[12:00:24 AM] Building project '/src/lib/tsconfig.json'... -[12:00:23 AM] Project 'src/app/tsconfig.json' is out of date because output file 'src/app/module.tsbuildinfo' does not exist +[12:00:33 AM] Project 'src/app/tsconfig.json' is out of date because output file 'src/app/module.tsbuildinfo' does not exist -[12:00:24 AM] Building project '/src/app/tsconfig.json'... +[12:00:34 AM] Building project '/src/app/tsconfig.json'... exitCode:: ExitStatus.Success @@ -475,7 +482,7 @@ appfile4Spread.apply(void 0, __spreadArray([10], __read(appfile4_ar), false)); //# sourceMappingURL=module.js.map //// [/src/app/module.js.map] -{"version":3,"file":"module.js","sourceRoot":"","sources":["../lib/file0.ts","../lib/file1.ts","../lib/file2.ts","../lib/global.ts","file3.ts","file4.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;AAClB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,IAAM,WAAW,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC7B,cAAc,8BAAC,EAAE,UAAK,WAAW,WAAE;;;;;ICHtB,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,SAAS,eAAe;QAC5C,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;IAChD,CAAC;;;;;;ICFY,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;IACM,SAAS,eAAe;QAClD,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;IAChD,CAAC;;ACHD,IAAM,KAAK,GAAG,EAAE,CAAC;AACjB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,IAAM,WAAW,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC7B,cAAc,8BAAC,EAAE,UAAK,WAAW,WAAE"} +{"version":3,"file":"module.js","sourceRoot":"","sources":["../lib/file0.ts","../lib/file1.ts","../lib/file2.ts","../lib/global.ts","file3.ts","file4.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;AAClB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,IAAM,WAAW,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC7B,cAAc,8BAAC,EAAE,UAAK,WAAW,WAAE;;;;;ICHtB,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,SAAS,eAAe;QAC5C,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;IAChD,CAAC;;;;;;ICFY,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;IAEpB,SAAS,eAAe;QACxB,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;IAChD,CAAC;;ACJD,IAAM,KAAK,GAAG,EAAE,CAAC;AACjB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,IAAM,WAAW,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC7B,cAAc,8BAAC,EAAE,UAAK,WAAW,WAAE"} //// [/src/app/module.js.map.baseline.txt] =================================================================== @@ -879,13 +886,14 @@ sourceFile:file3.ts 2 > ^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - >import { x } from "file1"; +1-> + >import { x } from "file1"; + > 2 > function 3 > forappfile3Rest -1->Emitted(67, 5) Source(2, 27) + SourceIndex(4) -2 >Emitted(67, 14) Source(2, 36) + SourceIndex(4) -3 >Emitted(67, 29) Source(2, 51) + SourceIndex(4) +1->Emitted(67, 5) Source(3, 1) + SourceIndex(4) +2 >Emitted(67, 14) Source(3, 10) + SourceIndex(4) +3 >Emitted(67, 29) Source(3, 25) + SourceIndex(4) --- >>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); 1->^^^^^^^^ @@ -939,31 +947,31 @@ sourceFile:file3.ts 23> { b, ...rest } 24> = { a: 10, b: 30, yy: 30 } 25> ; -1->Emitted(68, 9) Source(3, 1) + SourceIndex(4) -2 >Emitted(68, 13) Source(3, 7) + SourceIndex(4) -3 >Emitted(68, 18) Source(3, 24) + SourceIndex(4) -4 >Emitted(68, 20) Source(3, 26) + SourceIndex(4) -5 >Emitted(68, 21) Source(3, 27) + SourceIndex(4) -6 >Emitted(68, 23) Source(3, 29) + SourceIndex(4) -7 >Emitted(68, 25) Source(3, 31) + SourceIndex(4) -8 >Emitted(68, 27) Source(3, 33) + SourceIndex(4) -9 >Emitted(68, 28) Source(3, 34) + SourceIndex(4) -10>Emitted(68, 30) Source(3, 36) + SourceIndex(4) -11>Emitted(68, 32) Source(3, 38) + SourceIndex(4) -12>Emitted(68, 34) Source(3, 40) + SourceIndex(4) -13>Emitted(68, 36) Source(3, 42) + SourceIndex(4) -14>Emitted(68, 38) Source(3, 44) + SourceIndex(4) -15>Emitted(68, 40) Source(3, 46) + SourceIndex(4) -16>Emitted(68, 42) Source(3, 48) + SourceIndex(4) -17>Emitted(68, 44) Source(3, 9) + SourceIndex(4) -18>Emitted(68, 45) Source(3, 10) + SourceIndex(4) -19>Emitted(68, 52) Source(3, 10) + SourceIndex(4) -20>Emitted(68, 54) Source(3, 15) + SourceIndex(4) -21>Emitted(68, 58) Source(3, 19) + SourceIndex(4) -22>Emitted(68, 72) Source(3, 7) + SourceIndex(4) -23>Emitted(68, 77) Source(3, 21) + SourceIndex(4) -24>Emitted(68, 78) Source(3, 48) + SourceIndex(4) -25>Emitted(68, 79) Source(3, 49) + SourceIndex(4) +1->Emitted(68, 9) Source(4, 1) + SourceIndex(4) +2 >Emitted(68, 13) Source(4, 7) + SourceIndex(4) +3 >Emitted(68, 18) Source(4, 24) + SourceIndex(4) +4 >Emitted(68, 20) Source(4, 26) + SourceIndex(4) +5 >Emitted(68, 21) Source(4, 27) + SourceIndex(4) +6 >Emitted(68, 23) Source(4, 29) + SourceIndex(4) +7 >Emitted(68, 25) Source(4, 31) + SourceIndex(4) +8 >Emitted(68, 27) Source(4, 33) + SourceIndex(4) +9 >Emitted(68, 28) Source(4, 34) + SourceIndex(4) +10>Emitted(68, 30) Source(4, 36) + SourceIndex(4) +11>Emitted(68, 32) Source(4, 38) + SourceIndex(4) +12>Emitted(68, 34) Source(4, 40) + SourceIndex(4) +13>Emitted(68, 36) Source(4, 42) + SourceIndex(4) +14>Emitted(68, 38) Source(4, 44) + SourceIndex(4) +15>Emitted(68, 40) Source(4, 46) + SourceIndex(4) +16>Emitted(68, 42) Source(4, 48) + SourceIndex(4) +17>Emitted(68, 44) Source(4, 9) + SourceIndex(4) +18>Emitted(68, 45) Source(4, 10) + SourceIndex(4) +19>Emitted(68, 52) Source(4, 10) + SourceIndex(4) +20>Emitted(68, 54) Source(4, 15) + SourceIndex(4) +21>Emitted(68, 58) Source(4, 19) + SourceIndex(4) +22>Emitted(68, 72) Source(4, 7) + SourceIndex(4) +23>Emitted(68, 77) Source(4, 21) + SourceIndex(4) +24>Emitted(68, 78) Source(4, 48) + SourceIndex(4) +25>Emitted(68, 79) Source(4, 49) + SourceIndex(4) --- >>> } 1 >^^^^ @@ -971,8 +979,8 @@ sourceFile:file3.ts 1 > > 2 > } -1 >Emitted(69, 5) Source(4, 1) + SourceIndex(4) -2 >Emitted(69, 6) Source(4, 2) + SourceIndex(4) +1 >Emitted(69, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(69, 6) Source(5, 2) + SourceIndex(4) --- ------------------------------------------------------------------- emittedFile:/src/app/module.js @@ -1120,7 +1128,7 @@ sourceFile:file4.ts >>>//# sourceMappingURL=module.js.map //// [/src/app/module.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file3.ts","./file4.ts"],"js":{"sections":[{"pos":0,"end":489,"kind":"emitHelpers","data":"typescript:read"},{"pos":490,"end":870,"kind":"emitHelpers","data":"typescript:spreadArray"},{"pos":871,"end":1361,"kind":"emitHelpers","data":"typescript:rest"},{"pos":1362,"end":2167,"kind":"prepend","data":"../lib/module.js","texts":[{"pos":1362,"end":2167,"kind":"text"}]},{"pos":2167,"end":2746,"kind":"text"}],"sources":{"helpers":["typescript:rest","typescript:read","typescript:spreadArray"]},"mapHash":"25532738663-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;AAClB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,IAAM,WAAW,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC7B,cAAc,8BAAC,EAAE,UAAK,WAAW,WAAE;;;;;ICHtB,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,SAAS,eAAe;QAC5C,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;IAChD,CAAC;;;;;;ICFY,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;IACM,SAAS,eAAe;QAClD,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;IAChD,CAAC;;ACHD,IAAM,KAAK,GAAG,EAAE,CAAC;AACjB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,IAAM,WAAW,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC7B,cAAc,8BAAC,EAAE,UAAK,WAAW,WAAE\"}","hash":"86928161834-var __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar myGlob = 20;\nfunction libfile0Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar libfile0_ar = [20, 30];\nlibfile0Spread.apply(void 0, __spreadArray([10], __read(libfile0_ar), false));\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.x = void 0;\n exports.x = 10;\n function forlibfile1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n }\n});\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.y = void 0;\n exports.y = 20;\n});\nvar globalConst = 10;\ndefine(\"file3\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.z = void 0;\n exports.z = 30;\n function forappfile3Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n }\n});\nvar myVar = 30;\nfunction appfile4Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar appfile4_ar = [20, 30];\nappfile4Spread.apply(void 0, __spreadArray([10], __read(appfile4_ar), false));\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":0,"end":255,"kind":"prepend","data":"../lib/module.d.ts","texts":[{"pos":0,"end":255,"kind":"text"}]},{"pos":255,"end":425,"kind":"text"}],"mapHash":"-58032587340-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\"AAAA,QAAA,MAAM,MAAM,KAAK,CAAC;AAClB,iBAAS,cAAc,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AAC3C,QAAA,MAAM,WAAW,UAAW,CAAC;;ICF7B,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICAvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,KAAK,KAAK,CAAC;AACjB,iBAAS,cAAc,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AAC3C,QAAA,MAAM,WAAW,UAAW,CAAC\"}","hash":"41750814766-declare const myGlob = 20;\ndeclare function libfile0Spread(...b: number[]): void;\ndeclare const libfile0_ar: number[];\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\ndeclare function appfile4Spread(...b: number[]): void;\ndeclare const appfile4_ar: number[];\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../lib/module.d.ts","./file3.ts","./file4.ts"],"fileInfos":["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; };","19175502154-declare const myGlob = 20;\ndeclare function libfile0Spread(...b: number[]): void;\ndeclare const libfile0_ar: number[];\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\n","-291826420-export const z = 30;\r\nimport { x } from \"file1\";function forappfile3Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}","-3487084949-const myVar = 30;\nfunction appfile4Spread(...b: number[]) { }\nconst appfile4_ar = [20, 30];\nappfile4Spread(10, ...appfile4_ar);"],"root":[3,4],"options":{"composite":true,"declarationMap":true,"downlevelIteration":true,"module":2,"outFile":"./module.js","sourceMap":true,"strict":false,"target":1},"outSignature":"41122638023-declare const myGlob = 20;\ndeclare function libfile0Spread(...b: number[]): void;\ndeclare const libfile0_ar: number[];\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\ndeclare function appfile4Spread(...b: number[]): void;\ndeclare const appfile4_ar: number[];\n","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file3.ts","./file4.ts"],"js":{"sections":[{"pos":0,"end":489,"kind":"emitHelpers","data":"typescript:read"},{"pos":490,"end":870,"kind":"emitHelpers","data":"typescript:spreadArray"},{"pos":871,"end":1361,"kind":"emitHelpers","data":"typescript:rest"},{"pos":1362,"end":2167,"kind":"prepend","data":"../lib/module.js","texts":[{"pos":1362,"end":2167,"kind":"text"}]},{"pos":2167,"end":2746,"kind":"text"}],"sources":{"helpers":["typescript:rest","typescript:read","typescript:spreadArray"]},"mapHash":"40592392858-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;AAClB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,IAAM,WAAW,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC7B,cAAc,8BAAC,EAAE,UAAK,WAAW,WAAE;;;;;ICHtB,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,SAAS,eAAe;QAC5C,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;IAChD,CAAC;;;;;;ICFY,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;IAEpB,SAAS,eAAe;QACxB,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;IAChD,CAAC;;ACJD,IAAM,KAAK,GAAG,EAAE,CAAC;AACjB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,IAAM,WAAW,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC7B,cAAc,8BAAC,EAAE,UAAK,WAAW,WAAE\"}","hash":"86928161834-var __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar myGlob = 20;\nfunction libfile0Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar libfile0_ar = [20, 30];\nlibfile0Spread.apply(void 0, __spreadArray([10], __read(libfile0_ar), false));\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.x = void 0;\n exports.x = 10;\n function forlibfile1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n }\n});\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.y = void 0;\n exports.y = 20;\n});\nvar globalConst = 10;\ndefine(\"file3\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.z = void 0;\n exports.z = 30;\n function forappfile3Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n }\n});\nvar myVar = 30;\nfunction appfile4Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar appfile4_ar = [20, 30];\nappfile4Spread.apply(void 0, __spreadArray([10], __read(appfile4_ar), false));\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":0,"end":255,"kind":"prepend","data":"../lib/module.d.ts","texts":[{"pos":0,"end":255,"kind":"text"}]},{"pos":255,"end":425,"kind":"text"}],"mapHash":"-58032587340-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\"AAAA,QAAA,MAAM,MAAM,KAAK,CAAC;AAClB,iBAAS,cAAc,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AAC3C,QAAA,MAAM,WAAW,UAAW,CAAC;;ICF7B,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICAvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,KAAK,KAAK,CAAC;AACjB,iBAAS,cAAc,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AAC3C,QAAA,MAAM,WAAW,UAAW,CAAC\"}","hash":"41750814766-declare const myGlob = 20;\ndeclare function libfile0Spread(...b: number[]): void;\ndeclare const libfile0_ar: number[];\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\ndeclare function appfile4Spread(...b: number[]): void;\ndeclare const appfile4_ar: number[];\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../lib/module.d.ts","./file3.ts","./file4.ts"],"fileInfos":["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; };","19175502154-declare const myGlob = 20;\ndeclare function libfile0Spread(...b: number[]): void;\ndeclare const libfile0_ar: number[];\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\n","-9404472663-export const z = 30;\nimport { x } from \"file1\";\nfunction forappfile3Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}","-3487084949-const myVar = 30;\nfunction appfile4Spread(...b: number[]) { }\nconst appfile4_ar = [20, 30];\nappfile4Spread(10, ...appfile4_ar);"],"root":[3,4],"options":{"composite":true,"declarationMap":true,"downlevelIteration":true,"module":2,"outFile":"./module.js","sourceMap":true,"strict":false,"target":1},"outSignature":"41122638023-declare const myGlob = 20;\ndeclare function libfile0Spread(...b: number[]): void;\ndeclare const libfile0_ar: number[];\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\ndeclare function appfile4Spread(...b: number[]): void;\ndeclare const appfile4_ar: number[];\n","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} //// [/src/app/module.tsbuildinfo.baseline.txt] ====================================================================== @@ -1295,7 +1303,7 @@ declare const appfile4_ar: number[]; } ], "hash": "86928161834-var __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar myGlob = 20;\nfunction libfile0Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar libfile0_ar = [20, 30];\nlibfile0Spread.apply(void 0, __spreadArray([10], __read(libfile0_ar), false));\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.x = void 0;\n exports.x = 10;\n function forlibfile1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n }\n});\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.y = void 0;\n exports.y = 20;\n});\nvar globalConst = 10;\ndefine(\"file3\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.z = void 0;\n exports.z = 30;\n function forappfile3Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n }\n});\nvar myVar = 30;\nfunction appfile4Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar appfile4_ar = [20, 30];\nappfile4Spread.apply(void 0, __spreadArray([10], __read(appfile4_ar), false));\n//# sourceMappingURL=module.js.map", - "mapHash": "25532738663-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;AAClB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,IAAM,WAAW,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC7B,cAAc,8BAAC,EAAE,UAAK,WAAW,WAAE;;;;;ICHtB,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,SAAS,eAAe;QAC5C,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;IAChD,CAAC;;;;;;ICFY,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;IACM,SAAS,eAAe;QAClD,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;IAChD,CAAC;;ACHD,IAAM,KAAK,GAAG,EAAE,CAAC;AACjB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,IAAM,WAAW,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC7B,cAAc,8BAAC,EAAE,UAAK,WAAW,WAAE\"}", + "mapHash": "40592392858-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;AAClB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,IAAM,WAAW,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC7B,cAAc,8BAAC,EAAE,UAAK,WAAW,WAAE;;;;;ICHtB,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,SAAS,eAAe;QAC5C,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;IAChD,CAAC;;;;;;ICFY,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;IAEpB,SAAS,eAAe;QACxB,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;IAChD,CAAC;;ACJD,IAAM,KAAK,GAAG,EAAE,CAAC;AACjB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,IAAM,WAAW,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC7B,cAAc,8BAAC,EAAE,UAAK,WAAW,WAAE\"}", "sources": { "helpers": [ "typescript:rest", @@ -1339,7 +1347,7 @@ declare const appfile4_ar: number[]; "fileInfos": { "../../lib/lib.d.ts": "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; };", "../lib/module.d.ts": "19175502154-declare const myGlob = 20;\ndeclare function libfile0Spread(...b: number[]): void;\ndeclare const libfile0_ar: number[];\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\n", - "./file3.ts": "-291826420-export const z = 30;\r\nimport { x } from \"file1\";function forappfile3Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}", + "./file3.ts": "-9404472663-export const z = 30;\nimport { x } from \"file1\";\nfunction forappfile3Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}", "./file4.ts": "-3487084949-const myVar = 30;\nfunction appfile4Spread(...b: number[]) { }\nconst appfile4_ar = [20, 30];\nappfile4Spread(10, ...appfile4_ar);" }, "root": [ @@ -1366,7 +1374,7 @@ declare const appfile4_ar: number[]; "latestChangedDtsFile": "./module.d.ts" }, "version": "FakeTSVersion", - "size": 7688 + "size": 7690 } //// [/src/lib/module.d.ts] @@ -2201,17 +2209,17 @@ const { b, ...rest } = { a: 10, b: 30, yy: 30 }; Output:: /lib/tsc --b /src/app --verbose -[12:00:38 AM] Projects in this build: +[12:00:48 AM] Projects in this build: * src/lib/tsconfig.json * src/app/tsconfig.json -[12:00:39 AM] Project 'src/lib/tsconfig.json' is out of date because output 'src/lib/module.tsbuildinfo' is older than input 'src/lib/file1.ts' +[12:00:49 AM] Project 'src/lib/tsconfig.json' is out of date because output 'src/lib/module.tsbuildinfo' is older than input 'src/lib/file1.ts' -[12:00:40 AM] Building project '/src/lib/tsconfig.json'... +[12:00:50 AM] Building project '/src/lib/tsconfig.json'... -[12:00:48 AM] Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed +[12:00:58 AM] Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed -[12:00:49 AM] Updating output of project '/src/app/tsconfig.json'... +[12:00:59 AM] Updating output of project '/src/app/tsconfig.json'... exitCode:: ExitStatus.Success @@ -2300,7 +2308,7 @@ appfile4Spread.apply(void 0, __spreadArray([10], __read(appfile4_ar), false)); //# sourceMappingURL=module.js.map //// [/src/app/module.js.map] -{"version":3,"file":"module.js","sourceRoot":"","sources":["../lib/file0.ts","../lib/file1.ts","../lib/file2.ts","../lib/global.ts","file3.ts","file4.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;AAClB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,IAAM,WAAW,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC7B,cAAc,8BAAC,EAAE,UAAK,WAAW,WAAE;;;;;ICHtB,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,SAAS,eAAe;QAC5C,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;IAChD,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;;ICFH,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;IACM,SAAS,eAAe;QAClD,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;IAChD,CAAC;;ACHD,IAAM,KAAK,GAAG,EAAE,CAAC;AACjB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,IAAM,WAAW,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC7B,cAAc,8BAAC,EAAE,UAAK,WAAW,WAAE"} +{"version":3,"file":"module.js","sourceRoot":"","sources":["../lib/file0.ts","../lib/file1.ts","../lib/file2.ts","../lib/global.ts","file3.ts","file4.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;AAClB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,IAAM,WAAW,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC7B,cAAc,8BAAC,EAAE,UAAK,WAAW,WAAE;;;;;ICHtB,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,SAAS,eAAe;QAC5C,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;IAChD,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;;ICFH,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;IAEpB,SAAS,eAAe;QACxB,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;IAChD,CAAC;;ACJD,IAAM,KAAK,GAAG,EAAE,CAAC;AACjB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,IAAM,WAAW,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC7B,cAAc,8BAAC,EAAE,UAAK,WAAW,WAAE"} //// [/src/app/module.js.map.baseline.txt] =================================================================== @@ -2731,13 +2739,14 @@ sourceFile:file3.ts 2 > ^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - >import { x } from "file1"; +1-> + >import { x } from "file1"; + > 2 > function 3 > forappfile3Rest -1->Emitted(68, 5) Source(2, 27) + SourceIndex(4) -2 >Emitted(68, 14) Source(2, 36) + SourceIndex(4) -3 >Emitted(68, 29) Source(2, 51) + SourceIndex(4) +1->Emitted(68, 5) Source(3, 1) + SourceIndex(4) +2 >Emitted(68, 14) Source(3, 10) + SourceIndex(4) +3 >Emitted(68, 29) Source(3, 25) + SourceIndex(4) --- >>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); 1->^^^^^^^^ @@ -2791,31 +2800,31 @@ sourceFile:file3.ts 23> { b, ...rest } 24> = { a: 10, b: 30, yy: 30 } 25> ; -1->Emitted(69, 9) Source(3, 1) + SourceIndex(4) -2 >Emitted(69, 13) Source(3, 7) + SourceIndex(4) -3 >Emitted(69, 18) Source(3, 24) + SourceIndex(4) -4 >Emitted(69, 20) Source(3, 26) + SourceIndex(4) -5 >Emitted(69, 21) Source(3, 27) + SourceIndex(4) -6 >Emitted(69, 23) Source(3, 29) + SourceIndex(4) -7 >Emitted(69, 25) Source(3, 31) + SourceIndex(4) -8 >Emitted(69, 27) Source(3, 33) + SourceIndex(4) -9 >Emitted(69, 28) Source(3, 34) + SourceIndex(4) -10>Emitted(69, 30) Source(3, 36) + SourceIndex(4) -11>Emitted(69, 32) Source(3, 38) + SourceIndex(4) -12>Emitted(69, 34) Source(3, 40) + SourceIndex(4) -13>Emitted(69, 36) Source(3, 42) + SourceIndex(4) -14>Emitted(69, 38) Source(3, 44) + SourceIndex(4) -15>Emitted(69, 40) Source(3, 46) + SourceIndex(4) -16>Emitted(69, 42) Source(3, 48) + SourceIndex(4) -17>Emitted(69, 44) Source(3, 9) + SourceIndex(4) -18>Emitted(69, 45) Source(3, 10) + SourceIndex(4) -19>Emitted(69, 52) Source(3, 10) + SourceIndex(4) -20>Emitted(69, 54) Source(3, 15) + SourceIndex(4) -21>Emitted(69, 58) Source(3, 19) + SourceIndex(4) -22>Emitted(69, 72) Source(3, 7) + SourceIndex(4) -23>Emitted(69, 77) Source(3, 21) + SourceIndex(4) -24>Emitted(69, 78) Source(3, 48) + SourceIndex(4) -25>Emitted(69, 79) Source(3, 49) + SourceIndex(4) +1->Emitted(69, 9) Source(4, 1) + SourceIndex(4) +2 >Emitted(69, 13) Source(4, 7) + SourceIndex(4) +3 >Emitted(69, 18) Source(4, 24) + SourceIndex(4) +4 >Emitted(69, 20) Source(4, 26) + SourceIndex(4) +5 >Emitted(69, 21) Source(4, 27) + SourceIndex(4) +6 >Emitted(69, 23) Source(4, 29) + SourceIndex(4) +7 >Emitted(69, 25) Source(4, 31) + SourceIndex(4) +8 >Emitted(69, 27) Source(4, 33) + SourceIndex(4) +9 >Emitted(69, 28) Source(4, 34) + SourceIndex(4) +10>Emitted(69, 30) Source(4, 36) + SourceIndex(4) +11>Emitted(69, 32) Source(4, 38) + SourceIndex(4) +12>Emitted(69, 34) Source(4, 40) + SourceIndex(4) +13>Emitted(69, 36) Source(4, 42) + SourceIndex(4) +14>Emitted(69, 38) Source(4, 44) + SourceIndex(4) +15>Emitted(69, 40) Source(4, 46) + SourceIndex(4) +16>Emitted(69, 42) Source(4, 48) + SourceIndex(4) +17>Emitted(69, 44) Source(4, 9) + SourceIndex(4) +18>Emitted(69, 45) Source(4, 10) + SourceIndex(4) +19>Emitted(69, 52) Source(4, 10) + SourceIndex(4) +20>Emitted(69, 54) Source(4, 15) + SourceIndex(4) +21>Emitted(69, 58) Source(4, 19) + SourceIndex(4) +22>Emitted(69, 72) Source(4, 7) + SourceIndex(4) +23>Emitted(69, 77) Source(4, 21) + SourceIndex(4) +24>Emitted(69, 78) Source(4, 48) + SourceIndex(4) +25>Emitted(69, 79) Source(4, 49) + SourceIndex(4) --- >>> } 1 >^^^^ @@ -2823,8 +2832,8 @@ sourceFile:file3.ts 1 > > 2 > } -1 >Emitted(70, 5) Source(4, 1) + SourceIndex(4) -2 >Emitted(70, 6) Source(4, 2) + SourceIndex(4) +1 >Emitted(70, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(70, 6) Source(5, 2) + SourceIndex(4) --- ------------------------------------------------------------------- emittedFile:/src/app/module.js @@ -2972,7 +2981,7 @@ sourceFile:file4.ts >>>//# sourceMappingURL=module.js.map //// [/src/app/module.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file3.ts","./file4.ts"],"js":{"sections":[{"pos":0,"end":489,"kind":"emitHelpers","data":"typescript:read"},{"pos":490,"end":870,"kind":"emitHelpers","data":"typescript:spreadArray"},{"pos":871,"end":1361,"kind":"emitHelpers","data":"typescript:rest"},{"pos":1362,"end":2195,"kind":"prepend","data":"../lib/module.js","texts":[{"pos":1362,"end":2195,"kind":"text"}]},{"pos":2195,"end":2774,"kind":"text"}],"mapHash":"18634709081-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;AAClB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,IAAM,WAAW,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC7B,cAAc,8BAAC,EAAE,UAAK,WAAW,WAAE;;;;;ICHtB,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,SAAS,eAAe;QAC5C,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;IAChD,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;;ICFH,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;IACM,SAAS,eAAe;QAClD,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;IAChD,CAAC;;ACHD,IAAM,KAAK,GAAG,EAAE,CAAC;AACjB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,IAAM,WAAW,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC7B,cAAc,8BAAC,EAAE,UAAK,WAAW,WAAE\"}","hash":"8867186558-var __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar myGlob = 20;\nfunction libfile0Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar libfile0_ar = [20, 30];\nlibfile0Spread.apply(void 0, __spreadArray([10], __read(libfile0_ar), false));\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.x = void 0;\n exports.x = 10;\n function forlibfile1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n }\n console.log(exports.x);\n});\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.y = void 0;\n exports.y = 20;\n});\nvar globalConst = 10;\ndefine(\"file3\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.z = void 0;\n exports.z = 30;\n function forappfile3Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n }\n});\nvar myVar = 30;\nfunction appfile4Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar appfile4_ar = [20, 30];\nappfile4Spread.apply(void 0, __spreadArray([10], __read(appfile4_ar), false));\n//# sourceMappingURL=module.js.map","sources":{"helpers":["typescript:rest","typescript:read","typescript:spreadArray"]}},"dts":{"sections":[{"pos":0,"end":255,"kind":"prepend","data":"../lib/module.d.ts","texts":[{"pos":0,"end":255,"kind":"text"}]},{"pos":255,"end":425,"kind":"text"}],"mapHash":"-58032587340-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\"AAAA,QAAA,MAAM,MAAM,KAAK,CAAC;AAClB,iBAAS,cAAc,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AAC3C,QAAA,MAAM,WAAW,UAAW,CAAC;;ICF7B,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICAvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,KAAK,KAAK,CAAC;AACjB,iBAAS,cAAc,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AAC3C,QAAA,MAAM,WAAW,UAAW,CAAC\"}","hash":"41750814766-declare const myGlob = 20;\ndeclare function libfile0Spread(...b: number[]): void;\ndeclare const libfile0_ar: number[];\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\ndeclare function appfile4Spread(...b: number[]): void;\ndeclare const appfile4_ar: number[];\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../lib/module.d.ts","./file3.ts","./file4.ts"],"fileInfos":["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; };","19175502154-declare const myGlob = 20;\ndeclare function libfile0Spread(...b: number[]): void;\ndeclare const libfile0_ar: number[];\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\n","-291826420-export const z = 30;\r\nimport { x } from \"file1\";function forappfile3Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}","-3487084949-const myVar = 30;\nfunction appfile4Spread(...b: number[]) { }\nconst appfile4_ar = [20, 30];\nappfile4Spread(10, ...appfile4_ar);"],"root":[3,4],"options":{"composite":true,"declarationMap":true,"downlevelIteration":true,"module":2,"outFile":"./module.js","sourceMap":true,"strict":false,"target":1},"outSignature":"41122638023-declare const myGlob = 20;\ndeclare function libfile0Spread(...b: number[]): void;\ndeclare const libfile0_ar: number[];\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\ndeclare function appfile4Spread(...b: number[]): void;\ndeclare const appfile4_ar: number[];\n","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file3.ts","./file4.ts"],"js":{"sections":[{"pos":0,"end":489,"kind":"emitHelpers","data":"typescript:read"},{"pos":490,"end":870,"kind":"emitHelpers","data":"typescript:spreadArray"},{"pos":871,"end":1361,"kind":"emitHelpers","data":"typescript:rest"},{"pos":1362,"end":2195,"kind":"prepend","data":"../lib/module.js","texts":[{"pos":1362,"end":2195,"kind":"text"}]},{"pos":2195,"end":2774,"kind":"text"}],"mapHash":"49180617932-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;AAClB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,IAAM,WAAW,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC7B,cAAc,8BAAC,EAAE,UAAK,WAAW,WAAE;;;;;ICHtB,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,SAAS,eAAe;QAC5C,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;IAChD,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;;ICFH,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;IAEpB,SAAS,eAAe;QACxB,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;IAChD,CAAC;;ACJD,IAAM,KAAK,GAAG,EAAE,CAAC;AACjB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,IAAM,WAAW,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC7B,cAAc,8BAAC,EAAE,UAAK,WAAW,WAAE\"}","hash":"8867186558-var __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar myGlob = 20;\nfunction libfile0Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar libfile0_ar = [20, 30];\nlibfile0Spread.apply(void 0, __spreadArray([10], __read(libfile0_ar), false));\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.x = void 0;\n exports.x = 10;\n function forlibfile1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n }\n console.log(exports.x);\n});\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.y = void 0;\n exports.y = 20;\n});\nvar globalConst = 10;\ndefine(\"file3\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.z = void 0;\n exports.z = 30;\n function forappfile3Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n }\n});\nvar myVar = 30;\nfunction appfile4Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar appfile4_ar = [20, 30];\nappfile4Spread.apply(void 0, __spreadArray([10], __read(appfile4_ar), false));\n//# sourceMappingURL=module.js.map","sources":{"helpers":["typescript:rest","typescript:read","typescript:spreadArray"]}},"dts":{"sections":[{"pos":0,"end":255,"kind":"prepend","data":"../lib/module.d.ts","texts":[{"pos":0,"end":255,"kind":"text"}]},{"pos":255,"end":425,"kind":"text"}],"mapHash":"-58032587340-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\"AAAA,QAAA,MAAM,MAAM,KAAK,CAAC;AAClB,iBAAS,cAAc,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AAC3C,QAAA,MAAM,WAAW,UAAW,CAAC;;ICF7B,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICAvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,KAAK,KAAK,CAAC;AACjB,iBAAS,cAAc,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AAC3C,QAAA,MAAM,WAAW,UAAW,CAAC\"}","hash":"41750814766-declare const myGlob = 20;\ndeclare function libfile0Spread(...b: number[]): void;\ndeclare const libfile0_ar: number[];\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\ndeclare function appfile4Spread(...b: number[]): void;\ndeclare const appfile4_ar: number[];\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../lib/module.d.ts","./file3.ts","./file4.ts"],"fileInfos":["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; };","19175502154-declare const myGlob = 20;\ndeclare function libfile0Spread(...b: number[]): void;\ndeclare const libfile0_ar: number[];\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\n","-9404472663-export const z = 30;\nimport { x } from \"file1\";\nfunction forappfile3Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}","-3487084949-const myVar = 30;\nfunction appfile4Spread(...b: number[]) { }\nconst appfile4_ar = [20, 30];\nappfile4Spread(10, ...appfile4_ar);"],"root":[3,4],"options":{"composite":true,"declarationMap":true,"downlevelIteration":true,"module":2,"outFile":"./module.js","sourceMap":true,"strict":false,"target":1},"outSignature":"41122638023-declare const myGlob = 20;\ndeclare function libfile0Spread(...b: number[]): void;\ndeclare const libfile0_ar: number[];\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\ndeclare function appfile4Spread(...b: number[]): void;\ndeclare const appfile4_ar: number[];\n","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} //// [/src/app/module.tsbuildinfo.baseline.txt] ====================================================================== @@ -3148,7 +3157,7 @@ declare const appfile4_ar: number[]; } ], "hash": "8867186558-var __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar myGlob = 20;\nfunction libfile0Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar libfile0_ar = [20, 30];\nlibfile0Spread.apply(void 0, __spreadArray([10], __read(libfile0_ar), false));\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.x = void 0;\n exports.x = 10;\n function forlibfile1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n }\n console.log(exports.x);\n});\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.y = void 0;\n exports.y = 20;\n});\nvar globalConst = 10;\ndefine(\"file3\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.z = void 0;\n exports.z = 30;\n function forappfile3Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n }\n});\nvar myVar = 30;\nfunction appfile4Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar appfile4_ar = [20, 30];\nappfile4Spread.apply(void 0, __spreadArray([10], __read(appfile4_ar), false));\n//# sourceMappingURL=module.js.map", - "mapHash": "18634709081-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;AAClB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,IAAM,WAAW,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC7B,cAAc,8BAAC,EAAE,UAAK,WAAW,WAAE;;;;;ICHtB,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,SAAS,eAAe;QAC5C,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;IAChD,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;;ICFH,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;IACM,SAAS,eAAe;QAClD,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;IAChD,CAAC;;ACHD,IAAM,KAAK,GAAG,EAAE,CAAC;AACjB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,IAAM,WAAW,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC7B,cAAc,8BAAC,EAAE,UAAK,WAAW,WAAE\"}", + "mapHash": "49180617932-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;AAClB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,IAAM,WAAW,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC7B,cAAc,8BAAC,EAAE,UAAK,WAAW,WAAE;;;;;ICHtB,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,SAAS,eAAe;QAC5C,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;IAChD,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;;ICFH,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;IAEpB,SAAS,eAAe;QACxB,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;IAChD,CAAC;;ACJD,IAAM,KAAK,GAAG,EAAE,CAAC;AACjB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,IAAM,WAAW,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC7B,cAAc,8BAAC,EAAE,UAAK,WAAW,WAAE\"}", "sources": { "helpers": [ "typescript:rest", @@ -3192,7 +3201,7 @@ declare const appfile4_ar: number[]; "fileInfos": { "../../lib/lib.d.ts": "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; };", "../lib/module.d.ts": "19175502154-declare const myGlob = 20;\ndeclare function libfile0Spread(...b: number[]): void;\ndeclare const libfile0_ar: number[];\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\n", - "./file3.ts": "-291826420-export const z = 30;\r\nimport { x } from \"file1\";function forappfile3Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}", + "./file3.ts": "-9404472663-export const z = 30;\nimport { x } from \"file1\";\nfunction forappfile3Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}", "./file4.ts": "-3487084949-const myVar = 30;\nfunction appfile4Spread(...b: number[]) { }\nconst appfile4_ar = [20, 30];\nappfile4Spread(10, ...appfile4_ar);" }, "root": [ @@ -3219,7 +3228,7 @@ declare const appfile4_ar: number[]; "latestChangedDtsFile": "./module.d.ts" }, "version": "FakeTSVersion", - "size": 7756 + "size": 7758 } //// [/src/lib/module.d.ts.map] file written with same contents @@ -3899,17 +3908,17 @@ export const x = 10;function forlibfile1Rest() { }console.log(x); Output:: /lib/tsc --b /src/app --verbose -[12:01:00 AM] Projects in this build: +[12:01:10 AM] Projects in this build: * src/lib/tsconfig.json * src/app/tsconfig.json -[12:01:01 AM] Project 'src/lib/tsconfig.json' is out of date because output 'src/lib/module.tsbuildinfo' is older than input 'src/lib/file1.ts' +[12:01:11 AM] Project 'src/lib/tsconfig.json' is out of date because output 'src/lib/module.tsbuildinfo' is older than input 'src/lib/file1.ts' -[12:01:02 AM] Building project '/src/lib/tsconfig.json'... +[12:01:12 AM] Building project '/src/lib/tsconfig.json'... -[12:01:10 AM] Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed +[12:01:20 AM] Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed -[12:01:11 AM] Updating output of project '/src/app/tsconfig.json'... +[12:01:21 AM] Updating output of project '/src/app/tsconfig.json'... exitCode:: ExitStatus.Success @@ -3996,7 +4005,7 @@ appfile4Spread.apply(void 0, __spreadArray([10], __read(appfile4_ar), false)); //# sourceMappingURL=module.js.map //// [/src/app/module.js.map] -{"version":3,"file":"module.js","sourceRoot":"","sources":["../lib/file0.ts","../lib/file1.ts","../lib/file2.ts","../lib/global.ts","file3.ts","file4.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;AAClB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,IAAM,WAAW,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC7B,cAAc,8BAAC,EAAE,UAAK,WAAW,WAAE;;;;;ICHtB,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,SAAS,eAAe,KAAK,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;;ICApD,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;IACM,SAAS,eAAe;QAClD,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;IAChD,CAAC;;ACHD,IAAM,KAAK,GAAG,EAAE,CAAC;AACjB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,IAAM,WAAW,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC7B,cAAc,8BAAC,EAAE,UAAK,WAAW,WAAE"} +{"version":3,"file":"module.js","sourceRoot":"","sources":["../lib/file0.ts","../lib/file1.ts","../lib/file2.ts","../lib/global.ts","file3.ts","file4.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;AAClB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,IAAM,WAAW,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC7B,cAAc,8BAAC,EAAE,UAAK,WAAW,WAAE;;;;;ICHtB,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,SAAS,eAAe,KAAK,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;;ICApD,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;IAEpB,SAAS,eAAe;QACxB,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;IAChD,CAAC;;ACJD,IAAM,KAAK,GAAG,EAAE,CAAC;AACjB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,IAAM,WAAW,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC7B,cAAc,8BAAC,EAAE,UAAK,WAAW,WAAE"} //// [/src/app/module.js.map.baseline.txt] =================================================================== @@ -4344,13 +4353,14 @@ sourceFile:file3.ts 2 > ^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - >import { x } from "file1"; +1-> + >import { x } from "file1"; + > 2 > function 3 > forappfile3Rest -1->Emitted(66, 5) Source(2, 27) + SourceIndex(4) -2 >Emitted(66, 14) Source(2, 36) + SourceIndex(4) -3 >Emitted(66, 29) Source(2, 51) + SourceIndex(4) +1->Emitted(66, 5) Source(3, 1) + SourceIndex(4) +2 >Emitted(66, 14) Source(3, 10) + SourceIndex(4) +3 >Emitted(66, 29) Source(3, 25) + SourceIndex(4) --- >>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); 1->^^^^^^^^ @@ -4404,31 +4414,31 @@ sourceFile:file3.ts 23> { b, ...rest } 24> = { a: 10, b: 30, yy: 30 } 25> ; -1->Emitted(67, 9) Source(3, 1) + SourceIndex(4) -2 >Emitted(67, 13) Source(3, 7) + SourceIndex(4) -3 >Emitted(67, 18) Source(3, 24) + SourceIndex(4) -4 >Emitted(67, 20) Source(3, 26) + SourceIndex(4) -5 >Emitted(67, 21) Source(3, 27) + SourceIndex(4) -6 >Emitted(67, 23) Source(3, 29) + SourceIndex(4) -7 >Emitted(67, 25) Source(3, 31) + SourceIndex(4) -8 >Emitted(67, 27) Source(3, 33) + SourceIndex(4) -9 >Emitted(67, 28) Source(3, 34) + SourceIndex(4) -10>Emitted(67, 30) Source(3, 36) + SourceIndex(4) -11>Emitted(67, 32) Source(3, 38) + SourceIndex(4) -12>Emitted(67, 34) Source(3, 40) + SourceIndex(4) -13>Emitted(67, 36) Source(3, 42) + SourceIndex(4) -14>Emitted(67, 38) Source(3, 44) + SourceIndex(4) -15>Emitted(67, 40) Source(3, 46) + SourceIndex(4) -16>Emitted(67, 42) Source(3, 48) + SourceIndex(4) -17>Emitted(67, 44) Source(3, 9) + SourceIndex(4) -18>Emitted(67, 45) Source(3, 10) + SourceIndex(4) -19>Emitted(67, 52) Source(3, 10) + SourceIndex(4) -20>Emitted(67, 54) Source(3, 15) + SourceIndex(4) -21>Emitted(67, 58) Source(3, 19) + SourceIndex(4) -22>Emitted(67, 72) Source(3, 7) + SourceIndex(4) -23>Emitted(67, 77) Source(3, 21) + SourceIndex(4) -24>Emitted(67, 78) Source(3, 48) + SourceIndex(4) -25>Emitted(67, 79) Source(3, 49) + SourceIndex(4) +1->Emitted(67, 9) Source(4, 1) + SourceIndex(4) +2 >Emitted(67, 13) Source(4, 7) + SourceIndex(4) +3 >Emitted(67, 18) Source(4, 24) + SourceIndex(4) +4 >Emitted(67, 20) Source(4, 26) + SourceIndex(4) +5 >Emitted(67, 21) Source(4, 27) + SourceIndex(4) +6 >Emitted(67, 23) Source(4, 29) + SourceIndex(4) +7 >Emitted(67, 25) Source(4, 31) + SourceIndex(4) +8 >Emitted(67, 27) Source(4, 33) + SourceIndex(4) +9 >Emitted(67, 28) Source(4, 34) + SourceIndex(4) +10>Emitted(67, 30) Source(4, 36) + SourceIndex(4) +11>Emitted(67, 32) Source(4, 38) + SourceIndex(4) +12>Emitted(67, 34) Source(4, 40) + SourceIndex(4) +13>Emitted(67, 36) Source(4, 42) + SourceIndex(4) +14>Emitted(67, 38) Source(4, 44) + SourceIndex(4) +15>Emitted(67, 40) Source(4, 46) + SourceIndex(4) +16>Emitted(67, 42) Source(4, 48) + SourceIndex(4) +17>Emitted(67, 44) Source(4, 9) + SourceIndex(4) +18>Emitted(67, 45) Source(4, 10) + SourceIndex(4) +19>Emitted(67, 52) Source(4, 10) + SourceIndex(4) +20>Emitted(67, 54) Source(4, 15) + SourceIndex(4) +21>Emitted(67, 58) Source(4, 19) + SourceIndex(4) +22>Emitted(67, 72) Source(4, 7) + SourceIndex(4) +23>Emitted(67, 77) Source(4, 21) + SourceIndex(4) +24>Emitted(67, 78) Source(4, 48) + SourceIndex(4) +25>Emitted(67, 79) Source(4, 49) + SourceIndex(4) --- >>> } 1 >^^^^ @@ -4436,8 +4446,8 @@ sourceFile:file3.ts 1 > > 2 > } -1 >Emitted(68, 5) Source(4, 1) + SourceIndex(4) -2 >Emitted(68, 6) Source(4, 2) + SourceIndex(4) +1 >Emitted(68, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(68, 6) Source(5, 2) + SourceIndex(4) --- ------------------------------------------------------------------- emittedFile:/src/app/module.js @@ -4585,7 +4595,7 @@ sourceFile:file4.ts >>>//# sourceMappingURL=module.js.map //// [/src/app/module.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file3.ts","./file4.ts"],"js":{"sections":[{"pos":0,"end":489,"kind":"emitHelpers","data":"typescript:read"},{"pos":490,"end":870,"kind":"emitHelpers","data":"typescript:spreadArray"},{"pos":871,"end":1361,"kind":"emitHelpers","data":"typescript:rest"},{"pos":1362,"end":2112,"kind":"prepend","data":"../lib/module.js","texts":[{"pos":1362,"end":2112,"kind":"text"}]},{"pos":2112,"end":2691,"kind":"text"}],"mapHash":"10800515764-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;AAClB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,IAAM,WAAW,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC7B,cAAc,8BAAC,EAAE,UAAK,WAAW,WAAE;;;;;ICHtB,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,SAAS,eAAe,KAAK,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;;ICApD,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;IACM,SAAS,eAAe;QAClD,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;IAChD,CAAC;;ACHD,IAAM,KAAK,GAAG,EAAE,CAAC;AACjB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,IAAM,WAAW,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC7B,cAAc,8BAAC,EAAE,UAAK,WAAW,WAAE\"}","hash":"119511022230-var __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar myGlob = 20;\nfunction libfile0Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar libfile0_ar = [20, 30];\nlibfile0Spread.apply(void 0, __spreadArray([10], __read(libfile0_ar), false));\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.x = void 0;\n exports.x = 10;\n function forlibfile1Rest() { }\n console.log(exports.x);\n});\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.y = void 0;\n exports.y = 20;\n});\nvar globalConst = 10;\ndefine(\"file3\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.z = void 0;\n exports.z = 30;\n function forappfile3Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n }\n});\nvar myVar = 30;\nfunction appfile4Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar appfile4_ar = [20, 30];\nappfile4Spread.apply(void 0, __spreadArray([10], __read(appfile4_ar), false));\n//# sourceMappingURL=module.js.map","sources":{"helpers":["typescript:rest","typescript:read","typescript:spreadArray"]}},"dts":{"sections":[{"pos":0,"end":255,"kind":"prepend","data":"../lib/module.d.ts","texts":[{"pos":0,"end":255,"kind":"text"}]},{"pos":255,"end":425,"kind":"text"}],"mapHash":"-58032587340-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\"AAAA,QAAA,MAAM,MAAM,KAAK,CAAC;AAClB,iBAAS,cAAc,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AAC3C,QAAA,MAAM,WAAW,UAAW,CAAC;;ICF7B,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICAvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,KAAK,KAAK,CAAC;AACjB,iBAAS,cAAc,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AAC3C,QAAA,MAAM,WAAW,UAAW,CAAC\"}","hash":"41750814766-declare const myGlob = 20;\ndeclare function libfile0Spread(...b: number[]): void;\ndeclare const libfile0_ar: number[];\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\ndeclare function appfile4Spread(...b: number[]): void;\ndeclare const appfile4_ar: number[];\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../lib/module.d.ts","./file3.ts","./file4.ts"],"fileInfos":["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; };","19175502154-declare const myGlob = 20;\ndeclare function libfile0Spread(...b: number[]): void;\ndeclare const libfile0_ar: number[];\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\n","-291826420-export const z = 30;\r\nimport { x } from \"file1\";function forappfile3Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}","-3487084949-const myVar = 30;\nfunction appfile4Spread(...b: number[]) { }\nconst appfile4_ar = [20, 30];\nappfile4Spread(10, ...appfile4_ar);"],"root":[3,4],"options":{"composite":true,"declarationMap":true,"downlevelIteration":true,"module":2,"outFile":"./module.js","sourceMap":true,"strict":false,"target":1},"outSignature":"41122638023-declare const myGlob = 20;\ndeclare function libfile0Spread(...b: number[]): void;\ndeclare const libfile0_ar: number[];\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\ndeclare function appfile4Spread(...b: number[]): void;\ndeclare const appfile4_ar: number[];\n","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file3.ts","./file4.ts"],"js":{"sections":[{"pos":0,"end":489,"kind":"emitHelpers","data":"typescript:read"},{"pos":490,"end":870,"kind":"emitHelpers","data":"typescript:spreadArray"},{"pos":871,"end":1361,"kind":"emitHelpers","data":"typescript:rest"},{"pos":1362,"end":2112,"kind":"prepend","data":"../lib/module.js","texts":[{"pos":1362,"end":2112,"kind":"text"}]},{"pos":2112,"end":2691,"kind":"text"}],"mapHash":"35465374343-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;AAClB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,IAAM,WAAW,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC7B,cAAc,8BAAC,EAAE,UAAK,WAAW,WAAE;;;;;ICHtB,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,SAAS,eAAe,KAAK,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;;ICApD,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;IAEpB,SAAS,eAAe;QACxB,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;IAChD,CAAC;;ACJD,IAAM,KAAK,GAAG,EAAE,CAAC;AACjB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,IAAM,WAAW,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC7B,cAAc,8BAAC,EAAE,UAAK,WAAW,WAAE\"}","hash":"119511022230-var __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar myGlob = 20;\nfunction libfile0Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar libfile0_ar = [20, 30];\nlibfile0Spread.apply(void 0, __spreadArray([10], __read(libfile0_ar), false));\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.x = void 0;\n exports.x = 10;\n function forlibfile1Rest() { }\n console.log(exports.x);\n});\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.y = void 0;\n exports.y = 20;\n});\nvar globalConst = 10;\ndefine(\"file3\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.z = void 0;\n exports.z = 30;\n function forappfile3Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n }\n});\nvar myVar = 30;\nfunction appfile4Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar appfile4_ar = [20, 30];\nappfile4Spread.apply(void 0, __spreadArray([10], __read(appfile4_ar), false));\n//# sourceMappingURL=module.js.map","sources":{"helpers":["typescript:rest","typescript:read","typescript:spreadArray"]}},"dts":{"sections":[{"pos":0,"end":255,"kind":"prepend","data":"../lib/module.d.ts","texts":[{"pos":0,"end":255,"kind":"text"}]},{"pos":255,"end":425,"kind":"text"}],"mapHash":"-58032587340-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\"AAAA,QAAA,MAAM,MAAM,KAAK,CAAC;AAClB,iBAAS,cAAc,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AAC3C,QAAA,MAAM,WAAW,UAAW,CAAC;;ICF7B,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICAvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,KAAK,KAAK,CAAC;AACjB,iBAAS,cAAc,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AAC3C,QAAA,MAAM,WAAW,UAAW,CAAC\"}","hash":"41750814766-declare const myGlob = 20;\ndeclare function libfile0Spread(...b: number[]): void;\ndeclare const libfile0_ar: number[];\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\ndeclare function appfile4Spread(...b: number[]): void;\ndeclare const appfile4_ar: number[];\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../lib/module.d.ts","./file3.ts","./file4.ts"],"fileInfos":["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; };","19175502154-declare const myGlob = 20;\ndeclare function libfile0Spread(...b: number[]): void;\ndeclare const libfile0_ar: number[];\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\n","-9404472663-export const z = 30;\nimport { x } from \"file1\";\nfunction forappfile3Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}","-3487084949-const myVar = 30;\nfunction appfile4Spread(...b: number[]) { }\nconst appfile4_ar = [20, 30];\nappfile4Spread(10, ...appfile4_ar);"],"root":[3,4],"options":{"composite":true,"declarationMap":true,"downlevelIteration":true,"module":2,"outFile":"./module.js","sourceMap":true,"strict":false,"target":1},"outSignature":"41122638023-declare const myGlob = 20;\ndeclare function libfile0Spread(...b: number[]): void;\ndeclare const libfile0_ar: number[];\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\ndeclare function appfile4Spread(...b: number[]): void;\ndeclare const appfile4_ar: number[];\n","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} //// [/src/app/module.tsbuildinfo.baseline.txt] ====================================================================== @@ -4759,7 +4769,7 @@ declare const appfile4_ar: number[]; } ], "hash": "119511022230-var __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar myGlob = 20;\nfunction libfile0Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar libfile0_ar = [20, 30];\nlibfile0Spread.apply(void 0, __spreadArray([10], __read(libfile0_ar), false));\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.x = void 0;\n exports.x = 10;\n function forlibfile1Rest() { }\n console.log(exports.x);\n});\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.y = void 0;\n exports.y = 20;\n});\nvar globalConst = 10;\ndefine(\"file3\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.z = void 0;\n exports.z = 30;\n function forappfile3Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n }\n});\nvar myVar = 30;\nfunction appfile4Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar appfile4_ar = [20, 30];\nappfile4Spread.apply(void 0, __spreadArray([10], __read(appfile4_ar), false));\n//# sourceMappingURL=module.js.map", - "mapHash": "10800515764-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;AAClB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,IAAM,WAAW,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC7B,cAAc,8BAAC,EAAE,UAAK,WAAW,WAAE;;;;;ICHtB,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,SAAS,eAAe,KAAK,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;;ICApD,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;IACM,SAAS,eAAe;QAClD,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;IAChD,CAAC;;ACHD,IAAM,KAAK,GAAG,EAAE,CAAC;AACjB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,IAAM,WAAW,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC7B,cAAc,8BAAC,EAAE,UAAK,WAAW,WAAE\"}", + "mapHash": "35465374343-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;AAClB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,IAAM,WAAW,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC7B,cAAc,8BAAC,EAAE,UAAK,WAAW,WAAE;;;;;ICHtB,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,SAAS,eAAe,KAAK,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;;ICApD,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;IAEpB,SAAS,eAAe;QACxB,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;IAChD,CAAC;;ACJD,IAAM,KAAK,GAAG,EAAE,CAAC;AACjB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,IAAM,WAAW,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC7B,cAAc,8BAAC,EAAE,UAAK,WAAW,WAAE\"}", "sources": { "helpers": [ "typescript:rest", @@ -4803,7 +4813,7 @@ declare const appfile4_ar: number[]; "fileInfos": { "../../lib/lib.d.ts": "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; };", "../lib/module.d.ts": "19175502154-declare const myGlob = 20;\ndeclare function libfile0Spread(...b: number[]): void;\ndeclare const libfile0_ar: number[];\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\n", - "./file3.ts": "-291826420-export const z = 30;\r\nimport { x } from \"file1\";function forappfile3Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}", + "./file3.ts": "-9404472663-export const z = 30;\nimport { x } from \"file1\";\nfunction forappfile3Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}", "./file4.ts": "-3487084949-const myVar = 30;\nfunction appfile4Spread(...b: number[]) { }\nconst appfile4_ar = [20, 30];\nappfile4Spread(10, ...appfile4_ar);" }, "root": [ @@ -4830,7 +4840,7 @@ declare const appfile4_ar: number[]; "latestChangedDtsFile": "./module.d.ts" }, "version": "FakeTSVersion", - "size": 7542 + "size": 7544 } //// [/src/lib/module.d.ts.map] file written with same contents diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/multiple-prologues-in-all-projects.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/multiple-prologues-in-all-projects.js index 1206e947286fa..aeff11dd7652a 100644 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/multiple-prologues-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/multiple-prologues-in-all-projects.js @@ -17,29 +17,35 @@ declare const console: { log(msg: any): void; }; //// [/src/app/file3.ts] "myPrologue" -export const z = 30; -import { x } from "file1"; +export const z = 30; +import { x } from "file1"; + //// [/src/app/file4.ts] "myPrologue2"; const myVar = 30; //// [/src/app/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "module": "amd", - "composite": true, - "strict": true, - "sourceMap": true, - "declarationMap": true, - "outFile": "module.js" - }, - "exclude": ["module.d.ts"], - "references": [ - { "path": "../lib", "prepend": true } - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "module": "amd", + "composite": true, + "strict": true, + "sourceMap": true, + "declarationMap": true, + "outFile": "module.js" + }, + "exclude": [ + "module.d.ts" + ], + "references": [ + { + "path": "../lib", + "prepend": true + } + ] } //// [/src/lib/file0.ts] @@ -58,35 +64,36 @@ export const y = 20; const globalConst = 10; //// [/src/lib/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "module": "amd", - "composite": true, - "sourceMap": true, - "declarationMap": true, - "strict": true, - "outFile": "module.js" - }, - "exclude": ["module.d.ts"] - +{ + "compilerOptions": { + "target": "es5", + "module": "amd", + "composite": true, + "sourceMap": true, + "declarationMap": true, + "strict": true, + "outFile": "module.js" + }, + "exclude": [ + "module.d.ts" + ] } Output:: /lib/tsc --b /src/app --verbose -[12:00:13 AM] Projects in this build: +[12:00:23 AM] Projects in this build: * src/lib/tsconfig.json * src/app/tsconfig.json -[12:00:14 AM] Project 'src/lib/tsconfig.json' is out of date because output file 'src/lib/module.tsbuildinfo' does not exist +[12:00:24 AM] Project 'src/lib/tsconfig.json' is out of date because output file 'src/lib/module.tsbuildinfo' does not exist -[12:00:15 AM] Building project '/src/lib/tsconfig.json'... +[12:00:25 AM] Building project '/src/lib/tsconfig.json'... -[12:00:24 AM] Project 'src/app/tsconfig.json' is out of date because output file 'src/app/module.tsbuildinfo' does not exist +[12:00:34 AM] Project 'src/app/tsconfig.json' is out of date because output file 'src/app/module.tsbuildinfo' does not exist -[12:00:25 AM] Building project '/src/app/tsconfig.json'... +[12:00:35 AM] Building project '/src/app/tsconfig.json'... exitCode:: ExitStatus.Success @@ -565,7 +572,7 @@ sourceFile:file4.ts >>>//# sourceMappingURL=module.js.map //// [/src/app/module.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file3.ts","./file4.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":27,"kind":"prologue","data":"myPrologue"},{"pos":28,"end":42,"kind":"prologue","data":"myPrologue3"},{"pos":43,"end":57,"kind":"prologue","data":"myPrologue2"},{"pos":58,"end":525,"kind":"prepend","data":"../lib/module.js","texts":[{"pos":58,"end":525,"kind":"text"}]},{"pos":525,"end":762,"kind":"text"}],"sources":{"prologues":[{"file":1,"text":"\"myPrologue2\";","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}},{"pos":0,"end":14,"expression":{"pos":0,"end":13,"text":"myPrologue2"}}]}]},"mapHash":"43697297756-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/global.ts\",\"file4.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"file3.ts\"],\"names\":[],\"mappings\":\";AAAA,YAAY,CAAA;ACAZ,aAAa,CAAA;ACAb,aAAa,CAAC;AFCd,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;IGDL,QAAA,CAAC,GAAG,EAAE,CAAC;;;;ICApB,gBAAgB,CAAA;;;IACH,QAAA,CAAC,GAAG,EAAE,CAAC;;AHApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;IIDvB,YAAY,CAAA;;;IACC,QAAA,CAAC,GAAG,EAAE,CAAC;;AHApB,IAAM,KAAK,GAAG,EAAE,CAAC\"}","hash":"18768809398-\"use strict\";\n\"myPrologue\";\n\"myPrologue3\";\n\"myPrologue2\";\nvar myGlob = 20;\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.x = void 0;\n exports.x = 10;\n});\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n \"myPrologueFile\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.y = void 0;\n exports.y = 20;\n});\nvar globalConst = 10;\ndefine(\"file3\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n \"myPrologue\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.z = void 0;\n exports.z = 30;\n});\nvar myVar = 30;\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":0,"end":163,"kind":"prepend","data":"../lib/module.d.ts","texts":[{"pos":0,"end":163,"kind":"text"}]},{"pos":163,"end":241,"kind":"text"}],"mapHash":"-26680300331-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\"AACA,QAAA,MAAM,MAAM,KAAK,CAAC;;ICDlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICCpB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICAvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,KAAK,KAAK,CAAC\"}","hash":"11992050152-declare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../lib/module.d.ts","./file3.ts","./file4.ts"],"fileInfos":["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; };","29754794677-declare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\n","14566593738-\"myPrologue\"\nexport const z = 30;\r\nimport { x } from \"file1\";","8812798660-\"myPrologue2\";\nconst myVar = 30;"],"root":[3,4],"options":{"composite":true,"declarationMap":true,"module":2,"outFile":"./module.js","sourceMap":true,"strict":true,"target":1},"outSignature":"21172764033-declare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\n","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file3.ts","./file4.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":27,"kind":"prologue","data":"myPrologue"},{"pos":28,"end":42,"kind":"prologue","data":"myPrologue3"},{"pos":43,"end":57,"kind":"prologue","data":"myPrologue2"},{"pos":58,"end":525,"kind":"prepend","data":"../lib/module.js","texts":[{"pos":58,"end":525,"kind":"text"}]},{"pos":525,"end":762,"kind":"text"}],"sources":{"prologues":[{"file":1,"text":"\"myPrologue2\";","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}},{"pos":0,"end":14,"expression":{"pos":0,"end":13,"text":"myPrologue2"}}]}]},"mapHash":"43697297756-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/global.ts\",\"file4.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"file3.ts\"],\"names\":[],\"mappings\":\";AAAA,YAAY,CAAA;ACAZ,aAAa,CAAA;ACAb,aAAa,CAAC;AFCd,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;IGDL,QAAA,CAAC,GAAG,EAAE,CAAC;;;;ICApB,gBAAgB,CAAA;;;IACH,QAAA,CAAC,GAAG,EAAE,CAAC;;AHApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;IIDvB,YAAY,CAAA;;;IACC,QAAA,CAAC,GAAG,EAAE,CAAC;;AHApB,IAAM,KAAK,GAAG,EAAE,CAAC\"}","hash":"18768809398-\"use strict\";\n\"myPrologue\";\n\"myPrologue3\";\n\"myPrologue2\";\nvar myGlob = 20;\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.x = void 0;\n exports.x = 10;\n});\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n \"myPrologueFile\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.y = void 0;\n exports.y = 20;\n});\nvar globalConst = 10;\ndefine(\"file3\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n \"myPrologue\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.z = void 0;\n exports.z = 30;\n});\nvar myVar = 30;\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":0,"end":163,"kind":"prepend","data":"../lib/module.d.ts","texts":[{"pos":0,"end":163,"kind":"text"}]},{"pos":163,"end":241,"kind":"text"}],"mapHash":"-26680300331-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\"AACA,QAAA,MAAM,MAAM,KAAK,CAAC;;ICDlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICCpB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICAvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,KAAK,KAAK,CAAC\"}","hash":"11992050152-declare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../lib/module.d.ts","./file3.ts","./file4.ts"],"fileInfos":["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; };","29754794677-declare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\n","6650205191-\"myPrologue\"\nexport const z = 30;\nimport { x } from \"file1\";\n","8812798660-\"myPrologue2\";\nconst myVar = 30;"],"root":[3,4],"options":{"composite":true,"declarationMap":true,"module":2,"outFile":"./module.js","sourceMap":true,"strict":true,"target":1},"outSignature":"21172764033-declare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\n","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} //// [/src/app/module.tsbuildinfo.baseline.txt] ====================================================================== @@ -757,7 +764,7 @@ declare const myVar = 30; "fileInfos": { "../../lib/lib.d.ts": "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; };", "../lib/module.d.ts": "29754794677-declare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\n", - "./file3.ts": "14566593738-\"myPrologue\"\nexport const z = 30;\r\nimport { x } from \"file1\";", + "./file3.ts": "6650205191-\"myPrologue\"\nexport const z = 30;\nimport { x } from \"file1\";\n", "./file4.ts": "8812798660-\"myPrologue2\";\nconst myVar = 30;" }, "root": [ @@ -783,7 +790,7 @@ declare const myVar = 30; "latestChangedDtsFile": "./module.d.ts" }, "version": "FakeTSVersion", - "size": 4394 + "size": 4393 } //// [/src/lib/module.d.ts] @@ -1307,17 +1314,17 @@ export const x = 10;console.log(x); Output:: /lib/tsc --b /src/app --verbose -[12:00:39 AM] Projects in this build: +[12:00:49 AM] Projects in this build: * src/lib/tsconfig.json * src/app/tsconfig.json -[12:00:40 AM] Project 'src/lib/tsconfig.json' is out of date because output 'src/lib/module.tsbuildinfo' is older than input 'src/lib/file1.ts' +[12:00:50 AM] Project 'src/lib/tsconfig.json' is out of date because output 'src/lib/module.tsbuildinfo' is older than input 'src/lib/file1.ts' -[12:00:41 AM] Building project '/src/lib/tsconfig.json'... +[12:00:51 AM] Building project '/src/lib/tsconfig.json'... -[12:00:49 AM] Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed +[12:00:59 AM] Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed -[12:00:50 AM] Updating output of project '/src/app/tsconfig.json'... +[12:01:00 AM] Updating output of project '/src/app/tsconfig.json'... exitCode:: ExitStatus.Success @@ -1632,7 +1639,7 @@ sourceFile:file4.ts >>>//# sourceMappingURL=module.js.map //// [/src/app/module.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file3.ts","./file4.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":27,"kind":"prologue","data":"myPrologue"},{"pos":28,"end":42,"kind":"prologue","data":"myPrologue3"},{"pos":43,"end":57,"kind":"prologue","data":"myPrologue2"},{"pos":58,"end":553,"kind":"prepend","data":"../lib/module.js","texts":[{"pos":58,"end":553,"kind":"text"}]},{"pos":553,"end":790,"kind":"text"}],"mapHash":"3847555902-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/global.ts\",\"file4.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"file3.ts\"],\"names\":[],\"mappings\":\";AAAA,YAAY,CAAA;ACAZ,aAAa,CAAA;ACAb,aAAa,CAAC;AFCd,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;IGDL,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;ICAnC,gBAAgB,CAAA;;;IACH,QAAA,CAAC,GAAG,EAAE,CAAC;;AHApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;IIDvB,YAAY,CAAA;;;IACC,QAAA,CAAC,GAAG,EAAE,CAAC;;AHApB,IAAM,KAAK,GAAG,EAAE,CAAC\"}","hash":"36337196554-\"use strict\";\n\"myPrologue\";\n\"myPrologue3\";\n\"myPrologue2\";\nvar myGlob = 20;\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.x = void 0;\n exports.x = 10;\n console.log(exports.x);\n});\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n \"myPrologueFile\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.y = void 0;\n exports.y = 20;\n});\nvar globalConst = 10;\ndefine(\"file3\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n \"myPrologue\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.z = void 0;\n exports.z = 30;\n});\nvar myVar = 30;\n//# sourceMappingURL=module.js.map","sources":{"prologues":[{"file":1,"text":"\"myPrologue2\";","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}},{"pos":0,"end":14,"expression":{"pos":0,"end":13,"text":"myPrologue2"}}]}]}},"dts":{"sections":[{"pos":0,"end":163,"kind":"prepend","data":"../lib/module.d.ts","texts":[{"pos":0,"end":163,"kind":"text"}]},{"pos":163,"end":241,"kind":"text"}],"mapHash":"-26680300331-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\"AACA,QAAA,MAAM,MAAM,KAAK,CAAC;;ICDlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICCpB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICAvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,KAAK,KAAK,CAAC\"}","hash":"11992050152-declare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../lib/module.d.ts","./file3.ts","./file4.ts"],"fileInfos":["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; };","29754794677-declare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\n","14566593738-\"myPrologue\"\nexport const z = 30;\r\nimport { x } from \"file1\";","8812798660-\"myPrologue2\";\nconst myVar = 30;"],"root":[3,4],"options":{"composite":true,"declarationMap":true,"module":2,"outFile":"./module.js","sourceMap":true,"strict":true,"target":1},"outSignature":"21172764033-declare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\n","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file3.ts","./file4.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":27,"kind":"prologue","data":"myPrologue"},{"pos":28,"end":42,"kind":"prologue","data":"myPrologue3"},{"pos":43,"end":57,"kind":"prologue","data":"myPrologue2"},{"pos":58,"end":553,"kind":"prepend","data":"../lib/module.js","texts":[{"pos":58,"end":553,"kind":"text"}]},{"pos":553,"end":790,"kind":"text"}],"mapHash":"3847555902-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/global.ts\",\"file4.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"file3.ts\"],\"names\":[],\"mappings\":\";AAAA,YAAY,CAAA;ACAZ,aAAa,CAAA;ACAb,aAAa,CAAC;AFCd,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;IGDL,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;ICAnC,gBAAgB,CAAA;;;IACH,QAAA,CAAC,GAAG,EAAE,CAAC;;AHApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;IIDvB,YAAY,CAAA;;;IACC,QAAA,CAAC,GAAG,EAAE,CAAC;;AHApB,IAAM,KAAK,GAAG,EAAE,CAAC\"}","hash":"36337196554-\"use strict\";\n\"myPrologue\";\n\"myPrologue3\";\n\"myPrologue2\";\nvar myGlob = 20;\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.x = void 0;\n exports.x = 10;\n console.log(exports.x);\n});\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n \"myPrologueFile\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.y = void 0;\n exports.y = 20;\n});\nvar globalConst = 10;\ndefine(\"file3\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n \"myPrologue\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.z = void 0;\n exports.z = 30;\n});\nvar myVar = 30;\n//# sourceMappingURL=module.js.map","sources":{"prologues":[{"file":1,"text":"\"myPrologue2\";","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}},{"pos":0,"end":14,"expression":{"pos":0,"end":13,"text":"myPrologue2"}}]}]}},"dts":{"sections":[{"pos":0,"end":163,"kind":"prepend","data":"../lib/module.d.ts","texts":[{"pos":0,"end":163,"kind":"text"}]},{"pos":163,"end":241,"kind":"text"}],"mapHash":"-26680300331-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\"AACA,QAAA,MAAM,MAAM,KAAK,CAAC;;ICDlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICCpB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICAvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,KAAK,KAAK,CAAC\"}","hash":"11992050152-declare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../lib/module.d.ts","./file3.ts","./file4.ts"],"fileInfos":["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; };","29754794677-declare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\n","6650205191-\"myPrologue\"\nexport const z = 30;\nimport { x } from \"file1\";\n","8812798660-\"myPrologue2\";\nconst myVar = 30;"],"root":[3,4],"options":{"composite":true,"declarationMap":true,"module":2,"outFile":"./module.js","sourceMap":true,"strict":true,"target":1},"outSignature":"21172764033-declare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\n","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} //// [/src/app/module.tsbuildinfo.baseline.txt] ====================================================================== @@ -1825,7 +1832,7 @@ declare const myVar = 30; "fileInfos": { "../../lib/lib.d.ts": "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; };", "../lib/module.d.ts": "29754794677-declare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\n", - "./file3.ts": "14566593738-\"myPrologue\"\nexport const z = 30;\r\nimport { x } from \"file1\";", + "./file3.ts": "6650205191-\"myPrologue\"\nexport const z = 30;\nimport { x } from \"file1\";\n", "./file4.ts": "8812798660-\"myPrologue2\";\nconst myVar = 30;" }, "root": [ @@ -1851,7 +1858,7 @@ declare const myVar = 30; "latestChangedDtsFile": "./module.d.ts" }, "version": "FakeTSVersion", - "size": 4462 + "size": 4461 } //// [/src/lib/module.d.ts.map] file written with same contents @@ -2274,17 +2281,17 @@ export const x = 10;console.log(x); Output:: /lib/tsc --b /src/app --verbose -[12:01:01 AM] Projects in this build: +[12:01:11 AM] Projects in this build: * src/lib/tsconfig.json * src/app/tsconfig.json -[12:01:02 AM] Project 'src/lib/tsconfig.json' is out of date because output 'src/lib/module.tsbuildinfo' is older than input 'src/lib/file1.ts' +[12:01:12 AM] Project 'src/lib/tsconfig.json' is out of date because output 'src/lib/module.tsbuildinfo' is older than input 'src/lib/file1.ts' -[12:01:03 AM] Building project '/src/lib/tsconfig.json'... +[12:01:13 AM] Building project '/src/lib/tsconfig.json'... -[12:01:11 AM] Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed +[12:01:21 AM] Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed -[12:01:12 AM] Updating output of project '/src/app/tsconfig.json'... +[12:01:22 AM] Updating output of project '/src/app/tsconfig.json'... exitCode:: ExitStatus.Success @@ -2791,7 +2798,7 @@ sourceFile:file4.ts >>>//# sourceMappingURL=module.js.map //// [/src/app/module.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file3.ts","./file4.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":27,"kind":"prologue","data":"myPrologue"},{"pos":28,"end":42,"kind":"prologue","data":"myPrologue3"},{"pos":43,"end":57,"kind":"prologue","data":"myPrologue2"},{"pos":58,"end":572,"kind":"prepend","data":"../lib/module.js","texts":[{"pos":58,"end":572,"kind":"text"}]},{"pos":572,"end":809,"kind":"text"}],"mapHash":"16708366-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/global.ts\",\"file4.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"file3.ts\"],\"names\":[],\"mappings\":\";AAAA,YAAY,CAAA;ACAZ,aAAa,CAAA;ACAb,aAAa,CAAC;AFCd,IAAM,MAAM,GAAG,EAAE,CAAC;;;IGDlB,aAAa,CAAA;;;IACA,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;ICDnC,gBAAgB,CAAA;;;IACH,QAAA,CAAC,GAAG,EAAE,CAAC;;AHApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;IIDvB,YAAY,CAAA;;;IACC,QAAA,CAAC,GAAG,EAAE,CAAC;;AHApB,IAAM,KAAK,GAAG,EAAE,CAAC\"}","hash":"-4070331525-\"use strict\";\n\"myPrologue\";\n\"myPrologue3\";\n\"myPrologue2\";\nvar myGlob = 20;\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n \"myPrologue5\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.x = void 0;\n exports.x = 10;\n console.log(exports.x);\n});\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n \"myPrologueFile\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.y = void 0;\n exports.y = 20;\n});\nvar globalConst = 10;\ndefine(\"file3\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n \"myPrologue\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.z = void 0;\n exports.z = 30;\n});\nvar myVar = 30;\n//# sourceMappingURL=module.js.map","sources":{"prologues":[{"file":1,"text":"\"myPrologue2\";","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}},{"pos":0,"end":14,"expression":{"pos":0,"end":13,"text":"myPrologue2"}}]}]}},"dts":{"sections":[{"pos":0,"end":163,"kind":"prepend","data":"../lib/module.d.ts","texts":[{"pos":0,"end":163,"kind":"text"}]},{"pos":163,"end":241,"kind":"text"}],"mapHash":"-19636782544-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\"AACA,QAAA,MAAM,MAAM,KAAK,CAAC;;ICAlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICAvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,KAAK,KAAK,CAAC\"}","hash":"11992050152-declare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../lib/module.d.ts","./file3.ts","./file4.ts"],"fileInfos":["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; };","29754794677-declare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\n","14566593738-\"myPrologue\"\nexport const z = 30;\r\nimport { x } from \"file1\";","8812798660-\"myPrologue2\";\nconst myVar = 30;"],"root":[3,4],"options":{"composite":true,"declarationMap":true,"module":2,"outFile":"./module.js","sourceMap":true,"strict":true,"target":1},"outSignature":"21172764033-declare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\n","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file3.ts","./file4.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":27,"kind":"prologue","data":"myPrologue"},{"pos":28,"end":42,"kind":"prologue","data":"myPrologue3"},{"pos":43,"end":57,"kind":"prologue","data":"myPrologue2"},{"pos":58,"end":572,"kind":"prepend","data":"../lib/module.js","texts":[{"pos":58,"end":572,"kind":"text"}]},{"pos":572,"end":809,"kind":"text"}],"mapHash":"16708366-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/global.ts\",\"file4.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"file3.ts\"],\"names\":[],\"mappings\":\";AAAA,YAAY,CAAA;ACAZ,aAAa,CAAA;ACAb,aAAa,CAAC;AFCd,IAAM,MAAM,GAAG,EAAE,CAAC;;;IGDlB,aAAa,CAAA;;;IACA,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;ICDnC,gBAAgB,CAAA;;;IACH,QAAA,CAAC,GAAG,EAAE,CAAC;;AHApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;IIDvB,YAAY,CAAA;;;IACC,QAAA,CAAC,GAAG,EAAE,CAAC;;AHApB,IAAM,KAAK,GAAG,EAAE,CAAC\"}","hash":"-4070331525-\"use strict\";\n\"myPrologue\";\n\"myPrologue3\";\n\"myPrologue2\";\nvar myGlob = 20;\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n \"myPrologue5\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.x = void 0;\n exports.x = 10;\n console.log(exports.x);\n});\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n \"myPrologueFile\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.y = void 0;\n exports.y = 20;\n});\nvar globalConst = 10;\ndefine(\"file3\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n \"myPrologue\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.z = void 0;\n exports.z = 30;\n});\nvar myVar = 30;\n//# sourceMappingURL=module.js.map","sources":{"prologues":[{"file":1,"text":"\"myPrologue2\";","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}},{"pos":0,"end":14,"expression":{"pos":0,"end":13,"text":"myPrologue2"}}]}]}},"dts":{"sections":[{"pos":0,"end":163,"kind":"prepend","data":"../lib/module.d.ts","texts":[{"pos":0,"end":163,"kind":"text"}]},{"pos":163,"end":241,"kind":"text"}],"mapHash":"-19636782544-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\"AACA,QAAA,MAAM,MAAM,KAAK,CAAC;;ICAlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICAvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,KAAK,KAAK,CAAC\"}","hash":"11992050152-declare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../lib/module.d.ts","./file3.ts","./file4.ts"],"fileInfos":["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; };","29754794677-declare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\n","6650205191-\"myPrologue\"\nexport const z = 30;\nimport { x } from \"file1\";\n","8812798660-\"myPrologue2\";\nconst myVar = 30;"],"root":[3,4],"options":{"composite":true,"declarationMap":true,"module":2,"outFile":"./module.js","sourceMap":true,"strict":true,"target":1},"outSignature":"21172764033-declare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\n","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} //// [/src/app/module.tsbuildinfo.baseline.txt] ====================================================================== @@ -2985,7 +2992,7 @@ declare const myVar = 30; "fileInfos": { "../../lib/lib.d.ts": "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; };", "../lib/module.d.ts": "29754794677-declare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\n", - "./file3.ts": "14566593738-\"myPrologue\"\nexport const z = 30;\r\nimport { x } from \"file1\";", + "./file3.ts": "6650205191-\"myPrologue\"\nexport const z = 30;\nimport { x } from \"file1\";\n", "./file4.ts": "8812798660-\"myPrologue2\";\nconst myVar = 30;" }, "root": [ @@ -3011,7 +3018,7 @@ declare const myVar = 30; "latestChangedDtsFile": "./module.d.ts" }, "version": "FakeTSVersion", - "size": 4498 + "size": 4497 } //// [/src/lib/module.d.ts.map] diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/prepend-reports-deprecation-error.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/prepend-reports-deprecation-error.js index e00ce7c97d5f8..db7520a221f9c 100644 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/prepend-reports-deprecation-error.js +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/prepend-reports-deprecation-error.js @@ -16,28 +16,34 @@ interface ReadonlyArray {} declare const console: { log(msg: any): void; }; //// [/src/app/file3.ts] -export const z = 30; -import { x } from "file1"; +export const z = 30; +import { x } from "file1"; + //// [/src/app/file4.ts] const myVar = 30; //// [/src/app/tsconfig.json] -{ - "compilerOptions": { - - "target": "es5", - "module": "amd", - "composite": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "outFile": "module.js" - }, - "exclude": ["module.d.ts"], - "references": [ - { "path": "../lib", "prepend": true } - ] +{ + "compilerOptions": { + + "target": "es5", + "module": "amd", + "composite": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "outFile": "module.js" + }, + "exclude": [ + "module.d.ts" + ], + "references": [ + { + "path": "../lib", + "prepend": true + } + ] } //// [/src/lib/file0.ts] @@ -53,40 +59,47 @@ export const y = 20; const globalConst = 10; //// [/src/lib/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "module": "amd", - "composite": true, - "sourceMap": true, - "declarationMap": true, - "strict": false, - "outFile": "module.js" - }, - "exclude": ["module.d.ts"] - +{ + "compilerOptions": { + "target": "es5", + "module": "amd", + "composite": true, + "sourceMap": true, + "declarationMap": true, + "strict": false, + "outFile": "module.js" + }, + "exclude": [ + "module.d.ts" + ] } Output:: /lib/tsc --b /src/app --verbose -[12:00:07 AM] Projects in this build: +[12:00:17 AM] Projects in this build: * src/lib/tsconfig.json * src/app/tsconfig.json -[12:00:08 AM] Project 'src/lib/tsconfig.json' is out of date because output file 'src/lib/module.tsbuildinfo' does not exist +[12:00:18 AM] Project 'src/lib/tsconfig.json' is out of date because output file 'src/lib/module.tsbuildinfo' does not exist -[12:00:09 AM] Building project '/src/lib/tsconfig.json'... +[12:00:19 AM] Building project '/src/lib/tsconfig.json'... -[12:00:18 AM] Project 'src/app/tsconfig.json' is out of date because output file 'src/app/module.tsbuildinfo' does not exist +[12:00:28 AM] Project 'src/app/tsconfig.json' is out of date because output file 'src/app/module.tsbuildinfo' does not exist -[12:00:19 AM] Building project '/src/app/tsconfig.json'... +[12:00:29 AM] Building project '/src/app/tsconfig.json'... -src/app/tsconfig.json:14:9 - error TS5101: Option 'prepend' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '"ignoreDeprecations": "5.0"' to silence this error. +src/app/tsconfig.json:16:5 - error TS5101: Option 'prepend' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '"ignoreDeprecations": "5.0"' to silence this error. -14 { "path": "../lib", "prepend": true } -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +16 { +   ~ +17 "path": "../lib", +  ~~~~~~~~~~~~~~~~~~~~~~~ +18 "prepend": true +  ~~~~~~~~~~~~~~~~~~~~~ +19 } +  ~~~~~ Found 1 error. @@ -489,22 +502,28 @@ export const x = 10;console.log(x); Output:: /lib/tsc --b /src/app --verbose -[12:00:23 AM] Projects in this build: +[12:00:33 AM] Projects in this build: * src/lib/tsconfig.json * src/app/tsconfig.json -[12:00:24 AM] Project 'src/lib/tsconfig.json' is out of date because output 'src/lib/module.tsbuildinfo' is older than input 'src/lib/file1.ts' +[12:00:34 AM] Project 'src/lib/tsconfig.json' is out of date because output 'src/lib/module.tsbuildinfo' is older than input 'src/lib/file1.ts' -[12:00:25 AM] Building project '/src/lib/tsconfig.json'... +[12:00:35 AM] Building project '/src/lib/tsconfig.json'... -[12:00:33 AM] Project 'src/app/tsconfig.json' is out of date because output file 'src/app/module.tsbuildinfo' does not exist +[12:00:43 AM] Project 'src/app/tsconfig.json' is out of date because output file 'src/app/module.tsbuildinfo' does not exist -[12:00:34 AM] Building project '/src/app/tsconfig.json'... +[12:00:44 AM] Building project '/src/app/tsconfig.json'... -src/app/tsconfig.json:14:9 - error TS5101: Option 'prepend' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '"ignoreDeprecations": "5.0"' to silence this error. +src/app/tsconfig.json:16:5 - error TS5101: Option 'prepend' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '"ignoreDeprecations": "5.0"' to silence this error. -14 { "path": "../lib", "prepend": true } -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +16 { +   ~ +17 "path": "../lib", +  ~~~~~~~~~~~~~~~~~~~~~~~ +18 "prepend": true +  ~~~~~~~~~~~~~~~~~~~~~ +19 } +  ~~~~~ Found 1 error. diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/shebang-in-all-projects.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/shebang-in-all-projects.js index 294b2c70eea9c..bc41cbb988985 100644 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/shebang-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/shebang-in-all-projects.js @@ -17,28 +17,34 @@ declare const console: { log(msg: any): void; }; //// [/src/app/file3.ts] #!someshebang app file3 -export const z = 30; -import { x } from "file1"; +export const z = 30; +import { x } from "file1"; + //// [/src/app/file4.ts] const myVar = 30; //// [/src/app/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "module": "amd", - "composite": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "outFile": "module.js" - }, - "exclude": ["module.d.ts"], - "references": [ - { "path": "../lib", "prepend": true } - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "module": "amd", + "composite": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "outFile": "module.js" + }, + "exclude": [ + "module.d.ts" + ], + "references": [ + { + "path": "../lib", + "prepend": true + } + ] } //// [/src/lib/file0.ts] @@ -56,35 +62,36 @@ export const y = 20; const globalConst = 10; //// [/src/lib/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "module": "amd", - "composite": true, - "sourceMap": true, - "declarationMap": true, - "strict": false, - "outFile": "module.js" - }, - "exclude": ["module.d.ts"] - +{ + "compilerOptions": { + "target": "es5", + "module": "amd", + "composite": true, + "sourceMap": true, + "declarationMap": true, + "strict": false, + "outFile": "module.js" + }, + "exclude": [ + "module.d.ts" + ] } Output:: /lib/tsc --b /src/app --verbose -[12:00:09 AM] Projects in this build: +[12:00:19 AM] Projects in this build: * src/lib/tsconfig.json * src/app/tsconfig.json -[12:00:10 AM] Project 'src/lib/tsconfig.json' is out of date because output file 'src/lib/module.tsbuildinfo' does not exist +[12:00:20 AM] Project 'src/lib/tsconfig.json' is out of date because output file 'src/lib/module.tsbuildinfo' does not exist -[12:00:11 AM] Building project '/src/lib/tsconfig.json'... +[12:00:21 AM] Building project '/src/lib/tsconfig.json'... -[12:00:20 AM] Project 'src/app/tsconfig.json' is out of date because output file 'src/app/module.tsbuildinfo' does not exist +[12:00:30 AM] Project 'src/app/tsconfig.json' is out of date because output file 'src/app/module.tsbuildinfo' does not exist -[12:00:21 AM] Building project '/src/app/tsconfig.json'... +[12:00:31 AM] Building project '/src/app/tsconfig.json'... exitCode:: ExitStatus.Success @@ -485,7 +492,7 @@ sourceFile:file4.ts >>>//# sourceMappingURL=module.js.map //// [/src/app/module.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file3.ts","./file4.ts"],"js":{"sections":[{"pos":24,"end":469,"kind":"prepend","data":"../lib/module.js","texts":[{"pos":24,"end":469,"kind":"text"}]},{"pos":469,"end":688,"kind":"text"}],"mapHash":"-9078462836-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\";AACA,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;ICAL,QAAA,CAAC,GAAG,EAAE,CAAC;;;;;;ICDP,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;;ICCV,QAAA,CAAC,GAAG,EAAE,CAAC;;ACDpB,IAAM,KAAK,GAAG,EAAE,CAAC\"}","hash":"36155858807-#!someshebang lib file0\nvar myGlob = 20;\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.x = void 0;\n exports.x = 10;\n});\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.y = void 0;\n exports.y = 20;\n});\nvar globalConst = 10;\ndefine(\"file3\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.z = void 0;\n exports.z = 30;\n});\nvar myVar = 30;\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":24,"end":187,"kind":"prepend","data":"../lib/module.d.ts","texts":[{"pos":24,"end":187,"kind":"text"}]},{"pos":187,"end":265,"kind":"text"}],"mapHash":"-32924248397-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\";AACA,QAAA,MAAM,MAAM,KAAK,CAAC;;ICAlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICDpB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICCvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACDpB,QAAA,MAAM,KAAK,KAAK,CAAC\"}","hash":"-11113835959-#!someshebang lib file0\ndeclare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../lib/module.d.ts","./file3.ts","./file4.ts"],"fileInfos":["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; };","-477900586-#!someshebang lib file0\ndeclare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\n","7745078967-#!someshebang app file3\nexport const z = 30;\r\nimport { x } from \"file1\";","1463681686-const myVar = 30;"],"root":[3,4],"options":{"composite":true,"declarationMap":true,"module":2,"outFile":"./module.js","sourceMap":true,"strict":false,"target":1},"outSignature":"-7436986014-#!someshebang lib file0\ndeclare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\n","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file3.ts","./file4.ts"],"js":{"sections":[{"pos":24,"end":469,"kind":"prepend","data":"../lib/module.js","texts":[{"pos":24,"end":469,"kind":"text"}]},{"pos":469,"end":688,"kind":"text"}],"mapHash":"-9078462836-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\";AACA,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;ICAL,QAAA,CAAC,GAAG,EAAE,CAAC;;;;;;ICDP,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;;ICCV,QAAA,CAAC,GAAG,EAAE,CAAC;;ACDpB,IAAM,KAAK,GAAG,EAAE,CAAC\"}","hash":"36155858807-#!someshebang lib file0\nvar myGlob = 20;\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.x = void 0;\n exports.x = 10;\n});\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.y = void 0;\n exports.y = 20;\n});\nvar globalConst = 10;\ndefine(\"file3\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.z = void 0;\n exports.z = 30;\n});\nvar myVar = 30;\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":24,"end":187,"kind":"prepend","data":"../lib/module.d.ts","texts":[{"pos":24,"end":187,"kind":"text"}]},{"pos":187,"end":265,"kind":"text"}],"mapHash":"-32924248397-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\";AACA,QAAA,MAAM,MAAM,KAAK,CAAC;;ICAlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICDpB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICCvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACDpB,QAAA,MAAM,KAAK,KAAK,CAAC\"}","hash":"-11113835959-#!someshebang lib file0\ndeclare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../lib/module.d.ts","./file3.ts","./file4.ts"],"fileInfos":["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; };","-477900586-#!someshebang lib file0\ndeclare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\n","25598494196-#!someshebang app file3\nexport const z = 30;\nimport { x } from \"file1\";\n","1463681686-const myVar = 30;"],"root":[3,4],"options":{"composite":true,"declarationMap":true,"module":2,"outFile":"./module.js","sourceMap":true,"strict":false,"target":1},"outSignature":"-7436986014-#!someshebang lib file0\ndeclare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\n","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} //// [/src/app/module.tsbuildinfo.baseline.txt] ====================================================================== @@ -611,7 +618,7 @@ declare const myVar = 30; "fileInfos": { "../../lib/lib.d.ts": "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; };", "../lib/module.d.ts": "-477900586-#!someshebang lib file0\ndeclare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\n", - "./file3.ts": "7745078967-#!someshebang app file3\nexport const z = 30;\r\nimport { x } from \"file1\";", + "./file3.ts": "25598494196-#!someshebang app file3\nexport const z = 30;\nimport { x } from \"file1\";\n", "./file4.ts": "1463681686-const myVar = 30;" }, "root": [ @@ -637,7 +644,7 @@ declare const myVar = 30; "latestChangedDtsFile": "./module.d.ts" }, "version": "FakeTSVersion", - "size": 3837 + "size": 3838 } //// [/src/lib/module.d.ts] @@ -1044,17 +1051,17 @@ export const x = 10;console.log(x); Output:: /lib/tsc --b /src/app --verbose -[12:00:35 AM] Projects in this build: +[12:00:45 AM] Projects in this build: * src/lib/tsconfig.json * src/app/tsconfig.json -[12:00:36 AM] Project 'src/lib/tsconfig.json' is out of date because output 'src/lib/module.tsbuildinfo' is older than input 'src/lib/file1.ts' +[12:00:46 AM] Project 'src/lib/tsconfig.json' is out of date because output 'src/lib/module.tsbuildinfo' is older than input 'src/lib/file1.ts' -[12:00:37 AM] Building project '/src/lib/tsconfig.json'... +[12:00:47 AM] Building project '/src/lib/tsconfig.json'... -[12:00:45 AM] Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed +[12:00:55 AM] Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed -[12:00:46 AM] Updating output of project '/src/app/tsconfig.json'... +[12:00:56 AM] Updating output of project '/src/app/tsconfig.json'... exitCode:: ExitStatus.Success @@ -1291,7 +1298,7 @@ sourceFile:file4.ts >>>//# sourceMappingURL=module.js.map //// [/src/app/module.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file3.ts","./file4.ts"],"js":{"sections":[{"pos":24,"end":497,"kind":"prepend","data":"../lib/module.js","texts":[{"pos":24,"end":497,"kind":"text"}]},{"pos":497,"end":716,"kind":"text"}],"mapHash":"-22024543371-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\";AACA,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;ICAL,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;;ICDtB,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;;ICCV,QAAA,CAAC,GAAG,EAAE,CAAC;;ACDpB,IAAM,KAAK,GAAG,EAAE,CAAC\"}","hash":"-32586228917-#!someshebang lib file0\nvar myGlob = 20;\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.x = void 0;\n exports.x = 10;\n console.log(exports.x);\n});\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.y = void 0;\n exports.y = 20;\n});\nvar globalConst = 10;\ndefine(\"file3\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.z = void 0;\n exports.z = 30;\n});\nvar myVar = 30;\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":24,"end":187,"kind":"prepend","data":"../lib/module.d.ts","texts":[{"pos":24,"end":187,"kind":"text"}]},{"pos":187,"end":265,"kind":"text"}],"mapHash":"-32924248397-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\";AACA,QAAA,MAAM,MAAM,KAAK,CAAC;;ICAlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICDpB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICCvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACDpB,QAAA,MAAM,KAAK,KAAK,CAAC\"}","hash":"-11113835959-#!someshebang lib file0\ndeclare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../lib/module.d.ts","./file3.ts","./file4.ts"],"fileInfos":["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; };","-477900586-#!someshebang lib file0\ndeclare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\n","7745078967-#!someshebang app file3\nexport const z = 30;\r\nimport { x } from \"file1\";","1463681686-const myVar = 30;"],"root":[3,4],"options":{"composite":true,"declarationMap":true,"module":2,"outFile":"./module.js","sourceMap":true,"strict":false,"target":1},"outSignature":"-7436986014-#!someshebang lib file0\ndeclare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\n","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file3.ts","./file4.ts"],"js":{"sections":[{"pos":24,"end":497,"kind":"prepend","data":"../lib/module.js","texts":[{"pos":24,"end":497,"kind":"text"}]},{"pos":497,"end":716,"kind":"text"}],"mapHash":"-22024543371-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\";AACA,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;ICAL,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;;ICDtB,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;;ICCV,QAAA,CAAC,GAAG,EAAE,CAAC;;ACDpB,IAAM,KAAK,GAAG,EAAE,CAAC\"}","hash":"-32586228917-#!someshebang lib file0\nvar myGlob = 20;\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.x = void 0;\n exports.x = 10;\n console.log(exports.x);\n});\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.y = void 0;\n exports.y = 20;\n});\nvar globalConst = 10;\ndefine(\"file3\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.z = void 0;\n exports.z = 30;\n});\nvar myVar = 30;\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":24,"end":187,"kind":"prepend","data":"../lib/module.d.ts","texts":[{"pos":24,"end":187,"kind":"text"}]},{"pos":187,"end":265,"kind":"text"}],"mapHash":"-32924248397-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\";AACA,QAAA,MAAM,MAAM,KAAK,CAAC;;ICAlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICDpB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICCvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACDpB,QAAA,MAAM,KAAK,KAAK,CAAC\"}","hash":"-11113835959-#!someshebang lib file0\ndeclare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../lib/module.d.ts","./file3.ts","./file4.ts"],"fileInfos":["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; };","-477900586-#!someshebang lib file0\ndeclare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\n","25598494196-#!someshebang app file3\nexport const z = 30;\nimport { x } from \"file1\";\n","1463681686-const myVar = 30;"],"root":[3,4],"options":{"composite":true,"declarationMap":true,"module":2,"outFile":"./module.js","sourceMap":true,"strict":false,"target":1},"outSignature":"-7436986014-#!someshebang lib file0\ndeclare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\n","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} //// [/src/app/module.tsbuildinfo.baseline.txt] ====================================================================== @@ -1418,7 +1425,7 @@ declare const myVar = 30; "fileInfos": { "../../lib/lib.d.ts": "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; };", "../lib/module.d.ts": "-477900586-#!someshebang lib file0\ndeclare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\n", - "./file3.ts": "7745078967-#!someshebang app file3\nexport const z = 30;\r\nimport { x } from \"file1\";", + "./file3.ts": "25598494196-#!someshebang app file3\nexport const z = 30;\nimport { x } from \"file1\";\n", "./file4.ts": "1463681686-const myVar = 30;" }, "root": [ @@ -1444,7 +1451,7 @@ declare const myVar = 30; "latestChangedDtsFile": "./module.d.ts" }, "version": "FakeTSVersion", - "size": 3909 + "size": 3910 } //// [/src/lib/module.d.ts.map] file written with same contents diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/stripInternal.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/stripInternal.js index a7dd7d2f1233d..017073fb7c2b7 100644 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/stripInternal.js +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/stripInternal.js @@ -16,29 +16,35 @@ interface ReadonlyArray {} declare const console: { log(msg: any): void; }; //// [/src/app/file3.ts] -export const z = 30; -import { x } from "file1"; +export const z = 30; +import { x } from "file1"; + //// [/src/app/file4.ts] const myVar = 30; //// [/src/app/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "module": "amd", - "composite": true, -"stripInternal": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "outFile": "module.js" - }, - "exclude": ["module.d.ts"], - "references": [ - { "path": "../lib", "prepend": true } - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "module": "amd", + "composite": true, +"stripInternal": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "outFile": "module.js" + }, + "exclude": [ + "module.d.ts" + ], + "references": [ + { + "path": "../lib", + "prepend": true + } + ] } //// [/src/lib/file0.ts] @@ -79,35 +85,36 @@ export const y = 20; const globalConst = 10; //// [/src/lib/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "module": "amd", - "composite": true, - "sourceMap": true, - "declarationMap": true, - "strict": false, - "outFile": "module.js" - }, - "exclude": ["module.d.ts"] - +{ + "compilerOptions": { + "target": "es5", + "module": "amd", + "composite": true, + "sourceMap": true, + "declarationMap": true, + "strict": false, + "outFile": "module.js" + }, + "exclude": [ + "module.d.ts" + ] } Output:: /lib/tsc --b /src/app --verbose -[12:00:09 AM] Projects in this build: +[12:00:19 AM] Projects in this build: * src/lib/tsconfig.json * src/app/tsconfig.json -[12:00:10 AM] Project 'src/lib/tsconfig.json' is out of date because output file 'src/lib/module.tsbuildinfo' does not exist +[12:00:20 AM] Project 'src/lib/tsconfig.json' is out of date because output file 'src/lib/module.tsbuildinfo' does not exist -[12:00:11 AM] Building project '/src/lib/tsconfig.json'... +[12:00:21 AM] Building project '/src/lib/tsconfig.json'... -[12:00:20 AM] Project 'src/app/tsconfig.json' is out of date because output file 'src/app/module.tsbuildinfo' does not exist +[12:00:30 AM] Project 'src/app/tsconfig.json' is out of date because output file 'src/app/module.tsbuildinfo' does not exist -[12:00:21 AM] Building project '/src/app/tsconfig.json'... +[12:00:31 AM] Building project '/src/app/tsconfig.json'... exitCode:: ExitStatus.Success @@ -1954,7 +1961,7 @@ sourceFile:file4.ts >>>//# sourceMappingURL=module.js.map //// [/src/app/module.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file3.ts","./file4.ts"],"js":{"sections":[{"pos":0,"end":4246,"kind":"prepend","data":"../lib/module.js","texts":[{"pos":0,"end":4246,"kind":"text"}]},{"pos":4246,"end":4465,"kind":"text"}],"mapHash":"8297079767-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\"AAAA,aAAa,CAAC,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;ICAnB,QAAA,CAAC,GAAG,EAAE,CAAC;IACpB;QACI,aAAa,CAAC;QAAgB,CAAC;QAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;QACZ,sBAAI,sBAAC;YAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;YACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;WADA;QAExC,cAAC;IAAD,CAAC,AAND,IAMC;IANY,0BAAO;IAOpB,IAAiB,OAAO,CASvB;IATD,WAAiB,OAAO;QACpB,aAAa,CAAC;YAAA;YAAiB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAlB,IAAkB;QAAL,SAAC,IAAI,CAAA;QAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;QAAR,WAAG,MAAK,CAAA;QACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;QAApD,WAAiB,aAAa;YAAG;gBAAA;gBAAgB,CAAC;gBAAD,QAAC;YAAD,CAAC,AAAjB,IAAiB;YAAJ,eAAC,IAAG,CAAA;QAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;QAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;QAAlE,WAAiB,SAAS;YAAC,IAAA,SAAS,CAA8B;YAAvC,WAAA,SAAS;gBAAG;oBAAA;oBAAwB,CAAC;oBAAD,gBAAC;gBAAD,CAAC,AAAzB,IAAyB;gBAAZ,mBAAS,YAAG,CAAA;YAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;QAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;QAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;QAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;QAC9C,aAAa,CAAC,IAAY,YAAwB;QAApC,WAAY,YAAY;YAAG,yCAAC,CAAA;YAAE,yCAAC,CAAA;YAAE,yCAAC,CAAA;QAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;IACtD,CAAC,EATgB,OAAO,uBAAP,OAAO,QASvB;IACD,aAAa,CAAC;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,8BAAS;IACpC,aAAa,CAAC,SAAgB,WAAW,KAAI,CAAC;IAAhC,kCAAgC;IAC9C,aAAa,CAAC,IAAiB,iBAAiB,CAA8B;IAAhE,WAAiB,iBAAiB;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,2BAAS,YAAG,CAAA;IAAC,CAAC,EAA/C,iBAAiB,iCAAjB,iBAAiB,QAA8B;IAC9E,aAAa,CAAC,IAAiB,aAAa,CAAwC;IAAtE,WAAiB,aAAa;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;IAAD,CAAC,EAArD,aAAa,6BAAb,aAAa,QAAwC;IACpF,aAAa,CAAe,QAAA,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;IAEzE,aAAa,CAAc,QAAA,aAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,4BAAZ,YAAY,QAAY;;;;;;ICzBrC,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,KAAK,GAAG,EAAE,CAAC\"}","hash":"-81552364587-/*@internal*/ var myGlob = 20;\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.internalEnum = exports.internalConst = exports.internalImport = exports.internalOther = exports.internalNamespace = exports.internalfoo = exports.internalC = exports.normalN = exports.normalC = exports.x = void 0;\n exports.x = 10;\n var normalC = /** @class */ (function () {\n /*@internal*/ function normalC() {\n }\n /*@internal*/ normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n /*@internal*/ get: function () { return 10; },\n /*@internal*/ set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n }());\n exports.normalC = normalC;\n var normalN;\n (function (normalN) {\n /*@internal*/ var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n /*@internal*/ function foo() { }\n normalN.foo = foo;\n /*@internal*/ var someNamespace;\n (function (someNamespace) {\n var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n /*@internal*/ var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n /*@internal*/ normalN.someImport = someNamespace.C;\n /*@internal*/ normalN.internalConst = 10;\n /*@internal*/ var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n })(normalN || (exports.normalN = normalN = {}));\n /*@internal*/ var internalC = /** @class */ (function () {\n function internalC() {\n }\n return internalC;\n }());\n exports.internalC = internalC;\n /*@internal*/ function internalfoo() { }\n exports.internalfoo = internalfoo;\n /*@internal*/ var internalNamespace;\n (function (internalNamespace) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n })(internalNamespace || (exports.internalNamespace = internalNamespace = {}));\n /*@internal*/ var internalOther;\n (function (internalOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n })(internalOther || (exports.internalOther = internalOther = {}));\n /*@internal*/ exports.internalImport = internalNamespace.someClass;\n /*@internal*/ exports.internalConst = 10;\n /*@internal*/ var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum || (exports.internalEnum = internalEnum = {}));\n});\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.y = void 0;\n exports.y = 20;\n});\nvar globalConst = 10;\ndefine(\"file3\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.z = void 0;\n exports.z = 30;\n});\nvar myVar = 30;\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":0,"end":206,"kind":"prepend","data":"../lib/module.d.ts","texts":[{"pos":0,"end":206,"kind":"text"}]},{"pos":206,"end":284,"kind":"text"}],"mapHash":"12507664209-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\";IAAA,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;IACpB,MAAM,OAAO,OAAO;KAMnB;IACD,MAAM,WAAW,OAAO,CAAC;KASxB;;;ICjBD,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICAvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,KAAK,KAAK,CAAC\"}","hash":"13934920901-declare module \"file1\" {\n export const x = 10;\n export class normalC {\n }\n export namespace normalN {\n }\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../lib/module.d.ts","./file3.ts","./file4.ts"],"fileInfos":["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; };","-51705233744-declare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n export class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n }\n export namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n }\n export class internalC {\n }\n export function internalfoo(): void;\n export namespace internalNamespace {\n class someClass {\n }\n }\n export namespace internalOther.something {\n class someClass {\n }\n }\n export import internalImport = internalNamespace.someClass;\n export type internalType = internalC;\n export const internalConst = 10;\n export enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\n","-2588783191-export const z = 30;\r\nimport { x } from \"file1\";","1463681686-const myVar = 30;"],"root":[3,4],"options":{"composite":true,"declarationMap":true,"module":2,"outFile":"./module.js","sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"13415316958-declare module \"file1\" {\n export const x = 10;\n export class normalC {\n }\n export namespace normalN {\n }\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\n","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file3.ts","./file4.ts"],"js":{"sections":[{"pos":0,"end":4246,"kind":"prepend","data":"../lib/module.js","texts":[{"pos":0,"end":4246,"kind":"text"}]},{"pos":4246,"end":4465,"kind":"text"}],"mapHash":"8297079767-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\"AAAA,aAAa,CAAC,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;ICAnB,QAAA,CAAC,GAAG,EAAE,CAAC;IACpB;QACI,aAAa,CAAC;QAAgB,CAAC;QAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;QACZ,sBAAI,sBAAC;YAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;YACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;WADA;QAExC,cAAC;IAAD,CAAC,AAND,IAMC;IANY,0BAAO;IAOpB,IAAiB,OAAO,CASvB;IATD,WAAiB,OAAO;QACpB,aAAa,CAAC;YAAA;YAAiB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAlB,IAAkB;QAAL,SAAC,IAAI,CAAA;QAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;QAAR,WAAG,MAAK,CAAA;QACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;QAApD,WAAiB,aAAa;YAAG;gBAAA;gBAAgB,CAAC;gBAAD,QAAC;YAAD,CAAC,AAAjB,IAAiB;YAAJ,eAAC,IAAG,CAAA;QAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;QAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;QAAlE,WAAiB,SAAS;YAAC,IAAA,SAAS,CAA8B;YAAvC,WAAA,SAAS;gBAAG;oBAAA;oBAAwB,CAAC;oBAAD,gBAAC;gBAAD,CAAC,AAAzB,IAAyB;gBAAZ,mBAAS,YAAG,CAAA;YAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;QAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;QAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;QAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;QAC9C,aAAa,CAAC,IAAY,YAAwB;QAApC,WAAY,YAAY;YAAG,yCAAC,CAAA;YAAE,yCAAC,CAAA;YAAE,yCAAC,CAAA;QAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;IACtD,CAAC,EATgB,OAAO,uBAAP,OAAO,QASvB;IACD,aAAa,CAAC;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,8BAAS;IACpC,aAAa,CAAC,SAAgB,WAAW,KAAI,CAAC;IAAhC,kCAAgC;IAC9C,aAAa,CAAC,IAAiB,iBAAiB,CAA8B;IAAhE,WAAiB,iBAAiB;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,2BAAS,YAAG,CAAA;IAAC,CAAC,EAA/C,iBAAiB,iCAAjB,iBAAiB,QAA8B;IAC9E,aAAa,CAAC,IAAiB,aAAa,CAAwC;IAAtE,WAAiB,aAAa;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;IAAD,CAAC,EAArD,aAAa,6BAAb,aAAa,QAAwC;IACpF,aAAa,CAAe,QAAA,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;IAEzE,aAAa,CAAc,QAAA,aAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,4BAAZ,YAAY,QAAY;;;;;;ICzBrC,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,KAAK,GAAG,EAAE,CAAC\"}","hash":"-81552364587-/*@internal*/ var myGlob = 20;\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.internalEnum = exports.internalConst = exports.internalImport = exports.internalOther = exports.internalNamespace = exports.internalfoo = exports.internalC = exports.normalN = exports.normalC = exports.x = void 0;\n exports.x = 10;\n var normalC = /** @class */ (function () {\n /*@internal*/ function normalC() {\n }\n /*@internal*/ normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n /*@internal*/ get: function () { return 10; },\n /*@internal*/ set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n }());\n exports.normalC = normalC;\n var normalN;\n (function (normalN) {\n /*@internal*/ var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n /*@internal*/ function foo() { }\n normalN.foo = foo;\n /*@internal*/ var someNamespace;\n (function (someNamespace) {\n var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n /*@internal*/ var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n /*@internal*/ normalN.someImport = someNamespace.C;\n /*@internal*/ normalN.internalConst = 10;\n /*@internal*/ var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n })(normalN || (exports.normalN = normalN = {}));\n /*@internal*/ var internalC = /** @class */ (function () {\n function internalC() {\n }\n return internalC;\n }());\n exports.internalC = internalC;\n /*@internal*/ function internalfoo() { }\n exports.internalfoo = internalfoo;\n /*@internal*/ var internalNamespace;\n (function (internalNamespace) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n })(internalNamespace || (exports.internalNamespace = internalNamespace = {}));\n /*@internal*/ var internalOther;\n (function (internalOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n })(internalOther || (exports.internalOther = internalOther = {}));\n /*@internal*/ exports.internalImport = internalNamespace.someClass;\n /*@internal*/ exports.internalConst = 10;\n /*@internal*/ var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum || (exports.internalEnum = internalEnum = {}));\n});\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.y = void 0;\n exports.y = 20;\n});\nvar globalConst = 10;\ndefine(\"file3\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.z = void 0;\n exports.z = 30;\n});\nvar myVar = 30;\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":0,"end":206,"kind":"prepend","data":"../lib/module.d.ts","texts":[{"pos":0,"end":206,"kind":"text"}]},{"pos":206,"end":284,"kind":"text"}],"mapHash":"12507664209-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\";IAAA,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;IACpB,MAAM,OAAO,OAAO;KAMnB;IACD,MAAM,WAAW,OAAO,CAAC;KASxB;;;ICjBD,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICAvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,KAAK,KAAK,CAAC\"}","hash":"13934920901-declare module \"file1\" {\n export const x = 10;\n export class normalC {\n }\n export namespace normalN {\n }\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../lib/module.d.ts","./file3.ts","./file4.ts"],"fileInfos":["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; };","-51705233744-declare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n export class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n }\n export namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n }\n export class internalC {\n }\n export function internalfoo(): void;\n export namespace internalNamespace {\n class someClass {\n }\n }\n export namespace internalOther.something {\n class someClass {\n }\n }\n export import internalImport = internalNamespace.someClass;\n export type internalType = internalC;\n export const internalConst = 10;\n export enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\n","-10505171738-export const z = 30;\nimport { x } from \"file1\";\n","1463681686-const myVar = 30;"],"root":[3,4],"options":{"composite":true,"declarationMap":true,"module":2,"outFile":"./module.js","sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"13415316958-declare module \"file1\" {\n export const x = 10;\n export class normalC {\n }\n export namespace normalN {\n }\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\n","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} //// [/src/app/module.tsbuildinfo.baseline.txt] ====================================================================== @@ -2173,7 +2180,7 @@ declare const myVar = 30; "fileInfos": { "../../lib/lib.d.ts": "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; };", "../lib/module.d.ts": "-51705233744-declare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n export class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n }\n export namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n }\n export class internalC {\n }\n export function internalfoo(): void;\n export namespace internalNamespace {\n class someClass {\n }\n }\n export namespace internalOther.something {\n class someClass {\n }\n }\n export import internalImport = internalNamespace.someClass;\n export type internalType = internalC;\n export const internalConst = 10;\n export enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\n", - "./file3.ts": "-2588783191-export const z = 30;\r\nimport { x } from \"file1\";", + "./file3.ts": "-10505171738-export const z = 30;\nimport { x } from \"file1\";\n", "./file4.ts": "1463681686-const myVar = 30;" }, "root": [ @@ -2200,7 +2207,7 @@ declare const myVar = 30; "latestChangedDtsFile": "./module.d.ts" }, "version": "FakeTSVersion", - "size": 10794 + "size": 10795 } //// [/src/lib/module.d.ts] @@ -4893,17 +4900,17 @@ export namespace normalN { Output:: /lib/tsc --b /src/app --verbose -[12:00:35 AM] Projects in this build: +[12:00:45 AM] Projects in this build: * src/lib/tsconfig.json * src/app/tsconfig.json -[12:00:36 AM] Project 'src/lib/tsconfig.json' is out of date because output 'src/lib/module.tsbuildinfo' is older than input 'src/lib/file1.ts' +[12:00:46 AM] Project 'src/lib/tsconfig.json' is out of date because output 'src/lib/module.tsbuildinfo' is older than input 'src/lib/file1.ts' -[12:00:37 AM] Building project '/src/lib/tsconfig.json'... +[12:00:47 AM] Building project '/src/lib/tsconfig.json'... -[12:00:45 AM] Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed +[12:00:55 AM] Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed -[12:00:46 AM] Updating output of project '/src/app/tsconfig.json'... +[12:00:56 AM] Updating output of project '/src/app/tsconfig.json'... exitCode:: ExitStatus.Success @@ -6551,7 +6558,7 @@ sourceFile:file4.ts >>>//# sourceMappingURL=module.js.map //// [/src/app/module.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file3.ts","./file4.ts"],"js":{"sections":[{"pos":0,"end":4274,"kind":"prepend","data":"../lib/module.js","texts":[{"pos":0,"end":4274,"kind":"text"}]},{"pos":4274,"end":4493,"kind":"text"}],"mapHash":"14469018393-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\"AAAA,aAAa,CAAC,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;ICAnB,QAAA,CAAC,GAAG,EAAE,CAAC;IACpB;QACI,aAAa,CAAC;QAAgB,CAAC;QAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;QACZ,sBAAI,sBAAC;YAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;YACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;WADA;QAExC,cAAC;IAAD,CAAC,AAND,IAMC;IANY,0BAAO;IAOpB,IAAiB,OAAO,CASvB;IATD,WAAiB,OAAO;QACpB,aAAa,CAAC;YAAA;YAAiB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAlB,IAAkB;QAAL,SAAC,IAAI,CAAA;QAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;QAAR,WAAG,MAAK,CAAA;QACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;QAApD,WAAiB,aAAa;YAAG;gBAAA;gBAAgB,CAAC;gBAAD,QAAC;YAAD,CAAC,AAAjB,IAAiB;YAAJ,eAAC,IAAG,CAAA;QAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;QAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;QAAlE,WAAiB,SAAS;YAAC,IAAA,SAAS,CAA8B;YAAvC,WAAA,SAAS;gBAAG;oBAAA;oBAAwB,CAAC;oBAAD,gBAAC;gBAAD,CAAC,AAAzB,IAAyB;gBAAZ,mBAAS,YAAG,CAAA;YAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;QAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;QAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;QAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;QAC9C,aAAa,CAAC,IAAY,YAAwB;QAApC,WAAY,YAAY;YAAG,yCAAC,CAAA;YAAE,yCAAC,CAAA;YAAE,yCAAC,CAAA;QAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;IACtD,CAAC,EATgB,OAAO,uBAAP,OAAO,QASvB;IACD,aAAa,CAAC;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,8BAAS;IACpC,aAAa,CAAC,SAAgB,WAAW,KAAI,CAAC;IAAhC,kCAAgC;IAC9C,aAAa,CAAC,IAAiB,iBAAiB,CAA8B;IAAhE,WAAiB,iBAAiB;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,2BAAS,YAAG,CAAA;IAAC,CAAC,EAA/C,iBAAiB,iCAAjB,iBAAiB,QAA8B;IAC9E,aAAa,CAAC,IAAiB,aAAa,CAAwC;IAAtE,WAAiB,aAAa;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;IAAD,CAAC,EAArD,aAAa,6BAAb,aAAa,QAAwC;IACpF,aAAa,CAAe,QAAA,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;IAEzE,aAAa,CAAc,QAAA,aAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,4BAAZ,YAAY,QAAY;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;;ICzBpD,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,KAAK,GAAG,EAAE,CAAC\"}","hash":"-55607353175-/*@internal*/ var myGlob = 20;\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.internalEnum = exports.internalConst = exports.internalImport = exports.internalOther = exports.internalNamespace = exports.internalfoo = exports.internalC = exports.normalN = exports.normalC = exports.x = void 0;\n exports.x = 10;\n var normalC = /** @class */ (function () {\n /*@internal*/ function normalC() {\n }\n /*@internal*/ normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n /*@internal*/ get: function () { return 10; },\n /*@internal*/ set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n }());\n exports.normalC = normalC;\n var normalN;\n (function (normalN) {\n /*@internal*/ var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n /*@internal*/ function foo() { }\n normalN.foo = foo;\n /*@internal*/ var someNamespace;\n (function (someNamespace) {\n var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n /*@internal*/ var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n /*@internal*/ normalN.someImport = someNamespace.C;\n /*@internal*/ normalN.internalConst = 10;\n /*@internal*/ var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n })(normalN || (exports.normalN = normalN = {}));\n /*@internal*/ var internalC = /** @class */ (function () {\n function internalC() {\n }\n return internalC;\n }());\n exports.internalC = internalC;\n /*@internal*/ function internalfoo() { }\n exports.internalfoo = internalfoo;\n /*@internal*/ var internalNamespace;\n (function (internalNamespace) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n })(internalNamespace || (exports.internalNamespace = internalNamespace = {}));\n /*@internal*/ var internalOther;\n (function (internalOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n })(internalOther || (exports.internalOther = internalOther = {}));\n /*@internal*/ exports.internalImport = internalNamespace.someClass;\n /*@internal*/ exports.internalConst = 10;\n /*@internal*/ var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum || (exports.internalEnum = internalEnum = {}));\n console.log(exports.x);\n});\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.y = void 0;\n exports.y = 20;\n});\nvar globalConst = 10;\ndefine(\"file3\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.z = void 0;\n exports.z = 30;\n});\nvar myVar = 30;\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":0,"end":206,"kind":"prepend","data":"../lib/module.d.ts","texts":[{"pos":0,"end":206,"kind":"text"}]},{"pos":206,"end":284,"kind":"text"}],"mapHash":"12507664209-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\";IAAA,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;IACpB,MAAM,OAAO,OAAO;KAMnB;IACD,MAAM,WAAW,OAAO,CAAC;KASxB;;;ICjBD,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICAvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,KAAK,KAAK,CAAC\"}","hash":"13934920901-declare module \"file1\" {\n export const x = 10;\n export class normalC {\n }\n export namespace normalN {\n }\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../lib/module.d.ts","./file3.ts","./file4.ts"],"fileInfos":["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; };","-51705233744-declare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n export class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n }\n export namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n }\n export class internalC {\n }\n export function internalfoo(): void;\n export namespace internalNamespace {\n class someClass {\n }\n }\n export namespace internalOther.something {\n class someClass {\n }\n }\n export import internalImport = internalNamespace.someClass;\n export type internalType = internalC;\n export const internalConst = 10;\n export enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\n","-2588783191-export const z = 30;\r\nimport { x } from \"file1\";","1463681686-const myVar = 30;"],"root":[3,4],"options":{"composite":true,"declarationMap":true,"module":2,"outFile":"./module.js","sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"13415316958-declare module \"file1\" {\n export const x = 10;\n export class normalC {\n }\n export namespace normalN {\n }\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\n","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file3.ts","./file4.ts"],"js":{"sections":[{"pos":0,"end":4274,"kind":"prepend","data":"../lib/module.js","texts":[{"pos":0,"end":4274,"kind":"text"}]},{"pos":4274,"end":4493,"kind":"text"}],"mapHash":"14469018393-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\"AAAA,aAAa,CAAC,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;ICAnB,QAAA,CAAC,GAAG,EAAE,CAAC;IACpB;QACI,aAAa,CAAC;QAAgB,CAAC;QAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;QACZ,sBAAI,sBAAC;YAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;YACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;WADA;QAExC,cAAC;IAAD,CAAC,AAND,IAMC;IANY,0BAAO;IAOpB,IAAiB,OAAO,CASvB;IATD,WAAiB,OAAO;QACpB,aAAa,CAAC;YAAA;YAAiB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAlB,IAAkB;QAAL,SAAC,IAAI,CAAA;QAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;QAAR,WAAG,MAAK,CAAA;QACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;QAApD,WAAiB,aAAa;YAAG;gBAAA;gBAAgB,CAAC;gBAAD,QAAC;YAAD,CAAC,AAAjB,IAAiB;YAAJ,eAAC,IAAG,CAAA;QAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;QAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;QAAlE,WAAiB,SAAS;YAAC,IAAA,SAAS,CAA8B;YAAvC,WAAA,SAAS;gBAAG;oBAAA;oBAAwB,CAAC;oBAAD,gBAAC;gBAAD,CAAC,AAAzB,IAAyB;gBAAZ,mBAAS,YAAG,CAAA;YAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;QAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;QAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;QAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;QAC9C,aAAa,CAAC,IAAY,YAAwB;QAApC,WAAY,YAAY;YAAG,yCAAC,CAAA;YAAE,yCAAC,CAAA;YAAE,yCAAC,CAAA;QAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;IACtD,CAAC,EATgB,OAAO,uBAAP,OAAO,QASvB;IACD,aAAa,CAAC;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,8BAAS;IACpC,aAAa,CAAC,SAAgB,WAAW,KAAI,CAAC;IAAhC,kCAAgC;IAC9C,aAAa,CAAC,IAAiB,iBAAiB,CAA8B;IAAhE,WAAiB,iBAAiB;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,2BAAS,YAAG,CAAA;IAAC,CAAC,EAA/C,iBAAiB,iCAAjB,iBAAiB,QAA8B;IAC9E,aAAa,CAAC,IAAiB,aAAa,CAAwC;IAAtE,WAAiB,aAAa;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;IAAD,CAAC,EAArD,aAAa,6BAAb,aAAa,QAAwC;IACpF,aAAa,CAAe,QAAA,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;IAEzE,aAAa,CAAc,QAAA,aAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,4BAAZ,YAAY,QAAY;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;;ICzBpD,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,KAAK,GAAG,EAAE,CAAC\"}","hash":"-55607353175-/*@internal*/ var myGlob = 20;\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.internalEnum = exports.internalConst = exports.internalImport = exports.internalOther = exports.internalNamespace = exports.internalfoo = exports.internalC = exports.normalN = exports.normalC = exports.x = void 0;\n exports.x = 10;\n var normalC = /** @class */ (function () {\n /*@internal*/ function normalC() {\n }\n /*@internal*/ normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n /*@internal*/ get: function () { return 10; },\n /*@internal*/ set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n }());\n exports.normalC = normalC;\n var normalN;\n (function (normalN) {\n /*@internal*/ var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n /*@internal*/ function foo() { }\n normalN.foo = foo;\n /*@internal*/ var someNamespace;\n (function (someNamespace) {\n var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n /*@internal*/ var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n /*@internal*/ normalN.someImport = someNamespace.C;\n /*@internal*/ normalN.internalConst = 10;\n /*@internal*/ var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n })(normalN || (exports.normalN = normalN = {}));\n /*@internal*/ var internalC = /** @class */ (function () {\n function internalC() {\n }\n return internalC;\n }());\n exports.internalC = internalC;\n /*@internal*/ function internalfoo() { }\n exports.internalfoo = internalfoo;\n /*@internal*/ var internalNamespace;\n (function (internalNamespace) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n })(internalNamespace || (exports.internalNamespace = internalNamespace = {}));\n /*@internal*/ var internalOther;\n (function (internalOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n })(internalOther || (exports.internalOther = internalOther = {}));\n /*@internal*/ exports.internalImport = internalNamespace.someClass;\n /*@internal*/ exports.internalConst = 10;\n /*@internal*/ var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum || (exports.internalEnum = internalEnum = {}));\n console.log(exports.x);\n});\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.y = void 0;\n exports.y = 20;\n});\nvar globalConst = 10;\ndefine(\"file3\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.z = void 0;\n exports.z = 30;\n});\nvar myVar = 30;\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":0,"end":206,"kind":"prepend","data":"../lib/module.d.ts","texts":[{"pos":0,"end":206,"kind":"text"}]},{"pos":206,"end":284,"kind":"text"}],"mapHash":"12507664209-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\";IAAA,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;IACpB,MAAM,OAAO,OAAO;KAMnB;IACD,MAAM,WAAW,OAAO,CAAC;KASxB;;;ICjBD,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICAvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,KAAK,KAAK,CAAC\"}","hash":"13934920901-declare module \"file1\" {\n export const x = 10;\n export class normalC {\n }\n export namespace normalN {\n }\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../lib/module.d.ts","./file3.ts","./file4.ts"],"fileInfos":["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; };","-51705233744-declare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n export class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n }\n export namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n }\n export class internalC {\n }\n export function internalfoo(): void;\n export namespace internalNamespace {\n class someClass {\n }\n }\n export namespace internalOther.something {\n class someClass {\n }\n }\n export import internalImport = internalNamespace.someClass;\n export type internalType = internalC;\n export const internalConst = 10;\n export enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\n","-10505171738-export const z = 30;\nimport { x } from \"file1\";\n","1463681686-const myVar = 30;"],"root":[3,4],"options":{"composite":true,"declarationMap":true,"module":2,"outFile":"./module.js","sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"13415316958-declare module \"file1\" {\n export const x = 10;\n export class normalC {\n }\n export namespace normalN {\n }\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\n","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} //// [/src/app/module.tsbuildinfo.baseline.txt] ====================================================================== @@ -6771,7 +6778,7 @@ declare const myVar = 30; "fileInfos": { "../../lib/lib.d.ts": "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; };", "../lib/module.d.ts": "-51705233744-declare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n export class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n }\n export namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n }\n export class internalC {\n }\n export function internalfoo(): void;\n export namespace internalNamespace {\n class someClass {\n }\n }\n export namespace internalOther.something {\n class someClass {\n }\n }\n export import internalImport = internalNamespace.someClass;\n export type internalType = internalC;\n export const internalConst = 10;\n export enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\n", - "./file3.ts": "-2588783191-export const z = 30;\r\nimport { x } from \"file1\";", + "./file3.ts": "-10505171738-export const z = 30;\nimport { x } from \"file1\";\n", "./file4.ts": "1463681686-const myVar = 30;" }, "root": [ @@ -6798,7 +6805,7 @@ declare const myVar = 30; "latestChangedDtsFile": "./module.d.ts" }, "version": "FakeTSVersion", - "size": 10864 + "size": 10865 } //// [/src/lib/module.d.ts.map] file written with same contents @@ -8727,17 +8734,17 @@ export namespace normalN { Output:: /lib/tsc --b /src/app --verbose -[12:00:57 AM] Projects in this build: +[12:01:07 AM] Projects in this build: * src/lib/tsconfig.json * src/app/tsconfig.json -[12:00:58 AM] Project 'src/lib/tsconfig.json' is out of date because output 'src/lib/module.tsbuildinfo' is older than input 'src/lib/file1.ts' +[12:01:08 AM] Project 'src/lib/tsconfig.json' is out of date because output 'src/lib/module.tsbuildinfo' is older than input 'src/lib/file1.ts' -[12:00:59 AM] Building project '/src/lib/tsconfig.json'... +[12:01:09 AM] Building project '/src/lib/tsconfig.json'... -[12:01:07 AM] Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed +[12:01:17 AM] Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed -[12:01:08 AM] Updating output of project '/src/app/tsconfig.json'... +[12:01:18 AM] Updating output of project '/src/app/tsconfig.json'... exitCode:: ExitStatus.Success @@ -10592,7 +10599,7 @@ sourceFile:file4.ts >>>//# sourceMappingURL=module.js.map //// [/src/app/module.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file3.ts","./file4.ts"],"js":{"sections":[{"pos":0,"end":4288,"kind":"prepend","data":"../lib/module.js","texts":[{"pos":0,"end":4288,"kind":"text"}]},{"pos":4288,"end":4507,"kind":"text"}],"mapHash":"-20858379531-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\"AAAA,aAAa,CAAC,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;ICAhC,aAAa,CAAc,QAAA,CAAC,GAAG,EAAE,CAAC;IAClC;QACI,aAAa,CAAC;QAAgB,CAAC;QAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;QACZ,sBAAI,sBAAC;YAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;YACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;WADA;QAExC,cAAC;IAAD,CAAC,AAND,IAMC;IANY,0BAAO;IAOpB,IAAiB,OAAO,CASvB;IATD,WAAiB,OAAO;QACpB,aAAa,CAAC;YAAA;YAAiB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAlB,IAAkB;QAAL,SAAC,IAAI,CAAA;QAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;QAAR,WAAG,MAAK,CAAA;QACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;QAApD,WAAiB,aAAa;YAAG;gBAAA;gBAAgB,CAAC;gBAAD,QAAC;YAAD,CAAC,AAAjB,IAAiB;YAAJ,eAAC,IAAG,CAAA;QAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;QAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;QAAlE,WAAiB,SAAS;YAAC,IAAA,SAAS,CAA8B;YAAvC,WAAA,SAAS;gBAAG;oBAAA;oBAAwB,CAAC;oBAAD,gBAAC;gBAAD,CAAC,AAAzB,IAAyB;gBAAZ,mBAAS,YAAG,CAAA;YAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;QAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;QAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;QAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;QAC9C,aAAa,CAAC,IAAY,YAAwB;QAApC,WAAY,YAAY;YAAG,yCAAC,CAAA;YAAE,yCAAC,CAAA;YAAE,yCAAC,CAAA;QAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;IACtD,CAAC,EATgB,OAAO,uBAAP,OAAO,QASvB;IACD,aAAa,CAAC;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,8BAAS;IACpC,aAAa,CAAC,SAAgB,WAAW,KAAI,CAAC;IAAhC,kCAAgC;IAC9C,aAAa,CAAC,IAAiB,iBAAiB,CAA8B;IAAhE,WAAiB,iBAAiB;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,2BAAS,YAAG,CAAA;IAAC,CAAC,EAA/C,iBAAiB,iCAAjB,iBAAiB,QAA8B;IAC9E,aAAa,CAAC,IAAiB,aAAa,CAAwC;IAAtE,WAAiB,aAAa;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;IAAD,CAAC,EAArD,aAAa,6BAAb,aAAa,QAAwC;IACpF,aAAa,CAAe,QAAA,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;IAEzE,aAAa,CAAc,QAAA,aAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,4BAAZ,YAAY,QAAY;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;;ICzBpD,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,KAAK,GAAG,EAAE,CAAC\"}","hash":"-162546178856-/*@internal*/ var myGlob = 20;\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.internalEnum = exports.internalConst = exports.internalImport = exports.internalOther = exports.internalNamespace = exports.internalfoo = exports.internalC = exports.normalN = exports.normalC = exports.x = void 0;\n /*@internal*/ exports.x = 10;\n var normalC = /** @class */ (function () {\n /*@internal*/ function normalC() {\n }\n /*@internal*/ normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n /*@internal*/ get: function () { return 10; },\n /*@internal*/ set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n }());\n exports.normalC = normalC;\n var normalN;\n (function (normalN) {\n /*@internal*/ var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n /*@internal*/ function foo() { }\n normalN.foo = foo;\n /*@internal*/ var someNamespace;\n (function (someNamespace) {\n var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n /*@internal*/ var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n /*@internal*/ normalN.someImport = someNamespace.C;\n /*@internal*/ normalN.internalConst = 10;\n /*@internal*/ var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n })(normalN || (exports.normalN = normalN = {}));\n /*@internal*/ var internalC = /** @class */ (function () {\n function internalC() {\n }\n return internalC;\n }());\n exports.internalC = internalC;\n /*@internal*/ function internalfoo() { }\n exports.internalfoo = internalfoo;\n /*@internal*/ var internalNamespace;\n (function (internalNamespace) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n })(internalNamespace || (exports.internalNamespace = internalNamespace = {}));\n /*@internal*/ var internalOther;\n (function (internalOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n })(internalOther || (exports.internalOther = internalOther = {}));\n /*@internal*/ exports.internalImport = internalNamespace.someClass;\n /*@internal*/ exports.internalConst = 10;\n /*@internal*/ var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum || (exports.internalEnum = internalEnum = {}));\n console.log(exports.x);\n});\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.y = void 0;\n exports.y = 20;\n});\nvar globalConst = 10;\ndefine(\"file3\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.z = void 0;\n exports.z = 30;\n});\nvar myVar = 30;\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":0,"end":181,"kind":"prepend","data":"../lib/module.d.ts","texts":[{"pos":0,"end":181,"kind":"text"}]},{"pos":181,"end":259,"kind":"text"}],"mapHash":"-49236694807-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\";IACA,MAAM,OAAO,OAAO;KAMnB;IACD,MAAM,WAAW,OAAO,CAAC;KASxB;;;ICjBD,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICAvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,KAAK,KAAK,CAAC\"}","hash":"4211667041-declare module \"file1\" {\n export class normalC {\n }\n export namespace normalN {\n }\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../lib/module.d.ts","./file3.ts","./file4.ts"],"fileInfos":["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; };","-51705233744-declare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n export class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n }\n export namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n }\n export class internalC {\n }\n export function internalfoo(): void;\n export namespace internalNamespace {\n class someClass {\n }\n }\n export namespace internalOther.something {\n class someClass {\n }\n }\n export import internalImport = internalNamespace.someClass;\n export type internalType = internalC;\n export const internalConst = 10;\n export enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\n","-2588783191-export const z = 30;\r\nimport { x } from \"file1\";","1463681686-const myVar = 30;"],"root":[3,4],"options":{"composite":true,"declarationMap":true,"module":2,"outFile":"./module.js","sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"-10240160902-declare module \"file1\" {\n export class normalC {\n }\n export namespace normalN {\n }\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\n","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file3.ts","./file4.ts"],"js":{"sections":[{"pos":0,"end":4288,"kind":"prepend","data":"../lib/module.js","texts":[{"pos":0,"end":4288,"kind":"text"}]},{"pos":4288,"end":4507,"kind":"text"}],"mapHash":"-20858379531-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\"AAAA,aAAa,CAAC,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;ICAhC,aAAa,CAAc,QAAA,CAAC,GAAG,EAAE,CAAC;IAClC;QACI,aAAa,CAAC;QAAgB,CAAC;QAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;QACZ,sBAAI,sBAAC;YAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;YACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;WADA;QAExC,cAAC;IAAD,CAAC,AAND,IAMC;IANY,0BAAO;IAOpB,IAAiB,OAAO,CASvB;IATD,WAAiB,OAAO;QACpB,aAAa,CAAC;YAAA;YAAiB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAlB,IAAkB;QAAL,SAAC,IAAI,CAAA;QAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;QAAR,WAAG,MAAK,CAAA;QACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;QAApD,WAAiB,aAAa;YAAG;gBAAA;gBAAgB,CAAC;gBAAD,QAAC;YAAD,CAAC,AAAjB,IAAiB;YAAJ,eAAC,IAAG,CAAA;QAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;QAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;QAAlE,WAAiB,SAAS;YAAC,IAAA,SAAS,CAA8B;YAAvC,WAAA,SAAS;gBAAG;oBAAA;oBAAwB,CAAC;oBAAD,gBAAC;gBAAD,CAAC,AAAzB,IAAyB;gBAAZ,mBAAS,YAAG,CAAA;YAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;QAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;QAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;QAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;QAC9C,aAAa,CAAC,IAAY,YAAwB;QAApC,WAAY,YAAY;YAAG,yCAAC,CAAA;YAAE,yCAAC,CAAA;YAAE,yCAAC,CAAA;QAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;IACtD,CAAC,EATgB,OAAO,uBAAP,OAAO,QASvB;IACD,aAAa,CAAC;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,8BAAS;IACpC,aAAa,CAAC,SAAgB,WAAW,KAAI,CAAC;IAAhC,kCAAgC;IAC9C,aAAa,CAAC,IAAiB,iBAAiB,CAA8B;IAAhE,WAAiB,iBAAiB;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,2BAAS,YAAG,CAAA;IAAC,CAAC,EAA/C,iBAAiB,iCAAjB,iBAAiB,QAA8B;IAC9E,aAAa,CAAC,IAAiB,aAAa,CAAwC;IAAtE,WAAiB,aAAa;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;IAAD,CAAC,EAArD,aAAa,6BAAb,aAAa,QAAwC;IACpF,aAAa,CAAe,QAAA,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;IAEzE,aAAa,CAAc,QAAA,aAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,4BAAZ,YAAY,QAAY;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;;ICzBpD,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,KAAK,GAAG,EAAE,CAAC\"}","hash":"-162546178856-/*@internal*/ var myGlob = 20;\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.internalEnum = exports.internalConst = exports.internalImport = exports.internalOther = exports.internalNamespace = exports.internalfoo = exports.internalC = exports.normalN = exports.normalC = exports.x = void 0;\n /*@internal*/ exports.x = 10;\n var normalC = /** @class */ (function () {\n /*@internal*/ function normalC() {\n }\n /*@internal*/ normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n /*@internal*/ get: function () { return 10; },\n /*@internal*/ set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n }());\n exports.normalC = normalC;\n var normalN;\n (function (normalN) {\n /*@internal*/ var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n /*@internal*/ function foo() { }\n normalN.foo = foo;\n /*@internal*/ var someNamespace;\n (function (someNamespace) {\n var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n /*@internal*/ var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n /*@internal*/ normalN.someImport = someNamespace.C;\n /*@internal*/ normalN.internalConst = 10;\n /*@internal*/ var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n })(normalN || (exports.normalN = normalN = {}));\n /*@internal*/ var internalC = /** @class */ (function () {\n function internalC() {\n }\n return internalC;\n }());\n exports.internalC = internalC;\n /*@internal*/ function internalfoo() { }\n exports.internalfoo = internalfoo;\n /*@internal*/ var internalNamespace;\n (function (internalNamespace) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n })(internalNamespace || (exports.internalNamespace = internalNamespace = {}));\n /*@internal*/ var internalOther;\n (function (internalOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n })(internalOther || (exports.internalOther = internalOther = {}));\n /*@internal*/ exports.internalImport = internalNamespace.someClass;\n /*@internal*/ exports.internalConst = 10;\n /*@internal*/ var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum || (exports.internalEnum = internalEnum = {}));\n console.log(exports.x);\n});\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.y = void 0;\n exports.y = 20;\n});\nvar globalConst = 10;\ndefine(\"file3\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.z = void 0;\n exports.z = 30;\n});\nvar myVar = 30;\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":0,"end":181,"kind":"prepend","data":"../lib/module.d.ts","texts":[{"pos":0,"end":181,"kind":"text"}]},{"pos":181,"end":259,"kind":"text"}],"mapHash":"-49236694807-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\";IACA,MAAM,OAAO,OAAO;KAMnB;IACD,MAAM,WAAW,OAAO,CAAC;KASxB;;;ICjBD,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICAvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,KAAK,KAAK,CAAC\"}","hash":"4211667041-declare module \"file1\" {\n export class normalC {\n }\n export namespace normalN {\n }\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../lib/module.d.ts","./file3.ts","./file4.ts"],"fileInfos":["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; };","-51705233744-declare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n export class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n }\n export namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n }\n export class internalC {\n }\n export function internalfoo(): void;\n export namespace internalNamespace {\n class someClass {\n }\n }\n export namespace internalOther.something {\n class someClass {\n }\n }\n export import internalImport = internalNamespace.someClass;\n export type internalType = internalC;\n export const internalConst = 10;\n export enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\n","-10505171738-export const z = 30;\nimport { x } from \"file1\";\n","1463681686-const myVar = 30;"],"root":[3,4],"options":{"composite":true,"declarationMap":true,"module":2,"outFile":"./module.js","sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"-10240160902-declare module \"file1\" {\n export class normalC {\n }\n export namespace normalN {\n }\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\n","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} //// [/src/app/module.tsbuildinfo.baseline.txt] ====================================================================== @@ -10811,7 +10818,7 @@ declare const myVar = 30; "fileInfos": { "../../lib/lib.d.ts": "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; };", "../lib/module.d.ts": "-51705233744-declare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n export class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n }\n export namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n }\n export class internalC {\n }\n export function internalfoo(): void;\n export namespace internalNamespace {\n class someClass {\n }\n }\n export namespace internalOther.something {\n class someClass {\n }\n }\n export import internalImport = internalNamespace.someClass;\n export type internalType = internalC;\n export const internalConst = 10;\n export enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\n", - "./file3.ts": "-2588783191-export const z = 30;\r\nimport { x } from \"file1\";", + "./file3.ts": "-10505171738-export const z = 30;\nimport { x } from \"file1\";\n", "./file4.ts": "1463681686-const myVar = 30;" }, "root": [ @@ -10838,7 +10845,7 @@ declare const myVar = 30; "latestChangedDtsFile": "./module.d.ts" }, "version": "FakeTSVersion", - "size": 10803 + "size": 10804 } //// [/src/lib/module.d.ts.map] diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/triple-slash-refs-in-all-projects.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/triple-slash-refs-in-all-projects.js index ab4a5f662f674..dad43e6e7516d 100644 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/triple-slash-refs-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/triple-slash-refs-in-all-projects.js @@ -16,8 +16,9 @@ interface ReadonlyArray {} declare const console: { log(msg: any): void; }; //// [/src/app/file3.ts] -export const z = 30; -import { x } from "file1"; +export const z = 30; +import { x } from "file1"; + //// [/src/app/file4.ts] /// @@ -28,21 +29,26 @@ const myVar = 30; declare class appfile4 { } //// [/src/app/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "module": "amd", - "composite": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "outFile": "module.js" - }, - "exclude": ["module.d.ts"], - "references": [ - { "path": "../lib", "prepend": true } - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "module": "amd", + "composite": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "outFile": "module.js" + }, + "exclude": [ + "module.d.ts" + ], + "references": [ + { + "path": "../lib", + "prepend": true + } + ] } //// [/src/lib/file0.ts] @@ -63,35 +69,36 @@ const globalConst = 10; declare class libfile0 { } //// [/src/lib/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "module": "amd", - "composite": true, - "sourceMap": true, - "declarationMap": true, - "strict": false, - "outFile": "module.js" - }, - "exclude": ["module.d.ts"] - +{ + "compilerOptions": { + "target": "es5", + "module": "amd", + "composite": true, + "sourceMap": true, + "declarationMap": true, + "strict": false, + "outFile": "module.js" + }, + "exclude": [ + "module.d.ts" + ] } Output:: /lib/tsc --b /src/app --verbose -[12:00:10 AM] Projects in this build: +[12:00:20 AM] Projects in this build: * src/lib/tsconfig.json * src/app/tsconfig.json -[12:00:11 AM] Project 'src/lib/tsconfig.json' is out of date because output file 'src/lib/module.tsbuildinfo' does not exist +[12:00:21 AM] Project 'src/lib/tsconfig.json' is out of date because output file 'src/lib/module.tsbuildinfo' does not exist -[12:00:12 AM] Building project '/src/lib/tsconfig.json'... +[12:00:22 AM] Building project '/src/lib/tsconfig.json'... -[12:00:21 AM] Project 'src/app/tsconfig.json' is out of date because output file 'src/app/module.tsbuildinfo' does not exist +[12:00:31 AM] Project 'src/app/tsconfig.json' is out of date because output file 'src/app/module.tsbuildinfo' does not exist -[12:00:22 AM] Building project '/src/app/tsconfig.json'... +[12:00:32 AM] Building project '/src/app/tsconfig.json'... exitCode:: ExitStatus.Success @@ -608,7 +615,7 @@ sourceFile:file4.ts >>>//# sourceMappingURL=module.js.map //// [/src/app/module.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file3.ts","./file4.ts"],"js":{"sections":[{"pos":0,"end":518,"kind":"prepend","data":"../lib/module.js","texts":[{"pos":0,"end":518,"kind":"text"}]},{"pos":518,"end":810,"kind":"text"}],"mapHash":"-46462971872-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\"AAAA,uCAAuC;AACvC,IAAM,UAAU,GAAG,IAAI,QAAQ,EAAE,CAAC;AAClC,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;ICFL,QAAA,CAAC,GAAG,EAAE,CAAC;;;;;;ICAP,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,uCAAuC;AACvC,IAAM,UAAU,GAAG,IAAI,QAAQ,EAAE,CAAC;AAClC,IAAM,KAAK,GAAG,EAAE,CAAC\"}","hash":"-9589842580-///\nvar file0Const = new libfile0();\nvar myGlob = 20;\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.x = void 0;\n exports.x = 10;\n});\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.y = void 0;\n exports.y = 20;\n});\nvar globalConst = 10;\ndefine(\"file3\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.z = void 0;\n exports.z = 30;\n});\n///\nvar file4Const = new appfile4();\nvar myVar = 30;\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":0,"end":39,"kind":"reference","data":"tripleRef.d.ts"},{"pos":40,"end":86,"kind":"reference","data":"../lib/tripleRef.d.ts"},{"pos":87,"end":286,"kind":"prepend","data":"../lib/module.d.ts","texts":[{"pos":87,"end":286,"kind":"text"}]},{"pos":286,"end":400,"kind":"text"}],"mapHash":"-41692709617-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\";;AACA,QAAA,MAAM,UAAU,UAAiB,CAAC;AAClC,QAAA,MAAM,MAAM,KAAK,CAAC;;ICFlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICAvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACCpB,QAAA,MAAM,UAAU,UAAiB,CAAC;AAClC,QAAA,MAAM,KAAK,KAAK,CAAC\"}","hash":"-5615327787-/// \n/// \ndeclare const file0Const: libfile0;\ndeclare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const file4Const: appfile4;\ndeclare const myVar = 30;\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../lib/tripleref.d.ts","../lib/module.d.ts","./file3.ts","./tripleref.d.ts","./file4.ts"],"fileInfos":["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; };","-2339691926-declare class libfile0 { }","-43934340166-/// \ndeclare const file0Const: libfile0;\ndeclare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\n","-2588783191-export const z = 30;\r\nimport { x } from \"file1\";","-3347356200-declare class appfile4 { }","15433167512-///\nconst file4Const = new appfile4();\nconst myVar = 30;"],"root":[[4,6]],"options":{"composite":true,"declarationMap":true,"module":2,"outFile":"./module.js","sourceMap":true,"strict":false,"target":1},"outSignature":"718149358-/// \n/// \ndeclare const file0Const: libfile0;\ndeclare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const file4Const: appfile4;\ndeclare const myVar = 30;\n","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file3.ts","./file4.ts"],"js":{"sections":[{"pos":0,"end":518,"kind":"prepend","data":"../lib/module.js","texts":[{"pos":0,"end":518,"kind":"text"}]},{"pos":518,"end":810,"kind":"text"}],"mapHash":"-46462971872-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\"AAAA,uCAAuC;AACvC,IAAM,UAAU,GAAG,IAAI,QAAQ,EAAE,CAAC;AAClC,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;ICFL,QAAA,CAAC,GAAG,EAAE,CAAC;;;;;;ICAP,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,uCAAuC;AACvC,IAAM,UAAU,GAAG,IAAI,QAAQ,EAAE,CAAC;AAClC,IAAM,KAAK,GAAG,EAAE,CAAC\"}","hash":"-9589842580-///\nvar file0Const = new libfile0();\nvar myGlob = 20;\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.x = void 0;\n exports.x = 10;\n});\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.y = void 0;\n exports.y = 20;\n});\nvar globalConst = 10;\ndefine(\"file3\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.z = void 0;\n exports.z = 30;\n});\n///\nvar file4Const = new appfile4();\nvar myVar = 30;\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":0,"end":39,"kind":"reference","data":"tripleRef.d.ts"},{"pos":40,"end":86,"kind":"reference","data":"../lib/tripleRef.d.ts"},{"pos":87,"end":286,"kind":"prepend","data":"../lib/module.d.ts","texts":[{"pos":87,"end":286,"kind":"text"}]},{"pos":286,"end":400,"kind":"text"}],"mapHash":"-41692709617-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\";;AACA,QAAA,MAAM,UAAU,UAAiB,CAAC;AAClC,QAAA,MAAM,MAAM,KAAK,CAAC;;ICFlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICAvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACCpB,QAAA,MAAM,UAAU,UAAiB,CAAC;AAClC,QAAA,MAAM,KAAK,KAAK,CAAC\"}","hash":"-5615327787-/// \n/// \ndeclare const file0Const: libfile0;\ndeclare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const file4Const: appfile4;\ndeclare const myVar = 30;\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../lib/tripleref.d.ts","../lib/module.d.ts","./file3.ts","./tripleref.d.ts","./file4.ts"],"fileInfos":["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; };","-2339691926-declare class libfile0 { }","-43934340166-/// \ndeclare const file0Const: libfile0;\ndeclare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\n","-10505171738-export const z = 30;\nimport { x } from \"file1\";\n","-3347356200-declare class appfile4 { }","15433167512-///\nconst file4Const = new appfile4();\nconst myVar = 30;"],"root":[[4,6]],"options":{"composite":true,"declarationMap":true,"module":2,"outFile":"./module.js","sourceMap":true,"strict":false,"target":1},"outSignature":"718149358-/// \n/// \ndeclare const file0Const: libfile0;\ndeclare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const file4Const: appfile4;\ndeclare const myVar = 30;\n","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} //// [/src/app/module.tsbuildinfo.baseline.txt] ====================================================================== @@ -761,7 +768,7 @@ declare const myVar = 30; "../../lib/lib.d.ts": "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; };", "../lib/tripleref.d.ts": "-2339691926-declare class libfile0 { }", "../lib/module.d.ts": "-43934340166-/// \ndeclare const file0Const: libfile0;\ndeclare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\n", - "./file3.ts": "-2588783191-export const z = 30;\r\nimport { x } from \"file1\";", + "./file3.ts": "-10505171738-export const z = 30;\nimport { x } from \"file1\";\n", "./tripleref.d.ts": "-3347356200-declare class appfile4 { }", "./file4.ts": "15433167512-///\nconst file4Const = new appfile4();\nconst myVar = 30;" }, @@ -791,7 +798,7 @@ declare const myVar = 30; "latestChangedDtsFile": "./module.d.ts" }, "version": "FakeTSVersion", - "size": 4790 + "size": 4791 } //// [/src/lib/module.d.ts] @@ -1267,17 +1274,17 @@ export const x = 10;console.log(x); Output:: /lib/tsc --b /src/app --verbose -[12:00:36 AM] Projects in this build: +[12:00:46 AM] Projects in this build: * src/lib/tsconfig.json * src/app/tsconfig.json -[12:00:37 AM] Project 'src/lib/tsconfig.json' is out of date because output 'src/lib/module.tsbuildinfo' is older than input 'src/lib/file1.ts' +[12:00:47 AM] Project 'src/lib/tsconfig.json' is out of date because output 'src/lib/module.tsbuildinfo' is older than input 'src/lib/file1.ts' -[12:00:38 AM] Building project '/src/lib/tsconfig.json'... +[12:00:48 AM] Building project '/src/lib/tsconfig.json'... -[12:00:46 AM] Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed +[12:00:56 AM] Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed -[12:00:47 AM] Updating output of project '/src/app/tsconfig.json'... +[12:00:57 AM] Updating output of project '/src/app/tsconfig.json'... exitCode:: ExitStatus.Success @@ -1585,7 +1592,7 @@ sourceFile:file4.ts >>>//# sourceMappingURL=module.js.map //// [/src/app/module.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file3.ts","./file4.ts"],"js":{"sections":[{"pos":0,"end":546,"kind":"prepend","data":"../lib/module.js","texts":[{"pos":0,"end":546,"kind":"text"}]},{"pos":546,"end":838,"kind":"text"}],"mapHash":"-8132351063-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\"AAAA,uCAAuC;AACvC,IAAM,UAAU,GAAG,IAAI,QAAQ,EAAE,CAAC;AAClC,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;ICFL,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;;ICAtB,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,uCAAuC;AACvC,IAAM,UAAU,GAAG,IAAI,QAAQ,EAAE,CAAC;AAClC,IAAM,KAAK,GAAG,EAAE,CAAC\"}","hash":"-74562651328-///\nvar file0Const = new libfile0();\nvar myGlob = 20;\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.x = void 0;\n exports.x = 10;\n console.log(exports.x);\n});\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.y = void 0;\n exports.y = 20;\n});\nvar globalConst = 10;\ndefine(\"file3\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.z = void 0;\n exports.z = 30;\n});\n///\nvar file4Const = new appfile4();\nvar myVar = 30;\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":0,"end":39,"kind":"reference","data":"tripleRef.d.ts"},{"pos":40,"end":86,"kind":"reference","data":"../lib/tripleRef.d.ts"},{"pos":87,"end":286,"kind":"prepend","data":"../lib/module.d.ts","texts":[{"pos":87,"end":286,"kind":"text"}]},{"pos":286,"end":400,"kind":"text"}],"mapHash":"-41692709617-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\";;AACA,QAAA,MAAM,UAAU,UAAiB,CAAC;AAClC,QAAA,MAAM,MAAM,KAAK,CAAC;;ICFlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICAvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACCpB,QAAA,MAAM,UAAU,UAAiB,CAAC;AAClC,QAAA,MAAM,KAAK,KAAK,CAAC\"}","hash":"-5615327787-/// \n/// \ndeclare const file0Const: libfile0;\ndeclare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const file4Const: appfile4;\ndeclare const myVar = 30;\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../lib/tripleref.d.ts","../lib/module.d.ts","./file3.ts","./tripleref.d.ts","./file4.ts"],"fileInfos":["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; };","-2339691926-declare class libfile0 { }","-43934340166-/// \ndeclare const file0Const: libfile0;\ndeclare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\n","-2588783191-export const z = 30;\r\nimport { x } from \"file1\";","-3347356200-declare class appfile4 { }","15433167512-///\nconst file4Const = new appfile4();\nconst myVar = 30;"],"root":[[4,6]],"options":{"composite":true,"declarationMap":true,"module":2,"outFile":"./module.js","sourceMap":true,"strict":false,"target":1},"outSignature":"718149358-/// \n/// \ndeclare const file0Const: libfile0;\ndeclare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const file4Const: appfile4;\ndeclare const myVar = 30;\n","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file3.ts","./file4.ts"],"js":{"sections":[{"pos":0,"end":546,"kind":"prepend","data":"../lib/module.js","texts":[{"pos":0,"end":546,"kind":"text"}]},{"pos":546,"end":838,"kind":"text"}],"mapHash":"-8132351063-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\"AAAA,uCAAuC;AACvC,IAAM,UAAU,GAAG,IAAI,QAAQ,EAAE,CAAC;AAClC,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;ICFL,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;;ICAtB,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,uCAAuC;AACvC,IAAM,UAAU,GAAG,IAAI,QAAQ,EAAE,CAAC;AAClC,IAAM,KAAK,GAAG,EAAE,CAAC\"}","hash":"-74562651328-///\nvar file0Const = new libfile0();\nvar myGlob = 20;\ndefine(\"file1\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.x = void 0;\n exports.x = 10;\n console.log(exports.x);\n});\ndefine(\"file2\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.y = void 0;\n exports.y = 20;\n});\nvar globalConst = 10;\ndefine(\"file3\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.z = void 0;\n exports.z = 30;\n});\n///\nvar file4Const = new appfile4();\nvar myVar = 30;\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":0,"end":39,"kind":"reference","data":"tripleRef.d.ts"},{"pos":40,"end":86,"kind":"reference","data":"../lib/tripleRef.d.ts"},{"pos":87,"end":286,"kind":"prepend","data":"../lib/module.d.ts","texts":[{"pos":87,"end":286,"kind":"text"}]},{"pos":286,"end":400,"kind":"text"}],"mapHash":"-41692709617-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\";;AACA,QAAA,MAAM,UAAU,UAAiB,CAAC;AAClC,QAAA,MAAM,MAAM,KAAK,CAAC;;ICFlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICAvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACCpB,QAAA,MAAM,UAAU,UAAiB,CAAC;AAClC,QAAA,MAAM,KAAK,KAAK,CAAC\"}","hash":"-5615327787-/// \n/// \ndeclare const file0Const: libfile0;\ndeclare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const file4Const: appfile4;\ndeclare const myVar = 30;\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../lib/tripleref.d.ts","../lib/module.d.ts","./file3.ts","./tripleref.d.ts","./file4.ts"],"fileInfos":["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; };","-2339691926-declare class libfile0 { }","-43934340166-/// \ndeclare const file0Const: libfile0;\ndeclare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\n","-10505171738-export const z = 30;\nimport { x } from \"file1\";\n","-3347356200-declare class appfile4 { }","15433167512-///\nconst file4Const = new appfile4();\nconst myVar = 30;"],"root":[[4,6]],"options":{"composite":true,"declarationMap":true,"module":2,"outFile":"./module.js","sourceMap":true,"strict":false,"target":1},"outSignature":"718149358-/// \n/// \ndeclare const file0Const: libfile0;\ndeclare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const file4Const: appfile4;\ndeclare const myVar = 30;\n","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} //// [/src/app/module.tsbuildinfo.baseline.txt] ====================================================================== @@ -1739,7 +1746,7 @@ declare const myVar = 30; "../../lib/lib.d.ts": "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; };", "../lib/tripleref.d.ts": "-2339691926-declare class libfile0 { }", "../lib/module.d.ts": "-43934340166-/// \ndeclare const file0Const: libfile0;\ndeclare const myGlob = 20;\ndeclare module \"file1\" {\n export const x = 10;\n}\ndeclare module \"file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\n", - "./file3.ts": "-2588783191-export const z = 30;\r\nimport { x } from \"file1\";", + "./file3.ts": "-10505171738-export const z = 30;\nimport { x } from \"file1\";\n", "./tripleref.d.ts": "-3347356200-declare class appfile4 { }", "./file4.ts": "15433167512-///\nconst file4Const = new appfile4();\nconst myVar = 30;" }, @@ -1769,7 +1776,7 @@ declare const myVar = 30; "latestChangedDtsFile": "./module.d.ts" }, "version": "FakeTSVersion", - "size": 4860 + "size": 4861 } //// [/src/lib/module.d.ts.map] file written with same contents diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/when-the-module-resolution-finds-original-source-file.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/when-the-module-resolution-finds-original-source-file.js index 0a7218d35ef6b..f27a07e9f19e0 100644 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/when-the-module-resolution-finds-original-source-file.js +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/when-the-module-resolution-finds-original-source-file.js @@ -16,28 +16,34 @@ interface ReadonlyArray {} declare const console: { log(msg: any): void; }; //// [/src/app/file3.ts] -export const z = 30; -import { x } from "lib/file1"; +export const z = 30; +import { x } from "lib/file1"; + //// [/src/app/file4.ts] const myVar = 30; //// [/src/app/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "module": "amd", - "composite": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "outFile": "module.js" - }, - "exclude": ["module.d.ts"], - "references": [ - { "path": "../lib", "prepend": true } - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "module": "amd", + "composite": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "outFile": "module.js" + }, + "exclude": [ + "module.d.ts" + ], + "references": [ + { + "path": "../lib", + "prepend": true + } + ] } //// [/src/lib/file0.ts] @@ -53,35 +59,36 @@ export const y = 20; const globalConst = 10; //// [/src/lib/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "module": "amd", - "composite": true, - "sourceMap": true, - "declarationMap": true, - "strict": false, - "outFile": "../module.js", "rootDir": "../" - }, - "exclude": ["module.d.ts"] - +{ + "compilerOptions": { + "target": "es5", + "module": "amd", + "composite": true, + "sourceMap": true, + "declarationMap": true, + "strict": false, + "outFile": "../module.js", "rootDir": "../" + }, + "exclude": [ + "module.d.ts" + ] } Output:: /lib/tsc -b /src/app --verbose -[12:00:08 AM] Projects in this build: +[12:00:18 AM] Projects in this build: * src/lib/tsconfig.json * src/app/tsconfig.json -[12:00:09 AM] Project 'src/lib/tsconfig.json' is out of date because output file 'src/module.tsbuildinfo' does not exist +[12:00:19 AM] Project 'src/lib/tsconfig.json' is out of date because output file 'src/module.tsbuildinfo' does not exist -[12:00:10 AM] Building project '/src/lib/tsconfig.json'... +[12:00:20 AM] Building project '/src/lib/tsconfig.json'... -[12:00:19 AM] Project 'src/app/tsconfig.json' is out of date because output file 'src/app/module.tsbuildinfo' does not exist +[12:00:29 AM] Project 'src/app/tsconfig.json' is out of date because output file 'src/app/module.tsbuildinfo' does not exist -[12:00:20 AM] Building project '/src/app/tsconfig.json'... +[12:00:30 AM] Building project '/src/app/tsconfig.json'... exitCode:: ExitStatus.Success @@ -473,7 +480,7 @@ sourceFile:file4.ts >>>//# sourceMappingURL=module.js.map //// [/src/app/module.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file3.ts","./file4.ts"],"js":{"sections":[{"pos":0,"end":453,"kind":"prepend","data":"../module.js","texts":[{"pos":0,"end":453,"kind":"text"}]},{"pos":453,"end":672,"kind":"text"}],"mapHash":"5108062215-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\"AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;ICAL,QAAA,CAAC,GAAG,EAAE,CAAC;;;;;;ICAP,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,KAAK,GAAG,EAAE,CAAC\"}","hash":"6195305346-var myGlob = 20;\ndefine(\"lib/file1\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.x = void 0;\n exports.x = 10;\n});\ndefine(\"lib/file2\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.y = void 0;\n exports.y = 20;\n});\nvar globalConst = 10;\ndefine(\"file3\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.z = void 0;\n exports.z = 30;\n});\nvar myVar = 30;\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":0,"end":171,"kind":"prepend","data":"../module.d.ts","texts":[{"pos":0,"end":171,"kind":"text"}]},{"pos":171,"end":249,"kind":"text"}],"mapHash":"-41254439122-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\"AAAA,QAAA,MAAM,MAAM,KAAK,CAAC;;ICAlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICAvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,KAAK,KAAK,CAAC\"}","hash":"-17877883596-declare const myGlob = 20;\ndeclare module \"lib/file1\" {\n export const x = 10;\n}\ndeclare module \"lib/file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../module.d.ts","./file3.ts","./file4.ts"],"fileInfos":["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; };","-21806566655-declare const myGlob = 20;\ndeclare module \"lib/file1\" {\n export const x = 10;\n}\ndeclare module \"lib/file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\n","3263932623-export const z = 30;\r\nimport { x } from \"lib/file1\";","1463681686-const myVar = 30;"],"root":[3,4],"options":{"composite":true,"declarationMap":true,"module":2,"outFile":"./module.js","sourceMap":true,"strict":false,"target":1},"outSignature":"-24691359027-declare const myGlob = 20;\ndeclare module \"lib/file1\" {\n export const x = 10;\n}\ndeclare module \"lib/file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\n","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file3.ts","./file4.ts"],"js":{"sections":[{"pos":0,"end":453,"kind":"prepend","data":"../module.js","texts":[{"pos":0,"end":453,"kind":"text"}]},{"pos":453,"end":672,"kind":"text"}],"mapHash":"5108062215-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\"AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;ICAL,QAAA,CAAC,GAAG,EAAE,CAAC;;;;;;ICAP,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,KAAK,GAAG,EAAE,CAAC\"}","hash":"6195305346-var myGlob = 20;\ndefine(\"lib/file1\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.x = void 0;\n exports.x = 10;\n});\ndefine(\"lib/file2\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.y = void 0;\n exports.y = 20;\n});\nvar globalConst = 10;\ndefine(\"file3\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.z = void 0;\n exports.z = 30;\n});\nvar myVar = 30;\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":0,"end":171,"kind":"prepend","data":"../module.d.ts","texts":[{"pos":0,"end":171,"kind":"text"}]},{"pos":171,"end":249,"kind":"text"}],"mapHash":"-41254439122-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../lib/file0.ts\",\"../lib/file1.ts\",\"../lib/file2.ts\",\"../lib/global.ts\",\"file3.ts\",\"file4.ts\"],\"names\":[],\"mappings\":\"AAAA,QAAA,MAAM,MAAM,KAAK,CAAC;;ICAlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICAvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,KAAK,KAAK,CAAC\"}","hash":"-17877883596-declare const myGlob = 20;\ndeclare module \"lib/file1\" {\n export const x = 10;\n}\ndeclare module \"lib/file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\n//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../module.d.ts","./file3.ts","./file4.ts"],"fileInfos":["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; };","-21806566655-declare const myGlob = 20;\ndeclare module \"lib/file1\" {\n export const x = 10;\n}\ndeclare module \"lib/file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\n","-16038404532-export const z = 30;\nimport { x } from \"lib/file1\";\n","1463681686-const myVar = 30;"],"root":[3,4],"options":{"composite":true,"declarationMap":true,"module":2,"outFile":"./module.js","sourceMap":true,"strict":false,"target":1},"outSignature":"-24691359027-declare const myGlob = 20;\ndeclare module \"lib/file1\" {\n export const x = 10;\n}\ndeclare module \"lib/file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\ndeclare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\n","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} //// [/src/app/module.tsbuildinfo.baseline.txt] ====================================================================== @@ -599,7 +606,7 @@ declare const myVar = 30; "fileInfos": { "../../lib/lib.d.ts": "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; };", "../module.d.ts": "-21806566655-declare const myGlob = 20;\ndeclare module \"lib/file1\" {\n export const x = 10;\n}\ndeclare module \"lib/file2\" {\n export const y = 20;\n}\ndeclare const globalConst = 10;\n", - "./file3.ts": "3263932623-export const z = 30;\r\nimport { x } from \"lib/file1\";", + "./file3.ts": "-16038404532-export const z = 30;\nimport { x } from \"lib/file1\";\n", "./file4.ts": "1463681686-const myVar = 30;" }, "root": [ @@ -625,7 +632,7 @@ declare const myVar = 30; "latestChangedDtsFile": "./module.d.ts" }, "version": "FakeTSVersion", - "size": 3731 + "size": 3733 } //// [/src/module.d.ts] diff --git a/tests/baselines/reference/tsbuild/clean/file-name-and-output-name-clashing.js b/tests/baselines/reference/tsbuild/clean/file-name-and-output-name-clashing.js index 49db06b89ce09..e5821ea50c154 100644 --- a/tests/baselines/reference/tsbuild/clean/file-name-and-output-name-clashing.js +++ b/tests/baselines/reference/tsbuild/clean/file-name-and-output-name-clashing.js @@ -22,7 +22,11 @@ declare const console: { log(msg: any): void; }; //// [/src/tsconfig.json] -{"compilerOptions":{"allowJs":true}} +{ + "compilerOptions": { + "allowJs": true + } +} diff --git a/tests/baselines/reference/tsbuild/clean/tsx-with-dts-emit.js b/tests/baselines/reference/tsbuild/clean/tsx-with-dts-emit.js index c5e1dc36c12b1..568457227a285 100644 --- a/tests/baselines/reference/tsbuild/clean/tsx-with-dts-emit.js +++ b/tests/baselines/reference/tsbuild/clean/tsx-with-dts-emit.js @@ -19,7 +19,15 @@ declare const console: { log(msg: any): void; }; export const x = 10; //// [/src/project/tsconfig.json] -{"compilerOptions":{"declaration":true},"include":["src/**/*.tsx","src/**/*.ts"]} +{ + "compilerOptions": { + "declaration": true + }, + "include": [ + "src/**/*.tsx", + "src/**/*.ts" + ] +} diff --git a/tests/baselines/reference/tsbuild/commandLine/different-options-with-incremental-with-outFile.js b/tests/baselines/reference/tsbuild/commandLine/different-options-with-incremental-with-outFile.js index ebace4018bbae..b13b9afd1d5a2 100644 --- a/tests/baselines/reference/tsbuild/commandLine/different-options-with-incremental-with-outFile.js +++ b/tests/baselines/reference/tsbuild/commandLine/different-options-with-incremental-with-outFile.js @@ -28,7 +28,13 @@ import { a } from "./a";export const c = a; import { b } from "./b";export const d = b; //// [/src/project/tsconfig.json] -{"compilerOptions":{"incremental":true,"outFile":"../outFile.js","module":"amd"}} +{ + "compilerOptions": { + "incremental": true, + "outFile": "../outFile.js", + "module": "amd" + } +} @@ -42,8 +48,18 @@ Output:: [12:00:14 AM] Building project '/src/project/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"incremental":true,"outFile":"/src/outFile.js","module":2,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "incremental": true, + "outFile": "/src/outFile.js", + "module": 2, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -198,8 +214,19 @@ Output:: [12:00:22 AM] Building project '/src/project/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"incremental":true,"outFile":"/src/outFile.js","module":2,"sourceMap":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "incremental": true, + "outFile": "/src/outFile.js", + "module": 2, + "sourceMap": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -326,8 +353,18 @@ Output:: [12:00:31 AM] Building project '/src/project/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"incremental":true,"outFile":"/src/outFile.js","module":2,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "incremental": true, + "outFile": "/src/outFile.js", + "module": 2, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -449,8 +486,19 @@ Output:: [12:00:39 AM] Building project '/src/project/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"incremental":true,"outFile":"/src/outFile.js","module":2,"declaration":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "incremental": true, + "outFile": "/src/outFile.js", + "module": 2, + "declaration": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -620,8 +668,20 @@ Output:: [12:00:47 AM] Building project '/src/project/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"incremental":true,"outFile":"/src/outFile.js","module":2,"declaration":true,"declarationMap":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "incremental": true, + "outFile": "/src/outFile.js", + "module": 2, + "declaration": true, + "declarationMap": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -764,8 +824,18 @@ Output:: [12:00:59 AM] Building project '/src/project/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"incremental":true,"outFile":"/src/outFile.js","module":2,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "incremental": true, + "outFile": "/src/outFile.js", + "module": 2, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -920,8 +990,20 @@ Output:: [12:01:07 AM] Building project '/src/project/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"incremental":true,"outFile":"/src/outFile.js","module":2,"declaration":true,"declarationMap":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "incremental": true, + "outFile": "/src/outFile.js", + "module": 2, + "declaration": true, + "declarationMap": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1096,8 +1178,19 @@ Output:: [12:01:18 AM] Building project '/src/project/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"incremental":true,"outFile":"/src/outFile.js","module":2,"inlineSourceMap":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "incremental": true, + "outFile": "/src/outFile.js", + "module": 2, + "inlineSourceMap": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1253,8 +1346,19 @@ Output:: [12:01:26 AM] Building project '/src/project/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"incremental":true,"outFile":"/src/outFile.js","module":2,"sourceMap":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "incremental": true, + "outFile": "/src/outFile.js", + "module": 2, + "sourceMap": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1381,8 +1485,18 @@ Output:: [12:01:35 AM] Building project '/src/project/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"incremental":true,"outFile":"/src/outFile.js","module":2,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "incremental": true, + "outFile": "/src/outFile.js", + "module": 2, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1504,8 +1618,20 @@ Output:: [12:01:43 AM] Building project '/src/project/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"incremental":true,"outFile":"/src/outFile.js","module":2,"declaration":true,"declarationMap":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "incremental": true, + "outFile": "/src/outFile.js", + "module": 2, + "declaration": true, + "declarationMap": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts diff --git a/tests/baselines/reference/tsbuild/commandLine/different-options-with-incremental.js b/tests/baselines/reference/tsbuild/commandLine/different-options-with-incremental.js index 71eca0184c18e..10d9e7314b3f4 100644 --- a/tests/baselines/reference/tsbuild/commandLine/different-options-with-incremental.js +++ b/tests/baselines/reference/tsbuild/commandLine/different-options-with-incremental.js @@ -28,7 +28,11 @@ import { a } from "./a";export const c = a; import { b } from "./b";export const d = b; //// [/src/project/tsconfig.json] -{"compilerOptions":{"incremental":true}} +{ + "compilerOptions": { + "incremental": true + } +} @@ -42,8 +46,16 @@ Output:: [12:00:14 AM] Building project '/src/project/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"incremental":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "incremental": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -205,8 +217,17 @@ Output:: [12:00:24 AM] Building project '/src/project/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"incremental":true,"sourceMap":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "incremental": true, + "sourceMap": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -373,8 +394,16 @@ Output:: [12:00:38 AM] Building project '/src/project/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"incremental":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "incremental": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -526,8 +555,17 @@ Output:: [12:00:48 AM] Building project '/src/project/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"incremental":true,"declaration":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -675,8 +713,18 @@ Output:: [12:00:58 AM] Building project '/src/project/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"incremental":true,"declaration":true,"declarationMap":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "declarationMap": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -856,8 +904,16 @@ Output:: [12:01:15 AM] Building project '/src/project/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"incremental":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "incremental": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -996,8 +1052,18 @@ Output:: [12:01:22 AM] Building project '/src/project/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"incremental":true,"declaration":true,"declarationMap":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "declarationMap": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1154,8 +1220,17 @@ Output:: [12:01:38 AM] Building project '/src/project/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"incremental":true,"inlineSourceMap":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "incremental": true, + "inlineSourceMap": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1319,8 +1394,17 @@ Output:: [12:01:48 AM] Building project '/src/project/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"incremental":true,"sourceMap":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "incremental": true, + "sourceMap": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1490,8 +1574,16 @@ Output:: [12:02:02 AM] Building project '/src/project/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"incremental":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "incremental": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1652,8 +1744,18 @@ Output:: [12:02:12 AM] Building project '/src/project/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"incremental":true,"declaration":true,"declarationMap":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "declarationMap": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts diff --git a/tests/baselines/reference/tsbuild/commandLine/different-options-with-outFile.js b/tests/baselines/reference/tsbuild/commandLine/different-options-with-outFile.js index 765f46f974231..9f0de1ad7fe76 100644 --- a/tests/baselines/reference/tsbuild/commandLine/different-options-with-outFile.js +++ b/tests/baselines/reference/tsbuild/commandLine/different-options-with-outFile.js @@ -28,7 +28,13 @@ import { a } from "./a";export const c = a; import { b } from "./b";export const d = b; //// [/src/project/tsconfig.json] -{"compilerOptions":{"composite":true,"outFile":"../outFile.js","module":"amd"}} +{ + "compilerOptions": { + "composite": true, + "outFile": "../outFile.js", + "module": "amd" + } +} @@ -42,8 +48,18 @@ Output:: [12:00:14 AM] Building project '/src/project/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"composite":true,"outFile":"/src/outFile.js","module":2,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "composite": true, + "outFile": "/src/outFile.js", + "module": 2, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -244,8 +260,19 @@ Output:: [12:00:23 AM] Building project '/src/project/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"composite":true,"outFile":"/src/outFile.js","module":2,"sourceMap":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "composite": true, + "outFile": "/src/outFile.js", + "module": 2, + "sourceMap": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -385,8 +412,18 @@ Output:: [12:00:32 AM] Building project '/src/project/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"composite":true,"outFile":"/src/outFile.js","module":2,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "composite": true, + "outFile": "/src/outFile.js", + "module": 2, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -553,8 +590,20 @@ Output:: [12:00:44 AM] Building project '/src/project/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"composite":true,"outFile":"/src/outFile.js","module":2,"declaration":true,"declarationMap":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "composite": true, + "outFile": "/src/outFile.js", + "module": 2, + "declaration": true, + "declarationMap": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -681,8 +730,18 @@ Output:: [12:00:54 AM] Building project '/src/project/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"composite":true,"outFile":"/src/outFile.js","module":2,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "composite": true, + "outFile": "/src/outFile.js", + "module": 2, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -838,8 +897,18 @@ Output:: [12:01:08 AM] Building project '/src/project/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"composite":true,"outFile":"/src/outFile.js","module":2,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "composite": true, + "outFile": "/src/outFile.js", + "module": 2, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1041,8 +1110,19 @@ Output:: [12:01:18 AM] Building project '/src/project/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"composite":true,"outFile":"/src/outFile.js","module":2,"inlineSourceMap":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "composite": true, + "outFile": "/src/outFile.js", + "module": 2, + "inlineSourceMap": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1178,8 +1258,19 @@ Output:: [12:01:26 AM] Building project '/src/project/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"composite":true,"outFile":"/src/outFile.js","module":2,"sourceMap":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "composite": true, + "outFile": "/src/outFile.js", + "module": 2, + "sourceMap": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts diff --git a/tests/baselines/reference/tsbuild/commandLine/different-options.js b/tests/baselines/reference/tsbuild/commandLine/different-options.js index faafe7cf373e0..d5ccb469bb358 100644 --- a/tests/baselines/reference/tsbuild/commandLine/different-options.js +++ b/tests/baselines/reference/tsbuild/commandLine/different-options.js @@ -28,7 +28,11 @@ import { a } from "./a";export const c = a; import { b } from "./b";export const d = b; //// [/src/project/tsconfig.json] -{"compilerOptions":{"composite":true}} +{ + "compilerOptions": { + "composite": true + } +} @@ -42,8 +46,16 @@ Output:: [12:00:14 AM] Building project '/src/project/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"composite":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "composite": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -234,8 +246,17 @@ Output:: [12:00:28 AM] Building project '/src/project/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"composite":true,"sourceMap":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "composite": true, + "sourceMap": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -413,8 +434,16 @@ Output:: [12:00:42 AM] Building project '/src/project/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"composite":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "composite": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -611,8 +640,18 @@ Output:: [12:00:56 AM] Building project '/src/project/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"composite":true,"declaration":true,"declarationMap":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "composite": true, + "declaration": true, + "declarationMap": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -775,8 +814,16 @@ Output:: [12:01:14 AM] Building project '/src/project/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"composite":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "composite": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -960,8 +1007,16 @@ Output:: [12:01:33 AM] Building project '/src/project/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"composite":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "composite": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1120,8 +1175,17 @@ Output:: [12:01:42 AM] Building project '/src/project/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"composite":true,"inlineSourceMap":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "composite": true, + "inlineSourceMap": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1287,8 +1351,17 @@ Output:: [12:01:52 AM] Building project '/src/project/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"composite":true,"sourceMap":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "composite": true, + "sourceMap": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts diff --git a/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-false-on-commandline-with-declaration-and-incremental-with-outFile.js b/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-false-on-commandline-with-declaration-and-incremental-with-outFile.js index 722bf40327eb1..bfb07e03c1f8e 100644 --- a/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-false-on-commandline-with-declaration-and-incremental-with-outFile.js +++ b/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-false-on-commandline-with-declaration-and-incremental-with-outFile.js @@ -28,7 +28,15 @@ import { a } from "./a";export const c = a; import { b } from "./b";export const d = b; //// [/src/project1/src/tsconfig.json] -{"compilerOptions":{"incremental":true,"declaration":true,"outFile":"../outFile.js","module":"amd","emitDeclarationOnly":true}} +{ + "compilerOptions": { + "incremental": true, + "declaration": true, + "outFile": "../outFile.js", + "module": "amd", + "emitDeclarationOnly": true + } +} //// [/src/project2/src/e.ts] export const e = 10; @@ -40,7 +48,20 @@ import { a } from "a"; export const f = a; import { b } from "b"; export const g = b; //// [/src/project2/src/tsconfig.json] -{"compilerOptions":{"incremental":true,"declaration":true,"outFile":"../outFile.js","module":"amd","emitDeclarationOnly":true},"references":[{"path":"../../project1/src"}]} +{ + "compilerOptions": { + "incremental": true, + "declaration": true, + "outFile": "../outFile.js", + "module": "amd", + "emitDeclarationOnly": true + }, + "references": [ + { + "path": "../../project1/src" + } + ] +} @@ -58,17 +79,33 @@ Output:: [12:00:28 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:142 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:10:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"incremental":true,"declaration":true,"outFile":"../outFile.js","module":"amd","emitDeclarationOnly":true},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +10 { +   ~ +11 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +12 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"incremental":true,"declaration":true,"outFile":"/src/project1/outFile.js","module":2,"emitDeclarationOnly":true,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "outFile": "/src/project1/outFile.js", + "module": 2, + "emitDeclarationOnly": true, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -81,8 +118,19 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"incremental":true,"declaration":true,"outFile":"/src/project2/outFile.js","module":2,"emitDeclarationOnly":true,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "outFile": "/src/project2/outFile.js", + "module": 2, + "emitDeclarationOnly": true, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -213,17 +261,32 @@ Output:: [12:00:32 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:142 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:10:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"incremental":true,"declaration":true,"outFile":"../outFile.js","module":"amd","emitDeclarationOnly":true},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +10 { +   ~ +11 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +12 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"incremental":true,"declaration":true,"outFile":"/src/project2/outFile.js","module":2,"emitDeclarationOnly":true,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "outFile": "/src/project2/outFile.js", + "module": 2, + "emitDeclarationOnly": true, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -260,17 +323,33 @@ Output:: [12:00:43 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:142 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:10:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"incremental":true,"declaration":true,"outFile":"../outFile.js","module":"amd","emitDeclarationOnly":true},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +10 { +   ~ +11 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +12 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"incremental":true,"declaration":true,"outFile":"/src/project1/outFile.js","module":2,"emitDeclarationOnly":true,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "outFile": "/src/project1/outFile.js", + "module": 2, + "emitDeclarationOnly": true, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -283,8 +362,19 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"incremental":true,"declaration":true,"outFile":"/src/project2/outFile.js","module":2,"emitDeclarationOnly":true,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "outFile": "/src/project2/outFile.js", + "module": 2, + "emitDeclarationOnly": true, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -384,17 +474,33 @@ Output:: [12:00:53 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:142 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:10:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"incremental":true,"declaration":true,"outFile":"../outFile.js","module":"amd","emitDeclarationOnly":true},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +10 { +   ~ +11 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +12 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"incremental":true,"declaration":true,"outFile":"/src/project1/outFile.js","module":2,"emitDeclarationOnly":false,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "outFile": "/src/project1/outFile.js", + "module": 2, + "emitDeclarationOnly": false, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -407,8 +513,19 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"incremental":true,"declaration":true,"outFile":"/src/project2/outFile.js","module":2,"emitDeclarationOnly":false,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "outFile": "/src/project2/outFile.js", + "module": 2, + "emitDeclarationOnly": false, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -597,17 +714,32 @@ Output:: [12:00:57 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:142 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:10:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"incremental":true,"declaration":true,"outFile":"../outFile.js","module":"amd","emitDeclarationOnly":true},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +10 { +   ~ +11 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +12 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"incremental":true,"declaration":true,"outFile":"/src/project2/outFile.js","module":2,"emitDeclarationOnly":true,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "outFile": "/src/project2/outFile.js", + "module": 2, + "emitDeclarationOnly": true, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -639,17 +771,32 @@ Output:: [12:01:01 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:142 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:10:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"incremental":true,"declaration":true,"outFile":"../outFile.js","module":"amd","emitDeclarationOnly":true},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +10 { +   ~ +11 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +12 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"incremental":true,"declaration":true,"outFile":"/src/project2/outFile.js","module":2,"emitDeclarationOnly":false,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "outFile": "/src/project2/outFile.js", + "module": 2, + "emitDeclarationOnly": false, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -686,17 +833,33 @@ Output:: [12:01:13 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:142 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:10:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"incremental":true,"declaration":true,"outFile":"../outFile.js","module":"amd","emitDeclarationOnly":true},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +10 { +   ~ +11 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +12 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"incremental":true,"declaration":true,"outFile":"/src/project1/outFile.js","module":2,"emitDeclarationOnly":false,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "outFile": "/src/project1/outFile.js", + "module": 2, + "emitDeclarationOnly": false, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -709,8 +872,19 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"incremental":true,"declaration":true,"outFile":"/src/project2/outFile.js","module":2,"emitDeclarationOnly":false,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "outFile": "/src/project2/outFile.js", + "module": 2, + "emitDeclarationOnly": false, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts diff --git a/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-false-on-commandline-with-declaration-and-incremental.js b/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-false-on-commandline-with-declaration-and-incremental.js index d8597c0c7632c..67ac3be94c9ed 100644 --- a/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-false-on-commandline-with-declaration-and-incremental.js +++ b/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-false-on-commandline-with-declaration-and-incremental.js @@ -28,7 +28,13 @@ import { a } from "./a";export const c = a; import { b } from "./b";export const d = b; //// [/src/project1/src/tsconfig.json] -{"compilerOptions":{"incremental":true,"declaration":true,"emitDeclarationOnly":true}} +{ + "compilerOptions": { + "incremental": true, + "declaration": true, + "emitDeclarationOnly": true + } +} //// [/src/project2/src/e.ts] export const e = 10; @@ -40,7 +46,18 @@ import { a } from "../../project1/src/a"; export const f = a; import { b } from "../../project1/src/b"; export const g = b; //// [/src/project2/src/tsconfig.json] -{"compilerOptions":{"incremental":true,"declaration":true,"emitDeclarationOnly":true},"references":[{"path":"../../project1/src"}]} +{ + "compilerOptions": { + "incremental": true, + "declaration": true, + "emitDeclarationOnly": true + }, + "references": [ + { + "path": "../../project1/src" + } + ] +} @@ -58,17 +75,31 @@ Output:: [12:00:30 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:101 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:8:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"incremental":true,"declaration":true,"emitDeclarationOnly":true},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 8 { +   ~ + 9 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +10 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"incremental":true,"declaration":true,"emitDeclarationOnly":true,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "emitDeclarationOnly": true, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -91,8 +122,17 @@ Shape signatures in builder refreshed for:: /src/project1/src/c.ts (computed .d.ts during emit) /src/project1/src/d.ts (computed .d.ts during emit) -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"incremental":true,"declaration":true,"emitDeclarationOnly":true,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "emitDeclarationOnly": true, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -352,17 +392,30 @@ Output:: [12:00:37 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:101 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:8:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"incremental":true,"declaration":true,"emitDeclarationOnly":true},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 8 { +   ~ + 9 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +10 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"incremental":true,"declaration":true,"emitDeclarationOnly":true,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "emitDeclarationOnly": true, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -400,17 +453,31 @@ Output:: [12:00:47 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:101 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:8:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"incremental":true,"declaration":true,"emitDeclarationOnly":true},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 8 { +   ~ + 9 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +10 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"incremental":true,"declaration":true,"emitDeclarationOnly":true,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "emitDeclarationOnly": true, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -425,8 +492,17 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /src/project1/src/a.ts (computed .d.ts) -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"incremental":true,"declaration":true,"emitDeclarationOnly":true,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "emitDeclarationOnly": true, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -565,17 +641,31 @@ Output:: [12:00:59 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:101 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:8:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"incremental":true,"declaration":true,"emitDeclarationOnly":true},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 8 { +   ~ + 9 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +10 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"incremental":true,"declaration":true,"emitDeclarationOnly":false,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "emitDeclarationOnly": false, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -588,8 +678,17 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"incremental":true,"declaration":true,"emitDeclarationOnly":false,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "emitDeclarationOnly": false, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -866,17 +965,30 @@ Output:: [12:01:06 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:101 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:8:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"incremental":true,"declaration":true,"emitDeclarationOnly":true},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 8 { +   ~ + 9 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +10 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"incremental":true,"declaration":true,"emitDeclarationOnly":true,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "emitDeclarationOnly": true, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -909,17 +1021,30 @@ Output:: [12:01:10 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:101 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:8:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"incremental":true,"declaration":true,"emitDeclarationOnly":true},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 8 { +   ~ + 9 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +10 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"incremental":true,"declaration":true,"emitDeclarationOnly":false,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "emitDeclarationOnly": false, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -957,17 +1082,31 @@ Output:: [12:01:21 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:101 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:8:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"incremental":true,"declaration":true,"emitDeclarationOnly":true},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 8 { +   ~ + 9 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +10 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"incremental":true,"declaration":true,"emitDeclarationOnly":false,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "emitDeclarationOnly": false, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -982,8 +1121,17 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /src/project1/src/b.ts (computed .d.ts) -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"incremental":true,"declaration":true,"emitDeclarationOnly":false,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "emitDeclarationOnly": false, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts diff --git a/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-false-on-commandline-with-declaration-with-outFile.js b/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-false-on-commandline-with-declaration-with-outFile.js index e1e8b5553bf33..adff441ad5f15 100644 --- a/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-false-on-commandline-with-declaration-with-outFile.js +++ b/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-false-on-commandline-with-declaration-with-outFile.js @@ -28,7 +28,14 @@ import { a } from "./a";export const c = a; import { b } from "./b";export const d = b; //// [/src/project1/src/tsconfig.json] -{"compilerOptions":{"declaration":true,"emitDeclarationOnly":true,"outFile":"../outFile.js","module":"amd"}} +{ + "compilerOptions": { + "declaration": true, + "emitDeclarationOnly": true, + "outFile": "../outFile.js", + "module": "amd" + } +} //// [/src/project2/src/e.ts] export const e = 10; @@ -40,7 +47,19 @@ import { a } from "a"; export const f = a; import { b } from "b"; export const g = b; //// [/src/project2/src/tsconfig.json] -{"compilerOptions":{"declaration":true,"emitDeclarationOnly":true,"outFile":"../outFile.js","module":"amd"},"references":[{"path":"../../project1/src"}]} +{ + "compilerOptions": { + "declaration": true, + "emitDeclarationOnly": true, + "outFile": "../outFile.js", + "module": "amd" + }, + "references": [ + { + "path": "../../project1/src" + } + ] +} @@ -58,17 +77,32 @@ Output:: [12:00:24 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:123 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:9:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"declaration":true,"emitDeclarationOnly":true,"outFile":"../outFile.js","module":"amd"},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 9 { +   ~ +10 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +11 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"declaration":true,"emitDeclarationOnly":true,"outFile":"/src/project1/outFile.js","module":2,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "declaration": true, + "emitDeclarationOnly": true, + "outFile": "/src/project1/outFile.js", + "module": 2, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -81,8 +115,18 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"declaration":true,"emitDeclarationOnly":true,"outFile":"/src/project2/outFile.js","module":2,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "declaration": true, + "emitDeclarationOnly": true, + "outFile": "/src/project2/outFile.js", + "module": 2, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -129,17 +173,31 @@ Output:: [12:00:28 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:123 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:9:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"declaration":true,"emitDeclarationOnly":true,"outFile":"../outFile.js","module":"amd"},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 9 { +   ~ +10 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +11 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"declaration":true,"emitDeclarationOnly":true,"outFile":"/src/project2/outFile.js","module":2,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "declaration": true, + "emitDeclarationOnly": true, + "outFile": "/src/project2/outFile.js", + "module": 2, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -176,17 +234,32 @@ Output:: [12:00:35 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:123 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:9:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"declaration":true,"emitDeclarationOnly":true,"outFile":"../outFile.js","module":"amd"},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 9 { +   ~ +10 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +11 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"declaration":true,"emitDeclarationOnly":true,"outFile":"/src/project1/outFile.js","module":2,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "declaration": true, + "emitDeclarationOnly": true, + "outFile": "/src/project1/outFile.js", + "module": 2, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -199,8 +272,18 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"declaration":true,"emitDeclarationOnly":true,"outFile":"/src/project2/outFile.js","module":2,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "declaration": true, + "emitDeclarationOnly": true, + "outFile": "/src/project2/outFile.js", + "module": 2, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -235,17 +318,32 @@ Output:: [12:00:42 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:123 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:9:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"declaration":true,"emitDeclarationOnly":true,"outFile":"../outFile.js","module":"amd"},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 9 { +   ~ +10 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +11 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"declaration":true,"emitDeclarationOnly":false,"outFile":"/src/project1/outFile.js","module":2,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "declaration": true, + "emitDeclarationOnly": false, + "outFile": "/src/project1/outFile.js", + "module": 2, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -258,8 +356,18 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"declaration":true,"emitDeclarationOnly":false,"outFile":"/src/project2/outFile.js","module":2,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "declaration": true, + "emitDeclarationOnly": false, + "outFile": "/src/project2/outFile.js", + "module": 2, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -322,17 +430,31 @@ Output:: [12:00:46 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:123 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:9:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"declaration":true,"emitDeclarationOnly":true,"outFile":"../outFile.js","module":"amd"},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 9 { +   ~ +10 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +11 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"declaration":true,"emitDeclarationOnly":true,"outFile":"/src/project2/outFile.js","module":2,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "declaration": true, + "emitDeclarationOnly": true, + "outFile": "/src/project2/outFile.js", + "module": 2, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -364,17 +486,31 @@ Output:: [12:00:50 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:123 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:9:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"declaration":true,"emitDeclarationOnly":true,"outFile":"../outFile.js","module":"amd"},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 9 { +   ~ +10 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +11 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"declaration":true,"emitDeclarationOnly":false,"outFile":"/src/project2/outFile.js","module":2,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "declaration": true, + "emitDeclarationOnly": false, + "outFile": "/src/project2/outFile.js", + "module": 2, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -411,17 +547,32 @@ Output:: [12:00:58 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:123 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:9:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"declaration":true,"emitDeclarationOnly":true,"outFile":"../outFile.js","module":"amd"},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 9 { +   ~ +10 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +11 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"declaration":true,"emitDeclarationOnly":false,"outFile":"/src/project1/outFile.js","module":2,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "declaration": true, + "emitDeclarationOnly": false, + "outFile": "/src/project1/outFile.js", + "module": 2, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -434,8 +585,18 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"declaration":true,"emitDeclarationOnly":false,"outFile":"/src/project2/outFile.js","module":2,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "declaration": true, + "emitDeclarationOnly": false, + "outFile": "/src/project2/outFile.js", + "module": 2, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts diff --git a/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-false-on-commandline-with-declaration.js b/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-false-on-commandline-with-declaration.js index 46f08bfaaed1e..2772beda60393 100644 --- a/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-false-on-commandline-with-declaration.js +++ b/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-false-on-commandline-with-declaration.js @@ -28,7 +28,12 @@ import { a } from "./a";export const c = a; import { b } from "./b";export const d = b; //// [/src/project1/src/tsconfig.json] -{"compilerOptions":{"declaration":true,"emitDeclarationOnly":true}} +{ + "compilerOptions": { + "declaration": true, + "emitDeclarationOnly": true + } +} //// [/src/project2/src/e.ts] export const e = 10; @@ -40,7 +45,17 @@ import { a } from "../../project1/src/a"; export const f = a; import { b } from "../../project1/src/b"; export const g = b; //// [/src/project2/src/tsconfig.json] -{"compilerOptions":{"declaration":true,"emitDeclarationOnly":true},"references":[{"path":"../../project1/src"}]} +{ + "compilerOptions": { + "declaration": true, + "emitDeclarationOnly": true + }, + "references": [ + { + "path": "../../project1/src" + } + ] +} @@ -58,17 +73,30 @@ Output:: [12:00:27 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:82 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:7:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"declaration":true,"emitDeclarationOnly":true},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +7 { +   ~ +8 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +9 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"declaration":true,"emitDeclarationOnly":true,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "declaration": true, + "emitDeclarationOnly": true, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -91,8 +119,16 @@ Shape signatures in builder refreshed for:: /src/project1/src/c.ts (computed .d.ts during emit) /src/project1/src/d.ts (computed .d.ts during emit) -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"declaration":true,"emitDeclarationOnly":true,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "declaration": true, + "emitDeclarationOnly": true, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -141,17 +177,29 @@ Output:: [12:00:31 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:82 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:7:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"declaration":true,"emitDeclarationOnly":true},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +7 { +   ~ +8 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +9 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"declaration":true,"emitDeclarationOnly":true,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "declaration": true, + "emitDeclarationOnly": true, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -189,17 +237,30 @@ Output:: [12:00:41 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:82 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:7:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"declaration":true,"emitDeclarationOnly":true},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +7 { +   ~ +8 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +9 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"declaration":true,"emitDeclarationOnly":true,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "declaration": true, + "emitDeclarationOnly": true, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -222,8 +283,16 @@ Shape signatures in builder refreshed for:: /src/project1/src/c.ts (computed .d.ts during emit) /src/project1/src/d.ts (computed .d.ts during emit) -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"declaration":true,"emitDeclarationOnly":true,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "declaration": true, + "emitDeclarationOnly": true, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -262,17 +331,30 @@ Output:: [12:00:54 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:82 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:7:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"declaration":true,"emitDeclarationOnly":true},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +7 { +   ~ +8 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +9 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"declaration":true,"emitDeclarationOnly":false,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "declaration": true, + "emitDeclarationOnly": false, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -295,8 +377,16 @@ Shape signatures in builder refreshed for:: /src/project1/src/c.ts (computed .d.ts during emit) /src/project1/src/d.ts (computed .d.ts during emit) -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"declaration":true,"emitDeclarationOnly":false,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "declaration": true, + "emitDeclarationOnly": false, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -366,17 +456,29 @@ Output:: [12:00:58 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:82 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:7:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"declaration":true,"emitDeclarationOnly":true},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +7 { +   ~ +8 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +9 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"declaration":true,"emitDeclarationOnly":true,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "declaration": true, + "emitDeclarationOnly": true, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -409,17 +511,29 @@ Output:: [12:01:02 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:82 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:7:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"declaration":true,"emitDeclarationOnly":true},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +7 { +   ~ +8 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +9 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"declaration":true,"emitDeclarationOnly":false,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "declaration": true, + "emitDeclarationOnly": false, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -457,17 +571,30 @@ Output:: [12:01:16 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:82 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:7:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"declaration":true,"emitDeclarationOnly":true},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +7 { +   ~ +8 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +9 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"declaration":true,"emitDeclarationOnly":false,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "declaration": true, + "emitDeclarationOnly": false, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -490,8 +617,16 @@ Shape signatures in builder refreshed for:: /src/project1/src/c.ts (computed .d.ts during emit) /src/project1/src/d.ts (computed .d.ts during emit) -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"declaration":true,"emitDeclarationOnly":false,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "declaration": true, + "emitDeclarationOnly": false, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts diff --git a/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-false-on-commandline-with-outFile.js b/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-false-on-commandline-with-outFile.js index 8ac86f63cb7b8..bab6aa754c258 100644 --- a/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-false-on-commandline-with-outFile.js +++ b/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-false-on-commandline-with-outFile.js @@ -28,7 +28,14 @@ import { a } from "./a";export const c = a; import { b } from "./b";export const d = b; //// [/src/project1/src/tsconfig.json] -{"compilerOptions":{"composite":true,"outFile":"../outFile.js","module":"amd","emitDeclarationOnly":true}} +{ + "compilerOptions": { + "composite": true, + "outFile": "../outFile.js", + "module": "amd", + "emitDeclarationOnly": true + } +} //// [/src/project2/src/e.ts] export const e = 10; @@ -40,7 +47,19 @@ import { a } from "a"; export const f = a; import { b } from "b"; export const g = b; //// [/src/project2/src/tsconfig.json] -{"compilerOptions":{"composite":true,"outFile":"../outFile.js","module":"amd","emitDeclarationOnly":true},"references":[{"path":"../../project1/src"}]} +{ + "compilerOptions": { + "composite": true, + "outFile": "../outFile.js", + "module": "amd", + "emitDeclarationOnly": true + }, + "references": [ + { + "path": "../../project1/src" + } + ] +} @@ -59,8 +78,19 @@ Output:: [12:00:28 AM] Building project '/src/project2/src/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"composite":true,"outFile":"/src/project1/outFile.js","module":2,"emitDeclarationOnly":true,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "composite": true, + "outFile": "/src/project1/outFile.js", + "module": 2, + "emitDeclarationOnly": true, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -73,8 +103,18 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"composite":true,"outFile":"/src/project2/outFile.js","module":2,"emitDeclarationOnly":true,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "composite": true, + "outFile": "/src/project2/outFile.js", + "module": 2, + "emitDeclarationOnly": true, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -325,8 +365,19 @@ Output:: [12:00:46 AM] Updating output timestamps of project '/src/project2/src/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"composite":true,"outFile":"/src/project1/outFile.js","module":2,"emitDeclarationOnly":true,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "composite": true, + "outFile": "/src/project1/outFile.js", + "module": 2, + "emitDeclarationOnly": true, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -429,8 +480,19 @@ Output:: [12:00:58 AM] Building project '/src/project2/src/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"composite":true,"outFile":"/src/project1/outFile.js","module":2,"emitDeclarationOnly":false,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "composite": true, + "outFile": "/src/project1/outFile.js", + "module": 2, + "emitDeclarationOnly": false, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -443,8 +505,18 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"composite":true,"outFile":"/src/project2/outFile.js","module":2,"emitDeclarationOnly":false,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "composite": true, + "outFile": "/src/project2/outFile.js", + "module": 2, + "emitDeclarationOnly": false, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -815,8 +887,19 @@ Output:: [12:01:20 AM] Updating output timestamps of project '/src/project2/src/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"composite":true,"outFile":"/src/project1/outFile.js","module":2,"emitDeclarationOnly":false,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "composite": true, + "outFile": "/src/project1/outFile.js", + "module": 2, + "emitDeclarationOnly": false, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts diff --git a/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-false-on-commandline.js b/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-false-on-commandline.js index 79a1871aa1269..7fc884d0e35fd 100644 --- a/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-false-on-commandline.js +++ b/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-false-on-commandline.js @@ -28,7 +28,12 @@ import { a } from "./a";export const c = a; import { b } from "./b";export const d = b; //// [/src/project1/src/tsconfig.json] -{"compilerOptions":{"composite":true,"emitDeclarationOnly":true}} +{ + "compilerOptions": { + "composite": true, + "emitDeclarationOnly": true + } +} //// [/src/project2/src/e.ts] export const e = 10; @@ -40,7 +45,17 @@ import { a } from "../../project1/src/a"; export const f = a; import { b } from "../../project1/src/b"; export const g = b; //// [/src/project2/src/tsconfig.json] -{"compilerOptions":{"composite":true,"emitDeclarationOnly":true},"references":[{"path":"../../project1/src"}]} +{ + "compilerOptions": { + "composite": true, + "emitDeclarationOnly": true + }, + "references": [ + { + "path": "../../project1/src" + } + ] +} @@ -59,8 +74,17 @@ Output:: [12:00:30 AM] Building project '/src/project2/src/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"composite":true,"emitDeclarationOnly":true,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "composite": true, + "emitDeclarationOnly": true, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -83,8 +107,16 @@ Shape signatures in builder refreshed for:: /src/project1/src/c.ts (computed .d.ts during emit) /src/project1/src/d.ts (computed .d.ts during emit) -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"composite":true,"emitDeclarationOnly":true,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "composite": true, + "emitDeclarationOnly": true, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -392,8 +424,17 @@ Output:: [12:00:48 AM] Updating output timestamps of project '/src/project2/src/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"composite":true,"emitDeclarationOnly":true,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "composite": true, + "emitDeclarationOnly": true, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -535,8 +576,17 @@ Output:: [12:01:02 AM] Building project '/src/project2/src/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"composite":true,"emitDeclarationOnly":false,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "composite": true, + "emitDeclarationOnly": false, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -549,8 +599,16 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"composite":true,"emitDeclarationOnly":false,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "composite": true, + "emitDeclarationOnly": false, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -893,8 +951,17 @@ Output:: [12:01:24 AM] Updating output timestamps of project '/src/project2/src/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"composite":true,"emitDeclarationOnly":false,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "composite": true, + "emitDeclarationOnly": false, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts diff --git a/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-on-commandline-with-declaration-and-incremental-with-outFile.js b/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-on-commandline-with-declaration-and-incremental-with-outFile.js index 115950cb8170e..60d12caf3f96e 100644 --- a/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-on-commandline-with-declaration-and-incremental-with-outFile.js +++ b/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-on-commandline-with-declaration-and-incremental-with-outFile.js @@ -28,7 +28,14 @@ import { a } from "./a";export const c = a; import { b } from "./b";export const d = b; //// [/src/project1/src/tsconfig.json] -{"compilerOptions":{"incremental":true,"declaration":true,"outFile":"../outFile.js","module":"amd"}} +{ + "compilerOptions": { + "incremental": true, + "declaration": true, + "outFile": "../outFile.js", + "module": "amd" + } +} //// [/src/project2/src/e.ts] export const e = 10; @@ -40,7 +47,19 @@ import { a } from "a"; export const f = a; import { b } from "b"; export const g = b; //// [/src/project2/src/tsconfig.json] -{"compilerOptions":{"incremental":true,"declaration":true,"outFile":"../outFile.js","module":"amd"},"references":[{"path":"../../project1/src"}]} +{ + "compilerOptions": { + "incremental": true, + "declaration": true, + "outFile": "../outFile.js", + "module": "amd" + }, + "references": [ + { + "path": "../../project1/src" + } + ] +} @@ -58,17 +77,33 @@ Output:: [12:00:28 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:115 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:9:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"incremental":true,"declaration":true,"outFile":"../outFile.js","module":"amd"},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 9 { +   ~ +10 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +11 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"incremental":true,"declaration":true,"outFile":"/src/project1/outFile.js","module":2,"emitDeclarationOnly":true,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "outFile": "/src/project1/outFile.js", + "module": 2, + "emitDeclarationOnly": true, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -81,8 +116,19 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"incremental":true,"declaration":true,"outFile":"/src/project2/outFile.js","module":2,"emitDeclarationOnly":true,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "outFile": "/src/project2/outFile.js", + "module": 2, + "emitDeclarationOnly": true, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -213,17 +259,32 @@ Output:: [12:00:32 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:115 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:9:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"incremental":true,"declaration":true,"outFile":"../outFile.js","module":"amd"},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 9 { +   ~ +10 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +11 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"incremental":true,"declaration":true,"outFile":"/src/project2/outFile.js","module":2,"emitDeclarationOnly":true,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "outFile": "/src/project2/outFile.js", + "module": 2, + "emitDeclarationOnly": true, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -260,17 +321,33 @@ Output:: [12:00:43 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:115 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:9:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"incremental":true,"declaration":true,"outFile":"../outFile.js","module":"amd"},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 9 { +   ~ +10 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +11 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"incremental":true,"declaration":true,"outFile":"/src/project1/outFile.js","module":2,"emitDeclarationOnly":true,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "outFile": "/src/project1/outFile.js", + "module": 2, + "emitDeclarationOnly": true, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -283,8 +360,19 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"incremental":true,"declaration":true,"outFile":"/src/project2/outFile.js","module":2,"emitDeclarationOnly":true,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "outFile": "/src/project2/outFile.js", + "module": 2, + "emitDeclarationOnly": true, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -387,17 +475,33 @@ Output:: [12:00:54 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:115 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:9:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"incremental":true,"declaration":true,"outFile":"../outFile.js","module":"amd"},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 9 { +   ~ +10 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +11 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"incremental":true,"declaration":true,"outFile":"/src/project1/outFile.js","module":2,"emitDeclarationOnly":true,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "outFile": "/src/project1/outFile.js", + "module": 2, + "emitDeclarationOnly": true, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -410,8 +514,19 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"incremental":true,"declaration":true,"outFile":"/src/project2/outFile.js","module":2,"emitDeclarationOnly":true,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "outFile": "/src/project2/outFile.js", + "module": 2, + "emitDeclarationOnly": true, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -546,17 +661,32 @@ Output:: [12:01:04 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:115 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:9:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"incremental":true,"declaration":true,"outFile":"../outFile.js","module":"amd"},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 9 { +   ~ +10 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +11 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"incremental":true,"declaration":true,"outFile":"/src/project1/outFile.js","module":2,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "outFile": "/src/project1/outFile.js", + "module": 2, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -569,8 +699,18 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"incremental":true,"declaration":true,"outFile":"/src/project2/outFile.js","module":2,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "outFile": "/src/project2/outFile.js", + "module": 2, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -761,17 +901,32 @@ Output:: [12:01:08 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:115 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:9:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"incremental":true,"declaration":true,"outFile":"../outFile.js","module":"amd"},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 9 { +   ~ +10 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +11 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"incremental":true,"declaration":true,"outFile":"/src/project2/outFile.js","module":2,"emitDeclarationOnly":true,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "outFile": "/src/project2/outFile.js", + "module": 2, + "emitDeclarationOnly": true, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -808,17 +963,32 @@ Output:: [12:01:20 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:115 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:9:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"incremental":true,"declaration":true,"outFile":"../outFile.js","module":"amd"},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 9 { +   ~ +10 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +11 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"incremental":true,"declaration":true,"outFile":"/src/project1/outFile.js","module":2,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "outFile": "/src/project1/outFile.js", + "module": 2, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -831,8 +1001,18 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"incremental":true,"declaration":true,"outFile":"/src/project2/outFile.js","module":2,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "outFile": "/src/project2/outFile.js", + "module": 2, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1031,17 +1211,33 @@ Output:: [12:01:31 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:115 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:9:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"incremental":true,"declaration":true,"outFile":"../outFile.js","module":"amd"},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 9 { +   ~ +10 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +11 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"incremental":true,"declaration":true,"outFile":"/src/project1/outFile.js","module":2,"emitDeclarationOnly":true,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "outFile": "/src/project1/outFile.js", + "module": 2, + "emitDeclarationOnly": true, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1054,8 +1250,19 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"incremental":true,"declaration":true,"outFile":"/src/project2/outFile.js","module":2,"emitDeclarationOnly":true,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "outFile": "/src/project2/outFile.js", + "module": 2, + "emitDeclarationOnly": true, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1178,17 +1385,33 @@ Output:: [12:01:42 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:115 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:9:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"incremental":true,"declaration":true,"outFile":"../outFile.js","module":"amd"},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 9 { +   ~ +10 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +11 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"incremental":true,"declaration":true,"outFile":"/src/project1/outFile.js","module":2,"emitDeclarationOnly":true,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "outFile": "/src/project1/outFile.js", + "module": 2, + "emitDeclarationOnly": true, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1201,8 +1424,19 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"incremental":true,"declaration":true,"outFile":"/src/project2/outFile.js","module":2,"emitDeclarationOnly":true,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "outFile": "/src/project2/outFile.js", + "module": 2, + "emitDeclarationOnly": true, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1342,17 +1576,32 @@ Output:: [12:01:54 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:115 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:9:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"incremental":true,"declaration":true,"outFile":"../outFile.js","module":"amd"},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 9 { +   ~ +10 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +11 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"incremental":true,"declaration":true,"outFile":"/src/project1/outFile.js","module":2,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "outFile": "/src/project1/outFile.js", + "module": 2, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1365,8 +1614,18 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"incremental":true,"declaration":true,"outFile":"/src/project2/outFile.js","module":2,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "outFile": "/src/project2/outFile.js", + "module": 2, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts diff --git a/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-on-commandline-with-declaration-and-incremental.js b/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-on-commandline-with-declaration-and-incremental.js index 4170d4d1cc6cf..b62700a6d9d44 100644 --- a/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-on-commandline-with-declaration-and-incremental.js +++ b/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-on-commandline-with-declaration-and-incremental.js @@ -28,7 +28,12 @@ import { a } from "./a";export const c = a; import { b } from "./b";export const d = b; //// [/src/project1/src/tsconfig.json] -{"compilerOptions":{"incremental":true,"declaration":true}} +{ + "compilerOptions": { + "incremental": true, + "declaration": true + } +} //// [/src/project2/src/e.ts] export const e = 10; @@ -40,7 +45,17 @@ import { a } from "../../project1/src/a"; export const f = a; import { b } from "../../project1/src/b"; export const g = b; //// [/src/project2/src/tsconfig.json] -{"compilerOptions":{"incremental":true,"declaration":true},"references":[{"path":"../../project1/src"}]} +{ + "compilerOptions": { + "incremental": true, + "declaration": true + }, + "references": [ + { + "path": "../../project1/src" + } + ] +} @@ -58,17 +73,31 @@ Output:: [12:00:30 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:74 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:7:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"incremental":true,"declaration":true},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +7 { +   ~ +8 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +9 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"incremental":true,"declaration":true,"emitDeclarationOnly":true,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "emitDeclarationOnly": true, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -91,8 +120,17 @@ Shape signatures in builder refreshed for:: /src/project1/src/c.ts (computed .d.ts during emit) /src/project1/src/d.ts (computed .d.ts during emit) -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"incremental":true,"declaration":true,"emitDeclarationOnly":true,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "emitDeclarationOnly": true, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -352,17 +390,30 @@ Output:: [12:00:37 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:74 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:7:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"incremental":true,"declaration":true},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +7 { +   ~ +8 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +9 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"incremental":true,"declaration":true,"emitDeclarationOnly":true,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "emitDeclarationOnly": true, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -400,17 +451,31 @@ Output:: [12:00:47 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:74 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:7:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"incremental":true,"declaration":true},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +7 { +   ~ +8 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +9 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"incremental":true,"declaration":true,"emitDeclarationOnly":true,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "emitDeclarationOnly": true, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -425,8 +490,17 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /src/project1/src/a.ts (computed .d.ts) -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"incremental":true,"declaration":true,"emitDeclarationOnly":true,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "emitDeclarationOnly": true, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -568,17 +642,31 @@ Output:: [12:00:58 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:74 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:7:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"incremental":true,"declaration":true},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +7 { +   ~ +8 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +9 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"incremental":true,"declaration":true,"emitDeclarationOnly":true,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "emitDeclarationOnly": true, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -595,8 +683,17 @@ Shape signatures in builder refreshed for:: /src/project1/src/a.ts (computed .d.ts) /src/project1/src/c.ts (computed .d.ts) -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"incremental":true,"declaration":true,"emitDeclarationOnly":true,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "emitDeclarationOnly": true, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -848,17 +945,30 @@ Output:: [12:01:13 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:74 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:7:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"incremental":true,"declaration":true},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +7 { +   ~ +8 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +9 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"incremental":true,"declaration":true,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -871,8 +981,16 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"incremental":true,"declaration":true,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1148,17 +1266,30 @@ Output:: [12:01:20 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:74 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:7:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"incremental":true,"declaration":true},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +7 { +   ~ +8 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +9 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"incremental":true,"declaration":true,"emitDeclarationOnly":true,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "emitDeclarationOnly": true, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1196,17 +1327,30 @@ Output:: [12:01:31 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:74 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:7:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"incremental":true,"declaration":true},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +7 { +   ~ +8 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +9 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"incremental":true,"declaration":true,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1221,8 +1365,16 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /src/project1/src/b.ts (computed .d.ts) -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"incremental":true,"declaration":true,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1372,17 +1524,31 @@ Output:: [12:01:41 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:74 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:7:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"incremental":true,"declaration":true},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +7 { +   ~ +8 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +9 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"incremental":true,"declaration":true,"emitDeclarationOnly":true,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "emitDeclarationOnly": true, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1397,8 +1563,17 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /src/project1/src/b.ts (computed .d.ts) -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"incremental":true,"declaration":true,"emitDeclarationOnly":true,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "emitDeclarationOnly": true, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1540,17 +1715,31 @@ Output:: [12:01:52 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:74 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:7:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"incremental":true,"declaration":true},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +7 { +   ~ +8 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +9 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"incremental":true,"declaration":true,"emitDeclarationOnly":true,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "emitDeclarationOnly": true, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1567,8 +1756,17 @@ Shape signatures in builder refreshed for:: /src/project1/src/b.ts (computed .d.ts) /src/project1/src/d.ts (computed .d.ts) -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"incremental":true,"declaration":true,"emitDeclarationOnly":true,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "emitDeclarationOnly": true, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1823,17 +2021,30 @@ Output:: [12:02:10 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:74 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:7:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"incremental":true,"declaration":true},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +7 { +   ~ +8 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +9 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"incremental":true,"declaration":true,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1850,8 +2061,16 @@ Shape signatures in builder refreshed for:: /src/project1/src/b.ts (computed .d.ts) /src/project1/src/d.ts (computed .d.ts) -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"incremental":true,"declaration":true,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts diff --git a/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-on-commandline-with-declaration-with-outFile.js b/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-on-commandline-with-declaration-with-outFile.js index 78ba259f31036..2515db0e31618 100644 --- a/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-on-commandline-with-declaration-with-outFile.js +++ b/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-on-commandline-with-declaration-with-outFile.js @@ -28,7 +28,13 @@ import { a } from "./a";export const c = a; import { b } from "./b";export const d = b; //// [/src/project1/src/tsconfig.json] -{"compilerOptions":{"declaration":true,"outFile":"../outFile.js","module":"amd"}} +{ + "compilerOptions": { + "declaration": true, + "outFile": "../outFile.js", + "module": "amd" + } +} //// [/src/project2/src/e.ts] export const e = 10; @@ -40,7 +46,18 @@ import { a } from "a"; export const f = a; import { b } from "b"; export const g = b; //// [/src/project2/src/tsconfig.json] -{"compilerOptions":{"declaration":true,"outFile":"../outFile.js","module":"amd"},"references":[{"path":"../../project1/src"}]} +{ + "compilerOptions": { + "declaration": true, + "outFile": "../outFile.js", + "module": "amd" + }, + "references": [ + { + "path": "../../project1/src" + } + ] +} @@ -58,17 +75,32 @@ Output:: [12:00:24 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:96 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:8:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"declaration":true,"outFile":"../outFile.js","module":"amd"},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 8 { +   ~ + 9 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +10 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"declaration":true,"outFile":"/src/project1/outFile.js","module":2,"emitDeclarationOnly":true,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "declaration": true, + "outFile": "/src/project1/outFile.js", + "module": 2, + "emitDeclarationOnly": true, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -81,8 +113,18 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"declaration":true,"outFile":"/src/project2/outFile.js","module":2,"emitDeclarationOnly":true,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "declaration": true, + "outFile": "/src/project2/outFile.js", + "module": 2, + "emitDeclarationOnly": true, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -129,17 +171,31 @@ Output:: [12:00:28 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:96 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:8:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"declaration":true,"outFile":"../outFile.js","module":"amd"},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 8 { +   ~ + 9 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +10 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"declaration":true,"outFile":"/src/project2/outFile.js","module":2,"emitDeclarationOnly":true,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "declaration": true, + "outFile": "/src/project2/outFile.js", + "module": 2, + "emitDeclarationOnly": true, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -176,17 +232,32 @@ Output:: [12:00:35 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:96 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:8:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"declaration":true,"outFile":"../outFile.js","module":"amd"},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 8 { +   ~ + 9 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +10 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"declaration":true,"outFile":"/src/project1/outFile.js","module":2,"emitDeclarationOnly":true,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "declaration": true, + "outFile": "/src/project1/outFile.js", + "module": 2, + "emitDeclarationOnly": true, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -199,8 +270,18 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"declaration":true,"outFile":"/src/project2/outFile.js","module":2,"emitDeclarationOnly":true,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "declaration": true, + "outFile": "/src/project2/outFile.js", + "module": 2, + "emitDeclarationOnly": true, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -238,17 +319,32 @@ Output:: [12:00:42 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:96 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:8:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"declaration":true,"outFile":"../outFile.js","module":"amd"},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 8 { +   ~ + 9 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +10 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"declaration":true,"outFile":"/src/project1/outFile.js","module":2,"emitDeclarationOnly":true,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "declaration": true, + "outFile": "/src/project1/outFile.js", + "module": 2, + "emitDeclarationOnly": true, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -261,8 +357,18 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"declaration":true,"outFile":"/src/project2/outFile.js","module":2,"emitDeclarationOnly":true,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "declaration": true, + "outFile": "/src/project2/outFile.js", + "module": 2, + "emitDeclarationOnly": true, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -312,17 +418,31 @@ Output:: [12:00:49 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:96 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:8:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"declaration":true,"outFile":"../outFile.js","module":"amd"},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 8 { +   ~ + 9 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +10 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"declaration":true,"outFile":"/src/project1/outFile.js","module":2,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "declaration": true, + "outFile": "/src/project1/outFile.js", + "module": 2, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -335,8 +455,17 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"declaration":true,"outFile":"/src/project2/outFile.js","module":2,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "declaration": true, + "outFile": "/src/project2/outFile.js", + "module": 2, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -400,17 +529,31 @@ Output:: [12:00:53 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:96 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:8:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"declaration":true,"outFile":"../outFile.js","module":"amd"},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 8 { +   ~ + 9 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +10 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"declaration":true,"outFile":"/src/project2/outFile.js","module":2,"emitDeclarationOnly":true,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "declaration": true, + "outFile": "/src/project2/outFile.js", + "module": 2, + "emitDeclarationOnly": true, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -447,17 +590,31 @@ Output:: [12:01:01 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:96 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:8:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"declaration":true,"outFile":"../outFile.js","module":"amd"},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 8 { +   ~ + 9 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +10 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"declaration":true,"outFile":"/src/project1/outFile.js","module":2,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "declaration": true, + "outFile": "/src/project1/outFile.js", + "module": 2, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -470,8 +627,17 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"declaration":true,"outFile":"/src/project2/outFile.js","module":2,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "declaration": true, + "outFile": "/src/project2/outFile.js", + "module": 2, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -541,17 +707,32 @@ Output:: [12:01:08 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:96 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:8:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"declaration":true,"outFile":"../outFile.js","module":"amd"},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 8 { +   ~ + 9 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +10 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"declaration":true,"outFile":"/src/project1/outFile.js","module":2,"emitDeclarationOnly":true,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "declaration": true, + "outFile": "/src/project1/outFile.js", + "module": 2, + "emitDeclarationOnly": true, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -564,8 +745,18 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"declaration":true,"outFile":"/src/project2/outFile.js","module":2,"emitDeclarationOnly":true,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "declaration": true, + "outFile": "/src/project2/outFile.js", + "module": 2, + "emitDeclarationOnly": true, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -603,17 +794,32 @@ Output:: [12:01:15 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:96 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:8:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"declaration":true,"outFile":"../outFile.js","module":"amd"},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 8 { +   ~ + 9 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +10 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"declaration":true,"outFile":"/src/project1/outFile.js","module":2,"emitDeclarationOnly":true,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "declaration": true, + "outFile": "/src/project1/outFile.js", + "module": 2, + "emitDeclarationOnly": true, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -626,8 +832,18 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"declaration":true,"outFile":"/src/project2/outFile.js","module":2,"emitDeclarationOnly":true,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "declaration": true, + "outFile": "/src/project2/outFile.js", + "module": 2, + "emitDeclarationOnly": true, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -681,17 +897,31 @@ Output:: [12:01:23 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:96 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:8:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"declaration":true,"outFile":"../outFile.js","module":"amd"},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 8 { +   ~ + 9 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +10 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"declaration":true,"outFile":"/src/project1/outFile.js","module":2,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "declaration": true, + "outFile": "/src/project1/outFile.js", + "module": 2, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -704,8 +934,17 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"declaration":true,"outFile":"/src/project2/outFile.js","module":2,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "declaration": true, + "outFile": "/src/project2/outFile.js", + "module": 2, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts diff --git a/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-on-commandline-with-declaration.js b/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-on-commandline-with-declaration.js index 23d4f804d97ef..1cc2245f28736 100644 --- a/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-on-commandline-with-declaration.js +++ b/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-on-commandline-with-declaration.js @@ -28,7 +28,11 @@ import { a } from "./a";export const c = a; import { b } from "./b";export const d = b; //// [/src/project1/src/tsconfig.json] -{"compilerOptions":{"declaration":true}} +{ + "compilerOptions": { + "declaration": true + } +} //// [/src/project2/src/e.ts] export const e = 10; @@ -40,7 +44,16 @@ import { a } from "../../project1/src/a"; export const f = a; import { b } from "../../project1/src/b"; export const g = b; //// [/src/project2/src/tsconfig.json] -{"compilerOptions":{"declaration":true},"references":[{"path":"../../project1/src"}]} +{ + "compilerOptions": { + "declaration": true + }, + "references": [ + { + "path": "../../project1/src" + } + ] +} @@ -58,17 +71,30 @@ Output:: [12:00:27 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:55 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:6:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"declaration":true},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +6 { +   ~ +7 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +8 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"declaration":true,"emitDeclarationOnly":true,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "declaration": true, + "emitDeclarationOnly": true, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -91,8 +117,16 @@ Shape signatures in builder refreshed for:: /src/project1/src/c.ts (computed .d.ts during emit) /src/project1/src/d.ts (computed .d.ts during emit) -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"declaration":true,"emitDeclarationOnly":true,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "declaration": true, + "emitDeclarationOnly": true, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -141,17 +175,29 @@ Output:: [12:00:31 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:55 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:6:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"declaration":true},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +6 { +   ~ +7 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +8 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"declaration":true,"emitDeclarationOnly":true,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "declaration": true, + "emitDeclarationOnly": true, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -189,17 +235,30 @@ Output:: [12:00:41 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:55 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:6:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"declaration":true},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +6 { +   ~ +7 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +8 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"declaration":true,"emitDeclarationOnly":true,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "declaration": true, + "emitDeclarationOnly": true, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -222,8 +281,16 @@ Shape signatures in builder refreshed for:: /src/project1/src/c.ts (computed .d.ts during emit) /src/project1/src/d.ts (computed .d.ts during emit) -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"declaration":true,"emitDeclarationOnly":true,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "declaration": true, + "emitDeclarationOnly": true, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -265,17 +332,30 @@ Output:: [12:00:51 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:55 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:6:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"declaration":true},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +6 { +   ~ +7 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +8 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"declaration":true,"emitDeclarationOnly":true,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "declaration": true, + "emitDeclarationOnly": true, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -298,8 +378,16 @@ Shape signatures in builder refreshed for:: /src/project1/src/c.ts (computed .d.ts during emit) /src/project1/src/d.ts (computed .d.ts during emit) -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"declaration":true,"emitDeclarationOnly":true,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "declaration": true, + "emitDeclarationOnly": true, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -342,17 +430,29 @@ Output:: [12:01:04 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:55 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:6:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"declaration":true},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +6 { +   ~ +7 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +8 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"declaration":true,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "declaration": true, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -375,8 +475,15 @@ Shape signatures in builder refreshed for:: /src/project1/src/c.ts (computed .d.ts during emit) /src/project1/src/d.ts (computed .d.ts during emit) -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"declaration":true,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "declaration": true, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -447,17 +554,29 @@ Output:: [12:01:08 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:55 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:6:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"declaration":true},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +6 { +   ~ +7 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +8 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"declaration":true,"emitDeclarationOnly":true,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "declaration": true, + "emitDeclarationOnly": true, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -495,17 +614,29 @@ Output:: [12:01:22 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:55 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:6:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"declaration":true},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +6 { +   ~ +7 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +8 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"declaration":true,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "declaration": true, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -528,8 +659,15 @@ Shape signatures in builder refreshed for:: /src/project1/src/c.ts (computed .d.ts during emit) /src/project1/src/d.ts (computed .d.ts during emit) -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"declaration":true,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "declaration": true, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -583,17 +721,30 @@ Output:: [12:01:32 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:55 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:6:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"declaration":true},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +6 { +   ~ +7 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +8 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"declaration":true,"emitDeclarationOnly":true,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "declaration": true, + "emitDeclarationOnly": true, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -616,8 +767,16 @@ Shape signatures in builder refreshed for:: /src/project1/src/c.ts (computed .d.ts during emit) /src/project1/src/d.ts (computed .d.ts during emit) -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"declaration":true,"emitDeclarationOnly":true,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "declaration": true, + "emitDeclarationOnly": true, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -659,17 +818,30 @@ Output:: [12:01:42 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:55 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:6:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"declaration":true},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +6 { +   ~ +7 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +8 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"declaration":true,"emitDeclarationOnly":true,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "declaration": true, + "emitDeclarationOnly": true, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -692,8 +864,16 @@ Shape signatures in builder refreshed for:: /src/project1/src/c.ts (computed .d.ts during emit) /src/project1/src/d.ts (computed .d.ts during emit) -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"declaration":true,"emitDeclarationOnly":true,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "declaration": true, + "emitDeclarationOnly": true, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -739,17 +919,29 @@ Output:: [12:01:56 AM] Building project '/src/project2/src/tsconfig.json'... -src/project2/src/tsconfig.json:1:55 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. +src/project2/src/tsconfig.json:6:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. -1 {"compilerOptions":{"declaration":true},"references":[{"path":"../../project1/src"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +6 { +   ~ +7 "path": "../../project1/src" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +8 } +  ~~~~~ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"declaration":true,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "declaration": true, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -772,8 +964,15 @@ Shape signatures in builder refreshed for:: /src/project1/src/c.ts (computed .d.ts during emit) /src/project1/src/d.ts (computed .d.ts during emit) -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"declaration":true,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "declaration": true, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts diff --git a/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-on-commandline-with-outFile.js b/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-on-commandline-with-outFile.js index 0e3451aaf550b..a344d1dad8c6f 100644 --- a/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-on-commandline-with-outFile.js +++ b/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-on-commandline-with-outFile.js @@ -28,7 +28,13 @@ import { a } from "./a";export const c = a; import { b } from "./b";export const d = b; //// [/src/project1/src/tsconfig.json] -{"compilerOptions":{"composite":true,"outFile":"../outFile.js","module":"amd"}} +{ + "compilerOptions": { + "composite": true, + "outFile": "../outFile.js", + "module": "amd" + } +} //// [/src/project2/src/e.ts] export const e = 10; @@ -40,7 +46,18 @@ import { a } from "a"; export const f = a; import { b } from "b"; export const g = b; //// [/src/project2/src/tsconfig.json] -{"compilerOptions":{"composite":true,"outFile":"../outFile.js","module":"amd"},"references":[{"path":"../../project1/src"}]} +{ + "compilerOptions": { + "composite": true, + "outFile": "../outFile.js", + "module": "amd" + }, + "references": [ + { + "path": "../../project1/src" + } + ] +} @@ -59,8 +76,19 @@ Output:: [12:00:28 AM] Building project '/src/project2/src/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"composite":true,"outFile":"/src/project1/outFile.js","module":2,"emitDeclarationOnly":true,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "composite": true, + "outFile": "/src/project1/outFile.js", + "module": 2, + "emitDeclarationOnly": true, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -73,8 +101,18 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"composite":true,"outFile":"/src/project2/outFile.js","module":2,"emitDeclarationOnly":true,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "composite": true, + "outFile": "/src/project2/outFile.js", + "module": 2, + "emitDeclarationOnly": true, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -325,8 +363,19 @@ Output:: [12:00:46 AM] Updating output timestamps of project '/src/project2/src/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"composite":true,"outFile":"/src/project1/outFile.js","module":2,"emitDeclarationOnly":true,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "composite": true, + "outFile": "/src/project1/outFile.js", + "module": 2, + "emitDeclarationOnly": true, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -432,8 +481,19 @@ Output:: [12:00:59 AM] Building project '/src/project2/src/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"composite":true,"outFile":"/src/project1/outFile.js","module":2,"emitDeclarationOnly":true,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "composite": true, + "outFile": "/src/project1/outFile.js", + "module": 2, + "emitDeclarationOnly": true, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -446,8 +506,18 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"composite":true,"outFile":"/src/project2/outFile.js","module":2,"emitDeclarationOnly":true,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "composite": true, + "outFile": "/src/project2/outFile.js", + "module": 2, + "emitDeclarationOnly": true, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -650,8 +720,18 @@ Output:: [12:01:13 AM] Building project '/src/project2/src/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"composite":true,"outFile":"/src/project1/outFile.js","module":2,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "composite": true, + "outFile": "/src/project1/outFile.js", + "module": 2, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -664,8 +744,17 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"composite":true,"outFile":"/src/project2/outFile.js","module":2,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "composite": true, + "outFile": "/src/project2/outFile.js", + "module": 2, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1018,8 +1107,18 @@ Output:: [12:01:32 AM] Updating output timestamps of project '/src/project2/src/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"composite":true,"outFile":"/src/project1/outFile.js","module":2,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "composite": true, + "outFile": "/src/project1/outFile.js", + "module": 2, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1221,8 +1320,19 @@ Output:: [12:01:44 AM] Updating output timestamps of project '/src/project2/src/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"composite":true,"outFile":"/src/project1/outFile.js","module":2,"emitDeclarationOnly":true,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "composite": true, + "outFile": "/src/project1/outFile.js", + "module": 2, + "emitDeclarationOnly": true, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1348,8 +1458,19 @@ Output:: [12:01:57 AM] Building project '/src/project2/src/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"composite":true,"outFile":"/src/project1/outFile.js","module":2,"emitDeclarationOnly":true,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "composite": true, + "outFile": "/src/project1/outFile.js", + "module": 2, + "emitDeclarationOnly": true, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1362,8 +1483,18 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"composite":true,"outFile":"/src/project2/outFile.js","module":2,"emitDeclarationOnly":true,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "composite": true, + "outFile": "/src/project2/outFile.js", + "module": 2, + "emitDeclarationOnly": true, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1587,8 +1718,18 @@ Output:: [12:02:13 AM] Building project '/src/project2/src/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"composite":true,"outFile":"/src/project1/outFile.js","module":2,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "composite": true, + "outFile": "/src/project1/outFile.js", + "module": 2, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1601,8 +1742,17 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"composite":true,"outFile":"/src/project2/outFile.js","module":2,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "composite": true, + "outFile": "/src/project2/outFile.js", + "module": 2, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts diff --git a/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-on-commandline.js b/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-on-commandline.js index 403e1b72961b5..080f726c74ee8 100644 --- a/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-on-commandline.js +++ b/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-on-commandline.js @@ -28,7 +28,11 @@ import { a } from "./a";export const c = a; import { b } from "./b";export const d = b; //// [/src/project1/src/tsconfig.json] -{"compilerOptions":{"composite":true}} +{ + "compilerOptions": { + "composite": true + } +} //// [/src/project2/src/e.ts] export const e = 10; @@ -40,7 +44,16 @@ import { a } from "../../project1/src/a"; export const f = a; import { b } from "../../project1/src/b"; export const g = b; //// [/src/project2/src/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[{"path":"../../project1/src"}]} +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../../project1/src" + } + ] +} @@ -59,8 +72,17 @@ Output:: [12:00:30 AM] Building project '/src/project2/src/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"composite":true,"emitDeclarationOnly":true,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "composite": true, + "emitDeclarationOnly": true, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -83,8 +105,16 @@ Shape signatures in builder refreshed for:: /src/project1/src/c.ts (computed .d.ts during emit) /src/project1/src/d.ts (computed .d.ts during emit) -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"composite":true,"emitDeclarationOnly":true,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "composite": true, + "emitDeclarationOnly": true, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -392,8 +422,17 @@ Output:: [12:00:48 AM] Updating output timestamps of project '/src/project2/src/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"composite":true,"emitDeclarationOnly":true,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "composite": true, + "emitDeclarationOnly": true, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -538,8 +577,17 @@ Output:: [12:01:00 AM] Building project '/src/project2/src/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"composite":true,"emitDeclarationOnly":true,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "composite": true, + "emitDeclarationOnly": true, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -556,8 +604,16 @@ Shape signatures in builder refreshed for:: /src/project1/src/a.ts (computed .d.ts) /src/project1/src/c.ts (computed .d.ts) -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"composite":true,"emitDeclarationOnly":true,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "composite": true, + "emitDeclarationOnly": true, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -812,8 +868,16 @@ Output:: [12:01:15 AM] Building project '/src/project2/src/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"composite":true,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "composite": true, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -826,8 +890,15 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"composite":true,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "composite": true, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1150,8 +1221,16 @@ Output:: [12:01:34 AM] Updating output timestamps of project '/src/project2/src/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"composite":true,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "composite": true, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1304,8 +1383,17 @@ Output:: [12:01:45 AM] Updating output timestamps of project '/src/project2/src/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"composite":true,"emitDeclarationOnly":true,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "composite": true, + "emitDeclarationOnly": true, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1450,8 +1538,17 @@ Output:: [12:01:57 AM] Building project '/src/project2/src/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"composite":true,"emitDeclarationOnly":true,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "composite": true, + "emitDeclarationOnly": true, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1468,8 +1565,16 @@ Shape signatures in builder refreshed for:: /src/project1/src/b.ts (computed .d.ts) /src/project1/src/d.ts (computed .d.ts) -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"composite":true,"emitDeclarationOnly":true,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "composite": true, + "emitDeclarationOnly": true, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1727,8 +1832,16 @@ Output:: [12:02:14 AM] Building project '/src/project2/src/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/project1/src/a.ts","/src/project1/src/b.ts","/src/project1/src/c.ts","/src/project1/src/d.ts"] -Program options: {"composite":true,"configFilePath":"/src/project1/src/tsconfig.json"} +Program root files: [ + "/src/project1/src/a.ts", + "/src/project1/src/b.ts", + "/src/project1/src/c.ts", + "/src/project1/src/d.ts" +] +Program options: { + "composite": true, + "configFilePath": "/src/project1/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1745,8 +1858,15 @@ Shape signatures in builder refreshed for:: /src/project1/src/b.ts (computed .d.ts) /src/project1/src/d.ts (computed .d.ts) -Program root files: ["/src/project2/src/e.ts","/src/project2/src/f.ts","/src/project2/src/g.ts"] -Program options: {"composite":true,"configFilePath":"/src/project2/src/tsconfig.json"} +Program root files: [ + "/src/project2/src/e.ts", + "/src/project2/src/f.ts", + "/src/project2/src/g.ts" +] +Program options: { + "composite": true, + "configFilePath": "/src/project2/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts diff --git a/tests/baselines/reference/tsbuild/configFileErrors/reports-syntax-errors-in-config-file.js b/tests/baselines/reference/tsbuild/configFileErrors/reports-syntax-errors-in-config-file.js index d3b26f299a421..2e6c61c9f9ab8 100644 --- a/tests/baselines/reference/tsbuild/configFileErrors/reports-syntax-errors-in-config-file.js +++ b/tests/baselines/reference/tsbuild/configFileErrors/reports-syntax-errors-in-config-file.js @@ -247,7 +247,16 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: builds after fixing config file errors Input:: //// [/src/tsconfig.json] -{"compilerOptions":{"composite":true,"declaration":true},"files":["a.ts","b.ts"]} +{ + "compilerOptions": { + "composite": true, + "declaration": true + }, + "files": [ + "a.ts", + "b.ts" + ] +} diff --git a/tests/baselines/reference/tsbuild/configFileErrors/when-tsconfig-extends-the-missing-file.js b/tests/baselines/reference/tsbuild/configFileErrors/when-tsconfig-extends-the-missing-file.js index 7aa9b54c81adc..96d6988c4971c 100644 --- a/tests/baselines/reference/tsbuild/configFileErrors/when-tsconfig-extends-the-missing-file.js +++ b/tests/baselines/reference/tsbuild/configFileErrors/when-tsconfig-extends-the-missing-file.js @@ -16,30 +16,34 @@ interface ReadonlyArray {} declare const console: { log(msg: any): void; }; //// [/src/tsconfig.first.json] -{ - "extends": "./foobar.json", - "compilerOptions": { - "composite": true - } +{ + "extends": "./foobar.json", + "compilerOptions": { + "composite": true + } } //// [/src/tsconfig.json] -{ - "compilerOptions": { - "composite": true - }, - "references": [ - { "path": "./tsconfig.first.json" }, - { "path": "./tsconfig.second.json" } - ] +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "./tsconfig.first.json" + }, + { + "path": "./tsconfig.second.json" + } + ] } //// [/src/tsconfig.second.json] -{ - "extends": "./foobar.json", - "compilerOptions": { - "composite": true - } +{ + "extends": "./foobar.json", + "compilerOptions": { + "composite": true + } } diff --git a/tests/baselines/reference/tsbuild/configFileExtends/when-building-project-uses-reference-and-both-extend-config-with-include.js b/tests/baselines/reference/tsbuild/configFileExtends/when-building-project-uses-reference-and-both-extend-config-with-include.js index dea6a7439c4d1..5ecf37b7cfbd6 100644 --- a/tests/baselines/reference/tsbuild/configFileExtends/when-building-project-uses-reference-and-both-extend-config-with-include.js +++ b/tests/baselines/reference/tsbuild/configFileExtends/when-building-project-uses-reference-and-both-extend-config-with-include.js @@ -19,22 +19,61 @@ declare const console: { log(msg: any): void; }; export const a: Unrestricted = 1; //// [/src/shared/tsconfig-base.json] -{"include":["./typings-base/"]} +{ + "include": [ + "./typings-base/" + ] +} //// [/src/shared/tsconfig.json] -{"extends":"./tsconfig-base.json","compilerOptions":{"composite":true,"outDir":"../target-tsc-build/","rootDir":".."},"files":["./index.ts"]} +{ + "extends": "./tsconfig-base.json", + "compilerOptions": { + "composite": true, + "outDir": "../target-tsc-build/", + "rootDir": ".." + }, + "files": [ + "./index.ts" + ] +} //// [/src/shared/typings-base/globals.d.ts] type Unrestricted = any; //// [/src/tsconfig.json] -{"references":[{"path":"./shared/tsconfig.json"},{"path":"./webpack/tsconfig.json"}],"files":[]} +{ + "references": [ + { + "path": "./shared/tsconfig.json" + }, + { + "path": "./webpack/tsconfig.json" + } + ], + "files": [] +} //// [/src/webpack/index.ts] export const b: Unrestricted = 1; //// [/src/webpack/tsconfig.json] -{"extends":"../shared/tsconfig-base.json","compilerOptions":{"composite":true,"outDir":"../target-tsc-build/","rootDir":".."},"files":["./index.ts"],"references":[{"path":"../shared/tsconfig.json"}]} +{ + "extends": "../shared/tsconfig-base.json", + "compilerOptions": { + "composite": true, + "outDir": "../target-tsc-build/", + "rootDir": ".." + }, + "files": [ + "./index.ts" + ], + "references": [ + { + "path": "../shared/tsconfig.json" + } + ] +} diff --git a/tests/baselines/reference/tsbuild/configFileExtends/when-building-solution-with-projects-extends-config-with-include.js b/tests/baselines/reference/tsbuild/configFileExtends/when-building-solution-with-projects-extends-config-with-include.js index 359f7a88d67a5..8680e1055b520 100644 --- a/tests/baselines/reference/tsbuild/configFileExtends/when-building-solution-with-projects-extends-config-with-include.js +++ b/tests/baselines/reference/tsbuild/configFileExtends/when-building-solution-with-projects-extends-config-with-include.js @@ -19,22 +19,61 @@ declare const console: { log(msg: any): void; }; export const a: Unrestricted = 1; //// [/src/shared/tsconfig-base.json] -{"include":["./typings-base/"]} +{ + "include": [ + "./typings-base/" + ] +} //// [/src/shared/tsconfig.json] -{"extends":"./tsconfig-base.json","compilerOptions":{"composite":true,"outDir":"../target-tsc-build/","rootDir":".."},"files":["./index.ts"]} +{ + "extends": "./tsconfig-base.json", + "compilerOptions": { + "composite": true, + "outDir": "../target-tsc-build/", + "rootDir": ".." + }, + "files": [ + "./index.ts" + ] +} //// [/src/shared/typings-base/globals.d.ts] type Unrestricted = any; //// [/src/tsconfig.json] -{"references":[{"path":"./shared/tsconfig.json"},{"path":"./webpack/tsconfig.json"}],"files":[]} +{ + "references": [ + { + "path": "./shared/tsconfig.json" + }, + { + "path": "./webpack/tsconfig.json" + } + ], + "files": [] +} //// [/src/webpack/index.ts] export const b: Unrestricted = 1; //// [/src/webpack/tsconfig.json] -{"extends":"../shared/tsconfig-base.json","compilerOptions":{"composite":true,"outDir":"../target-tsc-build/","rootDir":".."},"files":["./index.ts"],"references":[{"path":"../shared/tsconfig.json"}]} +{ + "extends": "../shared/tsconfig-base.json", + "compilerOptions": { + "composite": true, + "outDir": "../target-tsc-build/", + "rootDir": ".." + }, + "files": [ + "./index.ts" + ], + "references": [ + { + "path": "../shared/tsconfig.json" + } + ] +} diff --git a/tests/baselines/reference/tsbuild/containerOnlyReferenced/verify-that-subsequent-builds-after-initial-build-doesnt-build-anything.js b/tests/baselines/reference/tsbuild/containerOnlyReferenced/verify-that-subsequent-builds-after-initial-build-doesnt-build-anything.js index 727acb686cc7f..60bbac3aa96c9 100644 --- a/tests/baselines/reference/tsbuild/containerOnlyReferenced/verify-that-subsequent-builds-after-initial-build-doesnt-build-anything.js +++ b/tests/baselines/reference/tsbuild/containerOnlyReferenced/verify-that-subsequent-builds-after-initial-build-doesnt-build-anything.js @@ -19,84 +19,100 @@ declare const console: { log(msg: any): void; }; export const x = 10; //// [/src/src/folder/tsconfig.json] -{ - "files": ["index.ts"], - "compilerOptions": { - "composite": true - } +{ + "files": [ + "index.ts" + ], + "compilerOptions": { + "composite": true + } } //// [/src/src/folder2/index.ts] export const x = 10; //// [/src/src/folder2/tsconfig.json] -{ - "files": ["index.ts"], - "compilerOptions": { - "composite": true - } +{ + "files": [ + "index.ts" + ], + "compilerOptions": { + "composite": true + } } //// [/src/src/tsconfig.json] -{ - "files": [], - "compilerOptions": { - "composite": true - }, - "references": [ - { "path": "./folder" }, - { "path": "./folder2"} - ] - } +{ + "files": [], + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "./folder" + }, + { + "path": "./folder2" + } + ] +} //// [/src/tests/index.ts] export const x = 10; //// [/src/tests/tsconfig.json] -{ - "files": ["index.ts"], - "compilerOptions": { - "composite": true - }, - "references": [ - { "path": "../src" } - ] +{ + "files": [ + "index.ts" + ], + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../src" + } + ] } //// [/src/tsconfig.json] -{ - "files": [], - "compilerOptions": { - "composite": true - }, - "references": [ - { "path": "./src" }, - { "path": "./tests"} - ] +{ + "files": [], + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "./src" + }, + { + "path": "./tests" + } + ] } Output:: /lib/tsc --b /src --verbose -[12:00:06 AM] Projects in this build: +[12:00:18 AM] Projects in this build: * src/src/folder/tsconfig.json * src/src/folder2/tsconfig.json * src/src/tsconfig.json * src/tests/tsconfig.json * src/tsconfig.json -[12:00:07 AM] Project 'src/src/folder/tsconfig.json' is out of date because output file 'src/src/folder/tsconfig.tsbuildinfo' does not exist +[12:00:19 AM] Project 'src/src/folder/tsconfig.json' is out of date because output file 'src/src/folder/tsconfig.tsbuildinfo' does not exist -[12:00:08 AM] Building project '/src/src/folder/tsconfig.json'... +[12:00:20 AM] Building project '/src/src/folder/tsconfig.json'... -[12:00:14 AM] Project 'src/src/folder2/tsconfig.json' is out of date because output file 'src/src/folder2/tsconfig.tsbuildinfo' does not exist +[12:00:26 AM] Project 'src/src/folder2/tsconfig.json' is out of date because output file 'src/src/folder2/tsconfig.tsbuildinfo' does not exist -[12:00:15 AM] Building project '/src/src/folder2/tsconfig.json'... +[12:00:27 AM] Building project '/src/src/folder2/tsconfig.json'... -[12:00:21 AM] Project 'src/tests/tsconfig.json' is out of date because output file 'src/tests/tsconfig.tsbuildinfo' does not exist +[12:00:33 AM] Project 'src/tests/tsconfig.json' is out of date because output file 'src/tests/tsconfig.tsbuildinfo' does not exist -[12:00:22 AM] Building project '/src/tests/tsconfig.json'... +[12:00:34 AM] Building project '/src/tests/tsconfig.json'... exitCode:: ExitStatus.Success @@ -292,18 +308,18 @@ Input:: Output:: /lib/tsc --b /src --verbose -[12:00:28 AM] Projects in this build: +[12:00:40 AM] Projects in this build: * src/src/folder/tsconfig.json * src/src/folder2/tsconfig.json * src/src/tsconfig.json * src/tests/tsconfig.json * src/tsconfig.json -[12:00:29 AM] Project 'src/src/folder/tsconfig.json' is up to date because newest input 'src/src/folder/index.ts' is older than output 'src/src/folder/tsconfig.tsbuildinfo' +[12:00:41 AM] Project 'src/src/folder/tsconfig.json' is up to date because newest input 'src/src/folder/index.ts' is older than output 'src/src/folder/tsconfig.tsbuildinfo' -[12:00:30 AM] Project 'src/src/folder2/tsconfig.json' is up to date because newest input 'src/src/folder2/index.ts' is older than output 'src/src/folder2/tsconfig.tsbuildinfo' +[12:00:42 AM] Project 'src/src/folder2/tsconfig.json' is up to date because newest input 'src/src/folder2/index.ts' is older than output 'src/src/folder2/tsconfig.tsbuildinfo' -[12:00:31 AM] Project 'src/tests/tsconfig.json' is up to date because newest input 'src/tests/index.ts' is older than output 'src/tests/tsconfig.tsbuildinfo' +[12:00:43 AM] Project 'src/tests/tsconfig.json' is up to date because newest input 'src/tests/index.ts' is older than output 'src/tests/tsconfig.tsbuildinfo' exitCode:: ExitStatus.Success diff --git a/tests/baselines/reference/tsbuild/containerOnlyReferenced/when-solution-is-referenced-indirectly.js b/tests/baselines/reference/tsbuild/containerOnlyReferenced/when-solution-is-referenced-indirectly.js index 4b2d3b0c8a207..89b0b031bf5c7 100644 --- a/tests/baselines/reference/tsbuild/containerOnlyReferenced/when-solution-is-referenced-indirectly.js +++ b/tests/baselines/reference/tsbuild/containerOnlyReferenced/when-solution-is-referenced-indirectly.js @@ -16,25 +16,56 @@ interface ReadonlyArray {} declare const console: { log(msg: any): void; }; //// [/src/project1/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[]} +{ + "compilerOptions": { + "composite": true + }, + "references": [] +} //// [/src/project2/src/b.ts] export const b = 10; //// [/src/project2/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[]} +{ + "compilerOptions": { + "composite": true + }, + "references": [] +} //// [/src/project3/src/c.ts] export const c = 10; //// [/src/project3/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[{"path":"../project1"},{"path":"../project2"}]} +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../project1" + }, + { + "path": "../project2" + } + ] +} //// [/src/project4/src/d.ts] export const d = 10; //// [/src/project4/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[{"path":"../project3"}]} +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../project3" + } + ] +} diff --git a/tests/baselines/reference/tsbuild/declarationEmit/when-declaration-file-is-referenced-through-triple-slash-but-uses-no-references.js b/tests/baselines/reference/tsbuild/declarationEmit/when-declaration-file-is-referenced-through-triple-slash-but-uses-no-references.js index d7bee00a388c4..60e45f272da79 100644 --- a/tests/baselines/reference/tsbuild/declarationEmit/when-declaration-file-is-referenced-through-triple-slash-but-uses-no-references.js +++ b/tests/baselines/reference/tsbuild/declarationEmit/when-declaration-file-is-referenced-through-triple-slash-but-uses-no-references.js @@ -20,7 +20,15 @@ declare const console: { log(msg: any): void; }; export declare type Nominal = MyNominal; //// [/src/solution/src/common/tsconfig.json] -{"extends":"../../tsconfig.base.json","compilerOptions":{"composite":true},"include":["./nominal.ts"]} +{ + "extends": "../../tsconfig.base.json", + "compilerOptions": { + "composite": true + }, + "include": [ + "./nominal.ts" + ] +} //// [/src/solution/src/common/types.d.ts] declare type MyNominal = T & { @@ -32,7 +40,20 @@ import { Nominal } from '../common/nominal'; export type MyNominal = Nominal; //// [/src/solution/src/subProject/tsconfig.json] -{"extends":"../../tsconfig.base.json","compilerOptions":{"composite":true},"references":[{"path":"../common"}],"include":["./index.ts"]} +{ + "extends": "../../tsconfig.base.json", + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../common" + } + ], + "include": [ + "./index.ts" + ] +} //// [/src/solution/src/subProject2/index.ts] import { MyNominal } from '../subProject/index'; @@ -44,16 +65,55 @@ export function getVar(): keyof typeof variable { } //// [/src/solution/src/subProject2/tsconfig.json] -{"extends":"../../tsconfig.base.json","compilerOptions":{"composite":true},"references":[{"path":"../subProject"}],"include":["./index.ts"]} +{ + "extends": "../../tsconfig.base.json", + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../subProject" + } + ], + "include": [ + "./index.ts" + ] +} //// [/src/solution/src/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[{"path":"./subProject"},{"path":"./subProject2"}],"include":[]} +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "./subProject" + }, + { + "path": "./subProject2" + } + ], + "include": [] +} //// [/src/solution/tsconfig.base.json] -{"compilerOptions":{"rootDir":"./","outDir":"lib"}} +{ + "compilerOptions": { + "rootDir": "./", + "outDir": "lib" + } +} //// [/src/solution/tsconfig.json] -{"extends":"./tsconfig.base.json","compilerOptions":{"composite":true},"include":["./src/**/*.ts"]} +{ + "extends": "./tsconfig.base.json", + "compilerOptions": { + "composite": true + }, + "include": [ + "./src/**/*.ts" + ] +} diff --git a/tests/baselines/reference/tsbuild/declarationEmit/when-declaration-file-is-referenced-through-triple-slash.js b/tests/baselines/reference/tsbuild/declarationEmit/when-declaration-file-is-referenced-through-triple-slash.js index caf86d4296242..e60b61ed83659 100644 --- a/tests/baselines/reference/tsbuild/declarationEmit/when-declaration-file-is-referenced-through-triple-slash.js +++ b/tests/baselines/reference/tsbuild/declarationEmit/when-declaration-file-is-referenced-through-triple-slash.js @@ -20,7 +20,15 @@ declare const console: { log(msg: any): void; }; export declare type Nominal = MyNominal; //// [/src/solution/src/common/tsconfig.json] -{"extends":"../../tsconfig.base.json","compilerOptions":{"composite":true},"include":["./nominal.ts"]} +{ + "extends": "../../tsconfig.base.json", + "compilerOptions": { + "composite": true + }, + "include": [ + "./nominal.ts" + ] +} //// [/src/solution/src/common/types.d.ts] declare type MyNominal = T & { @@ -32,7 +40,20 @@ import { Nominal } from '../common/nominal'; export type MyNominal = Nominal; //// [/src/solution/src/subProject/tsconfig.json] -{"extends":"../../tsconfig.base.json","compilerOptions":{"composite":true},"references":[{"path":"../common"}],"include":["./index.ts"]} +{ + "extends": "../../tsconfig.base.json", + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../common" + } + ], + "include": [ + "./index.ts" + ] +} //// [/src/solution/src/subProject2/index.ts] import { MyNominal } from '../subProject/index'; @@ -44,16 +65,57 @@ export function getVar(): keyof typeof variable { } //// [/src/solution/src/subProject2/tsconfig.json] -{"extends":"../../tsconfig.base.json","compilerOptions":{"composite":true},"references":[{"path":"../subProject"}],"include":["./index.ts"]} +{ + "extends": "../../tsconfig.base.json", + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../subProject" + } + ], + "include": [ + "./index.ts" + ] +} //// [/src/solution/src/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[{"path":"./subProject"},{"path":"./subProject2"}],"include":[]} +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "./subProject" + }, + { + "path": "./subProject2" + } + ], + "include": [] +} //// [/src/solution/tsconfig.base.json] -{"compilerOptions":{"rootDir":"./","outDir":"lib"}} +{ + "compilerOptions": { + "rootDir": "./", + "outDir": "lib" + } +} //// [/src/solution/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[{"path":"./src"}],"include":[]} +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "./src" + } + ], + "include": [] +} diff --git a/tests/baselines/reference/tsbuild/declarationEmit/when-declaration-file-used-inferred-type-from-referenced-project.js b/tests/baselines/reference/tsbuild/declarationEmit/when-declaration-file-used-inferred-type-from-referenced-project.js index e214b528fe605..64f0c94fe3b62 100644 --- a/tests/baselines/reference/tsbuild/declarationEmit/when-declaration-file-used-inferred-type-from-referenced-project.js +++ b/tests/baselines/reference/tsbuild/declarationEmit/when-declaration-file-used-inferred-type-from-referenced-project.js @@ -24,7 +24,15 @@ export interface IThings { } //// [/src/packages/pkg1/tsconfig.json] -{"extends":"../../tsconfig","compilerOptions":{"outDir":"lib"},"include":["src"]} +{ + "extends": "../../tsconfig", + "compilerOptions": { + "outDir": "lib" + }, + "include": [ + "src" + ] +} //// [/src/packages/pkg2/src/index.ts] import { IThings } from '@fluentui/pkg1'; @@ -34,10 +42,33 @@ export function fn4() { } //// [/src/packages/pkg2/tsconfig.json] -{"extends":"../../tsconfig","compilerOptions":{"outDir":"lib"},"include":["src"],"references":[{"path":"../pkg1"}]} +{ + "extends": "../../tsconfig", + "compilerOptions": { + "outDir": "lib" + }, + "include": [ + "src" + ], + "references": [ + { + "path": "../pkg1" + } + ] +} //// [/src/tsconfig.json] -{"compilerOptions":{"composite":true,"baseUrl":".","paths":{"@fluentui/*":["packages/*/src"]}}} +{ + "compilerOptions": { + "composite": true, + "baseUrl": ".", + "paths": { + "@fluentui/*": [ + "packages/*/src" + ] + } + } +} diff --git a/tests/baselines/reference/tsbuild/demo/in-bad-ref-branch-reports-the-error-about-files-not-in-rootDir-at-the-import-location.js b/tests/baselines/reference/tsbuild/demo/in-bad-ref-branch-reports-the-error-about-files-not-in-rootDir-at-the-import-location.js index 0f641d5f38687..40d707aca4f5a 100644 --- a/tests/baselines/reference/tsbuild/demo/in-bad-ref-branch-reports-the-error-about-files-not-in-rootDir-at-the-import-location.js +++ b/tests/baselines/reference/tsbuild/demo/in-bad-ref-branch-reports-the-error-about-files-not-in-rootDir-at-the-import-location.js @@ -1,6 +1,6 @@ -currentDirectory:: / useCaseSensitiveFileNames: false +currentDirectory:: /user/username/projects/demo useCaseSensitiveFileNames: false Input:: -//// [/lib/lib.d.ts] +//// [/a/lib/lib.d.ts] /// interface Boolean {} interface Function {} @@ -15,206 +15,203 @@ interface Array { length: number; [n: number]: T; } interface ReadonlyArray {} declare const console: { log(msg: any): void; }; -//// [/src/animals/animal.ts] -export type Size = "small" | "medium" | "large"; -export default interface Animal { - size: Size; -} - - -//// [/src/animals/dog.ts] -import Animal from '.'; -import { makeRandomName } from '../core/utilities'; - -export interface Dog extends Animal { - woof(): void; - name: string; -} - -export function createDog(): Dog { - return ({ - size: "medium", - woof: function(this: Dog) { - console.log(`${this.name} says "Woof"!`); - }, - name: makeRandomName() - }); -} +//// [/user/username/projects/demo/animals/animal.ts] +export type Size = "small" | "medium" | "large"; +export default interface Animal { + size: Size; +} +//// [/user/username/projects/demo/animals/dog.ts] +import Animal from '.'; +import { makeRandomName } from '../core/utilities'; + +export interface Dog extends Animal { + woof(): void; + name: string; +} + +export function createDog(): Dog { + return ({ + size: "medium", + woof: function(this: Dog) { + console.log(`${ this.name } says "Woof"!`); + }, + name: makeRandomName() + }); +} -//// [/src/animals/index.ts] -import Animal from './animal'; -export default Animal; -import { createDog, Dog } from './dog'; -export { createDog, Dog }; +//// [/user/username/projects/demo/animals/index.ts] +import Animal from './animal'; + +export default Animal; +import { createDog, Dog } from './dog'; +export { createDog, Dog }; -//// [/src/animals/tsconfig.json] -{ - "extends": "../tsconfig-base.json", - "compilerOptions": { - "outDir": "../lib/animals", - "rootDir": ".", - }, - "references": [ - { "path": "../core" } - ] +//// [/user/username/projects/demo/animals/tsconfig.json] +{ + "extends": "../tsconfig-base.json", + "compilerOptions": { + "outDir": "../lib/animals", + "rootDir": "." + }, + "references": [ + { + "path": "../core" + } + ] } - -//// [/src/core/tsconfig.json] -{ - "extends": "../tsconfig-base.json", - "compilerOptions": { - "outDir": "../lib/core", - "rootDir": "." - } +//// [/user/username/projects/demo/core/tsconfig.json] +{ + "extends": "../tsconfig-base.json", + "compilerOptions": { + "outDir": "../lib/core", + "rootDir": "." + } } -//// [/src/core/utilities.ts] +//// [/user/username/projects/demo/core/utilities.ts] import * as A from '../animals'; +export function makeRandomName() { + return "Bob!?! "; +} + +export function lastElementOf(arr: T[]): T | undefined { + if (arr.length === 0) return undefined; + return arr[arr.length - 1]; +} -export function makeRandomName() { - return "Bob!?! "; -} - -export function lastElementOf(arr: T[]): T | undefined { - if (arr.length === 0) return undefined; - return arr[arr.length - 1]; -} - - - -//// [/src/tsconfig-base.json] -{ - "compilerOptions": { - "declaration": true, - "target": "es5", - "module": "commonjs", - "strict": true, - "noUnusedLocals": true, - "noUnusedParameters": true, - "noImplicitReturns": true, - "noFallthroughCasesInSwitch": true, - "composite": true - } -} -//// [/src/tsconfig.json] -{ - "files": [], - "references": [ - { - "path": "./core" - }, - { - "path": "./animals" - }, - { - "path": "./zoo" - } - ] +//// [/user/username/projects/demo/tsconfig-base.json] +{ + "compilerOptions": { + "declaration": true, + "target": "es5", + "module": "commonjs", + "strict": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "noImplicitReturns": true, + "noFallthroughCasesInSwitch": true, + "composite": true + } } -//// [/src/zoo/tsconfig.json] -{ - "extends": "../tsconfig-base.json", - "compilerOptions": { - "outDir": "../lib/zoo", - "rootDir": "." - }, - "references": [ - { - "path": "../animals" - } - ] +//// [/user/username/projects/demo/tsconfig.json] +{ + "files": [], + "references": [ + { + "path": "./core" + }, + { + "path": "./animals" + }, + { + "path": "./zoo" + } + ] } -//// [/src/zoo/zoo.ts] -import { Dog, createDog } from '../animals/index'; - -export function createZoo(): Array { - return [ - createDog() - ]; +//// [/user/username/projects/demo/zoo/tsconfig.json] +{ + "extends": "../tsconfig-base.json", + "compilerOptions": { + "outDir": "../lib/zoo", + "rootDir": "." + }, + "references": [ + { + "path": "../animals" + } + ] } +//// [/user/username/projects/demo/zoo/zoo.ts] +import { Dog, createDog } from '../animals/index'; + +export function createZoo(): Array { + return [ + createDog() + ]; +} Output:: -/lib/tsc --b /src/tsconfig.json --verbose -[12:00:07 AM] Projects in this build: - * src/core/tsconfig.json - * src/animals/tsconfig.json - * src/zoo/tsconfig.json - * src/tsconfig.json +/a/lib/tsc --b --verbose +[12:00:25 AM] Projects in this build: + * core/tsconfig.json + * animals/tsconfig.json + * zoo/tsconfig.json + * tsconfig.json -[12:00:08 AM] Project 'src/core/tsconfig.json' is out of date because output file 'src/lib/core/tsconfig.tsbuildinfo' does not exist +[12:00:26 AM] Project 'core/tsconfig.json' is out of date because output file 'lib/core/tsconfig.tsbuildinfo' does not exist -[12:00:09 AM] Building project '/src/core/tsconfig.json'... +[12:00:27 AM] Building project '/user/username/projects/demo/core/tsconfig.json'... -src/animals/index.ts:1:20 - error TS6059: File '/src/animals/animal.ts' is not under 'rootDir' '/src/core'. 'rootDir' is expected to contain all source files. +animals/index.ts:1:20 - error TS6059: File '/user/username/projects/demo/animals/animal.ts' is not under 'rootDir' '/user/username/projects/demo/core'. 'rootDir' is expected to contain all source files. 1 import Animal from './animal';    ~~~~~~~~~~ -src/animals/index.ts:1:20 - error TS6307: File '/src/animals/animal.ts' is not listed within the file list of project '/src/core/tsconfig.json'. Projects must list all files or use an 'include' pattern. +animals/index.ts:1:20 - error TS6307: File '/user/username/projects/demo/animals/animal.ts' is not listed within the file list of project '/user/username/projects/demo/core/tsconfig.json'. Projects must list all files or use an 'include' pattern. 1 import Animal from './animal';    ~~~~~~~~~~ -src/animals/index.ts:4:32 - error TS6059: File '/src/animals/dog.ts' is not under 'rootDir' '/src/core'. 'rootDir' is expected to contain all source files. +animals/index.ts:4:32 - error TS6059: File '/user/username/projects/demo/animals/dog.ts' is not under 'rootDir' '/user/username/projects/demo/core'. 'rootDir' is expected to contain all source files. 4 import { createDog, Dog } from './dog';    ~~~~~~~ -src/animals/index.ts:4:32 - error TS6307: File '/src/animals/dog.ts' is not listed within the file list of project '/src/core/tsconfig.json'. Projects must list all files or use an 'include' pattern. +animals/index.ts:4:32 - error TS6307: File '/user/username/projects/demo/animals/dog.ts' is not listed within the file list of project '/user/username/projects/demo/core/tsconfig.json'. Projects must list all files or use an 'include' pattern. 4 import { createDog, Dog } from './dog';    ~~~~~~~ -src/core/utilities.ts:1:1 - error TS6133: 'A' is declared but its value is never read. +core/utilities.ts:1:1 - error TS6133: 'A' is declared but its value is never read. 1 import * as A from '../animals';   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -src/core/utilities.ts:1:20 - error TS6059: File '/src/animals/index.ts' is not under 'rootDir' '/src/core'. 'rootDir' is expected to contain all source files. +core/utilities.ts:1:20 - error TS6059: File '/user/username/projects/demo/animals/index.ts' is not under 'rootDir' '/user/username/projects/demo/core'. 'rootDir' is expected to contain all source files. The file is in the program because: - Imported via '../animals' from file '/src/core/utilities.ts' - Imported via '.' from file '/src/animals/dog.ts' + Imported via '../animals' from file '/user/username/projects/demo/core/utilities.ts' + Imported via '.' from file '/user/username/projects/demo/animals/dog.ts' 1 import * as A from '../animals';    ~~~~~~~~~~~~ - src/animals/dog.ts:1:20 + animals/dog.ts:1:20 1 import Animal from '.';    ~~~ File is included via import here. -src/core/utilities.ts:1:20 - error TS6307: File '/src/animals/index.ts' is not listed within the file list of project '/src/core/tsconfig.json'. Projects must list all files or use an 'include' pattern. +core/utilities.ts:1:20 - error TS6307: File '/user/username/projects/demo/animals/index.ts' is not listed within the file list of project '/user/username/projects/demo/core/tsconfig.json'. Projects must list all files or use an 'include' pattern. The file is in the program because: - Imported via '../animals' from file '/src/core/utilities.ts' - Imported via '.' from file '/src/animals/dog.ts' + Imported via '../animals' from file '/user/username/projects/demo/core/utilities.ts' + Imported via '.' from file '/user/username/projects/demo/animals/dog.ts' 1 import * as A from '../animals';    ~~~~~~~~~~~~ - src/animals/dog.ts:1:20 + animals/dog.ts:1:20 1 import Animal from '.';    ~~~ File is included via import here. -[12:00:15 AM] Project 'src/animals/tsconfig.json' can't be built because its dependency 'src/core' has errors +[12:00:33 AM] Project 'animals/tsconfig.json' can't be built because its dependency 'core' has errors -[12:00:16 AM] Skipping build of project '/src/animals/tsconfig.json' because its dependency '/src/core' has errors +[12:00:34 AM] Skipping build of project '/user/username/projects/demo/animals/tsconfig.json' because its dependency '/user/username/projects/demo/core' has errors -[12:00:17 AM] Project 'src/zoo/tsconfig.json' can't be built because its dependency 'src/animals' was not built +[12:00:35 AM] Project 'zoo/tsconfig.json' can't be built because its dependency 'animals' was not built -[12:00:18 AM] Skipping build of project '/src/zoo/tsconfig.json' because its dependency '/src/animals' was not built +[12:00:36 AM] Skipping build of project '/user/username/projects/demo/zoo/tsconfig.json' because its dependency '/user/username/projects/demo/animals' was not built Found 7 errors. @@ -222,14 +219,14 @@ Found 7 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -//// [/src/lib/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../lib/lib.d.ts","../../animals/animal.ts","../../animals/dog.ts","../../animals/index.ts","../../core/utilities.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-14984181202-export type Size = \"small\" | \"medium\" | \"large\";\r\nexport default interface Animal {\r\n size: Size;\r\n}\r\n","-10991948013-import Animal from '.';\r\nimport { makeRandomName } from '../core/utilities';\r\n\r\nexport interface Dog extends Animal {\r\n woof(): void;\r\n name: string;\r\n}\r\n\r\nexport function createDog(): Dog {\r\n return ({\r\n size: \"medium\",\r\n woof: function(this: Dog) {\r\n console.log(`${this.name} says \"Woof\"!`);\r\n },\r\n name: makeRandomName()\r\n });\r\n}\r\n\r\n","-5382672599-import Animal from './animal';\r\n\r\nexport default Animal;\r\nimport { createDog, Dog } from './dog';\r\nexport { createDog, Dog };\r\n","-15713992787-import * as A from '../animals';\n\r\nexport function makeRandomName() {\r\n return \"Bob!?! \";\r\n}\r\n\r\nexport function lastElementOf(arr: T[]): T | undefined {\r\n if (arr.length === 0) return undefined;\r\n return arr[arr.length - 1];\r\n}\r\n\r\n"],"root":[5],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../core","strict":true,"target":1},"fileIdsList":[[4,5],[2,3],[4]],"referencedMap":[[3,1],[4,2],[5,3]],"exportedModulesMap":[[3,1],[4,2],[5,3]],"semanticDiagnosticsPerFile":[1,2,3,4,[5,[{"file":"../../core/utilities.ts","start":0,"length":32,"messageText":"'A' is declared but its value is never read.","category":1,"code":6133,"reportsUnnecessary":true}]]],"affectedFilesPendingEmit":[2,3,4,5],"emitSignatures":[2,3,4,5]},"version":"FakeTSVersion"} +//// [/user/username/projects/demo/lib/core/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../animals/animal.ts","../../animals/dog.ts","../../animals/index.ts","../../core/utilities.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n","-18870194049-import Animal from '.';\nimport { makeRandomName } from '../core/utilities';\n\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\n\nexport function createDog(): Dog {\n return ({\n size: \"medium\",\n woof: function(this: Dog) {\n console.log(`${ this.name } says \"Woof\"!`);\n },\n name: makeRandomName()\n });\n}\n","-7220553464-import Animal from './animal';\n\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n","-22163106409-import * as A from '../animals';\nexport function makeRandomName() {\n return \"Bob!?! \";\n}\n\nexport function lastElementOf(arr: T[]): T | undefined {\n if (arr.length === 0) return undefined;\n return arr[arr.length - 1];\n}\n"],"root":[5],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../core","strict":true,"target":1},"fileIdsList":[[4,5],[2,3],[4]],"referencedMap":[[3,1],[4,2],[5,3]],"exportedModulesMap":[[3,1],[4,2],[5,3]],"semanticDiagnosticsPerFile":[1,2,3,4,[5,[{"file":"../../core/utilities.ts","start":0,"length":32,"messageText":"'A' is declared but its value is never read.","category":1,"code":6133,"reportsUnnecessary":true}]]],"affectedFilesPendingEmit":[2,3,4,5],"emitSignatures":[2,3,4,5]},"version":"FakeTSVersion"} -//// [/src/lib/core/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/demo/lib/core/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../../lib/lib.d.ts", + "../../../../../../a/lib/lib.d.ts", "../../animals/animal.ts", "../../animals/dog.ts", "../../animals/index.ts", @@ -249,7 +246,7 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped ] ], "fileInfos": { - "../../../lib/lib.d.ts": { + "../../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -259,20 +256,20 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped "affectsGlobalScope": true }, "../../animals/animal.ts": { - "version": "-14984181202-export type Size = \"small\" | \"medium\" | \"large\";\r\nexport default interface Animal {\r\n size: Size;\r\n}\r\n", - "signature": "-14984181202-export type Size = \"small\" | \"medium\" | \"large\";\r\nexport default interface Animal {\r\n size: Size;\r\n}\r\n" + "version": "-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n", + "signature": "-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n" }, "../../animals/dog.ts": { - "version": "-10991948013-import Animal from '.';\r\nimport { makeRandomName } from '../core/utilities';\r\n\r\nexport interface Dog extends Animal {\r\n woof(): void;\r\n name: string;\r\n}\r\n\r\nexport function createDog(): Dog {\r\n return ({\r\n size: \"medium\",\r\n woof: function(this: Dog) {\r\n console.log(`${this.name} says \"Woof\"!`);\r\n },\r\n name: makeRandomName()\r\n });\r\n}\r\n\r\n", - "signature": "-10991948013-import Animal from '.';\r\nimport { makeRandomName } from '../core/utilities';\r\n\r\nexport interface Dog extends Animal {\r\n woof(): void;\r\n name: string;\r\n}\r\n\r\nexport function createDog(): Dog {\r\n return ({\r\n size: \"medium\",\r\n woof: function(this: Dog) {\r\n console.log(`${this.name} says \"Woof\"!`);\r\n },\r\n name: makeRandomName()\r\n });\r\n}\r\n\r\n" + "version": "-18870194049-import Animal from '.';\nimport { makeRandomName } from '../core/utilities';\n\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\n\nexport function createDog(): Dog {\n return ({\n size: \"medium\",\n woof: function(this: Dog) {\n console.log(`${ this.name } says \"Woof\"!`);\n },\n name: makeRandomName()\n });\n}\n", + "signature": "-18870194049-import Animal from '.';\nimport { makeRandomName } from '../core/utilities';\n\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\n\nexport function createDog(): Dog {\n return ({\n size: \"medium\",\n woof: function(this: Dog) {\n console.log(`${ this.name } says \"Woof\"!`);\n },\n name: makeRandomName()\n });\n}\n" }, "../../animals/index.ts": { - "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": "-5382672599-import Animal from './animal';\r\n\r\nexport default Animal;\r\nimport { createDog, Dog } from './dog';\r\nexport { createDog, Dog };\r\n" + "version": "-7220553464-import Animal from './animal';\n\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n", + "signature": "-7220553464-import Animal from './animal';\n\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n" }, "../../core/utilities.ts": { - "version": "-15713992787-import * as A from '../animals';\n\r\nexport function makeRandomName() {\r\n return \"Bob!?! \";\r\n}\r\n\r\nexport function lastElementOf(arr: T[]): T | undefined {\r\n if (arr.length === 0) return undefined;\r\n return arr[arr.length - 1];\r\n}\r\n\r\n", - "signature": "-15713992787-import * as A from '../animals';\n\r\nexport function makeRandomName() {\r\n return \"Bob!?! \";\r\n}\r\n\r\nexport function lastElementOf(arr: T[]): T | undefined {\r\n if (arr.length === 0) return undefined;\r\n return arr[arr.length - 1];\r\n}\r\n\r\n" + "version": "-22163106409-import * as A from '../animals';\nexport function makeRandomName() {\n return \"Bob!?! \";\n}\n\nexport function lastElementOf(arr: T[]): T | undefined {\n if (arr.length === 0) return undefined;\n return arr[arr.length - 1];\n}\n", + "signature": "-22163106409-import * as A from '../animals';\nexport function makeRandomName() {\n return \"Bob!?! \";\n}\n\nexport function lastElementOf(arr: T[]): T | undefined {\n if (arr.length === 0) return undefined;\n return arr[arr.length - 1];\n}\n" } }, "root": [ @@ -321,7 +318,7 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped ] }, "semanticDiagnosticsPerFile": [ - "../../../lib/lib.d.ts", + "../../../../../../a/lib/lib.d.ts", "../../animals/animal.ts", "../../animals/dog.ts", "../../animals/index.ts", @@ -366,6 +363,6 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped ] }, "version": "FakeTSVersion", - "size": 2309 + "size": 2241 } diff --git a/tests/baselines/reference/tsbuild/demo/in-circular-branch-reports-the-error-about-it-by-stopping-build.js b/tests/baselines/reference/tsbuild/demo/in-circular-branch-reports-the-error-about-it-by-stopping-build.js index 5a02e5def34c7..07dd78f905f4e 100644 --- a/tests/baselines/reference/tsbuild/demo/in-circular-branch-reports-the-error-about-it-by-stopping-build.js +++ b/tests/baselines/reference/tsbuild/demo/in-circular-branch-reports-the-error-about-it-by-stopping-build.js @@ -1,6 +1,6 @@ -currentDirectory:: / useCaseSensitiveFileNames: false +currentDirectory:: /user/username/projects/demo useCaseSensitiveFileNames: false Input:: -//// [/lib/lib.d.ts] +//// [/a/lib/lib.d.ts] /// interface Boolean {} interface Function {} @@ -15,152 +15,149 @@ interface Array { length: number; [n: number]: T; } interface ReadonlyArray {} declare const console: { log(msg: any): void; }; -//// [/src/animals/animal.ts] -export type Size = "small" | "medium" | "large"; -export default interface Animal { - size: Size; -} - - -//// [/src/animals/dog.ts] -import Animal from '.'; -import { makeRandomName } from '../core/utilities'; - -export interface Dog extends Animal { - woof(): void; - name: string; -} - -export function createDog(): Dog { - return ({ - size: "medium", - woof: function(this: Dog) { - console.log(`${this.name} says "Woof"!`); - }, - name: makeRandomName() - }); -} - +//// [/user/username/projects/demo/animals/animal.ts] +export type Size = "small" | "medium" | "large"; +export default interface Animal { + size: Size; +} -//// [/src/animals/index.ts] -import Animal from './animal'; - -export default Animal; -import { createDog, Dog } from './dog'; -export { createDog, Dog }; +//// [/user/username/projects/demo/animals/dog.ts] +import Animal from '.'; +import { makeRandomName } from '../core/utilities'; + +export interface Dog extends Animal { + woof(): void; + name: string; +} + +export function createDog(): Dog { + return ({ + size: "medium", + woof: function(this: Dog) { + console.log(`${ this.name } says "Woof"!`); + }, + name: makeRandomName() + }); +} + + +//// [/user/username/projects/demo/animals/index.ts] +import Animal from './animal'; + +export default Animal; +import { createDog, Dog } from './dog'; +export { createDog, Dog }; -//// [/src/animals/tsconfig.json] -{ - "extends": "../tsconfig-base.json", - "compilerOptions": { - "outDir": "../lib/animals", - "rootDir": ".", - }, - "references": [ - { "path": "../core" } - ] +//// [/user/username/projects/demo/animals/tsconfig.json] +{ + "extends": "../tsconfig-base.json", + "compilerOptions": { + "outDir": "../lib/animals", + "rootDir": "." + }, + "references": [ + { + "path": "../core" + } + ] } - -//// [/src/core/tsconfig.json] -{ - "extends": "../tsconfig-base.json", - "compilerOptions": { - "outDir": "../lib/core", - "rootDir": "." +//// [/user/username/projects/demo/core/tsconfig.json] +{ + "extends": "../tsconfig-base.json", + "compilerOptions": { + "outDir": "../lib/core", + "rootDir": "." }, "references": [ { "path": "../zoo" } - ] -} - -//// [/src/core/utilities.ts] - -export function makeRandomName() { - return "Bob!?! "; -} - -export function lastElementOf(arr: T[]): T | undefined { - if (arr.length === 0) return undefined; - return arr[arr.length - 1]; -} - - - -//// [/src/tsconfig-base.json] -{ - "compilerOptions": { - "declaration": true, - "target": "es5", - "module": "commonjs", - "strict": true, - "noUnusedLocals": true, - "noUnusedParameters": true, - "noImplicitReturns": true, - "noFallthroughCasesInSwitch": true, - "composite": true - } + ] } -//// [/src/tsconfig.json] -{ - "files": [], - "references": [ - { - "path": "./core" - }, - { - "path": "./animals" - }, - { - "path": "./zoo" - } - ] +//// [/user/username/projects/demo/core/utilities.ts] +export function makeRandomName() { + return "Bob!?! "; +} + +export function lastElementOf(arr: T[]): T | undefined { + if (arr.length === 0) return undefined; + return arr[arr.length - 1]; +} + + +//// [/user/username/projects/demo/tsconfig-base.json] +{ + "compilerOptions": { + "declaration": true, + "target": "es5", + "module": "commonjs", + "strict": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "noImplicitReturns": true, + "noFallthroughCasesInSwitch": true, + "composite": true + } } -//// [/src/zoo/tsconfig.json] -{ - "extends": "../tsconfig-base.json", - "compilerOptions": { - "outDir": "../lib/zoo", - "rootDir": "." - }, - "references": [ - { - "path": "../animals" - } - ] +//// [/user/username/projects/demo/tsconfig.json] +{ + "files": [], + "references": [ + { + "path": "./core" + }, + { + "path": "./animals" + }, + { + "path": "./zoo" + } + ] } -//// [/src/zoo/zoo.ts] -import { Dog, createDog } from '../animals/index'; - -export function createZoo(): Array { - return [ - createDog() - ]; +//// [/user/username/projects/demo/zoo/tsconfig.json] +{ + "extends": "../tsconfig-base.json", + "compilerOptions": { + "outDir": "../lib/zoo", + "rootDir": "." + }, + "references": [ + { + "path": "../animals" + } + ] } +//// [/user/username/projects/demo/zoo/zoo.ts] +import { Dog, createDog } from '../animals/index'; + +export function createZoo(): Array { + return [ + createDog() + ]; +} Output:: -/lib/tsc --b /src/tsconfig.json --verbose -[12:00:07 AM] Projects in this build: - * src/animals/tsconfig.json - * src/zoo/tsconfig.json - * src/core/tsconfig.json - * src/tsconfig.json - -error TS6202: Project references may not form a circular graph. Cycle detected: /src/tsconfig.json -/src/core/tsconfig.json -/src/zoo/tsconfig.json -/src/animals/tsconfig.json +/a/lib/tsc --b --verbose +[12:00:25 AM] Projects in this build: + * animals/tsconfig.json + * zoo/tsconfig.json + * core/tsconfig.json + * tsconfig.json + +error TS6202: Project references may not form a circular graph. Cycle detected: /user/username/projects/demo/tsconfig.json +/user/username/projects/demo/core/tsconfig.json +/user/username/projects/demo/zoo/tsconfig.json +/user/username/projects/demo/animals/tsconfig.json Found 1 error. diff --git a/tests/baselines/reference/tsbuild/demo/in-master-branch-with-everything-setup-correctly-and-reports-no-error.js b/tests/baselines/reference/tsbuild/demo/in-master-branch-with-everything-setup-correctly-and-reports-no-error.js index 206fb47fd1528..4aa87bffc17bb 100644 --- a/tests/baselines/reference/tsbuild/demo/in-master-branch-with-everything-setup-correctly-and-reports-no-error.js +++ b/tests/baselines/reference/tsbuild/demo/in-master-branch-with-everything-setup-correctly-and-reports-no-error.js @@ -1,6 +1,6 @@ -currentDirectory:: / useCaseSensitiveFileNames: false +currentDirectory:: /user/username/projects/demo useCaseSensitiveFileNames: false Input:: -//// [/lib/lib.d.ts] +//// [/a/lib/lib.d.ts] /// interface Boolean {} interface Function {} @@ -15,171 +15,168 @@ interface Array { length: number; [n: number]: T; } interface ReadonlyArray {} declare const console: { log(msg: any): void; }; -//// [/src/animals/animal.ts] -export type Size = "small" | "medium" | "large"; -export default interface Animal { - size: Size; -} - - -//// [/src/animals/dog.ts] -import Animal from '.'; -import { makeRandomName } from '../core/utilities'; - -export interface Dog extends Animal { - woof(): void; - name: string; -} - -export function createDog(): Dog { - return ({ - size: "medium", - woof: function(this: Dog) { - console.log(`${this.name} says "Woof"!`); - }, - name: makeRandomName() - }); -} - - - -//// [/src/animals/index.ts] -import Animal from './animal'; - -export default Animal; -import { createDog, Dog } from './dog'; -export { createDog, Dog }; +//// [/user/username/projects/demo/animals/animal.ts] +export type Size = "small" | "medium" | "large"; +export default interface Animal { + size: Size; +} -//// [/src/animals/tsconfig.json] -{ - "extends": "../tsconfig-base.json", - "compilerOptions": { - "outDir": "../lib/animals", - "rootDir": ".", - }, - "references": [ - { "path": "../core" } - ] -} +//// [/user/username/projects/demo/animals/dog.ts] +import Animal from '.'; +import { makeRandomName } from '../core/utilities'; + +export interface Dog extends Animal { + woof(): void; + name: string; +} + +export function createDog(): Dog { + return ({ + size: "medium", + woof: function(this: Dog) { + console.log(`${ this.name } says "Woof"!`); + }, + name: makeRandomName() + }); +} -//// [/src/core/tsconfig.json] -{ - "extends": "../tsconfig-base.json", - "compilerOptions": { - "outDir": "../lib/core", - "rootDir": "." - } -} +//// [/user/username/projects/demo/animals/index.ts] +import Animal from './animal'; + +export default Animal; +import { createDog, Dog } from './dog'; +export { createDog, Dog }; -//// [/src/core/utilities.ts] -export function makeRandomName() { - return "Bob!?! "; +//// [/user/username/projects/demo/animals/tsconfig.json] +{ + "extends": "../tsconfig-base.json", + "compilerOptions": { + "outDir": "../lib/animals", + "rootDir": "." + }, + "references": [ + { + "path": "../core" + } + ] } -export function lastElementOf(arr: T[]): T | undefined { - if (arr.length === 0) return undefined; - return arr[arr.length - 1]; +//// [/user/username/projects/demo/core/tsconfig.json] +{ + "extends": "../tsconfig-base.json", + "compilerOptions": { + "outDir": "../lib/core", + "rootDir": "." + } } +//// [/user/username/projects/demo/core/utilities.ts] +export function makeRandomName() { + return "Bob!?! "; +} + +export function lastElementOf(arr: T[]): T | undefined { + if (arr.length === 0) return undefined; + return arr[arr.length - 1]; +} -//// [/src/tsconfig-base.json] -{ - "compilerOptions": { - "declaration": true, - "target": "es5", - "module": "commonjs", - "strict": true, - "noUnusedLocals": true, - "noUnusedParameters": true, - "noImplicitReturns": true, - "noFallthroughCasesInSwitch": true, - "composite": true - } -} - -//// [/src/tsconfig.json] -{ - "files": [], - "references": [ - { - "path": "./core" - }, - { - "path": "./animals" - }, - { - "path": "./zoo" - } - ] +//// [/user/username/projects/demo/tsconfig-base.json] +{ + "compilerOptions": { + "declaration": true, + "target": "es5", + "module": "commonjs", + "strict": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "noImplicitReturns": true, + "noFallthroughCasesInSwitch": true, + "composite": true + } } -//// [/src/zoo/tsconfig.json] -{ - "extends": "../tsconfig-base.json", - "compilerOptions": { - "outDir": "../lib/zoo", - "rootDir": "." - }, - "references": [ - { - "path": "../animals" - } - ] +//// [/user/username/projects/demo/tsconfig.json] +{ + "files": [], + "references": [ + { + "path": "./core" + }, + { + "path": "./animals" + }, + { + "path": "./zoo" + } + ] } -//// [/src/zoo/zoo.ts] -import { Dog, createDog } from '../animals/index'; - -export function createZoo(): Array { - return [ - createDog() - ]; +//// [/user/username/projects/demo/zoo/tsconfig.json] +{ + "extends": "../tsconfig-base.json", + "compilerOptions": { + "outDir": "../lib/zoo", + "rootDir": "." + }, + "references": [ + { + "path": "../animals" + } + ] } +//// [/user/username/projects/demo/zoo/zoo.ts] +import { Dog, createDog } from '../animals/index'; + +export function createZoo(): Array { + return [ + createDog() + ]; +} Output:: -/lib/tsc --b /src/tsconfig.json --verbose -[12:00:06 AM] Projects in this build: - * src/core/tsconfig.json - * src/animals/tsconfig.json - * src/zoo/tsconfig.json - * src/tsconfig.json +/a/lib/tsc --b --verbose +[12:00:24 AM] Projects in this build: + * core/tsconfig.json + * animals/tsconfig.json + * zoo/tsconfig.json + * tsconfig.json -[12:00:07 AM] Project 'src/core/tsconfig.json' is out of date because output file 'src/lib/core/tsconfig.tsbuildinfo' does not exist +[12:00:25 AM] Project 'core/tsconfig.json' is out of date because output file 'lib/core/tsconfig.tsbuildinfo' does not exist -[12:00:08 AM] Building project '/src/core/tsconfig.json'... +[12:00:26 AM] Building project '/user/username/projects/demo/core/tsconfig.json'... -[12:00:16 AM] Project 'src/animals/tsconfig.json' is out of date because output file 'src/lib/animals/tsconfig.tsbuildinfo' does not exist +[12:00:34 AM] Project 'animals/tsconfig.json' is out of date because output file 'lib/animals/tsconfig.tsbuildinfo' does not exist -[12:00:17 AM] Building project '/src/animals/tsconfig.json'... +[12:00:35 AM] Building project '/user/username/projects/demo/animals/tsconfig.json'... -[12:00:28 AM] Project 'src/zoo/tsconfig.json' is out of date because output file 'src/lib/zoo/tsconfig.tsbuildinfo' does not exist +[12:00:46 AM] Project 'zoo/tsconfig.json' is out of date because output file 'lib/zoo/tsconfig.tsbuildinfo' does not exist -[12:00:29 AM] Building project '/src/zoo/tsconfig.json'... +[12:00:47 AM] Building project '/user/username/projects/demo/zoo/tsconfig.json'... exitCode:: ExitStatus.Success -//// [/src/lib/animals/animal.d.ts] +//// [/user/username/projects/demo/lib/animals/animal.d.ts] export type Size = "small" | "medium" | "large"; export default interface Animal { size: Size; } -//// [/src/lib/animals/animal.js] +//// [/user/username/projects/demo/lib/animals/animal.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -//// [/src/lib/animals/dog.d.ts] +//// [/user/username/projects/demo/lib/animals/dog.d.ts] import Animal from '.'; export interface Dog extends Animal { woof(): void; @@ -188,7 +185,7 @@ export interface Dog extends Animal { export declare function createDog(): Dog; -//// [/src/lib/animals/dog.js] +//// [/user/username/projects/demo/lib/animals/dog.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.createDog = void 0; @@ -205,14 +202,14 @@ function createDog() { exports.createDog = createDog; -//// [/src/lib/animals/index.d.ts] +//// [/user/username/projects/demo/lib/animals/index.d.ts] import Animal from './animal'; export default Animal; import { createDog, Dog } from './dog'; export { createDog, Dog }; -//// [/src/lib/animals/index.js] +//// [/user/username/projects/demo/lib/animals/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.createDog = void 0; @@ -220,14 +217,14 @@ var dog_1 = require("./dog"); Object.defineProperty(exports, "createDog", { enumerable: true, get: function () { return dog_1.createDog; } }); -//// [/src/lib/animals/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../lib/lib.d.ts","../../animals/animal.ts","../../animals/index.ts","../core/utilities.d.ts","../../animals/dog.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-14984181202-export type Size = \"small\" | \"medium\" | \"large\";\r\nexport default interface Animal {\r\n size: Size;\r\n}\r\n","signature":"-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n"},{"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"},"-11345568166-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n",{"version":"-10991948013-import Animal from '.';\r\nimport { makeRandomName } from '../core/utilities';\r\n\r\nexport interface Dog extends Animal {\r\n woof(): void;\r\n name: string;\r\n}\r\n\r\nexport function createDog(): Dog {\r\n return ({\r\n size: \"medium\",\r\n woof: function(this: Dog) {\r\n console.log(`${this.name} says \"Woof\"!`);\r\n },\r\n name: makeRandomName()\r\n });\r\n}\r\n\r\n","signature":"6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n"}],"root":[2,3,5],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../animals","strict":true,"target":1},"fileIdsList":[[3,4],[2,5],[3]],"referencedMap":[[5,1],[3,2]],"exportedModulesMap":[[5,3],[3,2]],"semanticDiagnosticsPerFile":[1,2,5,3,4],"latestChangedDtsFile":"./dog.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/demo/lib/animals/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../animals/animal.ts","../../animals/index.ts","../core/utilities.d.ts","../../animals/dog.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n",{"version":"-7220553464-import Animal from './animal';\n\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"},"-11345568166-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n",{"version":"-18870194049-import Animal from '.';\nimport { makeRandomName } from '../core/utilities';\n\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\n\nexport function createDog(): Dog {\n return ({\n size: \"medium\",\n woof: function(this: Dog) {\n console.log(`${ this.name } says \"Woof\"!`);\n },\n name: makeRandomName()\n });\n}\n","signature":"6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n"}],"root":[2,3,5],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../animals","strict":true,"target":1},"fileIdsList":[[3,4],[2,5],[3]],"referencedMap":[[5,1],[3,2]],"exportedModulesMap":[[5,3],[3,2]],"semanticDiagnosticsPerFile":[1,2,5,3,4],"latestChangedDtsFile":"./dog.d.ts"},"version":"FakeTSVersion"} -//// [/src/lib/animals/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/demo/lib/animals/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../../lib/lib.d.ts", + "../../../../../../a/lib/lib.d.ts", "../../animals/animal.ts", "../../animals/index.ts", "../core/utilities.d.ts", @@ -247,7 +244,7 @@ Object.defineProperty(exports, "createDog", { enumerable: true, get: function () ] ], "fileInfos": { - "../../../lib/lib.d.ts": { + "../../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -257,19 +254,15 @@ Object.defineProperty(exports, "createDog", { enumerable: true, get: function () "affectsGlobalScope": true }, "../../animals/animal.ts": { - "original": { - "version": "-14984181202-export type Size = \"small\" | \"medium\" | \"large\";\r\nexport default interface Animal {\r\n size: Size;\r\n}\r\n", - "signature": "-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n" - }, - "version": "-14984181202-export type Size = \"small\" | \"medium\" | \"large\";\r\nexport default interface Animal {\r\n size: Size;\r\n}\r\n", + "version": "-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n", "signature": "-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n" }, "../../animals/index.ts": { "original": { - "version": "-5382672599-import Animal from './animal';\r\n\r\nexport default Animal;\r\nimport { createDog, Dog } from './dog';\r\nexport { createDog, Dog };\r\n", + "version": "-7220553464-import Animal from './animal';\n\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" }, - "version": "-5382672599-import Animal from './animal';\r\n\r\nexport default Animal;\r\nimport { createDog, Dog } from './dog';\r\nexport { createDog, Dog };\r\n", + "version": "-7220553464-import Animal from './animal';\n\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" }, "../core/utilities.d.ts": { @@ -278,10 +271,10 @@ Object.defineProperty(exports, "createDog", { enumerable: true, get: function () }, "../../animals/dog.ts": { "original": { - "version": "-10991948013-import Animal from '.';\r\nimport { makeRandomName } from '../core/utilities';\r\n\r\nexport interface Dog extends Animal {\r\n woof(): void;\r\n name: string;\r\n}\r\n\r\nexport function createDog(): Dog {\r\n return ({\r\n size: \"medium\",\r\n woof: function(this: Dog) {\r\n console.log(`${this.name} says \"Woof\"!`);\r\n },\r\n name: makeRandomName()\r\n });\r\n}\r\n\r\n", + "version": "-18870194049-import Animal from '.';\nimport { makeRandomName } from '../core/utilities';\n\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\n\nexport function createDog(): Dog {\n return ({\n size: \"medium\",\n woof: function(this: Dog) {\n console.log(`${ this.name } says \"Woof\"!`);\n },\n name: makeRandomName()\n });\n}\n", "signature": "6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n" }, - "version": "-10991948013-import Animal from '.';\r\nimport { makeRandomName } from '../core/utilities';\r\n\r\nexport interface Dog extends Animal {\r\n woof(): void;\r\n name: string;\r\n}\r\n\r\nexport function createDog(): Dog {\r\n return ({\r\n size: \"medium\",\r\n woof: function(this: Dog) {\r\n console.log(`${this.name} says \"Woof\"!`);\r\n },\r\n name: makeRandomName()\r\n });\r\n}\r\n\r\n", + "version": "-18870194049-import Animal from '.';\nimport { makeRandomName } from '../core/utilities';\n\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\n\nexport function createDog(): Dog {\n return ({\n size: \"medium\",\n woof: function(this: Dog) {\n console.log(`${ this.name } says \"Woof\"!`);\n },\n name: makeRandomName()\n });\n}\n", "signature": "6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n" } }, @@ -332,7 +325,7 @@ Object.defineProperty(exports, "createDog", { enumerable: true, get: function () ] }, "semanticDiagnosticsPerFile": [ - "../../../lib/lib.d.ts", + "../../../../../../a/lib/lib.d.ts", "../../animals/animal.ts", "../../animals/dog.ts", "../../animals/index.ts", @@ -341,21 +334,21 @@ Object.defineProperty(exports, "createDog", { enumerable: true, get: function () "latestChangedDtsFile": "./dog.d.ts" }, "version": "FakeTSVersion", - "size": 2454 + "size": 2260 } -//// [/src/lib/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../lib/lib.d.ts","../../core/utilities.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"25274411612-\r\nexport function makeRandomName() {\r\n return \"Bob!?! \";\r\n}\r\n\r\nexport function lastElementOf(arr: T[]): T | undefined {\r\n if (arr.length === 0) return undefined;\r\n return arr[arr.length - 1];\r\n}\r\n\r\n","signature":"-11345568166-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n"}],"root":[2],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../core","strict":true,"target":1},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./utilities.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/demo/lib/core/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../core/utilities.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-6723567162-export function makeRandomName() {\n return \"Bob!?! \";\n}\n\nexport function lastElementOf(arr: T[]): T | undefined {\n if (arr.length === 0) return undefined;\n return arr[arr.length - 1];\n}\n","signature":"-11345568166-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n"}],"root":[2],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../core","strict":true,"target":1},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./utilities.d.ts"},"version":"FakeTSVersion"} -//// [/src/lib/core/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/demo/lib/core/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../../lib/lib.d.ts", + "../../../../../../a/lib/lib.d.ts", "../../core/utilities.ts" ], "fileInfos": { - "../../../lib/lib.d.ts": { + "../../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -366,10 +359,10 @@ Object.defineProperty(exports, "createDog", { enumerable: true, get: function () }, "../../core/utilities.ts": { "original": { - "version": "25274411612-\r\nexport function makeRandomName() {\r\n return \"Bob!?! \";\r\n}\r\n\r\nexport function lastElementOf(arr: T[]): T | undefined {\r\n if (arr.length === 0) return undefined;\r\n return arr[arr.length - 1];\r\n}\r\n\r\n", + "version": "-6723567162-export function makeRandomName() {\n return \"Bob!?! \";\n}\n\nexport function lastElementOf(arr: T[]): T | undefined {\n if (arr.length === 0) return undefined;\n return arr[arr.length - 1];\n}\n", "signature": "-11345568166-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n" }, - "version": "25274411612-\r\nexport function makeRandomName() {\r\n return \"Bob!?! \";\r\n}\r\n\r\nexport function lastElementOf(arr: T[]): T | undefined {\r\n if (arr.length === 0) return undefined;\r\n return arr[arr.length - 1];\r\n}\r\n\r\n", + "version": "-6723567162-export function makeRandomName() {\n return \"Bob!?! \";\n}\n\nexport function lastElementOf(arr: T[]): T | undefined {\n if (arr.length === 0) return undefined;\n return arr[arr.length - 1];\n}\n", "signature": "-11345568166-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n" } }, @@ -395,21 +388,21 @@ Object.defineProperty(exports, "createDog", { enumerable: true, get: function () "referencedMap": {}, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "../../../lib/lib.d.ts", + "../../../../../../a/lib/lib.d.ts", "../../core/utilities.ts" ], "latestChangedDtsFile": "./utilities.d.ts" }, "version": "FakeTSVersion", - "size": 1361 + "size": 1348 } -//// [/src/lib/core/utilities.d.ts] +//// [/user/username/projects/demo/lib/core/utilities.d.ts] export declare function makeRandomName(): string; export declare function lastElementOf(arr: T[]): T | undefined; -//// [/src/lib/core/utilities.js] +//// [/user/username/projects/demo/lib/core/utilities.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.lastElementOf = exports.makeRandomName = void 0; @@ -425,14 +418,14 @@ function lastElementOf(arr) { exports.lastElementOf = lastElementOf; -//// [/src/lib/zoo/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../lib/lib.d.ts","../animals/animal.d.ts","../animals/dog.d.ts","../animals/index.d.ts","../../zoo/zoo.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n","6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n","1096904574-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n",{"version":"8797123924-import { Dog, createDog } from '../animals/index';\r\n\r\nexport function createZoo(): Array {\r\n return [\r\n createDog()\r\n ];\r\n}\r\n\r\n","signature":"10305066551-import { Dog } from '../animals/index';\nexport declare function createZoo(): Array;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../zoo","strict":true,"target":1},"fileIdsList":[[4],[2,3]],"referencedMap":[[3,1],[4,2],[5,1]],"exportedModulesMap":[[3,1],[4,2],[5,1]],"semanticDiagnosticsPerFile":[1,2,3,4,5],"latestChangedDtsFile":"./zoo.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/demo/lib/zoo/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../animals/animal.d.ts","../animals/dog.d.ts","../animals/index.d.ts","../../zoo/zoo.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n","6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n","1096904574-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n",{"version":"13034796418-import { Dog, createDog } from '../animals/index';\n\nexport function createZoo(): Array {\n return [\n createDog()\n ];\n}\n","signature":"10305066551-import { Dog } from '../animals/index';\nexport declare function createZoo(): Array;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../zoo","strict":true,"target":1},"fileIdsList":[[4],[2,3]],"referencedMap":[[3,1],[4,2],[5,1]],"exportedModulesMap":[[3,1],[4,2],[5,1]],"semanticDiagnosticsPerFile":[1,2,3,4,5],"latestChangedDtsFile":"./zoo.d.ts"},"version":"FakeTSVersion"} -//// [/src/lib/zoo/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/demo/lib/zoo/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../../lib/lib.d.ts", + "../../../../../../a/lib/lib.d.ts", "../animals/animal.d.ts", "../animals/dog.d.ts", "../animals/index.d.ts", @@ -448,7 +441,7 @@ exports.lastElementOf = lastElementOf; ] ], "fileInfos": { - "../../../lib/lib.d.ts": { + "../../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -471,10 +464,10 @@ exports.lastElementOf = lastElementOf; }, "../../zoo/zoo.ts": { "original": { - "version": "8797123924-import { Dog, createDog } from '../animals/index';\r\n\r\nexport function createZoo(): Array {\r\n return [\r\n createDog()\r\n ];\r\n}\r\n\r\n", + "version": "13034796418-import { Dog, createDog } from '../animals/index';\n\nexport function createZoo(): Array {\n return [\n createDog()\n ];\n}\n", "signature": "10305066551-import { Dog } from '../animals/index';\nexport declare function createZoo(): Array;\n" }, - "version": "8797123924-import { Dog, createDog } from '../animals/index';\r\n\r\nexport function createZoo(): Array {\r\n return [\r\n createDog()\r\n ];\r\n}\r\n\r\n", + "version": "13034796418-import { Dog, createDog } from '../animals/index';\n\nexport function createZoo(): Array {\n return [\n createDog()\n ];\n}\n", "signature": "10305066551-import { Dog } from '../animals/index';\nexport declare function createZoo(): Array;\n" } }, @@ -522,7 +515,7 @@ exports.lastElementOf = lastElementOf; ] }, "semanticDiagnosticsPerFile": [ - "../../../lib/lib.d.ts", + "../../../../../../a/lib/lib.d.ts", "../animals/animal.d.ts", "../animals/dog.d.ts", "../animals/index.d.ts", @@ -531,15 +524,15 @@ exports.lastElementOf = lastElementOf; "latestChangedDtsFile": "./zoo.d.ts" }, "version": "FakeTSVersion", - "size": 1810 + "size": 1804 } -//// [/src/lib/zoo/zoo.d.ts] +//// [/user/username/projects/demo/lib/zoo/zoo.d.ts] import { Dog } from '../animals/index'; export declare function createZoo(): Array; -//// [/src/lib/zoo/zoo.js] +//// [/user/username/projects/demo/lib/zoo/zoo.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.createZoo = void 0; diff --git a/tests/baselines/reference/tsbuild/emitDeclarationOnly/only-dts-output-in-circular-import-project-with-emitDeclarationOnly-and-declarationMap.js b/tests/baselines/reference/tsbuild/emitDeclarationOnly/only-dts-output-in-circular-import-project-with-emitDeclarationOnly-and-declarationMap.js index 45db72b8fa93c..0b19e3d1fab0e 100644 --- a/tests/baselines/reference/tsbuild/emitDeclarationOnly/only-dts-output-in-circular-import-project-with-emitDeclarationOnly-and-declarationMap.js +++ b/tests/baselines/reference/tsbuild/emitDeclarationOnly/only-dts-output-in-circular-import-project-with-emitDeclarationOnly-and-declarationMap.js @@ -19,7 +19,7 @@ declare const console: { log(msg: any): void; }; import { B } from "./b"; export interface A { - b: B; + b: B; } @@ -27,7 +27,7 @@ export interface A { import { C } from "./c"; export interface B { - b: C; + b: C; } @@ -35,7 +35,7 @@ export interface B { import { A } from "./a"; export interface C { - a: A; + a: A; } @@ -48,35 +48,32 @@ export { C } from "./c"; //// [/src/tsconfig.json] { "compilerOptions": { - "incremental": true, /* Enable incremental compilation */ - "target": "es5", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */ - "module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */ - "declaration": true, /* Generates corresponding '.d.ts' file. */ - "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */ - "sourceMap": true, /* Generates corresponding '.map' file. */ - "outDir": "./lib", /* Redirect output structure to the directory. */ - "composite": true, /* Enable project compilation */ - "strict": true, /* Enable all strict type-checking options. */ - - "esModuleInterop": true, /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */ - + "incremental": true, + "target": "es5", + "module": "commonjs", + "declaration": true, + "declarationMap": true, + "sourceMap": true, + "outDir": "./lib", + "composite": true, + "strict": true, + "esModuleInterop": true, "alwaysStrict": true, "rootDir": "src", "emitDeclarationOnly": true - } -} - + } +} Output:: /lib/tsc --b /src --verbose -[12:00:06 AM] Projects in this build: +[12:00:12 AM] Projects in this build: * src/tsconfig.json -[12:00:07 AM] Project 'src/tsconfig.json' is out of date because output file 'src/tsconfig.tsbuildinfo' does not exist +[12:00:13 AM] Project 'src/tsconfig.json' is out of date because output file 'src/tsconfig.tsbuildinfo' does not exist -[12:00:08 AM] Building project '/src/tsconfig.json'... +[12:00:14 AM] Building project '/src/tsconfig.json'... exitCode:: ExitStatus.Success @@ -89,7 +86,7 @@ export interface A { //# sourceMappingURL=a.d.ts.map //// [/src/lib/a.d.ts.map] -{"version":3,"file":"a.d.ts","sourceRoot":"","sources":["../src/a.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,WAAW,CAAC;IAChB,CAAC,EAAE,CAAC,CAAC;CACN"} +{"version":3,"file":"a.d.ts","sourceRoot":"","sources":["../src/a.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,WAAW,CAAC;IACd,CAAC,EAAE,CAAC,CAAC;CACR"} //// [/src/lib/b.d.ts] import { C } from "./c"; @@ -99,7 +96,7 @@ export interface B { //# sourceMappingURL=b.d.ts.map //// [/src/lib/b.d.ts.map] -{"version":3,"file":"b.d.ts","sourceRoot":"","sources":["../src/b.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,WAAW,CAAC;IAChB,CAAC,EAAE,CAAC,CAAC;CACN"} +{"version":3,"file":"b.d.ts","sourceRoot":"","sources":["../src/b.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,WAAW,CAAC;IACd,CAAC,EAAE,CAAC,CAAC;CACR"} //// [/src/lib/c.d.ts] import { A } from "./a"; @@ -109,7 +106,7 @@ export interface C { //# sourceMappingURL=c.d.ts.map //// [/src/lib/c.d.ts.map] -{"version":3,"file":"c.d.ts","sourceRoot":"","sources":["../src/c.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,WAAW,CAAC;IAChB,CAAC,EAAE,CAAC,CAAC;CACN"} +{"version":3,"file":"c.d.ts","sourceRoot":"","sources":["../src/c.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,WAAW,CAAC;IACd,CAAC,EAAE,CAAC,CAAC;CACR"} //// [/src/lib/index.d.ts] export { A } from "./a"; @@ -121,7 +118,7 @@ export { C } from "./c"; {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC"} //// [/src/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../lib/lib.d.ts","./src/c.ts","./src/b.ts","./src/a.ts","./src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"429593025-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n","signature":"-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n"},{"version":"-2273488249-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n","signature":"2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n"},{"version":"-15463561693-import { B } from \"./b\";\n\nexport interface A {\n b: B;\n}\n","signature":"-9690779495-import { B } from \"./b\";\nexport interface A {\n b: B;\n}\n"},"1286756397-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";\n"],"root":[[2,5]],"options":{"alwaysStrict":true,"composite":true,"declaration":true,"declarationMap":true,"emitDeclarationOnly":true,"esModuleInterop":true,"module":1,"outDir":"./lib","rootDir":"./src","sourceMap":true,"strict":true,"target":1},"fileIdsList":[[3],[2],[4],[2,3,4]],"referencedMap":[[4,1],[3,2],[2,3],[5,4]],"exportedModulesMap":[[4,1],[3,2],[2,3],[5,4]],"semanticDiagnosticsPerFile":[1,4,3,2,5],"latestChangedDtsFile":"./lib/index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../lib/lib.d.ts","./src/c.ts","./src/b.ts","./src/a.ts","./src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"3086446657-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n","signature":"-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n"},{"version":"-5791025721-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n","signature":"2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n"},{"version":"-10415053661-import { B } from \"./b\";\n\nexport interface A {\n b: B;\n}\n","signature":"-9690779495-import { B } from \"./b\";\nexport interface A {\n b: B;\n}\n"},"1286756397-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";\n"],"root":[[2,5]],"options":{"alwaysStrict":true,"composite":true,"declaration":true,"declarationMap":true,"emitDeclarationOnly":true,"esModuleInterop":true,"module":1,"outDir":"./lib","rootDir":"./src","sourceMap":true,"strict":true,"target":1},"fileIdsList":[[3],[2],[4],[2,3,4]],"referencedMap":[[4,1],[3,2],[2,3],[5,4]],"exportedModulesMap":[[4,1],[3,2],[2,3],[5,4]],"semanticDiagnosticsPerFile":[1,4,3,2,5],"latestChangedDtsFile":"./lib/index.d.ts"},"version":"FakeTSVersion"} //// [/src/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -161,26 +158,26 @@ export { C } from "./c"; }, "./src/c.ts": { "original": { - "version": "429593025-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n", + "version": "3086446657-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n", "signature": "-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n" }, - "version": "429593025-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n", + "version": "3086446657-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n", "signature": "-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n" }, "./src/b.ts": { "original": { - "version": "-2273488249-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n", + "version": "-5791025721-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n", "signature": "2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n" }, - "version": "-2273488249-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n", + "version": "-5791025721-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n", "signature": "2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n" }, "./src/a.ts": { "original": { - "version": "-15463561693-import { B } from \"./b\";\n\nexport interface A {\n b: B;\n}\n", + "version": "-10415053661-import { B } from \"./b\";\n\nexport interface A {\n b: B;\n}\n", "signature": "-9690779495-import { B } from \"./b\";\nexport interface A {\n b: B;\n}\n" }, - "version": "-15463561693-import { B } from \"./b\";\n\nexport interface A {\n b: B;\n}\n", + "version": "-10415053661-import { B } from \"./b\";\n\nexport interface A {\n b: B;\n}\n", "signature": "-9690779495-import { B } from \"./b\";\nexport interface A {\n b: B;\n}\n" }, "./src/index.ts": { @@ -258,7 +255,7 @@ export { C } from "./c"; "latestChangedDtsFile": "./lib/index.d.ts" }, "version": "FakeTSVersion", - "size": 1713 + "size": 1720 } @@ -269,7 +266,7 @@ Input:: import { B } from "./b"; export interface A { - b: B; foo: any; + b: B; foo: any; } @@ -277,12 +274,12 @@ export interface A { Output:: /lib/tsc --b /src --verbose -[12:00:22 AM] Projects in this build: +[12:00:28 AM] Projects in this build: * src/tsconfig.json -[12:00:23 AM] Project 'src/tsconfig.json' is out of date because output 'src/tsconfig.tsbuildinfo' is older than input 'src/src/a.ts' +[12:00:29 AM] Project 'src/tsconfig.json' is out of date because output 'src/tsconfig.tsbuildinfo' is older than input 'src/src/a.ts' -[12:00:24 AM] Building project '/src/tsconfig.json'... +[12:00:30 AM] Building project '/src/tsconfig.json'... exitCode:: ExitStatus.Success @@ -296,13 +293,13 @@ export interface A { //# sourceMappingURL=a.d.ts.map //// [/src/lib/a.d.ts.map] -{"version":3,"file":"a.d.ts","sourceRoot":"","sources":["../src/a.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,WAAW,CAAC;IAChB,CAAC,EAAE,CAAC,CAAC;IAAC,GAAG,EAAE,GAAG,CAAC;CAChB"} +{"version":3,"file":"a.d.ts","sourceRoot":"","sources":["../src/a.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,WAAW,CAAC;IACd,CAAC,EAAE,CAAC,CAAC;IAAC,GAAG,EAAE,GAAG,CAAC;CAClB"} //// [/src/lib/b.d.ts.map] file written with same contents //// [/src/lib/c.d.ts.map] file written with same contents //// [/src/lib/index.d.ts.map] file written with same contents //// [/src/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../lib/lib.d.ts","./src/c.ts","./src/b.ts","./src/a.ts","./src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"429593025-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n","signature":"-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n"},{"version":"-2273488249-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n","signature":"2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n"},{"version":"-14761736732-import { B } from \"./b\";\n\nexport interface A {\n b: B; foo: any;\n}\n","signature":"-7623824316-import { B } from \"./b\";\nexport interface A {\n b: B;\n foo: any;\n}\n"},"1286756397-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";\n"],"root":[[2,5]],"options":{"alwaysStrict":true,"composite":true,"declaration":true,"declarationMap":true,"emitDeclarationOnly":true,"esModuleInterop":true,"module":1,"outDir":"./lib","rootDir":"./src","sourceMap":true,"strict":true,"target":1},"fileIdsList":[[3],[2],[4],[2,3,4]],"referencedMap":[[4,1],[3,2],[2,3],[5,4]],"exportedModulesMap":[[4,1],[3,2],[2,3],[5,4]],"semanticDiagnosticsPerFile":[1,4,3,2,5],"latestChangedDtsFile":"./lib/a.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../lib/lib.d.ts","./src/c.ts","./src/b.ts","./src/a.ts","./src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"3086446657-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n","signature":"-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n"},{"version":"-5791025721-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n","signature":"2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n"},{"version":"-4477156252-import { B } from \"./b\";\n\nexport interface A {\n b: B; foo: any;\n}\n","signature":"-7623824316-import { B } from \"./b\";\nexport interface A {\n b: B;\n foo: any;\n}\n"},"1286756397-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";\n"],"root":[[2,5]],"options":{"alwaysStrict":true,"composite":true,"declaration":true,"declarationMap":true,"emitDeclarationOnly":true,"esModuleInterop":true,"module":1,"outDir":"./lib","rootDir":"./src","sourceMap":true,"strict":true,"target":1},"fileIdsList":[[3],[2],[4],[2,3,4]],"referencedMap":[[4,1],[3,2],[2,3],[5,4]],"exportedModulesMap":[[4,1],[3,2],[2,3],[5,4]],"semanticDiagnosticsPerFile":[1,4,3,2,5],"latestChangedDtsFile":"./lib/a.d.ts"},"version":"FakeTSVersion"} //// [/src/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -342,26 +339,26 @@ export interface A { }, "./src/c.ts": { "original": { - "version": "429593025-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n", + "version": "3086446657-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n", "signature": "-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n" }, - "version": "429593025-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n", + "version": "3086446657-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n", "signature": "-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n" }, "./src/b.ts": { "original": { - "version": "-2273488249-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n", + "version": "-5791025721-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n", "signature": "2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n" }, - "version": "-2273488249-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n", + "version": "-5791025721-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n", "signature": "2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n" }, "./src/a.ts": { "original": { - "version": "-14761736732-import { B } from \"./b\";\n\nexport interface A {\n b: B; foo: any;\n}\n", + "version": "-4477156252-import { B } from \"./b\";\n\nexport interface A {\n b: B; foo: any;\n}\n", "signature": "-7623824316-import { B } from \"./b\";\nexport interface A {\n b: B;\n foo: any;\n}\n" }, - "version": "-14761736732-import { B } from \"./b\";\n\nexport interface A {\n b: B; foo: any;\n}\n", + "version": "-4477156252-import { B } from \"./b\";\n\nexport interface A {\n b: B; foo: any;\n}\n", "signature": "-7623824316-import { B } from \"./b\";\nexport interface A {\n b: B;\n foo: any;\n}\n" }, "./src/index.ts": { @@ -439,6 +436,6 @@ export interface A { "latestChangedDtsFile": "./lib/a.d.ts" }, "version": "FakeTSVersion", - "size": 1734 + "size": 1740 } diff --git a/tests/baselines/reference/tsbuild/emitDeclarationOnly/only-dts-output-in-circular-import-project-with-emitDeclarationOnly.js b/tests/baselines/reference/tsbuild/emitDeclarationOnly/only-dts-output-in-circular-import-project-with-emitDeclarationOnly.js index da7c47c9f50ce..50ae013c64da4 100644 --- a/tests/baselines/reference/tsbuild/emitDeclarationOnly/only-dts-output-in-circular-import-project-with-emitDeclarationOnly.js +++ b/tests/baselines/reference/tsbuild/emitDeclarationOnly/only-dts-output-in-circular-import-project-with-emitDeclarationOnly.js @@ -19,7 +19,7 @@ declare const console: { log(msg: any): void; }; import { B } from "./b"; export interface A { - b: B; + b: B; } @@ -27,7 +27,7 @@ export interface A { import { C } from "./c"; export interface B { - b: C; + b: C; } @@ -35,7 +35,7 @@ export interface B { import { A } from "./a"; export interface C { - a: A; + a: A; } @@ -48,35 +48,32 @@ export { C } from "./c"; //// [/src/tsconfig.json] { "compilerOptions": { - "incremental": true, /* Enable incremental compilation */ - "target": "es5", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */ - "module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */ - "declaration": true, /* Generates corresponding '.d.ts' file. */ - /* Generates a sourcemap for each corresponding '.d.ts' file. */ - "sourceMap": true, /* Generates corresponding '.map' file. */ - "outDir": "./lib", /* Redirect output structure to the directory. */ - "composite": true, /* Enable project compilation */ - "strict": true, /* Enable all strict type-checking options. */ - - "esModuleInterop": true, /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */ + "incremental": true, + "target": "es5", + "module": "commonjs", + "declaration": true, + "sourceMap": true, + "outDir": "./lib", + "composite": true, + "strict": true, + "esModuleInterop": true, "alwaysStrict": true, "rootDir": "src", "emitDeclarationOnly": true - } -} - + } +} Output:: /lib/tsc --b /src --verbose -[12:00:07 AM] Projects in this build: +[12:00:13 AM] Projects in this build: * src/tsconfig.json -[12:00:08 AM] Project 'src/tsconfig.json' is out of date because output file 'src/tsconfig.tsbuildinfo' does not exist +[12:00:14 AM] Project 'src/tsconfig.json' is out of date because output file 'src/tsconfig.tsbuildinfo' does not exist -[12:00:09 AM] Building project '/src/tsconfig.json'... +[12:00:15 AM] Building project '/src/tsconfig.json'... exitCode:: ExitStatus.Success @@ -109,7 +106,7 @@ export { C } from "./c"; //// [/src/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../lib/lib.d.ts","./src/c.ts","./src/b.ts","./src/a.ts","./src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"429593025-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n","signature":"-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n"},{"version":"-2273488249-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n","signature":"2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n"},{"version":"-15463561693-import { B } from \"./b\";\n\nexport interface A {\n b: B;\n}\n","signature":"-9690779495-import { B } from \"./b\";\nexport interface A {\n b: B;\n}\n"},"1286756397-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";\n"],"root":[[2,5]],"options":{"alwaysStrict":true,"composite":true,"declaration":true,"emitDeclarationOnly":true,"esModuleInterop":true,"module":1,"outDir":"./lib","rootDir":"./src","sourceMap":true,"strict":true,"target":1},"fileIdsList":[[3],[2],[4],[2,3,4]],"referencedMap":[[4,1],[3,2],[2,3],[5,4]],"exportedModulesMap":[[4,1],[3,2],[2,3],[5,4]],"semanticDiagnosticsPerFile":[1,4,3,2,5],"latestChangedDtsFile":"./lib/index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../lib/lib.d.ts","./src/c.ts","./src/b.ts","./src/a.ts","./src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"3086446657-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n","signature":"-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n"},{"version":"-5791025721-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n","signature":"2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n"},{"version":"-10415053661-import { B } from \"./b\";\n\nexport interface A {\n b: B;\n}\n","signature":"-9690779495-import { B } from \"./b\";\nexport interface A {\n b: B;\n}\n"},"1286756397-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";\n"],"root":[[2,5]],"options":{"alwaysStrict":true,"composite":true,"declaration":true,"emitDeclarationOnly":true,"esModuleInterop":true,"module":1,"outDir":"./lib","rootDir":"./src","sourceMap":true,"strict":true,"target":1},"fileIdsList":[[3],[2],[4],[2,3,4]],"referencedMap":[[4,1],[3,2],[2,3],[5,4]],"exportedModulesMap":[[4,1],[3,2],[2,3],[5,4]],"semanticDiagnosticsPerFile":[1,4,3,2,5],"latestChangedDtsFile":"./lib/index.d.ts"},"version":"FakeTSVersion"} //// [/src/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -149,26 +146,26 @@ export { C } from "./c"; }, "./src/c.ts": { "original": { - "version": "429593025-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n", + "version": "3086446657-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n", "signature": "-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n" }, - "version": "429593025-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n", + "version": "3086446657-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n", "signature": "-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n" }, "./src/b.ts": { "original": { - "version": "-2273488249-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n", + "version": "-5791025721-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n", "signature": "2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n" }, - "version": "-2273488249-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n", + "version": "-5791025721-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n", "signature": "2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n" }, "./src/a.ts": { "original": { - "version": "-15463561693-import { B } from \"./b\";\n\nexport interface A {\n b: B;\n}\n", + "version": "-10415053661-import { B } from \"./b\";\n\nexport interface A {\n b: B;\n}\n", "signature": "-9690779495-import { B } from \"./b\";\nexport interface A {\n b: B;\n}\n" }, - "version": "-15463561693-import { B } from \"./b\";\n\nexport interface A {\n b: B;\n}\n", + "version": "-10415053661-import { B } from \"./b\";\n\nexport interface A {\n b: B;\n}\n", "signature": "-9690779495-import { B } from \"./b\";\nexport interface A {\n b: B;\n}\n" }, "./src/index.ts": { @@ -245,7 +242,7 @@ export { C } from "./c"; "latestChangedDtsFile": "./lib/index.d.ts" }, "version": "FakeTSVersion", - "size": 1691 + "size": 1698 } @@ -256,7 +253,7 @@ Input:: import { B } from "./b"; export interface A { - b: B; foo: any; + b: B; foo: any; } @@ -264,12 +261,12 @@ export interface A { Output:: /lib/tsc --b /src --verbose -[12:00:19 AM] Projects in this build: +[12:00:25 AM] Projects in this build: * src/tsconfig.json -[12:00:20 AM] Project 'src/tsconfig.json' is out of date because output 'src/tsconfig.tsbuildinfo' is older than input 'src/src/a.ts' +[12:00:26 AM] Project 'src/tsconfig.json' is out of date because output 'src/tsconfig.tsbuildinfo' is older than input 'src/src/a.ts' -[12:00:21 AM] Building project '/src/tsconfig.json'... +[12:00:27 AM] Building project '/src/tsconfig.json'... exitCode:: ExitStatus.Success @@ -283,7 +280,7 @@ export interface A { //// [/src/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../lib/lib.d.ts","./src/c.ts","./src/b.ts","./src/a.ts","./src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"429593025-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n","signature":"-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n"},{"version":"-2273488249-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n","signature":"2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n"},{"version":"-14761736732-import { B } from \"./b\";\n\nexport interface A {\n b: B; foo: any;\n}\n","signature":"-7623824316-import { B } from \"./b\";\nexport interface A {\n b: B;\n foo: any;\n}\n"},"1286756397-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";\n"],"root":[[2,5]],"options":{"alwaysStrict":true,"composite":true,"declaration":true,"emitDeclarationOnly":true,"esModuleInterop":true,"module":1,"outDir":"./lib","rootDir":"./src","sourceMap":true,"strict":true,"target":1},"fileIdsList":[[3],[2],[4],[2,3,4]],"referencedMap":[[4,1],[3,2],[2,3],[5,4]],"exportedModulesMap":[[4,1],[3,2],[2,3],[5,4]],"semanticDiagnosticsPerFile":[1,4,3,2,5],"latestChangedDtsFile":"./lib/a.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../lib/lib.d.ts","./src/c.ts","./src/b.ts","./src/a.ts","./src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"3086446657-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n","signature":"-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n"},{"version":"-5791025721-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n","signature":"2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n"},{"version":"-4477156252-import { B } from \"./b\";\n\nexport interface A {\n b: B; foo: any;\n}\n","signature":"-7623824316-import { B } from \"./b\";\nexport interface A {\n b: B;\n foo: any;\n}\n"},"1286756397-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";\n"],"root":[[2,5]],"options":{"alwaysStrict":true,"composite":true,"declaration":true,"emitDeclarationOnly":true,"esModuleInterop":true,"module":1,"outDir":"./lib","rootDir":"./src","sourceMap":true,"strict":true,"target":1},"fileIdsList":[[3],[2],[4],[2,3,4]],"referencedMap":[[4,1],[3,2],[2,3],[5,4]],"exportedModulesMap":[[4,1],[3,2],[2,3],[5,4]],"semanticDiagnosticsPerFile":[1,4,3,2,5],"latestChangedDtsFile":"./lib/a.d.ts"},"version":"FakeTSVersion"} //// [/src/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -323,26 +320,26 @@ export interface A { }, "./src/c.ts": { "original": { - "version": "429593025-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n", + "version": "3086446657-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n", "signature": "-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n" }, - "version": "429593025-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n", + "version": "3086446657-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n", "signature": "-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n" }, "./src/b.ts": { "original": { - "version": "-2273488249-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n", + "version": "-5791025721-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n", "signature": "2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n" }, - "version": "-2273488249-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n", + "version": "-5791025721-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n", "signature": "2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n" }, "./src/a.ts": { "original": { - "version": "-14761736732-import { B } from \"./b\";\n\nexport interface A {\n b: B; foo: any;\n}\n", + "version": "-4477156252-import { B } from \"./b\";\n\nexport interface A {\n b: B; foo: any;\n}\n", "signature": "-7623824316-import { B } from \"./b\";\nexport interface A {\n b: B;\n foo: any;\n}\n" }, - "version": "-14761736732-import { B } from \"./b\";\n\nexport interface A {\n b: B; foo: any;\n}\n", + "version": "-4477156252-import { B } from \"./b\";\n\nexport interface A {\n b: B; foo: any;\n}\n", "signature": "-7623824316-import { B } from \"./b\";\nexport interface A {\n b: B;\n foo: any;\n}\n" }, "./src/index.ts": { @@ -419,6 +416,6 @@ export interface A { "latestChangedDtsFile": "./lib/a.d.ts" }, "version": "FakeTSVersion", - "size": 1712 + "size": 1718 } diff --git a/tests/baselines/reference/tsbuild/emitDeclarationOnly/only-dts-output-in-non-circular-imports-project-with-emitDeclarationOnly.js b/tests/baselines/reference/tsbuild/emitDeclarationOnly/only-dts-output-in-non-circular-imports-project-with-emitDeclarationOnly.js index 59bda00c99f3b..6dff5cb736721 100644 --- a/tests/baselines/reference/tsbuild/emitDeclarationOnly/only-dts-output-in-non-circular-imports-project-with-emitDeclarationOnly.js +++ b/tests/baselines/reference/tsbuild/emitDeclarationOnly/only-dts-output-in-non-circular-imports-project-with-emitDeclarationOnly.js @@ -19,7 +19,7 @@ declare const console: { log(msg: any): void; }; export class B { prop = "hello"; } export interface A { - b: B; + b: B; } @@ -27,7 +27,7 @@ export interface A { import { C } from "./c"; export interface B { - b: C; + b: C; } @@ -35,42 +35,39 @@ export interface B { import { A } from "./a"; export interface C { - a: A; + a: A; } //// [/src/tsconfig.json] { "compilerOptions": { - "incremental": true, /* Enable incremental compilation */ - "target": "es5", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */ - "module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */ - "declaration": true, /* Generates corresponding '.d.ts' file. */ - "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */ - "sourceMap": true, /* Generates corresponding '.map' file. */ - "outDir": "./lib", /* Redirect output structure to the directory. */ - "composite": true, /* Enable project compilation */ - "strict": true, /* Enable all strict type-checking options. */ - - "esModuleInterop": true, /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */ - + "incremental": true, + "target": "es5", + "module": "commonjs", + "declaration": true, + "declarationMap": true, + "sourceMap": true, + "outDir": "./lib", + "composite": true, + "strict": true, + "esModuleInterop": true, "alwaysStrict": true, "rootDir": "src", "emitDeclarationOnly": true - } -} - + } +} Output:: /lib/tsc --b /src --verbose -[12:00:08 AM] Projects in this build: +[12:00:14 AM] Projects in this build: * src/tsconfig.json -[12:00:09 AM] Project 'src/tsconfig.json' is out of date because output file 'src/tsconfig.tsbuildinfo' does not exist +[12:00:15 AM] Project 'src/tsconfig.json' is out of date because output file 'src/tsconfig.tsbuildinfo' does not exist -[12:00:10 AM] Building project '/src/tsconfig.json'... +[12:00:16 AM] Building project '/src/tsconfig.json'... exitCode:: ExitStatus.Success @@ -85,7 +82,7 @@ export interface A { //# sourceMappingURL=a.d.ts.map //// [/src/lib/a.d.ts.map] -{"version":3,"file":"a.d.ts","sourceRoot":"","sources":["../src/a.ts"],"names":[],"mappings":"AAAA,qBAAa,CAAC;IAAG,IAAI,SAAW;CAAE;AAElC,MAAM,WAAW,CAAC;IAChB,CAAC,EAAE,CAAC,CAAC;CACN"} +{"version":3,"file":"a.d.ts","sourceRoot":"","sources":["../src/a.ts"],"names":[],"mappings":"AAAA,qBAAa,CAAC;IAAG,IAAI,SAAW;CAAE;AAElC,MAAM,WAAW,CAAC;IACd,CAAC,EAAE,CAAC,CAAC;CACR"} //// [/src/lib/b.d.ts] import { C } from "./c"; @@ -95,7 +92,7 @@ export interface B { //# sourceMappingURL=b.d.ts.map //// [/src/lib/b.d.ts.map] -{"version":3,"file":"b.d.ts","sourceRoot":"","sources":["../src/b.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,WAAW,CAAC;IAChB,CAAC,EAAE,CAAC,CAAC;CACN"} +{"version":3,"file":"b.d.ts","sourceRoot":"","sources":["../src/b.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,WAAW,CAAC;IACd,CAAC,EAAE,CAAC,CAAC;CACR"} //// [/src/lib/c.d.ts] import { A } from "./a"; @@ -105,10 +102,10 @@ export interface C { //# sourceMappingURL=c.d.ts.map //// [/src/lib/c.d.ts.map] -{"version":3,"file":"c.d.ts","sourceRoot":"","sources":["../src/c.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,WAAW,CAAC;IAChB,CAAC,EAAE,CAAC,CAAC;CACN"} +{"version":3,"file":"c.d.ts","sourceRoot":"","sources":["../src/c.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,WAAW,CAAC;IACd,CAAC,EAAE,CAAC,CAAC;CACR"} //// [/src/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../lib/lib.d.ts","./src/a.ts","./src/c.ts","./src/b.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"11179224639-export class B { prop = \"hello\"; }\n\nexport interface A {\n b: B;\n}\n","signature":"-15427030283-export declare class B {\n prop: string;\n}\nexport interface A {\n b: B;\n}\n"},{"version":"429593025-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n","signature":"-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n"},{"version":"-2273488249-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n","signature":"2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n"}],"root":[[2,4]],"options":{"alwaysStrict":true,"composite":true,"declaration":true,"declarationMap":true,"emitDeclarationOnly":true,"esModuleInterop":true,"module":1,"outDir":"./lib","rootDir":"./src","sourceMap":true,"strict":true,"target":1},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"exportedModulesMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,2,4,3],"latestChangedDtsFile":"./lib/b.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../lib/lib.d.ts","./src/a.ts","./src/c.ts","./src/b.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"12550013887-export class B { prop = \"hello\"; }\n\nexport interface A {\n b: B;\n}\n","signature":"-15427030283-export declare class B {\n prop: string;\n}\nexport interface A {\n b: B;\n}\n"},{"version":"3086446657-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n","signature":"-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n"},{"version":"-5791025721-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n","signature":"2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n"}],"root":[[2,4]],"options":{"alwaysStrict":true,"composite":true,"declaration":true,"declarationMap":true,"emitDeclarationOnly":true,"esModuleInterop":true,"module":1,"outDir":"./lib","rootDir":"./src","sourceMap":true,"strict":true,"target":1},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"exportedModulesMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,2,4,3],"latestChangedDtsFile":"./lib/b.d.ts"},"version":"FakeTSVersion"} //// [/src/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -139,26 +136,26 @@ export interface C { }, "./src/a.ts": { "original": { - "version": "11179224639-export class B { prop = \"hello\"; }\n\nexport interface A {\n b: B;\n}\n", + "version": "12550013887-export class B { prop = \"hello\"; }\n\nexport interface A {\n b: B;\n}\n", "signature": "-15427030283-export declare class B {\n prop: string;\n}\nexport interface A {\n b: B;\n}\n" }, - "version": "11179224639-export class B { prop = \"hello\"; }\n\nexport interface A {\n b: B;\n}\n", + "version": "12550013887-export class B { prop = \"hello\"; }\n\nexport interface A {\n b: B;\n}\n", "signature": "-15427030283-export declare class B {\n prop: string;\n}\nexport interface A {\n b: B;\n}\n" }, "./src/c.ts": { "original": { - "version": "429593025-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n", + "version": "3086446657-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n", "signature": "-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n" }, - "version": "429593025-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n", + "version": "3086446657-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n", "signature": "-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n" }, "./src/b.ts": { "original": { - "version": "-2273488249-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n", + "version": "-5791025721-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n", "signature": "2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n" }, - "version": "-2273488249-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n", + "version": "-5791025721-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n", "signature": "2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n" } }, @@ -214,7 +211,7 @@ export interface C { "latestChangedDtsFile": "./lib/b.d.ts" }, "version": "FakeTSVersion", - "size": 1586 + "size": 1593 } @@ -226,7 +223,7 @@ export class B { prop = "hello"; } class C { } export interface A { - b: B; + b: B; } @@ -234,21 +231,21 @@ export interface A { Output:: /lib/tsc --b /src --verbose -[12:00:22 AM] Projects in this build: +[12:00:28 AM] Projects in this build: * src/tsconfig.json -[12:00:23 AM] Project 'src/tsconfig.json' is out of date because output 'src/tsconfig.tsbuildinfo' is older than input 'src/src/a.ts' +[12:00:29 AM] Project 'src/tsconfig.json' is out of date because output 'src/tsconfig.tsbuildinfo' is older than input 'src/src/a.ts' -[12:00:24 AM] Building project '/src/tsconfig.json'... +[12:00:30 AM] Building project '/src/tsconfig.json'... exitCode:: ExitStatus.Success //// [/src/lib/a.d.ts.map] -{"version":3,"file":"a.d.ts","sourceRoot":"","sources":["../src/a.ts"],"names":[],"mappings":"AAAA,qBAAa,CAAC;IAAG,IAAI,SAAW;CAAE;AAGlC,MAAM,WAAW,CAAC;IAChB,CAAC,EAAE,CAAC,CAAC;CACN"} +{"version":3,"file":"a.d.ts","sourceRoot":"","sources":["../src/a.ts"],"names":[],"mappings":"AAAA,qBAAa,CAAC;IAAG,IAAI,SAAW;CAAE;AAGlC,MAAM,WAAW,CAAC;IACd,CAAC,EAAE,CAAC,CAAC;CACR"} //// [/src/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../lib/lib.d.ts","./src/a.ts","./src/c.ts","./src/b.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"6651905050-export class B { prop = \"hello\"; }\n\nclass C { }\nexport interface A {\n b: B;\n}\n","signature":"-15427030283-export declare class B {\n prop: string;\n}\nexport interface A {\n b: B;\n}\n"},{"version":"429593025-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n","signature":"-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n"},{"version":"-2273488249-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n","signature":"2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n"}],"root":[[2,4]],"options":{"alwaysStrict":true,"composite":true,"declaration":true,"declarationMap":true,"emitDeclarationOnly":true,"esModuleInterop":true,"module":1,"outDir":"./lib","rootDir":"./src","sourceMap":true,"strict":true,"target":1},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"exportedModulesMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,2,4,3],"latestChangedDtsFile":"./lib/b.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../lib/lib.d.ts","./src/a.ts","./src/c.ts","./src/b.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"12921437274-export class B { prop = \"hello\"; }\n\nclass C { }\nexport interface A {\n b: B;\n}\n","signature":"-15427030283-export declare class B {\n prop: string;\n}\nexport interface A {\n b: B;\n}\n"},{"version":"3086446657-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n","signature":"-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n"},{"version":"-5791025721-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n","signature":"2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n"}],"root":[[2,4]],"options":{"alwaysStrict":true,"composite":true,"declaration":true,"declarationMap":true,"emitDeclarationOnly":true,"esModuleInterop":true,"module":1,"outDir":"./lib","rootDir":"./src","sourceMap":true,"strict":true,"target":1},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"exportedModulesMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,2,4,3],"latestChangedDtsFile":"./lib/b.d.ts"},"version":"FakeTSVersion"} //// [/src/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -279,26 +276,26 @@ exitCode:: ExitStatus.Success }, "./src/a.ts": { "original": { - "version": "6651905050-export class B { prop = \"hello\"; }\n\nclass C { }\nexport interface A {\n b: B;\n}\n", + "version": "12921437274-export class B { prop = \"hello\"; }\n\nclass C { }\nexport interface A {\n b: B;\n}\n", "signature": "-15427030283-export declare class B {\n prop: string;\n}\nexport interface A {\n b: B;\n}\n" }, - "version": "6651905050-export class B { prop = \"hello\"; }\n\nclass C { }\nexport interface A {\n b: B;\n}\n", + "version": "12921437274-export class B { prop = \"hello\"; }\n\nclass C { }\nexport interface A {\n b: B;\n}\n", "signature": "-15427030283-export declare class B {\n prop: string;\n}\nexport interface A {\n b: B;\n}\n" }, "./src/c.ts": { "original": { - "version": "429593025-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n", + "version": "3086446657-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n", "signature": "-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n" }, - "version": "429593025-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n", + "version": "3086446657-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n", "signature": "-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n" }, "./src/b.ts": { "original": { - "version": "-2273488249-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n", + "version": "-5791025721-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n", "signature": "2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n" }, - "version": "-2273488249-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n", + "version": "-5791025721-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n", "signature": "2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n" } }, @@ -354,7 +351,7 @@ exitCode:: ExitStatus.Success "latestChangedDtsFile": "./lib/b.d.ts" }, "version": "FakeTSVersion", - "size": 1598 + "size": 1606 } @@ -366,7 +363,7 @@ export class B { prop = "hello"; } class C { } export interface A { - b: B; foo: any; + b: B; foo: any; } @@ -374,12 +371,12 @@ export interface A { Output:: /lib/tsc --b /src --verbose -[12:00:30 AM] Projects in this build: +[12:00:36 AM] Projects in this build: * src/tsconfig.json -[12:00:31 AM] Project 'src/tsconfig.json' is out of date because output 'src/tsconfig.tsbuildinfo' is older than input 'src/src/a.ts' +[12:00:37 AM] Project 'src/tsconfig.json' is out of date because output 'src/tsconfig.tsbuildinfo' is older than input 'src/src/a.ts' -[12:00:32 AM] Building project '/src/tsconfig.json'... +[12:00:38 AM] Building project '/src/tsconfig.json'... exitCode:: ExitStatus.Success @@ -395,12 +392,12 @@ export interface A { //# sourceMappingURL=a.d.ts.map //// [/src/lib/a.d.ts.map] -{"version":3,"file":"a.d.ts","sourceRoot":"","sources":["../src/a.ts"],"names":[],"mappings":"AAAA,qBAAa,CAAC;IAAG,IAAI,SAAW;CAAE;AAGlC,MAAM,WAAW,CAAC;IAChB,CAAC,EAAE,CAAC,CAAC;IAAC,GAAG,EAAE,GAAG,CAAC;CAChB"} +{"version":3,"file":"a.d.ts","sourceRoot":"","sources":["../src/a.ts"],"names":[],"mappings":"AAAA,qBAAa,CAAC;IAAG,IAAI,SAAW;CAAE;AAGlC,MAAM,WAAW,CAAC;IACd,CAAC,EAAE,CAAC,CAAC;IAAC,GAAG,EAAE,GAAG,CAAC;CAClB"} //// [/src/lib/b.d.ts.map] file written with same contents //// [/src/lib/c.d.ts.map] file written with same contents //// [/src/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../lib/lib.d.ts","./src/a.ts","./src/c.ts","./src/b.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"5380514971-export class B { prop = \"hello\"; }\n\nclass C { }\nexport interface A {\n b: B; foo: any;\n}\n","signature":"-21227085920-export declare class B {\n prop: string;\n}\nexport interface A {\n b: B;\n foo: any;\n}\n"},{"version":"429593025-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n","signature":"-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n"},{"version":"-2273488249-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n","signature":"2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n"}],"root":[[2,4]],"options":{"alwaysStrict":true,"composite":true,"declaration":true,"declarationMap":true,"emitDeclarationOnly":true,"esModuleInterop":true,"module":1,"outDir":"./lib","rootDir":"./src","sourceMap":true,"strict":true,"target":1},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"exportedModulesMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,2,4,3],"latestChangedDtsFile":"./lib/a.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../lib/lib.d.ts","./src/a.ts","./src/c.ts","./src/b.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"17511804123-export class B { prop = \"hello\"; }\n\nclass C { }\nexport interface A {\n b: B; foo: any;\n}\n","signature":"-21227085920-export declare class B {\n prop: string;\n}\nexport interface A {\n b: B;\n foo: any;\n}\n"},{"version":"3086446657-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n","signature":"-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n"},{"version":"-5791025721-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n","signature":"2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n"}],"root":[[2,4]],"options":{"alwaysStrict":true,"composite":true,"declaration":true,"declarationMap":true,"emitDeclarationOnly":true,"esModuleInterop":true,"module":1,"outDir":"./lib","rootDir":"./src","sourceMap":true,"strict":true,"target":1},"fileIdsList":[[3],[2]],"referencedMap":[[4,1],[3,2]],"exportedModulesMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[1,2,4,3],"latestChangedDtsFile":"./lib/a.d.ts"},"version":"FakeTSVersion"} //// [/src/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -431,26 +428,26 @@ export interface A { }, "./src/a.ts": { "original": { - "version": "5380514971-export class B { prop = \"hello\"; }\n\nclass C { }\nexport interface A {\n b: B; foo: any;\n}\n", + "version": "17511804123-export class B { prop = \"hello\"; }\n\nclass C { }\nexport interface A {\n b: B; foo: any;\n}\n", "signature": "-21227085920-export declare class B {\n prop: string;\n}\nexport interface A {\n b: B;\n foo: any;\n}\n" }, - "version": "5380514971-export class B { prop = \"hello\"; }\n\nclass C { }\nexport interface A {\n b: B; foo: any;\n}\n", + "version": "17511804123-export class B { prop = \"hello\"; }\n\nclass C { }\nexport interface A {\n b: B; foo: any;\n}\n", "signature": "-21227085920-export declare class B {\n prop: string;\n}\nexport interface A {\n b: B;\n foo: any;\n}\n" }, "./src/c.ts": { "original": { - "version": "429593025-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n", + "version": "3086446657-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n", "signature": "-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n" }, - "version": "429593025-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n", + "version": "3086446657-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n", "signature": "-3358372745-import { A } from \"./a\";\nexport interface C {\n a: A;\n}\n" }, "./src/b.ts": { "original": { - "version": "-2273488249-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n", + "version": "-5791025721-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n", "signature": "2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n" }, - "version": "-2273488249-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n", + "version": "-5791025721-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n", "signature": "2102342013-import { C } from \"./c\";\nexport interface B {\n b: C;\n}\n" } }, @@ -506,6 +503,6 @@ export interface A { "latestChangedDtsFile": "./lib/a.d.ts" }, "version": "FakeTSVersion", - "size": 1623 + "size": 1631 } diff --git a/tests/baselines/reference/tsbuild/emptyFiles/does-not-have-empty-files-diagnostic-when-files-is-empty-and-references-are-provided.js b/tests/baselines/reference/tsbuild/emptyFiles/does-not-have-empty-files-diagnostic-when-files-is-empty-and-references-are-provided.js index 7b9f1b3568101..f9f3aff9cbc6a 100644 --- a/tests/baselines/reference/tsbuild/emptyFiles/does-not-have-empty-files-diagnostic-when-files-is-empty-and-references-are-provided.js +++ b/tests/baselines/reference/tsbuild/emptyFiles/does-not-have-empty-files-diagnostic-when-files-is-empty-and-references-are-provided.js @@ -18,46 +18,32 @@ declare const console: { log(msg: any): void; }; //// [/src/core/index.ts] export function multiply(a: number, b: number) { return a * b; } - //// [/src/core/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - } -} - - -//// [/src/no-references/tsconfig.json] -{ - "references": [], - "files": [], - "compilerOptions": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - } +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + } } - //// [/src/with-references/tsconfig.json] -{ - "references": [ - { "path": "../core" }, - ], - "files": [], - "compilerOptions": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - } +{ + "references": [ + { + "path": "../core" + } + ], + "files": [], + "compilerOptions": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + } } - Output:: @@ -81,7 +67,7 @@ exports.multiply = multiply; //// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"5112841898-export function multiply(a: number, b: number) { return a * b; }\r\n","signature":"-8675294677-export declare function multiply(a: number, b: number): number;\n"}],"root":[2],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"7987260467-export function multiply(a: number, b: number) { return a * b; }","signature":"-8675294677-export declare function multiply(a: number, b: number): number;\n"}],"root":[2],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -102,10 +88,10 @@ exports.multiply = multiply; }, "./index.ts": { "original": { - "version": "5112841898-export function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "7987260467-export function multiply(a: number, b: number) { return a * b; }", "signature": "-8675294677-export declare function multiply(a: number, b: number): number;\n" }, - "version": "5112841898-export function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "7987260467-export function multiply(a: number, b: number) { return a * b; }", "signature": "-8675294677-export declare function multiply(a: number, b: number): number;\n" } }, @@ -130,6 +116,6 @@ exports.multiply = multiply; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 990 + "size": 986 } diff --git a/tests/baselines/reference/tsbuild/emptyFiles/has-empty-files-diagnostic-when-files-is-empty-and-no-references-are-provided.js b/tests/baselines/reference/tsbuild/emptyFiles/has-empty-files-diagnostic-when-files-is-empty-and-no-references-are-provided.js index b8020eb0d504a..033e17716e2a8 100644 --- a/tests/baselines/reference/tsbuild/emptyFiles/has-empty-files-diagnostic-when-files-is-empty-and-no-references-are-provided.js +++ b/tests/baselines/reference/tsbuild/emptyFiles/has-empty-files-diagnostic-when-files-is-empty-and-no-references-are-provided.js @@ -15,57 +15,26 @@ interface Array { length: number; [n: number]: T; } interface ReadonlyArray {} declare const console: { log(msg: any): void; }; -//// [/src/core/index.ts] -export function multiply(a: number, b: number) { return a * b; } - - -//// [/src/core/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - } -} - - //// [/src/no-references/tsconfig.json] -{ - "references": [], - "files": [], - "compilerOptions": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - } +{ + "references": [], + "files": [], + "compilerOptions": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + } } - -//// [/src/with-references/tsconfig.json] -{ - "references": [ - { "path": "../core" }, - ], - "files": [], - "compilerOptions": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - } -} - - Output:: /lib/tsc --b /src/no-references -src/no-references/tsconfig.json:3:14 - error TS18002: The 'files' list in config file '/src/no-references/tsconfig.json' is empty. +src/no-references/tsconfig.json:3:12 - error TS18002: The 'files' list in config file '/src/no-references/tsconfig.json' is empty. -3 "files": [], -   ~~ +3 "files": [], +   ~~ Found 1 error. diff --git a/tests/baselines/reference/tsbuild/extends/resolves-the-symlink-path.js b/tests/baselines/reference/tsbuild/extends/resolves-the-symlink-path.js index 8e9b53a2a7c48..c5a2dc19e099a 100644 --- a/tests/baselines/reference/tsbuild/extends/resolves-the-symlink-path.js +++ b/tests/baselines/reference/tsbuild/extends/resolves-the-symlink-path.js @@ -1,10 +1,19 @@ currentDirectory:: /users/user/projects/myproject useCaseSensitiveFileNames: false Input:: //// [/users/user/projects/myconfigs/node_modules/@something/tsconfig-node/tsconfig.json] -{"extends":"@something/tsconfig-base/tsconfig.json","compilerOptions":{"removeComments":true}} +{ + "extends": "@something/tsconfig-base/tsconfig.json", + "compilerOptions": { + "removeComments": true + } +} //// [/users/user/projects/myconfigs/node_modules/@something/tsconfig-base/tsconfig.json] -{"compilerOptions":{"composite":true}} +{ + "compilerOptions": { + "composite": true + } +} //// [/users/user/projects/myproject/src/index.ts] // some comment @@ -12,7 +21,9 @@ export const x = 10; //// [/users/user/projects/myproject/src/tsconfig.json] -{"extends":"@something/tsconfig-node/tsconfig.json"} +{ + "extends": "@something/tsconfig-node/tsconfig.json" +} //// [/users/user/projects/myproject/node_modules/@something/tsconfig-node] symlink(/users/user/projects/myconfigs/node_modules/@something/tsconfig-node) //// [/a/lib/lib.d.ts] @@ -33,8 +44,15 @@ interface Array { length: number; [n: number]: T; } Output:: -Program root files: ["/users/user/projects/myproject/src/index.ts"] -Program options: {"composite":true,"removeComments":true,"extendedDiagnostics":true,"configFilePath":"/users/user/projects/myproject/src/tsconfig.json"} +Program root files: [ + "/users/user/projects/myproject/src/index.ts" +] +Program options: { + "composite": true, + "removeComments": true, + "extendedDiagnostics": true, + "configFilePath": "/users/user/projects/myproject/src/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tsbuild/fileDelete/deleted-file-with-outFile-without-composite.js b/tests/baselines/reference/tsbuild/fileDelete/deleted-file-with-outFile-without-composite.js index 8eadc213747f3..26cf8c4825cb2 100644 --- a/tests/baselines/reference/tsbuild/fileDelete/deleted-file-with-outFile-without-composite.js +++ b/tests/baselines/reference/tsbuild/fileDelete/deleted-file-with-outFile-without-composite.js @@ -28,7 +28,12 @@ export function child2() { //// [/src/child/tsconfig.json] -{"compilerOptions":{"outFile":"../childResult.js","module":"amd"}} +{ + "compilerOptions": { + "outFile": "../childResult.js", + "module": "amd" + } +} diff --git a/tests/baselines/reference/tsbuild/fileDelete/deleted-file-without-composite.js b/tests/baselines/reference/tsbuild/fileDelete/deleted-file-without-composite.js index 7da0f50d8dd6c..487b2486e5dbf 100644 --- a/tests/baselines/reference/tsbuild/fileDelete/deleted-file-without-composite.js +++ b/tests/baselines/reference/tsbuild/fileDelete/deleted-file-without-composite.js @@ -28,7 +28,9 @@ export function child2() { //// [/src/child/tsconfig.json] -{"compilerOptions":{}} +{ + "compilerOptions": {} +} diff --git a/tests/baselines/reference/tsbuild/fileDelete/detects-deleted-file-with-outFile.js b/tests/baselines/reference/tsbuild/fileDelete/detects-deleted-file-with-outFile.js index bae847993f755..00575a9cd99c7 100644 --- a/tests/baselines/reference/tsbuild/fileDelete/detects-deleted-file-with-outFile.js +++ b/tests/baselines/reference/tsbuild/fileDelete/detects-deleted-file-with-outFile.js @@ -28,7 +28,13 @@ export function child2() { //// [/src/child/tsconfig.json] -{"compilerOptions":{"composite":true,"outFile":"../childResult.js","module":"amd"}} +{ + "compilerOptions": { + "composite": true, + "outFile": "../childResult.js", + "module": "amd" + } +} //// [/src/main/main.ts] import { child } from "child"; @@ -38,7 +44,18 @@ export function main() { //// [/src/main/tsconfig.json] -{"compilerOptions":{"composite":true,"outFile":"../mainResult.js","module":"amd"},"references":[{"path":"../child"}]} +{ + "compilerOptions": { + "composite": true, + "outFile": "../mainResult.js", + "module": "amd" + }, + "references": [ + { + "path": "../child" + } + ] +} diff --git a/tests/baselines/reference/tsbuild/fileDelete/detects-deleted-file.js b/tests/baselines/reference/tsbuild/fileDelete/detects-deleted-file.js index bdfc72dddff89..49a36f9a7e7cb 100644 --- a/tests/baselines/reference/tsbuild/fileDelete/detects-deleted-file.js +++ b/tests/baselines/reference/tsbuild/fileDelete/detects-deleted-file.js @@ -28,7 +28,11 @@ export function child2() { //// [/src/child/tsconfig.json] -{"compilerOptions":{"composite":true}} +{ + "compilerOptions": { + "composite": true + } +} //// [/src/main/main.ts] import { child } from "../child/child"; @@ -38,7 +42,16 @@ export function main() { //// [/src/main/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[{"path":"../child"}]} +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../child" + } + ] +} diff --git a/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/inferred-type-from-transitive-module-with-isolatedModules.js b/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/inferred-type-from-transitive-module-with-isolatedModules.js index e469aecf99073..bd6d6a67d273c 100644 --- a/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/inferred-type-from-transitive-module-with-isolatedModules.js +++ b/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/inferred-type-from-transitive-module-with-isolatedModules.js @@ -16,69 +16,72 @@ interface ReadonlyArray {} declare const console: { log(msg: any): void; }; //// [/src/bar.ts] -interface RawAction { - (...args: any[]): Promise | void; -} -interface ActionFactory { - (target: T): T; -} -declare function foo(): ActionFactory; -export default foo()(function foobar(param: string): void { -}); +interface RawAction { + (...args: any[]): Promise | void; +} +interface ActionFactory { + (target: T): T; +} +declare function foo(): ActionFactory; +export default foo()(function foobar(param: string): void { +}); -//// [/src/bundling.ts] -export class LazyModule { - constructor(private importCallback: () => Promise) {} -} -export class LazyAction< - TAction extends (...args: any[]) => any, - TModule -> { - constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) { - } -} +//// [/src/bundling.ts] +export class LazyModule { + constructor(private importCallback: () => Promise) {} +} + +export class LazyAction< + TAction extends (...args: any[]) => any, + TModule +> { + constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) { + } +} //// [/src/global.d.ts] -interface PromiseConstructor { - new (): Promise; -} -declare var Promise: PromiseConstructor; -interface Promise { -} +interface PromiseConstructor { + new (): Promise; +} +declare var Promise: PromiseConstructor; +interface Promise { +} + //// [/src/index.ts] -import { LazyAction, LazyModule } from './bundling'; -const lazyModule = new LazyModule(() => - import('./lazyIndex') -); -export const lazyBar = new LazyAction(lazyModule, m => m.bar); +import { LazyAction, LazyModule } from './bundling'; +const lazyModule = new LazyModule(() => + import('./lazyIndex') +); +export const lazyBar = new LazyAction(lazyModule, m => m.bar); + //// [/src/lazyIndex.ts] export { default as bar } from './bar'; //// [/src/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "declaration": true, - "outDir": "obj", - "incremental": true, "isolatedModules": true - } +{ + "compilerOptions": { + "target": "es5", + "declaration": true, + "outDir": "obj", + "incremental": true, "isolatedModules": true + } } Output:: /lib/tsc --b /src --verbose -[12:00:07 AM] Projects in this build: +[12:00:13 AM] Projects in this build: * src/tsconfig.json -[12:00:08 AM] Project 'src/tsconfig.json' is out of date because output file 'src/obj/tsconfig.tsbuildinfo' does not exist +[12:00:14 AM] Project 'src/tsconfig.json' is out of date because output file 'src/obj/tsconfig.tsbuildinfo' does not exist -[12:00:09 AM] Building project '/src/tsconfig.json'... +[12:00:15 AM] Building project '/src/tsconfig.json'... exitCode:: ExitStatus.Success @@ -153,7 +156,7 @@ Object.defineProperty(exports, "bar", { enumerable: true, get: function () { ret //// [/src/obj/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyindex.ts","../index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"5936740878-interface RawAction {\r\n (...args: any[]): Promise | void;\r\n}\r\ninterface ActionFactory {\r\n (target: T): T;\r\n}\r\ndeclare function foo(): ActionFactory;\r\nexport default foo()(function foobar(param: string): void {\r\n});","signature":"1630430607-declare const _default: (param: string) => void;\nexport default _default;\n"},{"version":"-21659820217-export class LazyModule {\r\n constructor(private importCallback: () => Promise) {}\r\n}\r\n\r\nexport class LazyAction<\r\n TAction extends (...args: any[]) => any,\r\n TModule\r\n> {\r\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\r\n }\r\n}\r\n","signature":"-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n"},{"version":"-9780226215-interface PromiseConstructor {\r\n new (): Promise;\r\n}\r\ndeclare var Promise: PromiseConstructor;\r\ninterface Promise {\r\n}","affectsGlobalScope":true},"-6956449754-export { default as bar } from './bar';\n",{"version":"-11602502901-import { LazyAction, LazyModule } from './bundling';\r\nconst lazyModule = new LazyModule(() =>\r\n import('./lazyIndex')\r\n);\r\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);","signature":"-13696684486-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n"}],"root":[[2,6]],"options":{"declaration":true,"outDir":"./","target":1},"fileIdsList":[[3,5],[2]],"referencedMap":[[6,1],[5,2]],"exportedModulesMap":[[6,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,6,5]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyindex.ts","../index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"9420269200-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(param: string): void {\n});\n","signature":"1630430607-declare const _default: (param: string) => void;\nexport default _default;\n"},{"version":"-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n","signature":"-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n"},{"version":"-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n","affectsGlobalScope":true},"-6956449754-export { default as bar } from './bar';\n",{"version":"6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n","signature":"-13696684486-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n"}],"root":[[2,6]],"options":{"declaration":true,"outDir":"./","target":1},"fileIdsList":[[3,5],[2]],"referencedMap":[[6,1],[5,2]],"exportedModulesMap":[[6,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,6,5]},"version":"FakeTSVersion"} //// [/src/obj/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -187,27 +190,27 @@ Object.defineProperty(exports, "bar", { enumerable: true, get: function () { ret }, "../bar.ts": { "original": { - "version": "5936740878-interface RawAction {\r\n (...args: any[]): Promise | void;\r\n}\r\ninterface ActionFactory {\r\n (target: T): T;\r\n}\r\ndeclare function foo(): ActionFactory;\r\nexport default foo()(function foobar(param: string): void {\r\n});", + "version": "9420269200-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(param: string): void {\n});\n", "signature": "1630430607-declare const _default: (param: string) => void;\nexport default _default;\n" }, - "version": "5936740878-interface RawAction {\r\n (...args: any[]): Promise | void;\r\n}\r\ninterface ActionFactory {\r\n (target: T): T;\r\n}\r\ndeclare function foo(): ActionFactory;\r\nexport default foo()(function foobar(param: string): void {\r\n});", + "version": "9420269200-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(param: string): void {\n});\n", "signature": "1630430607-declare const _default: (param: string) => void;\nexport default _default;\n" }, "../bundling.ts": { "original": { - "version": "-21659820217-export class LazyModule {\r\n constructor(private importCallback: () => Promise) {}\r\n}\r\n\r\nexport class LazyAction<\r\n TAction extends (...args: any[]) => any,\r\n TModule\r\n> {\r\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\r\n }\r\n}\r\n", + "version": "-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n", "signature": "-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n" }, - "version": "-21659820217-export class LazyModule {\r\n constructor(private importCallback: () => Promise) {}\r\n}\r\n\r\nexport class LazyAction<\r\n TAction extends (...args: any[]) => any,\r\n TModule\r\n> {\r\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\r\n }\r\n}\r\n", + "version": "-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n", "signature": "-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n" }, "../global.d.ts": { "original": { - "version": "-9780226215-interface PromiseConstructor {\r\n new (): Promise;\r\n}\r\ndeclare var Promise: PromiseConstructor;\r\ninterface Promise {\r\n}", + "version": "-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n", "affectsGlobalScope": true }, - "version": "-9780226215-interface PromiseConstructor {\r\n new (): Promise;\r\n}\r\ndeclare var Promise: PromiseConstructor;\r\ninterface Promise {\r\n}", - "signature": "-9780226215-interface PromiseConstructor {\r\n new (): Promise;\r\n}\r\ndeclare var Promise: PromiseConstructor;\r\ninterface Promise {\r\n}", + "version": "-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n", + "signature": "-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n", "affectsGlobalScope": true }, "../lazyindex.ts": { @@ -216,10 +219,10 @@ Object.defineProperty(exports, "bar", { enumerable: true, get: function () { ret }, "../index.ts": { "original": { - "version": "-11602502901-import { LazyAction, LazyModule } from './bundling';\r\nconst lazyModule = new LazyModule(() =>\r\n import('./lazyIndex')\r\n);\r\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", + "version": "6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n", "signature": "-13696684486-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n" }, - "version": "-11602502901-import { LazyAction, LazyModule } from './bundling';\r\nconst lazyModule = new LazyModule(() =>\r\n import('./lazyIndex')\r\n);\r\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", + "version": "6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n", "signature": "-13696684486-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n" } }, @@ -271,7 +274,7 @@ Object.defineProperty(exports, "bar", { enumerable: true, get: function () { ret ] }, "version": "FakeTSVersion", - "size": 2601 + "size": 2549 } @@ -279,26 +282,27 @@ Object.defineProperty(exports, "bar", { enumerable: true, get: function () { ret Change:: incremental-declaration-changes Input:: //// [/src/bar.ts] -interface RawAction { - (...args: any[]): Promise | void; -} -interface ActionFactory { - (target: T): T; -} -declare function foo(): ActionFactory; -export default foo()(function foobar(): void { -}); +interface RawAction { + (...args: any[]): Promise | void; +} +interface ActionFactory { + (target: T): T; +} +declare function foo(): ActionFactory; +export default foo()(function foobar(): void { +}); + Output:: /lib/tsc --b /src --verbose -[12:00:23 AM] Projects in this build: +[12:00:29 AM] Projects in this build: * src/tsconfig.json -[12:00:24 AM] Project 'src/tsconfig.json' is out of date because output 'src/obj/tsconfig.tsbuildinfo' is older than input 'src/bar.ts' +[12:00:30 AM] Project 'src/tsconfig.json' is out of date because output 'src/obj/tsconfig.tsbuildinfo' is older than input 'src/bar.ts' -[12:00:25 AM] Building project '/src/tsconfig.json'... +[12:00:31 AM] Building project '/src/tsconfig.json'... exitCode:: ExitStatus.Success @@ -322,7 +326,7 @@ export declare const lazyBar: LazyAction<() => void, typeof import("./lazyIndex" //// [/src/obj/lazyIndex.d.ts] file written with same contents //// [/src/obj/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyindex.ts","../index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"747071916-interface RawAction {\r\n (...args: any[]): Promise | void;\r\n}\r\ninterface ActionFactory {\r\n (target: T): T;\r\n}\r\ndeclare function foo(): ActionFactory;\r\nexport default foo()(function foobar(): void {\r\n});","signature":"-1866892563-declare const _default: () => void;\nexport default _default;\n"},{"version":"-21659820217-export class LazyModule {\r\n constructor(private importCallback: () => Promise) {}\r\n}\r\n\r\nexport class LazyAction<\r\n TAction extends (...args: any[]) => any,\r\n TModule\r\n> {\r\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\r\n }\r\n}\r\n","signature":"-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n"},{"version":"-9780226215-interface PromiseConstructor {\r\n new (): Promise;\r\n}\r\ndeclare var Promise: PromiseConstructor;\r\ninterface Promise {\r\n}","affectsGlobalScope":true},"-6956449754-export { default as bar } from './bar';\n",{"version":"-11602502901-import { LazyAction, LazyModule } from './bundling';\r\nconst lazyModule = new LazyModule(() =>\r\n import('./lazyIndex')\r\n);\r\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);","signature":"-4053129224-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n"}],"root":[[2,6]],"options":{"declaration":true,"outDir":"./","target":1},"fileIdsList":[[3,5],[2]],"referencedMap":[[6,1],[5,2]],"exportedModulesMap":[[6,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,6,5]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyindex.ts","../index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"10075719182-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(): void {\n});\n","signature":"-1866892563-declare const _default: () => void;\nexport default _default;\n"},{"version":"-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n","signature":"-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n"},{"version":"-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n","affectsGlobalScope":true},"-6956449754-export { default as bar } from './bar';\n",{"version":"6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n","signature":"-4053129224-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n"}],"root":[[2,6]],"options":{"declaration":true,"outDir":"./","target":1},"fileIdsList":[[3,5],[2]],"referencedMap":[[6,1],[5,2]],"exportedModulesMap":[[6,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,6,5]},"version":"FakeTSVersion"} //// [/src/obj/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -356,27 +360,27 @@ export declare const lazyBar: LazyAction<() => void, typeof import("./lazyIndex" }, "../bar.ts": { "original": { - "version": "747071916-interface RawAction {\r\n (...args: any[]): Promise | void;\r\n}\r\ninterface ActionFactory {\r\n (target: T): T;\r\n}\r\ndeclare function foo(): ActionFactory;\r\nexport default foo()(function foobar(): void {\r\n});", + "version": "10075719182-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(): void {\n});\n", "signature": "-1866892563-declare const _default: () => void;\nexport default _default;\n" }, - "version": "747071916-interface RawAction {\r\n (...args: any[]): Promise | void;\r\n}\r\ninterface ActionFactory {\r\n (target: T): T;\r\n}\r\ndeclare function foo(): ActionFactory;\r\nexport default foo()(function foobar(): void {\r\n});", + "version": "10075719182-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(): void {\n});\n", "signature": "-1866892563-declare const _default: () => void;\nexport default _default;\n" }, "../bundling.ts": { "original": { - "version": "-21659820217-export class LazyModule {\r\n constructor(private importCallback: () => Promise) {}\r\n}\r\n\r\nexport class LazyAction<\r\n TAction extends (...args: any[]) => any,\r\n TModule\r\n> {\r\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\r\n }\r\n}\r\n", + "version": "-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n", "signature": "-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n" }, - "version": "-21659820217-export class LazyModule {\r\n constructor(private importCallback: () => Promise) {}\r\n}\r\n\r\nexport class LazyAction<\r\n TAction extends (...args: any[]) => any,\r\n TModule\r\n> {\r\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\r\n }\r\n}\r\n", + "version": "-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n", "signature": "-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n" }, "../global.d.ts": { "original": { - "version": "-9780226215-interface PromiseConstructor {\r\n new (): Promise;\r\n}\r\ndeclare var Promise: PromiseConstructor;\r\ninterface Promise {\r\n}", + "version": "-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n", "affectsGlobalScope": true }, - "version": "-9780226215-interface PromiseConstructor {\r\n new (): Promise;\r\n}\r\ndeclare var Promise: PromiseConstructor;\r\ninterface Promise {\r\n}", - "signature": "-9780226215-interface PromiseConstructor {\r\n new (): Promise;\r\n}\r\ndeclare var Promise: PromiseConstructor;\r\ninterface Promise {\r\n}", + "version": "-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n", + "signature": "-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n", "affectsGlobalScope": true }, "../lazyindex.ts": { @@ -385,10 +389,10 @@ export declare const lazyBar: LazyAction<() => void, typeof import("./lazyIndex" }, "../index.ts": { "original": { - "version": "-11602502901-import { LazyAction, LazyModule } from './bundling';\r\nconst lazyModule = new LazyModule(() =>\r\n import('./lazyIndex')\r\n);\r\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", + "version": "6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n", "signature": "-4053129224-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n" }, - "version": "-11602502901-import { LazyAction, LazyModule } from './bundling';\r\nconst lazyModule = new LazyModule(() =>\r\n import('./lazyIndex')\r\n);\r\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", + "version": "6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n", "signature": "-4053129224-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n" } }, @@ -440,7 +444,7 @@ export declare const lazyBar: LazyAction<() => void, typeof import("./lazyIndex" ] }, "version": "FakeTSVersion", - "size": 2561 + "size": 2511 } @@ -448,26 +452,27 @@ export declare const lazyBar: LazyAction<() => void, typeof import("./lazyIndex" Change:: incremental-declaration-changes Input:: //// [/src/bar.ts] -interface RawAction { - (...args: any[]): Promise | void; -} -interface ActionFactory { - (target: T): T; -} -declare function foo(): ActionFactory; -export default foo()(function foobar(param: string): void { -}); +interface RawAction { + (...args: any[]): Promise | void; +} +interface ActionFactory { + (target: T): T; +} +declare function foo(): ActionFactory; +export default foo()(function foobar(param: string): void { +}); + Output:: /lib/tsc --b /src --verbose -[12:00:34 AM] Projects in this build: +[12:00:40 AM] Projects in this build: * src/tsconfig.json -[12:00:35 AM] Project 'src/tsconfig.json' is out of date because output 'src/obj/tsconfig.tsbuildinfo' is older than input 'src/bar.ts' +[12:00:41 AM] Project 'src/tsconfig.json' is out of date because output 'src/obj/tsconfig.tsbuildinfo' is older than input 'src/bar.ts' -[12:00:36 AM] Building project '/src/tsconfig.json'... +[12:00:42 AM] Building project '/src/tsconfig.json'... exitCode:: ExitStatus.Success @@ -491,7 +496,7 @@ export declare const lazyBar: LazyAction<(param: string) => void, typeof import( //// [/src/obj/lazyIndex.d.ts] file written with same contents //// [/src/obj/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyindex.ts","../index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"5936740878-interface RawAction {\r\n (...args: any[]): Promise | void;\r\n}\r\ninterface ActionFactory {\r\n (target: T): T;\r\n}\r\ndeclare function foo(): ActionFactory;\r\nexport default foo()(function foobar(param: string): void {\r\n});","signature":"1630430607-declare const _default: (param: string) => void;\nexport default _default;\n"},{"version":"-21659820217-export class LazyModule {\r\n constructor(private importCallback: () => Promise) {}\r\n}\r\n\r\nexport class LazyAction<\r\n TAction extends (...args: any[]) => any,\r\n TModule\r\n> {\r\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\r\n }\r\n}\r\n","signature":"-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n"},{"version":"-9780226215-interface PromiseConstructor {\r\n new (): Promise;\r\n}\r\ndeclare var Promise: PromiseConstructor;\r\ninterface Promise {\r\n}","affectsGlobalScope":true},"-6956449754-export { default as bar } from './bar';\n",{"version":"-11602502901-import { LazyAction, LazyModule } from './bundling';\r\nconst lazyModule = new LazyModule(() =>\r\n import('./lazyIndex')\r\n);\r\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);","signature":"-13696684486-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n"}],"root":[[2,6]],"options":{"declaration":true,"outDir":"./","target":1},"fileIdsList":[[3,5],[2]],"referencedMap":[[6,1],[5,2]],"exportedModulesMap":[[6,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,6,5]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyindex.ts","../index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"9420269200-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(param: string): void {\n});\n","signature":"1630430607-declare const _default: (param: string) => void;\nexport default _default;\n"},{"version":"-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n","signature":"-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n"},{"version":"-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n","affectsGlobalScope":true},"-6956449754-export { default as bar } from './bar';\n",{"version":"6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n","signature":"-13696684486-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n"}],"root":[[2,6]],"options":{"declaration":true,"outDir":"./","target":1},"fileIdsList":[[3,5],[2]],"referencedMap":[[6,1],[5,2]],"exportedModulesMap":[[6,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,6,5]},"version":"FakeTSVersion"} //// [/src/obj/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -525,27 +530,27 @@ export declare const lazyBar: LazyAction<(param: string) => void, typeof import( }, "../bar.ts": { "original": { - "version": "5936740878-interface RawAction {\r\n (...args: any[]): Promise | void;\r\n}\r\ninterface ActionFactory {\r\n (target: T): T;\r\n}\r\ndeclare function foo(): ActionFactory;\r\nexport default foo()(function foobar(param: string): void {\r\n});", + "version": "9420269200-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(param: string): void {\n});\n", "signature": "1630430607-declare const _default: (param: string) => void;\nexport default _default;\n" }, - "version": "5936740878-interface RawAction {\r\n (...args: any[]): Promise | void;\r\n}\r\ninterface ActionFactory {\r\n (target: T): T;\r\n}\r\ndeclare function foo(): ActionFactory;\r\nexport default foo()(function foobar(param: string): void {\r\n});", + "version": "9420269200-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(param: string): void {\n});\n", "signature": "1630430607-declare const _default: (param: string) => void;\nexport default _default;\n" }, "../bundling.ts": { "original": { - "version": "-21659820217-export class LazyModule {\r\n constructor(private importCallback: () => Promise) {}\r\n}\r\n\r\nexport class LazyAction<\r\n TAction extends (...args: any[]) => any,\r\n TModule\r\n> {\r\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\r\n }\r\n}\r\n", + "version": "-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n", "signature": "-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n" }, - "version": "-21659820217-export class LazyModule {\r\n constructor(private importCallback: () => Promise) {}\r\n}\r\n\r\nexport class LazyAction<\r\n TAction extends (...args: any[]) => any,\r\n TModule\r\n> {\r\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\r\n }\r\n}\r\n", + "version": "-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n", "signature": "-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n" }, "../global.d.ts": { "original": { - "version": "-9780226215-interface PromiseConstructor {\r\n new (): Promise;\r\n}\r\ndeclare var Promise: PromiseConstructor;\r\ninterface Promise {\r\n}", + "version": "-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n", "affectsGlobalScope": true }, - "version": "-9780226215-interface PromiseConstructor {\r\n new (): Promise;\r\n}\r\ndeclare var Promise: PromiseConstructor;\r\ninterface Promise {\r\n}", - "signature": "-9780226215-interface PromiseConstructor {\r\n new (): Promise;\r\n}\r\ndeclare var Promise: PromiseConstructor;\r\ninterface Promise {\r\n}", + "version": "-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n", + "signature": "-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n", "affectsGlobalScope": true }, "../lazyindex.ts": { @@ -554,10 +559,10 @@ export declare const lazyBar: LazyAction<(param: string) => void, typeof import( }, "../index.ts": { "original": { - "version": "-11602502901-import { LazyAction, LazyModule } from './bundling';\r\nconst lazyModule = new LazyModule(() =>\r\n import('./lazyIndex')\r\n);\r\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", + "version": "6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n", "signature": "-13696684486-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n" }, - "version": "-11602502901-import { LazyAction, LazyModule } from './bundling';\r\nconst lazyModule = new LazyModule(() =>\r\n import('./lazyIndex')\r\n);\r\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", + "version": "6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n", "signature": "-13696684486-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n" } }, @@ -609,6 +614,6 @@ export declare const lazyBar: LazyAction<(param: string) => void, typeof import( ] }, "version": "FakeTSVersion", - "size": 2601 + "size": 2549 } diff --git a/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/inferred-type-from-transitive-module.js b/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/inferred-type-from-transitive-module.js index 78e949a275e8b..3fcb5932c5b30 100644 --- a/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/inferred-type-from-transitive-module.js +++ b/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/inferred-type-from-transitive-module.js @@ -16,69 +16,72 @@ interface ReadonlyArray {} declare const console: { log(msg: any): void; }; //// [/src/bar.ts] -interface RawAction { - (...args: any[]): Promise | void; -} -interface ActionFactory { - (target: T): T; -} -declare function foo(): ActionFactory; -export default foo()(function foobar(param: string): void { -}); +interface RawAction { + (...args: any[]): Promise | void; +} +interface ActionFactory { + (target: T): T; +} +declare function foo(): ActionFactory; +export default foo()(function foobar(param: string): void { +}); -//// [/src/bundling.ts] -export class LazyModule { - constructor(private importCallback: () => Promise) {} -} -export class LazyAction< - TAction extends (...args: any[]) => any, - TModule -> { - constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) { - } -} +//// [/src/bundling.ts] +export class LazyModule { + constructor(private importCallback: () => Promise) {} +} + +export class LazyAction< + TAction extends (...args: any[]) => any, + TModule +> { + constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) { + } +} //// [/src/global.d.ts] -interface PromiseConstructor { - new (): Promise; -} -declare var Promise: PromiseConstructor; -interface Promise { -} +interface PromiseConstructor { + new (): Promise; +} +declare var Promise: PromiseConstructor; +interface Promise { +} + //// [/src/index.ts] -import { LazyAction, LazyModule } from './bundling'; -const lazyModule = new LazyModule(() => - import('./lazyIndex') -); -export const lazyBar = new LazyAction(lazyModule, m => m.bar); +import { LazyAction, LazyModule } from './bundling'; +const lazyModule = new LazyModule(() => + import('./lazyIndex') +); +export const lazyBar = new LazyAction(lazyModule, m => m.bar); + //// [/src/lazyIndex.ts] export { default as bar } from './bar'; //// [/src/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "declaration": true, - "outDir": "obj", - "incremental": true - } +{ + "compilerOptions": { + "target": "es5", + "declaration": true, + "outDir": "obj", + "incremental": true + } } Output:: /lib/tsc --b /src --verbose -[12:00:06 AM] Projects in this build: +[12:00:12 AM] Projects in this build: * src/tsconfig.json -[12:00:07 AM] Project 'src/tsconfig.json' is out of date because output file 'src/obj/tsconfig.tsbuildinfo' does not exist +[12:00:13 AM] Project 'src/tsconfig.json' is out of date because output file 'src/obj/tsconfig.tsbuildinfo' does not exist -[12:00:08 AM] Building project '/src/tsconfig.json'... +[12:00:14 AM] Building project '/src/tsconfig.json'... exitCode:: ExitStatus.Success @@ -153,7 +156,7 @@ Object.defineProperty(exports, "bar", { enumerable: true, get: function () { ret //// [/src/obj/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyindex.ts","../index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"5936740878-interface RawAction {\r\n (...args: any[]): Promise | void;\r\n}\r\ninterface ActionFactory {\r\n (target: T): T;\r\n}\r\ndeclare function foo(): ActionFactory;\r\nexport default foo()(function foobar(param: string): void {\r\n});","signature":"1630430607-declare const _default: (param: string) => void;\nexport default _default;\n"},{"version":"-21659820217-export class LazyModule {\r\n constructor(private importCallback: () => Promise) {}\r\n}\r\n\r\nexport class LazyAction<\r\n TAction extends (...args: any[]) => any,\r\n TModule\r\n> {\r\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\r\n }\r\n}\r\n","signature":"-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n"},{"version":"-9780226215-interface PromiseConstructor {\r\n new (): Promise;\r\n}\r\ndeclare var Promise: PromiseConstructor;\r\ninterface Promise {\r\n}","affectsGlobalScope":true},"-6956449754-export { default as bar } from './bar';\n",{"version":"-11602502901-import { LazyAction, LazyModule } from './bundling';\r\nconst lazyModule = new LazyModule(() =>\r\n import('./lazyIndex')\r\n);\r\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);","signature":"-13696684486-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n"}],"root":[[2,6]],"options":{"declaration":true,"outDir":"./","target":1},"fileIdsList":[[3,5],[2]],"referencedMap":[[6,1],[5,2]],"exportedModulesMap":[[6,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,6,5]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyindex.ts","../index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"9420269200-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(param: string): void {\n});\n","signature":"1630430607-declare const _default: (param: string) => void;\nexport default _default;\n"},{"version":"-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n","signature":"-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n"},{"version":"-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n","affectsGlobalScope":true},"-6956449754-export { default as bar } from './bar';\n",{"version":"6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n","signature":"-13696684486-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n"}],"root":[[2,6]],"options":{"declaration":true,"outDir":"./","target":1},"fileIdsList":[[3,5],[2]],"referencedMap":[[6,1],[5,2]],"exportedModulesMap":[[6,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,6,5]},"version":"FakeTSVersion"} //// [/src/obj/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -187,27 +190,27 @@ Object.defineProperty(exports, "bar", { enumerable: true, get: function () { ret }, "../bar.ts": { "original": { - "version": "5936740878-interface RawAction {\r\n (...args: any[]): Promise | void;\r\n}\r\ninterface ActionFactory {\r\n (target: T): T;\r\n}\r\ndeclare function foo(): ActionFactory;\r\nexport default foo()(function foobar(param: string): void {\r\n});", + "version": "9420269200-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(param: string): void {\n});\n", "signature": "1630430607-declare const _default: (param: string) => void;\nexport default _default;\n" }, - "version": "5936740878-interface RawAction {\r\n (...args: any[]): Promise | void;\r\n}\r\ninterface ActionFactory {\r\n (target: T): T;\r\n}\r\ndeclare function foo(): ActionFactory;\r\nexport default foo()(function foobar(param: string): void {\r\n});", + "version": "9420269200-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(param: string): void {\n});\n", "signature": "1630430607-declare const _default: (param: string) => void;\nexport default _default;\n" }, "../bundling.ts": { "original": { - "version": "-21659820217-export class LazyModule {\r\n constructor(private importCallback: () => Promise) {}\r\n}\r\n\r\nexport class LazyAction<\r\n TAction extends (...args: any[]) => any,\r\n TModule\r\n> {\r\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\r\n }\r\n}\r\n", + "version": "-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n", "signature": "-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n" }, - "version": "-21659820217-export class LazyModule {\r\n constructor(private importCallback: () => Promise) {}\r\n}\r\n\r\nexport class LazyAction<\r\n TAction extends (...args: any[]) => any,\r\n TModule\r\n> {\r\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\r\n }\r\n}\r\n", + "version": "-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n", "signature": "-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n" }, "../global.d.ts": { "original": { - "version": "-9780226215-interface PromiseConstructor {\r\n new (): Promise;\r\n}\r\ndeclare var Promise: PromiseConstructor;\r\ninterface Promise {\r\n}", + "version": "-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n", "affectsGlobalScope": true }, - "version": "-9780226215-interface PromiseConstructor {\r\n new (): Promise;\r\n}\r\ndeclare var Promise: PromiseConstructor;\r\ninterface Promise {\r\n}", - "signature": "-9780226215-interface PromiseConstructor {\r\n new (): Promise;\r\n}\r\ndeclare var Promise: PromiseConstructor;\r\ninterface Promise {\r\n}", + "version": "-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n", + "signature": "-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n", "affectsGlobalScope": true }, "../lazyindex.ts": { @@ -216,10 +219,10 @@ Object.defineProperty(exports, "bar", { enumerable: true, get: function () { ret }, "../index.ts": { "original": { - "version": "-11602502901-import { LazyAction, LazyModule } from './bundling';\r\nconst lazyModule = new LazyModule(() =>\r\n import('./lazyIndex')\r\n);\r\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", + "version": "6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n", "signature": "-13696684486-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n" }, - "version": "-11602502901-import { LazyAction, LazyModule } from './bundling';\r\nconst lazyModule = new LazyModule(() =>\r\n import('./lazyIndex')\r\n);\r\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", + "version": "6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n", "signature": "-13696684486-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n" } }, @@ -271,7 +274,7 @@ Object.defineProperty(exports, "bar", { enumerable: true, get: function () { ret ] }, "version": "FakeTSVersion", - "size": 2601 + "size": 2549 } @@ -279,26 +282,27 @@ Object.defineProperty(exports, "bar", { enumerable: true, get: function () { ret Change:: incremental-declaration-changes Input:: //// [/src/bar.ts] -interface RawAction { - (...args: any[]): Promise | void; -} -interface ActionFactory { - (target: T): T; -} -declare function foo(): ActionFactory; -export default foo()(function foobar(): void { -}); +interface RawAction { + (...args: any[]): Promise | void; +} +interface ActionFactory { + (target: T): T; +} +declare function foo(): ActionFactory; +export default foo()(function foobar(): void { +}); + Output:: /lib/tsc --b /src --verbose -[12:00:22 AM] Projects in this build: +[12:00:28 AM] Projects in this build: * src/tsconfig.json -[12:00:23 AM] Project 'src/tsconfig.json' is out of date because output 'src/obj/tsconfig.tsbuildinfo' is older than input 'src/bar.ts' +[12:00:29 AM] Project 'src/tsconfig.json' is out of date because output 'src/obj/tsconfig.tsbuildinfo' is older than input 'src/bar.ts' -[12:00:24 AM] Building project '/src/tsconfig.json'... +[12:00:30 AM] Building project '/src/tsconfig.json'... exitCode:: ExitStatus.Success @@ -323,7 +327,7 @@ export declare const lazyBar: LazyAction<() => void, typeof import("./lazyIndex" //// [/src/obj/lazyIndex.d.ts] file written with same contents //// [/src/obj/lazyIndex.js] file written with same contents //// [/src/obj/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyindex.ts","../index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"747071916-interface RawAction {\r\n (...args: any[]): Promise | void;\r\n}\r\ninterface ActionFactory {\r\n (target: T): T;\r\n}\r\ndeclare function foo(): ActionFactory;\r\nexport default foo()(function foobar(): void {\r\n});","signature":"-1866892563-declare const _default: () => void;\nexport default _default;\n"},{"version":"-21659820217-export class LazyModule {\r\n constructor(private importCallback: () => Promise) {}\r\n}\r\n\r\nexport class LazyAction<\r\n TAction extends (...args: any[]) => any,\r\n TModule\r\n> {\r\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\r\n }\r\n}\r\n","signature":"-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n"},{"version":"-9780226215-interface PromiseConstructor {\r\n new (): Promise;\r\n}\r\ndeclare var Promise: PromiseConstructor;\r\ninterface Promise {\r\n}","affectsGlobalScope":true},"-6956449754-export { default as bar } from './bar';\n",{"version":"-11602502901-import { LazyAction, LazyModule } from './bundling';\r\nconst lazyModule = new LazyModule(() =>\r\n import('./lazyIndex')\r\n);\r\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);","signature":"-4053129224-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n"}],"root":[[2,6]],"options":{"declaration":true,"outDir":"./","target":1},"fileIdsList":[[3,5],[2]],"referencedMap":[[6,1],[5,2]],"exportedModulesMap":[[6,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,6,5]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyindex.ts","../index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"10075719182-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(): void {\n});\n","signature":"-1866892563-declare const _default: () => void;\nexport default _default;\n"},{"version":"-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n","signature":"-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n"},{"version":"-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n","affectsGlobalScope":true},"-6956449754-export { default as bar } from './bar';\n",{"version":"6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n","signature":"-4053129224-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n"}],"root":[[2,6]],"options":{"declaration":true,"outDir":"./","target":1},"fileIdsList":[[3,5],[2]],"referencedMap":[[6,1],[5,2]],"exportedModulesMap":[[6,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,6,5]},"version":"FakeTSVersion"} //// [/src/obj/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -357,27 +361,27 @@ export declare const lazyBar: LazyAction<() => void, typeof import("./lazyIndex" }, "../bar.ts": { "original": { - "version": "747071916-interface RawAction {\r\n (...args: any[]): Promise | void;\r\n}\r\ninterface ActionFactory {\r\n (target: T): T;\r\n}\r\ndeclare function foo(): ActionFactory;\r\nexport default foo()(function foobar(): void {\r\n});", + "version": "10075719182-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(): void {\n});\n", "signature": "-1866892563-declare const _default: () => void;\nexport default _default;\n" }, - "version": "747071916-interface RawAction {\r\n (...args: any[]): Promise | void;\r\n}\r\ninterface ActionFactory {\r\n (target: T): T;\r\n}\r\ndeclare function foo(): ActionFactory;\r\nexport default foo()(function foobar(): void {\r\n});", + "version": "10075719182-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(): void {\n});\n", "signature": "-1866892563-declare const _default: () => void;\nexport default _default;\n" }, "../bundling.ts": { "original": { - "version": "-21659820217-export class LazyModule {\r\n constructor(private importCallback: () => Promise) {}\r\n}\r\n\r\nexport class LazyAction<\r\n TAction extends (...args: any[]) => any,\r\n TModule\r\n> {\r\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\r\n }\r\n}\r\n", + "version": "-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n", "signature": "-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n" }, - "version": "-21659820217-export class LazyModule {\r\n constructor(private importCallback: () => Promise) {}\r\n}\r\n\r\nexport class LazyAction<\r\n TAction extends (...args: any[]) => any,\r\n TModule\r\n> {\r\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\r\n }\r\n}\r\n", + "version": "-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n", "signature": "-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n" }, "../global.d.ts": { "original": { - "version": "-9780226215-interface PromiseConstructor {\r\n new (): Promise;\r\n}\r\ndeclare var Promise: PromiseConstructor;\r\ninterface Promise {\r\n}", + "version": "-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n", "affectsGlobalScope": true }, - "version": "-9780226215-interface PromiseConstructor {\r\n new (): Promise;\r\n}\r\ndeclare var Promise: PromiseConstructor;\r\ninterface Promise {\r\n}", - "signature": "-9780226215-interface PromiseConstructor {\r\n new (): Promise;\r\n}\r\ndeclare var Promise: PromiseConstructor;\r\ninterface Promise {\r\n}", + "version": "-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n", + "signature": "-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n", "affectsGlobalScope": true }, "../lazyindex.ts": { @@ -386,10 +390,10 @@ export declare const lazyBar: LazyAction<() => void, typeof import("./lazyIndex" }, "../index.ts": { "original": { - "version": "-11602502901-import { LazyAction, LazyModule } from './bundling';\r\nconst lazyModule = new LazyModule(() =>\r\n import('./lazyIndex')\r\n);\r\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", + "version": "6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n", "signature": "-4053129224-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n" }, - "version": "-11602502901-import { LazyAction, LazyModule } from './bundling';\r\nconst lazyModule = new LazyModule(() =>\r\n import('./lazyIndex')\r\n);\r\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", + "version": "6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n", "signature": "-4053129224-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n" } }, @@ -441,7 +445,7 @@ export declare const lazyBar: LazyAction<() => void, typeof import("./lazyIndex" ] }, "version": "FakeTSVersion", - "size": 2561 + "size": 2511 } @@ -449,26 +453,27 @@ export declare const lazyBar: LazyAction<() => void, typeof import("./lazyIndex" Change:: incremental-declaration-changes Input:: //// [/src/bar.ts] -interface RawAction { - (...args: any[]): Promise | void; -} -interface ActionFactory { - (target: T): T; -} -declare function foo(): ActionFactory; -export default foo()(function foobar(param: string): void { -}); +interface RawAction { + (...args: any[]): Promise | void; +} +interface ActionFactory { + (target: T): T; +} +declare function foo(): ActionFactory; +export default foo()(function foobar(param: string): void { +}); + Output:: /lib/tsc --b /src --verbose -[12:00:34 AM] Projects in this build: +[12:00:40 AM] Projects in this build: * src/tsconfig.json -[12:00:35 AM] Project 'src/tsconfig.json' is out of date because output 'src/obj/tsconfig.tsbuildinfo' is older than input 'src/bar.ts' +[12:00:41 AM] Project 'src/tsconfig.json' is out of date because output 'src/obj/tsconfig.tsbuildinfo' is older than input 'src/bar.ts' -[12:00:36 AM] Building project '/src/tsconfig.json'... +[12:00:42 AM] Building project '/src/tsconfig.json'... exitCode:: ExitStatus.Success @@ -493,7 +498,7 @@ export declare const lazyBar: LazyAction<(param: string) => void, typeof import( //// [/src/obj/lazyIndex.d.ts] file written with same contents //// [/src/obj/lazyIndex.js] file written with same contents //// [/src/obj/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyindex.ts","../index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"5936740878-interface RawAction {\r\n (...args: any[]): Promise | void;\r\n}\r\ninterface ActionFactory {\r\n (target: T): T;\r\n}\r\ndeclare function foo(): ActionFactory;\r\nexport default foo()(function foobar(param: string): void {\r\n});","signature":"1630430607-declare const _default: (param: string) => void;\nexport default _default;\n"},{"version":"-21659820217-export class LazyModule {\r\n constructor(private importCallback: () => Promise) {}\r\n}\r\n\r\nexport class LazyAction<\r\n TAction extends (...args: any[]) => any,\r\n TModule\r\n> {\r\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\r\n }\r\n}\r\n","signature":"-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n"},{"version":"-9780226215-interface PromiseConstructor {\r\n new (): Promise;\r\n}\r\ndeclare var Promise: PromiseConstructor;\r\ninterface Promise {\r\n}","affectsGlobalScope":true},"-6956449754-export { default as bar } from './bar';\n",{"version":"-11602502901-import { LazyAction, LazyModule } from './bundling';\r\nconst lazyModule = new LazyModule(() =>\r\n import('./lazyIndex')\r\n);\r\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);","signature":"-13696684486-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n"}],"root":[[2,6]],"options":{"declaration":true,"outDir":"./","target":1},"fileIdsList":[[3,5],[2]],"referencedMap":[[6,1],[5,2]],"exportedModulesMap":[[6,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,6,5]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyindex.ts","../index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"9420269200-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(param: string): void {\n});\n","signature":"1630430607-declare const _default: (param: string) => void;\nexport default _default;\n"},{"version":"-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n","signature":"-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n"},{"version":"-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n","affectsGlobalScope":true},"-6956449754-export { default as bar } from './bar';\n",{"version":"6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n","signature":"-13696684486-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n"}],"root":[[2,6]],"options":{"declaration":true,"outDir":"./","target":1},"fileIdsList":[[3,5],[2]],"referencedMap":[[6,1],[5,2]],"exportedModulesMap":[[6,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,6,5]},"version":"FakeTSVersion"} //// [/src/obj/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -527,27 +532,27 @@ export declare const lazyBar: LazyAction<(param: string) => void, typeof import( }, "../bar.ts": { "original": { - "version": "5936740878-interface RawAction {\r\n (...args: any[]): Promise | void;\r\n}\r\ninterface ActionFactory {\r\n (target: T): T;\r\n}\r\ndeclare function foo(): ActionFactory;\r\nexport default foo()(function foobar(param: string): void {\r\n});", + "version": "9420269200-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(param: string): void {\n});\n", "signature": "1630430607-declare const _default: (param: string) => void;\nexport default _default;\n" }, - "version": "5936740878-interface RawAction {\r\n (...args: any[]): Promise | void;\r\n}\r\ninterface ActionFactory {\r\n (target: T): T;\r\n}\r\ndeclare function foo(): ActionFactory;\r\nexport default foo()(function foobar(param: string): void {\r\n});", + "version": "9420269200-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(param: string): void {\n});\n", "signature": "1630430607-declare const _default: (param: string) => void;\nexport default _default;\n" }, "../bundling.ts": { "original": { - "version": "-21659820217-export class LazyModule {\r\n constructor(private importCallback: () => Promise) {}\r\n}\r\n\r\nexport class LazyAction<\r\n TAction extends (...args: any[]) => any,\r\n TModule\r\n> {\r\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\r\n }\r\n}\r\n", + "version": "-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n", "signature": "-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n" }, - "version": "-21659820217-export class LazyModule {\r\n constructor(private importCallback: () => Promise) {}\r\n}\r\n\r\nexport class LazyAction<\r\n TAction extends (...args: any[]) => any,\r\n TModule\r\n> {\r\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\r\n }\r\n}\r\n", + "version": "-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n", "signature": "-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n" }, "../global.d.ts": { "original": { - "version": "-9780226215-interface PromiseConstructor {\r\n new (): Promise;\r\n}\r\ndeclare var Promise: PromiseConstructor;\r\ninterface Promise {\r\n}", + "version": "-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n", "affectsGlobalScope": true }, - "version": "-9780226215-interface PromiseConstructor {\r\n new (): Promise;\r\n}\r\ndeclare var Promise: PromiseConstructor;\r\ninterface Promise {\r\n}", - "signature": "-9780226215-interface PromiseConstructor {\r\n new (): Promise;\r\n}\r\ndeclare var Promise: PromiseConstructor;\r\ninterface Promise {\r\n}", + "version": "-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n", + "signature": "-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n", "affectsGlobalScope": true }, "../lazyindex.ts": { @@ -556,10 +561,10 @@ export declare const lazyBar: LazyAction<(param: string) => void, typeof import( }, "../index.ts": { "original": { - "version": "-11602502901-import { LazyAction, LazyModule } from './bundling';\r\nconst lazyModule = new LazyModule(() =>\r\n import('./lazyIndex')\r\n);\r\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", + "version": "6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n", "signature": "-13696684486-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n" }, - "version": "-11602502901-import { LazyAction, LazyModule } from './bundling';\r\nconst lazyModule = new LazyModule(() =>\r\n import('./lazyIndex')\r\n);\r\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", + "version": "6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n", "signature": "-13696684486-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n" } }, @@ -611,6 +616,6 @@ export declare const lazyBar: LazyAction<(param: string) => void, typeof import( ] }, "version": "FakeTSVersion", - "size": 2601 + "size": 2549 } diff --git a/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/reports-errors-in-files-affected-by-change-in-signature-with-isolatedModules.js b/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/reports-errors-in-files-affected-by-change-in-signature-with-isolatedModules.js index d99f8982bf531..9f36f34013760 100644 --- a/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/reports-errors-in-files-affected-by-change-in-signature-with-isolatedModules.js +++ b/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/reports-errors-in-files-affected-by-change-in-signature-with-isolatedModules.js @@ -16,44 +16,47 @@ interface ReadonlyArray {} declare const console: { log(msg: any): void; }; //// [/src/bar.ts] -interface RawAction { - (...args: any[]): Promise | void; -} -interface ActionFactory { - (target: T): T; -} -declare function foo(): ActionFactory; -export default foo()(function foobar(param: string): void { -}); +interface RawAction { + (...args: any[]): Promise | void; +} +interface ActionFactory { + (target: T): T; +} +declare function foo(): ActionFactory; +export default foo()(function foobar(param: string): void { +}); -//// [/src/bundling.ts] -export class LazyModule { - constructor(private importCallback: () => Promise) {} -} -export class LazyAction< - TAction extends (...args: any[]) => any, - TModule -> { - constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) { - } -} +//// [/src/bundling.ts] +export class LazyModule { + constructor(private importCallback: () => Promise) {} +} + +export class LazyAction< + TAction extends (...args: any[]) => any, + TModule +> { + constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) { + } +} //// [/src/global.d.ts] -interface PromiseConstructor { - new (): Promise; -} -declare var Promise: PromiseConstructor; -interface Promise { -} +interface PromiseConstructor { + new (): Promise; +} +declare var Promise: PromiseConstructor; +interface Promise { +} + //// [/src/index.ts] -import { LazyAction, LazyModule } from './bundling'; -const lazyModule = new LazyModule(() => - import('./lazyIndex') -); -export const lazyBar = new LazyAction(lazyModule, m => m.bar); +import { LazyAction, LazyModule } from './bundling'; +const lazyModule = new LazyModule(() => + import('./lazyIndex') +); +export const lazyBar = new LazyAction(lazyModule, m => m.bar); + //// [/src/lazyIndex.ts] export { default as bar } from './bar'; @@ -62,25 +65,25 @@ import { default as bar } from './bar'; bar("hello"); //// [/src/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "declaration": true, - "outDir": "obj", - "incremental": true, "isolatedModules": true - } +{ + "compilerOptions": { + "target": "es5", + "declaration": true, + "outDir": "obj", + "incremental": true, "isolatedModules": true + } } Output:: /lib/tsc --b /src --verbose -[12:00:08 AM] Projects in this build: +[12:00:14 AM] Projects in this build: * src/tsconfig.json -[12:00:09 AM] Project 'src/tsconfig.json' is out of date because output file 'src/obj/tsconfig.tsbuildinfo' does not exist +[12:00:15 AM] Project 'src/tsconfig.json' is out of date because output file 'src/obj/tsconfig.tsbuildinfo' does not exist -[12:00:10 AM] Building project '/src/tsconfig.json'... +[12:00:16 AM] Building project '/src/tsconfig.json'... exitCode:: ExitStatus.Success @@ -157,7 +160,7 @@ var bar_2 = require("./bar"); //// [/src/obj/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyindex.ts","../index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"5936740878-interface RawAction {\r\n (...args: any[]): Promise | void;\r\n}\r\ninterface ActionFactory {\r\n (target: T): T;\r\n}\r\ndeclare function foo(): ActionFactory;\r\nexport default foo()(function foobar(param: string): void {\r\n});","signature":"1630430607-declare const _default: (param: string) => void;\nexport default _default;\n"},{"version":"-21659820217-export class LazyModule {\r\n constructor(private importCallback: () => Promise) {}\r\n}\r\n\r\nexport class LazyAction<\r\n TAction extends (...args: any[]) => any,\r\n TModule\r\n> {\r\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\r\n }\r\n}\r\n","signature":"-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n"},{"version":"-9780226215-interface PromiseConstructor {\r\n new (): Promise;\r\n}\r\ndeclare var Promise: PromiseConstructor;\r\ninterface Promise {\r\n}","affectsGlobalScope":true},{"version":"3017320451-export { default as bar } from './bar';\n\nimport { default as bar } from './bar';\nbar(\"hello\");","signature":"-6956449754-export { default as bar } from './bar';\n"},{"version":"-11602502901-import { LazyAction, LazyModule } from './bundling';\r\nconst lazyModule = new LazyModule(() =>\r\n import('./lazyIndex')\r\n);\r\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);","signature":"-13696684486-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n"}],"root":[[2,6]],"options":{"declaration":true,"outDir":"./","target":1},"fileIdsList":[[3,5],[2]],"referencedMap":[[6,1],[5,2]],"exportedModulesMap":[[6,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,6,5]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyindex.ts","../index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"9420269200-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(param: string): void {\n});\n","signature":"1630430607-declare const _default: (param: string) => void;\nexport default _default;\n"},{"version":"-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n","signature":"-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n"},{"version":"-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n","affectsGlobalScope":true},{"version":"3017320451-export { default as bar } from './bar';\n\nimport { default as bar } from './bar';\nbar(\"hello\");","signature":"-6956449754-export { default as bar } from './bar';\n"},{"version":"6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n","signature":"-13696684486-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n"}],"root":[[2,6]],"options":{"declaration":true,"outDir":"./","target":1},"fileIdsList":[[3,5],[2]],"referencedMap":[[6,1],[5,2]],"exportedModulesMap":[[6,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,6,5]},"version":"FakeTSVersion"} //// [/src/obj/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -191,27 +194,27 @@ var bar_2 = require("./bar"); }, "../bar.ts": { "original": { - "version": "5936740878-interface RawAction {\r\n (...args: any[]): Promise | void;\r\n}\r\ninterface ActionFactory {\r\n (target: T): T;\r\n}\r\ndeclare function foo(): ActionFactory;\r\nexport default foo()(function foobar(param: string): void {\r\n});", + "version": "9420269200-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(param: string): void {\n});\n", "signature": "1630430607-declare const _default: (param: string) => void;\nexport default _default;\n" }, - "version": "5936740878-interface RawAction {\r\n (...args: any[]): Promise | void;\r\n}\r\ninterface ActionFactory {\r\n (target: T): T;\r\n}\r\ndeclare function foo(): ActionFactory;\r\nexport default foo()(function foobar(param: string): void {\r\n});", + "version": "9420269200-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(param: string): void {\n});\n", "signature": "1630430607-declare const _default: (param: string) => void;\nexport default _default;\n" }, "../bundling.ts": { "original": { - "version": "-21659820217-export class LazyModule {\r\n constructor(private importCallback: () => Promise) {}\r\n}\r\n\r\nexport class LazyAction<\r\n TAction extends (...args: any[]) => any,\r\n TModule\r\n> {\r\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\r\n }\r\n}\r\n", + "version": "-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n", "signature": "-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n" }, - "version": "-21659820217-export class LazyModule {\r\n constructor(private importCallback: () => Promise) {}\r\n}\r\n\r\nexport class LazyAction<\r\n TAction extends (...args: any[]) => any,\r\n TModule\r\n> {\r\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\r\n }\r\n}\r\n", + "version": "-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n", "signature": "-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n" }, "../global.d.ts": { "original": { - "version": "-9780226215-interface PromiseConstructor {\r\n new (): Promise;\r\n}\r\ndeclare var Promise: PromiseConstructor;\r\ninterface Promise {\r\n}", + "version": "-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n", "affectsGlobalScope": true }, - "version": "-9780226215-interface PromiseConstructor {\r\n new (): Promise;\r\n}\r\ndeclare var Promise: PromiseConstructor;\r\ninterface Promise {\r\n}", - "signature": "-9780226215-interface PromiseConstructor {\r\n new (): Promise;\r\n}\r\ndeclare var Promise: PromiseConstructor;\r\ninterface Promise {\r\n}", + "version": "-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n", + "signature": "-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n", "affectsGlobalScope": true }, "../lazyindex.ts": { @@ -224,10 +227,10 @@ var bar_2 = require("./bar"); }, "../index.ts": { "original": { - "version": "-11602502901-import { LazyAction, LazyModule } from './bundling';\r\nconst lazyModule = new LazyModule(() =>\r\n import('./lazyIndex')\r\n);\r\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", + "version": "6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n", "signature": "-13696684486-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n" }, - "version": "-11602502901-import { LazyAction, LazyModule } from './bundling';\r\nconst lazyModule = new LazyModule(() =>\r\n import('./lazyIndex')\r\n);\r\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", + "version": "6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n", "signature": "-13696684486-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n" } }, @@ -279,7 +282,7 @@ var bar_2 = require("./bar"); ] }, "version": "FakeTSVersion", - "size": 2738 + "size": 2686 } @@ -287,26 +290,27 @@ var bar_2 = require("./bar"); Change:: incremental-declaration-changes Input:: //// [/src/bar.ts] -interface RawAction { - (...args: any[]): Promise | void; -} -interface ActionFactory { - (target: T): T; -} -declare function foo(): ActionFactory; -export default foo()(function foobar(): void { -}); +interface RawAction { + (...args: any[]): Promise | void; +} +interface ActionFactory { + (target: T): T; +} +declare function foo(): ActionFactory; +export default foo()(function foobar(): void { +}); + Output:: /lib/tsc --b /src --verbose -[12:00:24 AM] Projects in this build: +[12:00:30 AM] Projects in this build: * src/tsconfig.json -[12:00:25 AM] Project 'src/tsconfig.json' is out of date because output 'src/obj/tsconfig.tsbuildinfo' is older than input 'src/bar.ts' +[12:00:31 AM] Project 'src/tsconfig.json' is out of date because output 'src/obj/tsconfig.tsbuildinfo' is older than input 'src/bar.ts' -[12:00:26 AM] Building project '/src/tsconfig.json'... +[12:00:32 AM] Building project '/src/tsconfig.json'... src/lazyIndex.ts:4:5 - error TS2554: Expected 0 arguments, but got 1. @@ -320,7 +324,7 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped //// [/src/obj/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyindex.ts","../index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"747071916-interface RawAction {\r\n (...args: any[]): Promise | void;\r\n}\r\ninterface ActionFactory {\r\n (target: T): T;\r\n}\r\ndeclare function foo(): ActionFactory;\r\nexport default foo()(function foobar(): void {\r\n});","signature":"-1866892563-declare const _default: () => void;\nexport default _default;\n"},{"version":"-21659820217-export class LazyModule {\r\n constructor(private importCallback: () => Promise) {}\r\n}\r\n\r\nexport class LazyAction<\r\n TAction extends (...args: any[]) => any,\r\n TModule\r\n> {\r\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\r\n }\r\n}\r\n","signature":"-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n"},{"version":"-9780226215-interface PromiseConstructor {\r\n new (): Promise;\r\n}\r\ndeclare var Promise: PromiseConstructor;\r\ninterface Promise {\r\n}","affectsGlobalScope":true},"3017320451-export { default as bar } from './bar';\n\nimport { default as bar } from './bar';\nbar(\"hello\");","-11602502901-import { LazyAction, LazyModule } from './bundling';\r\nconst lazyModule = new LazyModule(() =>\r\n import('./lazyIndex')\r\n);\r\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);"],"root":[[2,6]],"options":{"declaration":true,"outDir":"./","target":1},"fileIdsList":[[3,5],[2]],"referencedMap":[[6,1],[5,2]],"exportedModulesMap":[[6,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,6,[5,[{"file":"../lazyindex.ts","start":85,"length":7,"messageText":"Expected 0 arguments, but got 1.","category":1,"code":2554}]]],"affectedFilesPendingEmit":[2,[6],[5]]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyindex.ts","../index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"10075719182-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(): void {\n});\n","signature":"-1866892563-declare const _default: () => void;\nexport default _default;\n"},{"version":"-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n","signature":"-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n"},{"version":"-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n","affectsGlobalScope":true},"3017320451-export { default as bar } from './bar';\n\nimport { default as bar } from './bar';\nbar(\"hello\");","6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n"],"root":[[2,6]],"options":{"declaration":true,"outDir":"./","target":1},"fileIdsList":[[3,5],[2]],"referencedMap":[[6,1],[5,2]],"exportedModulesMap":[[6,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,6,[5,[{"file":"../lazyindex.ts","start":85,"length":7,"messageText":"Expected 0 arguments, but got 1.","category":1,"code":2554}]]],"affectedFilesPendingEmit":[2,[6],[5]]},"version":"FakeTSVersion"} //// [/src/obj/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -354,27 +358,27 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped }, "../bar.ts": { "original": { - "version": "747071916-interface RawAction {\r\n (...args: any[]): Promise | void;\r\n}\r\ninterface ActionFactory {\r\n (target: T): T;\r\n}\r\ndeclare function foo(): ActionFactory;\r\nexport default foo()(function foobar(): void {\r\n});", + "version": "10075719182-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(): void {\n});\n", "signature": "-1866892563-declare const _default: () => void;\nexport default _default;\n" }, - "version": "747071916-interface RawAction {\r\n (...args: any[]): Promise | void;\r\n}\r\ninterface ActionFactory {\r\n (target: T): T;\r\n}\r\ndeclare function foo(): ActionFactory;\r\nexport default foo()(function foobar(): void {\r\n});", + "version": "10075719182-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(): void {\n});\n", "signature": "-1866892563-declare const _default: () => void;\nexport default _default;\n" }, "../bundling.ts": { "original": { - "version": "-21659820217-export class LazyModule {\r\n constructor(private importCallback: () => Promise) {}\r\n}\r\n\r\nexport class LazyAction<\r\n TAction extends (...args: any[]) => any,\r\n TModule\r\n> {\r\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\r\n }\r\n}\r\n", + "version": "-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n", "signature": "-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n" }, - "version": "-21659820217-export class LazyModule {\r\n constructor(private importCallback: () => Promise) {}\r\n}\r\n\r\nexport class LazyAction<\r\n TAction extends (...args: any[]) => any,\r\n TModule\r\n> {\r\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\r\n }\r\n}\r\n", + "version": "-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n", "signature": "-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n" }, "../global.d.ts": { "original": { - "version": "-9780226215-interface PromiseConstructor {\r\n new (): Promise;\r\n}\r\ndeclare var Promise: PromiseConstructor;\r\ninterface Promise {\r\n}", + "version": "-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n", "affectsGlobalScope": true }, - "version": "-9780226215-interface PromiseConstructor {\r\n new (): Promise;\r\n}\r\ndeclare var Promise: PromiseConstructor;\r\ninterface Promise {\r\n}", - "signature": "-9780226215-interface PromiseConstructor {\r\n new (): Promise;\r\n}\r\ndeclare var Promise: PromiseConstructor;\r\ninterface Promise {\r\n}", + "version": "-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n", + "signature": "-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n", "affectsGlobalScope": true }, "../lazyindex.ts": { @@ -382,8 +386,8 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped "signature": "3017320451-export { default as bar } from './bar';\n\nimport { default as bar } from './bar';\nbar(\"hello\");" }, "../index.ts": { - "version": "-11602502901-import { LazyAction, LazyModule } from './bundling';\r\nconst lazyModule = new LazyModule(() =>\r\n import('./lazyIndex')\r\n);\r\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", - "signature": "-11602502901-import { LazyAction, LazyModule } from './bundling';\r\nconst lazyModule = new LazyModule(() =>\r\n import('./lazyIndex')\r\n);\r\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);" + "version": "6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n", + "signature": "6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n" } }, "root": [ @@ -464,7 +468,7 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped ] }, "version": "FakeTSVersion", - "size": 2616 + "size": 2566 } @@ -472,26 +476,27 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: incremental-declaration-changes Input:: //// [/src/bar.ts] -interface RawAction { - (...args: any[]): Promise | void; -} -interface ActionFactory { - (target: T): T; -} -declare function foo(): ActionFactory; -export default foo()(function foobar(param: string): void { -}); +interface RawAction { + (...args: any[]): Promise | void; +} +interface ActionFactory { + (target: T): T; +} +declare function foo(): ActionFactory; +export default foo()(function foobar(param: string): void { +}); + Output:: /lib/tsc --b /src --verbose -[12:00:31 AM] Projects in this build: +[12:00:37 AM] Projects in this build: * src/tsconfig.json -[12:00:32 AM] Project 'src/tsconfig.json' is out of date because buildinfo file 'src/obj/tsconfig.tsbuildinfo' indicates that some of the changes were not emitted +[12:00:38 AM] Project 'src/tsconfig.json' is out of date because buildinfo file 'src/obj/tsconfig.tsbuildinfo' indicates that some of the changes were not emitted -[12:00:33 AM] Building project '/src/tsconfig.json'... +[12:00:39 AM] Building project '/src/tsconfig.json'... exitCode:: ExitStatus.Success @@ -501,7 +506,7 @@ exitCode:: ExitStatus.Success //// [/src/obj/index.d.ts] file written with same contents //// [/src/obj/lazyIndex.d.ts] file written with same contents //// [/src/obj/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyindex.ts","../index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"5936740878-interface RawAction {\r\n (...args: any[]): Promise | void;\r\n}\r\ninterface ActionFactory {\r\n (target: T): T;\r\n}\r\ndeclare function foo(): ActionFactory;\r\nexport default foo()(function foobar(param: string): void {\r\n});","signature":"1630430607-declare const _default: (param: string) => void;\nexport default _default;\n"},{"version":"-21659820217-export class LazyModule {\r\n constructor(private importCallback: () => Promise) {}\r\n}\r\n\r\nexport class LazyAction<\r\n TAction extends (...args: any[]) => any,\r\n TModule\r\n> {\r\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\r\n }\r\n}\r\n","signature":"-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n"},{"version":"-9780226215-interface PromiseConstructor {\r\n new (): Promise;\r\n}\r\ndeclare var Promise: PromiseConstructor;\r\ninterface Promise {\r\n}","affectsGlobalScope":true},{"version":"3017320451-export { default as bar } from './bar';\n\nimport { default as bar } from './bar';\nbar(\"hello\");","signature":"-6956449754-export { default as bar } from './bar';\n"},{"version":"-11602502901-import { LazyAction, LazyModule } from './bundling';\r\nconst lazyModule = new LazyModule(() =>\r\n import('./lazyIndex')\r\n);\r\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);","signature":"-13696684486-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n"}],"root":[[2,6]],"options":{"declaration":true,"outDir":"./","target":1},"fileIdsList":[[3,5],[2]],"referencedMap":[[6,1],[5,2]],"exportedModulesMap":[[6,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,6,5]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyindex.ts","../index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"9420269200-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(param: string): void {\n});\n","signature":"1630430607-declare const _default: (param: string) => void;\nexport default _default;\n"},{"version":"-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n","signature":"-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n"},{"version":"-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n","affectsGlobalScope":true},{"version":"3017320451-export { default as bar } from './bar';\n\nimport { default as bar } from './bar';\nbar(\"hello\");","signature":"-6956449754-export { default as bar } from './bar';\n"},{"version":"6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n","signature":"-13696684486-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n"}],"root":[[2,6]],"options":{"declaration":true,"outDir":"./","target":1},"fileIdsList":[[3,5],[2]],"referencedMap":[[6,1],[5,2]],"exportedModulesMap":[[6,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,6,5]},"version":"FakeTSVersion"} //// [/src/obj/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -535,27 +540,27 @@ exitCode:: ExitStatus.Success }, "../bar.ts": { "original": { - "version": "5936740878-interface RawAction {\r\n (...args: any[]): Promise | void;\r\n}\r\ninterface ActionFactory {\r\n (target: T): T;\r\n}\r\ndeclare function foo(): ActionFactory;\r\nexport default foo()(function foobar(param: string): void {\r\n});", + "version": "9420269200-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(param: string): void {\n});\n", "signature": "1630430607-declare const _default: (param: string) => void;\nexport default _default;\n" }, - "version": "5936740878-interface RawAction {\r\n (...args: any[]): Promise | void;\r\n}\r\ninterface ActionFactory {\r\n (target: T): T;\r\n}\r\ndeclare function foo(): ActionFactory;\r\nexport default foo()(function foobar(param: string): void {\r\n});", + "version": "9420269200-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(param: string): void {\n});\n", "signature": "1630430607-declare const _default: (param: string) => void;\nexport default _default;\n" }, "../bundling.ts": { "original": { - "version": "-21659820217-export class LazyModule {\r\n constructor(private importCallback: () => Promise) {}\r\n}\r\n\r\nexport class LazyAction<\r\n TAction extends (...args: any[]) => any,\r\n TModule\r\n> {\r\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\r\n }\r\n}\r\n", + "version": "-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n", "signature": "-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n" }, - "version": "-21659820217-export class LazyModule {\r\n constructor(private importCallback: () => Promise) {}\r\n}\r\n\r\nexport class LazyAction<\r\n TAction extends (...args: any[]) => any,\r\n TModule\r\n> {\r\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\r\n }\r\n}\r\n", + "version": "-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n", "signature": "-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n" }, "../global.d.ts": { "original": { - "version": "-9780226215-interface PromiseConstructor {\r\n new (): Promise;\r\n}\r\ndeclare var Promise: PromiseConstructor;\r\ninterface Promise {\r\n}", + "version": "-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n", "affectsGlobalScope": true }, - "version": "-9780226215-interface PromiseConstructor {\r\n new (): Promise;\r\n}\r\ndeclare var Promise: PromiseConstructor;\r\ninterface Promise {\r\n}", - "signature": "-9780226215-interface PromiseConstructor {\r\n new (): Promise;\r\n}\r\ndeclare var Promise: PromiseConstructor;\r\ninterface Promise {\r\n}", + "version": "-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n", + "signature": "-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n", "affectsGlobalScope": true }, "../lazyindex.ts": { @@ -568,10 +573,10 @@ exitCode:: ExitStatus.Success }, "../index.ts": { "original": { - "version": "-11602502901-import { LazyAction, LazyModule } from './bundling';\r\nconst lazyModule = new LazyModule(() =>\r\n import('./lazyIndex')\r\n);\r\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", + "version": "6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n", "signature": "-13696684486-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n" }, - "version": "-11602502901-import { LazyAction, LazyModule } from './bundling';\r\nconst lazyModule = new LazyModule(() =>\r\n import('./lazyIndex')\r\n);\r\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", + "version": "6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n", "signature": "-13696684486-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n" } }, @@ -623,7 +628,7 @@ exitCode:: ExitStatus.Success ] }, "version": "FakeTSVersion", - "size": 2738 + "size": 2686 } @@ -631,26 +636,27 @@ exitCode:: ExitStatus.Success Change:: incremental-declaration-changes Input:: //// [/src/bar.ts] -interface RawAction { - (...args: any[]): Promise | void; -} -interface ActionFactory { - (target: T): T; -} -declare function foo(): ActionFactory; -export default foo()(function foobar(): void { -}); +interface RawAction { + (...args: any[]): Promise | void; +} +interface ActionFactory { + (target: T): T; +} +declare function foo(): ActionFactory; +export default foo()(function foobar(): void { +}); + Output:: /lib/tsc --b /src --verbose -[12:00:42 AM] Projects in this build: +[12:00:48 AM] Projects in this build: * src/tsconfig.json -[12:00:43 AM] Project 'src/tsconfig.json' is out of date because output 'src/obj/tsconfig.tsbuildinfo' is older than input 'src/bar.ts' +[12:00:49 AM] Project 'src/tsconfig.json' is out of date because output 'src/obj/tsconfig.tsbuildinfo' is older than input 'src/bar.ts' -[12:00:44 AM] Building project '/src/tsconfig.json'... +[12:00:50 AM] Building project '/src/tsconfig.json'... src/lazyIndex.ts:4:5 - error TS2554: Expected 0 arguments, but got 1. @@ -664,7 +670,7 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped //// [/src/obj/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyindex.ts","../index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"747071916-interface RawAction {\r\n (...args: any[]): Promise | void;\r\n}\r\ninterface ActionFactory {\r\n (target: T): T;\r\n}\r\ndeclare function foo(): ActionFactory;\r\nexport default foo()(function foobar(): void {\r\n});","signature":"-1866892563-declare const _default: () => void;\nexport default _default;\n"},{"version":"-21659820217-export class LazyModule {\r\n constructor(private importCallback: () => Promise) {}\r\n}\r\n\r\nexport class LazyAction<\r\n TAction extends (...args: any[]) => any,\r\n TModule\r\n> {\r\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\r\n }\r\n}\r\n","signature":"-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n"},{"version":"-9780226215-interface PromiseConstructor {\r\n new (): Promise;\r\n}\r\ndeclare var Promise: PromiseConstructor;\r\ninterface Promise {\r\n}","affectsGlobalScope":true},"3017320451-export { default as bar } from './bar';\n\nimport { default as bar } from './bar';\nbar(\"hello\");","-11602502901-import { LazyAction, LazyModule } from './bundling';\r\nconst lazyModule = new LazyModule(() =>\r\n import('./lazyIndex')\r\n);\r\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);"],"root":[[2,6]],"options":{"declaration":true,"outDir":"./","target":1},"fileIdsList":[[3,5],[2]],"referencedMap":[[6,1],[5,2]],"exportedModulesMap":[[6,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,6,[5,[{"file":"../lazyindex.ts","start":85,"length":7,"messageText":"Expected 0 arguments, but got 1.","category":1,"code":2554}]]],"affectedFilesPendingEmit":[2,[6],[5]]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyindex.ts","../index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"10075719182-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(): void {\n});\n","signature":"-1866892563-declare const _default: () => void;\nexport default _default;\n"},{"version":"-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n","signature":"-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n"},{"version":"-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n","affectsGlobalScope":true},"3017320451-export { default as bar } from './bar';\n\nimport { default as bar } from './bar';\nbar(\"hello\");","6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n"],"root":[[2,6]],"options":{"declaration":true,"outDir":"./","target":1},"fileIdsList":[[3,5],[2]],"referencedMap":[[6,1],[5,2]],"exportedModulesMap":[[6,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,6,[5,[{"file":"../lazyindex.ts","start":85,"length":7,"messageText":"Expected 0 arguments, but got 1.","category":1,"code":2554}]]],"affectedFilesPendingEmit":[2,[6],[5]]},"version":"FakeTSVersion"} //// [/src/obj/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -698,27 +704,27 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped }, "../bar.ts": { "original": { - "version": "747071916-interface RawAction {\r\n (...args: any[]): Promise | void;\r\n}\r\ninterface ActionFactory {\r\n (target: T): T;\r\n}\r\ndeclare function foo(): ActionFactory;\r\nexport default foo()(function foobar(): void {\r\n});", + "version": "10075719182-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(): void {\n});\n", "signature": "-1866892563-declare const _default: () => void;\nexport default _default;\n" }, - "version": "747071916-interface RawAction {\r\n (...args: any[]): Promise | void;\r\n}\r\ninterface ActionFactory {\r\n (target: T): T;\r\n}\r\ndeclare function foo(): ActionFactory;\r\nexport default foo()(function foobar(): void {\r\n});", + "version": "10075719182-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(): void {\n});\n", "signature": "-1866892563-declare const _default: () => void;\nexport default _default;\n" }, "../bundling.ts": { "original": { - "version": "-21659820217-export class LazyModule {\r\n constructor(private importCallback: () => Promise) {}\r\n}\r\n\r\nexport class LazyAction<\r\n TAction extends (...args: any[]) => any,\r\n TModule\r\n> {\r\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\r\n }\r\n}\r\n", + "version": "-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n", "signature": "-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n" }, - "version": "-21659820217-export class LazyModule {\r\n constructor(private importCallback: () => Promise) {}\r\n}\r\n\r\nexport class LazyAction<\r\n TAction extends (...args: any[]) => any,\r\n TModule\r\n> {\r\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\r\n }\r\n}\r\n", + "version": "-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n", "signature": "-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n" }, "../global.d.ts": { "original": { - "version": "-9780226215-interface PromiseConstructor {\r\n new (): Promise;\r\n}\r\ndeclare var Promise: PromiseConstructor;\r\ninterface Promise {\r\n}", + "version": "-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n", "affectsGlobalScope": true }, - "version": "-9780226215-interface PromiseConstructor {\r\n new (): Promise;\r\n}\r\ndeclare var Promise: PromiseConstructor;\r\ninterface Promise {\r\n}", - "signature": "-9780226215-interface PromiseConstructor {\r\n new (): Promise;\r\n}\r\ndeclare var Promise: PromiseConstructor;\r\ninterface Promise {\r\n}", + "version": "-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n", + "signature": "-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n", "affectsGlobalScope": true }, "../lazyindex.ts": { @@ -726,8 +732,8 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped "signature": "3017320451-export { default as bar } from './bar';\n\nimport { default as bar } from './bar';\nbar(\"hello\");" }, "../index.ts": { - "version": "-11602502901-import { LazyAction, LazyModule } from './bundling';\r\nconst lazyModule = new LazyModule(() =>\r\n import('./lazyIndex')\r\n);\r\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", - "signature": "-11602502901-import { LazyAction, LazyModule } from './bundling';\r\nconst lazyModule = new LazyModule(() =>\r\n import('./lazyIndex')\r\n);\r\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);" + "version": "6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n", + "signature": "6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n" } }, "root": [ @@ -808,7 +814,7 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped ] }, "version": "FakeTSVersion", - "size": 2616 + "size": 2566 } @@ -825,12 +831,12 @@ bar(); Output:: /lib/tsc --b /src --verbose -[12:00:49 AM] Projects in this build: +[12:00:55 AM] Projects in this build: * src/tsconfig.json -[12:00:50 AM] Project 'src/tsconfig.json' is out of date because buildinfo file 'src/obj/tsconfig.tsbuildinfo' indicates that some of the changes were not emitted +[12:00:56 AM] Project 'src/tsconfig.json' is out of date because buildinfo file 'src/obj/tsconfig.tsbuildinfo' indicates that some of the changes were not emitted -[12:00:51 AM] Building project '/src/tsconfig.json'... +[12:00:57 AM] Building project '/src/tsconfig.json'... exitCode:: ExitStatus.Success @@ -864,7 +870,7 @@ var bar_2 = require("./bar"); //// [/src/obj/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyindex.ts","../index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"747071916-interface RawAction {\r\n (...args: any[]): Promise | void;\r\n}\r\ninterface ActionFactory {\r\n (target: T): T;\r\n}\r\ndeclare function foo(): ActionFactory;\r\nexport default foo()(function foobar(): void {\r\n});","signature":"-1866892563-declare const _default: () => void;\nexport default _default;\n"},{"version":"-21659820217-export class LazyModule {\r\n constructor(private importCallback: () => Promise) {}\r\n}\r\n\r\nexport class LazyAction<\r\n TAction extends (...args: any[]) => any,\r\n TModule\r\n> {\r\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\r\n }\r\n}\r\n","signature":"-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n"},{"version":"-9780226215-interface PromiseConstructor {\r\n new (): Promise;\r\n}\r\ndeclare var Promise: PromiseConstructor;\r\ninterface Promise {\r\n}","affectsGlobalScope":true},{"version":"-3721262293-export { default as bar } from './bar';\n\nimport { default as bar } from './bar';\nbar();","signature":"-6956449754-export { default as bar } from './bar';\n"},{"version":"-11602502901-import { LazyAction, LazyModule } from './bundling';\r\nconst lazyModule = new LazyModule(() =>\r\n import('./lazyIndex')\r\n);\r\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);","signature":"-4053129224-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n"}],"root":[[2,6]],"options":{"declaration":true,"outDir":"./","target":1},"fileIdsList":[[3,5],[2]],"referencedMap":[[6,1],[5,2]],"exportedModulesMap":[[6,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,6,5]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyindex.ts","../index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"10075719182-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(): void {\n});\n","signature":"-1866892563-declare const _default: () => void;\nexport default _default;\n"},{"version":"-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n","signature":"-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n"},{"version":"-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n","affectsGlobalScope":true},{"version":"-3721262293-export { default as bar } from './bar';\n\nimport { default as bar } from './bar';\nbar();","signature":"-6956449754-export { default as bar } from './bar';\n"},{"version":"6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n","signature":"-4053129224-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n"}],"root":[[2,6]],"options":{"declaration":true,"outDir":"./","target":1},"fileIdsList":[[3,5],[2]],"referencedMap":[[6,1],[5,2]],"exportedModulesMap":[[6,1],[5,2]],"semanticDiagnosticsPerFile":[1,2,3,4,6,5]},"version":"FakeTSVersion"} //// [/src/obj/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -898,27 +904,27 @@ var bar_2 = require("./bar"); }, "../bar.ts": { "original": { - "version": "747071916-interface RawAction {\r\n (...args: any[]): Promise | void;\r\n}\r\ninterface ActionFactory {\r\n (target: T): T;\r\n}\r\ndeclare function foo(): ActionFactory;\r\nexport default foo()(function foobar(): void {\r\n});", + "version": "10075719182-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(): void {\n});\n", "signature": "-1866892563-declare const _default: () => void;\nexport default _default;\n" }, - "version": "747071916-interface RawAction {\r\n (...args: any[]): Promise | void;\r\n}\r\ninterface ActionFactory {\r\n (target: T): T;\r\n}\r\ndeclare function foo(): ActionFactory;\r\nexport default foo()(function foobar(): void {\r\n});", + "version": "10075719182-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(): void {\n});\n", "signature": "-1866892563-declare const _default: () => void;\nexport default _default;\n" }, "../bundling.ts": { "original": { - "version": "-21659820217-export class LazyModule {\r\n constructor(private importCallback: () => Promise) {}\r\n}\r\n\r\nexport class LazyAction<\r\n TAction extends (...args: any[]) => any,\r\n TModule\r\n> {\r\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\r\n }\r\n}\r\n", + "version": "-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n", "signature": "-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n" }, - "version": "-21659820217-export class LazyModule {\r\n constructor(private importCallback: () => Promise) {}\r\n}\r\n\r\nexport class LazyAction<\r\n TAction extends (...args: any[]) => any,\r\n TModule\r\n> {\r\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\r\n }\r\n}\r\n", + "version": "-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n", "signature": "-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n" }, "../global.d.ts": { "original": { - "version": "-9780226215-interface PromiseConstructor {\r\n new (): Promise;\r\n}\r\ndeclare var Promise: PromiseConstructor;\r\ninterface Promise {\r\n}", + "version": "-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n", "affectsGlobalScope": true }, - "version": "-9780226215-interface PromiseConstructor {\r\n new (): Promise;\r\n}\r\ndeclare var Promise: PromiseConstructor;\r\ninterface Promise {\r\n}", - "signature": "-9780226215-interface PromiseConstructor {\r\n new (): Promise;\r\n}\r\ndeclare var Promise: PromiseConstructor;\r\ninterface Promise {\r\n}", + "version": "-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n", + "signature": "-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n", "affectsGlobalScope": true }, "../lazyindex.ts": { @@ -931,10 +937,10 @@ var bar_2 = require("./bar"); }, "../index.ts": { "original": { - "version": "-11602502901-import { LazyAction, LazyModule } from './bundling';\r\nconst lazyModule = new LazyModule(() =>\r\n import('./lazyIndex')\r\n);\r\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", + "version": "6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n", "signature": "-4053129224-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n" }, - "version": "-11602502901-import { LazyAction, LazyModule } from './bundling';\r\nconst lazyModule = new LazyModule(() =>\r\n import('./lazyIndex')\r\n);\r\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", + "version": "6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n", "signature": "-4053129224-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n" } }, @@ -986,6 +992,6 @@ var bar_2 = require("./bar"); ] }, "version": "FakeTSVersion", - "size": 2690 + "size": 2640 } diff --git a/tests/baselines/reference/tsbuild/lateBoundSymbol/interface-is-merged-and-contains-late-bound-member.js b/tests/baselines/reference/tsbuild/lateBoundSymbol/interface-is-merged-and-contains-late-bound-member.js index 0eda002fd62ec..73661123d4688 100644 --- a/tests/baselines/reference/tsbuild/lateBoundSymbol/interface-is-merged-and-contains-late-bound-member.js +++ b/tests/baselines/reference/tsbuild/lateBoundSymbol/interface-is-merged-and-contains-late-bound-member.js @@ -19,42 +19,44 @@ declare const console: { log(msg: any): void; }; interface SymbolConstructor { (description?: string | number): symbol; } -declare var Symbol: SymbolConstructor; +declare var Symbol: SymbolConstructor; + //// [/src/src/hkt.ts] export interface HKT { } //// [/src/src/main.ts] -import { HKT } from "./hkt"; - -const sym = Symbol(); +import { HKT } from "./hkt"; + +const sym = Symbol(); + +declare module "./hkt" { + interface HKT { + [sym]: { a: T } + } +} +const x = 10; +type A = HKT[typeof sym]; -declare module "./hkt" { - interface HKT { - [sym]: { a: T } - } -} -const x = 10; -type A = HKT[typeof sym]; //// [/src/tsconfig.json] -{ - "compilerOptions": { - "rootDir": "src", - "incremental": true - } +{ + "compilerOptions": { + "rootDir": "src", + "incremental": true + } } Output:: /lib/tsc --b /src/tsconfig.json --verbose -[12:00:06 AM] Projects in this build: +[12:00:11 AM] Projects in this build: * src/tsconfig.json -[12:00:07 AM] Project 'src/tsconfig.json' is out of date because output file 'src/tsconfig.tsbuildinfo' does not exist +[12:00:12 AM] Project 'src/tsconfig.json' is out of date because output file 'src/tsconfig.tsbuildinfo' does not exist -[12:00:08 AM] Building project '/src/tsconfig.json'... +[12:00:13 AM] Building project '/src/tsconfig.json'... exitCode:: ExitStatus.Success @@ -72,7 +74,7 @@ var x = 10; //// [/src/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../lib/lib.d.ts","./src/globals.d.ts","./src/hkt.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-1994196675-interface SymbolConstructor {\n (description?: string | number): symbol;\n}\ndeclare var Symbol: SymbolConstructor;","affectsGlobalScope":true},"675797797-export interface HKT { }","-28387946490-import { HKT } from \"./hkt\";\r\n\r\nconst sym = Symbol();\r\n\r\ndeclare module \"./hkt\" {\r\n interface HKT {\r\n [sym]: { a: T }\r\n }\r\n}\r\nconst x = 10;\r\ntype A = HKT[typeof sym];"],"root":[[2,4]],"options":{"rootDir":"./src"},"fileIdsList":[[3,4]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,1]],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../lib/lib.d.ts","./src/globals.d.ts","./src/hkt.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-1383980825-interface SymbolConstructor {\n (description?: string | number): symbol;\n}\ndeclare var Symbol: SymbolConstructor;\n","affectsGlobalScope":true},"675797797-export interface HKT { }","-28636726258-import { HKT } from \"./hkt\";\n\nconst sym = Symbol();\n\ndeclare module \"./hkt\" {\n interface HKT {\n [sym]: { a: T }\n }\n}\nconst x = 10;\ntype A = HKT[typeof sym];\n"],"root":[[2,4]],"options":{"rootDir":"./src"},"fileIdsList":[[3,4]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,1]],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} //// [/src/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -101,11 +103,11 @@ var x = 10; }, "./src/globals.d.ts": { "original": { - "version": "-1994196675-interface SymbolConstructor {\n (description?: string | number): symbol;\n}\ndeclare var Symbol: SymbolConstructor;", + "version": "-1383980825-interface SymbolConstructor {\n (description?: string | number): symbol;\n}\ndeclare var Symbol: SymbolConstructor;\n", "affectsGlobalScope": true }, - "version": "-1994196675-interface SymbolConstructor {\n (description?: string | number): symbol;\n}\ndeclare var Symbol: SymbolConstructor;", - "signature": "-1994196675-interface SymbolConstructor {\n (description?: string | number): symbol;\n}\ndeclare var Symbol: SymbolConstructor;", + "version": "-1383980825-interface SymbolConstructor {\n (description?: string | number): symbol;\n}\ndeclare var Symbol: SymbolConstructor;\n", + "signature": "-1383980825-interface SymbolConstructor {\n (description?: string | number): symbol;\n}\ndeclare var Symbol: SymbolConstructor;\n", "affectsGlobalScope": true }, "./src/hkt.ts": { @@ -113,8 +115,8 @@ var x = 10; "signature": "675797797-export interface HKT { }" }, "./src/main.ts": { - "version": "-28387946490-import { HKT } from \"./hkt\";\r\n\r\nconst sym = Symbol();\r\n\r\ndeclare module \"./hkt\" {\r\n interface HKT {\r\n [sym]: { a: T }\r\n }\r\n}\r\nconst x = 10;\r\ntype A = HKT[typeof sym];", - "signature": "-28387946490-import { HKT } from \"./hkt\";\r\n\r\nconst sym = Symbol();\r\n\r\ndeclare module \"./hkt\" {\r\n interface HKT {\r\n [sym]: { a: T }\r\n }\r\n}\r\nconst x = 10;\r\ntype A = HKT[typeof sym];" + "version": "-28636726258-import { HKT } from \"./hkt\";\n\nconst sym = Symbol();\n\ndeclare module \"./hkt\" {\n interface HKT {\n [sym]: { a: T }\n }\n}\nconst x = 10;\ntype A = HKT[typeof sym];\n", + "signature": "-28636726258-import { HKT } from \"./hkt\";\n\nconst sym = Symbol();\n\ndeclare module \"./hkt\" {\n interface HKT {\n [sym]: { a: T }\n }\n}\nconst x = 10;\ntype A = HKT[typeof sym];\n" } }, "root": [ @@ -153,7 +155,7 @@ var x = 10; ] }, "version": "FakeTSVersion", - "size": 1208 + "size": 1200 } @@ -161,28 +163,29 @@ var x = 10; Change:: incremental-declaration-doesnt-change Input:: //// [/src/src/main.ts] -import { HKT } from "./hkt"; - -const sym = Symbol(); - -declare module "./hkt" { - interface HKT { - [sym]: { a: T } - } -} +import { HKT } from "./hkt"; + +const sym = Symbol(); + +declare module "./hkt" { + interface HKT { + [sym]: { a: T } + } +} + +type A = HKT[typeof sym]; -type A = HKT[typeof sym]; Output:: /lib/tsc --b /src/tsconfig.json --verbose -[12:00:15 AM] Projects in this build: +[12:00:20 AM] Projects in this build: * src/tsconfig.json -[12:00:16 AM] Project 'src/tsconfig.json' is out of date because output 'src/tsconfig.tsbuildinfo' is older than input 'src/src/main.ts' +[12:00:21 AM] Project 'src/tsconfig.json' is out of date because output 'src/tsconfig.tsbuildinfo' is older than input 'src/src/main.ts' -[12:00:17 AM] Building project '/src/tsconfig.json'... +[12:00:22 AM] Building project '/src/tsconfig.json'... exitCode:: ExitStatus.Success @@ -194,7 +197,7 @@ var sym = Symbol(); //// [/src/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../lib/lib.d.ts","./src/globals.d.ts","./src/hkt.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-1994196675-interface SymbolConstructor {\n (description?: string | number): symbol;\n}\ndeclare var Symbol: SymbolConstructor;","affectsGlobalScope":true},"675797797-export interface HKT { }",{"version":"-27494779858-import { HKT } from \"./hkt\";\r\n\r\nconst sym = Symbol();\r\n\r\ndeclare module \"./hkt\" {\r\n interface HKT {\r\n [sym]: { a: T }\r\n }\r\n}\r\n\r\ntype A = HKT[typeof sym];","signature":"-13155653598-declare const sym: unique symbol;\ndeclare module \"./hkt\" {\n interface HKT {\n [sym]: {\n a: T;\n };\n }\n}\nexport {};\n"}],"root":[[2,4]],"options":{"rootDir":"./src"},"fileIdsList":[[3,4]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,1]],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../lib/lib.d.ts","./src/globals.d.ts","./src/hkt.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-1383980825-interface SymbolConstructor {\n (description?: string | number): symbol;\n}\ndeclare var Symbol: SymbolConstructor;\n","affectsGlobalScope":true},"675797797-export interface HKT { }",{"version":"-13476768170-import { HKT } from \"./hkt\";\n\nconst sym = Symbol();\n\ndeclare module \"./hkt\" {\n interface HKT {\n [sym]: { a: T }\n }\n}\n\ntype A = HKT[typeof sym];\n","signature":"-13155653598-declare const sym: unique symbol;\ndeclare module \"./hkt\" {\n interface HKT {\n [sym]: {\n a: T;\n };\n }\n}\nexport {};\n"}],"root":[[2,4]],"options":{"rootDir":"./src"},"fileIdsList":[[3,4]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,1]],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} //// [/src/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -223,11 +226,11 @@ var sym = Symbol(); }, "./src/globals.d.ts": { "original": { - "version": "-1994196675-interface SymbolConstructor {\n (description?: string | number): symbol;\n}\ndeclare var Symbol: SymbolConstructor;", + "version": "-1383980825-interface SymbolConstructor {\n (description?: string | number): symbol;\n}\ndeclare var Symbol: SymbolConstructor;\n", "affectsGlobalScope": true }, - "version": "-1994196675-interface SymbolConstructor {\n (description?: string | number): symbol;\n}\ndeclare var Symbol: SymbolConstructor;", - "signature": "-1994196675-interface SymbolConstructor {\n (description?: string | number): symbol;\n}\ndeclare var Symbol: SymbolConstructor;", + "version": "-1383980825-interface SymbolConstructor {\n (description?: string | number): symbol;\n}\ndeclare var Symbol: SymbolConstructor;\n", + "signature": "-1383980825-interface SymbolConstructor {\n (description?: string | number): symbol;\n}\ndeclare var Symbol: SymbolConstructor;\n", "affectsGlobalScope": true }, "./src/hkt.ts": { @@ -236,10 +239,10 @@ var sym = Symbol(); }, "./src/main.ts": { "original": { - "version": "-27494779858-import { HKT } from \"./hkt\";\r\n\r\nconst sym = Symbol();\r\n\r\ndeclare module \"./hkt\" {\r\n interface HKT {\r\n [sym]: { a: T }\r\n }\r\n}\r\n\r\ntype A = HKT[typeof sym];", + "version": "-13476768170-import { HKT } from \"./hkt\";\n\nconst sym = Symbol();\n\ndeclare module \"./hkt\" {\n interface HKT {\n [sym]: { a: T }\n }\n}\n\ntype A = HKT[typeof sym];\n", "signature": "-13155653598-declare const sym: unique symbol;\ndeclare module \"./hkt\" {\n interface HKT {\n [sym]: {\n a: T;\n };\n }\n}\nexport {};\n" }, - "version": "-27494779858-import { HKT } from \"./hkt\";\r\n\r\nconst sym = Symbol();\r\n\r\ndeclare module \"./hkt\" {\r\n interface HKT {\r\n [sym]: { a: T }\r\n }\r\n}\r\n\r\ntype A = HKT[typeof sym];", + "version": "-13476768170-import { HKT } from \"./hkt\";\n\nconst sym = Symbol();\n\ndeclare module \"./hkt\" {\n interface HKT {\n [sym]: { a: T }\n }\n}\n\ntype A = HKT[typeof sym];\n", "signature": "-13155653598-declare const sym: unique symbol;\ndeclare module \"./hkt\" {\n interface HKT {\n [sym]: {\n a: T;\n };\n }\n}\nexport {};\n" } }, @@ -279,7 +282,7 @@ var sym = Symbol(); ] }, "version": "FakeTSVersion", - "size": 1393 + "size": 1385 } @@ -287,28 +290,29 @@ var sym = Symbol(); Change:: incremental-declaration-doesnt-change Input:: //// [/src/src/main.ts] -import { HKT } from "./hkt"; - -const sym = Symbol(); - -declare module "./hkt" { - interface HKT { - [sym]: { a: T } - } -} - -type A = HKT[typeof sym];const x = 10; +import { HKT } from "./hkt"; + +const sym = Symbol(); + +declare module "./hkt" { + interface HKT { + [sym]: { a: T } + } +} + +type A = HKT[typeof sym]; +const x = 10; Output:: /lib/tsc --b /src/tsconfig.json --verbose -[12:00:23 AM] Projects in this build: +[12:00:28 AM] Projects in this build: * src/tsconfig.json -[12:00:24 AM] Project 'src/tsconfig.json' is out of date because output 'src/tsconfig.tsbuildinfo' is older than input 'src/src/main.ts' +[12:00:29 AM] Project 'src/tsconfig.json' is out of date because output 'src/tsconfig.tsbuildinfo' is older than input 'src/src/main.ts' -[12:00:25 AM] Building project '/src/tsconfig.json'... +[12:00:30 AM] Building project '/src/tsconfig.json'... exitCode:: ExitStatus.Success @@ -321,7 +325,7 @@ var x = 10; //// [/src/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../lib/lib.d.ts","./src/globals.d.ts","./src/hkt.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-1994196675-interface SymbolConstructor {\n (description?: string | number): symbol;\n}\ndeclare var Symbol: SymbolConstructor;","affectsGlobalScope":true},"675797797-export interface HKT { }",{"version":"-20682988154-import { HKT } from \"./hkt\";\r\n\r\nconst sym = Symbol();\r\n\r\ndeclare module \"./hkt\" {\r\n interface HKT {\r\n [sym]: { a: T }\r\n }\r\n}\r\n\r\ntype A = HKT[typeof sym];const x = 10;","signature":"-13155653598-declare const sym: unique symbol;\ndeclare module \"./hkt\" {\n interface HKT {\n [sym]: {\n a: T;\n };\n }\n}\nexport {};\n"}],"root":[[2,4]],"options":{"rootDir":"./src"},"fileIdsList":[[3,4]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,1]],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../lib/lib.d.ts","./src/globals.d.ts","./src/hkt.ts","./src/main.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-1383980825-interface SymbolConstructor {\n (description?: string | number): symbol;\n}\ndeclare var Symbol: SymbolConstructor;\n","affectsGlobalScope":true},"675797797-export interface HKT { }",{"version":"-8082110290-import { HKT } from \"./hkt\";\n\nconst sym = Symbol();\n\ndeclare module \"./hkt\" {\n interface HKT {\n [sym]: { a: T }\n }\n}\n\ntype A = HKT[typeof sym];\nconst x = 10;","signature":"-13155653598-declare const sym: unique symbol;\ndeclare module \"./hkt\" {\n interface HKT {\n [sym]: {\n a: T;\n };\n }\n}\nexport {};\n"}],"root":[[2,4]],"options":{"rootDir":"./src"},"fileIdsList":[[3,4]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,1]],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} //// [/src/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -350,11 +354,11 @@ var x = 10; }, "./src/globals.d.ts": { "original": { - "version": "-1994196675-interface SymbolConstructor {\n (description?: string | number): symbol;\n}\ndeclare var Symbol: SymbolConstructor;", + "version": "-1383980825-interface SymbolConstructor {\n (description?: string | number): symbol;\n}\ndeclare var Symbol: SymbolConstructor;\n", "affectsGlobalScope": true }, - "version": "-1994196675-interface SymbolConstructor {\n (description?: string | number): symbol;\n}\ndeclare var Symbol: SymbolConstructor;", - "signature": "-1994196675-interface SymbolConstructor {\n (description?: string | number): symbol;\n}\ndeclare var Symbol: SymbolConstructor;", + "version": "-1383980825-interface SymbolConstructor {\n (description?: string | number): symbol;\n}\ndeclare var Symbol: SymbolConstructor;\n", + "signature": "-1383980825-interface SymbolConstructor {\n (description?: string | number): symbol;\n}\ndeclare var Symbol: SymbolConstructor;\n", "affectsGlobalScope": true }, "./src/hkt.ts": { @@ -363,10 +367,10 @@ var x = 10; }, "./src/main.ts": { "original": { - "version": "-20682988154-import { HKT } from \"./hkt\";\r\n\r\nconst sym = Symbol();\r\n\r\ndeclare module \"./hkt\" {\r\n interface HKT {\r\n [sym]: { a: T }\r\n }\r\n}\r\n\r\ntype A = HKT[typeof sym];const x = 10;", + "version": "-8082110290-import { HKT } from \"./hkt\";\n\nconst sym = Symbol();\n\ndeclare module \"./hkt\" {\n interface HKT {\n [sym]: { a: T }\n }\n}\n\ntype A = HKT[typeof sym];\nconst x = 10;", "signature": "-13155653598-declare const sym: unique symbol;\ndeclare module \"./hkt\" {\n interface HKT {\n [sym]: {\n a: T;\n };\n }\n}\nexport {};\n" }, - "version": "-20682988154-import { HKT } from \"./hkt\";\r\n\r\nconst sym = Symbol();\r\n\r\ndeclare module \"./hkt\" {\r\n interface HKT {\r\n [sym]: { a: T }\r\n }\r\n}\r\n\r\ntype A = HKT[typeof sym];const x = 10;", + "version": "-8082110290-import { HKT } from \"./hkt\";\n\nconst sym = Symbol();\n\ndeclare module \"./hkt\" {\n interface HKT {\n [sym]: { a: T }\n }\n}\n\ntype A = HKT[typeof sym];\nconst x = 10;", "signature": "-13155653598-declare const sym: unique symbol;\ndeclare module \"./hkt\" {\n interface HKT {\n [sym]: {\n a: T;\n };\n }\n}\nexport {};\n" } }, @@ -406,6 +410,6 @@ var x = 10; ] }, "version": "FakeTSVersion", - "size": 1406 + "size": 1397 } diff --git a/tests/baselines/reference/tsbuild/libraryResolution/with-config-with-redirection.js b/tests/baselines/reference/tsbuild/libraryResolution/with-config-with-redirection.js index f939155b99db3..c7716d2cbf2bc 100644 --- a/tests/baselines/reference/tsbuild/libraryResolution/with-config-with-redirection.js +++ b/tests/baselines/reference/tsbuild/libraryResolution/with-config-with-redirection.js @@ -112,7 +112,19 @@ export const file = 10; export const x = "type1"; //// [/home/src/projects/project1/tsconfig.json] -{"compilerOptions":{"composite":true,"typeRoots":["./typeroot1"],"lib":["es5","dom"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "typeRoots": [ + "./typeroot1" + ], + "lib": [ + "es5", + "dom" + ], + "traceResolution": true + } +} //// [/home/src/projects/project1/typeroot1/sometype/index.d.ts] export type TheNum = "type1"; @@ -124,7 +136,16 @@ export const y = 10; export const y = 10 //// [/home/src/projects/project2/tsconfig.json] -{"compilerOptions":{"composite":true,"lib":["es5","dom"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "lib": [ + "es5", + "dom" + ], + "traceResolution": true + } +} //// [/home/src/projects/project2/utils.d.ts] export const y = 10; @@ -133,7 +154,16 @@ export const y = 10; export const z = 10 //// [/home/src/projects/project3/tsconfig.json] -{"compilerOptions":{"composite":true,"lib":["es5","dom"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "lib": [ + "es5", + "dom" + ], + "traceResolution": true + } +} //// [/home/src/projects/project3/utils.d.ts] export const y = 10; @@ -142,7 +172,17 @@ export const y = 10; export const z = 10 //// [/home/src/projects/project4/tsconfig.json] -{"compilerOptions":{"composite":true,"lib":["esnext","dom","webworker"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "lib": [ + "esnext", + "dom", + "webworker" + ], + "traceResolution": true + } +} //// [/home/src/projects/project4/utils.d.ts] export const y = 10; @@ -352,8 +392,27 @@ project4/index.ts project4/utils.d.ts Matched by default include pattern '**/*' exitCode:: ExitStatus.Success -Program root files: ["/home/src/projects/project1/core.d.ts","/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] -Program options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"explainFiles":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +Program root files: [ + "/home/src/projects/project1/core.d.ts", + "/home/src/projects/project1/file.ts", + "/home/src/projects/project1/file2.ts", + "/home/src/projects/project1/index.ts", + "/home/src/projects/project1/utils.d.ts", + "/home/src/projects/project1/typeroot1/sometype/index.d.ts" +] +Program options: { + "composite": true, + "typeRoots": [ + "/home/src/projects/project1/typeroot1" + ], + "lib": [ + "lib.es5.d.ts", + "lib.dom.d.ts" + ], + "traceResolution": true, + "explainFiles": true, + "configFilePath": "/home/src/projects/project1/tsconfig.json" +} Program structureReused: Not Program files:: /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts @@ -391,8 +450,20 @@ Shape signatures in builder refreshed for:: /home/src/projects/project1/typeroot1/sometype/index.d.ts (used version) /home/src/projects/node_modules/@typescript/lib-es5/index.d.ts (used version) -Program root files: ["/home/src/projects/project2/index.ts","/home/src/projects/project2/utils.d.ts"] -Program options: {"composite":true,"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"explainFiles":true,"configFilePath":"/home/src/projects/project2/tsconfig.json"} +Program root files: [ + "/home/src/projects/project2/index.ts", + "/home/src/projects/project2/utils.d.ts" +] +Program options: { + "composite": true, + "lib": [ + "lib.es5.d.ts", + "lib.dom.d.ts" + ], + "traceResolution": true, + "explainFiles": true, + "configFilePath": "/home/src/projects/project2/tsconfig.json" +} Program structureReused: Not Program files:: /home/src/projects/node_modules/@typescript/lib-es5/index.d.ts @@ -412,8 +483,20 @@ Shape signatures in builder refreshed for:: /home/src/projects/project2/index.ts (computed .d.ts during emit) /home/src/projects/project2/utils.d.ts (used version) -Program root files: ["/home/src/projects/project3/index.ts","/home/src/projects/project3/utils.d.ts"] -Program options: {"composite":true,"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"explainFiles":true,"configFilePath":"/home/src/projects/project3/tsconfig.json"} +Program root files: [ + "/home/src/projects/project3/index.ts", + "/home/src/projects/project3/utils.d.ts" +] +Program options: { + "composite": true, + "lib": [ + "lib.es5.d.ts", + "lib.dom.d.ts" + ], + "traceResolution": true, + "explainFiles": true, + "configFilePath": "/home/src/projects/project3/tsconfig.json" +} Program structureReused: Not Program files:: /home/src/projects/node_modules/@typescript/lib-es5/index.d.ts @@ -433,8 +516,21 @@ Shape signatures in builder refreshed for:: /home/src/projects/project3/index.ts (computed .d.ts during emit) /home/src/projects/project3/utils.d.ts (used version) -Program root files: ["/home/src/projects/project4/index.ts","/home/src/projects/project4/utils.d.ts"] -Program options: {"composite":true,"lib":["lib.esnext.d.ts","lib.dom.d.ts","lib.webworker.d.ts"],"traceResolution":true,"explainFiles":true,"configFilePath":"/home/src/projects/project4/tsconfig.json"} +Program root files: [ + "/home/src/projects/project4/index.ts", + "/home/src/projects/project4/utils.d.ts" +] +Program options: { + "composite": true, + "lib": [ + "lib.esnext.d.ts", + "lib.dom.d.ts", + "lib.webworker.d.ts" + ], + "traceResolution": true, + "explainFiles": true, + "configFilePath": "/home/src/projects/project4/tsconfig.json" +} Program structureReused: Not Program files:: /home/src/projects/node_modules/@typescript/lib-esnext/index.d.ts diff --git a/tests/baselines/reference/tsbuild/libraryResolution/with-config.js b/tests/baselines/reference/tsbuild/libraryResolution/with-config.js index 5045a425382ab..23daa000f9829 100644 --- a/tests/baselines/reference/tsbuild/libraryResolution/with-config.js +++ b/tests/baselines/reference/tsbuild/libraryResolution/with-config.js @@ -73,7 +73,19 @@ export const file = 10; export const x = "type1"; //// [/home/src/projects/project1/tsconfig.json] -{"compilerOptions":{"composite":true,"typeRoots":["./typeroot1"],"lib":["es5","dom"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "typeRoots": [ + "./typeroot1" + ], + "lib": [ + "es5", + "dom" + ], + "traceResolution": true + } +} //// [/home/src/projects/project1/typeroot1/sometype/index.d.ts] export type TheNum = "type1"; @@ -85,7 +97,16 @@ export const y = 10; export const y = 10 //// [/home/src/projects/project2/tsconfig.json] -{"compilerOptions":{"composite":true,"lib":["es5","dom"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "lib": [ + "es5", + "dom" + ], + "traceResolution": true + } +} //// [/home/src/projects/project2/utils.d.ts] export const y = 10; @@ -94,7 +115,16 @@ export const y = 10; export const z = 10 //// [/home/src/projects/project3/tsconfig.json] -{"compilerOptions":{"composite":true,"lib":["es5","dom"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "lib": [ + "es5", + "dom" + ], + "traceResolution": true + } +} //// [/home/src/projects/project3/utils.d.ts] export const y = 10; @@ -103,7 +133,17 @@ export const y = 10; export const z = 10 //// [/home/src/projects/project4/tsconfig.json] -{"compilerOptions":{"composite":true,"lib":["esnext","dom","webworker"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "lib": [ + "esnext", + "dom", + "webworker" + ], + "traceResolution": true + } +} //// [/home/src/projects/project4/utils.d.ts] export const y = 10; @@ -368,8 +408,27 @@ project4/index.ts project4/utils.d.ts Matched by default include pattern '**/*' exitCode:: ExitStatus.Success -Program root files: ["/home/src/projects/project1/core.d.ts","/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] -Program options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"explainFiles":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +Program root files: [ + "/home/src/projects/project1/core.d.ts", + "/home/src/projects/project1/file.ts", + "/home/src/projects/project1/file2.ts", + "/home/src/projects/project1/index.ts", + "/home/src/projects/project1/utils.d.ts", + "/home/src/projects/project1/typeroot1/sometype/index.d.ts" +] +Program options: { + "composite": true, + "typeRoots": [ + "/home/src/projects/project1/typeroot1" + ], + "lib": [ + "lib.es5.d.ts", + "lib.dom.d.ts" + ], + "traceResolution": true, + "explainFiles": true, + "configFilePath": "/home/src/projects/project1/tsconfig.json" +} Program structureReused: Not Program files:: /home/src/lib/lib.es5.d.ts @@ -407,8 +466,20 @@ Shape signatures in builder refreshed for:: /home/src/projects/project1/utils.d.ts (used version) /home/src/projects/project1/typeroot1/sometype/index.d.ts (used version) -Program root files: ["/home/src/projects/project2/index.ts","/home/src/projects/project2/utils.d.ts"] -Program options: {"composite":true,"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"explainFiles":true,"configFilePath":"/home/src/projects/project2/tsconfig.json"} +Program root files: [ + "/home/src/projects/project2/index.ts", + "/home/src/projects/project2/utils.d.ts" +] +Program options: { + "composite": true, + "lib": [ + "lib.es5.d.ts", + "lib.dom.d.ts" + ], + "traceResolution": true, + "explainFiles": true, + "configFilePath": "/home/src/projects/project2/tsconfig.json" +} Program structureReused: Not Program files:: /home/src/lib/lib.es5.d.ts @@ -428,8 +499,20 @@ Shape signatures in builder refreshed for:: /home/src/projects/project2/index.ts (computed .d.ts during emit) /home/src/projects/project2/utils.d.ts (used version) -Program root files: ["/home/src/projects/project3/index.ts","/home/src/projects/project3/utils.d.ts"] -Program options: {"composite":true,"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"explainFiles":true,"configFilePath":"/home/src/projects/project3/tsconfig.json"} +Program root files: [ + "/home/src/projects/project3/index.ts", + "/home/src/projects/project3/utils.d.ts" +] +Program options: { + "composite": true, + "lib": [ + "lib.es5.d.ts", + "lib.dom.d.ts" + ], + "traceResolution": true, + "explainFiles": true, + "configFilePath": "/home/src/projects/project3/tsconfig.json" +} Program structureReused: Not Program files:: /home/src/lib/lib.es5.d.ts @@ -449,8 +532,21 @@ Shape signatures in builder refreshed for:: /home/src/projects/project3/index.ts (computed .d.ts during emit) /home/src/projects/project3/utils.d.ts (used version) -Program root files: ["/home/src/projects/project4/index.ts","/home/src/projects/project4/utils.d.ts"] -Program options: {"composite":true,"lib":["lib.esnext.d.ts","lib.dom.d.ts","lib.webworker.d.ts"],"traceResolution":true,"explainFiles":true,"configFilePath":"/home/src/projects/project4/tsconfig.json"} +Program root files: [ + "/home/src/projects/project4/index.ts", + "/home/src/projects/project4/utils.d.ts" +] +Program options: { + "composite": true, + "lib": [ + "lib.esnext.d.ts", + "lib.dom.d.ts", + "lib.webworker.d.ts" + ], + "traceResolution": true, + "explainFiles": true, + "configFilePath": "/home/src/projects/project4/tsconfig.json" +} Program structureReused: Not Program files:: /home/src/lib/lib.esnext.d.ts diff --git a/tests/baselines/reference/tsbuild/moduleResolution/impliedNodeFormat-differs-between-projects-for-shared-file.js b/tests/baselines/reference/tsbuild/moduleResolution/impliedNodeFormat-differs-between-projects-for-shared-file.js index 6999ef79ee800..e3a2bc0a87bd4 100644 --- a/tests/baselines/reference/tsbuild/moduleResolution/impliedNodeFormat-differs-between-projects-for-shared-file.js +++ b/tests/baselines/reference/tsbuild/moduleResolution/impliedNodeFormat-differs-between-projects-for-shared-file.js @@ -32,10 +32,17 @@ interface Array { length: number; [n: number]: T; } //// [/src/projects/a/tsconfig.json] -{"compilerOptions":{"strict":true}} +{ + "compilerOptions": { + "strict": true + } +} //// [/src/projects/b/package.json] -{"name":"b","type":"module"} +{ + "name": "b", + "type": "module" +} //// [/src/projects/b/src/index.ts] import pg from "pg"; @@ -43,13 +50,21 @@ pg.foo(); //// [/src/projects/b/tsconfig.json] -{"compilerOptions":{"strict":true,"module":"node16"}} +{ + "compilerOptions": { + "strict": true, + "module": "node16" + } +} //// [/src/projects/node_modules/@types/pg/index.d.ts] export function foo(): void; //// [/src/projects/node_modules/@types/pg/package.json] -{"name":"@types/pg","types":"index.d.ts"} +{ + "name": "@types/pg", + "types": "index.d.ts" +} diff --git a/tests/baselines/reference/tsbuild/moduleResolution/resolves-specifier-in-output-declaration-file-from-referenced-project-correctly-with-preserveSymlinks.js b/tests/baselines/reference/tsbuild/moduleResolution/resolves-specifier-in-output-declaration-file-from-referenced-project-correctly-with-preserveSymlinks.js index 714d8d58a2cc6..80c73841df6b2 100644 --- a/tests/baselines/reference/tsbuild/moduleResolution/resolves-specifier-in-output-declaration-file-from-referenced-project-correctly-with-preserveSymlinks.js +++ b/tests/baselines/reference/tsbuild/moduleResolution/resolves-specifier-in-output-declaration-file-from-referenced-project-correctly-with-preserveSymlinks.js @@ -5,7 +5,17 @@ import type { TheNum } from 'pkg2' export const theNum: TheNum = 42; //// [/user/username/projects/myproject/packages/pkg1/tsconfig.json] -{"compilerOptions":{"outDir":"build","preserveSymlinks":true},"references":[{"path":"../pkg2"}]} +{ + "compilerOptions": { + "outDir": "build", + "preserveSymlinks": true + }, + "references": [ + { + "path": "../pkg2" + } + ] +} //// [/user/username/projects/myproject/packages/pkg2/const.ts] export type TheNum = 42; @@ -14,10 +24,21 @@ export type TheNum = 42; export type { TheNum } from 'const'; //// [/user/username/projects/myproject/packages/pkg2/tsconfig.json] -{"compilerOptions":{"composite":true,"outDir":"build","baseUrl":".","preserveSymlinks":true}} +{ + "compilerOptions": { + "composite": true, + "outDir": "build", + "baseUrl": ".", + "preserveSymlinks": true + } +} //// [/user/username/projects/myproject/packages/pkg2/package.json] -{"name":"pkg2","version":"1.0.0","main":"build/index.js"} +{ + "name": "pkg2", + "version": "1.0.0", + "main": "build/index.js" +} //// [/user/username/projects/myproject/node_modules/pkg2] symlink(/user/username/projects/myproject/packages/pkg2) //// [/a/lib/lib.d.ts] @@ -87,8 +108,18 @@ File '/user/username/projects/myproject/packages/pkg2/const.ts' exists - use it ======== Module name 'const' was successfully resolved to '/user/username/projects/myproject/packages/pkg2/const.ts'. ======== -Program root files: ["/user/username/projects/myproject/packages/pkg2/const.ts","/user/username/projects/myproject/packages/pkg2/index.ts"] -Program options: {"composite":true,"outDir":"/user/username/projects/myproject/packages/pkg2/build","baseUrl":"/user/username/projects/myproject/packages/pkg2","preserveSymlinks":true,"traceResolution":true,"configFilePath":"/user/username/projects/myproject/packages/pkg2/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/packages/pkg2/const.ts", + "/user/username/projects/myproject/packages/pkg2/index.ts" +] +Program options: { + "composite": true, + "outDir": "/user/username/projects/myproject/packages/pkg2/build", + "baseUrl": "/user/username/projects/myproject/packages/pkg2", + "preserveSymlinks": true, + "traceResolution": true, + "configFilePath": "/user/username/projects/myproject/packages/pkg2/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -105,8 +136,15 @@ Shape signatures in builder refreshed for:: /user/username/projects/myproject/packages/pkg2/const.ts (computed .d.ts during emit) /user/username/projects/myproject/packages/pkg2/index.ts (computed .d.ts during emit) -Program root files: ["/user/username/projects/myproject/packages/pkg1/index.ts"] -Program options: {"outDir":"/user/username/projects/myproject/packages/pkg1/build","preserveSymlinks":true,"traceResolution":true,"configFilePath":"/user/username/projects/myproject/packages/pkg1/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/packages/pkg1/index.ts" +] +Program options: { + "outDir": "/user/username/projects/myproject/packages/pkg1/build", + "preserveSymlinks": true, + "traceResolution": true, + "configFilePath": "/user/username/projects/myproject/packages/pkg1/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tsbuild/moduleResolution/resolves-specifier-in-output-declaration-file-from-referenced-project-correctly.js b/tests/baselines/reference/tsbuild/moduleResolution/resolves-specifier-in-output-declaration-file-from-referenced-project-correctly.js index 0f7944c3ec1cc..f1d3342a1f46d 100644 --- a/tests/baselines/reference/tsbuild/moduleResolution/resolves-specifier-in-output-declaration-file-from-referenced-project-correctly.js +++ b/tests/baselines/reference/tsbuild/moduleResolution/resolves-specifier-in-output-declaration-file-from-referenced-project-correctly.js @@ -5,7 +5,16 @@ import type { TheNum } from 'pkg2' export const theNum: TheNum = 42; //// [/user/username/projects/myproject/packages/pkg1/tsconfig.json] -{"compilerOptions":{"outDir":"build"},"references":[{"path":"../pkg2"}]} +{ + "compilerOptions": { + "outDir": "build" + }, + "references": [ + { + "path": "../pkg2" + } + ] +} //// [/user/username/projects/myproject/packages/pkg2/const.ts] export type TheNum = 42; @@ -14,10 +23,20 @@ export type TheNum = 42; export type { TheNum } from 'const'; //// [/user/username/projects/myproject/packages/pkg2/tsconfig.json] -{"compilerOptions":{"composite":true,"outDir":"build","baseUrl":"."}} +{ + "compilerOptions": { + "composite": true, + "outDir": "build", + "baseUrl": "." + } +} //// [/user/username/projects/myproject/packages/pkg2/package.json] -{"name":"pkg2","version":"1.0.0","main":"build/index.js"} +{ + "name": "pkg2", + "version": "1.0.0", + "main": "build/index.js" +} //// [/user/username/projects/myproject/node_modules/pkg2] symlink(/user/username/projects/myproject/packages/pkg2) //// [/a/lib/lib.d.ts] @@ -88,8 +107,17 @@ File '/user/username/projects/myproject/packages/pkg2/const.ts' exists - use it ======== Module name 'const' was successfully resolved to '/user/username/projects/myproject/packages/pkg2/const.ts'. ======== -Program root files: ["/user/username/projects/myproject/packages/pkg2/const.ts","/user/username/projects/myproject/packages/pkg2/index.ts"] -Program options: {"composite":true,"outDir":"/user/username/projects/myproject/packages/pkg2/build","baseUrl":"/user/username/projects/myproject/packages/pkg2","traceResolution":true,"configFilePath":"/user/username/projects/myproject/packages/pkg2/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/packages/pkg2/const.ts", + "/user/username/projects/myproject/packages/pkg2/index.ts" +] +Program options: { + "composite": true, + "outDir": "/user/username/projects/myproject/packages/pkg2/build", + "baseUrl": "/user/username/projects/myproject/packages/pkg2", + "traceResolution": true, + "configFilePath": "/user/username/projects/myproject/packages/pkg2/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -106,8 +134,14 @@ Shape signatures in builder refreshed for:: /user/username/projects/myproject/packages/pkg2/const.ts (computed .d.ts during emit) /user/username/projects/myproject/packages/pkg2/index.ts (computed .d.ts during emit) -Program root files: ["/user/username/projects/myproject/packages/pkg1/index.ts"] -Program options: {"outDir":"/user/username/projects/myproject/packages/pkg1/build","traceResolution":true,"configFilePath":"/user/username/projects/myproject/packages/pkg1/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/packages/pkg1/index.ts" +] +Program options: { + "outDir": "/user/username/projects/myproject/packages/pkg1/build", + "traceResolution": true, + "configFilePath": "/user/username/projects/myproject/packages/pkg1/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tsbuild/moduleResolution/type-reference-resolution-uses-correct-options-for-different-resolution-options-referenced-project.js b/tests/baselines/reference/tsbuild/moduleResolution/type-reference-resolution-uses-correct-options-for-different-resolution-options-referenced-project.js index 8754ae4c4eb2e..38b754724cbe4 100644 --- a/tests/baselines/reference/tsbuild/moduleResolution/type-reference-resolution-uses-correct-options-for-different-resolution-options-referenced-project.js +++ b/tests/baselines/reference/tsbuild/moduleResolution/type-reference-resolution-uses-correct-options-for-different-resolution-options-referenced-project.js @@ -16,13 +16,33 @@ interface ReadonlyArray {} declare const console: { log(msg: any): void; }; //// [/src/packages/pkg1.tsconfig.json] -{"compilerOptions":{"composite":true,"typeRoots":["./typeroot1"]},"files":["./pkg1_index.ts"]} +{ + "compilerOptions": { + "composite": true, + "typeRoots": [ + "./typeroot1" + ] + }, + "files": [ + "./pkg1_index.ts" + ] +} //// [/src/packages/pkg1_index.ts] export const theNum: TheNum = "type1"; //// [/src/packages/pkg2.tsconfig.json] -{"compilerOptions":{"composite":true,"typeRoots":["./typeroot2"]},"files":["./pkg2_index.ts"]} +{ + "compilerOptions": { + "composite": true, + "typeRoots": [ + "./typeroot2" + ] + }, + "files": [ + "./pkg2_index.ts" + ] +} //// [/src/packages/pkg2_index.ts] export const theNum: TheNum2 = "type2"; diff --git a/tests/baselines/reference/tsbuild/noEmit/semantic-errors-with-incremental.js b/tests/baselines/reference/tsbuild/noEmit/semantic-errors-with-incremental.js index 3d4d61924469a..daa16a0ac1e06 100644 --- a/tests/baselines/reference/tsbuild/noEmit/semantic-errors-with-incremental.js +++ b/tests/baselines/reference/tsbuild/noEmit/semantic-errors-with-incremental.js @@ -19,7 +19,11 @@ declare const console: { log(msg: any): void; }; const a: number = "hello" //// [/src/tsconfig.json] -{"compilerOptions":{"noEmit":true}} +{ + "compilerOptions": { + "noEmit": true + } +} @@ -41,8 +45,14 @@ Output:: Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/a.ts"] -Program options: {"noEmit":true,"incremental":true,"configFilePath":"/src/tsconfig.json"} +Program root files: [ + "/src/a.ts" +] +Program options: { + "noEmit": true, + "incremental": true, + "configFilePath": "/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -146,8 +156,14 @@ Output:: Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/a.ts"] -Program options: {"noEmit":true,"incremental":true,"configFilePath":"/src/tsconfig.json"} +Program root files: [ + "/src/a.ts" +] +Program options: { + "noEmit": true, + "incremental": true, + "configFilePath": "/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -177,8 +193,14 @@ Output:: [12:00:20 AM] Building project '/src/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/a.ts"] -Program options: {"noEmit":true,"incremental":true,"configFilePath":"/src/tsconfig.json"} +Program root files: [ + "/src/a.ts" +] +Program options: { + "noEmit": true, + "incremental": true, + "configFilePath": "/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts diff --git a/tests/baselines/reference/tsbuild/noEmit/semantic-errors.js b/tests/baselines/reference/tsbuild/noEmit/semantic-errors.js index 91c4ec829c504..f95748d03d8ab 100644 --- a/tests/baselines/reference/tsbuild/noEmit/semantic-errors.js +++ b/tests/baselines/reference/tsbuild/noEmit/semantic-errors.js @@ -19,7 +19,11 @@ declare const console: { log(msg: any): void; }; const a: number = "hello" //// [/src/tsconfig.json] -{"compilerOptions":{"noEmit":true}} +{ + "compilerOptions": { + "noEmit": true + } +} @@ -41,8 +45,13 @@ Output:: Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/a.ts"] -Program options: {"noEmit":true,"configFilePath":"/src/tsconfig.json"} +Program root files: [ + "/src/a.ts" +] +Program options: { + "noEmit": true, + "configFilePath": "/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -81,8 +90,13 @@ Output:: Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/a.ts"] -Program options: {"noEmit":true,"configFilePath":"/src/tsconfig.json"} +Program root files: [ + "/src/a.ts" +] +Program options: { + "noEmit": true, + "configFilePath": "/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -116,8 +130,13 @@ Output:: [12:00:17 AM] Building project '/src/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/a.ts"] -Program options: {"noEmit":true,"configFilePath":"/src/tsconfig.json"} +Program root files: [ + "/src/a.ts" +] +Program options: { + "noEmit": true, + "configFilePath": "/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -148,8 +167,13 @@ Output:: [12:00:20 AM] Building project '/src/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/a.ts"] -Program options: {"noEmit":true,"configFilePath":"/src/tsconfig.json"} +Program root files: [ + "/src/a.ts" +] +Program options: { + "noEmit": true, + "configFilePath": "/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts diff --git a/tests/baselines/reference/tsbuild/noEmit/syntax-errors-with-incremental.js b/tests/baselines/reference/tsbuild/noEmit/syntax-errors-with-incremental.js index f6e41d3dfbc78..0354b83edebcc 100644 --- a/tests/baselines/reference/tsbuild/noEmit/syntax-errors-with-incremental.js +++ b/tests/baselines/reference/tsbuild/noEmit/syntax-errors-with-incremental.js @@ -19,7 +19,11 @@ declare const console: { log(msg: any): void; }; const a = "hello //// [/src/tsconfig.json] -{"compilerOptions":{"noEmit":true}} +{ + "compilerOptions": { + "noEmit": true + } +} @@ -41,8 +45,14 @@ Output:: Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/a.ts"] -Program options: {"noEmit":true,"incremental":true,"configFilePath":"/src/tsconfig.json"} +Program root files: [ + "/src/a.ts" +] +Program options: { + "noEmit": true, + "incremental": true, + "configFilePath": "/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -124,8 +134,14 @@ Output:: Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/a.ts"] -Program options: {"noEmit":true,"incremental":true,"configFilePath":"/src/tsconfig.json"} +Program root files: [ + "/src/a.ts" +] +Program options: { + "noEmit": true, + "incremental": true, + "configFilePath": "/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -155,8 +171,14 @@ Output:: [12:00:20 AM] Building project '/src/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/a.ts"] -Program options: {"noEmit":true,"incremental":true,"configFilePath":"/src/tsconfig.json"} +Program root files: [ + "/src/a.ts" +] +Program options: { + "noEmit": true, + "incremental": true, + "configFilePath": "/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts diff --git a/tests/baselines/reference/tsbuild/noEmit/syntax-errors.js b/tests/baselines/reference/tsbuild/noEmit/syntax-errors.js index 8a60f1027e614..b062adf1c65dd 100644 --- a/tests/baselines/reference/tsbuild/noEmit/syntax-errors.js +++ b/tests/baselines/reference/tsbuild/noEmit/syntax-errors.js @@ -19,7 +19,11 @@ declare const console: { log(msg: any): void; }; const a = "hello //// [/src/tsconfig.json] -{"compilerOptions":{"noEmit":true}} +{ + "compilerOptions": { + "noEmit": true + } +} @@ -41,8 +45,13 @@ Output:: Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/a.ts"] -Program options: {"noEmit":true,"configFilePath":"/src/tsconfig.json"} +Program root files: [ + "/src/a.ts" +] +Program options: { + "noEmit": true, + "configFilePath": "/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -77,8 +86,13 @@ Output:: Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/a.ts"] -Program options: {"noEmit":true,"configFilePath":"/src/tsconfig.json"} +Program root files: [ + "/src/a.ts" +] +Program options: { + "noEmit": true, + "configFilePath": "/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -108,8 +122,13 @@ Output:: [12:00:17 AM] Building project '/src/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/a.ts"] -Program options: {"noEmit":true,"configFilePath":"/src/tsconfig.json"} +Program root files: [ + "/src/a.ts" +] +Program options: { + "noEmit": true, + "configFilePath": "/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -140,8 +159,13 @@ Output:: [12:00:20 AM] Building project '/src/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/a.ts"] -Program options: {"noEmit":true,"configFilePath":"/src/tsconfig.json"} +Program root files: [ + "/src/a.ts" +] +Program options: { + "noEmit": true, + "configFilePath": "/src/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts diff --git a/tests/baselines/reference/tsbuild/noEmitOnError/semantic-errors-with-incremental.js b/tests/baselines/reference/tsbuild/noEmitOnError/semantic-errors-with-incremental.js index 1de01d62aa162..f9db2c0471b80 100644 --- a/tests/baselines/reference/tsbuild/noEmitOnError/semantic-errors-with-incremental.js +++ b/tests/baselines/reference/tsbuild/noEmitOnError/semantic-errors-with-incremental.js @@ -1,6 +1,6 @@ -currentDirectory:: / useCaseSensitiveFileNames: false +currentDirectory:: /user/username/projects/noEmitOnError useCaseSensitiveFileNames: false Input:: -//// [/lib/lib.d.ts] +//// [/a/lib/lib.d.ts] /// interface Boolean {} interface Function {} @@ -15,33 +15,34 @@ interface Array { length: number; [n: number]: T; } interface ReadonlyArray {} declare const console: { log(msg: any): void; }; -//// [/src/shared/types/db.ts] -export interface A { - name: string; -} +//// [/user/username/projects/noEmitOnError/shared/types/db.ts] +export interface A { + name: string; +} + -//// [/src/src/main.ts] +//// [/user/username/projects/noEmitOnError/src/main.ts] import { A } from "../shared/types/db"; const a: string = 10; -//// [/src/src/other.ts] -console.log("hi"); -export { } +//// [/user/username/projects/noEmitOnError/src/other.ts] +console.log("hi"); +export { } + -//// [/src/tsconfig.json] -{ - "compilerOptions": { - "outDir": "./dev-build", - "noEmitOnError": true - } +//// [/user/username/projects/noEmitOnError/tsconfig.json] +{ + "compilerOptions": { + "outDir": "./dev-build", + "noEmitOnError": true + } } - Output:: -/lib/tsc --b /src/tsconfig.json --incremental -src/src/main.ts:2:7 - error TS2322: Type 'number' is not assignable to type 'string'. +/a/lib/tsc --b --incremental +src/main.ts:2:7 - error TS2322: Type 'number' is not assignable to type 'string'. 2 const a: string = 10;    ~ @@ -50,36 +51,45 @@ Output:: Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/shared/types/db.ts","/src/src/main.ts","/src/src/other.ts"] -Program options: {"outDir":"/src/dev-build","noEmitOnError":true,"incremental":true,"configFilePath":"/src/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "incremental": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Not Program files:: -/lib/lib.d.ts -/src/shared/types/db.ts -/src/src/main.ts -/src/src/other.ts +/a/lib/lib.d.ts +/user/username/projects/noEmitOnError/shared/types/db.ts +/user/username/projects/noEmitOnError/src/main.ts +/user/username/projects/noEmitOnError/src/other.ts Semantic diagnostics in builder refreshed for:: -/lib/lib.d.ts -/src/shared/types/db.ts -/src/src/main.ts -/src/src/other.ts +/a/lib/lib.d.ts +/user/username/projects/noEmitOnError/shared/types/db.ts +/user/username/projects/noEmitOnError/src/main.ts +/user/username/projects/noEmitOnError/src/other.ts Shape signatures in builder refreshed for:: -/lib/lib.d.ts (used version) -/src/shared/types/db.ts (used version) -/src/src/main.ts (used version) -/src/src/other.ts (used version) +/a/lib/lib.d.ts (used version) +/user/username/projects/noemitonerror/shared/types/db.ts (used version) +/user/username/projects/noemitonerror/src/main.ts (used version) +/user/username/projects/noemitonerror/src/other.ts (used version) -//// [/src/dev-build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-9621097780-export interface A {\r\n name: string;\r\n}","-11111345725-import { A } from \"../shared/types/db\";\nconst a: string = 10;","11373096570-console.log(\"hi\");\r\nexport { }"],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"../src/main.ts","start":46,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]],4],"affectedFilesPendingEmit":[2,3,4]},"version":"FakeTSVersion"} +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-5014788164-export interface A {\n name: string;\n}\n","-11111345725-import { A } from \"../shared/types/db\";\nconst a: string = 10;","9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"../src/main.ts","start":46,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]],4],"affectedFilesPendingEmit":[2,3,4]},"version":"FakeTSVersion"} -//// [/src/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../shared/types/db.ts", "../src/main.ts", "../src/other.ts" @@ -90,7 +100,7 @@ Shape signatures in builder refreshed for:: ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -100,16 +110,16 @@ Shape signatures in builder refreshed for:: "affectsGlobalScope": true }, "../shared/types/db.ts": { - "version": "-9621097780-export interface A {\r\n name: string;\r\n}", - "signature": "-9621097780-export interface A {\r\n name: string;\r\n}" + "version": "-5014788164-export interface A {\n name: string;\n}\n", + "signature": "-5014788164-export interface A {\n name: string;\n}\n" }, "../src/main.ts": { "version": "-11111345725-import { A } from \"../shared/types/db\";\nconst a: string = 10;", "signature": "-11111345725-import { A } from \"../shared/types/db\";\nconst a: string = 10;" }, "../src/other.ts": { - "version": "11373096570-console.log(\"hi\");\r\nexport { }", - "signature": "11373096570-console.log(\"hi\");\r\nexport { }" + "version": "9084524823-console.log(\"hi\");\nexport { }\n", + "signature": "9084524823-console.log(\"hi\");\nexport { }\n" } }, "root": [ @@ -140,7 +150,7 @@ Shape signatures in builder refreshed for:: ] }, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../shared/types/db.ts", [ "../src/main.ts", @@ -173,7 +183,7 @@ Shape signatures in builder refreshed for:: ] }, "version": "FakeTSVersion", - "size": 1168 + "size": 1176 } @@ -183,8 +193,8 @@ Input:: Output:: -/lib/tsc --b /src/tsconfig.json --incremental -src/src/main.ts:2:7 - error TS2322: Type 'number' is not assignable to type 'string'. +/a/lib/tsc --b --incremental +src/main.ts:2:7 - error TS2322: Type 'number' is not assignable to type 'string'. 2 const a: string = 10;    ~ @@ -193,14 +203,23 @@ Output:: Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/shared/types/db.ts","/src/src/main.ts","/src/src/other.ts"] -Program options: {"outDir":"/src/dev-build","noEmitOnError":true,"incremental":true,"configFilePath":"/src/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "incremental": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Not Program files:: -/lib/lib.d.ts -/src/shared/types/db.ts -/src/src/main.ts -/src/src/other.ts +/a/lib/lib.d.ts +/user/username/projects/noEmitOnError/shared/types/db.ts +/user/username/projects/noEmitOnError/src/main.ts +/user/username/projects/noEmitOnError/src/other.ts Semantic diagnostics in builder refreshed for:: @@ -211,56 +230,65 @@ No shapes updated in the builder:: Change:: Fix error Input:: -//// [/src/src/main.ts] +//// [/user/username/projects/noEmitOnError/src/main.ts] import { A } from "../shared/types/db"; const a: string = "hello"; Output:: -/lib/tsc --b /src/tsconfig.json --incremental +/a/lib/tsc --b --incremental exitCode:: ExitStatus.Success -Program root files: ["/src/shared/types/db.ts","/src/src/main.ts","/src/src/other.ts"] -Program options: {"outDir":"/src/dev-build","noEmitOnError":true,"incremental":true,"configFilePath":"/src/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "incremental": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Not Program files:: -/lib/lib.d.ts -/src/shared/types/db.ts -/src/src/main.ts -/src/src/other.ts +/a/lib/lib.d.ts +/user/username/projects/noEmitOnError/shared/types/db.ts +/user/username/projects/noEmitOnError/src/main.ts +/user/username/projects/noEmitOnError/src/other.ts Semantic diagnostics in builder refreshed for:: -/src/src/main.ts +/user/username/projects/noEmitOnError/src/main.ts Shape signatures in builder refreshed for:: -/src/src/main.ts (computed .d.ts) +/user/username/projects/noemitonerror/src/main.ts (computed .d.ts) -//// [/src/dev-build/shared/types/db.js] +//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -//// [/src/dev-build/src/main.js] +//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var a = "hello"; -//// [/src/dev-build/src/other.js] +//// [/user/username/projects/noEmitOnError/dev-build/src/other.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); console.log("hi"); -//// [/src/dev-build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-9621097780-export interface A {\r\n name: string;\r\n}",{"version":"-8373351622-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";","signature":"-3531856636-export {};\n"},"11373096570-console.log(\"hi\");\r\nexport { }"],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-5014788164-export interface A {\n name: string;\n}\n",{"version":"-8373351622-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";","signature":"-3531856636-export {};\n"},"9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} -//// [/src/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../shared/types/db.ts", "../src/main.ts", "../src/other.ts" @@ -271,7 +299,7 @@ console.log("hi"); ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -281,8 +309,8 @@ console.log("hi"); "affectsGlobalScope": true }, "../shared/types/db.ts": { - "version": "-9621097780-export interface A {\r\n name: string;\r\n}", - "signature": "-9621097780-export interface A {\r\n name: string;\r\n}" + "version": "-5014788164-export interface A {\n name: string;\n}\n", + "signature": "-5014788164-export interface A {\n name: string;\n}\n" }, "../src/main.ts": { "original": { @@ -293,8 +321,8 @@ console.log("hi"); "signature": "-3531856636-export {};\n" }, "../src/other.ts": { - "version": "11373096570-console.log(\"hi\");\r\nexport { }", - "signature": "11373096570-console.log(\"hi\");\r\nexport { }" + "version": "9084524823-console.log(\"hi\");\nexport { }\n", + "signature": "9084524823-console.log(\"hi\");\nexport { }\n" } }, "root": [ @@ -321,14 +349,14 @@ console.log("hi"); }, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../shared/types/db.ts", "../src/main.ts", "../src/other.ts" ] }, "version": "FakeTSVersion", - "size": 1042 + "size": 1050 } @@ -338,7 +366,7 @@ Input:: Output:: -/lib/tsc --b /src/tsconfig.json --incremental +/a/lib/tsc --b --incremental exitCode:: ExitStatus.Success diff --git a/tests/baselines/reference/tsbuild/noEmitOnError/semantic-errors.js b/tests/baselines/reference/tsbuild/noEmitOnError/semantic-errors.js index 55b98b4f23271..3ad99159bf65c 100644 --- a/tests/baselines/reference/tsbuild/noEmitOnError/semantic-errors.js +++ b/tests/baselines/reference/tsbuild/noEmitOnError/semantic-errors.js @@ -1,6 +1,6 @@ -currentDirectory:: / useCaseSensitiveFileNames: false +currentDirectory:: /user/username/projects/noEmitOnError useCaseSensitiveFileNames: false Input:: -//// [/lib/lib.d.ts] +//// [/a/lib/lib.d.ts] /// interface Boolean {} interface Function {} @@ -15,33 +15,34 @@ interface Array { length: number; [n: number]: T; } interface ReadonlyArray {} declare const console: { log(msg: any): void; }; -//// [/src/shared/types/db.ts] -export interface A { - name: string; -} +//// [/user/username/projects/noEmitOnError/shared/types/db.ts] +export interface A { + name: string; +} + -//// [/src/src/main.ts] +//// [/user/username/projects/noEmitOnError/src/main.ts] import { A } from "../shared/types/db"; const a: string = 10; -//// [/src/src/other.ts] -console.log("hi"); -export { } +//// [/user/username/projects/noEmitOnError/src/other.ts] +console.log("hi"); +export { } -//// [/src/tsconfig.json] -{ - "compilerOptions": { - "outDir": "./dev-build", - "noEmitOnError": true - } -} +//// [/user/username/projects/noEmitOnError/tsconfig.json] +{ + "compilerOptions": { + "outDir": "./dev-build", + "noEmitOnError": true + } +} Output:: -/lib/tsc --b /src/tsconfig.json -src/src/main.ts:2:7 - error TS2322: Type 'number' is not assignable to type 'string'. +/a/lib/tsc --b +src/main.ts:2:7 - error TS2322: Type 'number' is not assignable to type 'string'. 2 const a: string = 10;    ~ @@ -50,26 +51,34 @@ Output:: Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/shared/types/db.ts","/src/src/main.ts","/src/src/other.ts"] -Program options: {"outDir":"/src/dev-build","noEmitOnError":true,"configFilePath":"/src/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Not Program files:: -/lib/lib.d.ts -/src/shared/types/db.ts -/src/src/main.ts -/src/src/other.ts +/a/lib/lib.d.ts +/user/username/projects/noEmitOnError/shared/types/db.ts +/user/username/projects/noEmitOnError/src/main.ts +/user/username/projects/noEmitOnError/src/other.ts Semantic diagnostics in builder refreshed for:: -/lib/lib.d.ts -/src/shared/types/db.ts -/src/src/main.ts -/src/src/other.ts +/a/lib/lib.d.ts +/user/username/projects/noEmitOnError/shared/types/db.ts +/user/username/projects/noEmitOnError/src/main.ts +/user/username/projects/noEmitOnError/src/other.ts Shape signatures in builder refreshed for:: -/lib/lib.d.ts (used version) -/src/shared/types/db.ts (used version) -/src/src/main.ts (used version) -/src/src/other.ts (used version) +/a/lib/lib.d.ts (used version) +/user/username/projects/noemitonerror/shared/types/db.ts (used version) +/user/username/projects/noemitonerror/src/main.ts (used version) +/user/username/projects/noemitonerror/src/other.ts (used version) @@ -79,8 +88,8 @@ Input:: Output:: -/lib/tsc --b /src/tsconfig.json -src/src/main.ts:2:7 - error TS2322: Type 'number' is not assignable to type 'string'. +/a/lib/tsc --b +src/main.ts:2:7 - error TS2322: Type 'number' is not assignable to type 'string'. 2 const a: string = 10;    ~ @@ -89,75 +98,91 @@ Output:: Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/shared/types/db.ts","/src/src/main.ts","/src/src/other.ts"] -Program options: {"outDir":"/src/dev-build","noEmitOnError":true,"configFilePath":"/src/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Not Program files:: -/lib/lib.d.ts -/src/shared/types/db.ts -/src/src/main.ts -/src/src/other.ts +/a/lib/lib.d.ts +/user/username/projects/noEmitOnError/shared/types/db.ts +/user/username/projects/noEmitOnError/src/main.ts +/user/username/projects/noEmitOnError/src/other.ts Semantic diagnostics in builder refreshed for:: -/lib/lib.d.ts -/src/shared/types/db.ts -/src/src/main.ts -/src/src/other.ts +/a/lib/lib.d.ts +/user/username/projects/noEmitOnError/shared/types/db.ts +/user/username/projects/noEmitOnError/src/main.ts +/user/username/projects/noEmitOnError/src/other.ts Shape signatures in builder refreshed for:: -/lib/lib.d.ts (used version) -/src/shared/types/db.ts (used version) -/src/src/main.ts (used version) -/src/src/other.ts (used version) +/a/lib/lib.d.ts (used version) +/user/username/projects/noemitonerror/shared/types/db.ts (used version) +/user/username/projects/noemitonerror/src/main.ts (used version) +/user/username/projects/noemitonerror/src/other.ts (used version) Change:: Fix error Input:: -//// [/src/src/main.ts] +//// [/user/username/projects/noEmitOnError/src/main.ts] import { A } from "../shared/types/db"; const a: string = "hello"; Output:: -/lib/tsc --b /src/tsconfig.json +/a/lib/tsc --b exitCode:: ExitStatus.Success -Program root files: ["/src/shared/types/db.ts","/src/src/main.ts","/src/src/other.ts"] -Program options: {"outDir":"/src/dev-build","noEmitOnError":true,"configFilePath":"/src/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Not Program files:: -/lib/lib.d.ts -/src/shared/types/db.ts -/src/src/main.ts -/src/src/other.ts +/a/lib/lib.d.ts +/user/username/projects/noEmitOnError/shared/types/db.ts +/user/username/projects/noEmitOnError/src/main.ts +/user/username/projects/noEmitOnError/src/other.ts Semantic diagnostics in builder refreshed for:: -/lib/lib.d.ts -/src/shared/types/db.ts -/src/src/main.ts -/src/src/other.ts +/a/lib/lib.d.ts +/user/username/projects/noEmitOnError/shared/types/db.ts +/user/username/projects/noEmitOnError/src/main.ts +/user/username/projects/noEmitOnError/src/other.ts Shape signatures in builder refreshed for:: -/lib/lib.d.ts (used version) -/src/shared/types/db.ts (used version) -/src/src/main.ts (used version) -/src/src/other.ts (used version) +/a/lib/lib.d.ts (used version) +/user/username/projects/noemitonerror/shared/types/db.ts (used version) +/user/username/projects/noemitonerror/src/main.ts (used version) +/user/username/projects/noemitonerror/src/other.ts (used version) -//// [/src/dev-build/shared/types/db.js] +//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -//// [/src/dev-build/src/main.js] +//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var a = "hello"; -//// [/src/dev-build/src/other.js] +//// [/user/username/projects/noEmitOnError/dev-build/src/other.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); console.log("hi"); @@ -170,7 +195,7 @@ Input:: Output:: -/lib/tsc --b /src/tsconfig.json +/a/lib/tsc --b exitCode:: ExitStatus.Success diff --git a/tests/baselines/reference/tsbuild/noEmitOnError/syntax-errors-with-incremental.js b/tests/baselines/reference/tsbuild/noEmitOnError/syntax-errors-with-incremental.js index b7fc29b42aad3..dc8fb6142caa0 100644 --- a/tests/baselines/reference/tsbuild/noEmitOnError/syntax-errors-with-incremental.js +++ b/tests/baselines/reference/tsbuild/noEmitOnError/syntax-errors-with-incremental.js @@ -1,6 +1,6 @@ -currentDirectory:: / useCaseSensitiveFileNames: false +currentDirectory:: /user/username/projects/noEmitOnError useCaseSensitiveFileNames: false Input:: -//// [/lib/lib.d.ts] +//// [/a/lib/lib.d.ts] /// interface Boolean {} interface Function {} @@ -15,35 +15,37 @@ interface Array { length: number; [n: number]: T; } interface ReadonlyArray {} declare const console: { log(msg: any): void; }; -//// [/src/shared/types/db.ts] -export interface A { - name: string; -} +//// [/user/username/projects/noEmitOnError/shared/types/db.ts] +export interface A { + name: string; +} + + +//// [/user/username/projects/noEmitOnError/src/main.ts] +import { A } from "../shared/types/db"; +const a = { + lastName: 'sdsd' +; -//// [/src/src/main.ts] -import { A } from "../shared/types/db"; -const a = { - lastName: 'sdsd' -; - -//// [/src/src/other.ts] -console.log("hi"); -export { } - -//// [/src/tsconfig.json] -{ - "compilerOptions": { - "outDir": "./dev-build", - "noEmitOnError": true - } -} + +//// [/user/username/projects/noEmitOnError/src/other.ts] +console.log("hi"); +export { } +//// [/user/username/projects/noEmitOnError/tsconfig.json] +{ + "compilerOptions": { + "outDir": "./dev-build", + "noEmitOnError": true + } +} + Output:: -/lib/tsc --b /src/tsconfig.json --incremental -src/src/main.ts:4:1 - error TS1005: ',' expected. +/a/lib/tsc --b --incremental +src/main.ts:4:1 - error TS1005: ',' expected. 4 ;   ~ @@ -52,28 +54,37 @@ Output:: Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/shared/types/db.ts","/src/src/main.ts","/src/src/other.ts"] -Program options: {"outDir":"/src/dev-build","noEmitOnError":true,"incremental":true,"configFilePath":"/src/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "incremental": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Not Program files:: -/lib/lib.d.ts -/src/shared/types/db.ts -/src/src/main.ts -/src/src/other.ts +/a/lib/lib.d.ts +/user/username/projects/noEmitOnError/shared/types/db.ts +/user/username/projects/noEmitOnError/src/main.ts +/user/username/projects/noEmitOnError/src/other.ts No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -//// [/src/dev-build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"-9621097780-export interface A {\r\n name: string;\r\n}","signature":false},{"version":"2626879346-import { A } from \"../shared/types/db\";\r\nconst a = {\r\n lastName: 'sdsd'\r\n;","signature":false},{"version":"11373096570-console.log(\"hi\");\r\nexport { }","signature":false}],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"changeFileSet":[1,2,3,4]},"version":"FakeTSVersion"} +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"-5014788164-export interface A {\n name: string;\n}\n","signature":false},{"version":"-2574607723-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;\n","signature":false},{"version":"9084524823-console.log(\"hi\");\nexport { }\n","signature":false}],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"changeFileSet":[1,2,3,4]},"version":"FakeTSVersion"} -//// [/src/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../shared/types/db.ts", "../src/main.ts", "../src/other.ts" @@ -84,7 +95,7 @@ No shapes updated in the builder:: ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "signature": false, @@ -95,24 +106,24 @@ No shapes updated in the builder:: }, "../shared/types/db.ts": { "original": { - "version": "-9621097780-export interface A {\r\n name: string;\r\n}", + "version": "-5014788164-export interface A {\n name: string;\n}\n", "signature": false }, - "version": "-9621097780-export interface A {\r\n name: string;\r\n}" + "version": "-5014788164-export interface A {\n name: string;\n}\n" }, "../src/main.ts": { "original": { - "version": "2626879346-import { A } from \"../shared/types/db\";\r\nconst a = {\r\n lastName: 'sdsd'\r\n;", + "version": "-2574607723-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;\n", "signature": false }, - "version": "2626879346-import { A } from \"../shared/types/db\";\r\nconst a = {\r\n lastName: 'sdsd'\r\n;" + "version": "-2574607723-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;\n" }, "../src/other.ts": { "original": { - "version": "11373096570-console.log(\"hi\");\r\nexport { }", + "version": "9084524823-console.log(\"hi\");\nexport { }\n", "signature": false }, - "version": "11373096570-console.log(\"hi\");\r\nexport { }" + "version": "9084524823-console.log(\"hi\");\nexport { }\n" } }, "root": [ @@ -139,14 +150,14 @@ No shapes updated in the builder:: }, "exportedModulesMap": {}, "changeFileSet": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../shared/types/db.ts", "../src/main.ts", "../src/other.ts" ] }, "version": "FakeTSVersion", - "size": 1099 + "size": 1104 } @@ -156,8 +167,8 @@ Input:: Output:: -/lib/tsc --b /src/tsconfig.json --incremental -src/src/main.ts:4:1 - error TS1005: ',' expected. +/a/lib/tsc --b --incremental +src/main.ts:4:1 - error TS1005: ',' expected. 4 ;   ~ @@ -166,14 +177,23 @@ Output:: Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/shared/types/db.ts","/src/src/main.ts","/src/src/other.ts"] -Program options: {"outDir":"/src/dev-build","noEmitOnError":true,"incremental":true,"configFilePath":"/src/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "incremental": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Not Program files:: -/lib/lib.d.ts -/src/shared/types/db.ts -/src/src/main.ts -/src/src/other.ts +/a/lib/lib.d.ts +/user/username/projects/noEmitOnError/shared/types/db.ts +/user/username/projects/noEmitOnError/src/main.ts +/user/username/projects/noEmitOnError/src/other.ts No cached semantic diagnostics in the builder:: @@ -184,7 +204,7 @@ No shapes updated in the builder:: Change:: Fix error Input:: -//// [/src/src/main.ts] +//// [/user/username/projects/noEmitOnError/src/main.ts] import { A } from "../shared/types/db"; const a = { lastName: 'sdsd' @@ -193,36 +213,45 @@ const a = { Output:: -/lib/tsc --b /src/tsconfig.json --incremental +/a/lib/tsc --b --incremental exitCode:: ExitStatus.Success -Program root files: ["/src/shared/types/db.ts","/src/src/main.ts","/src/src/other.ts"] -Program options: {"outDir":"/src/dev-build","noEmitOnError":true,"incremental":true,"configFilePath":"/src/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "incremental": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Not Program files:: -/lib/lib.d.ts -/src/shared/types/db.ts -/src/src/main.ts -/src/src/other.ts +/a/lib/lib.d.ts +/user/username/projects/noEmitOnError/shared/types/db.ts +/user/username/projects/noEmitOnError/src/main.ts +/user/username/projects/noEmitOnError/src/other.ts Semantic diagnostics in builder refreshed for:: -/lib/lib.d.ts -/src/shared/types/db.ts -/src/src/main.ts -/src/src/other.ts +/a/lib/lib.d.ts +/user/username/projects/noEmitOnError/shared/types/db.ts +/user/username/projects/noEmitOnError/src/main.ts +/user/username/projects/noEmitOnError/src/other.ts Shape signatures in builder refreshed for:: -/lib/lib.d.ts (used version) -/src/shared/types/db.ts (computed .d.ts) -/src/src/main.ts (computed .d.ts) -/src/src/other.ts (computed .d.ts) +/a/lib/lib.d.ts (used version) +/user/username/projects/noemitonerror/shared/types/db.ts (used version) +/user/username/projects/noemitonerror/src/main.ts (computed .d.ts) +/user/username/projects/noemitonerror/src/other.ts (computed .d.ts) -//// [/src/dev-build/shared/types/db.js] +//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -//// [/src/dev-build/src/main.js] +//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var a = { @@ -230,20 +259,20 @@ var a = { }; -//// [/src/dev-build/src/other.js] +//// [/user/username/projects/noEmitOnError/dev-build/src/other.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); console.log("hi"); -//// [/src/dev-build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-9621097780-export interface A {\r\n name: string;\r\n}","signature":"-5014788164-export interface A {\n name: string;\n}\n"},{"version":"-2574605496-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};","signature":"-3531856636-export {};\n"},{"version":"11373096570-console.log(\"hi\");\r\nexport { }","signature":"-3531856636-export {};\n"}],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-5014788164-export interface A {\n name: string;\n}\n",{"version":"-2574605496-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};","signature":"-3531856636-export {};\n"},{"version":"9084524823-console.log(\"hi\");\nexport { }\n","signature":"-3531856636-export {};\n"}],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} -//// [/src/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../shared/types/db.ts", "../src/main.ts", "../src/other.ts" @@ -254,7 +283,7 @@ console.log("hi"); ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -264,11 +293,7 @@ console.log("hi"); "affectsGlobalScope": true }, "../shared/types/db.ts": { - "original": { - "version": "-9621097780-export interface A {\r\n name: string;\r\n}", - "signature": "-5014788164-export interface A {\n name: string;\n}\n" - }, - "version": "-9621097780-export interface A {\r\n name: string;\r\n}", + "version": "-5014788164-export interface A {\n name: string;\n}\n", "signature": "-5014788164-export interface A {\n name: string;\n}\n" }, "../src/main.ts": { @@ -281,10 +306,10 @@ console.log("hi"); }, "../src/other.ts": { "original": { - "version": "11373096570-console.log(\"hi\");\r\nexport { }", + "version": "9084524823-console.log(\"hi\");\nexport { }\n", "signature": "-3531856636-export {};\n" }, - "version": "11373096570-console.log(\"hi\");\r\nexport { }", + "version": "9084524823-console.log(\"hi\");\nexport { }\n", "signature": "-3531856636-export {};\n" } }, @@ -312,14 +337,14 @@ console.log("hi"); }, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../shared/types/db.ts", "../src/main.ts", "../src/other.ts" ] }, "version": "FakeTSVersion", - "size": 1185 + "size": 1110 } @@ -329,7 +354,7 @@ Input:: Output:: -/lib/tsc --b /src/tsconfig.json --incremental +/a/lib/tsc --b --incremental exitCode:: ExitStatus.Success diff --git a/tests/baselines/reference/tsbuild/noEmitOnError/syntax-errors.js b/tests/baselines/reference/tsbuild/noEmitOnError/syntax-errors.js index 419cf2cc68b14..fda81b339e6f6 100644 --- a/tests/baselines/reference/tsbuild/noEmitOnError/syntax-errors.js +++ b/tests/baselines/reference/tsbuild/noEmitOnError/syntax-errors.js @@ -1,6 +1,6 @@ -currentDirectory:: / useCaseSensitiveFileNames: false +currentDirectory:: /user/username/projects/noEmitOnError useCaseSensitiveFileNames: false Input:: -//// [/lib/lib.d.ts] +//// [/a/lib/lib.d.ts] /// interface Boolean {} interface Function {} @@ -15,35 +15,37 @@ interface Array { length: number; [n: number]: T; } interface ReadonlyArray {} declare const console: { log(msg: any): void; }; -//// [/src/shared/types/db.ts] -export interface A { - name: string; -} +//// [/user/username/projects/noEmitOnError/shared/types/db.ts] +export interface A { + name: string; +} -//// [/src/src/main.ts] -import { A } from "../shared/types/db"; -const a = { - lastName: 'sdsd' -; - -//// [/src/src/other.ts] -console.log("hi"); -export { } - -//// [/src/tsconfig.json] -{ - "compilerOptions": { - "outDir": "./dev-build", - "noEmitOnError": true - } -} +//// [/user/username/projects/noEmitOnError/src/main.ts] +import { A } from "../shared/types/db"; +const a = { + lastName: 'sdsd' +; + + +//// [/user/username/projects/noEmitOnError/src/other.ts] +console.log("hi"); +export { } + + +//// [/user/username/projects/noEmitOnError/tsconfig.json] +{ + "compilerOptions": { + "outDir": "./dev-build", + "noEmitOnError": true + } +} Output:: -/lib/tsc --b /src/tsconfig.json -src/src/main.ts:4:1 - error TS1005: ',' expected. +/a/lib/tsc --b +src/main.ts:4:1 - error TS1005: ',' expected. 4 ;   ~ @@ -52,14 +54,22 @@ Output:: Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/shared/types/db.ts","/src/src/main.ts","/src/src/other.ts"] -Program options: {"outDir":"/src/dev-build","noEmitOnError":true,"configFilePath":"/src/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Not Program files:: -/lib/lib.d.ts -/src/shared/types/db.ts -/src/src/main.ts -/src/src/other.ts +/a/lib/lib.d.ts +/user/username/projects/noEmitOnError/shared/types/db.ts +/user/username/projects/noEmitOnError/src/main.ts +/user/username/projects/noEmitOnError/src/other.ts No cached semantic diagnostics in the builder:: @@ -73,8 +83,8 @@ Input:: Output:: -/lib/tsc --b /src/tsconfig.json -src/src/main.ts:4:1 - error TS1005: ',' expected. +/a/lib/tsc --b +src/main.ts:4:1 - error TS1005: ',' expected. 4 ;   ~ @@ -83,14 +93,22 @@ Output:: Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/shared/types/db.ts","/src/src/main.ts","/src/src/other.ts"] -Program options: {"outDir":"/src/dev-build","noEmitOnError":true,"configFilePath":"/src/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Not Program files:: -/lib/lib.d.ts -/src/shared/types/db.ts -/src/src/main.ts -/src/src/other.ts +/a/lib/lib.d.ts +/user/username/projects/noEmitOnError/shared/types/db.ts +/user/username/projects/noEmitOnError/src/main.ts +/user/username/projects/noEmitOnError/src/other.ts No cached semantic diagnostics in the builder:: @@ -101,7 +119,7 @@ No shapes updated in the builder:: Change:: Fix error Input:: -//// [/src/src/main.ts] +//// [/user/username/projects/noEmitOnError/src/main.ts] import { A } from "../shared/types/db"; const a = { lastName: 'sdsd' @@ -110,36 +128,44 @@ const a = { Output:: -/lib/tsc --b /src/tsconfig.json +/a/lib/tsc --b exitCode:: ExitStatus.Success -Program root files: ["/src/shared/types/db.ts","/src/src/main.ts","/src/src/other.ts"] -Program options: {"outDir":"/src/dev-build","noEmitOnError":true,"configFilePath":"/src/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Not Program files:: -/lib/lib.d.ts -/src/shared/types/db.ts -/src/src/main.ts -/src/src/other.ts +/a/lib/lib.d.ts +/user/username/projects/noEmitOnError/shared/types/db.ts +/user/username/projects/noEmitOnError/src/main.ts +/user/username/projects/noEmitOnError/src/other.ts Semantic diagnostics in builder refreshed for:: -/lib/lib.d.ts -/src/shared/types/db.ts -/src/src/main.ts -/src/src/other.ts +/a/lib/lib.d.ts +/user/username/projects/noEmitOnError/shared/types/db.ts +/user/username/projects/noEmitOnError/src/main.ts +/user/username/projects/noEmitOnError/src/other.ts Shape signatures in builder refreshed for:: -/lib/lib.d.ts (used version) -/src/shared/types/db.ts (used version) -/src/src/main.ts (used version) -/src/src/other.ts (used version) +/a/lib/lib.d.ts (used version) +/user/username/projects/noemitonerror/shared/types/db.ts (used version) +/user/username/projects/noemitonerror/src/main.ts (used version) +/user/username/projects/noemitonerror/src/other.ts (used version) -//// [/src/dev-build/shared/types/db.js] +//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -//// [/src/dev-build/src/main.js] +//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var a = { @@ -147,7 +173,7 @@ var a = { }; -//// [/src/dev-build/src/other.js] +//// [/user/username/projects/noEmitOnError/dev-build/src/other.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); console.log("hi"); @@ -160,7 +186,7 @@ Input:: Output:: -/lib/tsc --b /src/tsconfig.json +/a/lib/tsc --b exitCode:: ExitStatus.Success diff --git a/tests/baselines/reference/tsbuild/outFile/builds-till-project-specified.js b/tests/baselines/reference/tsbuild/outFile/builds-till-project-specified.js index 0b1ce82488cd7..9e6721287c0fa 100644 --- a/tests/baselines/reference/tsbuild/outFile/builds-till-project-specified.js +++ b/tests/baselines/reference/tsbuild/outFile/builds-till-project-specified.js @@ -15,120 +15,122 @@ interface ReadonlyArray {} declare const console: { log(msg: any): void; }; //// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); //// [/src/first/first_part2.ts] -console.log(f()); +console.log(f()); //// [/src/first/first_part3.ts] -function f() { - return "JS does hoists"; -} +function f() { + return "JS does hoists"; +} + //// [/src/first/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "outFile": "./bin/first-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "first_PART1.ts", - "first_part2.ts", - "first_part3.ts" - ], - "references": [ - ] +{ + "compilerOptions": { + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "outFile": "./bin/first-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "first_PART1.ts", + "first_part2.ts", + "first_part3.ts" + ], + "references": [] } - //// [/src/second/second_part1.ts] -namespace N { - // Comment text -} - -namespace N { - function f() { - console.log('testing'); - } - - f(); -} +namespace N { + // Comment text +} + +namespace N { + function f() { + console.log('testing'); + } + + f(); +} //// [/src/second/second_part2.ts] -class C { - doSomething() { - console.log("something got done"); - } -} +class C { + doSomething() { + console.log("something got done"); + } +} //// [/src/second/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "../2/second-output.js", - "skipDefaultLibCheck": true - }, - "references": [ - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "../2/second-output.js", + "skipDefaultLibCheck": true + }, + "references": [] } - //// [/src/third/third_part1.ts] -var c = new C(); -c.doSomething(); +var c = new C(); +c.doSomething(); //// [/src/third/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "./thirdjs/output/third-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "third_part1.ts" - ], - "references": [ - { "path": "../first", "prepend": true }, - { "path": "../second", "prepend": true }, - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "./thirdjs/output/third-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "third_part1.ts" + ], + "references": [ + { + "path": "../first", + "prepend": true + }, + { + "path": "../second", + "prepend": true + } + ] } - Output:: @@ -171,7 +173,7 @@ var C = (function () { {"version":3,"file":"second-output.js","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":270,"kind":"text"}],"mapHash":"9890117190-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-2912899787-var N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":93,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-16005591226-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["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; };","-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":270,"kind":"text"}],"mapHash":"9890117190-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-2912899787-var N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":93,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-16005591226-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["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; };","-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n","3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -248,8 +250,8 @@ declare class C { ], "fileInfos": { "../../lib/lib.d.ts": "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; };", - "../second/second_part1.ts": "-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n", - "../second/second_part2.ts": "9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n" + "../second/second_part1.ts": "-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", + "../second/second_part2.ts": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n" }, "root": [ [ @@ -276,6 +278,6 @@ declare class C { "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 2736 + "size": 2704 } diff --git a/tests/baselines/reference/tsbuild/outFile/clean-projects.js b/tests/baselines/reference/tsbuild/outFile/clean-projects.js index 46d482ea24e69..3c946f31fc544 100644 --- a/tests/baselines/reference/tsbuild/outFile/clean-projects.js +++ b/tests/baselines/reference/tsbuild/outFile/clean-projects.js @@ -50,7 +50,7 @@ var C = (function () { {"version":3,"file":"second-output.js","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":270,"kind":"text"}],"mapHash":"9890117190-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-2912899787-var N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":93,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-16005591226-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["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; };","-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":270,"kind":"text"}],"mapHash":"9890117190-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-2912899787-var N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":93,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-16005591226-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["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; };","-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n","3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -127,8 +127,8 @@ declare class C { ], "fileInfos": { "../../lib/lib.d.ts": "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; };", - "../second/second_part1.ts": "-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n", - "../second/second_part2.ts": "9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n" + "../second/second_part1.ts": "-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", + "../second/second_part2.ts": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n" }, "root": [ [ @@ -155,7 +155,7 @@ declare class C { "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 2736 + "size": 2704 } //// [/src/first/bin/first-output.d.ts] @@ -185,7 +185,7 @@ function f() { {"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"4999315210-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"4999315210-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -256,9 +256,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "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; };", - "../first_part1.ts": "-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -287,95 +287,92 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2635 + "size": 2609 } //// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); //// [/src/first/first_part2.ts] -console.log(f()); +console.log(f()); //// [/src/first/first_part3.ts] -function f() { - return "JS does hoists"; -} +function f() { + return "JS does hoists"; +} + //// [/src/first/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "outFile": "./bin/first-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "first_PART1.ts", - "first_part2.ts", - "first_part3.ts" - ], - "references": [ - ] +{ + "compilerOptions": { + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "outFile": "./bin/first-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "first_PART1.ts", + "first_part2.ts", + "first_part3.ts" + ], + "references": [] } - //// [/src/second/second_part1.ts] -namespace N { - // Comment text -} - -namespace N { - function f() { - console.log('testing'); - } - - f(); -} +namespace N { + // Comment text +} + +namespace N { + function f() { + console.log('testing'); + } + + f(); +} //// [/src/second/second_part2.ts] -class C { - doSomething() { - console.log("something got done"); - } -} +class C { + doSomething() { + console.log("something got done"); + } +} //// [/src/second/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "../2/second-output.js", - "skipDefaultLibCheck": true - }, - "references": [ - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "../2/second-output.js", + "skipDefaultLibCheck": true + }, + "references": [] } - //// [/src/third/thirdjs/output/third-output.d.ts] interface TheFirst { none: any; @@ -428,7 +425,7 @@ c.doSomething(); {"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":104,"kind":"text"}]},{"pos":104,"end":374,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":104,"end":374,"kind":"text"}]},{"pos":374,"end":408,"kind":"text"}],"mapHash":"59293632534-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"24400447170-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":149,"kind":"text"}]},{"pos":149,"end":242,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":149,"end":242,"kind":"text"}]},{"pos":242,"end":260,"kind":"text"}],"mapHash":"-10250552873-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"406139541-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2893455973-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":104,"kind":"text"}]},{"pos":104,"end":374,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":104,"end":374,"kind":"text"}]},{"pos":374,"end":408,"kind":"text"}],"mapHash":"59293632534-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"24400447170-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":149,"kind":"text"}]},{"pos":149,"end":242,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":149,"end":242,"kind":"text"}]},{"pos":242,"end":260,"kind":"text"}],"mapHash":"-10250552873-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"406139541-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2893455973-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -596,7 +593,7 @@ declare var c: C; "../../../../lib/lib.d.ts": "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; };", "../../../first/bin/first-output.d.ts": "-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -619,38 +616,43 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 4465 + "size": 4460 } //// [/src/third/third_part1.ts] -var c = new C(); -c.doSomething(); +var c = new C(); +c.doSomething(); //// [/src/third/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "./thirdjs/output/third-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "third_part1.ts" - ], - "references": [ - { "path": "../first", "prepend": true }, - { "path": "../second", "prepend": true }, - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "./thirdjs/output/third-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "third_part1.ts" + ], + "references": [ + { + "path": "../first", + "prepend": true + }, + { + "path": "../second", + "prepend": true + } + ] } - Output:: diff --git a/tests/baselines/reference/tsbuild/outFile/cleans-till-project-specified.js b/tests/baselines/reference/tsbuild/outFile/cleans-till-project-specified.js index d1008cc852f1f..ea2cfbd8f8513 100644 --- a/tests/baselines/reference/tsbuild/outFile/cleans-till-project-specified.js +++ b/tests/baselines/reference/tsbuild/outFile/cleans-till-project-specified.js @@ -49,7 +49,7 @@ var C = (function () { {"version":3,"file":"second-output.js","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":270,"kind":"text"}],"mapHash":"9890117190-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-2912899787-var N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":93,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-16005591226-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["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; };","-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":270,"kind":"text"}],"mapHash":"9890117190-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-2912899787-var N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":93,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-16005591226-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["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; };","-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n","3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -126,8 +126,8 @@ declare class C { ], "fileInfos": { "../../lib/lib.d.ts": "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; };", - "../second/second_part1.ts": "-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n", - "../second/second_part2.ts": "9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n" + "../second/second_part1.ts": "-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", + "../second/second_part2.ts": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n" }, "root": [ [ @@ -154,7 +154,7 @@ declare class C { "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 2736 + "size": 2704 } //// [/src/first/bin/first-output.d.ts] @@ -184,7 +184,7 @@ function f() { {"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"4999315210-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"4999315210-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -255,9 +255,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "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; };", - "../first_part1.ts": "-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -286,95 +286,92 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2635 + "size": 2609 } //// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); //// [/src/first/first_part2.ts] -console.log(f()); +console.log(f()); //// [/src/first/first_part3.ts] -function f() { - return "JS does hoists"; -} +function f() { + return "JS does hoists"; +} + //// [/src/first/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "outFile": "./bin/first-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "first_PART1.ts", - "first_part2.ts", - "first_part3.ts" - ], - "references": [ - ] +{ + "compilerOptions": { + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "outFile": "./bin/first-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "first_PART1.ts", + "first_part2.ts", + "first_part3.ts" + ], + "references": [] } - //// [/src/second/second_part1.ts] -namespace N { - // Comment text -} - -namespace N { - function f() { - console.log('testing'); - } - - f(); -} +namespace N { + // Comment text +} + +namespace N { + function f() { + console.log('testing'); + } + + f(); +} //// [/src/second/second_part2.ts] -class C { - doSomething() { - console.log("something got done"); - } -} +class C { + doSomething() { + console.log("something got done"); + } +} //// [/src/second/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "../2/second-output.js", - "skipDefaultLibCheck": true - }, - "references": [ - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "../2/second-output.js", + "skipDefaultLibCheck": true + }, + "references": [] } - //// [/src/third/thirdjs/output/third-output.d.ts] interface TheFirst { none: any; @@ -427,7 +424,7 @@ c.doSomething(); {"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":104,"kind":"text"}]},{"pos":104,"end":374,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":104,"end":374,"kind":"text"}]},{"pos":374,"end":408,"kind":"text"}],"mapHash":"59293632534-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"24400447170-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":149,"kind":"text"}]},{"pos":149,"end":242,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":149,"end":242,"kind":"text"}]},{"pos":242,"end":260,"kind":"text"}],"mapHash":"-10250552873-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"406139541-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2893455973-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":104,"kind":"text"}]},{"pos":104,"end":374,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":104,"end":374,"kind":"text"}]},{"pos":374,"end":408,"kind":"text"}],"mapHash":"59293632534-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"24400447170-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":149,"kind":"text"}]},{"pos":149,"end":242,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":149,"end":242,"kind":"text"}]},{"pos":242,"end":260,"kind":"text"}],"mapHash":"-10250552873-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"406139541-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2893455973-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -595,7 +592,7 @@ declare var c: C; "../../../../lib/lib.d.ts": "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; };", "../../../first/bin/first-output.d.ts": "-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -618,38 +615,43 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 4465 + "size": 4460 } //// [/src/third/third_part1.ts] -var c = new C(); -c.doSomething(); +var c = new C(); +c.doSomething(); //// [/src/third/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "./thirdjs/output/third-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "third_part1.ts" - ], - "references": [ - { "path": "../first", "prepend": true }, - { "path": "../second", "prepend": true }, - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "./thirdjs/output/third-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "third_part1.ts" + ], + "references": [ + { + "path": "../first", + "prepend": true + }, + { + "path": "../second", + "prepend": true + } + ] } - Output:: diff --git a/tests/baselines/reference/tsbuild/outFile/non-module-projects-without-prepend.js b/tests/baselines/reference/tsbuild/outFile/non-module-projects-without-prepend.js index 3c0975a83c925..e0531ddcaa505 100644 --- a/tests/baselines/reference/tsbuild/outFile/non-module-projects-without-prepend.js +++ b/tests/baselines/reference/tsbuild/outFile/non-module-projects-without-prepend.js @@ -16,140 +16,142 @@ interface ReadonlyArray {} declare const console: { log(msg: any): void; }; //// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); //// [/src/first/first_part2.ts] -console.log(f()); +console.log(f()); //// [/src/first/first_part3.ts] -function f() { - return "JS does hoists"; -} +function f() { + return "JS does hoists"; +} + //// [/src/first/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "composite": true, "module": "none", - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - - "skipDefaultLibCheck": true, - }, - "files": [ - "first_PART1.ts", - "first_part2.ts", - "first_part3.ts" - ], - "references": [ - ] +{ + "compilerOptions": { + "target": "es5", + "composite": true, "module": "none", + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + + "skipDefaultLibCheck": true + }, + "files": [ + "first_PART1.ts", + "first_part2.ts", + "first_part3.ts" + ], + "references": [] } - //// [/src/second/second_part1.ts] -namespace N { - // Comment text -} - -namespace N { - function f() { - console.log('testing'); - } - - f(); -} +namespace N { + // Comment text +} + +namespace N { + function f() { + console.log('testing'); + } + + f(); +} //// [/src/second/second_part2.ts] -class C { - doSomething() { - console.log("something got done"); - } -} +class C { + doSomething() { + console.log("something got done"); + } +} //// [/src/second/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, "module": "none", - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - - "skipDefaultLibCheck": true - }, - "references": [ - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, "module": "none", + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + + "skipDefaultLibCheck": true + }, + "references": [] } - //// [/src/third/third_part1.ts] -var c = new C(); -c.doSomething(); +var c = new C(); +c.doSomething(); //// [/src/third/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, "module": "none", - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - - "skipDefaultLibCheck": true, - }, - "files": [ - "third_part1.ts" - ], - "references": [ - { "path": "../first" }, - { "path": "../second" }, - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, "module": "none", + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + + "skipDefaultLibCheck": true + }, + "files": [ + "third_part1.ts" + ], + "references": [ + { + "path": "../first", + + }, + { + "path": "../second", + + } + ] } - Output:: /lib/tsc --b /src/third --verbose -[12:00:14 AM] Projects in this build: +[12:00:26 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:15 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/tsconfig.tsbuildinfo' does not exist +[12:00:27 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/tsconfig.tsbuildinfo' does not exist -[12:00:16 AM] Building project '/src/first/tsconfig.json'... +[12:00:28 AM] Building project '/src/first/tsconfig.json'... -[12:00:32 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/second/tsconfig.tsbuildinfo' does not exist +[12:00:44 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/second/tsconfig.tsbuildinfo' does not exist -[12:00:33 AM] Building project '/src/second/tsconfig.json'... +[12:00:45 AM] Building project '/src/second/tsconfig.json'... -[12:00:45 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/tsconfig.tsbuildinfo' does not exist +[12:00:57 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/tsconfig.tsbuildinfo' does not exist -[12:00:46 AM] Building project '/src/third/tsconfig.json'... +[12:00:58 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -205,7 +207,7 @@ function f() { {"version":3,"file":"first_part3.js","sourceRoot":"","sources":["first_part3.ts"],"names":[],"mappings":"AAAA,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} //// [/src/first/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./first_part1.ts","./first_part2.ts","./first_part3.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","signature":"-14851202444-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\n","affectsGlobalScope":true},{"version":"4973778178-console.log(f());\r\n","signature":"5381-","affectsGlobalScope":true},{"version":"6202806249-function f() {\r\n return \"JS does hoists\";\r\n}","signature":"-6420944280-declare function f(): string;\n","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"module":0,"removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./first_part3.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./first_part1.ts","./first_part2.ts","./first_part3.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","signature":"-14851202444-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\n","affectsGlobalScope":true},{"version":"6007494133-console.log(f());\n","signature":"5381-","affectsGlobalScope":true},{"version":"4357625305-function f() {\n return \"JS does hoists\";\n}\n","signature":"-6420944280-declare function f(): string;\n","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"module":0,"removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./first_part3.d.ts"},"version":"FakeTSVersion"} //// [/src/first/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -228,31 +230,31 @@ function f() { }, "./first_part1.ts": { "original": { - "version": "-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n", + "version": "-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", "signature": "-14851202444-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\n", "affectsGlobalScope": true }, - "version": "-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n", + "version": "-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", "signature": "-14851202444-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\n", "affectsGlobalScope": true }, "./first_part2.ts": { "original": { - "version": "4973778178-console.log(f());\r\n", + "version": "6007494133-console.log(f());\n", "signature": "5381-", "affectsGlobalScope": true }, - "version": "4973778178-console.log(f());\r\n", + "version": "6007494133-console.log(f());\n", "signature": "5381-", "affectsGlobalScope": true }, "./first_part3.ts": { "original": { - "version": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}", + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", "signature": "-6420944280-declare function f(): string;\n", "affectsGlobalScope": true }, - "version": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}", + "version": "4357625305-function f() {\n return \"JS does hoists\";\n}\n", "signature": "-6420944280-declare function f(): string;\n", "affectsGlobalScope": true } @@ -289,7 +291,7 @@ function f() { "latestChangedDtsFile": "./first_part3.d.ts" }, "version": "FakeTSVersion", - "size": 1507 + "size": 1481 } //// [/src/second/second_part1.d.ts] @@ -339,7 +341,7 @@ var C = (function () { {"version":3,"file":"second_part2.js","sourceRoot":"","sources":["second_part2.ts"],"names":[],"mappings":"AAAA;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} //// [/src/second/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./second_part1.ts","./second_part2.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n","signature":"-12385043917-declare namespace N {\n}\ndeclare namespace N {\n}\n","affectsGlobalScope":true},{"version":"9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n","signature":"-4226833059-declare class C {\n doSomething(): void;\n}\n","affectsGlobalScope":true}],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"module":0,"removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./second_part2.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./second_part1.ts","./second_part2.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n","signature":"-12385043917-declare namespace N {\n}\ndeclare namespace N {\n}\n","affectsGlobalScope":true},{"version":"3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n","signature":"-4226833059-declare class C {\n doSomething(): void;\n}\n","affectsGlobalScope":true}],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"module":0,"removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./second_part2.d.ts"},"version":"FakeTSVersion"} //// [/src/second/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -361,21 +363,21 @@ var C = (function () { }, "./second_part1.ts": { "original": { - "version": "-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n", + "version": "-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", "signature": "-12385043917-declare namespace N {\n}\ndeclare namespace N {\n}\n", "affectsGlobalScope": true }, - "version": "-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n", + "version": "-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", "signature": "-12385043917-declare namespace N {\n}\ndeclare namespace N {\n}\n", "affectsGlobalScope": true }, "./second_part2.ts": { "original": { - "version": "9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n", + "version": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n", "signature": "-4226833059-declare class C {\n doSomething(): void;\n}\n", "affectsGlobalScope": true }, - "version": "9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n", + "version": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n", "signature": "-4226833059-declare class C {\n doSomething(): void;\n}\n", "affectsGlobalScope": true } @@ -409,7 +411,7 @@ var C = (function () { "latestChangedDtsFile": "./second_part2.d.ts" }, "version": "FakeTSVersion", - "size": 1387 + "size": 1355 } //// [/src/third/third_part1.d.ts] @@ -428,7 +430,7 @@ c.doSomething(); {"version":3,"file":"third_part1.js","sourceRoot":"","sources":["third_part1.ts"],"names":[],"mappings":"AAAA,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} //// [/src/third/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../first/first_part1.d.ts","../first/first_part2.d.ts","../first/first_part3.d.ts","../second/second_part1.d.ts","../second/second_part2.d.ts","./third_part1.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-14851202444-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\n","affectsGlobalScope":true},"-2054710634-//# sourceMappingURL=first_part2.d.ts.map",{"version":"-6420944280-declare function f(): string;\n","affectsGlobalScope":true},{"version":"-12385043917-declare namespace N {\n}\ndeclare namespace N {\n}\n","affectsGlobalScope":true},{"version":"-4226833059-declare class C {\n doSomething(): void;\n}\n","affectsGlobalScope":true},{"version":"10470273651-var c = new C();\r\nc.doSomething();\r\n","signature":"1894672131-declare var c: C;\n","affectsGlobalScope":true}],"root":[7],"options":{"composite":true,"declaration":true,"declarationMap":true,"module":0,"removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"semanticDiagnosticsPerFile":[1,2,3,4,5,6,7],"latestChangedDtsFile":"./third_part1.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../first/first_part1.d.ts","../first/first_part2.d.ts","../first/first_part3.d.ts","../second/second_part1.d.ts","../second/second_part2.d.ts","./third_part1.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-14851202444-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\n","affectsGlobalScope":true},"-2054710634-//# sourceMappingURL=first_part2.d.ts.map",{"version":"-6420944280-declare function f(): string;\n","affectsGlobalScope":true},{"version":"-12385043917-declare namespace N {\n}\ndeclare namespace N {\n}\n","affectsGlobalScope":true},{"version":"-4226833059-declare class C {\n doSomething(): void;\n}\n","affectsGlobalScope":true},{"version":"7305100057-var c = new C();\nc.doSomething();\n","signature":"1894672131-declare var c: C;\n","affectsGlobalScope":true}],"root":[7],"options":{"composite":true,"declaration":true,"declarationMap":true,"module":0,"removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"semanticDiagnosticsPerFile":[1,2,3,4,5,6,7],"latestChangedDtsFile":"./third_part1.d.ts"},"version":"FakeTSVersion"} //// [/src/third/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -494,11 +496,11 @@ c.doSomething(); }, "./third_part1.ts": { "original": { - "version": "10470273651-var c = new C();\r\nc.doSomething();\r\n", + "version": "7305100057-var c = new C();\nc.doSomething();\n", "signature": "1894672131-declare var c: C;\n", "affectsGlobalScope": true }, - "version": "10470273651-var c = new C();\r\nc.doSomething();\r\n", + "version": "7305100057-var c = new C();\nc.doSomething();\n", "signature": "1894672131-declare var c: C;\n", "affectsGlobalScope": true } @@ -532,6 +534,6 @@ c.doSomething(); "latestChangedDtsFile": "./third_part1.d.ts" }, "version": "FakeTSVersion", - "size": 1670 + "size": 1665 } diff --git a/tests/baselines/reference/tsbuild/outFile/rebuilds-completely-when-command-line-incremental-flag-changes-between-non-dts-changes.js b/tests/baselines/reference/tsbuild/outFile/rebuilds-completely-when-command-line-incremental-flag-changes-between-non-dts-changes.js index 5107cca9fa198..bb8e1651e2d37 100644 --- a/tests/baselines/reference/tsbuild/outFile/rebuilds-completely-when-command-line-incremental-flag-changes-between-non-dts-changes.js +++ b/tests/baselines/reference/tsbuild/outFile/rebuilds-completely-when-command-line-incremental-flag-changes-between-non-dts-changes.js @@ -16,140 +16,142 @@ interface ReadonlyArray {} declare const console: { log(msg: any): void; }; //// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); //// [/src/first/first_part2.ts] -console.log(f()); +console.log(f()); //// [/src/first/first_part3.ts] -function f() { - return "JS does hoists"; -} +function f() { + return "JS does hoists"; +} + //// [/src/first/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "outFile": "./bin/first-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "first_PART1.ts", - "first_part2.ts", - "first_part3.ts" - ], - "references": [ - ] +{ + "compilerOptions": { + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "outFile": "./bin/first-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "first_PART1.ts", + "first_part2.ts", + "first_part3.ts" + ], + "references": [] } - //// [/src/second/second_part1.ts] -namespace N { - // Comment text -} - -namespace N { - function f() { - console.log('testing'); - } - - f(); -} +namespace N { + // Comment text +} + +namespace N { + function f() { + console.log('testing'); + } + + f(); +} //// [/src/second/second_part2.ts] -class C { - doSomething() { - console.log("something got done"); - } -} +class C { + doSomething() { + console.log("something got done"); + } +} //// [/src/second/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "../2/second-output.js", - "skipDefaultLibCheck": true - }, - "references": [ - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "../2/second-output.js", + "skipDefaultLibCheck": true + }, + "references": [] } - //// [/src/third/third_part1.ts] -var c = new C(); -c.doSomething(); +var c = new C(); +c.doSomething(); //// [/src/third/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "./thirdjs/output/third-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "third_part1.ts" - ], - "references": [ - { "path": "../first", "prepend": true }, - { "path": "../second", "prepend": true }, - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "./thirdjs/output/third-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "third_part1.ts" + ], + "references": [ + { + "path": "../first", + "prepend": true + }, + { + "path": "../second", + "prepend": true + } + ] } - Output:: /lib/tsc --b /src/third --i --verbose -[12:00:07 AM] Projects in this build: +[12:00:19 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:08 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist +[12:00:20 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist -[12:00:09 AM] Building project '/src/first/tsconfig.json'... +[12:00:21 AM] Building project '/src/first/tsconfig.json'... -[12:00:19 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist +[12:00:31 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist -[12:00:20 AM] Building project '/src/second/tsconfig.json'... +[12:00:32 AM] Building project '/src/second/tsconfig.json'... -[12:00:30 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist +[12:00:42 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist -[12:00:31 AM] Building project '/src/third/tsconfig.json'... +[12:00:43 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -189,7 +191,7 @@ var C = (function () { {"version":3,"file":"second-output.js","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":270,"kind":"text"}],"mapHash":"9890117190-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-2912899787-var N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":93,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-16005591226-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["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; };","-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":270,"kind":"text"}],"mapHash":"9890117190-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-2912899787-var N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":93,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-16005591226-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["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; };","-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n","3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -266,8 +268,8 @@ declare class C { ], "fileInfos": { "../../lib/lib.d.ts": "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; };", - "../second/second_part1.ts": "-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n", - "../second/second_part2.ts": "9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n" + "../second/second_part1.ts": "-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", + "../second/second_part2.ts": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n" }, "root": [ [ @@ -294,7 +296,7 @@ declare class C { "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 2736 + "size": 2704 } //// [/src/first/bin/first-output.d.ts] @@ -324,7 +326,7 @@ function f() { {"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"4999315210-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"4999315210-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -395,9 +397,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "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; };", - "../first_part1.ts": "-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -426,7 +428,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2635 + "size": 2609 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -481,7 +483,7 @@ c.doSomething(); {"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":104,"kind":"text"}]},{"pos":104,"end":374,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":104,"end":374,"kind":"text"}]},{"pos":374,"end":408,"kind":"text"}],"mapHash":"59293632534-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"24400447170-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":149,"kind":"text"}]},{"pos":149,"end":242,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":149,"end":242,"kind":"text"}]},{"pos":242,"end":260,"kind":"text"}],"mapHash":"-10250552873-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"406139541-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[4],"options":{"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":104,"kind":"text"}]},{"pos":104,"end":374,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":104,"end":374,"kind":"text"}]},{"pos":374,"end":408,"kind":"text"}],"mapHash":"59293632534-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"24400447170-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":149,"kind":"text"}]},{"pos":149,"end":242,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":149,"end":242,"kind":"text"}]},{"pos":242,"end":260,"kind":"text"}],"mapHash":"-10250552873-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"406139541-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[4],"options":{"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1}},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -649,7 +651,7 @@ declare var c: C; "../../../../lib/lib.d.ts": "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; };", "../../../first/bin/first-output.d.ts": "-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -669,7 +671,7 @@ declare var c: C; } }, "version": "FakeTSVersion", - "size": 4095 + "size": 4090 } @@ -677,37 +679,37 @@ declare var c: C; Change:: Make non incremental build with change in file that doesnt affect dts Input:: //// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:00:43 AM] Projects in this build: +[12:00:55 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:44 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:00:56 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:00:45 AM] Building project '/src/first/tsconfig.json'... +[12:00:57 AM] Building project '/src/first/tsconfig.json'... -[12:00:53 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:01:05 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part2.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:00:54 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:01:06 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:00:55 AM] Building project '/src/third/tsconfig.json'... +[12:01:07 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -727,7 +729,7 @@ function f() { {"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":120,"kind":"text"}],"mapHash":"-2702861355-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-20052626506-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-16950965473-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":120,"kind":"text"}],"mapHash":"-2702861355-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-20052626506-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-20304251376-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -799,9 +801,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "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; };", - "../first_part1.ts": "-16950965473-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-20304251376-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -830,7 +832,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2708 + "size": 2682 } //// [/src/third/thirdjs/output/third-output.d.ts] file written with same contents @@ -870,41 +872,41 @@ c.doSomething(); Change:: Make incremental build with change in file that doesnt affect dts Input:: //// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); console.log(s);console.log(s); Output:: /lib/tsc --b /src/third --verbose --incremental -[12:01:01 AM] Projects in this build: +[12:01:13 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:01:02 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:01:14 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:01:03 AM] Building project '/src/first/tsconfig.json'... +[12:01:15 AM] Building project '/src/first/tsconfig.json'... -[12:01:11 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:01:23 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part2.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:12 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:01:24 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:01:13 AM] Updating output of project '/src/third/tsconfig.json'... +[12:01:25 AM] Updating output of project '/src/third/tsconfig.json'... -[12:01:14 AM] Cannot update output of project '/src/third/tsconfig.json' because there was error reading file 'src/third/thirdjs/output/third-output.js' +[12:01:26 AM] Cannot update output of project '/src/third/tsconfig.json' because there was error reading file 'src/third/thirdjs/output/third-output.js' -[12:01:15 AM] Building project '/src/third/tsconfig.json'... +[12:01:27 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -925,7 +927,7 @@ function f() { {"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACX9B,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":136,"kind":"text"}],"mapHash":"-13910258475-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACX9B,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-9414459294-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-14181918815-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);console.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":136,"kind":"text"}],"mapHash":"-13910258475-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACX9B,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-9414459294-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-22658061710-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);console.log(s);","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -998,9 +1000,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "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; };", - "../first_part1.ts": "-14181918815-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);console.log(s);", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-22658061710-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);console.log(s);", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -1029,7 +1031,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2781 + "size": 2755 } //// [/src/third/thirdjs/output/third-output.d.ts] file written with same contents @@ -1066,7 +1068,7 @@ c.doSomething(); {"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACX9B,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":136,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":136,"kind":"text"}]},{"pos":136,"end":406,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":136,"end":406,"kind":"text"}]},{"pos":406,"end":440,"kind":"text"}],"mapHash":"56762149066-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACX9B,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-43541948390-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":149,"kind":"text"}]},{"pos":149,"end":242,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":149,"end":242,"kind":"text"}]},{"pos":242,"end":260,"kind":"text"}],"mapHash":"-10250552873-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"406139541-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[4],"options":{"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":136,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":136,"kind":"text"}]},{"pos":136,"end":406,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":136,"end":406,"kind":"text"}]},{"pos":406,"end":440,"kind":"text"}],"mapHash":"56762149066-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACX9B,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-43541948390-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":149,"kind":"text"}]},{"pos":149,"end":242,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":149,"end":242,"kind":"text"}]},{"pos":242,"end":260,"kind":"text"}],"mapHash":"-10250552873-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"406139541-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[4],"options":{"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1}},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -1236,7 +1238,7 @@ declare var c: C; "../../../../lib/lib.d.ts": "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; };", "../../../first/bin/first-output.d.ts": "-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -1256,6 +1258,6 @@ declare var c: C; } }, "version": "FakeTSVersion", - "size": 4211 + "size": 4206 } diff --git a/tests/baselines/reference/tsbuild/outFile/rebuilds-completely-when-version-in-tsbuildinfo-doesnt-match-ts-version.js b/tests/baselines/reference/tsbuild/outFile/rebuilds-completely-when-version-in-tsbuildinfo-doesnt-match-ts-version.js index 0ec9e3391a6f4..e29c4a729b011 100644 --- a/tests/baselines/reference/tsbuild/outFile/rebuilds-completely-when-version-in-tsbuildinfo-doesnt-match-ts-version.js +++ b/tests/baselines/reference/tsbuild/outFile/rebuilds-completely-when-version-in-tsbuildinfo-doesnt-match-ts-version.js @@ -49,7 +49,7 @@ var C = (function () { {"version":3,"file":"second-output.js","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":270,"kind":"text"}],"mapHash":"9890117190-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-2912899787-var N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":93,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-16005591226-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["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; };","-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":270,"kind":"text"}],"mapHash":"9890117190-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-2912899787-var N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":93,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-16005591226-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["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; };","-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n","3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -126,8 +126,8 @@ declare class C { ], "fileInfos": { "../../lib/lib.d.ts": "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; };", - "../second/second_part1.ts": "-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n", - "../second/second_part2.ts": "9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n" + "../second/second_part1.ts": "-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", + "../second/second_part2.ts": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n" }, "root": [ [ @@ -154,7 +154,7 @@ declare class C { "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 2736 + "size": 2704 } //// [/src/first/bin/first-output.d.ts] @@ -184,7 +184,7 @@ function f() { {"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"4999315210-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"4999315210-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -255,9 +255,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "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; };", - "../first_part1.ts": "-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -286,95 +286,92 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2635 + "size": 2609 } //// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); //// [/src/first/first_part2.ts] -console.log(f()); +console.log(f()); //// [/src/first/first_part3.ts] -function f() { - return "JS does hoists"; -} +function f() { + return "JS does hoists"; +} + //// [/src/first/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "outFile": "./bin/first-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "first_PART1.ts", - "first_part2.ts", - "first_part3.ts" - ], - "references": [ - ] +{ + "compilerOptions": { + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "outFile": "./bin/first-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "first_PART1.ts", + "first_part2.ts", + "first_part3.ts" + ], + "references": [] } - //// [/src/second/second_part1.ts] -namespace N { - // Comment text -} - -namespace N { - function f() { - console.log('testing'); - } - - f(); -} +namespace N { + // Comment text +} + +namespace N { + function f() { + console.log('testing'); + } + + f(); +} //// [/src/second/second_part2.ts] -class C { - doSomething() { - console.log("something got done"); - } -} +class C { + doSomething() { + console.log("something got done"); + } +} //// [/src/second/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "../2/second-output.js", - "skipDefaultLibCheck": true - }, - "references": [ - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "../2/second-output.js", + "skipDefaultLibCheck": true + }, + "references": [] } - //// [/src/third/thirdjs/output/third-output.d.ts] interface TheFirst { none: any; @@ -427,7 +424,7 @@ c.doSomething(); {"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":104,"kind":"text"}]},{"pos":104,"end":374,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":104,"end":374,"kind":"text"}]},{"pos":374,"end":408,"kind":"text"}],"mapHash":"59293632534-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"24400447170-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":149,"kind":"text"}]},{"pos":149,"end":242,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":149,"end":242,"kind":"text"}]},{"pos":242,"end":260,"kind":"text"}],"mapHash":"-10250552873-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"406139541-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2893455973-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":104,"kind":"text"}]},{"pos":104,"end":374,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":104,"end":374,"kind":"text"}]},{"pos":374,"end":408,"kind":"text"}],"mapHash":"59293632534-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"24400447170-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":149,"kind":"text"}]},{"pos":149,"end":242,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":149,"end":242,"kind":"text"}]},{"pos":242,"end":260,"kind":"text"}],"mapHash":"-10250552873-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"406139541-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2893455973-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -595,7 +592,7 @@ declare var c: C; "../../../../lib/lib.d.ts": "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; };", "../../../first/bin/first-output.d.ts": "-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -618,58 +615,63 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 4465 + "size": 4460 } //// [/src/third/third_part1.ts] -var c = new C(); -c.doSomething(); +var c = new C(); +c.doSomething(); //// [/src/third/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "./thirdjs/output/third-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "third_part1.ts" - ], - "references": [ - { "path": "../first", "prepend": true }, - { "path": "../second", "prepend": true }, - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "./thirdjs/output/third-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "third_part1.ts" + ], + "references": [ + { + "path": "../first", + "prepend": true + }, + { + "path": "../second", + "prepend": true + } + ] } - Output:: /lib/tsc --b /src/third --verbose -[12:00:41 AM] Projects in this build: +[12:00:53 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:42 AM] Project 'src/first/tsconfig.json' is out of date because output for it was generated with version 'FakeTSVersion' that differs with current version 'FakeTSCurrentVersion' +[12:00:54 AM] Project 'src/first/tsconfig.json' is out of date because output for it was generated with version 'FakeTSVersion' that differs with current version 'FakeTSCurrentVersion' -[12:00:43 AM] Building project '/src/first/tsconfig.json'... +[12:00:55 AM] Building project '/src/first/tsconfig.json'... -[12:00:52 AM] Project 'src/second/tsconfig.json' is out of date because output for it was generated with version 'FakeTSVersion' that differs with current version 'FakeTSCurrentVersion' +[12:01:04 AM] Project 'src/second/tsconfig.json' is out of date because output for it was generated with version 'FakeTSVersion' that differs with current version 'FakeTSCurrentVersion' -[12:00:53 AM] Building project '/src/second/tsconfig.json'... +[12:01:05 AM] Building project '/src/second/tsconfig.json'... -[12:01:02 AM] Project 'src/third/tsconfig.json' is out of date because output for it was generated with version 'FakeTSVersion' that differs with current version 'FakeTSCurrentVersion' +[12:01:14 AM] Project 'src/third/tsconfig.json' is out of date because output for it was generated with version 'FakeTSVersion' that differs with current version 'FakeTSCurrentVersion' -[12:01:03 AM] Building project '/src/third/tsconfig.json'... +[12:01:15 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -679,7 +681,7 @@ exitCode:: ExitStatus.Success //// [/src/2/second-output.js] file written with same contents //// [/src/2/second-output.js.map] file written with same contents //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":270,"kind":"text"}],"mapHash":"9890117190-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-2912899787-var N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":93,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-16005591226-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["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; };","-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSCurrentVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":270,"kind":"text"}],"mapHash":"9890117190-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-2912899787-var N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":93,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-16005591226-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["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; };","-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n","3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSCurrentVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] file written with same contents //// [/src/2/second-output.tsbuildinfo.readable.baseline.txt] @@ -721,8 +723,8 @@ exitCode:: ExitStatus.Success ], "fileInfos": { "../../lib/lib.d.ts": "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; };", - "../second/second_part1.ts": "-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n", - "../second/second_part2.ts": "9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n" + "../second/second_part1.ts": "-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", + "../second/second_part2.ts": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n" }, "root": [ [ @@ -749,7 +751,7 @@ exitCode:: ExitStatus.Success "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSCurrentVersion", - "size": 2743 + "size": 2711 } //// [/src/first/bin/first-output.d.ts] file written with same contents @@ -757,7 +759,7 @@ exitCode:: ExitStatus.Success //// [/src/first/bin/first-output.js] file written with same contents //// [/src/first/bin/first-output.js.map] file written with same contents //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"4999315210-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSCurrentVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"4999315210-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSCurrentVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] file written with same contents //// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] @@ -801,9 +803,9 @@ exitCode:: ExitStatus.Success ], "fileInfos": { "../../../lib/lib.d.ts": "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; };", - "../first_part1.ts": "-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -832,7 +834,7 @@ exitCode:: ExitStatus.Success "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSCurrentVersion", - "size": 2642 + "size": 2616 } //// [/src/third/thirdjs/output/third-output.d.ts] file written with same contents @@ -840,7 +842,7 @@ exitCode:: ExitStatus.Success //// [/src/third/thirdjs/output/third-output.js] file written with same contents //// [/src/third/thirdjs/output/third-output.js.map] file written with same contents //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":104,"kind":"text"}]},{"pos":104,"end":374,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":104,"end":374,"kind":"text"}]},{"pos":374,"end":408,"kind":"text"}],"mapHash":"59293632534-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"24400447170-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":149,"kind":"text"}]},{"pos":149,"end":242,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":149,"end":242,"kind":"text"}]},{"pos":242,"end":260,"kind":"text"}],"mapHash":"-10250552873-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"406139541-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2893455973-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSCurrentVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":104,"kind":"text"}]},{"pos":104,"end":374,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":104,"end":374,"kind":"text"}]},{"pos":374,"end":408,"kind":"text"}],"mapHash":"59293632534-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"24400447170-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":149,"kind":"text"}]},{"pos":149,"end":242,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":149,"end":242,"kind":"text"}]},{"pos":242,"end":260,"kind":"text"}],"mapHash":"-10250552873-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"406139541-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2893455973-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSCurrentVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] file written with same contents //// [/src/third/thirdjs/output/third-output.tsbuildinfo.readable.baseline.txt] @@ -936,7 +938,7 @@ exitCode:: ExitStatus.Success "../../../../lib/lib.d.ts": "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; };", "../../../first/bin/first-output.d.ts": "-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -959,6 +961,6 @@ exitCode:: ExitStatus.Success "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSCurrentVersion", - "size": 4472 + "size": 4467 } diff --git a/tests/baselines/reference/tsbuild/outFile/tsbuildinfo-is-not-generated-when-incremental-is-set-to-false.js b/tests/baselines/reference/tsbuild/outFile/tsbuildinfo-is-not-generated-when-incremental-is-set-to-false.js index 8e98d033bcc4d..8b631673bc6b7 100644 --- a/tests/baselines/reference/tsbuild/outFile/tsbuildinfo-is-not-generated-when-incremental-is-set-to-false.js +++ b/tests/baselines/reference/tsbuild/outFile/tsbuildinfo-is-not-generated-when-incremental-is-set-to-false.js @@ -16,140 +16,142 @@ interface ReadonlyArray {} declare const console: { log(msg: any): void; }; //// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); //// [/src/first/first_part2.ts] -console.log(f()); +console.log(f()); //// [/src/first/first_part3.ts] -function f() { - return "JS does hoists"; -} +function f() { + return "JS does hoists"; +} + //// [/src/first/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "outFile": "./bin/first-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "first_PART1.ts", - "first_part2.ts", - "first_part3.ts" - ], - "references": [ - ] +{ + "compilerOptions": { + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "outFile": "./bin/first-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "first_PART1.ts", + "first_part2.ts", + "first_part3.ts" + ], + "references": [] } - //// [/src/second/second_part1.ts] -namespace N { - // Comment text -} - -namespace N { - function f() { - console.log('testing'); - } - - f(); -} +namespace N { + // Comment text +} + +namespace N { + function f() { + console.log('testing'); + } + + f(); +} //// [/src/second/second_part2.ts] -class C { - doSomething() { - console.log("something got done"); - } -} +class C { + doSomething() { + console.log("something got done"); + } +} //// [/src/second/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "../2/second-output.js", - "skipDefaultLibCheck": true - }, - "references": [ - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "../2/second-output.js", + "skipDefaultLibCheck": true + }, + "references": [] } - //// [/src/third/third_part1.ts] -var c = new C(); -c.doSomething(); +var c = new C(); +c.doSomething(); //// [/src/third/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "./thirdjs/output/third-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "third_part1.ts" - ], - "references": [ - { "path": "../first", "prepend": true }, - { "path": "../second", "prepend": true }, - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "./thirdjs/output/third-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "third_part1.ts" + ], + "references": [ + { + "path": "../first", + "prepend": true + }, + { + "path": "../second", + "prepend": true + } + ] } - Output:: /lib/tsc --b /src/third --verbose -[12:00:07 AM] Projects in this build: +[12:00:19 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:08 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist +[12:00:20 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist -[12:00:09 AM] Building project '/src/first/tsconfig.json'... +[12:00:21 AM] Building project '/src/first/tsconfig.json'... -[12:00:19 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist +[12:00:31 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist -[12:00:20 AM] Building project '/src/second/tsconfig.json'... +[12:00:32 AM] Building project '/src/second/tsconfig.json'... -[12:00:30 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist +[12:00:42 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist -[12:00:31 AM] Building project '/src/third/tsconfig.json'... +[12:00:43 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -189,7 +191,7 @@ var C = (function () { {"version":3,"file":"second-output.js","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":270,"kind":"text"}],"mapHash":"9890117190-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-2912899787-var N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":93,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-16005591226-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["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; };","-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":270,"kind":"text"}],"mapHash":"9890117190-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-2912899787-var N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":93,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-16005591226-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["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; };","-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n","3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -266,8 +268,8 @@ declare class C { ], "fileInfos": { "../../lib/lib.d.ts": "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; };", - "../second/second_part1.ts": "-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n", - "../second/second_part2.ts": "9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n" + "../second/second_part1.ts": "-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", + "../second/second_part2.ts": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n" }, "root": [ [ @@ -294,7 +296,7 @@ declare class C { "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 2736 + "size": 2704 } //// [/src/first/bin/first-output.d.ts] @@ -324,7 +326,7 @@ function f() { {"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"4999315210-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"4999315210-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -395,9 +397,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "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; };", - "../first_part1.ts": "-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -426,7 +428,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2635 + "size": 2609 } //// [/src/third/thirdjs/output/third-output.d.ts] diff --git a/tests/baselines/reference/tsbuild/outFile/verify-buildInfo-absence-results-in-new-build.js b/tests/baselines/reference/tsbuild/outFile/verify-buildInfo-absence-results-in-new-build.js index 72747e376692d..638d9a12b0e6e 100644 --- a/tests/baselines/reference/tsbuild/outFile/verify-buildInfo-absence-results-in-new-build.js +++ b/tests/baselines/reference/tsbuild/outFile/verify-buildInfo-absence-results-in-new-build.js @@ -50,7 +50,7 @@ var C = (function () { {"version":3,"file":"second-output.js","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":270,"kind":"text"}],"mapHash":"9890117190-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-2912899787-var N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":93,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-16005591226-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["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; };","-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":270,"kind":"text"}],"mapHash":"9890117190-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-2912899787-var N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":93,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-16005591226-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["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; };","-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n","3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -127,8 +127,8 @@ declare class C { ], "fileInfos": { "../../lib/lib.d.ts": "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; };", - "../second/second_part1.ts": "-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n", - "../second/second_part2.ts": "9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n" + "../second/second_part1.ts": "-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", + "../second/second_part2.ts": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n" }, "root": [ [ @@ -155,7 +155,7 @@ declare class C { "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 2736 + "size": 2704 } //// [/src/first/bin/first-output.d.ts] @@ -253,9 +253,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "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; };", - "../first_part1.ts": "-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -284,95 +284,92 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2635 + "size": 2609 } //// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); //// [/src/first/first_part2.ts] -console.log(f()); +console.log(f()); //// [/src/first/first_part3.ts] -function f() { - return "JS does hoists"; -} +function f() { + return "JS does hoists"; +} + //// [/src/first/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "outFile": "./bin/first-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "first_PART1.ts", - "first_part2.ts", - "first_part3.ts" - ], - "references": [ - ] +{ + "compilerOptions": { + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "outFile": "./bin/first-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "first_PART1.ts", + "first_part2.ts", + "first_part3.ts" + ], + "references": [] } - //// [/src/second/second_part1.ts] -namespace N { - // Comment text -} - -namespace N { - function f() { - console.log('testing'); - } - - f(); -} +namespace N { + // Comment text +} + +namespace N { + function f() { + console.log('testing'); + } + + f(); +} //// [/src/second/second_part2.ts] -class C { - doSomething() { - console.log("something got done"); - } -} +class C { + doSomething() { + console.log("something got done"); + } +} //// [/src/second/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "../2/second-output.js", - "skipDefaultLibCheck": true - }, - "references": [ - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "../2/second-output.js", + "skipDefaultLibCheck": true + }, + "references": [] } - //// [/src/third/thirdjs/output/third-output.d.ts] interface TheFirst { none: any; @@ -425,7 +422,7 @@ c.doSomething(); {"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":104,"kind":"text"}]},{"pos":104,"end":374,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":104,"end":374,"kind":"text"}]},{"pos":374,"end":408,"kind":"text"}],"mapHash":"59293632534-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"24400447170-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":149,"kind":"text"}]},{"pos":149,"end":242,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":149,"end":242,"kind":"text"}]},{"pos":242,"end":260,"kind":"text"}],"mapHash":"-10250552873-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"406139541-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2893455973-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":104,"kind":"text"}]},{"pos":104,"end":374,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":104,"end":374,"kind":"text"}]},{"pos":374,"end":408,"kind":"text"}],"mapHash":"59293632534-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"24400447170-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":149,"kind":"text"}]},{"pos":149,"end":242,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":149,"end":242,"kind":"text"}]},{"pos":242,"end":260,"kind":"text"}],"mapHash":"-10250552873-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"406139541-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2893455973-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -593,7 +590,7 @@ declare var c: C; "../../../../lib/lib.d.ts": "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; };", "../../../first/bin/first-output.d.ts": "-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -616,56 +613,61 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 4465 + "size": 4460 } //// [/src/third/third_part1.ts] -var c = new C(); -c.doSomething(); +var c = new C(); +c.doSomething(); //// [/src/third/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "./thirdjs/output/third-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "third_part1.ts" - ], - "references": [ - { "path": "../first", "prepend": true }, - { "path": "../second", "prepend": true }, - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "./thirdjs/output/third-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "third_part1.ts" + ], + "references": [ + { + "path": "../first", + "prepend": true + }, + { + "path": "../second", + "prepend": true + } + ] } - Output:: /lib/tsc --b /src/third --verbose -[12:00:42 AM] Projects in this build: +[12:00:54 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:43 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist +[12:00:55 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist -[12:00:44 AM] Building project '/src/first/tsconfig.json'... +[12:00:56 AM] Building project '/src/first/tsconfig.json'... -[12:00:53 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:01:05 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part2.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:00:54 AM] Project 'src/third/tsconfig.json' is out of date because output 'src/third/thirdjs/output/third-output.tsbuildinfo' is older than input 'src/first' +[12:01:06 AM] Project 'src/third/tsconfig.json' is out of date because output 'src/third/thirdjs/output/third-output.tsbuildinfo' is older than input 'src/first' -[12:00:55 AM] Building project '/src/third/tsconfig.json'... +[12:01:07 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -675,7 +677,7 @@ exitCode:: ExitStatus.Success //// [/src/first/bin/first-output.js] file written with same contents //// [/src/first/bin/first-output.js.map] file written with same contents //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"4999315210-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"4999315210-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] file written with same contents //// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] file written with same contents diff --git a/tests/baselines/reference/tsbuild/outFile/when-input-file-text-does-not-change-but-its-modified-time-changes.js b/tests/baselines/reference/tsbuild/outFile/when-input-file-text-does-not-change-but-its-modified-time-changes.js index 2f63524563b24..aea792acb3d04 100644 --- a/tests/baselines/reference/tsbuild/outFile/when-input-file-text-does-not-change-but-its-modified-time-changes.js +++ b/tests/baselines/reference/tsbuild/outFile/when-input-file-text-does-not-change-but-its-modified-time-changes.js @@ -16,140 +16,142 @@ interface ReadonlyArray {} declare const console: { log(msg: any): void; }; //// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); //// [/src/first/first_part2.ts] -console.log(f()); +console.log(f()); //// [/src/first/first_part3.ts] -function f() { - return "JS does hoists"; -} +function f() { + return "JS does hoists"; +} + //// [/src/first/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "outFile": "./bin/first-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "first_PART1.ts", - "first_part2.ts", - "first_part3.ts" - ], - "references": [ - ] +{ + "compilerOptions": { + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "outFile": "./bin/first-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "first_PART1.ts", + "first_part2.ts", + "first_part3.ts" + ], + "references": [] } - //// [/src/second/second_part1.ts] -namespace N { - // Comment text -} - -namespace N { - function f() { - console.log('testing'); - } - - f(); -} +namespace N { + // Comment text +} + +namespace N { + function f() { + console.log('testing'); + } + + f(); +} //// [/src/second/second_part2.ts] -class C { - doSomething() { - console.log("something got done"); - } -} +class C { + doSomething() { + console.log("something got done"); + } +} //// [/src/second/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "../2/second-output.js", - "skipDefaultLibCheck": true - }, - "references": [ - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "../2/second-output.js", + "skipDefaultLibCheck": true + }, + "references": [] } - //// [/src/third/third_part1.ts] -var c = new C(); -c.doSomething(); +var c = new C(); +c.doSomething(); //// [/src/third/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "./thirdjs/output/third-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "third_part1.ts" - ], - "references": [ - { "path": "../first", "prepend": true }, - { "path": "../second", "prepend": true }, - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "./thirdjs/output/third-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "third_part1.ts" + ], + "references": [ + { + "path": "../first", + "prepend": true + }, + { + "path": "../second", + "prepend": true + } + ] } - Output:: /lib/tsc --b /src/third --verbose -[12:00:06 AM] Projects in this build: +[12:00:18 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:07 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist +[12:00:19 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist -[12:00:08 AM] Building project '/src/first/tsconfig.json'... +[12:00:20 AM] Building project '/src/first/tsconfig.json'... -[12:00:18 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist +[12:00:30 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist -[12:00:19 AM] Building project '/src/second/tsconfig.json'... +[12:00:31 AM] Building project '/src/second/tsconfig.json'... -[12:00:29 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist +[12:00:41 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist -[12:00:30 AM] Building project '/src/third/tsconfig.json'... +[12:00:42 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -189,7 +191,7 @@ var C = (function () { {"version":3,"file":"second-output.js","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":270,"kind":"text"}],"mapHash":"9890117190-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-2912899787-var N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":93,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-16005591226-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["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; };","-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":270,"kind":"text"}],"mapHash":"9890117190-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-2912899787-var N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":93,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-16005591226-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["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; };","-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n","3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -266,8 +268,8 @@ declare class C { ], "fileInfos": { "../../lib/lib.d.ts": "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; };", - "../second/second_part1.ts": "-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n", - "../second/second_part2.ts": "9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n" + "../second/second_part1.ts": "-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", + "../second/second_part2.ts": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n" }, "root": [ [ @@ -294,7 +296,7 @@ declare class C { "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 2736 + "size": 2704 } //// [/src/first/bin/first-output.d.ts] @@ -324,7 +326,7 @@ function f() { {"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"4999315210-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"4999315210-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -395,9 +397,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "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; };", - "../first_part1.ts": "-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -426,7 +428,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2635 + "size": 2609 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -481,7 +483,7 @@ c.doSomething(); {"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":104,"kind":"text"}]},{"pos":104,"end":374,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":104,"end":374,"kind":"text"}]},{"pos":374,"end":408,"kind":"text"}],"mapHash":"59293632534-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"24400447170-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":149,"kind":"text"}]},{"pos":149,"end":242,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":149,"end":242,"kind":"text"}]},{"pos":242,"end":260,"kind":"text"}],"mapHash":"-10250552873-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"406139541-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2893455973-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":104,"kind":"text"}]},{"pos":104,"end":374,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":104,"end":374,"kind":"text"}]},{"pos":374,"end":408,"kind":"text"}],"mapHash":"59293632534-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"24400447170-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":149,"kind":"text"}]},{"pos":149,"end":242,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":149,"end":242,"kind":"text"}]},{"pos":242,"end":260,"kind":"text"}],"mapHash":"-10250552873-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"406139541-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2893455973-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -649,7 +651,7 @@ declare var c: C; "../../../../lib/lib.d.ts": "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; };", "../../../first/bin/first-output.d.ts": "-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -672,7 +674,7 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 4465 + "size": 4460 } @@ -684,20 +686,20 @@ Input:: Output:: /lib/tsc --b /src/third --verbose -[12:00:43 AM] Projects in this build: +[12:00:55 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:44 AM] Project 'src/first/tsconfig.json' is up to date but needs to update timestamps of output files that are older than input files +[12:00:56 AM] Project 'src/first/tsconfig.json' is up to date but needs to update timestamps of output files that are older than input files -[12:00:45 AM] Updating output timestamps of project '/src/first/tsconfig.json'... +[12:00:57 AM] Updating output timestamps of project '/src/first/tsconfig.json'... -[12:00:48 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:01:00 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part2.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:00:49 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:01:01 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:00:50 AM] Updating output of project '/src/third/tsconfig.json'... +[12:01:02 AM] Updating output of project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success diff --git a/tests/baselines/reference/tsbuild/outfile-concat/baseline-sectioned-sourcemaps.js b/tests/baselines/reference/tsbuild/outfile-concat/baseline-sectioned-sourcemaps.js index a81eb8274ee05..528ddc0248fab 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/baseline-sectioned-sourcemaps.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/baseline-sectioned-sourcemaps.js @@ -16,160 +16,162 @@ interface ReadonlyArray {} declare const console: { log(msg: any): void; }; //// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); //// [/src/first/first_part2.ts] -console.log(f()); +console.log(f()); //// [/src/first/first_part3.ts] -function f() { - return "JS does hoists"; -} +function f() { + return "JS does hoists"; +} + //// [/src/first/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "outFile": "./bin/first-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "first_PART1.ts", - "first_part2.ts", - "first_part3.ts" - ], - "references": [ - ] +{ + "compilerOptions": { + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "outFile": "./bin/first-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "first_PART1.ts", + "first_part2.ts", + "first_part3.ts" + ], + "references": [] } - //// [/src/second/second_part1.ts] -namespace N { - // Comment text -} - -namespace N { - function f() { - console.log('testing'); - } - - f(); -} +namespace N { + // Comment text +} + +namespace N { + function f() { + console.log('testing'); + } + + f(); +} //// [/src/second/second_part2.ts] -class C { - doSomething() { - console.log("something got done"); - } -} +class C { + doSomething() { + console.log("something got done"); + } +} //// [/src/second/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "../2/second-output.js", - "skipDefaultLibCheck": true - }, - "references": [ - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "../2/second-output.js", + "skipDefaultLibCheck": true + }, + "references": [] } - //// [/src/third/third_part1.ts] -var c = new C(); -c.doSomething(); +var c = new C(); +c.doSomething(); //// [/src/third/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "./thirdjs/output/third-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "third_part1.ts" - ], - "references": [ - { "path": "../first", "prepend": true }, - { "path": "../second", "prepend": true }, - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "./thirdjs/output/third-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "third_part1.ts" + ], + "references": [ + { + "path": "../first", + "prepend": true + }, + { + "path": "../second", + "prepend": true + } + ] } - Output:: /lib/tsc --b /src/third --verbose -[12:00:06 AM] Projects in this build: +[12:00:18 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:07 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist +[12:00:19 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist -[12:00:08 AM] Building project '/src/first/tsconfig.json'... +[12:00:20 AM] Building project '/src/first/tsconfig.json'... -[12:00:18 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist +[12:00:30 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist -[12:00:19 AM] Building project '/src/second/tsconfig.json'... +[12:00:31 AM] Building project '/src/second/tsconfig.json'... -[12:00:29 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist +[12:00:41 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist -[12:00:30 AM] Building project '/src/third/tsconfig.json'... +[12:00:42 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success readFiles:: { - "/src/third/tsconfig.json": 1, - "/src/first/tsconfig.json": 1, - "/src/second/tsconfig.json": 1, - "/src/first/first_PART1.ts": 1, - "/src/first/first_part2.ts": 1, - "/src/first/first_part3.ts": 1, - "/src/second/second_part1.ts": 1, - "/src/second/second_part2.ts": 1, - "/src/first/bin/first-output.d.ts": 1, - "/src/2/second-output.d.ts": 1, - "/src/third/third_part1.ts": 1, - "/src/first/bin/first-output.js": 1, - "/src/2/second-output.js": 1, - "/src/first/bin/first-output.js.map": 1, - "/src/2/second-output.js.map": 1, - "/src/first/bin/first-output.d.ts.map": 1, - "/src/2/second-output.d.ts.map": 1 + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/second/second_part1.ts": 1, + "/src/second/second_part2.ts": 1, + "/src/first/bin/first-output.d.ts": 1, + "/src/2/second-output.d.ts": 1, + "/src/third/third_part1.ts": 1, + "/src/first/bin/first-output.js": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1 } //// [/src/2/second-output.d.ts] @@ -213,8 +215,8 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(2, 2) Source(3, 2) + SourceIndex(0) --- @@ -223,8 +225,8 @@ sourceFile:../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -237,12 +239,12 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(4, 2) Source(11, 2) + SourceIndex(0) --- @@ -265,7 +267,7 @@ sourceFile:../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(6, 5) Source(2, 5) + SourceIndex(1) @@ -274,9 +276,9 @@ sourceFile:../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(7, 2) Source(5, 2) + SourceIndex(1) --- @@ -320,19 +322,19 @@ sourceFile:../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1 >namespace N { - > // Comment text - >} - > +1 >namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) 2 >Emitted(1, 5) Source(5, 11) + SourceIndex(0) @@ -356,7 +358,7 @@ sourceFile:../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -373,7 +375,7 @@ sourceFile:../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -395,7 +397,7 @@ sourceFile:../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(5, 5) Source(8, 5) + SourceIndex(0) @@ -407,8 +409,8 @@ sourceFile:../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -427,19 +429,19 @@ sourceFile:../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(7, 1) Source(11, 1) + SourceIndex(0) 2 >Emitted(7, 2) Source(11, 2) + SourceIndex(0) @@ -469,10 +471,10 @@ sourceFile:../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(10, 5) Source(5, 1) + SourceIndex(1) @@ -499,7 +501,7 @@ sourceFile:../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -521,7 +523,7 @@ sourceFile:../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(13, 5) Source(4, 5) + SourceIndex(1) @@ -530,7 +532,7 @@ sourceFile:../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(14, 5) Source(5, 1) + SourceIndex(1) @@ -545,10 +547,10 @@ sourceFile:../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(15, 1) Source(5, 1) + SourceIndex(1) 2 >Emitted(15, 2) Source(5, 2) + SourceIndex(1) @@ -558,7 +560,7 @@ sourceFile:../second/second_part2.ts >>>//# sourceMappingURL=second-output.js.map //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":270,"kind":"text"}],"mapHash":"9890117190-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-2912899787-var N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":93,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-16005591226-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["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; };","-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":270,"kind":"text"}],"mapHash":"9890117190-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-2912899787-var N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":93,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-16005591226-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["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; };","-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n","3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -635,8 +637,8 @@ declare class C { ], "fileInfos": { "../../lib/lib.d.ts": "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; };", - "../second/second_part1.ts": "-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n", - "../second/second_part2.ts": "9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n" + "../second/second_part1.ts": "-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", + "../second/second_part2.ts": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n" }, "root": [ [ @@ -663,7 +665,7 @@ declare class C { "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 2736 + "size": 2704 } //// [/src/first/bin/first-output.d.ts] @@ -708,7 +710,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -723,7 +725,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -734,8 +736,8 @@ sourceFile:../first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -753,8 +755,8 @@ sourceFile:../first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -768,7 +770,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -783,7 +785,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -800,8 +802,8 @@ sourceFile:../first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) @@ -840,10 +842,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -867,12 +869,12 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -944,7 +946,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -958,7 +960,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) @@ -967,7 +969,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"4999315210-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"4999315210-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -1038,9 +1040,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "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; };", - "../first_part1.ts": "-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -1069,7 +1071,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2635 + "size": 2609 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -1122,7 +1124,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -1137,7 +1139,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -1148,8 +1150,8 @@ sourceFile:../../../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -1167,8 +1169,8 @@ sourceFile:../../../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -1182,7 +1184,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -1197,7 +1199,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -1213,8 +1215,8 @@ sourceFile:../../../first/first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) @@ -1242,8 +1244,8 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) --- @@ -1252,8 +1254,8 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -1266,12 +1268,12 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) --- @@ -1294,7 +1296,7 @@ sourceFile:../../../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(14, 5) Source(2, 5) + SourceIndex(3) @@ -1303,9 +1305,9 @@ sourceFile:../../../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(15, 2) Source(5, 2) + SourceIndex(3) --- @@ -1383,10 +1385,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -1410,12 +1412,12 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -1487,7 +1489,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -1501,7 +1503,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) @@ -1517,19 +1519,19 @@ sourceFile:../../../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(7, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(7, 5) Source(5, 11) + SourceIndex(3) @@ -1553,7 +1555,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -1570,7 +1572,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -1592,7 +1594,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(11, 5) Source(8, 5) + SourceIndex(3) @@ -1604,8 +1606,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -1624,19 +1626,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(13, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(13, 2) Source(11, 2) + SourceIndex(3) @@ -1666,10 +1668,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(16, 5) Source(5, 1) + SourceIndex(4) @@ -1696,7 +1698,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -1718,7 +1720,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(19, 5) Source(4, 5) + SourceIndex(4) @@ -1727,7 +1729,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(20, 5) Source(5, 1) + SourceIndex(4) @@ -1742,10 +1744,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(21, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(21, 2) Source(5, 2) + SourceIndex(4) @@ -1790,7 +1792,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -1807,7 +1809,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":104,"kind":"text"}]},{"pos":104,"end":374,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":104,"end":374,"kind":"text"}]},{"pos":374,"end":408,"kind":"text"}],"mapHash":"59293632534-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"24400447170-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":149,"kind":"text"}]},{"pos":149,"end":242,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":149,"end":242,"kind":"text"}]},{"pos":242,"end":260,"kind":"text"}],"mapHash":"-10250552873-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"406139541-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2893455973-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":104,"kind":"text"}]},{"pos":104,"end":374,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":104,"end":374,"kind":"text"}]},{"pos":374,"end":408,"kind":"text"}],"mapHash":"59293632534-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"24400447170-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":149,"kind":"text"}]},{"pos":149,"end":242,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":149,"end":242,"kind":"text"}]},{"pos":242,"end":260,"kind":"text"}],"mapHash":"-10250552873-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"406139541-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2893455973-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -1975,7 +1977,7 @@ declare var c: C; "../../../../lib/lib.d.ts": "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; };", "../../../first/bin/first-output.d.ts": "-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -1998,7 +2000,7 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 4465 + "size": 4460 } @@ -2006,58 +2008,58 @@ declare var c: C; Change:: incremental-declaration-changes Input:: //// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hola, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hola, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:00:48 AM] Projects in this build: +[12:01:00 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:49 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:01:01 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:00:50 AM] Building project '/src/first/tsconfig.json'... +[12:01:02 AM] Building project '/src/first/tsconfig.json'... -[12:00:59 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:01:11 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part2.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:00 AM] Project 'src/third/tsconfig.json' is out of date because output 'src/third/thirdjs/output/third-output.tsbuildinfo' is older than input 'src/first' +[12:01:12 AM] Project 'src/third/tsconfig.json' is out of date because output 'src/third/thirdjs/output/third-output.tsbuildinfo' is older than input 'src/first' -[12:01:01 AM] Building project '/src/third/tsconfig.json'... +[12:01:13 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success readFiles:: { - "/src/third/tsconfig.json": 1, - "/src/first/tsconfig.json": 1, - "/src/second/tsconfig.json": 1, - "/src/first/bin/first-output.tsbuildinfo": 1, - "/src/first/first_PART1.ts": 1, - "/src/first/first_part2.ts": 1, - "/src/first/first_part3.ts": 1, - "/src/2/second-output.tsbuildinfo": 1, - "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, - "/src/first/bin/first-output.d.ts": 1, - "/src/2/second-output.d.ts": 1, - "/src/third/third_part1.ts": 1, - "/src/first/bin/first-output.js": 1, - "/src/2/second-output.js": 1, - "/src/first/bin/first-output.js.map": 1, - "/src/2/second-output.js.map": 1, - "/src/first/bin/first-output.d.ts.map": 1, - "/src/2/second-output.d.ts.map": 1 + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/2/second-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, + "/src/first/bin/first-output.d.ts": 1, + "/src/2/second-output.d.ts": 1, + "/src/third/third_part1.ts": 1, + "/src/first/bin/first-output.js": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1 } //// [/src/first/bin/first-output.d.ts] @@ -2102,7 +2104,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -2117,7 +2119,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -2128,8 +2130,8 @@ sourceFile:../first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -2147,8 +2149,8 @@ sourceFile:../first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -2162,7 +2164,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -2177,7 +2179,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -2194,8 +2196,8 @@ sourceFile:../first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) @@ -2234,10 +2236,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -2261,12 +2263,12 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -2338,7 +2340,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -2352,7 +2354,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) @@ -2361,7 +2363,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":103,"kind":"text"}],"mapHash":"-23743024037-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"11286582394-var s = \"Hola, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":148,"kind":"text"}],"mapHash":"31357838721-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-8638855186-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-2594963283-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":103,"kind":"text"}],"mapHash":"-23743024037-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"11286582394-var s = \"Hola, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":148,"kind":"text"}],"mapHash":"31357838721-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-8638855186-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-21189362626-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hola, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -2432,9 +2434,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "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; };", - "../first_part1.ts": "-2594963283-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-21189362626-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hola, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -2463,7 +2465,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2630 + "size": 2605 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -2516,7 +2518,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -2531,7 +2533,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -2542,8 +2544,8 @@ sourceFile:../../../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -2561,8 +2563,8 @@ sourceFile:../../../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -2576,7 +2578,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -2591,7 +2593,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -2607,8 +2609,8 @@ sourceFile:../../../first/first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) @@ -2636,8 +2638,8 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) --- @@ -2646,8 +2648,8 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -2660,12 +2662,12 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) --- @@ -2688,7 +2690,7 @@ sourceFile:../../../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(14, 5) Source(2, 5) + SourceIndex(3) @@ -2697,9 +2699,9 @@ sourceFile:../../../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(15, 2) Source(5, 2) + SourceIndex(3) --- @@ -2777,10 +2779,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -2804,12 +2806,12 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -2881,7 +2883,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -2895,7 +2897,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) @@ -2911,19 +2913,19 @@ sourceFile:../../../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(7, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(7, 5) Source(5, 11) + SourceIndex(3) @@ -2947,7 +2949,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -2964,7 +2966,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -2986,7 +2988,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(11, 5) Source(8, 5) + SourceIndex(3) @@ -2998,8 +3000,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -3018,19 +3020,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(13, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(13, 2) Source(11, 2) + SourceIndex(3) @@ -3060,10 +3062,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(16, 5) Source(5, 1) + SourceIndex(4) @@ -3090,7 +3092,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -3112,7 +3114,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(19, 5) Source(4, 5) + SourceIndex(4) @@ -3121,7 +3123,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(20, 5) Source(5, 1) + SourceIndex(4) @@ -3136,10 +3138,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(21, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(21, 2) Source(5, 2) + SourceIndex(4) @@ -3184,7 +3186,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -3201,7 +3203,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":103,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":103,"kind":"text"}]},{"pos":103,"end":373,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":103,"end":373,"kind":"text"}]},{"pos":373,"end":407,"kind":"text"}],"mapHash":"-26819990576-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"28165143602-var s = \"Hola, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":148,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":148,"kind":"text"}]},{"pos":148,"end":241,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":148,"end":241,"kind":"text"}]},{"pos":241,"end":259,"kind":"text"}],"mapHash":"4922242321-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-30232795483-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-16013804117-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":103,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":103,"kind":"text"}]},{"pos":103,"end":373,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":103,"end":373,"kind":"text"}]},{"pos":373,"end":407,"kind":"text"}],"mapHash":"-26819990576-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"28165143602-var s = \"Hola, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":148,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":148,"kind":"text"}]},{"pos":148,"end":241,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":148,"end":241,"kind":"text"}]},{"pos":241,"end":259,"kind":"text"}],"mapHash":"4922242321-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-30232795483-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-16013804117-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -3369,7 +3371,7 @@ declare var c: C; "../../../../lib/lib.d.ts": "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; };", "../../../first/bin/first-output.d.ts": "-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -3392,7 +3394,7 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 4464 + "size": 4459 } @@ -3400,61 +3402,61 @@ declare var c: C; Change:: incremental-declaration-doesnt-change Input:: //// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hola, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hola, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:01:15 AM] Projects in this build: +[12:01:27 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:01:16 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:01:28 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:01:17 AM] Building project '/src/first/tsconfig.json'... +[12:01:29 AM] Building project '/src/first/tsconfig.json'... -[12:01:25 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:01:37 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part2.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:26 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:01:38 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:01:27 AM] Updating output of project '/src/third/tsconfig.json'... +[12:01:39 AM] Updating output of project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success readFiles:: { - "/src/third/tsconfig.json": 1, - "/src/first/tsconfig.json": 1, - "/src/second/tsconfig.json": 1, - "/src/first/bin/first-output.tsbuildinfo": 1, - "/src/first/first_PART1.ts": 1, - "/src/first/first_part2.ts": 1, - "/src/first/first_part3.ts": 1, - "/src/2/second-output.tsbuildinfo": 1, - "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, - "/src/third/thirdjs/output/third-output.js": 1, - "/src/third/thirdjs/output/third-output.js.map": 1, - "/src/third/thirdjs/output/third-output.d.ts": 1, - "/src/third/thirdjs/output/third-output.d.ts.map": 1, - "/src/first/bin/first-output.js": 1, - "/src/2/second-output.js": 1, - "/src/first/bin/first-output.js.map": 1, - "/src/2/second-output.js.map": 1, - "/src/first/bin/first-output.d.ts": 1, - "/src/2/second-output.d.ts": 1, - "/src/first/bin/first-output.d.ts.map": 1, - "/src/2/second-output.d.ts.map": 1 + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/2/second-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.js": 1, + "/src/third/thirdjs/output/third-output.js.map": 1, + "/src/third/thirdjs/output/third-output.d.ts": 1, + "/src/third/thirdjs/output/third-output.d.ts.map": 1, + "/src/first/bin/first-output.js": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/first/bin/first-output.d.ts": 1, + "/src/2/second-output.d.ts": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1 } //// [/src/first/bin/first-output.d.ts.map] file written with same contents @@ -3490,10 +3492,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -3516,12 +3518,12 @@ sourceFile:../first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -3549,7 +3551,7 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > +1 > > 2 >console 3 > . @@ -3621,7 +3623,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -3635,7 +3637,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) @@ -3644,7 +3646,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":119,"kind":"text"}],"mapHash":"-32659542769-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"14669719846-var s = \"Hola, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":148,"kind":"text"}],"mapHash":"31357838721-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-8638855186-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","3570577263-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":119,"kind":"text"}],"mapHash":"-32659542769-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"14669719846-var s = \"Hola, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":148,"kind":"text"}],"mapHash":"31357838721-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-8638855186-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-21292400928-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hola, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -3716,9 +3718,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "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; };", - "../first_part1.ts": "3570577263-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-21292400928-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hola, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -3747,7 +3749,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2701 + "size": 2677 } //// [/src/third/thirdjs/output/third-output.js] @@ -3798,10 +3800,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -3824,12 +3826,12 @@ sourceFile:../../../first/first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -3857,7 +3859,7 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > +1 > > 2 >console 3 > . @@ -3929,7 +3931,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -3943,7 +3945,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) @@ -3959,19 +3961,19 @@ sourceFile:../../../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(8, 5) Source(5, 11) + SourceIndex(3) @@ -3995,7 +3997,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -4012,7 +4014,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -4034,7 +4036,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(12, 5) Source(8, 5) + SourceIndex(3) @@ -4046,8 +4048,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -4066,19 +4068,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(14, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(14, 2) Source(11, 2) + SourceIndex(3) @@ -4108,10 +4110,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(17, 5) Source(5, 1) + SourceIndex(4) @@ -4138,7 +4140,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -4160,7 +4162,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(20, 5) Source(4, 5) + SourceIndex(4) @@ -4169,7 +4171,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(21, 5) Source(5, 1) + SourceIndex(4) @@ -4184,10 +4186,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(22, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(22, 2) Source(5, 2) + SourceIndex(4) @@ -4232,7 +4234,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -4249,7 +4251,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":119,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":119,"kind":"text"}]},{"pos":119,"end":389,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":119,"end":389,"kind":"text"}]},{"pos":389,"end":423,"kind":"text"}],"mapHash":"24739356036-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"30230288606-var s = \"Hola, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":148,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":148,"kind":"text"}]},{"pos":148,"end":241,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":148,"end":241,"kind":"text"}]},{"pos":241,"end":259,"kind":"text"}],"mapHash":"4922242321-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-30232795483-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-16013804117-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":119,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":119,"kind":"text"}]},{"pos":119,"end":389,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":119,"end":389,"kind":"text"}]},{"pos":389,"end":423,"kind":"text"}],"mapHash":"24739356036-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"30230288606-var s = \"Hola, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":148,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":148,"kind":"text"}]},{"pos":148,"end":241,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":148,"end":241,"kind":"text"}]},{"pos":241,"end":259,"kind":"text"}],"mapHash":"4922242321-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-30232795483-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-16013804117-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -4418,7 +4420,7 @@ declare var c: C; "../../../../lib/lib.d.ts": "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; };", "../../../first/bin/first-output.d.ts": "-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -4441,6 +4443,6 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 4520 + "size": 4515 } diff --git a/tests/baselines/reference/tsbuild/outfile-concat/declarationMap-and-sourceMap-disabled.js b/tests/baselines/reference/tsbuild/outfile-concat/declarationMap-and-sourceMap-disabled.js index a532b86825e82..d6bb728da7aaf 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/declarationMap-and-sourceMap-disabled.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/declarationMap-and-sourceMap-disabled.js @@ -16,138 +16,140 @@ interface ReadonlyArray {} declare const console: { log(msg: any): void; }; //// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); //// [/src/first/first_part2.ts] -console.log(f()); +console.log(f()); //// [/src/first/first_part3.ts] -function f() { - return "JS does hoists"; -} +function f() { + return "JS does hoists"; +} + //// [/src/first/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "outFile": "./bin/first-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "first_PART1.ts", - "first_part2.ts", - "first_part3.ts" - ], - "references": [ - ] +{ + "compilerOptions": { + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "outFile": "./bin/first-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "first_PART1.ts", + "first_part2.ts", + "first_part3.ts" + ], + "references": [] } - //// [/src/second/second_part1.ts] -namespace N { - // Comment text -} - -namespace N { - function f() { - console.log('testing'); - } - - f(); -} +namespace N { + // Comment text +} + +namespace N { + function f() { + console.log('testing'); + } + + f(); +} //// [/src/second/second_part2.ts] -class C { - doSomething() { - console.log("something got done"); - } -} +class C { + doSomething() { + console.log("something got done"); + } +} //// [/src/second/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "../2/second-output.js", - "skipDefaultLibCheck": true - }, - "references": [ - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "../2/second-output.js", + "skipDefaultLibCheck": true + }, + "references": [] } - //// [/src/third/third_part1.ts] //// [/src/third/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - - "removeComments": true, - "strict": false, - - - "declaration": true, - "outFile": "./thirdjs/output/third-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "third_part1.ts" - ], - "references": [ - { "path": "../first", "prepend": true }, - { "path": "../second", "prepend": true }, - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + + "removeComments": true, + "strict": false, + + + "declaration": true, + "outFile": "./thirdjs/output/third-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "third_part1.ts" + ], + "references": [ + { + "path": "../first", + "prepend": true + }, + { + "path": "../second", + "prepend": true + } + ] } - Output:: /lib/tsc --b /src/third --verbose -[12:00:10 AM] Projects in this build: +[12:00:22 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:11 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist +[12:00:23 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist -[12:00:12 AM] Building project '/src/first/tsconfig.json'... +[12:00:24 AM] Building project '/src/first/tsconfig.json'... -[12:00:22 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist +[12:00:34 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist -[12:00:23 AM] Building project '/src/second/tsconfig.json'... +[12:00:35 AM] Building project '/src/second/tsconfig.json'... -[12:00:33 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist +[12:00:45 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist -[12:00:34 AM] Building project '/src/third/tsconfig.json'... +[12:00:46 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -193,8 +195,8 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(2, 2) Source(3, 2) + SourceIndex(0) --- @@ -203,8 +205,8 @@ sourceFile:../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -217,12 +219,12 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(4, 2) Source(11, 2) + SourceIndex(0) --- @@ -245,7 +247,7 @@ sourceFile:../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(6, 5) Source(2, 5) + SourceIndex(1) @@ -254,9 +256,9 @@ sourceFile:../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(7, 2) Source(5, 2) + SourceIndex(1) --- @@ -300,19 +302,19 @@ sourceFile:../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1 >namespace N { - > // Comment text - >} - > +1 >namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) 2 >Emitted(1, 5) Source(5, 11) + SourceIndex(0) @@ -336,7 +338,7 @@ sourceFile:../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -353,7 +355,7 @@ sourceFile:../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -375,7 +377,7 @@ sourceFile:../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(5, 5) Source(8, 5) + SourceIndex(0) @@ -387,8 +389,8 @@ sourceFile:../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -407,19 +409,19 @@ sourceFile:../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(7, 1) Source(11, 1) + SourceIndex(0) 2 >Emitted(7, 2) Source(11, 2) + SourceIndex(0) @@ -449,10 +451,10 @@ sourceFile:../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(10, 5) Source(5, 1) + SourceIndex(1) @@ -479,7 +481,7 @@ sourceFile:../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -501,7 +503,7 @@ sourceFile:../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(13, 5) Source(4, 5) + SourceIndex(1) @@ -510,7 +512,7 @@ sourceFile:../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(14, 5) Source(5, 1) + SourceIndex(1) @@ -525,10 +527,10 @@ sourceFile:../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(15, 1) Source(5, 1) + SourceIndex(1) 2 >Emitted(15, 2) Source(5, 2) + SourceIndex(1) @@ -538,7 +540,7 @@ sourceFile:../second/second_part2.ts >>>//# sourceMappingURL=second-output.js.map //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":270,"kind":"text"}],"mapHash":"9890117190-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-2912899787-var N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":93,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-16005591226-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["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; };","-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":270,"kind":"text"}],"mapHash":"9890117190-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-2912899787-var N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":93,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-16005591226-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["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; };","-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n","3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -615,8 +617,8 @@ declare class C { ], "fileInfos": { "../../lib/lib.d.ts": "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; };", - "../second/second_part1.ts": "-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n", - "../second/second_part2.ts": "9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n" + "../second/second_part1.ts": "-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", + "../second/second_part2.ts": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n" }, "root": [ [ @@ -643,7 +645,7 @@ declare class C { "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 2736 + "size": 2704 } //// [/src/first/bin/first-output.d.ts] @@ -688,7 +690,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -703,7 +705,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -714,8 +716,8 @@ sourceFile:../first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -733,8 +735,8 @@ sourceFile:../first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -748,7 +750,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -763,7 +765,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -780,8 +782,8 @@ sourceFile:../first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) @@ -820,10 +822,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -847,12 +849,12 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -924,7 +926,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -938,7 +940,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) @@ -947,7 +949,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"4999315210-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"4999315210-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -1018,9 +1020,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "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; };", - "../first_part1.ts": "-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -1049,7 +1051,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2635 + "size": 2609 } //// [/src/third/thirdjs/output/third-output.d.ts] diff --git a/tests/baselines/reference/tsbuild/outfile-concat/emitHelpers-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/emitHelpers-in-all-projects.js index c6ff205a76afc..80ffeb8ae0582 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/emitHelpers-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/emitHelpers-in-all-projects.js @@ -16,166 +16,168 @@ interface ReadonlyArray {} declare const console: { log(msg: any): void; }; //// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); function forfirstfirst_PART1Rest() { const { b, ...rest } = { a: 10, b: 30, yy: 30 }; } //// [/src/first/first_part2.ts] -console.log(f()); +console.log(f()); //// [/src/first/first_part3.ts] -function f() { - return "JS does hoists"; -} +function f() { + return "JS does hoists"; +} + //// [/src/first/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "outFile": "./bin/first-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "first_PART1.ts", - "first_part2.ts", - "first_part3.ts" - ], - "references": [ - ] +{ + "compilerOptions": { + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "outFile": "./bin/first-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "first_PART1.ts", + "first_part2.ts", + "first_part3.ts" + ], + "references": [] } - //// [/src/second/second_part1.ts] -namespace N { - // Comment text -} - -namespace N { - function f() { - console.log('testing'); - } - - f(); -} +namespace N { + // Comment text +} + +namespace N { + function f() { + console.log('testing'); + } + + f(); +} function forsecondsecond_part1Rest() { const { b, ...rest } = { a: 10, b: 30, yy: 30 }; } //// [/src/second/second_part2.ts] -class C { - doSomething() { - console.log("something got done"); - } -} +class C { + doSomething() { + console.log("something got done"); + } +} //// [/src/second/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "../2/second-output.js", - "skipDefaultLibCheck": true - }, - "references": [ - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "../2/second-output.js", + "skipDefaultLibCheck": true + }, + "references": [] } - //// [/src/third/third_part1.ts] -var c = new C(); -c.doSomething(); +var c = new C(); +c.doSomething(); function forthirdthird_part1Rest() { const { b, ...rest } = { a: 10, b: 30, yy: 30 }; } //// [/src/third/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "./thirdjs/output/third-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "third_part1.ts" - ], - "references": [ - { "path": "../first", "prepend": true }, - { "path": "../second", "prepend": true }, - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "./thirdjs/output/third-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "third_part1.ts" + ], + "references": [ + { + "path": "../first", + "prepend": true + }, + { + "path": "../second", + "prepend": true + } + ] } - Output:: /lib/tsc --b /src/third --verbose -[12:00:09 AM] Projects in this build: +[12:00:21 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:10 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist +[12:00:22 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist -[12:00:11 AM] Building project '/src/first/tsconfig.json'... +[12:00:23 AM] Building project '/src/first/tsconfig.json'... -[12:00:21 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist +[12:00:33 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist -[12:00:22 AM] Building project '/src/second/tsconfig.json'... +[12:00:34 AM] Building project '/src/second/tsconfig.json'... -[12:00:32 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist +[12:00:44 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist -[12:00:33 AM] Building project '/src/third/tsconfig.json'... +[12:00:45 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success readFiles:: { - "/src/third/tsconfig.json": 1, - "/src/first/tsconfig.json": 1, - "/src/second/tsconfig.json": 1, - "/src/first/first_PART1.ts": 1, - "/src/first/first_part2.ts": 1, - "/src/first/first_part3.ts": 1, - "/src/second/second_part1.ts": 1, - "/src/second/second_part2.ts": 1, - "/src/first/bin/first-output.d.ts": 1, - "/src/2/second-output.d.ts": 1, - "/src/third/third_part1.ts": 1, - "/src/first/bin/first-output.js": 1, - "/src/2/second-output.js": 1, - "/src/first/bin/first-output.js.map": 1, - "/src/2/second-output.js.map": 1, - "/src/first/bin/first-output.d.ts.map": 1, - "/src/2/second-output.d.ts.map": 1 + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/second/second_part1.ts": 1, + "/src/second/second_part2.ts": 1, + "/src/first/bin/first-output.d.ts": 1, + "/src/2/second-output.d.ts": 1, + "/src/third/third_part1.ts": 1, + "/src/first/bin/first-output.js": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1 } //// [/src/2/second-output.d.ts] @@ -220,8 +222,8 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(2, 2) Source(3, 2) + SourceIndex(0) --- @@ -230,8 +232,8 @@ sourceFile:../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -244,12 +246,12 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(4, 2) Source(11, 2) + SourceIndex(0) --- @@ -258,7 +260,7 @@ sourceFile:../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^ -1-> +1-> > 2 >function 3 > forsecondsecond_part1Rest @@ -289,7 +291,7 @@ sourceFile:../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(7, 5) Source(2, 5) + SourceIndex(1) @@ -298,9 +300,9 @@ sourceFile:../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(8, 2) Source(5, 2) + SourceIndex(1) --- @@ -369,19 +371,19 @@ sourceFile:../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1 >namespace N { - > // Comment text - >} - > +1 >namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1 >Emitted(12, 1) Source(5, 1) + SourceIndex(0) 2 >Emitted(12, 5) Source(5, 11) + SourceIndex(0) @@ -405,7 +407,7 @@ sourceFile:../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -422,7 +424,7 @@ sourceFile:../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -444,7 +446,7 @@ sourceFile:../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(16, 5) Source(8, 5) + SourceIndex(0) @@ -456,8 +458,8 @@ sourceFile:../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -476,19 +478,19 @@ sourceFile:../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(18, 1) Source(11, 1) + SourceIndex(0) 2 >Emitted(18, 2) Source(11, 2) + SourceIndex(0) @@ -503,7 +505,7 @@ sourceFile:../second/second_part1.ts 2 >^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >function 3 > forsecondsecond_part1Rest @@ -619,10 +621,10 @@ sourceFile:../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(24, 5) Source(5, 1) + SourceIndex(1) @@ -649,7 +651,7 @@ sourceFile:../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -671,7 +673,7 @@ sourceFile:../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(27, 5) Source(4, 5) + SourceIndex(1) @@ -680,7 +682,7 @@ sourceFile:../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(28, 5) Source(5, 1) + SourceIndex(1) @@ -695,10 +697,10 @@ sourceFile:../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(29, 1) Source(5, 1) + SourceIndex(1) 2 >Emitted(29, 2) Source(5, 2) + SourceIndex(1) @@ -708,7 +710,7 @@ sourceFile:../second/second_part2.ts >>>//# sourceMappingURL=second-output.js.map //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":490,"kind":"emitHelpers","data":"typescript:rest"},{"pos":491,"end":877,"kind":"text"}],"sources":{"helpers":["typescript:rest"]},"mapHash":"-21017865726-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"4271271922-var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nfunction forsecondsecond_part1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":145,"kind":"text"}],"mapHash":"-13719015667-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"2818433922-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["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; };","-12564528434-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\nfunction forsecondsecond_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-7599329529-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":490,"kind":"emitHelpers","data":"typescript:rest"},{"pos":491,"end":877,"kind":"text"}],"sources":{"helpers":["typescript:rest"]},"mapHash":"-21017865726-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"4271271922-var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nfunction forsecondsecond_part1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":145,"kind":"text"}],"mapHash":"-13719015667-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"2818433922-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["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; };","-13362958657-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\nfunction forsecondsecond_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}","3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-7599329529-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -813,8 +815,8 @@ declare class C { ], "fileInfos": { "../../lib/lib.d.ts": "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; };", - "../second/second_part1.ts": "-12564528434-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\nfunction forsecondsecond_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}", - "../second/second_part2.ts": "9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n" + "../second/second_part1.ts": "-13362958657-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\nfunction forsecondsecond_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}", + "../second/second_part2.ts": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n" }, "root": [ [ @@ -841,7 +843,7 @@ declare class C { "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 3862 + "size": 3830 } //// [/src/first/bin/first-output.d.ts] @@ -887,7 +889,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -902,7 +904,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -913,8 +915,8 @@ sourceFile:../first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -932,8 +934,8 @@ sourceFile:../first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -947,7 +949,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -962,7 +964,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -971,9 +973,9 @@ sourceFile:../first_PART1.ts 2 >^^^^^^^^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^ -1-> - > - >console.log(s); +1-> + > + >console.log(s); > 2 >function 3 > forfirstfirst_PART1Rest @@ -998,8 +1000,8 @@ sourceFile:../first_part3.ts 1 > 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) 2 >Emitted(9, 18) Source(1, 10) + SourceIndex(2) @@ -1063,10 +1065,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -1090,12 +1092,12 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -1118,7 +1120,7 @@ sourceFile:../first_PART1.ts 2 >^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >function 3 > forfirstfirst_PART1Rest @@ -1268,7 +1270,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -1282,7 +1284,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(20, 1) Source(3, 1) + SourceIndex(2) @@ -1291,7 +1293,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":490,"kind":"emitHelpers","data":"typescript:rest"},{"pos":491,"end":709,"kind":"text"}],"sources":{"helpers":["typescript:rest"]},"mapHash":"-19791845071-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-20088349121-var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar s = \"Hello, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":199,"kind":"text"}],"mapHash":"22543277725-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;AEbD,iBAAS,CAAC,WAET\"}","hash":"-9615756366-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-2071921725-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-14427003669-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":490,"kind":"emitHelpers","data":"typescript:rest"},{"pos":491,"end":709,"kind":"text"}],"sources":{"helpers":["typescript:rest"]},"mapHash":"-19791845071-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-20088349121-var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar s = \"Hello, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":199,"kind":"text"}],"mapHash":"22543277725-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;AEbD,iBAAS,CAAC,WAET\"}","hash":"-9615756366-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-25468252236-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-14427003669-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -1390,9 +1392,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "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; };", - "../first_part1.ts": "-2071921725-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-25468252236-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -1421,7 +1423,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 3751 + "size": 3726 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -1477,7 +1479,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -1492,7 +1494,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -1503,8 +1505,8 @@ sourceFile:../../../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -1522,8 +1524,8 @@ sourceFile:../../../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -1537,7 +1539,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -1552,7 +1554,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -1561,9 +1563,9 @@ sourceFile:../../../first/first_PART1.ts 2 >^^^^^^^^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^ -1-> - > - >console.log(s); +1-> + > + >console.log(s); > 2 >function 3 > forfirstfirst_PART1Rest @@ -1587,8 +1589,8 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1 >Emitted(9, 1) Source(1, 1) + SourceIndex(1) 2 >Emitted(9, 18) Source(1, 10) + SourceIndex(1) @@ -1616,8 +1618,8 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(11, 2) Source(3, 2) + SourceIndex(2) --- @@ -1626,8 +1628,8 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -1640,12 +1642,12 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(13, 2) Source(11, 2) + SourceIndex(2) --- @@ -1654,7 +1656,7 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^ -1-> +1-> > 2 >function 3 > forsecondsecond_part1Rest @@ -1685,7 +1687,7 @@ sourceFile:../../../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(16, 5) Source(2, 5) + SourceIndex(3) @@ -1694,9 +1696,9 @@ sourceFile:../../../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(17, 2) Source(5, 2) + SourceIndex(3) --- @@ -1730,8 +1732,8 @@ sourceFile:../../third_part1.ts 2 >^^^^^^^^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^ -1-> - >c.doSomething(); +1-> + >c.doSomething(); > 2 >function 3 > forthirdthird_part1Rest @@ -1823,10 +1825,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -1850,12 +1852,12 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -1878,7 +1880,7 @@ sourceFile:../../../first/first_PART1.ts 2 >^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >function 3 > forfirstfirst_PART1Rest @@ -2028,7 +2030,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -2042,7 +2044,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(20, 1) Source(3, 1) + SourceIndex(2) @@ -2058,19 +2060,19 @@ sourceFile:../../../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(21, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(21, 5) Source(5, 11) + SourceIndex(3) @@ -2094,7 +2096,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -2111,7 +2113,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -2133,7 +2135,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(25, 5) Source(8, 5) + SourceIndex(3) @@ -2145,8 +2147,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -2165,19 +2167,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(27, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(27, 2) Source(11, 2) + SourceIndex(3) @@ -2192,7 +2194,7 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >function 3 > forsecondsecond_part1Rest @@ -2308,10 +2310,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(33, 5) Source(5, 1) + SourceIndex(4) @@ -2338,7 +2340,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -2360,7 +2362,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(36, 5) Source(4, 5) + SourceIndex(4) @@ -2369,7 +2371,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(37, 5) Source(5, 1) + SourceIndex(4) @@ -2384,10 +2386,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(38, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(38, 2) Source(5, 2) + SourceIndex(4) @@ -2432,7 +2434,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -2451,7 +2453,7 @@ sourceFile:../../third_part1.ts 2 >^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >function 3 > forthirdthird_part1Rest @@ -2550,7 +2552,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":490,"kind":"emitHelpers","data":"typescript:rest"},{"pos":491,"end":709,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":491,"end":709,"kind":"text"}]},{"pos":709,"end":1095,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":709,"end":1095,"kind":"text"}]},{"pos":1095,"end":1243,"kind":"text"}],"sources":{"helpers":["typescript:rest"]},"mapHash":"13581617434-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC\"}","hash":"3074920351-var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar s = \"Hello, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nfunction forsecondsecond_part1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\nfunction forthirdthird_part1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":199,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":199,"kind":"text"}]},{"pos":199,"end":344,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":199,"end":344,"kind":"text"}]},{"pos":344,"end":412,"kind":"text"}],"mapHash":"54171448521-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;ACbD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC;AAEhB,iBAAS,uBAAuB,SAE/B\"}","hash":"-25063643521-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\ndeclare function forthirdthird_part1Rest(): void;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-14427003669-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n","-7599329529-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\n","-362916705-var c = new C();\r\nc.doSomething();\r\nfunction forthirdthird_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-23528448763-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\ndeclare function forthirdthird_part1Rest(): void;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":490,"kind":"emitHelpers","data":"typescript:rest"},{"pos":491,"end":709,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":491,"end":709,"kind":"text"}]},{"pos":709,"end":1095,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":709,"end":1095,"kind":"text"}]},{"pos":1095,"end":1243,"kind":"text"}],"sources":{"helpers":["typescript:rest"]},"mapHash":"13581617434-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC\"}","hash":"3074920351-var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar s = \"Hello, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nfunction forsecondsecond_part1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\nfunction forthirdthird_part1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":199,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":199,"kind":"text"}]},{"pos":199,"end":344,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":199,"end":344,"kind":"text"}]},{"pos":344,"end":412,"kind":"text"}],"mapHash":"54171448521-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;ACbD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC;AAEhB,iBAAS,uBAAuB,SAE/B\"}","hash":"-25063643521-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\ndeclare function forthirdthird_part1Rest(): void;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-14427003669-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n","-7599329529-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\n","-7656447355-var c = new C();\nc.doSomething();\nfunction forthirdthird_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-23528448763-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\ndeclare function forthirdthird_part1Rest(): void;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -2754,7 +2756,7 @@ declare function forthirdthird_part1Rest(): void; "../../../../lib/lib.d.ts": "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; };", "../../../first/bin/first-output.d.ts": "-14427003669-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "-7599329529-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "-362916705-var c = new C();\r\nc.doSomething();\r\nfunction forthirdthird_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}" + "../../third_part1.ts": "-7656447355-var c = new C();\nc.doSomething();\nfunction forthirdthird_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}" }, "root": [ [ @@ -2777,7 +2779,7 @@ declare function forthirdthird_part1Rest(): void; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 6504 + "size": 6501 } @@ -2785,17 +2787,17 @@ declare function forthirdthird_part1Rest(): void; Change:: incremental-declaration-changes Input:: //// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hola, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hola, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); function forfirstfirst_PART1Rest() { const { b, ...rest } = { a: 10, b: 30, yy: 30 }; } @@ -2804,41 +2806,41 @@ const { b, ...rest } = { a: 10, b: 30, yy: 30 }; Output:: /lib/tsc --b /src/third --verbose -[12:00:51 AM] Projects in this build: +[12:01:03 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:52 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:01:04 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:00:53 AM] Building project '/src/first/tsconfig.json'... +[12:01:05 AM] Building project '/src/first/tsconfig.json'... -[12:01:02 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:01:14 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:03 AM] Project 'src/third/tsconfig.json' is out of date because output 'src/third/thirdjs/output/third-output.tsbuildinfo' is older than input 'src/first' +[12:01:15 AM] Project 'src/third/tsconfig.json' is out of date because output 'src/third/thirdjs/output/third-output.tsbuildinfo' is older than input 'src/first' -[12:01:04 AM] Building project '/src/third/tsconfig.json'... +[12:01:16 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success readFiles:: { - "/src/third/tsconfig.json": 1, - "/src/first/tsconfig.json": 1, - "/src/second/tsconfig.json": 1, - "/src/first/bin/first-output.tsbuildinfo": 1, - "/src/first/first_PART1.ts": 1, - "/src/first/first_part2.ts": 1, - "/src/first/first_part3.ts": 1, - "/src/2/second-output.tsbuildinfo": 1, - "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, - "/src/first/bin/first-output.d.ts": 1, - "/src/2/second-output.d.ts": 1, - "/src/third/third_part1.ts": 1, - "/src/first/bin/first-output.js": 1, - "/src/2/second-output.js": 1, - "/src/first/bin/first-output.js.map": 1, - "/src/2/second-output.js.map": 1, - "/src/first/bin/first-output.d.ts.map": 1, - "/src/2/second-output.d.ts.map": 1 + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/2/second-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, + "/src/first/bin/first-output.d.ts": 1, + "/src/2/second-output.d.ts": 1, + "/src/third/third_part1.ts": 1, + "/src/first/bin/first-output.js": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1 } //// [/src/first/bin/first-output.d.ts] @@ -2884,7 +2886,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -2899,7 +2901,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -2910,8 +2912,8 @@ sourceFile:../first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -2929,8 +2931,8 @@ sourceFile:../first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -2944,7 +2946,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -2959,7 +2961,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -2968,9 +2970,9 @@ sourceFile:../first_PART1.ts 2 >^^^^^^^^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^ -1-> - > - >console.log(s); +1-> + > + >console.log(s); > 2 >function 3 > forfirstfirst_PART1Rest @@ -2995,8 +2997,8 @@ sourceFile:../first_part3.ts 1 > 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) 2 >Emitted(9, 18) Source(1, 10) + SourceIndex(2) @@ -3060,10 +3062,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -3087,12 +3089,12 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -3115,7 +3117,7 @@ sourceFile:../first_PART1.ts 2 >^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >function 3 > forfirstfirst_PART1Rest @@ -3265,7 +3267,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -3279,7 +3281,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(20, 1) Source(3, 1) + SourceIndex(2) @@ -3288,7 +3290,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":490,"kind":"emitHelpers","data":"typescript:rest"},{"pos":491,"end":708,"kind":"text"}],"sources":{"helpers":["typescript:rest"]},"mapHash":"-13521552725-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-16804917073-var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar s = \"Hola, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":198,"kind":"text"}],"mapHash":"34379070423-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;AEbD,iBAAS,CAAC,WAET\"}","hash":"-11409691198-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","2612047891-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-10583209221-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":490,"kind":"emitHelpers","data":"typescript:rest"},{"pos":491,"end":708,"kind":"text"}],"sources":{"helpers":["typescript:rest"]},"mapHash":"-13521552725-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-16804917073-var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar s = \"Hola, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":198,"kind":"text"}],"mapHash":"34379070423-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;AEbD,iBAAS,CAAC,WAET\"}","hash":"-11409691198-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-20332566396-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hola, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-10583209221-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -3387,9 +3389,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "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; };", - "../first_part1.ts": "2612047891-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-20332566396-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hola, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -3418,7 +3420,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 3747 + "size": 3723 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -3474,7 +3476,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -3489,7 +3491,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -3500,8 +3502,8 @@ sourceFile:../../../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -3519,8 +3521,8 @@ sourceFile:../../../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -3534,7 +3536,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -3549,7 +3551,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -3558,9 +3560,9 @@ sourceFile:../../../first/first_PART1.ts 2 >^^^^^^^^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^ -1-> - > - >console.log(s); +1-> + > + >console.log(s); > 2 >function 3 > forfirstfirst_PART1Rest @@ -3584,8 +3586,8 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1 >Emitted(9, 1) Source(1, 1) + SourceIndex(1) 2 >Emitted(9, 18) Source(1, 10) + SourceIndex(1) @@ -3613,8 +3615,8 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(11, 2) Source(3, 2) + SourceIndex(2) --- @@ -3623,8 +3625,8 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -3637,12 +3639,12 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(13, 2) Source(11, 2) + SourceIndex(2) --- @@ -3651,7 +3653,7 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^ -1-> +1-> > 2 >function 3 > forsecondsecond_part1Rest @@ -3682,7 +3684,7 @@ sourceFile:../../../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(16, 5) Source(2, 5) + SourceIndex(3) @@ -3691,9 +3693,9 @@ sourceFile:../../../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(17, 2) Source(5, 2) + SourceIndex(3) --- @@ -3727,8 +3729,8 @@ sourceFile:../../third_part1.ts 2 >^^^^^^^^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^ -1-> - >c.doSomething(); +1-> + >c.doSomething(); > 2 >function 3 > forthirdthird_part1Rest @@ -3820,10 +3822,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -3847,12 +3849,12 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -3875,7 +3877,7 @@ sourceFile:../../../first/first_PART1.ts 2 >^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >function 3 > forfirstfirst_PART1Rest @@ -4025,7 +4027,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -4039,7 +4041,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(20, 1) Source(3, 1) + SourceIndex(2) @@ -4055,19 +4057,19 @@ sourceFile:../../../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(21, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(21, 5) Source(5, 11) + SourceIndex(3) @@ -4091,7 +4093,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -4108,7 +4110,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -4130,7 +4132,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(25, 5) Source(8, 5) + SourceIndex(3) @@ -4142,8 +4144,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -4162,19 +4164,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(27, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(27, 2) Source(11, 2) + SourceIndex(3) @@ -4189,7 +4191,7 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >function 3 > forsecondsecond_part1Rest @@ -4305,10 +4307,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(33, 5) Source(5, 1) + SourceIndex(4) @@ -4335,7 +4337,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -4357,7 +4359,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(36, 5) Source(4, 5) + SourceIndex(4) @@ -4366,7 +4368,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(37, 5) Source(5, 1) + SourceIndex(4) @@ -4381,10 +4383,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(38, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(38, 2) Source(5, 2) + SourceIndex(4) @@ -4429,7 +4431,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -4448,7 +4450,7 @@ sourceFile:../../third_part1.ts 2 >^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >function 3 > forthirdthird_part1Rest @@ -4547,7 +4549,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":490,"kind":"emitHelpers","data":"typescript:rest"},{"pos":491,"end":708,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":491,"end":708,"kind":"text"}]},{"pos":708,"end":1094,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":708,"end":1094,"kind":"text"}]},{"pos":1094,"end":1242,"kind":"text"}],"sources":{"helpers":["typescript:rest"]},"mapHash":"40950852308-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC\"}","hash":"-11659135473-var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar s = \"Hola, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nfunction forsecondsecond_part1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\nfunction forthirdthird_part1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":198,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":198,"kind":"text"}]},{"pos":198,"end":343,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":198,"end":343,"kind":"text"}]},{"pos":343,"end":411,"kind":"text"}],"mapHash":"13317128515-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;ACbD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC;AAEhB,iBAAS,uBAAuB,SAE/B\"}","hash":"-20993521009-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\ndeclare function forthirdthird_part1Rest(): void;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-10583209221-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n","-7599329529-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\n","-362916705-var c = new C();\r\nc.doSomething();\r\nfunction forthirdthird_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-16204305131-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\ndeclare function forthirdthird_part1Rest(): void;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":490,"kind":"emitHelpers","data":"typescript:rest"},{"pos":491,"end":708,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":491,"end":708,"kind":"text"}]},{"pos":708,"end":1094,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":708,"end":1094,"kind":"text"}]},{"pos":1094,"end":1242,"kind":"text"}],"sources":{"helpers":["typescript:rest"]},"mapHash":"40950852308-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC\"}","hash":"-11659135473-var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar s = \"Hola, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nfunction forsecondsecond_part1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\nfunction forthirdthird_part1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":198,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":198,"kind":"text"}]},{"pos":198,"end":343,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":198,"end":343,"kind":"text"}]},{"pos":343,"end":411,"kind":"text"}],"mapHash":"13317128515-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;ACbD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC;AAEhB,iBAAS,uBAAuB,SAE/B\"}","hash":"-20993521009-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\ndeclare function forthirdthird_part1Rest(): void;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-10583209221-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n","-7599329529-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\n","-7656447355-var c = new C();\nc.doSomething();\nfunction forthirdthird_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-16204305131-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\ndeclare function forthirdthird_part1Rest(): void;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -4751,7 +4753,7 @@ declare function forthirdthird_part1Rest(): void; "../../../../lib/lib.d.ts": "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; };", "../../../first/bin/first-output.d.ts": "-10583209221-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "-7599329529-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "-362916705-var c = new C();\r\nc.doSomething();\r\nfunction forthirdthird_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}" + "../../third_part1.ts": "-7656447355-var c = new C();\nc.doSomething();\nfunction forthirdthird_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}" }, "root": [ [ @@ -4774,7 +4776,7 @@ declare function forthirdthird_part1Rest(): void; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 6502 + "size": 6499 } @@ -4782,17 +4784,17 @@ declare function forthirdthird_part1Rest(): void; Change:: incremental-declaration-doesnt-change Input:: //// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hola, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hola, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); function forfirstfirst_PART1Rest() { const { b, ...rest } = { a: 10, b: 30, yy: 30 }; }console.log(s); @@ -4801,44 +4803,44 @@ const { b, ...rest } = { a: 10, b: 30, yy: 30 }; Output:: /lib/tsc --b /src/third --verbose -[12:01:18 AM] Projects in this build: +[12:01:30 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:01:19 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:01:31 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:01:20 AM] Building project '/src/first/tsconfig.json'... +[12:01:32 AM] Building project '/src/first/tsconfig.json'... -[12:01:28 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:01:40 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:29 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:01:41 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:01:30 AM] Updating output of project '/src/third/tsconfig.json'... +[12:01:42 AM] Updating output of project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success readFiles:: { - "/src/third/tsconfig.json": 1, - "/src/first/tsconfig.json": 1, - "/src/second/tsconfig.json": 1, - "/src/first/bin/first-output.tsbuildinfo": 1, - "/src/first/first_PART1.ts": 1, - "/src/first/first_part2.ts": 1, - "/src/first/first_part3.ts": 1, - "/src/2/second-output.tsbuildinfo": 1, - "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, - "/src/third/thirdjs/output/third-output.js": 1, - "/src/third/thirdjs/output/third-output.js.map": 1, - "/src/third/thirdjs/output/third-output.d.ts": 1, - "/src/third/thirdjs/output/third-output.d.ts.map": 1, - "/src/first/bin/first-output.js": 1, - "/src/2/second-output.js": 1, - "/src/first/bin/first-output.js.map": 1, - "/src/2/second-output.js.map": 1, - "/src/first/bin/first-output.d.ts": 1, - "/src/2/second-output.d.ts": 1, - "/src/first/bin/first-output.d.ts.map": 1, - "/src/2/second-output.d.ts.map": 1 + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/2/second-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.js": 1, + "/src/third/thirdjs/output/third-output.js.map": 1, + "/src/third/thirdjs/output/third-output.d.ts": 1, + "/src/third/thirdjs/output/third-output.d.ts.map": 1, + "/src/first/bin/first-output.js": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/first/bin/first-output.d.ts": 1, + "/src/2/second-output.d.ts": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1 } //// [/src/first/bin/first-output.d.ts.map] file written with same contents @@ -4899,10 +4901,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -4926,12 +4928,12 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -4954,7 +4956,7 @@ sourceFile:../first_PART1.ts 2 >^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >function 3 > forfirstfirst_PART1Rest @@ -5131,7 +5133,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -5145,7 +5147,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(21, 1) Source(3, 1) + SourceIndex(2) @@ -5154,7 +5156,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":490,"kind":"emitHelpers","data":"typescript:rest"},{"pos":491,"end":724,"kind":"text"}],"sources":{"helpers":["typescript:rest"]},"mapHash":"-28759009220-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACbhB,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-9075183781-var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar s = \"Hola, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":198,"kind":"text"}],"mapHash":"34379070423-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;AEbD,iBAAS,CAAC,WAET\"}","hash":"-11409691198-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","4727019029-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}console.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-10583209221-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":490,"kind":"emitHelpers","data":"typescript:rest"},{"pos":491,"end":724,"kind":"text"}],"sources":{"helpers":["typescript:rest"]},"mapHash":"-28759009220-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACbhB,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-9075183781-var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar s = \"Hola, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":198,"kind":"text"}],"mapHash":"34379070423-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;AEbD,iBAAS,CAAC,WAET\"}","hash":"-11409691198-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-23927699866-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hola, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}console.log(s);","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-10583209221-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -5254,9 +5256,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "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; };", - "../first_part1.ts": "4727019029-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}console.log(s);", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-23927699866-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hola, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}console.log(s);", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -5285,7 +5287,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 3819 + "size": 3795 } //// [/src/third/thirdjs/output/third-output.js] @@ -5367,10 +5369,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -5394,12 +5396,12 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -5422,7 +5424,7 @@ sourceFile:../../../first/first_PART1.ts 2 >^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >function 3 > forfirstfirst_PART1Rest @@ -5599,7 +5601,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -5613,7 +5615,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(21, 1) Source(3, 1) + SourceIndex(2) @@ -5629,19 +5631,19 @@ sourceFile:../../../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(22, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(22, 5) Source(5, 11) + SourceIndex(3) @@ -5665,7 +5667,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -5682,7 +5684,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -5704,7 +5706,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(26, 5) Source(8, 5) + SourceIndex(3) @@ -5716,8 +5718,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -5736,19 +5738,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(28, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(28, 2) Source(11, 2) + SourceIndex(3) @@ -5763,7 +5765,7 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >function 3 > forsecondsecond_part1Rest @@ -5879,10 +5881,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(34, 5) Source(5, 1) + SourceIndex(4) @@ -5909,7 +5911,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -5931,7 +5933,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(37, 5) Source(4, 5) + SourceIndex(4) @@ -5940,7 +5942,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(38, 5) Source(5, 1) + SourceIndex(4) @@ -5955,10 +5957,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(39, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(39, 2) Source(5, 2) + SourceIndex(4) @@ -6003,7 +6005,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -6022,7 +6024,7 @@ sourceFile:../../third_part1.ts 2 >^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >function 3 > forthirdthird_part1Rest @@ -6121,7 +6123,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":490,"kind":"emitHelpers","data":"typescript:rest"},{"pos":491,"end":724,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":491,"end":724,"kind":"text"}]},{"pos":724,"end":1110,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":724,"end":1110,"kind":"text"}]},{"pos":1110,"end":1258,"kind":"text"}],"mapHash":"-62137762555-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACbhB,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC\"}","hash":"-33137738309-var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar s = \"Hola, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nfunction forsecondsecond_part1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\nfunction forthirdthird_part1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\n//# sourceMappingURL=third-output.js.map","sources":{"helpers":["typescript:rest"]}},"dts":{"sections":[{"pos":0,"end":198,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":198,"kind":"text"}]},{"pos":198,"end":343,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":198,"end":343,"kind":"text"}]},{"pos":343,"end":411,"kind":"text"}],"mapHash":"13317128515-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;ACbD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC;AAEhB,iBAAS,uBAAuB,SAE/B\"}","hash":"-20993521009-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\ndeclare function forthirdthird_part1Rest(): void;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-10583209221-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n","-7599329529-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\n","-362916705-var c = new C();\r\nc.doSomething();\r\nfunction forthirdthird_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-16204305131-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\ndeclare function forthirdthird_part1Rest(): void;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":490,"kind":"emitHelpers","data":"typescript:rest"},{"pos":491,"end":724,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":491,"end":724,"kind":"text"}]},{"pos":724,"end":1110,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":724,"end":1110,"kind":"text"}]},{"pos":1110,"end":1258,"kind":"text"}],"mapHash":"-62137762555-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACbhB,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC\"}","hash":"-33137738309-var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar s = \"Hola, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nfunction forsecondsecond_part1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\nfunction forthirdthird_part1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\n//# sourceMappingURL=third-output.js.map","sources":{"helpers":["typescript:rest"]}},"dts":{"sections":[{"pos":0,"end":198,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":198,"kind":"text"}]},{"pos":198,"end":343,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":198,"end":343,"kind":"text"}]},{"pos":343,"end":411,"kind":"text"}],"mapHash":"13317128515-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;ACbD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC;AAEhB,iBAAS,uBAAuB,SAE/B\"}","hash":"-20993521009-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\ndeclare function forthirdthird_part1Rest(): void;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-10583209221-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n","-7599329529-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\n","-7656447355-var c = new C();\nc.doSomething();\nfunction forthirdthird_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-16204305131-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\ndeclare function forthirdthird_part1Rest(): void;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -6326,7 +6328,7 @@ declare function forthirdthird_part1Rest(): void; "../../../../lib/lib.d.ts": "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; };", "../../../first/bin/first-output.d.ts": "-10583209221-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "-7599329529-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "-362916705-var c = new C();\r\nc.doSomething();\r\nfunction forthirdthird_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}" + "../../third_part1.ts": "-7656447355-var c = new C();\nc.doSomething();\nfunction forthirdthird_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}" }, "root": [ [ @@ -6349,7 +6351,7 @@ declare function forthirdthird_part1Rest(): void; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 6561 + "size": 6558 } @@ -6357,61 +6359,61 @@ declare function forthirdthird_part1Rest(): void; Change:: incremental-headers-change-without-dts-changes Input:: //// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hola, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hola, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); function forfirstfirst_PART1Rest() { }console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:01:41 AM] Projects in this build: +[12:01:53 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:01:42 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:01:54 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:01:43 AM] Building project '/src/first/tsconfig.json'... +[12:01:55 AM] Building project '/src/first/tsconfig.json'... -[12:01:51 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:02:03 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:52 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:02:04 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:01:53 AM] Updating output of project '/src/third/tsconfig.json'... +[12:02:05 AM] Updating output of project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success readFiles:: { - "/src/third/tsconfig.json": 1, - "/src/first/tsconfig.json": 1, - "/src/second/tsconfig.json": 1, - "/src/first/bin/first-output.tsbuildinfo": 1, - "/src/first/first_PART1.ts": 1, - "/src/first/first_part2.ts": 1, - "/src/first/first_part3.ts": 1, - "/src/2/second-output.tsbuildinfo": 1, - "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, - "/src/third/thirdjs/output/third-output.js": 1, - "/src/third/thirdjs/output/third-output.js.map": 1, - "/src/third/thirdjs/output/third-output.d.ts": 1, - "/src/third/thirdjs/output/third-output.d.ts.map": 1, - "/src/first/bin/first-output.js": 1, - "/src/2/second-output.js": 1, - "/src/first/bin/first-output.js.map": 1, - "/src/2/second-output.js.map": 1, - "/src/first/bin/first-output.d.ts": 1, - "/src/2/second-output.d.ts": 1, - "/src/first/bin/first-output.d.ts.map": 1, - "/src/2/second-output.d.ts.map": 1 + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/2/second-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.js": 1, + "/src/third/thirdjs/output/third-output.js.map": 1, + "/src/third/thirdjs/output/third-output.d.ts": 1, + "/src/third/thirdjs/output/third-output.d.ts.map": 1, + "/src/first/bin/first-output.js": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/first/bin/first-output.d.ts": 1, + "/src/2/second-output.d.ts": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1 } //// [/src/first/bin/first-output.d.ts.map] @@ -6445,7 +6447,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -6460,7 +6462,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -6471,8 +6473,8 @@ sourceFile:../first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -6490,8 +6492,8 @@ sourceFile:../first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -6505,7 +6507,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -6520,7 +6522,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -6529,9 +6531,9 @@ sourceFile:../first_PART1.ts 2 >^^^^^^^^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^ -1-> - > - >console.log(s); +1-> + > + >console.log(s); > 2 >function 3 > forfirstfirst_PART1Rest @@ -6554,8 +6556,8 @@ sourceFile:../first_part3.ts 1 > 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) 2 >Emitted(9, 18) Source(1, 10) + SourceIndex(2) @@ -6596,10 +6598,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -6623,12 +6625,12 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -6652,7 +6654,7 @@ sourceFile:../first_PART1.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^ 5 > ^ -1-> +1-> > 2 >function 3 > forfirstfirst_PART1Rest @@ -6745,7 +6747,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -6759,7 +6761,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(8, 1) Source(3, 1) + SourceIndex(2) @@ -6768,7 +6770,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":158,"kind":"text"}],"mapHash":"-18585329978-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXrD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"32129124571-var s = \"Hola, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() { }\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":198,"kind":"text"}],"mapHash":"34106245240-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;AEXtC,iBAAS,CAAC,WAET\"}","hash":"-11409691198-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-2616863878-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() { }console.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-10583209221-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":158,"kind":"text"}],"mapHash":"-18585329978-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXrD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"32129124571-var s = \"Hola, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() { }\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":198,"kind":"text"}],"mapHash":"34106245240-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;AEXtC,iBAAS,CAAC,WAET\"}","hash":"-11409691198-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-21004847189-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hola, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() { }console.log(s);","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-10583209221-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -6842,9 +6844,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "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; };", - "../first_part1.ts": "-2616863878-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() { }console.log(s);", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-21004847189-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hola, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() { }console.log(s);", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -6873,7 +6875,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2935 + "size": 2910 } //// [/src/third/thirdjs/output/third-output.d.ts.map] @@ -6907,7 +6909,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -6922,7 +6924,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -6933,8 +6935,8 @@ sourceFile:../../../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -6952,8 +6954,8 @@ sourceFile:../../../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -6967,7 +6969,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -6982,7 +6984,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -6991,9 +6993,9 @@ sourceFile:../../../first/first_PART1.ts 2 >^^^^^^^^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^ -1-> - > - >console.log(s); +1-> + > + >console.log(s); > 2 >function 3 > forfirstfirst_PART1Rest @@ -7015,8 +7017,8 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1 >Emitted(9, 1) Source(1, 1) + SourceIndex(1) 2 >Emitted(9, 18) Source(1, 10) + SourceIndex(1) @@ -7044,8 +7046,8 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(11, 2) Source(3, 2) + SourceIndex(2) --- @@ -7054,8 +7056,8 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -7068,12 +7070,12 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(13, 2) Source(11, 2) + SourceIndex(2) --- @@ -7082,7 +7084,7 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^ -1-> +1-> > 2 >function 3 > forsecondsecond_part1Rest @@ -7113,7 +7115,7 @@ sourceFile:../../../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(16, 5) Source(2, 5) + SourceIndex(3) @@ -7122,9 +7124,9 @@ sourceFile:../../../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(17, 2) Source(5, 2) + SourceIndex(3) --- @@ -7158,8 +7160,8 @@ sourceFile:../../third_part1.ts 2 >^^^^^^^^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^ -1-> - >c.doSomething(); +1-> + >c.doSomething(); > 2 >function 3 > forthirdthird_part1Rest @@ -7250,10 +7252,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -7277,12 +7279,12 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -7306,7 +7308,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^ 5 > ^ -1-> +1-> > 2 >function 3 > forfirstfirst_PART1Rest @@ -7399,7 +7401,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -7413,7 +7415,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(19, 1) Source(3, 1) + SourceIndex(2) @@ -7429,19 +7431,19 @@ sourceFile:../../../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(20, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(20, 5) Source(5, 11) + SourceIndex(3) @@ -7465,7 +7467,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -7482,7 +7484,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -7504,7 +7506,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(24, 5) Source(8, 5) + SourceIndex(3) @@ -7516,8 +7518,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -7536,19 +7538,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(26, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(26, 2) Source(11, 2) + SourceIndex(3) @@ -7563,7 +7565,7 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >function 3 > forsecondsecond_part1Rest @@ -7679,10 +7681,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(32, 5) Source(5, 1) + SourceIndex(4) @@ -7709,7 +7711,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -7731,7 +7733,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(35, 5) Source(4, 5) + SourceIndex(4) @@ -7740,7 +7742,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(36, 5) Source(5, 1) + SourceIndex(4) @@ -7755,10 +7757,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(37, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(37, 2) Source(5, 2) + SourceIndex(4) @@ -7803,7 +7805,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -7822,7 +7824,7 @@ sourceFile:../../third_part1.ts 2 >^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >function 3 > forthirdthird_part1Rest @@ -7921,7 +7923,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":490,"kind":"emitHelpers","data":"typescript:rest"},{"pos":491,"end":649,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":491,"end":649,"kind":"text"}]},{"pos":649,"end":1035,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":649,"end":1035,"kind":"text"}]},{"pos":1035,"end":1183,"kind":"text"}],"mapHash":"-23181551528-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXrD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC\"}","hash":"-21852742349-var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar s = \"Hola, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() { }\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nfunction forsecondsecond_part1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\nfunction forthirdthird_part1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\n//# sourceMappingURL=third-output.js.map","sources":{"helpers":["typescript:rest"]}},"dts":{"sections":[{"pos":0,"end":198,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":198,"kind":"text"}]},{"pos":198,"end":343,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":198,"end":343,"kind":"text"}]},{"pos":343,"end":411,"kind":"text"}],"mapHash":"-7466973756-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;ACXtC,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC;AAEhB,iBAAS,uBAAuB,SAE/B\"}","hash":"-20993521009-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\ndeclare function forthirdthird_part1Rest(): void;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-10583209221-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n","-7599329529-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\n","-362916705-var c = new C();\r\nc.doSomething();\r\nfunction forthirdthird_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-16204305131-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\ndeclare function forthirdthird_part1Rest(): void;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":490,"kind":"emitHelpers","data":"typescript:rest"},{"pos":491,"end":649,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":491,"end":649,"kind":"text"}]},{"pos":649,"end":1035,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":649,"end":1035,"kind":"text"}]},{"pos":1035,"end":1183,"kind":"text"}],"mapHash":"-23181551528-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXrD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC\"}","hash":"-21852742349-var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar s = \"Hola, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() { }\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nfunction forsecondsecond_part1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\nfunction forthirdthird_part1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\n//# sourceMappingURL=third-output.js.map","sources":{"helpers":["typescript:rest"]}},"dts":{"sections":[{"pos":0,"end":198,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":198,"kind":"text"}]},{"pos":198,"end":343,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":198,"end":343,"kind":"text"}]},{"pos":343,"end":411,"kind":"text"}],"mapHash":"-7466973756-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;ACXtC,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC;AAEhB,iBAAS,uBAAuB,SAE/B\"}","hash":"-20993521009-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\ndeclare function forthirdthird_part1Rest(): void;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-10583209221-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n","-7599329529-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\n","-7656447355-var c = new C();\nc.doSomething();\nfunction forthirdthird_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-16204305131-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\ndeclare function forthirdthird_part1Rest(): void;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -8124,7 +8126,7 @@ declare function forthirdthird_part1Rest(): void; "../../../../lib/lib.d.ts": "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; };", "../../../first/bin/first-output.d.ts": "-10583209221-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "-7599329529-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "-362916705-var c = new C();\r\nc.doSomething();\r\nfunction forthirdthird_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}" + "../../third_part1.ts": "-7656447355-var c = new C();\nc.doSomething();\nfunction forthirdthird_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}" }, "root": [ [ @@ -8147,6 +8149,6 @@ declare function forthirdthird_part1Rest(): void; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 6352 + "size": 6349 } diff --git a/tests/baselines/reference/tsbuild/outfile-concat/emitHelpers-in-only-one-dependency-project.js b/tests/baselines/reference/tsbuild/outfile-concat/emitHelpers-in-only-one-dependency-project.js index 15a3b17d3de8c..541d19453d4cb 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/emitHelpers-in-only-one-dependency-project.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/emitHelpers-in-only-one-dependency-project.js @@ -16,142 +16,144 @@ interface ReadonlyArray {} declare const console: { log(msg: any): void; }; //// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); function forfirstfirst_PART1Rest() { } //// [/src/first/first_part2.ts] -console.log(f()); +console.log(f()); //// [/src/first/first_part3.ts] -function f() { - return "JS does hoists"; -} +function f() { + return "JS does hoists"; +} + //// [/src/first/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "outFile": "./bin/first-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "first_PART1.ts", - "first_part2.ts", - "first_part3.ts" - ], - "references": [ - ] +{ + "compilerOptions": { + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "outFile": "./bin/first-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "first_PART1.ts", + "first_part2.ts", + "first_part3.ts" + ], + "references": [] } - //// [/src/second/second_part1.ts] -namespace N { - // Comment text -} - -namespace N { - function f() { - console.log('testing'); - } - - f(); -} +namespace N { + // Comment text +} + +namespace N { + function f() { + console.log('testing'); + } + + f(); +} function forsecondsecond_part1Rest() { const { b, ...rest } = { a: 10, b: 30, yy: 30 }; } //// [/src/second/second_part2.ts] -class C { - doSomething() { - console.log("something got done"); - } -} +class C { + doSomething() { + console.log("something got done"); + } +} //// [/src/second/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "../2/second-output.js", - "skipDefaultLibCheck": true - }, - "references": [ - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "../2/second-output.js", + "skipDefaultLibCheck": true + }, + "references": [] } - //// [/src/third/third_part1.ts] -var c = new C(); -c.doSomething(); +var c = new C(); +c.doSomething(); //// [/src/third/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "./thirdjs/output/third-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "third_part1.ts" - ], - "references": [ - { "path": "../first", "prepend": true }, - { "path": "../second", "prepend": true }, - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "./thirdjs/output/third-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "third_part1.ts" + ], + "references": [ + { + "path": "../first", + "prepend": true + }, + { + "path": "../second", + "prepend": true + } + ] } - Output:: /lib/tsc --b /src/third --verbose -[12:00:08 AM] Projects in this build: +[12:00:20 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:09 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist +[12:00:21 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist -[12:00:10 AM] Building project '/src/first/tsconfig.json'... +[12:00:22 AM] Building project '/src/first/tsconfig.json'... -[12:00:20 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist +[12:00:32 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist -[12:00:21 AM] Building project '/src/second/tsconfig.json'... +[12:00:33 AM] Building project '/src/second/tsconfig.json'... -[12:00:31 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist +[12:00:43 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist -[12:00:32 AM] Building project '/src/third/tsconfig.json'... +[12:00:44 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -198,8 +200,8 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(2, 2) Source(3, 2) + SourceIndex(0) --- @@ -208,8 +210,8 @@ sourceFile:../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -222,12 +224,12 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(4, 2) Source(11, 2) + SourceIndex(0) --- @@ -236,7 +238,7 @@ sourceFile:../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^ -1-> +1-> > 2 >function 3 > forsecondsecond_part1Rest @@ -267,7 +269,7 @@ sourceFile:../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(7, 5) Source(2, 5) + SourceIndex(1) @@ -276,9 +278,9 @@ sourceFile:../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(8, 2) Source(5, 2) + SourceIndex(1) --- @@ -347,19 +349,19 @@ sourceFile:../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1 >namespace N { - > // Comment text - >} - > +1 >namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1 >Emitted(12, 1) Source(5, 1) + SourceIndex(0) 2 >Emitted(12, 5) Source(5, 11) + SourceIndex(0) @@ -383,7 +385,7 @@ sourceFile:../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -400,7 +402,7 @@ sourceFile:../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -422,7 +424,7 @@ sourceFile:../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(16, 5) Source(8, 5) + SourceIndex(0) @@ -434,8 +436,8 @@ sourceFile:../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -454,19 +456,19 @@ sourceFile:../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(18, 1) Source(11, 1) + SourceIndex(0) 2 >Emitted(18, 2) Source(11, 2) + SourceIndex(0) @@ -481,7 +483,7 @@ sourceFile:../second/second_part1.ts 2 >^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >function 3 > forsecondsecond_part1Rest @@ -597,10 +599,10 @@ sourceFile:../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(24, 5) Source(5, 1) + SourceIndex(1) @@ -627,7 +629,7 @@ sourceFile:../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -649,7 +651,7 @@ sourceFile:../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(27, 5) Source(4, 5) + SourceIndex(1) @@ -658,7 +660,7 @@ sourceFile:../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(28, 5) Source(5, 1) + SourceIndex(1) @@ -673,10 +675,10 @@ sourceFile:../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(29, 1) Source(5, 1) + SourceIndex(1) 2 >Emitted(29, 2) Source(5, 2) + SourceIndex(1) @@ -686,7 +688,7 @@ sourceFile:../second/second_part2.ts >>>//# sourceMappingURL=second-output.js.map //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":490,"kind":"emitHelpers","data":"typescript:rest"},{"pos":491,"end":877,"kind":"text"}],"sources":{"helpers":["typescript:rest"]},"mapHash":"-21017865726-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"4271271922-var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nfunction forsecondsecond_part1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":145,"kind":"text"}],"mapHash":"-13719015667-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"2818433922-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["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; };","-12564528434-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\nfunction forsecondsecond_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-7599329529-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":490,"kind":"emitHelpers","data":"typescript:rest"},{"pos":491,"end":877,"kind":"text"}],"sources":{"helpers":["typescript:rest"]},"mapHash":"-21017865726-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"4271271922-var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nfunction forsecondsecond_part1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":145,"kind":"text"}],"mapHash":"-13719015667-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"2818433922-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["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; };","-13362958657-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\nfunction forsecondsecond_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}","3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-7599329529-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -791,8 +793,8 @@ declare class C { ], "fileInfos": { "../../lib/lib.d.ts": "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; };", - "../second/second_part1.ts": "-12564528434-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\nfunction forsecondsecond_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}", - "../second/second_part2.ts": "9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n" + "../second/second_part1.ts": "-13362958657-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\nfunction forsecondsecond_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}", + "../second/second_part2.ts": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n" }, "root": [ [ @@ -819,7 +821,7 @@ declare class C { "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 3862 + "size": 3830 } //// [/src/first/bin/first-output.d.ts] @@ -865,7 +867,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -880,7 +882,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -891,8 +893,8 @@ sourceFile:../first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -910,8 +912,8 @@ sourceFile:../first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -925,7 +927,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -940,7 +942,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -949,9 +951,9 @@ sourceFile:../first_PART1.ts 2 >^^^^^^^^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^ -1-> - > - >console.log(s); +1-> + > + >console.log(s); > 2 >function 3 > forfirstfirst_PART1Rest @@ -974,8 +976,8 @@ sourceFile:../first_part3.ts 1 > 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) 2 >Emitted(9, 18) Source(1, 10) + SourceIndex(2) @@ -1015,10 +1017,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -1042,12 +1044,12 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -1071,7 +1073,7 @@ sourceFile:../first_PART1.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^ 5 > ^ -1-> +1-> > 2 >function 3 > forfirstfirst_PART1Rest @@ -1137,7 +1139,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -1151,7 +1153,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) @@ -1160,7 +1162,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":143,"kind":"text"}],"mapHash":"-25671855582-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;ACXtC,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"35664745151-var s = \"Hello, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() { }\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":199,"kind":"text"}],"mapHash":"22270452542-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;AEXtC,iBAAS,CAAC,WAET\"}","hash":"-9615756366-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-4194720312-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() { }","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-14427003669-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":143,"kind":"text"}],"mapHash":"-25671855582-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;ACXtC,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"35664745151-var s = \"Hello, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() { }\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":199,"kind":"text"}],"mapHash":"22270452542-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;AEXtC,iBAAS,CAAC,WAET\"}","hash":"-9615756366-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-20224132711-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() { }","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-14427003669-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -1233,9 +1235,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "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; };", - "../first_part1.ts": "-4194720312-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() { }", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-20224132711-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() { }", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -1264,7 +1266,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2866 + "size": 2841 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -1319,7 +1321,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -1334,7 +1336,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -1345,8 +1347,8 @@ sourceFile:../../../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -1364,8 +1366,8 @@ sourceFile:../../../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -1379,7 +1381,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -1394,7 +1396,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -1403,9 +1405,9 @@ sourceFile:../../../first/first_PART1.ts 2 >^^^^^^^^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^ -1-> - > - >console.log(s); +1-> + > + >console.log(s); > 2 >function 3 > forfirstfirst_PART1Rest @@ -1427,8 +1429,8 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1 >Emitted(9, 1) Source(1, 1) + SourceIndex(1) 2 >Emitted(9, 18) Source(1, 10) + SourceIndex(1) @@ -1456,8 +1458,8 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(11, 2) Source(3, 2) + SourceIndex(2) --- @@ -1466,8 +1468,8 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -1480,12 +1482,12 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(13, 2) Source(11, 2) + SourceIndex(2) --- @@ -1494,7 +1496,7 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^ -1-> +1-> > 2 >function 3 > forsecondsecond_part1Rest @@ -1525,7 +1527,7 @@ sourceFile:../../../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(16, 5) Source(2, 5) + SourceIndex(3) @@ -1534,9 +1536,9 @@ sourceFile:../../../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(17, 2) Source(5, 2) + SourceIndex(3) --- @@ -1640,10 +1642,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -1667,12 +1669,12 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -1696,7 +1698,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^ 5 > ^ -1-> +1-> > 2 >function 3 > forfirstfirst_PART1Rest @@ -1762,7 +1764,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -1776,7 +1778,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(18, 1) Source(3, 1) + SourceIndex(2) @@ -1792,19 +1794,19 @@ sourceFile:../../../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(19, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(19, 5) Source(5, 11) + SourceIndex(3) @@ -1828,7 +1830,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -1845,7 +1847,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -1867,7 +1869,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(23, 5) Source(8, 5) + SourceIndex(3) @@ -1879,8 +1881,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -1899,19 +1901,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(25, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(25, 2) Source(11, 2) + SourceIndex(3) @@ -1926,7 +1928,7 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >function 3 > forsecondsecond_part1Rest @@ -2042,10 +2044,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(31, 5) Source(5, 1) + SourceIndex(4) @@ -2072,7 +2074,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -2094,7 +2096,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(34, 5) Source(4, 5) + SourceIndex(4) @@ -2103,7 +2105,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(35, 5) Source(5, 1) + SourceIndex(4) @@ -2118,10 +2120,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(36, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(36, 2) Source(5, 2) + SourceIndex(4) @@ -2166,7 +2168,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -2183,7 +2185,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":490,"kind":"emitHelpers","data":"typescript:rest"},{"pos":491,"end":634,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":491,"end":634,"kind":"text"}]},{"pos":634,"end":1020,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":634,"end":1020,"kind":"text"}]},{"pos":1020,"end":1054,"kind":"text"}],"mapHash":"-21009818477-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;ACXtC,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-18683061932-var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar s = \"Hello, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() { }\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nfunction forsecondsecond_part1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":199,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":199,"kind":"text"}]},{"pos":199,"end":344,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":199,"end":344,"kind":"text"}]},{"pos":344,"end":362,"kind":"text"}],"mapHash":"5301495744-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;ACXtC,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-13745226587-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-14427003669-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n","-7599329529-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-27499850837-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":490,"kind":"emitHelpers","data":"typescript:rest"},{"pos":491,"end":634,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":491,"end":634,"kind":"text"}]},{"pos":634,"end":1020,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":634,"end":1020,"kind":"text"}]},{"pos":1020,"end":1054,"kind":"text"}],"mapHash":"-21009818477-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;ACXtC,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-18683061932-var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar s = \"Hello, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() { }\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nfunction forsecondsecond_part1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":199,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":199,"kind":"text"}]},{"pos":199,"end":344,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":199,"end":344,"kind":"text"}]},{"pos":344,"end":362,"kind":"text"}],"mapHash":"5301495744-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;ACXtC,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-13745226587-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-14427003669-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n","-7599329529-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-27499850837-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -2376,7 +2378,7 @@ declare var c: C; "../../../../lib/lib.d.ts": "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; };", "../../../first/bin/first-output.d.ts": "-14427003669-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "-7599329529-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -2399,7 +2401,7 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 5764 + "size": 5759 } @@ -2407,37 +2409,37 @@ declare var c: C; Change:: incremental-declaration-doesnt-change Input:: //// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); function forfirstfirst_PART1Rest() { }console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:00:50 AM] Projects in this build: +[12:01:02 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:51 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:01:03 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:00:52 AM] Building project '/src/first/tsconfig.json'... +[12:01:04 AM] Building project '/src/first/tsconfig.json'... -[12:01:00 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:01:12 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:01 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:01:13 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:01:02 AM] Updating output of project '/src/third/tsconfig.json'... +[12:01:14 AM] Updating output of project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -2476,10 +2478,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -2503,12 +2505,12 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -2532,7 +2534,7 @@ sourceFile:../first_PART1.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^ 5 > ^ -1-> +1-> > 2 >function 3 > forfirstfirst_PART1Rest @@ -2625,7 +2627,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -2639,7 +2641,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(8, 1) Source(3, 1) + SourceIndex(2) @@ -2648,7 +2650,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":159,"kind":"text"}],"mapHash":"-28547337588-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXrD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-4649037461-var s = \"Hello, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() { }\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":199,"kind":"text"}],"mapHash":"22270452542-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;AEXtC,iBAAS,CAAC,WAET\"}","hash":"-9615756366-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","1776071466-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() { }console.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-14427003669-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":159,"kind":"text"}],"mapHash":"-28547337588-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXrD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-4649037461-var s = \"Hello, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() { }\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":199,"kind":"text"}],"mapHash":"22270452542-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;AEXtC,iBAAS,CAAC,WAET\"}","hash":"-9615756366-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-20328557861-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() { }console.log(s);","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-14427003669-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -2722,9 +2724,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "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; };", - "../first_part1.ts": "1776071466-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() { }console.log(s);", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-20328557861-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() { }console.log(s);", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -2753,7 +2755,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2937 + "size": 2913 } //// [/src/third/thirdjs/output/third-output.js] @@ -2830,10 +2832,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -2857,12 +2859,12 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -2886,7 +2888,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^ 5 > ^ -1-> +1-> > 2 >function 3 > forfirstfirst_PART1Rest @@ -2979,7 +2981,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -2993,7 +2995,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(19, 1) Source(3, 1) + SourceIndex(2) @@ -3009,19 +3011,19 @@ sourceFile:../../../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(20, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(20, 5) Source(5, 11) + SourceIndex(3) @@ -3045,7 +3047,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -3062,7 +3064,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -3084,7 +3086,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(24, 5) Source(8, 5) + SourceIndex(3) @@ -3096,8 +3098,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -3116,19 +3118,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(26, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(26, 2) Source(11, 2) + SourceIndex(3) @@ -3143,7 +3145,7 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >function 3 > forsecondsecond_part1Rest @@ -3259,10 +3261,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(32, 5) Source(5, 1) + SourceIndex(4) @@ -3289,7 +3291,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -3311,7 +3313,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(35, 5) Source(4, 5) + SourceIndex(4) @@ -3320,7 +3322,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(36, 5) Source(5, 1) + SourceIndex(4) @@ -3335,10 +3337,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(37, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(37, 2) Source(5, 2) + SourceIndex(4) @@ -3383,7 +3385,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -3400,7 +3402,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":490,"kind":"emitHelpers","data":"typescript:rest"},{"pos":491,"end":650,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":491,"end":650,"kind":"text"}]},{"pos":650,"end":1036,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":650,"end":1036,"kind":"text"}]},{"pos":1036,"end":1070,"kind":"text"}],"mapHash":"36423822013-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXrD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"4701679104-var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar s = \"Hello, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() { }\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nfunction forsecondsecond_part1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":199,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":199,"kind":"text"}]},{"pos":199,"end":344,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":199,"end":344,"kind":"text"}]},{"pos":344,"end":362,"kind":"text"}],"mapHash":"5301495744-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;ACXtC,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-13745226587-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-14427003669-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n","-7599329529-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-27499850837-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":490,"kind":"emitHelpers","data":"typescript:rest"},{"pos":491,"end":650,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":491,"end":650,"kind":"text"}]},{"pos":650,"end":1036,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":650,"end":1036,"kind":"text"}]},{"pos":1036,"end":1070,"kind":"text"}],"mapHash":"36423822013-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXrD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"4701679104-var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar s = \"Hello, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() { }\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nfunction forsecondsecond_part1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":199,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":199,"kind":"text"}]},{"pos":199,"end":344,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":199,"end":344,"kind":"text"}]},{"pos":344,"end":362,"kind":"text"}],"mapHash":"5301495744-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;ACXtC,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-13745226587-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-14427003669-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n","-7599329529-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-27499850837-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -3594,7 +3596,7 @@ declare var c: C; "../../../../lib/lib.d.ts": "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; };", "../../../first/bin/first-output.d.ts": "-14427003669-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "-7599329529-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -3617,7 +3619,7 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 5818 + "size": 5813 } @@ -3625,17 +3627,17 @@ declare var c: C; Change:: incremental-headers-change-without-dts-changes Input:: //// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); function forfirstfirst_PART1Rest() { const { b, ...rest } = { a: 10, b: 30, yy: 30 }; }console.log(s); @@ -3644,20 +3646,20 @@ const { b, ...rest } = { a: 10, b: 30, yy: 30 }; Output:: /lib/tsc --b /src/third --verbose -[12:01:13 AM] Projects in this build: +[12:01:25 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:01:14 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:01:26 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:01:15 AM] Building project '/src/first/tsconfig.json'... +[12:01:27 AM] Building project '/src/first/tsconfig.json'... -[12:01:23 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:01:35 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:24 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:01:36 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:01:25 AM] Updating output of project '/src/third/tsconfig.json'... +[12:01:37 AM] Updating output of project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -3693,7 +3695,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -3708,7 +3710,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -3719,8 +3721,8 @@ sourceFile:../first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -3738,8 +3740,8 @@ sourceFile:../first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -3753,7 +3755,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -3768,7 +3770,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -3777,9 +3779,9 @@ sourceFile:../first_PART1.ts 2 >^^^^^^^^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^ -1-> - > - >console.log(s); +1-> + > + >console.log(s); > 2 >function 3 > forfirstfirst_PART1Rest @@ -3804,8 +3806,8 @@ sourceFile:../first_part3.ts 1 > 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) 2 >Emitted(9, 18) Source(1, 10) + SourceIndex(2) @@ -3870,10 +3872,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -3897,12 +3899,12 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -3925,7 +3927,7 @@ sourceFile:../first_PART1.ts 2 >^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >function 3 > forfirstfirst_PART1Rest @@ -4102,7 +4104,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -4116,7 +4118,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(21, 1) Source(3, 1) + SourceIndex(2) @@ -4125,7 +4127,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":490,"kind":"emitHelpers","data":"typescript:rest"},{"pos":491,"end":725,"kind":"text"}],"sources":{"helpers":["typescript:rest"]},"mapHash":"-28162747006-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACbhB,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-23489700629-var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar s = \"Hello, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":199,"kind":"text"}],"mapHash":"22543277725-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;AEbD,iBAAS,CAAC,WAET\"}","hash":"-9615756366-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-5382108219-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}console.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-14427003669-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":490,"kind":"emitHelpers","data":"typescript:rest"},{"pos":491,"end":725,"kind":"text"}],"sources":{"helpers":["typescript:rest"]},"mapHash":"-28162747006-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACbhB,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-23489700629-var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar s = \"Hello, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":199,"kind":"text"}],"mapHash":"22543277725-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;AEbD,iBAAS,CAAC,WAET\"}","hash":"-9615756366-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-25115744362-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}console.log(s);","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-14427003669-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -4225,9 +4227,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "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; };", - "../first_part1.ts": "-5382108219-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}console.log(s);", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-25115744362-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}console.log(s);", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -4256,7 +4258,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 3824 + "size": 3799 } //// [/src/third/thirdjs/output/third-output.d.ts.map] @@ -4290,7 +4292,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -4305,7 +4307,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -4316,8 +4318,8 @@ sourceFile:../../../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -4335,8 +4337,8 @@ sourceFile:../../../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -4350,7 +4352,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -4365,7 +4367,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -4374,9 +4376,9 @@ sourceFile:../../../first/first_PART1.ts 2 >^^^^^^^^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^ -1-> - > - >console.log(s); +1-> + > + >console.log(s); > 2 >function 3 > forfirstfirst_PART1Rest @@ -4400,8 +4402,8 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1 >Emitted(9, 1) Source(1, 1) + SourceIndex(1) 2 >Emitted(9, 18) Source(1, 10) + SourceIndex(1) @@ -4429,8 +4431,8 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(11, 2) Source(3, 2) + SourceIndex(2) --- @@ -4439,8 +4441,8 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -4453,12 +4455,12 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(13, 2) Source(11, 2) + SourceIndex(2) --- @@ -4467,7 +4469,7 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^ -1-> +1-> > 2 >function 3 > forsecondsecond_part1Rest @@ -4498,7 +4500,7 @@ sourceFile:../../../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(16, 5) Source(2, 5) + SourceIndex(3) @@ -4507,9 +4509,9 @@ sourceFile:../../../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(17, 2) Source(5, 2) + SourceIndex(3) --- @@ -4616,10 +4618,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -4643,12 +4645,12 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -4671,7 +4673,7 @@ sourceFile:../../../first/first_PART1.ts 2 >^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >function 3 > forfirstfirst_PART1Rest @@ -4848,7 +4850,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -4862,7 +4864,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(21, 1) Source(3, 1) + SourceIndex(2) @@ -4878,19 +4880,19 @@ sourceFile:../../../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(22, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(22, 5) Source(5, 11) + SourceIndex(3) @@ -4914,7 +4916,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -4931,7 +4933,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -4953,7 +4955,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(26, 5) Source(8, 5) + SourceIndex(3) @@ -4965,8 +4967,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -4985,19 +4987,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(28, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(28, 2) Source(11, 2) + SourceIndex(3) @@ -5012,7 +5014,7 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >function 3 > forsecondsecond_part1Rest @@ -5128,10 +5130,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(34, 5) Source(5, 1) + SourceIndex(4) @@ -5158,7 +5160,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -5180,7 +5182,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(37, 5) Source(4, 5) + SourceIndex(4) @@ -5189,7 +5191,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(38, 5) Source(5, 1) + SourceIndex(4) @@ -5204,10 +5206,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(39, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(39, 2) Source(5, 2) + SourceIndex(4) @@ -5252,7 +5254,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -5269,7 +5271,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":490,"kind":"emitHelpers","data":"typescript:rest"},{"pos":491,"end":725,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":491,"end":725,"kind":"text"}]},{"pos":725,"end":1111,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":725,"end":1111,"kind":"text"}]},{"pos":1111,"end":1145,"kind":"text"}],"mapHash":"13211411498-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACbhB,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-24206507384-var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar s = \"Hello, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nfunction forsecondsecond_part1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":199,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":199,"kind":"text"}]},{"pos":199,"end":344,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":199,"end":344,"kind":"text"}]},{"pos":344,"end":362,"kind":"text"}],"mapHash":"51589947999-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;ACbD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-13745226587-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-14427003669-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n","-7599329529-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-27499850837-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":490,"kind":"emitHelpers","data":"typescript:rest"},{"pos":491,"end":725,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":491,"end":725,"kind":"text"}]},{"pos":725,"end":1111,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":725,"end":1111,"kind":"text"}]},{"pos":1111,"end":1145,"kind":"text"}],"mapHash":"13211411498-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACbhB,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-24206507384-var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar s = \"Hello, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nfunction forsecondsecond_part1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":199,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":199,"kind":"text"}]},{"pos":199,"end":344,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":199,"end":344,"kind":"text"}]},{"pos":344,"end":362,"kind":"text"}],"mapHash":"51589947999-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;ACbD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-13745226587-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-14427003669-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n","-7599329529-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-27499850837-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -5465,7 +5467,7 @@ declare var c: C; "../../../../lib/lib.d.ts": "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; };", "../../../first/bin/first-output.d.ts": "-14427003669-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "-7599329529-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -5488,6 +5490,6 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 6030 + "size": 6025 } diff --git a/tests/baselines/reference/tsbuild/outfile-concat/explainFiles.js b/tests/baselines/reference/tsbuild/outfile-concat/explainFiles.js index d205ccb847682..366a4850a280d 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/explainFiles.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/explainFiles.js @@ -16,132 +16,134 @@ interface ReadonlyArray {} declare const console: { log(msg: any): void; }; //// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); //// [/src/first/first_part2.ts] -console.log(f()); +console.log(f()); //// [/src/first/first_part3.ts] -function f() { - return "JS does hoists"; -} +function f() { + return "JS does hoists"; +} + //// [/src/first/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "outFile": "./bin/first-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "first_PART1.ts", - "first_part2.ts", - "first_part3.ts" - ], - "references": [ - ] +{ + "compilerOptions": { + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "outFile": "./bin/first-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "first_PART1.ts", + "first_part2.ts", + "first_part3.ts" + ], + "references": [] } - //// [/src/second/second_part1.ts] -namespace N { - // Comment text -} - -namespace N { - function f() { - console.log('testing'); - } - - f(); -} +namespace N { + // Comment text +} + +namespace N { + function f() { + console.log('testing'); + } + + f(); +} //// [/src/second/second_part2.ts] -class C { - doSomething() { - console.log("something got done"); - } -} +class C { + doSomething() { + console.log("something got done"); + } +} //// [/src/second/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "../2/second-output.js", - "skipDefaultLibCheck": true - }, - "references": [ - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "../2/second-output.js", + "skipDefaultLibCheck": true + }, + "references": [] } - //// [/src/third/third_part1.ts] -var c = new C(); -c.doSomething(); +var c = new C(); +c.doSomething(); //// [/src/third/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "./thirdjs/output/third-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "third_part1.ts" - ], - "references": [ - { "path": "../first", "prepend": true }, - { "path": "../second", "prepend": true }, - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "./thirdjs/output/third-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "third_part1.ts" + ], + "references": [ + { + "path": "../first", + "prepend": true + }, + { + "path": "../second", + "prepend": true + } + ] } - Output:: /lib/tsc --b /src/third --verbose --explainFiles -[12:00:06 AM] Projects in this build: +[12:00:18 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:07 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist +[12:00:19 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist -[12:00:08 AM] Building project '/src/first/tsconfig.json'... +[12:00:20 AM] Building project '/src/first/tsconfig.json'... lib/lib.d.ts Default library for target 'es5' @@ -151,9 +153,9 @@ src/first/first_part2.ts Part of 'files' list in tsconfig.json src/first/first_part3.ts Part of 'files' list in tsconfig.json -[12:00:18 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist +[12:00:30 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist -[12:00:19 AM] Building project '/src/second/tsconfig.json'... +[12:00:31 AM] Building project '/src/second/tsconfig.json'... lib/lib.d.ts Default library for target 'es5' @@ -161,9 +163,9 @@ src/second/second_part1.ts Matched by default include pattern '**/*' src/second/second_part2.ts Matched by default include pattern '**/*' -[12:00:29 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist +[12:00:41 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist -[12:00:30 AM] Building project '/src/third/tsconfig.json'... +[12:00:42 AM] Building project '/src/third/tsconfig.json'... lib/lib.d.ts Default library for target 'es5' @@ -217,8 +219,8 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(2, 2) Source(3, 2) + SourceIndex(0) --- @@ -227,8 +229,8 @@ sourceFile:../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -241,12 +243,12 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(4, 2) Source(11, 2) + SourceIndex(0) --- @@ -269,7 +271,7 @@ sourceFile:../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(6, 5) Source(2, 5) + SourceIndex(1) @@ -278,9 +280,9 @@ sourceFile:../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(7, 2) Source(5, 2) + SourceIndex(1) --- @@ -324,19 +326,19 @@ sourceFile:../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1 >namespace N { - > // Comment text - >} - > +1 >namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) 2 >Emitted(1, 5) Source(5, 11) + SourceIndex(0) @@ -360,7 +362,7 @@ sourceFile:../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -377,7 +379,7 @@ sourceFile:../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -399,7 +401,7 @@ sourceFile:../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(5, 5) Source(8, 5) + SourceIndex(0) @@ -411,8 +413,8 @@ sourceFile:../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -431,19 +433,19 @@ sourceFile:../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(7, 1) Source(11, 1) + SourceIndex(0) 2 >Emitted(7, 2) Source(11, 2) + SourceIndex(0) @@ -473,10 +475,10 @@ sourceFile:../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(10, 5) Source(5, 1) + SourceIndex(1) @@ -503,7 +505,7 @@ sourceFile:../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -525,7 +527,7 @@ sourceFile:../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(13, 5) Source(4, 5) + SourceIndex(1) @@ -534,7 +536,7 @@ sourceFile:../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(14, 5) Source(5, 1) + SourceIndex(1) @@ -549,10 +551,10 @@ sourceFile:../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(15, 1) Source(5, 1) + SourceIndex(1) 2 >Emitted(15, 2) Source(5, 2) + SourceIndex(1) @@ -562,7 +564,7 @@ sourceFile:../second/second_part2.ts >>>//# sourceMappingURL=second-output.js.map //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":270,"kind":"text"}],"mapHash":"9890117190-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-2912899787-var N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":93,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-16005591226-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["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; };","-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":270,"kind":"text"}],"mapHash":"9890117190-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-2912899787-var N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":93,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-16005591226-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["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; };","-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n","3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -639,8 +641,8 @@ declare class C { ], "fileInfos": { "../../lib/lib.d.ts": "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; };", - "../second/second_part1.ts": "-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n", - "../second/second_part2.ts": "9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n" + "../second/second_part1.ts": "-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", + "../second/second_part2.ts": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n" }, "root": [ [ @@ -667,7 +669,7 @@ declare class C { "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 2736 + "size": 2704 } //// [/src/first/bin/first-output.d.ts] @@ -712,7 +714,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -727,7 +729,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -738,8 +740,8 @@ sourceFile:../first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -757,8 +759,8 @@ sourceFile:../first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -772,7 +774,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -787,7 +789,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -804,8 +806,8 @@ sourceFile:../first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) @@ -844,10 +846,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -871,12 +873,12 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -948,7 +950,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -962,7 +964,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) @@ -971,7 +973,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"4999315210-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"4999315210-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -1042,9 +1044,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "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; };", - "../first_part1.ts": "-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -1073,7 +1075,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2635 + "size": 2609 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -1126,7 +1128,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -1141,7 +1143,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -1152,8 +1154,8 @@ sourceFile:../../../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -1171,8 +1173,8 @@ sourceFile:../../../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -1186,7 +1188,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -1201,7 +1203,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -1217,8 +1219,8 @@ sourceFile:../../../first/first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) @@ -1246,8 +1248,8 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) --- @@ -1256,8 +1258,8 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -1270,12 +1272,12 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) --- @@ -1298,7 +1300,7 @@ sourceFile:../../../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(14, 5) Source(2, 5) + SourceIndex(3) @@ -1307,9 +1309,9 @@ sourceFile:../../../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(15, 2) Source(5, 2) + SourceIndex(3) --- @@ -1387,10 +1389,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -1414,12 +1416,12 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -1491,7 +1493,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -1505,7 +1507,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) @@ -1521,19 +1523,19 @@ sourceFile:../../../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(7, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(7, 5) Source(5, 11) + SourceIndex(3) @@ -1557,7 +1559,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -1574,7 +1576,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -1596,7 +1598,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(11, 5) Source(8, 5) + SourceIndex(3) @@ -1608,8 +1610,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -1628,19 +1630,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(13, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(13, 2) Source(11, 2) + SourceIndex(3) @@ -1670,10 +1672,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(16, 5) Source(5, 1) + SourceIndex(4) @@ -1700,7 +1702,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -1722,7 +1724,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(19, 5) Source(4, 5) + SourceIndex(4) @@ -1731,7 +1733,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(20, 5) Source(5, 1) + SourceIndex(4) @@ -1746,10 +1748,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(21, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(21, 2) Source(5, 2) + SourceIndex(4) @@ -1794,7 +1796,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -1811,7 +1813,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":104,"kind":"text"}]},{"pos":104,"end":374,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":104,"end":374,"kind":"text"}]},{"pos":374,"end":408,"kind":"text"}],"mapHash":"59293632534-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"24400447170-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":149,"kind":"text"}]},{"pos":149,"end":242,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":149,"end":242,"kind":"text"}]},{"pos":242,"end":260,"kind":"text"}],"mapHash":"-10250552873-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"406139541-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2893455973-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":104,"kind":"text"}]},{"pos":104,"end":374,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":104,"end":374,"kind":"text"}]},{"pos":374,"end":408,"kind":"text"}],"mapHash":"59293632534-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"24400447170-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":149,"kind":"text"}]},{"pos":149,"end":242,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":149,"end":242,"kind":"text"}]},{"pos":242,"end":260,"kind":"text"}],"mapHash":"-10250552873-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"406139541-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2893455973-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -1979,7 +1981,7 @@ declare var c: C; "../../../../lib/lib.d.ts": "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; };", "../../../first/bin/first-output.d.ts": "-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -2002,7 +2004,7 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 4465 + "size": 4460 } @@ -2010,31 +2012,31 @@ declare var c: C; Change:: incremental-declaration-changes Input:: //// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hola, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hola, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); Output:: /lib/tsc --b /src/third --verbose --explainFiles -[12:00:48 AM] Projects in this build: +[12:01:00 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:49 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:01:01 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:00:50 AM] Building project '/src/first/tsconfig.json'... +[12:01:02 AM] Building project '/src/first/tsconfig.json'... lib/lib.d.ts Default library for target 'es5' @@ -2044,11 +2046,11 @@ src/first/first_part2.ts Part of 'files' list in tsconfig.json src/first/first_part3.ts Part of 'files' list in tsconfig.json -[12:00:59 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:01:11 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part2.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:00 AM] Project 'src/third/tsconfig.json' is out of date because output 'src/third/thirdjs/output/third-output.tsbuildinfo' is older than input 'src/first' +[12:01:12 AM] Project 'src/third/tsconfig.json' is out of date because output 'src/third/thirdjs/output/third-output.tsbuildinfo' is older than input 'src/first' -[12:01:01 AM] Building project '/src/third/tsconfig.json'... +[12:01:13 AM] Building project '/src/third/tsconfig.json'... lib/lib.d.ts Default library for target 'es5' @@ -2103,7 +2105,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -2118,7 +2120,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -2129,8 +2131,8 @@ sourceFile:../first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -2148,8 +2150,8 @@ sourceFile:../first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -2163,7 +2165,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -2178,7 +2180,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -2195,8 +2197,8 @@ sourceFile:../first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) @@ -2235,10 +2237,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -2262,12 +2264,12 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -2339,7 +2341,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -2353,7 +2355,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) @@ -2362,7 +2364,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":103,"kind":"text"}],"mapHash":"-23743024037-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"11286582394-var s = \"Hola, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":148,"kind":"text"}],"mapHash":"31357838721-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-8638855186-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-2594963283-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":103,"kind":"text"}],"mapHash":"-23743024037-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"11286582394-var s = \"Hola, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":148,"kind":"text"}],"mapHash":"31357838721-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-8638855186-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-21189362626-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hola, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -2433,9 +2435,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "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; };", - "../first_part1.ts": "-2594963283-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-21189362626-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hola, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -2464,7 +2466,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2630 + "size": 2605 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -2517,7 +2519,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -2532,7 +2534,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -2543,8 +2545,8 @@ sourceFile:../../../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -2562,8 +2564,8 @@ sourceFile:../../../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -2577,7 +2579,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -2592,7 +2594,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -2608,8 +2610,8 @@ sourceFile:../../../first/first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) @@ -2637,8 +2639,8 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) --- @@ -2647,8 +2649,8 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -2661,12 +2663,12 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) --- @@ -2689,7 +2691,7 @@ sourceFile:../../../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(14, 5) Source(2, 5) + SourceIndex(3) @@ -2698,9 +2700,9 @@ sourceFile:../../../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(15, 2) Source(5, 2) + SourceIndex(3) --- @@ -2778,10 +2780,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -2805,12 +2807,12 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -2882,7 +2884,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -2896,7 +2898,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) @@ -2912,19 +2914,19 @@ sourceFile:../../../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(7, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(7, 5) Source(5, 11) + SourceIndex(3) @@ -2948,7 +2950,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -2965,7 +2967,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -2987,7 +2989,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(11, 5) Source(8, 5) + SourceIndex(3) @@ -2999,8 +3001,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -3019,19 +3021,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(13, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(13, 2) Source(11, 2) + SourceIndex(3) @@ -3061,10 +3063,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(16, 5) Source(5, 1) + SourceIndex(4) @@ -3091,7 +3093,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -3113,7 +3115,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(19, 5) Source(4, 5) + SourceIndex(4) @@ -3122,7 +3124,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(20, 5) Source(5, 1) + SourceIndex(4) @@ -3137,10 +3139,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(21, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(21, 2) Source(5, 2) + SourceIndex(4) @@ -3185,7 +3187,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -3202,7 +3204,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":103,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":103,"kind":"text"}]},{"pos":103,"end":373,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":103,"end":373,"kind":"text"}]},{"pos":373,"end":407,"kind":"text"}],"mapHash":"-26819990576-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"28165143602-var s = \"Hola, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":148,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":148,"kind":"text"}]},{"pos":148,"end":241,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":148,"end":241,"kind":"text"}]},{"pos":241,"end":259,"kind":"text"}],"mapHash":"4922242321-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-30232795483-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-16013804117-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":103,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":103,"kind":"text"}]},{"pos":103,"end":373,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":103,"end":373,"kind":"text"}]},{"pos":373,"end":407,"kind":"text"}],"mapHash":"-26819990576-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"28165143602-var s = \"Hola, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":148,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":148,"kind":"text"}]},{"pos":148,"end":241,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":148,"end":241,"kind":"text"}]},{"pos":241,"end":259,"kind":"text"}],"mapHash":"4922242321-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-30232795483-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-16013804117-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -3370,7 +3372,7 @@ declare var c: C; "../../../../lib/lib.d.ts": "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; };", "../../../first/bin/first-output.d.ts": "-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -3393,7 +3395,7 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 4464 + "size": 4459 } @@ -3401,31 +3403,31 @@ declare var c: C; Change:: incremental-declaration-doesnt-change Input:: //// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hola, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hola, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); console.log(s); Output:: /lib/tsc --b /src/third --verbose --explainFiles -[12:01:15 AM] Projects in this build: +[12:01:27 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:01:16 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:01:28 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:01:17 AM] Building project '/src/first/tsconfig.json'... +[12:01:29 AM] Building project '/src/first/tsconfig.json'... lib/lib.d.ts Default library for target 'es5' @@ -3435,11 +3437,11 @@ src/first/first_part2.ts Part of 'files' list in tsconfig.json src/first/first_part3.ts Part of 'files' list in tsconfig.json -[12:01:25 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:01:37 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part2.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:26 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:01:38 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:01:27 AM] Updating output of project '/src/third/tsconfig.json'... +[12:01:39 AM] Updating output of project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -3477,10 +3479,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -3503,12 +3505,12 @@ sourceFile:../first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -3536,7 +3538,7 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > +1 > > 2 >console 3 > . @@ -3608,7 +3610,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -3622,7 +3624,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) @@ -3631,7 +3633,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":119,"kind":"text"}],"mapHash":"-32659542769-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"14669719846-var s = \"Hola, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":148,"kind":"text"}],"mapHash":"31357838721-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-8638855186-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","3570577263-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":119,"kind":"text"}],"mapHash":"-32659542769-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"14669719846-var s = \"Hola, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":148,"kind":"text"}],"mapHash":"31357838721-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-8638855186-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-21292400928-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hola, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -3703,9 +3705,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "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; };", - "../first_part1.ts": "3570577263-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-21292400928-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hola, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -3734,7 +3736,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2701 + "size": 2677 } //// [/src/third/thirdjs/output/third-output.js] @@ -3785,10 +3787,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -3811,12 +3813,12 @@ sourceFile:../../../first/first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -3844,7 +3846,7 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > +1 > > 2 >console 3 > . @@ -3916,7 +3918,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -3930,7 +3932,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) @@ -3946,19 +3948,19 @@ sourceFile:../../../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(8, 5) Source(5, 11) + SourceIndex(3) @@ -3982,7 +3984,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -3999,7 +4001,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -4021,7 +4023,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(12, 5) Source(8, 5) + SourceIndex(3) @@ -4033,8 +4035,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -4053,19 +4055,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(14, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(14, 2) Source(11, 2) + SourceIndex(3) @@ -4095,10 +4097,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(17, 5) Source(5, 1) + SourceIndex(4) @@ -4125,7 +4127,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -4147,7 +4149,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(20, 5) Source(4, 5) + SourceIndex(4) @@ -4156,7 +4158,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(21, 5) Source(5, 1) + SourceIndex(4) @@ -4171,10 +4173,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(22, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(22, 2) Source(5, 2) + SourceIndex(4) @@ -4219,7 +4221,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -4236,7 +4238,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":119,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":119,"kind":"text"}]},{"pos":119,"end":389,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":119,"end":389,"kind":"text"}]},{"pos":389,"end":423,"kind":"text"}],"mapHash":"24739356036-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"30230288606-var s = \"Hola, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":148,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":148,"kind":"text"}]},{"pos":148,"end":241,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":148,"end":241,"kind":"text"}]},{"pos":241,"end":259,"kind":"text"}],"mapHash":"4922242321-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-30232795483-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-16013804117-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":119,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":119,"kind":"text"}]},{"pos":119,"end":389,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":119,"end":389,"kind":"text"}]},{"pos":389,"end":423,"kind":"text"}],"mapHash":"24739356036-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"30230288606-var s = \"Hola, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":148,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":148,"kind":"text"}]},{"pos":148,"end":241,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":148,"end":241,"kind":"text"}]},{"pos":241,"end":259,"kind":"text"}],"mapHash":"4922242321-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-30232795483-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-16013804117-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -4405,7 +4407,7 @@ declare var c: C; "../../../../lib/lib.d.ts": "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; };", "../../../first/bin/first-output.d.ts": "-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -4428,6 +4430,6 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 4520 + "size": 4515 } diff --git a/tests/baselines/reference/tsbuild/outfile-concat/multiple-emitHelpers-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/multiple-emitHelpers-in-all-projects.js index 4c0ada9a1c33c..e77e296a7a428 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/multiple-emitHelpers-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/multiple-emitHelpers-in-all-projects.js @@ -16,106 +16,103 @@ interface ReadonlyArray {} declare const console: { log(msg: any): void; }; //// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); function forfirstfirst_PART1Rest() { const { b, ...rest } = { a: 10, b: 30, yy: 30 }; } //// [/src/first/first_part2.ts] -console.log(f()); +console.log(f()); //// [/src/first/first_part3.ts] -function f() { - return "JS does hoists"; +function f() { + return "JS does hoists"; } + function firstfirst_part3Spread(...b: number[]) { } const firstfirst_part3_ar = [20, 30]; firstfirst_part3Spread(10, ...firstfirst_part3_ar); //// [/src/first/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "composite": true, - "removeComments": true, +{ + "compilerOptions": { + "target": "es5", + "composite": true, + "removeComments": true, "strict": false, - "downlevelIteration": true, - "sourceMap": true, - "declarationMap": true, - "outFile": "./bin/first-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "first_PART1.ts", - "first_part2.ts", - "first_part3.ts" - ], - "references": [ - ] + "downlevelIteration": true, + "sourceMap": true, + "declarationMap": true, + "outFile": "./bin/first-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "first_PART1.ts", + "first_part2.ts", + "first_part3.ts" + ], + "references": [] } - //// [/src/second/second_part1.ts] -namespace N { - // Comment text -} - -namespace N { - function f() { - console.log('testing'); - } - - f(); -} +namespace N { + // Comment text +} + +namespace N { + function f() { + console.log('testing'); + } + + f(); +} function forsecondsecond_part1Rest() { const { b, ...rest } = { a: 10, b: 30, yy: 30 }; } //// [/src/second/second_part2.ts] -class C { - doSomething() { - console.log("something got done"); - } -} +class C { + doSomething() { + console.log("something got done"); + } +} function secondsecond_part2Spread(...b: number[]) { } const secondsecond_part2_ar = [20, 30]; secondsecond_part2Spread(10, ...secondsecond_part2_ar); //// [/src/second/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, "strict": false, - "downlevelIteration": true, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "../2/second-output.js", - "skipDefaultLibCheck": true - }, - "references": [ - ] + "downlevelIteration": true, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "../2/second-output.js", + "skipDefaultLibCheck": true + }, + "references": [] } - //// [/src/third/third_part1.ts] -var c = new C(); -c.doSomething(); +var c = new C(); +c.doSomething(); function forthirdthird_part1Rest() { const { b, ...rest } = { a: 10, b: 30, yy: 30 }; } @@ -124,50 +121,55 @@ const thirdthird_part1_ar = [20, 30]; thirdthird_part1Spread(10, ...thirdthird_part1_ar); //// [/src/third/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, "strict": false, - "downlevelIteration": true, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "./thirdjs/output/third-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "third_part1.ts" - ], - "references": [ - { "path": "../first", "prepend": true }, - { "path": "../second", "prepend": true }, - ] + "downlevelIteration": true, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "./thirdjs/output/third-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "third_part1.ts" + ], + "references": [ + { + "path": "../first", + "prepend": true + }, + { + "path": "../second", + "prepend": true + } + ] } - Output:: /lib/tsc --b /src/third --verbose -[12:00:15 AM] Projects in this build: +[12:00:27 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:16 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist +[12:00:28 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist -[12:00:17 AM] Building project '/src/first/tsconfig.json'... +[12:00:29 AM] Building project '/src/first/tsconfig.json'... -[12:00:27 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist +[12:00:39 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist -[12:00:28 AM] Building project '/src/second/tsconfig.json'... +[12:00:40 AM] Building project '/src/second/tsconfig.json'... -[12:00:38 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist +[12:00:50 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist -[12:00:39 AM] Building project '/src/third/tsconfig.json'... +[12:00:51 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -216,8 +218,8 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(2, 2) Source(3, 2) + SourceIndex(0) --- @@ -226,8 +228,8 @@ sourceFile:../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -240,12 +242,12 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(4, 2) Source(11, 2) + SourceIndex(0) --- @@ -254,7 +256,7 @@ sourceFile:../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^ -1-> +1-> > 2 >function 3 > forsecondsecond_part1Rest @@ -285,7 +287,7 @@ sourceFile:../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(7, 5) Source(2, 5) + SourceIndex(1) @@ -294,9 +296,9 @@ sourceFile:../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(8, 2) Source(5, 2) + SourceIndex(1) --- @@ -310,7 +312,7 @@ sourceFile:../second/second_part2.ts 7 > ^^^^^^ 8 > ^^ 9 > ^^^^^^^^ -1-> +1-> > > 2 >function @@ -475,19 +477,19 @@ sourceFile:../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1 >namespace N { - > // Comment text - >} - > +1 >namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1 >Emitted(37, 1) Source(5, 1) + SourceIndex(0) 2 >Emitted(37, 5) Source(5, 11) + SourceIndex(0) @@ -511,7 +513,7 @@ sourceFile:../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -528,7 +530,7 @@ sourceFile:../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -550,7 +552,7 @@ sourceFile:../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(41, 5) Source(8, 5) + SourceIndex(0) @@ -562,8 +564,8 @@ sourceFile:../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -582,19 +584,19 @@ sourceFile:../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(43, 1) Source(11, 1) + SourceIndex(0) 2 >Emitted(43, 2) Source(11, 2) + SourceIndex(0) @@ -609,7 +611,7 @@ sourceFile:../second/second_part1.ts 2 >^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >function 3 > forsecondsecond_part1Rest @@ -725,10 +727,10 @@ sourceFile:../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(49, 5) Source(5, 1) + SourceIndex(1) @@ -755,7 +757,7 @@ sourceFile:../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -777,7 +779,7 @@ sourceFile:../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(52, 5) Source(4, 5) + SourceIndex(1) @@ -786,7 +788,7 @@ sourceFile:../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(53, 5) Source(5, 1) + SourceIndex(1) @@ -801,10 +803,10 @@ sourceFile:../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(54, 1) Source(5, 1) + SourceIndex(1) 2 >Emitted(54, 2) Source(5, 2) + SourceIndex(1) @@ -815,7 +817,7 @@ sourceFile:../second/second_part2.ts 1-> 2 >^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^ -1-> +1-> > > 2 >function @@ -932,7 +934,7 @@ sourceFile:../second/second_part2.ts >>>//# sourceMappingURL=second-output.js.map //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":490,"kind":"emitHelpers","data":"typescript:rest"},{"pos":491,"end":980,"kind":"emitHelpers","data":"typescript:read"},{"pos":981,"end":1361,"kind":"emitHelpers","data":"typescript:spreadArray"},{"pos":1362,"end":2030,"kind":"text"}],"sources":{"helpers":["typescript:rest","typescript:read","typescript:spreadArray"]},"mapHash":"-30083835302-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,IAAM,qBAAqB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACvC,wBAAwB,8BAAC,EAAE,UAAK,qBAAqB,WAAE\"}","hash":"15985439346-var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nfunction forsecondsecond_part1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nfunction secondsecond_part2Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar secondsecond_part2_ar = [20, 30];\nsecondsecond_part2Spread.apply(void 0, __spreadArray([10], __read(secondsecond_part2_ar), false));\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":257,"kind":"text"}],"mapHash":"-6793954603-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;AAED,iBAAS,wBAAwB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACrD,QAAA,MAAM,qBAAqB,UAAW,CAAC\"}","hash":"-12368550231-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\ndeclare function secondsecond_part2Spread(...b: number[]): void;\ndeclare const secondsecond_part2_ar: number[];\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["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; };","-12564528434-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\nfunction forsecondsecond_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}","-17653520187-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n\nfunction secondsecond_part2Spread(...b: number[]) { }\nconst secondsecond_part2_ar = [20, 30];\nsecondsecond_part2Spread(10, ...secondsecond_part2_ar);"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"downlevelIteration":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-21549614962-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\ndeclare function secondsecond_part2Spread(...b: number[]): void;\ndeclare const secondsecond_part2_ar: number[];\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":490,"kind":"emitHelpers","data":"typescript:rest"},{"pos":491,"end":980,"kind":"emitHelpers","data":"typescript:read"},{"pos":981,"end":1361,"kind":"emitHelpers","data":"typescript:spreadArray"},{"pos":1362,"end":2030,"kind":"text"}],"sources":{"helpers":["typescript:rest","typescript:read","typescript:spreadArray"]},"mapHash":"-30083835302-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,IAAM,qBAAqB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACvC,wBAAwB,8BAAC,EAAE,UAAK,qBAAqB,WAAE\"}","hash":"15985439346-var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nfunction forsecondsecond_part1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nfunction secondsecond_part2Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar secondsecond_part2_ar = [20, 30];\nsecondsecond_part2Spread.apply(void 0, __spreadArray([10], __read(secondsecond_part2_ar), false));\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":257,"kind":"text"}],"mapHash":"-6793954603-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;AAED,iBAAS,wBAAwB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACrD,QAAA,MAAM,qBAAqB,UAAW,CAAC\"}","hash":"-12368550231-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\ndeclare function secondsecond_part2Spread(...b: number[]): void;\ndeclare const secondsecond_part2_ar: number[];\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["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; };","-13362958657-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\nfunction forsecondsecond_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}","-27196066044-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n\nfunction secondsecond_part2Spread(...b: number[]) { }\nconst secondsecond_part2_ar = [20, 30];\nsecondsecond_part2Spread(10, ...secondsecond_part2_ar);"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"downlevelIteration":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-21549614962-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\ndeclare function secondsecond_part2Spread(...b: number[]): void;\ndeclare const secondsecond_part2_ar: number[];\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -1090,8 +1092,8 @@ declare const secondsecond_part2_ar: number[]; ], "fileInfos": { "../../lib/lib.d.ts": "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; };", - "../second/second_part1.ts": "-12564528434-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\nfunction forsecondsecond_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}", - "../second/second_part2.ts": "-17653520187-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n\nfunction secondsecond_part2Spread(...b: number[]) { }\nconst secondsecond_part2_ar = [20, 30];\nsecondsecond_part2Spread(10, ...secondsecond_part2_ar);" + "../second/second_part1.ts": "-13362958657-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\nfunction forsecondsecond_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}", + "../second/second_part2.ts": "-27196066044-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n\nfunction secondsecond_part2Spread(...b: number[]) { }\nconst secondsecond_part2_ar = [20, 30];\nsecondsecond_part2Spread(10, ...secondsecond_part2_ar);" }, "root": [ [ @@ -1119,7 +1121,7 @@ declare const secondsecond_part2_ar: number[]; "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 5933 + "size": 5901 } //// [/src/first/bin/first-output.d.ts] @@ -1137,7 +1139,7 @@ declare const firstfirst_part3_ar: number[]; //# sourceMappingURL=first-output.d.ts.map //// [/src/first/bin/first-output.d.ts.map] -{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;AEbD,iBAAS,CAAC,WAET;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC"} +{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;AEbD,iBAAS,CAAC,WAET;AAED,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC"} //// [/src/first/bin/first-output.d.ts.map.baseline.txt] =================================================================== @@ -1167,7 +1169,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -1182,7 +1184,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -1193,8 +1195,8 @@ sourceFile:../first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -1212,8 +1214,8 @@ sourceFile:../first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -1227,7 +1229,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -1242,7 +1244,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -1251,9 +1253,9 @@ sourceFile:../first_PART1.ts 2 >^^^^^^^^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^ -1-> - > - >console.log(s); +1-> + > + >console.log(s); > 2 >function 3 > forfirstfirst_PART1Rest @@ -1278,8 +1280,8 @@ sourceFile:../first_part3.ts 1 > 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) 2 >Emitted(9, 18) Source(1, 10) + SourceIndex(2) @@ -1297,6 +1299,7 @@ sourceFile:../first_part3.ts 8 > ^^ 9 > ^^^^^^^^ 1-> + > > 2 >function 3 > firstfirst_part3Spread @@ -1306,15 +1309,15 @@ sourceFile:../first_part3.ts 7 > number 8 > [] 9 > ) { } -1->Emitted(10, 1) Source(4, 1) + SourceIndex(2) -2 >Emitted(10, 18) Source(4, 10) + SourceIndex(2) -3 >Emitted(10, 40) Source(4, 32) + SourceIndex(2) -4 >Emitted(10, 41) Source(4, 33) + SourceIndex(2) -5 >Emitted(10, 44) Source(4, 36) + SourceIndex(2) -6 >Emitted(10, 47) Source(4, 39) + SourceIndex(2) -7 >Emitted(10, 53) Source(4, 45) + SourceIndex(2) -8 >Emitted(10, 55) Source(4, 47) + SourceIndex(2) -9 >Emitted(10, 63) Source(4, 52) + SourceIndex(2) +1->Emitted(10, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(10, 18) Source(5, 10) + SourceIndex(2) +3 >Emitted(10, 40) Source(5, 32) + SourceIndex(2) +4 >Emitted(10, 41) Source(5, 33) + SourceIndex(2) +5 >Emitted(10, 44) Source(5, 36) + SourceIndex(2) +6 >Emitted(10, 47) Source(5, 39) + SourceIndex(2) +7 >Emitted(10, 53) Source(5, 45) + SourceIndex(2) +8 >Emitted(10, 55) Source(5, 47) + SourceIndex(2) +9 >Emitted(10, 63) Source(5, 52) + SourceIndex(2) --- >>>declare const firstfirst_part3_ar: number[]; 1 > @@ -1330,12 +1333,12 @@ sourceFile:../first_part3.ts 4 > firstfirst_part3_ar 5 > = [20, 30] 6 > ; -1 >Emitted(11, 1) Source(5, 1) + SourceIndex(2) -2 >Emitted(11, 9) Source(5, 1) + SourceIndex(2) -3 >Emitted(11, 15) Source(5, 7) + SourceIndex(2) -4 >Emitted(11, 34) Source(5, 26) + SourceIndex(2) -5 >Emitted(11, 44) Source(5, 37) + SourceIndex(2) -6 >Emitted(11, 45) Source(5, 38) + SourceIndex(2) +1 >Emitted(11, 1) Source(6, 1) + SourceIndex(2) +2 >Emitted(11, 9) Source(6, 1) + SourceIndex(2) +3 >Emitted(11, 15) Source(6, 7) + SourceIndex(2) +4 >Emitted(11, 34) Source(6, 26) + SourceIndex(2) +5 >Emitted(11, 44) Source(6, 37) + SourceIndex(2) +6 >Emitted(11, 45) Source(6, 38) + SourceIndex(2) --- >>>//# sourceMappingURL=first-output.d.ts.map @@ -1396,7 +1399,7 @@ firstfirst_part3Spread.apply(void 0, __spreadArray([10], __read(firstfirst_part3 //# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE"} +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AAED,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE"} //// [/src/first/bin/first-output.js.map.baseline.txt] =================================================================== @@ -1452,10 +1455,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -1479,12 +1482,12 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -1507,7 +1510,7 @@ sourceFile:../first_PART1.ts 2 >^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >function 3 > forfirstfirst_PART1Rest @@ -1657,7 +1660,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -1671,7 +1674,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(45, 1) Source(3, 1) + SourceIndex(2) @@ -1682,12 +1685,13 @@ sourceFile:../first_part3.ts 2 >^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^ 1-> + > > 2 >function 3 > firstfirst_part3Spread -1->Emitted(46, 1) Source(4, 1) + SourceIndex(2) -2 >Emitted(46, 10) Source(4, 10) + SourceIndex(2) -3 >Emitted(46, 32) Source(4, 32) + SourceIndex(2) +1->Emitted(46, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(46, 10) Source(5, 10) + SourceIndex(2) +3 >Emitted(46, 32) Source(5, 32) + SourceIndex(2) --- >>> var b = []; 1 >^^^^ @@ -1695,8 +1699,8 @@ sourceFile:../first_part3.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >( 2 > ...b: number[] -1 >Emitted(47, 5) Source(4, 33) + SourceIndex(2) -2 >Emitted(47, 16) Source(4, 47) + SourceIndex(2) +1 >Emitted(47, 5) Source(5, 33) + SourceIndex(2) +2 >Emitted(47, 16) Source(5, 47) + SourceIndex(2) --- >>> for (var _i = 0; _i < arguments.length; _i++) { 1->^^^^^^^^^ @@ -1711,20 +1715,20 @@ sourceFile:../first_part3.ts 4 > ...b: number[] 5 > 6 > ...b: number[] -1->Emitted(48, 10) Source(4, 33) + SourceIndex(2) -2 >Emitted(48, 20) Source(4, 47) + SourceIndex(2) -3 >Emitted(48, 22) Source(4, 33) + SourceIndex(2) -4 >Emitted(48, 43) Source(4, 47) + SourceIndex(2) -5 >Emitted(48, 45) Source(4, 33) + SourceIndex(2) -6 >Emitted(48, 49) Source(4, 47) + SourceIndex(2) +1->Emitted(48, 10) Source(5, 33) + SourceIndex(2) +2 >Emitted(48, 20) Source(5, 47) + SourceIndex(2) +3 >Emitted(48, 22) Source(5, 33) + SourceIndex(2) +4 >Emitted(48, 43) Source(5, 47) + SourceIndex(2) +5 >Emitted(48, 45) Source(5, 33) + SourceIndex(2) +6 >Emitted(48, 49) Source(5, 47) + SourceIndex(2) --- >>> b[_i] = arguments[_i]; 1 >^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^ 1 > 2 > ...b: number[] -1 >Emitted(49, 9) Source(4, 33) + SourceIndex(2) -2 >Emitted(49, 31) Source(4, 47) + SourceIndex(2) +1 >Emitted(49, 9) Source(5, 33) + SourceIndex(2) +2 >Emitted(49, 31) Source(5, 47) + SourceIndex(2) --- >>> } >>>} @@ -1733,8 +1737,8 @@ sourceFile:../first_part3.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >) { 2 >} -1 >Emitted(51, 1) Source(4, 51) + SourceIndex(2) -2 >Emitted(51, 2) Source(4, 52) + SourceIndex(2) +1 >Emitted(51, 1) Source(5, 51) + SourceIndex(2) +2 >Emitted(51, 2) Source(5, 52) + SourceIndex(2) --- >>>var firstfirst_part3_ar = [20, 30]; 1-> @@ -1759,16 +1763,16 @@ sourceFile:../first_part3.ts 8 > 30 9 > ] 10> ; -1->Emitted(52, 1) Source(5, 1) + SourceIndex(2) -2 >Emitted(52, 5) Source(5, 7) + SourceIndex(2) -3 >Emitted(52, 24) Source(5, 26) + SourceIndex(2) -4 >Emitted(52, 27) Source(5, 29) + SourceIndex(2) -5 >Emitted(52, 28) Source(5, 30) + SourceIndex(2) -6 >Emitted(52, 30) Source(5, 32) + SourceIndex(2) -7 >Emitted(52, 32) Source(5, 34) + SourceIndex(2) -8 >Emitted(52, 34) Source(5, 36) + SourceIndex(2) -9 >Emitted(52, 35) Source(5, 37) + SourceIndex(2) -10>Emitted(52, 36) Source(5, 38) + SourceIndex(2) +1->Emitted(52, 1) Source(6, 1) + SourceIndex(2) +2 >Emitted(52, 5) Source(6, 7) + SourceIndex(2) +3 >Emitted(52, 24) Source(6, 26) + SourceIndex(2) +4 >Emitted(52, 27) Source(6, 29) + SourceIndex(2) +5 >Emitted(52, 28) Source(6, 30) + SourceIndex(2) +6 >Emitted(52, 30) Source(6, 32) + SourceIndex(2) +7 >Emitted(52, 32) Source(6, 34) + SourceIndex(2) +8 >Emitted(52, 34) Source(6, 36) + SourceIndex(2) +9 >Emitted(52, 35) Source(6, 37) + SourceIndex(2) +10>Emitted(52, 36) Source(6, 38) + SourceIndex(2) --- >>>firstfirst_part3Spread.apply(void 0, __spreadArray([10], __read(firstfirst_part3_ar), false)); 1-> @@ -1786,18 +1790,18 @@ sourceFile:../first_part3.ts 5 > , ... 6 > firstfirst_part3_ar 7 > ); -1->Emitted(53, 1) Source(6, 1) + SourceIndex(2) -2 >Emitted(53, 23) Source(6, 23) + SourceIndex(2) -3 >Emitted(53, 53) Source(6, 24) + SourceIndex(2) -4 >Emitted(53, 55) Source(6, 26) + SourceIndex(2) -5 >Emitted(53, 65) Source(6, 31) + SourceIndex(2) -6 >Emitted(53, 84) Source(6, 50) + SourceIndex(2) -7 >Emitted(53, 95) Source(6, 52) + SourceIndex(2) +1->Emitted(53, 1) Source(7, 1) + SourceIndex(2) +2 >Emitted(53, 23) Source(7, 23) + SourceIndex(2) +3 >Emitted(53, 53) Source(7, 24) + SourceIndex(2) +4 >Emitted(53, 55) Source(7, 26) + SourceIndex(2) +5 >Emitted(53, 65) Source(7, 31) + SourceIndex(2) +6 >Emitted(53, 84) Source(7, 50) + SourceIndex(2) +7 >Emitted(53, 95) Source(7, 52) + SourceIndex(2) --- >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":490,"kind":"emitHelpers","data":"typescript:rest"},{"pos":491,"end":980,"kind":"emitHelpers","data":"typescript:read"},{"pos":981,"end":1361,"kind":"emitHelpers","data":"typescript:spreadArray"},{"pos":1362,"end":1854,"kind":"text"}],"sources":{"helpers":["typescript:rest","typescript:read","typescript:spreadArray"]},"mapHash":"-35433619521-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE\"}","hash":"-7416090205-var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\nvar s = \"Hello, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nfunction firstfirst_part3Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar firstfirst_part3_ar = [20, 30];\nfirstfirst_part3Spread.apply(void 0, __spreadArray([10], __read(firstfirst_part3_ar), false));\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":307,"kind":"text"}],"mapHash":"32680275599-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;AEbD,iBAAS,CAAC,WAET;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC\"}","hash":"-10647290581-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare function firstfirst_part3Spread(...b: number[]): void;\ndeclare const firstfirst_part3_ar: number[];\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-2071921725-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}","4973778178-console.log(f());\r\n","998368782-function f() {\r\n return \"JS does hoists\";\r\n}\nfunction firstfirst_part3Spread(...b: number[]) { }\nconst firstfirst_part3_ar = [20, 30];\nfirstfirst_part3Spread(10, ...firstfirst_part3_ar);"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"downlevelIteration":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-5875110108-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare function firstfirst_part3Spread(...b: number[]): void;\ndeclare const firstfirst_part3_ar: number[];\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":490,"kind":"emitHelpers","data":"typescript:rest"},{"pos":491,"end":980,"kind":"emitHelpers","data":"typescript:read"},{"pos":981,"end":1361,"kind":"emitHelpers","data":"typescript:spreadArray"},{"pos":1362,"end":1854,"kind":"text"}],"sources":{"helpers":["typescript:rest","typescript:read","typescript:spreadArray"]},"mapHash":"-16946718015-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AAED,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE\"}","hash":"-7416090205-var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\nvar s = \"Hello, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nfunction firstfirst_part3Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar firstfirst_part3_ar = [20, 30];\nfirstfirst_part3Spread.apply(void 0, __spreadArray([10], __read(firstfirst_part3_ar), false));\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":307,"kind":"text"}],"mapHash":"11304487505-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;AEbD,iBAAS,CAAC,WAET;AAED,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC\"}","hash":"-10647290581-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare function firstfirst_part3Spread(...b: number[]): void;\ndeclare const firstfirst_part3_ar: number[];\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-25468252236-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}","6007494133-console.log(f());\n","-1751035906-function f() {\n return \"JS does hoists\";\n}\n\nfunction firstfirst_part3Spread(...b: number[]) { }\nconst firstfirst_part3_ar = [20, 30];\nfirstfirst_part3Spread(10, ...firstfirst_part3_ar);"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"downlevelIteration":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-5875110108-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare function firstfirst_part3Spread(...b: number[]): void;\ndeclare const firstfirst_part3_ar: number[];\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -1919,7 +1923,7 @@ declare const firstfirst_part3_ar: number[]; } ], "hash": "-7416090205-var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\nvar s = \"Hello, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nfunction firstfirst_part3Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar firstfirst_part3_ar = [20, 30];\nfirstfirst_part3Spread.apply(void 0, __spreadArray([10], __read(firstfirst_part3_ar), false));\n//# sourceMappingURL=first-output.js.map", - "mapHash": "-35433619521-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE\"}", + "mapHash": "-16946718015-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AAED,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE\"}", "sources": { "helpers": [ "typescript:rest", @@ -1937,7 +1941,7 @@ declare const firstfirst_part3_ar: number[]; } ], "hash": "-10647290581-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare function firstfirst_part3Spread(...b: number[]): void;\ndeclare const firstfirst_part3_ar: number[];\n//# sourceMappingURL=first-output.d.ts.map", - "mapHash": "32680275599-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;AEbD,iBAAS,CAAC,WAET;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC\"}" + "mapHash": "11304487505-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;AEbD,iBAAS,CAAC,WAET;AAED,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC\"}" } }, "program": { @@ -1949,9 +1953,9 @@ declare const firstfirst_part3_ar: number[]; ], "fileInfos": { "../../../lib/lib.d.ts": "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; };", - "../first_part1.ts": "-2071921725-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "998368782-function f() {\r\n return \"JS does hoists\";\r\n}\nfunction firstfirst_part3Spread(...b: number[]) { }\nconst firstfirst_part3_ar = [20, 30];\nfirstfirst_part3Spread(10, ...firstfirst_part3_ar);" + "../first_part1.ts": "-25468252236-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "-1751035906-function f() {\n return \"JS does hoists\";\n}\n\nfunction firstfirst_part3Spread(...b: number[]) { }\nconst firstfirst_part3_ar = [20, 30];\nfirstfirst_part3Spread(10, ...firstfirst_part3_ar);" }, "root": [ [ @@ -1981,7 +1985,7 @@ declare const firstfirst_part3_ar: number[]; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 5791 + "size": 5768 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -2013,7 +2017,7 @@ declare const thirdthird_part1_ar: number[]; //# sourceMappingURL=third-output.d.ts.map //// [/src/third/thirdjs/output/third-output.d.ts.map] -{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;ACbD,iBAAS,CAAC,WAET;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC;ACJrC,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;AAED,iBAAS,wBAAwB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACrD,QAAA,MAAM,qBAAqB,UAAW,CAAC;ACPvC,QAAA,IAAI,CAAC,GAAU,CAAC;AAEhB,iBAAS,uBAAuB,SAE/B;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC"} +{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;ACbD,iBAAS,CAAC,WAET;AAED,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC;ACLrC,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;AAED,iBAAS,wBAAwB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACrD,QAAA,MAAM,qBAAqB,UAAW,CAAC;ACPvC,QAAA,IAAI,CAAC,GAAU,CAAC;AAEhB,iBAAS,uBAAuB,SAE/B;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC"} //// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] =================================================================== @@ -2043,7 +2047,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -2058,7 +2062,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -2069,8 +2073,8 @@ sourceFile:../../../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -2088,8 +2092,8 @@ sourceFile:../../../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -2103,7 +2107,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -2118,7 +2122,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -2127,9 +2131,9 @@ sourceFile:../../../first/first_PART1.ts 2 >^^^^^^^^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^ -1-> - > - >console.log(s); +1-> + > + >console.log(s); > 2 >function 3 > forfirstfirst_PART1Rest @@ -2154,8 +2158,8 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1 >Emitted(9, 1) Source(1, 1) + SourceIndex(1) 2 >Emitted(9, 18) Source(1, 10) + SourceIndex(1) @@ -2173,6 +2177,7 @@ sourceFile:../../../first/first_part3.ts 8 > ^^ 9 > ^^^^^^^^ 1-> + > > 2 >function 3 > firstfirst_part3Spread @@ -2182,15 +2187,15 @@ sourceFile:../../../first/first_part3.ts 7 > number 8 > [] 9 > ) { } -1->Emitted(10, 1) Source(4, 1) + SourceIndex(1) -2 >Emitted(10, 18) Source(4, 10) + SourceIndex(1) -3 >Emitted(10, 40) Source(4, 32) + SourceIndex(1) -4 >Emitted(10, 41) Source(4, 33) + SourceIndex(1) -5 >Emitted(10, 44) Source(4, 36) + SourceIndex(1) -6 >Emitted(10, 47) Source(4, 39) + SourceIndex(1) -7 >Emitted(10, 53) Source(4, 45) + SourceIndex(1) -8 >Emitted(10, 55) Source(4, 47) + SourceIndex(1) -9 >Emitted(10, 63) Source(4, 52) + SourceIndex(1) +1->Emitted(10, 1) Source(5, 1) + SourceIndex(1) +2 >Emitted(10, 18) Source(5, 10) + SourceIndex(1) +3 >Emitted(10, 40) Source(5, 32) + SourceIndex(1) +4 >Emitted(10, 41) Source(5, 33) + SourceIndex(1) +5 >Emitted(10, 44) Source(5, 36) + SourceIndex(1) +6 >Emitted(10, 47) Source(5, 39) + SourceIndex(1) +7 >Emitted(10, 53) Source(5, 45) + SourceIndex(1) +8 >Emitted(10, 55) Source(5, 47) + SourceIndex(1) +9 >Emitted(10, 63) Source(5, 52) + SourceIndex(1) --- >>>declare const firstfirst_part3_ar: number[]; 1 > @@ -2206,12 +2211,12 @@ sourceFile:../../../first/first_part3.ts 4 > firstfirst_part3_ar 5 > = [20, 30] 6 > ; -1 >Emitted(11, 1) Source(5, 1) + SourceIndex(1) -2 >Emitted(11, 9) Source(5, 1) + SourceIndex(1) -3 >Emitted(11, 15) Source(5, 7) + SourceIndex(1) -4 >Emitted(11, 34) Source(5, 26) + SourceIndex(1) -5 >Emitted(11, 44) Source(5, 37) + SourceIndex(1) -6 >Emitted(11, 45) Source(5, 38) + SourceIndex(1) +1 >Emitted(11, 1) Source(6, 1) + SourceIndex(1) +2 >Emitted(11, 9) Source(6, 1) + SourceIndex(1) +3 >Emitted(11, 15) Source(6, 7) + SourceIndex(1) +4 >Emitted(11, 34) Source(6, 26) + SourceIndex(1) +5 >Emitted(11, 44) Source(6, 37) + SourceIndex(1) +6 >Emitted(11, 45) Source(6, 38) + SourceIndex(1) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.d.ts @@ -2234,8 +2239,8 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(13, 2) Source(3, 2) + SourceIndex(2) --- @@ -2244,8 +2249,8 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -2258,12 +2263,12 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(15, 2) Source(11, 2) + SourceIndex(2) --- @@ -2272,7 +2277,7 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^ -1-> +1-> > 2 >function 3 > forsecondsecond_part1Rest @@ -2303,7 +2308,7 @@ sourceFile:../../../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(18, 5) Source(2, 5) + SourceIndex(3) @@ -2312,9 +2317,9 @@ sourceFile:../../../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(19, 2) Source(5, 2) + SourceIndex(3) --- @@ -2328,7 +2333,7 @@ sourceFile:../../../second/second_part2.ts 7 > ^^^^^^ 8 > ^^ 9 > ^^^^^^^^ -1-> +1-> > > 2 >function @@ -2401,8 +2406,8 @@ sourceFile:../../third_part1.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^ 5 > ^^^^^^^^^^^^^-> -1-> - >c.doSomething(); +1-> + >c.doSomething(); > 2 >function 3 > forthirdthird_part1Rest @@ -2563,7 +2568,7 @@ thirdthird_part1Spread.apply(void 0, __spreadArray([10], __read(thirdthird_part1 //# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE;ACDnD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,IAAM,qBAAqB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACvC,wBAAwB,8BAAC,EAAE,UAAK,qBAAqB,WAAE;ACRvD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE"} +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AAED,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE;ACFnD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,IAAM,qBAAqB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACvC,wBAAwB,8BAAC,EAAE,UAAK,qBAAqB,WAAE;ACRvD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE"} //// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] =================================================================== @@ -2619,10 +2624,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -2646,12 +2651,12 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -2674,7 +2679,7 @@ sourceFile:../../../first/first_PART1.ts 2 >^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >function 3 > forfirstfirst_PART1Rest @@ -2824,7 +2829,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -2838,7 +2843,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(45, 1) Source(3, 1) + SourceIndex(2) @@ -2849,12 +2854,13 @@ sourceFile:../../../first/first_part3.ts 2 >^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^ 1-> + > > 2 >function 3 > firstfirst_part3Spread -1->Emitted(46, 1) Source(4, 1) + SourceIndex(2) -2 >Emitted(46, 10) Source(4, 10) + SourceIndex(2) -3 >Emitted(46, 32) Source(4, 32) + SourceIndex(2) +1->Emitted(46, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(46, 10) Source(5, 10) + SourceIndex(2) +3 >Emitted(46, 32) Source(5, 32) + SourceIndex(2) --- >>> var b = []; 1 >^^^^ @@ -2862,8 +2868,8 @@ sourceFile:../../../first/first_part3.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >( 2 > ...b: number[] -1 >Emitted(47, 5) Source(4, 33) + SourceIndex(2) -2 >Emitted(47, 16) Source(4, 47) + SourceIndex(2) +1 >Emitted(47, 5) Source(5, 33) + SourceIndex(2) +2 >Emitted(47, 16) Source(5, 47) + SourceIndex(2) --- >>> for (var _i = 0; _i < arguments.length; _i++) { 1->^^^^^^^^^ @@ -2878,20 +2884,20 @@ sourceFile:../../../first/first_part3.ts 4 > ...b: number[] 5 > 6 > ...b: number[] -1->Emitted(48, 10) Source(4, 33) + SourceIndex(2) -2 >Emitted(48, 20) Source(4, 47) + SourceIndex(2) -3 >Emitted(48, 22) Source(4, 33) + SourceIndex(2) -4 >Emitted(48, 43) Source(4, 47) + SourceIndex(2) -5 >Emitted(48, 45) Source(4, 33) + SourceIndex(2) -6 >Emitted(48, 49) Source(4, 47) + SourceIndex(2) +1->Emitted(48, 10) Source(5, 33) + SourceIndex(2) +2 >Emitted(48, 20) Source(5, 47) + SourceIndex(2) +3 >Emitted(48, 22) Source(5, 33) + SourceIndex(2) +4 >Emitted(48, 43) Source(5, 47) + SourceIndex(2) +5 >Emitted(48, 45) Source(5, 33) + SourceIndex(2) +6 >Emitted(48, 49) Source(5, 47) + SourceIndex(2) --- >>> b[_i] = arguments[_i]; 1 >^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^ 1 > 2 > ...b: number[] -1 >Emitted(49, 9) Source(4, 33) + SourceIndex(2) -2 >Emitted(49, 31) Source(4, 47) + SourceIndex(2) +1 >Emitted(49, 9) Source(5, 33) + SourceIndex(2) +2 >Emitted(49, 31) Source(5, 47) + SourceIndex(2) --- >>> } >>>} @@ -2900,8 +2906,8 @@ sourceFile:../../../first/first_part3.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >) { 2 >} -1 >Emitted(51, 1) Source(4, 51) + SourceIndex(2) -2 >Emitted(51, 2) Source(4, 52) + SourceIndex(2) +1 >Emitted(51, 1) Source(5, 51) + SourceIndex(2) +2 >Emitted(51, 2) Source(5, 52) + SourceIndex(2) --- >>>var firstfirst_part3_ar = [20, 30]; 1-> @@ -2926,16 +2932,16 @@ sourceFile:../../../first/first_part3.ts 8 > 30 9 > ] 10> ; -1->Emitted(52, 1) Source(5, 1) + SourceIndex(2) -2 >Emitted(52, 5) Source(5, 7) + SourceIndex(2) -3 >Emitted(52, 24) Source(5, 26) + SourceIndex(2) -4 >Emitted(52, 27) Source(5, 29) + SourceIndex(2) -5 >Emitted(52, 28) Source(5, 30) + SourceIndex(2) -6 >Emitted(52, 30) Source(5, 32) + SourceIndex(2) -7 >Emitted(52, 32) Source(5, 34) + SourceIndex(2) -8 >Emitted(52, 34) Source(5, 36) + SourceIndex(2) -9 >Emitted(52, 35) Source(5, 37) + SourceIndex(2) -10>Emitted(52, 36) Source(5, 38) + SourceIndex(2) +1->Emitted(52, 1) Source(6, 1) + SourceIndex(2) +2 >Emitted(52, 5) Source(6, 7) + SourceIndex(2) +3 >Emitted(52, 24) Source(6, 26) + SourceIndex(2) +4 >Emitted(52, 27) Source(6, 29) + SourceIndex(2) +5 >Emitted(52, 28) Source(6, 30) + SourceIndex(2) +6 >Emitted(52, 30) Source(6, 32) + SourceIndex(2) +7 >Emitted(52, 32) Source(6, 34) + SourceIndex(2) +8 >Emitted(52, 34) Source(6, 36) + SourceIndex(2) +9 >Emitted(52, 35) Source(6, 37) + SourceIndex(2) +10>Emitted(52, 36) Source(6, 38) + SourceIndex(2) --- >>>firstfirst_part3Spread.apply(void 0, __spreadArray([10], __read(firstfirst_part3_ar), false)); 1-> @@ -2953,13 +2959,13 @@ sourceFile:../../../first/first_part3.ts 5 > , ... 6 > firstfirst_part3_ar 7 > ); -1->Emitted(53, 1) Source(6, 1) + SourceIndex(2) -2 >Emitted(53, 23) Source(6, 23) + SourceIndex(2) -3 >Emitted(53, 53) Source(6, 24) + SourceIndex(2) -4 >Emitted(53, 55) Source(6, 26) + SourceIndex(2) -5 >Emitted(53, 65) Source(6, 31) + SourceIndex(2) -6 >Emitted(53, 84) Source(6, 50) + SourceIndex(2) -7 >Emitted(53, 95) Source(6, 52) + SourceIndex(2) +1->Emitted(53, 1) Source(7, 1) + SourceIndex(2) +2 >Emitted(53, 23) Source(7, 23) + SourceIndex(2) +3 >Emitted(53, 53) Source(7, 24) + SourceIndex(2) +4 >Emitted(53, 55) Source(7, 26) + SourceIndex(2) +5 >Emitted(53, 65) Source(7, 31) + SourceIndex(2) +6 >Emitted(53, 84) Source(7, 50) + SourceIndex(2) +7 >Emitted(53, 95) Source(7, 52) + SourceIndex(2) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.js @@ -2971,19 +2977,19 @@ sourceFile:../../../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1 >namespace N { - > // Comment text - >} - > +1 >namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1 >Emitted(54, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(54, 5) Source(5, 11) + SourceIndex(3) @@ -3007,7 +3013,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -3024,7 +3030,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -3046,7 +3052,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(58, 5) Source(8, 5) + SourceIndex(3) @@ -3058,8 +3064,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -3078,19 +3084,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(60, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(60, 2) Source(11, 2) + SourceIndex(3) @@ -3105,7 +3111,7 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >function 3 > forsecondsecond_part1Rest @@ -3221,10 +3227,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(66, 5) Source(5, 1) + SourceIndex(4) @@ -3251,7 +3257,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -3273,7 +3279,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(69, 5) Source(4, 5) + SourceIndex(4) @@ -3282,7 +3288,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(70, 5) Source(5, 1) + SourceIndex(4) @@ -3297,10 +3303,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(71, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(71, 2) Source(5, 2) + SourceIndex(4) @@ -3311,7 +3317,7 @@ sourceFile:../../../second/second_part2.ts 1-> 2 >^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^ -1-> +1-> > > 2 >function @@ -3463,7 +3469,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -3482,7 +3488,7 @@ sourceFile:../../third_part1.ts 2 >^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >function 3 > forthirdthird_part1Rest @@ -3698,7 +3704,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":490,"kind":"emitHelpers","data":"typescript:rest"},{"pos":491,"end":980,"kind":"emitHelpers","data":"typescript:read"},{"pos":981,"end":1361,"kind":"emitHelpers","data":"typescript:spreadArray"},{"pos":1362,"end":1854,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":1362,"end":1854,"kind":"text"}]},{"pos":1854,"end":2522,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":1854,"end":2522,"kind":"text"}]},{"pos":2522,"end":2944,"kind":"text"}],"sources":{"helpers":["typescript:rest","typescript:read","typescript:spreadArray"]},"mapHash":"-62895833357-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE;ACDnD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,IAAM,qBAAqB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACvC,wBAAwB,8BAAC,EAAE,UAAK,qBAAqB,WAAE;ACRvD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE\"}","hash":"-32745783681-var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\nvar s = \"Hello, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nfunction firstfirst_part3Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar firstfirst_part3_ar = [20, 30];\nfirstfirst_part3Spread.apply(void 0, __spreadArray([10], __read(firstfirst_part3_ar), false));\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nfunction forsecondsecond_part1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nfunction secondsecond_part2Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar secondsecond_part2_ar = [20, 30];\nsecondsecond_part2Spread.apply(void 0, __spreadArray([10], __read(secondsecond_part2_ar), false));\nvar c = new C();\nc.doSomething();\nfunction forthirdthird_part1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nfunction thirdthird_part1Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar thirdthird_part1_ar = [20, 30];\nthirdthird_part1Spread.apply(void 0, __spreadArray([10], __read(thirdthird_part1_ar), false));\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":307,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":307,"kind":"text"}]},{"pos":307,"end":564,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":307,"end":564,"kind":"text"}]},{"pos":564,"end":740,"kind":"text"}],"mapHash":"25118173797-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;ACbD,iBAAS,CAAC,WAET;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC;ACJrC,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;AAED,iBAAS,wBAAwB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACrD,QAAA,MAAM,qBAAqB,UAAW,CAAC;ACPvC,QAAA,IAAI,CAAC,GAAU,CAAC;AAEhB,iBAAS,uBAAuB,SAE/B;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC\"}","hash":"-25062717856-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare function firstfirst_part3Spread(...b: number[]): void;\ndeclare const firstfirst_part3_ar: number[];\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\ndeclare function secondsecond_part2Spread(...b: number[]): void;\ndeclare const secondsecond_part2_ar: number[];\ndeclare var c: C;\ndeclare function forthirdthird_part1Rest(): void;\ndeclare function thirdthird_part1Spread(...b: number[]): void;\ndeclare const thirdthird_part1_ar: number[];\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-5875110108-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare function firstfirst_part3Spread(...b: number[]): void;\ndeclare const firstfirst_part3_ar: number[];\n","-21549614962-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\ndeclare function secondsecond_part2Spread(...b: number[]): void;\ndeclare const secondsecond_part2_ar: number[];\n","-1627128876-var c = new C();\r\nc.doSomething();\r\nfunction forthirdthird_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}\nfunction thirdthird_part1Spread(...b: number[]) { }\nconst thirdthird_part1_ar = [20, 30];\nthirdthird_part1Spread(10, ...thirdthird_part1_ar);"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"downlevelIteration":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-21519156314-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare function firstfirst_part3Spread(...b: number[]): void;\ndeclare const firstfirst_part3_ar: number[];\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\ndeclare function secondsecond_part2Spread(...b: number[]): void;\ndeclare const secondsecond_part2_ar: number[];\ndeclare var c: C;\ndeclare function forthirdthird_part1Rest(): void;\ndeclare function thirdthird_part1Spread(...b: number[]): void;\ndeclare const thirdthird_part1_ar: number[];\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":490,"kind":"emitHelpers","data":"typescript:rest"},{"pos":491,"end":980,"kind":"emitHelpers","data":"typescript:read"},{"pos":981,"end":1361,"kind":"emitHelpers","data":"typescript:spreadArray"},{"pos":1362,"end":1854,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":1362,"end":1854,"kind":"text"}]},{"pos":1854,"end":2522,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":1854,"end":2522,"kind":"text"}]},{"pos":2522,"end":2944,"kind":"text"}],"sources":{"helpers":["typescript:rest","typescript:read","typescript:spreadArray"]},"mapHash":"-72824444169-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AAED,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE;ACFnD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,IAAM,qBAAqB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACvC,wBAAwB,8BAAC,EAAE,UAAK,qBAAqB,WAAE;ACRvD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE\"}","hash":"-32745783681-var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\nvar s = \"Hello, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nfunction firstfirst_part3Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar firstfirst_part3_ar = [20, 30];\nfirstfirst_part3Spread.apply(void 0, __spreadArray([10], __read(firstfirst_part3_ar), false));\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nfunction forsecondsecond_part1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nfunction secondsecond_part2Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar secondsecond_part2_ar = [20, 30];\nsecondsecond_part2Spread.apply(void 0, __spreadArray([10], __read(secondsecond_part2_ar), false));\nvar c = new C();\nc.doSomething();\nfunction forthirdthird_part1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nfunction thirdthird_part1Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar thirdthird_part1_ar = [20, 30];\nthirdthird_part1Spread.apply(void 0, __spreadArray([10], __read(thirdthird_part1_ar), false));\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":307,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":307,"kind":"text"}]},{"pos":307,"end":564,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":307,"end":564,"kind":"text"}]},{"pos":564,"end":740,"kind":"text"}],"mapHash":"34622384169-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;ACbD,iBAAS,CAAC,WAET;AAED,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC;ACLrC,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;AAED,iBAAS,wBAAwB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACrD,QAAA,MAAM,qBAAqB,UAAW,CAAC;ACPvC,QAAA,IAAI,CAAC,GAAU,CAAC;AAEhB,iBAAS,uBAAuB,SAE/B;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC\"}","hash":"-25062717856-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare function firstfirst_part3Spread(...b: number[]): void;\ndeclare const firstfirst_part3_ar: number[];\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\ndeclare function secondsecond_part2Spread(...b: number[]): void;\ndeclare const secondsecond_part2_ar: number[];\ndeclare var c: C;\ndeclare function forthirdthird_part1Rest(): void;\ndeclare function thirdthird_part1Spread(...b: number[]): void;\ndeclare const thirdthird_part1_ar: number[];\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-5875110108-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare function firstfirst_part3Spread(...b: number[]): void;\ndeclare const firstfirst_part3_ar: number[];\n","-21549614962-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\ndeclare function secondsecond_part2Spread(...b: number[]): void;\ndeclare const secondsecond_part2_ar: number[];\n","-9658874822-var c = new C();\nc.doSomething();\nfunction forthirdthird_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}\nfunction thirdthird_part1Spread(...b: number[]) { }\nconst thirdthird_part1_ar = [20, 30];\nthirdthird_part1Spread(10, ...thirdthird_part1_ar);"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"downlevelIteration":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-21519156314-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare function firstfirst_part3Spread(...b: number[]): void;\ndeclare const firstfirst_part3_ar: number[];\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\ndeclare function secondsecond_part2Spread(...b: number[]): void;\ndeclare const secondsecond_part2_ar: number[];\ndeclare var c: C;\ndeclare function forthirdthird_part1Rest(): void;\ndeclare function thirdthird_part1Spread(...b: number[]): void;\ndeclare const thirdthird_part1_ar: number[];\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -3917,7 +3923,7 @@ declare const thirdthird_part1_ar: number[]; } ], "hash": "-32745783681-var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\nvar s = \"Hello, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nfunction firstfirst_part3Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar firstfirst_part3_ar = [20, 30];\nfirstfirst_part3Spread.apply(void 0, __spreadArray([10], __read(firstfirst_part3_ar), false));\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nfunction forsecondsecond_part1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nfunction secondsecond_part2Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar secondsecond_part2_ar = [20, 30];\nsecondsecond_part2Spread.apply(void 0, __spreadArray([10], __read(secondsecond_part2_ar), false));\nvar c = new C();\nc.doSomething();\nfunction forthirdthird_part1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nfunction thirdthird_part1Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar thirdthird_part1_ar = [20, 30];\nthirdthird_part1Spread.apply(void 0, __spreadArray([10], __read(thirdthird_part1_ar), false));\n//# sourceMappingURL=third-output.js.map", - "mapHash": "-62895833357-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE;ACDnD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,IAAM,qBAAqB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACvC,wBAAwB,8BAAC,EAAE,UAAK,qBAAqB,WAAE;ACRvD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE\"}", + "mapHash": "-72824444169-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AAED,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE;ACFnD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,IAAM,qBAAqB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACvC,wBAAwB,8BAAC,EAAE,UAAK,qBAAqB,WAAE;ACRvD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE\"}", "sources": { "helpers": [ "typescript:rest", @@ -3961,7 +3967,7 @@ declare const thirdthird_part1_ar: number[]; } ], "hash": "-25062717856-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare function firstfirst_part3Spread(...b: number[]): void;\ndeclare const firstfirst_part3_ar: number[];\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\ndeclare function secondsecond_part2Spread(...b: number[]): void;\ndeclare const secondsecond_part2_ar: number[];\ndeclare var c: C;\ndeclare function forthirdthird_part1Rest(): void;\ndeclare function thirdthird_part1Spread(...b: number[]): void;\ndeclare const thirdthird_part1_ar: number[];\n//# sourceMappingURL=third-output.d.ts.map", - "mapHash": "25118173797-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;ACbD,iBAAS,CAAC,WAET;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC;ACJrC,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;AAED,iBAAS,wBAAwB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACrD,QAAA,MAAM,qBAAqB,UAAW,CAAC;ACPvC,QAAA,IAAI,CAAC,GAAU,CAAC;AAEhB,iBAAS,uBAAuB,SAE/B;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC\"}" + "mapHash": "34622384169-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;ACbD,iBAAS,CAAC,WAET;AAED,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC;ACLrC,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;AAED,iBAAS,wBAAwB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACrD,QAAA,MAAM,qBAAqB,UAAW,CAAC;ACPvC,QAAA,IAAI,CAAC,GAAU,CAAC;AAEhB,iBAAS,uBAAuB,SAE/B;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC\"}" } }, "program": { @@ -3975,7 +3981,7 @@ declare const thirdthird_part1_ar: number[]; "../../../../lib/lib.d.ts": "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; };", "../../../first/bin/first-output.d.ts": "-5875110108-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare function firstfirst_part3Spread(...b: number[]): void;\ndeclare const firstfirst_part3_ar: number[];\n", "../../../2/second-output.d.ts": "-21549614962-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\ndeclare function secondsecond_part2Spread(...b: number[]): void;\ndeclare const secondsecond_part2_ar: number[];\n", - "../../third_part1.ts": "-1627128876-var c = new C();\r\nc.doSomething();\r\nfunction forthirdthird_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}\nfunction thirdthird_part1Spread(...b: number[]) { }\nconst thirdthird_part1_ar = [20, 30];\nthirdthird_part1Spread(10, ...thirdthird_part1_ar);" + "../../third_part1.ts": "-9658874822-var c = new C();\nc.doSomething();\nfunction forthirdthird_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}\nfunction thirdthird_part1Spread(...b: number[]) { }\nconst thirdthird_part1_ar = [20, 30];\nthirdthird_part1Spread(10, ...thirdthird_part1_ar);" }, "root": [ [ @@ -3999,7 +4005,7 @@ declare const thirdthird_part1_ar: number[]; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 10312 + "size": 10308 } @@ -4007,17 +4013,17 @@ declare const thirdthird_part1_ar: number[]; Change:: incremental-declaration-doesnt-change Input:: //// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); function forfirstfirst_PART1Rest() { const { b, ...rest } = { a: 10, b: 30, yy: 30 }; }console.log(s); @@ -4026,20 +4032,20 @@ const { b, ...rest } = { a: 10, b: 30, yy: 30 }; Output:: /lib/tsc --b /src/third --verbose -[12:00:57 AM] Projects in this build: +[12:01:09 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:58 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:01:10 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:00:59 AM] Building project '/src/first/tsconfig.json'... +[12:01:11 AM] Building project '/src/first/tsconfig.json'... -[12:01:07 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part2.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:01:19 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part2.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:08 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:01:20 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:01:09 AM] Updating output of project '/src/third/tsconfig.json'... +[12:01:21 AM] Updating output of project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -4104,7 +4110,7 @@ firstfirst_part3Spread.apply(void 0, __spreadArray([10], __read(firstfirst_part3 //# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACbhB,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE"} +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACbhB,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AAED,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE"} //// [/src/first/bin/first-output.js.map.baseline.txt] =================================================================== @@ -4160,10 +4166,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -4187,12 +4193,12 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -4215,7 +4221,7 @@ sourceFile:../first_PART1.ts 2 >^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >function 3 > forfirstfirst_PART1Rest @@ -4392,7 +4398,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -4406,7 +4412,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(46, 1) Source(3, 1) + SourceIndex(2) @@ -4417,12 +4423,13 @@ sourceFile:../first_part3.ts 2 >^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^ 1-> + > > 2 >function 3 > firstfirst_part3Spread -1->Emitted(47, 1) Source(4, 1) + SourceIndex(2) -2 >Emitted(47, 10) Source(4, 10) + SourceIndex(2) -3 >Emitted(47, 32) Source(4, 32) + SourceIndex(2) +1->Emitted(47, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(47, 10) Source(5, 10) + SourceIndex(2) +3 >Emitted(47, 32) Source(5, 32) + SourceIndex(2) --- >>> var b = []; 1 >^^^^ @@ -4430,8 +4437,8 @@ sourceFile:../first_part3.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >( 2 > ...b: number[] -1 >Emitted(48, 5) Source(4, 33) + SourceIndex(2) -2 >Emitted(48, 16) Source(4, 47) + SourceIndex(2) +1 >Emitted(48, 5) Source(5, 33) + SourceIndex(2) +2 >Emitted(48, 16) Source(5, 47) + SourceIndex(2) --- >>> for (var _i = 0; _i < arguments.length; _i++) { 1->^^^^^^^^^ @@ -4446,20 +4453,20 @@ sourceFile:../first_part3.ts 4 > ...b: number[] 5 > 6 > ...b: number[] -1->Emitted(49, 10) Source(4, 33) + SourceIndex(2) -2 >Emitted(49, 20) Source(4, 47) + SourceIndex(2) -3 >Emitted(49, 22) Source(4, 33) + SourceIndex(2) -4 >Emitted(49, 43) Source(4, 47) + SourceIndex(2) -5 >Emitted(49, 45) Source(4, 33) + SourceIndex(2) -6 >Emitted(49, 49) Source(4, 47) + SourceIndex(2) +1->Emitted(49, 10) Source(5, 33) + SourceIndex(2) +2 >Emitted(49, 20) Source(5, 47) + SourceIndex(2) +3 >Emitted(49, 22) Source(5, 33) + SourceIndex(2) +4 >Emitted(49, 43) Source(5, 47) + SourceIndex(2) +5 >Emitted(49, 45) Source(5, 33) + SourceIndex(2) +6 >Emitted(49, 49) Source(5, 47) + SourceIndex(2) --- >>> b[_i] = arguments[_i]; 1 >^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^ 1 > 2 > ...b: number[] -1 >Emitted(50, 9) Source(4, 33) + SourceIndex(2) -2 >Emitted(50, 31) Source(4, 47) + SourceIndex(2) +1 >Emitted(50, 9) Source(5, 33) + SourceIndex(2) +2 >Emitted(50, 31) Source(5, 47) + SourceIndex(2) --- >>> } >>>} @@ -4468,8 +4475,8 @@ sourceFile:../first_part3.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >) { 2 >} -1 >Emitted(52, 1) Source(4, 51) + SourceIndex(2) -2 >Emitted(52, 2) Source(4, 52) + SourceIndex(2) +1 >Emitted(52, 1) Source(5, 51) + SourceIndex(2) +2 >Emitted(52, 2) Source(5, 52) + SourceIndex(2) --- >>>var firstfirst_part3_ar = [20, 30]; 1-> @@ -4494,16 +4501,16 @@ sourceFile:../first_part3.ts 8 > 30 9 > ] 10> ; -1->Emitted(53, 1) Source(5, 1) + SourceIndex(2) -2 >Emitted(53, 5) Source(5, 7) + SourceIndex(2) -3 >Emitted(53, 24) Source(5, 26) + SourceIndex(2) -4 >Emitted(53, 27) Source(5, 29) + SourceIndex(2) -5 >Emitted(53, 28) Source(5, 30) + SourceIndex(2) -6 >Emitted(53, 30) Source(5, 32) + SourceIndex(2) -7 >Emitted(53, 32) Source(5, 34) + SourceIndex(2) -8 >Emitted(53, 34) Source(5, 36) + SourceIndex(2) -9 >Emitted(53, 35) Source(5, 37) + SourceIndex(2) -10>Emitted(53, 36) Source(5, 38) + SourceIndex(2) +1->Emitted(53, 1) Source(6, 1) + SourceIndex(2) +2 >Emitted(53, 5) Source(6, 7) + SourceIndex(2) +3 >Emitted(53, 24) Source(6, 26) + SourceIndex(2) +4 >Emitted(53, 27) Source(6, 29) + SourceIndex(2) +5 >Emitted(53, 28) Source(6, 30) + SourceIndex(2) +6 >Emitted(53, 30) Source(6, 32) + SourceIndex(2) +7 >Emitted(53, 32) Source(6, 34) + SourceIndex(2) +8 >Emitted(53, 34) Source(6, 36) + SourceIndex(2) +9 >Emitted(53, 35) Source(6, 37) + SourceIndex(2) +10>Emitted(53, 36) Source(6, 38) + SourceIndex(2) --- >>>firstfirst_part3Spread.apply(void 0, __spreadArray([10], __read(firstfirst_part3_ar), false)); 1-> @@ -4521,18 +4528,18 @@ sourceFile:../first_part3.ts 5 > , ... 6 > firstfirst_part3_ar 7 > ); -1->Emitted(54, 1) Source(6, 1) + SourceIndex(2) -2 >Emitted(54, 23) Source(6, 23) + SourceIndex(2) -3 >Emitted(54, 53) Source(6, 24) + SourceIndex(2) -4 >Emitted(54, 55) Source(6, 26) + SourceIndex(2) -5 >Emitted(54, 65) Source(6, 31) + SourceIndex(2) -6 >Emitted(54, 84) Source(6, 50) + SourceIndex(2) -7 >Emitted(54, 95) Source(6, 52) + SourceIndex(2) +1->Emitted(54, 1) Source(7, 1) + SourceIndex(2) +2 >Emitted(54, 23) Source(7, 23) + SourceIndex(2) +3 >Emitted(54, 53) Source(7, 24) + SourceIndex(2) +4 >Emitted(54, 55) Source(7, 26) + SourceIndex(2) +5 >Emitted(54, 65) Source(7, 31) + SourceIndex(2) +6 >Emitted(54, 84) Source(7, 50) + SourceIndex(2) +7 >Emitted(54, 95) Source(7, 52) + SourceIndex(2) --- >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":490,"kind":"emitHelpers","data":"typescript:rest"},{"pos":491,"end":980,"kind":"emitHelpers","data":"typescript:read"},{"pos":981,"end":1361,"kind":"emitHelpers","data":"typescript:spreadArray"},{"pos":1362,"end":1870,"kind":"text"}],"sources":{"helpers":["typescript:rest","typescript:read","typescript:spreadArray"]},"mapHash":"-30182735568-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACbhB,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE\"}","hash":"-26516546737-var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\nvar s = \"Hello, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nfunction firstfirst_part3Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar firstfirst_part3_ar = [20, 30];\nfirstfirst_part3Spread.apply(void 0, __spreadArray([10], __read(firstfirst_part3_ar), false));\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":307,"kind":"text"}],"mapHash":"32680275599-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;AEbD,iBAAS,CAAC,WAET;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC\"}","hash":"-10647290581-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare function firstfirst_part3Spread(...b: number[]): void;\ndeclare const firstfirst_part3_ar: number[];\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-5382108219-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}console.log(s);","4973778178-console.log(f());\r\n","998368782-function f() {\r\n return \"JS does hoists\";\r\n}\nfunction firstfirst_part3Spread(...b: number[]) { }\nconst firstfirst_part3_ar = [20, 30];\nfirstfirst_part3Spread(10, ...firstfirst_part3_ar);"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"downlevelIteration":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-5875110108-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare function firstfirst_part3Spread(...b: number[]): void;\ndeclare const firstfirst_part3_ar: number[];\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":490,"kind":"emitHelpers","data":"typescript:rest"},{"pos":491,"end":980,"kind":"emitHelpers","data":"typescript:read"},{"pos":981,"end":1361,"kind":"emitHelpers","data":"typescript:spreadArray"},{"pos":1362,"end":1870,"kind":"text"}],"sources":{"helpers":["typescript:rest","typescript:read","typescript:spreadArray"]},"mapHash":"-20285768654-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACbhB,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AAED,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE\"}","hash":"-26516546737-var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\nvar s = \"Hello, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nfunction firstfirst_part3Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar firstfirst_part3_ar = [20, 30];\nfirstfirst_part3Spread.apply(void 0, __spreadArray([10], __read(firstfirst_part3_ar), false));\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":307,"kind":"text"}],"mapHash":"11304487505-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;AEbD,iBAAS,CAAC,WAET;AAED,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC\"}","hash":"-10647290581-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare function firstfirst_part3Spread(...b: number[]): void;\ndeclare const firstfirst_part3_ar: number[];\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-25115744362-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}console.log(s);","6007494133-console.log(f());\n","-1751035906-function f() {\n return \"JS does hoists\";\n}\n\nfunction firstfirst_part3Spread(...b: number[]) { }\nconst firstfirst_part3_ar = [20, 30];\nfirstfirst_part3Spread(10, ...firstfirst_part3_ar);"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"downlevelIteration":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-5875110108-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare function firstfirst_part3Spread(...b: number[]): void;\ndeclare const firstfirst_part3_ar: number[];\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -4655,7 +4662,7 @@ declare const firstfirst_part3_ar: number[]; } ], "hash": "-26516546737-var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\nvar s = \"Hello, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nfunction firstfirst_part3Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar firstfirst_part3_ar = [20, 30];\nfirstfirst_part3Spread.apply(void 0, __spreadArray([10], __read(firstfirst_part3_ar), false));\n//# sourceMappingURL=first-output.js.map", - "mapHash": "-30182735568-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACbhB,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE\"}", + "mapHash": "-20285768654-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACbhB,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AAED,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE\"}", "sources": { "helpers": [ "typescript:rest", @@ -4673,7 +4680,7 @@ declare const firstfirst_part3_ar: number[]; } ], "hash": "-10647290581-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare function firstfirst_part3Spread(...b: number[]): void;\ndeclare const firstfirst_part3_ar: number[];\n//# sourceMappingURL=first-output.d.ts.map", - "mapHash": "32680275599-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;AEbD,iBAAS,CAAC,WAET;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC\"}" + "mapHash": "11304487505-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;AEbD,iBAAS,CAAC,WAET;AAED,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC\"}" } }, "program": { @@ -4685,9 +4692,9 @@ declare const firstfirst_part3_ar: number[]; ], "fileInfos": { "../../../lib/lib.d.ts": "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; };", - "../first_part1.ts": "-5382108219-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}console.log(s);", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "998368782-function f() {\r\n return \"JS does hoists\";\r\n}\nfunction firstfirst_part3Spread(...b: number[]) { }\nconst firstfirst_part3_ar = [20, 30];\nfirstfirst_part3Spread(10, ...firstfirst_part3_ar);" + "../first_part1.ts": "-25115744362-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}console.log(s);", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "-1751035906-function f() {\n return \"JS does hoists\";\n}\n\nfunction firstfirst_part3Spread(...b: number[]) { }\nconst firstfirst_part3_ar = [20, 30];\nfirstfirst_part3Spread(10, ...firstfirst_part3_ar);" }, "root": [ [ @@ -4717,7 +4724,7 @@ declare const firstfirst_part3_ar: number[]; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 5865 + "size": 5842 } //// [/src/third/thirdjs/output/third-output.js] @@ -4817,7 +4824,7 @@ thirdthird_part1Spread.apply(void 0, __spreadArray([10], __read(thirdthird_part1 //# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACbhB,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE;ACDnD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,IAAM,qBAAqB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACvC,wBAAwB,8BAAC,EAAE,UAAK,qBAAqB,WAAE;ACRvD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE"} +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACbhB,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AAED,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE;ACFnD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,IAAM,qBAAqB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACvC,wBAAwB,8BAAC,EAAE,UAAK,qBAAqB,WAAE;ACRvD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE"} //// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] =================================================================== @@ -4873,10 +4880,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -4900,12 +4907,12 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -4928,7 +4935,7 @@ sourceFile:../../../first/first_PART1.ts 2 >^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >function 3 > forfirstfirst_PART1Rest @@ -5105,7 +5112,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -5119,7 +5126,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(46, 1) Source(3, 1) + SourceIndex(2) @@ -5130,12 +5137,13 @@ sourceFile:../../../first/first_part3.ts 2 >^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^ 1-> + > > 2 >function 3 > firstfirst_part3Spread -1->Emitted(47, 1) Source(4, 1) + SourceIndex(2) -2 >Emitted(47, 10) Source(4, 10) + SourceIndex(2) -3 >Emitted(47, 32) Source(4, 32) + SourceIndex(2) +1->Emitted(47, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(47, 10) Source(5, 10) + SourceIndex(2) +3 >Emitted(47, 32) Source(5, 32) + SourceIndex(2) --- >>> var b = []; 1 >^^^^ @@ -5143,8 +5151,8 @@ sourceFile:../../../first/first_part3.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >( 2 > ...b: number[] -1 >Emitted(48, 5) Source(4, 33) + SourceIndex(2) -2 >Emitted(48, 16) Source(4, 47) + SourceIndex(2) +1 >Emitted(48, 5) Source(5, 33) + SourceIndex(2) +2 >Emitted(48, 16) Source(5, 47) + SourceIndex(2) --- >>> for (var _i = 0; _i < arguments.length; _i++) { 1->^^^^^^^^^ @@ -5159,20 +5167,20 @@ sourceFile:../../../first/first_part3.ts 4 > ...b: number[] 5 > 6 > ...b: number[] -1->Emitted(49, 10) Source(4, 33) + SourceIndex(2) -2 >Emitted(49, 20) Source(4, 47) + SourceIndex(2) -3 >Emitted(49, 22) Source(4, 33) + SourceIndex(2) -4 >Emitted(49, 43) Source(4, 47) + SourceIndex(2) -5 >Emitted(49, 45) Source(4, 33) + SourceIndex(2) -6 >Emitted(49, 49) Source(4, 47) + SourceIndex(2) +1->Emitted(49, 10) Source(5, 33) + SourceIndex(2) +2 >Emitted(49, 20) Source(5, 47) + SourceIndex(2) +3 >Emitted(49, 22) Source(5, 33) + SourceIndex(2) +4 >Emitted(49, 43) Source(5, 47) + SourceIndex(2) +5 >Emitted(49, 45) Source(5, 33) + SourceIndex(2) +6 >Emitted(49, 49) Source(5, 47) + SourceIndex(2) --- >>> b[_i] = arguments[_i]; 1 >^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^ 1 > 2 > ...b: number[] -1 >Emitted(50, 9) Source(4, 33) + SourceIndex(2) -2 >Emitted(50, 31) Source(4, 47) + SourceIndex(2) +1 >Emitted(50, 9) Source(5, 33) + SourceIndex(2) +2 >Emitted(50, 31) Source(5, 47) + SourceIndex(2) --- >>> } >>>} @@ -5181,8 +5189,8 @@ sourceFile:../../../first/first_part3.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >) { 2 >} -1 >Emitted(52, 1) Source(4, 51) + SourceIndex(2) -2 >Emitted(52, 2) Source(4, 52) + SourceIndex(2) +1 >Emitted(52, 1) Source(5, 51) + SourceIndex(2) +2 >Emitted(52, 2) Source(5, 52) + SourceIndex(2) --- >>>var firstfirst_part3_ar = [20, 30]; 1-> @@ -5207,16 +5215,16 @@ sourceFile:../../../first/first_part3.ts 8 > 30 9 > ] 10> ; -1->Emitted(53, 1) Source(5, 1) + SourceIndex(2) -2 >Emitted(53, 5) Source(5, 7) + SourceIndex(2) -3 >Emitted(53, 24) Source(5, 26) + SourceIndex(2) -4 >Emitted(53, 27) Source(5, 29) + SourceIndex(2) -5 >Emitted(53, 28) Source(5, 30) + SourceIndex(2) -6 >Emitted(53, 30) Source(5, 32) + SourceIndex(2) -7 >Emitted(53, 32) Source(5, 34) + SourceIndex(2) -8 >Emitted(53, 34) Source(5, 36) + SourceIndex(2) -9 >Emitted(53, 35) Source(5, 37) + SourceIndex(2) -10>Emitted(53, 36) Source(5, 38) + SourceIndex(2) +1->Emitted(53, 1) Source(6, 1) + SourceIndex(2) +2 >Emitted(53, 5) Source(6, 7) + SourceIndex(2) +3 >Emitted(53, 24) Source(6, 26) + SourceIndex(2) +4 >Emitted(53, 27) Source(6, 29) + SourceIndex(2) +5 >Emitted(53, 28) Source(6, 30) + SourceIndex(2) +6 >Emitted(53, 30) Source(6, 32) + SourceIndex(2) +7 >Emitted(53, 32) Source(6, 34) + SourceIndex(2) +8 >Emitted(53, 34) Source(6, 36) + SourceIndex(2) +9 >Emitted(53, 35) Source(6, 37) + SourceIndex(2) +10>Emitted(53, 36) Source(6, 38) + SourceIndex(2) --- >>>firstfirst_part3Spread.apply(void 0, __spreadArray([10], __read(firstfirst_part3_ar), false)); 1-> @@ -5234,13 +5242,13 @@ sourceFile:../../../first/first_part3.ts 5 > , ... 6 > firstfirst_part3_ar 7 > ); -1->Emitted(54, 1) Source(6, 1) + SourceIndex(2) -2 >Emitted(54, 23) Source(6, 23) + SourceIndex(2) -3 >Emitted(54, 53) Source(6, 24) + SourceIndex(2) -4 >Emitted(54, 55) Source(6, 26) + SourceIndex(2) -5 >Emitted(54, 65) Source(6, 31) + SourceIndex(2) -6 >Emitted(54, 84) Source(6, 50) + SourceIndex(2) -7 >Emitted(54, 95) Source(6, 52) + SourceIndex(2) +1->Emitted(54, 1) Source(7, 1) + SourceIndex(2) +2 >Emitted(54, 23) Source(7, 23) + SourceIndex(2) +3 >Emitted(54, 53) Source(7, 24) + SourceIndex(2) +4 >Emitted(54, 55) Source(7, 26) + SourceIndex(2) +5 >Emitted(54, 65) Source(7, 31) + SourceIndex(2) +6 >Emitted(54, 84) Source(7, 50) + SourceIndex(2) +7 >Emitted(54, 95) Source(7, 52) + SourceIndex(2) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.js @@ -5252,19 +5260,19 @@ sourceFile:../../../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1 >namespace N { - > // Comment text - >} - > +1 >namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1 >Emitted(55, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(55, 5) Source(5, 11) + SourceIndex(3) @@ -5288,7 +5296,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -5305,7 +5313,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -5327,7 +5335,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(59, 5) Source(8, 5) + SourceIndex(3) @@ -5339,8 +5347,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -5359,19 +5367,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(61, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(61, 2) Source(11, 2) + SourceIndex(3) @@ -5386,7 +5394,7 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >function 3 > forsecondsecond_part1Rest @@ -5502,10 +5510,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(67, 5) Source(5, 1) + SourceIndex(4) @@ -5532,7 +5540,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -5554,7 +5562,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(70, 5) Source(4, 5) + SourceIndex(4) @@ -5563,7 +5571,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(71, 5) Source(5, 1) + SourceIndex(4) @@ -5578,10 +5586,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(72, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(72, 2) Source(5, 2) + SourceIndex(4) @@ -5592,7 +5600,7 @@ sourceFile:../../../second/second_part2.ts 1-> 2 >^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^ -1-> +1-> > > 2 >function @@ -5744,7 +5752,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -5763,7 +5771,7 @@ sourceFile:../../third_part1.ts 2 >^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >function 3 > forthirdthird_part1Rest @@ -5979,7 +5987,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":490,"kind":"emitHelpers","data":"typescript:rest"},{"pos":491,"end":980,"kind":"emitHelpers","data":"typescript:read"},{"pos":981,"end":1361,"kind":"emitHelpers","data":"typescript:spreadArray"},{"pos":1362,"end":1870,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":1362,"end":1870,"kind":"text"}]},{"pos":1870,"end":2538,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":1870,"end":2538,"kind":"text"}]},{"pos":2538,"end":2960,"kind":"text"}],"mapHash":"5963265220-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACbhB,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE;ACDnD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,IAAM,qBAAqB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACvC,wBAAwB,8BAAC,EAAE,UAAK,qBAAqB,WAAE;ACRvD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE\"}","hash":"-65318968533-var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\nvar s = \"Hello, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nfunction firstfirst_part3Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar firstfirst_part3_ar = [20, 30];\nfirstfirst_part3Spread.apply(void 0, __spreadArray([10], __read(firstfirst_part3_ar), false));\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nfunction forsecondsecond_part1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nfunction secondsecond_part2Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar secondsecond_part2_ar = [20, 30];\nsecondsecond_part2Spread.apply(void 0, __spreadArray([10], __read(secondsecond_part2_ar), false));\nvar c = new C();\nc.doSomething();\nfunction forthirdthird_part1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nfunction thirdthird_part1Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar thirdthird_part1_ar = [20, 30];\nthirdthird_part1Spread.apply(void 0, __spreadArray([10], __read(thirdthird_part1_ar), false));\n//# sourceMappingURL=third-output.js.map","sources":{"helpers":["typescript:rest","typescript:read","typescript:spreadArray"]}},"dts":{"sections":[{"pos":0,"end":307,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":307,"kind":"text"}]},{"pos":307,"end":564,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":307,"end":564,"kind":"text"}]},{"pos":564,"end":740,"kind":"text"}],"mapHash":"25118173797-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;ACbD,iBAAS,CAAC,WAET;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC;ACJrC,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;AAED,iBAAS,wBAAwB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACrD,QAAA,MAAM,qBAAqB,UAAW,CAAC;ACPvC,QAAA,IAAI,CAAC,GAAU,CAAC;AAEhB,iBAAS,uBAAuB,SAE/B;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC\"}","hash":"-25062717856-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare function firstfirst_part3Spread(...b: number[]): void;\ndeclare const firstfirst_part3_ar: number[];\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\ndeclare function secondsecond_part2Spread(...b: number[]): void;\ndeclare const secondsecond_part2_ar: number[];\ndeclare var c: C;\ndeclare function forthirdthird_part1Rest(): void;\ndeclare function thirdthird_part1Spread(...b: number[]): void;\ndeclare const thirdthird_part1_ar: number[];\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-5875110108-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare function firstfirst_part3Spread(...b: number[]): void;\ndeclare const firstfirst_part3_ar: number[];\n","-21549614962-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\ndeclare function secondsecond_part2Spread(...b: number[]): void;\ndeclare const secondsecond_part2_ar: number[];\n","-1627128876-var c = new C();\r\nc.doSomething();\r\nfunction forthirdthird_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}\nfunction thirdthird_part1Spread(...b: number[]) { }\nconst thirdthird_part1_ar = [20, 30];\nthirdthird_part1Spread(10, ...thirdthird_part1_ar);"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"downlevelIteration":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-21519156314-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare function firstfirst_part3Spread(...b: number[]): void;\ndeclare const firstfirst_part3_ar: number[];\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\ndeclare function secondsecond_part2Spread(...b: number[]): void;\ndeclare const secondsecond_part2_ar: number[];\ndeclare var c: C;\ndeclare function forthirdthird_part1Rest(): void;\ndeclare function thirdthird_part1Spread(...b: number[]): void;\ndeclare const thirdthird_part1_ar: number[];\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":490,"kind":"emitHelpers","data":"typescript:rest"},{"pos":491,"end":980,"kind":"emitHelpers","data":"typescript:read"},{"pos":981,"end":1361,"kind":"emitHelpers","data":"typescript:spreadArray"},{"pos":1362,"end":1870,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":1362,"end":1870,"kind":"text"}]},{"pos":1870,"end":2538,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":1870,"end":2538,"kind":"text"}]},{"pos":2538,"end":2960,"kind":"text"}],"mapHash":"17509490888-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACbhB,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AAED,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE;ACFnD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,IAAM,qBAAqB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACvC,wBAAwB,8BAAC,EAAE,UAAK,qBAAqB,WAAE;ACRvD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE\"}","hash":"-65318968533-var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\nvar s = \"Hello, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nfunction firstfirst_part3Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar firstfirst_part3_ar = [20, 30];\nfirstfirst_part3Spread.apply(void 0, __spreadArray([10], __read(firstfirst_part3_ar), false));\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nfunction forsecondsecond_part1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nfunction secondsecond_part2Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar secondsecond_part2_ar = [20, 30];\nsecondsecond_part2Spread.apply(void 0, __spreadArray([10], __read(secondsecond_part2_ar), false));\nvar c = new C();\nc.doSomething();\nfunction forthirdthird_part1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nfunction thirdthird_part1Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar thirdthird_part1_ar = [20, 30];\nthirdthird_part1Spread.apply(void 0, __spreadArray([10], __read(thirdthird_part1_ar), false));\n//# sourceMappingURL=third-output.js.map","sources":{"helpers":["typescript:rest","typescript:read","typescript:spreadArray"]}},"dts":{"sections":[{"pos":0,"end":307,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":307,"kind":"text"}]},{"pos":307,"end":564,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":307,"end":564,"kind":"text"}]},{"pos":564,"end":740,"kind":"text"}],"mapHash":"34622384169-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;ACbD,iBAAS,CAAC,WAET;AAED,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC;ACLrC,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;AAED,iBAAS,wBAAwB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACrD,QAAA,MAAM,qBAAqB,UAAW,CAAC;ACPvC,QAAA,IAAI,CAAC,GAAU,CAAC;AAEhB,iBAAS,uBAAuB,SAE/B;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC\"}","hash":"-25062717856-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare function firstfirst_part3Spread(...b: number[]): void;\ndeclare const firstfirst_part3_ar: number[];\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\ndeclare function secondsecond_part2Spread(...b: number[]): void;\ndeclare const secondsecond_part2_ar: number[];\ndeclare var c: C;\ndeclare function forthirdthird_part1Rest(): void;\ndeclare function thirdthird_part1Spread(...b: number[]): void;\ndeclare const thirdthird_part1_ar: number[];\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-5875110108-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare function firstfirst_part3Spread(...b: number[]): void;\ndeclare const firstfirst_part3_ar: number[];\n","-21549614962-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\ndeclare function secondsecond_part2Spread(...b: number[]): void;\ndeclare const secondsecond_part2_ar: number[];\n","-9658874822-var c = new C();\nc.doSomething();\nfunction forthirdthird_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}\nfunction thirdthird_part1Spread(...b: number[]) { }\nconst thirdthird_part1_ar = [20, 30];\nthirdthird_part1Spread(10, ...thirdthird_part1_ar);"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"downlevelIteration":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-21519156314-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare function firstfirst_part3Spread(...b: number[]): void;\ndeclare const firstfirst_part3_ar: number[];\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\ndeclare function secondsecond_part2Spread(...b: number[]): void;\ndeclare const secondsecond_part2_ar: number[];\ndeclare var c: C;\ndeclare function forthirdthird_part1Rest(): void;\ndeclare function thirdthird_part1Spread(...b: number[]): void;\ndeclare const thirdthird_part1_ar: number[];\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -6199,7 +6207,7 @@ declare const thirdthird_part1_ar: number[]; } ], "hash": "-65318968533-var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\nvar s = \"Hello, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nfunction firstfirst_part3Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar firstfirst_part3_ar = [20, 30];\nfirstfirst_part3Spread.apply(void 0, __spreadArray([10], __read(firstfirst_part3_ar), false));\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nfunction forsecondsecond_part1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nfunction secondsecond_part2Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar secondsecond_part2_ar = [20, 30];\nsecondsecond_part2Spread.apply(void 0, __spreadArray([10], __read(secondsecond_part2_ar), false));\nvar c = new C();\nc.doSomething();\nfunction forthirdthird_part1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nfunction thirdthird_part1Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar thirdthird_part1_ar = [20, 30];\nthirdthird_part1Spread.apply(void 0, __spreadArray([10], __read(thirdthird_part1_ar), false));\n//# sourceMappingURL=third-output.js.map", - "mapHash": "5963265220-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACbhB,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE;ACDnD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,IAAM,qBAAqB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACvC,wBAAwB,8BAAC,EAAE,UAAK,qBAAqB,WAAE;ACRvD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE\"}", + "mapHash": "17509490888-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACbhB,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AAED,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE;ACFnD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,IAAM,qBAAqB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACvC,wBAAwB,8BAAC,EAAE,UAAK,qBAAqB,WAAE;ACRvD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE\"}", "sources": { "helpers": [ "typescript:rest", @@ -6243,7 +6251,7 @@ declare const thirdthird_part1_ar: number[]; } ], "hash": "-25062717856-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare function firstfirst_part3Spread(...b: number[]): void;\ndeclare const firstfirst_part3_ar: number[];\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\ndeclare function secondsecond_part2Spread(...b: number[]): void;\ndeclare const secondsecond_part2_ar: number[];\ndeclare var c: C;\ndeclare function forthirdthird_part1Rest(): void;\ndeclare function thirdthird_part1Spread(...b: number[]): void;\ndeclare const thirdthird_part1_ar: number[];\n//# sourceMappingURL=third-output.d.ts.map", - "mapHash": "25118173797-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;ACbD,iBAAS,CAAC,WAET;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC;ACJrC,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;AAED,iBAAS,wBAAwB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACrD,QAAA,MAAM,qBAAqB,UAAW,CAAC;ACPvC,QAAA,IAAI,CAAC,GAAU,CAAC;AAEhB,iBAAS,uBAAuB,SAE/B;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC\"}" + "mapHash": "34622384169-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;ACbD,iBAAS,CAAC,WAET;AAED,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC;ACLrC,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;AAED,iBAAS,wBAAwB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACrD,QAAA,MAAM,qBAAqB,UAAW,CAAC;ACPvC,QAAA,IAAI,CAAC,GAAU,CAAC;AAEhB,iBAAS,uBAAuB,SAE/B;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC\"}" } }, "program": { @@ -6257,7 +6265,7 @@ declare const thirdthird_part1_ar: number[]; "../../../../lib/lib.d.ts": "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; };", "../../../first/bin/first-output.d.ts": "-5875110108-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare function firstfirst_part3Spread(...b: number[]): void;\ndeclare const firstfirst_part3_ar: number[];\n", "../../../2/second-output.d.ts": "-21549614962-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\ndeclare function secondsecond_part2Spread(...b: number[]): void;\ndeclare const secondsecond_part2_ar: number[];\n", - "../../third_part1.ts": "-1627128876-var c = new C();\r\nc.doSomething();\r\nfunction forthirdthird_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}\nfunction thirdthird_part1Spread(...b: number[]) { }\nconst thirdthird_part1_ar = [20, 30];\nthirdthird_part1Spread(10, ...thirdthird_part1_ar);" + "../../third_part1.ts": "-9658874822-var c = new C();\nc.doSomething();\nfunction forthirdthird_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}\nfunction thirdthird_part1Spread(...b: number[]) { }\nconst thirdthird_part1_ar = [20, 30];\nthirdthird_part1Spread(10, ...thirdthird_part1_ar);" }, "root": [ [ @@ -6281,7 +6289,7 @@ declare const thirdthird_part1_ar: number[]; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 10368 + "size": 10365 } @@ -6289,43 +6297,43 @@ declare const thirdthird_part1_ar: number[]; Change:: incremental-headers-change-without-dts-changes Input:: //// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); function forfirstfirst_PART1Rest() { }console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:01:20 AM] Projects in this build: +[12:01:32 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:01:21 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:01:33 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:01:22 AM] Building project '/src/first/tsconfig.json'... +[12:01:34 AM] Building project '/src/first/tsconfig.json'... -[12:01:30 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part2.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:01:42 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part2.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:31 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:01:43 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:01:32 AM] Updating output of project '/src/third/tsconfig.json'... +[12:01:44 AM] Updating output of project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success //// [/src/first/bin/first-output.d.ts.map] -{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;AEXtC,iBAAS,CAAC,WAET;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC"} +{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;AEXtC,iBAAS,CAAC,WAET;AAED,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC"} //// [/src/first/bin/first-output.d.ts.map.baseline.txt] =================================================================== @@ -6355,7 +6363,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -6370,7 +6378,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -6381,8 +6389,8 @@ sourceFile:../first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -6400,8 +6408,8 @@ sourceFile:../first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -6415,7 +6423,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -6430,7 +6438,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -6439,9 +6447,9 @@ sourceFile:../first_PART1.ts 2 >^^^^^^^^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^ -1-> - > - >console.log(s); +1-> + > + >console.log(s); > 2 >function 3 > forfirstfirst_PART1Rest @@ -6464,8 +6472,8 @@ sourceFile:../first_part3.ts 1 > 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) 2 >Emitted(9, 18) Source(1, 10) + SourceIndex(2) @@ -6483,6 +6491,7 @@ sourceFile:../first_part3.ts 8 > ^^ 9 > ^^^^^^^^ 1-> + > > 2 >function 3 > firstfirst_part3Spread @@ -6492,15 +6501,15 @@ sourceFile:../first_part3.ts 7 > number 8 > [] 9 > ) { } -1->Emitted(10, 1) Source(4, 1) + SourceIndex(2) -2 >Emitted(10, 18) Source(4, 10) + SourceIndex(2) -3 >Emitted(10, 40) Source(4, 32) + SourceIndex(2) -4 >Emitted(10, 41) Source(4, 33) + SourceIndex(2) -5 >Emitted(10, 44) Source(4, 36) + SourceIndex(2) -6 >Emitted(10, 47) Source(4, 39) + SourceIndex(2) -7 >Emitted(10, 53) Source(4, 45) + SourceIndex(2) -8 >Emitted(10, 55) Source(4, 47) + SourceIndex(2) -9 >Emitted(10, 63) Source(4, 52) + SourceIndex(2) +1->Emitted(10, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(10, 18) Source(5, 10) + SourceIndex(2) +3 >Emitted(10, 40) Source(5, 32) + SourceIndex(2) +4 >Emitted(10, 41) Source(5, 33) + SourceIndex(2) +5 >Emitted(10, 44) Source(5, 36) + SourceIndex(2) +6 >Emitted(10, 47) Source(5, 39) + SourceIndex(2) +7 >Emitted(10, 53) Source(5, 45) + SourceIndex(2) +8 >Emitted(10, 55) Source(5, 47) + SourceIndex(2) +9 >Emitted(10, 63) Source(5, 52) + SourceIndex(2) --- >>>declare const firstfirst_part3_ar: number[]; 1 > @@ -6516,12 +6525,12 @@ sourceFile:../first_part3.ts 4 > firstfirst_part3_ar 5 > = [20, 30] 6 > ; -1 >Emitted(11, 1) Source(5, 1) + SourceIndex(2) -2 >Emitted(11, 9) Source(5, 1) + SourceIndex(2) -3 >Emitted(11, 15) Source(5, 7) + SourceIndex(2) -4 >Emitted(11, 34) Source(5, 26) + SourceIndex(2) -5 >Emitted(11, 44) Source(5, 37) + SourceIndex(2) -6 >Emitted(11, 45) Source(5, 38) + SourceIndex(2) +1 >Emitted(11, 1) Source(6, 1) + SourceIndex(2) +2 >Emitted(11, 9) Source(6, 1) + SourceIndex(2) +3 >Emitted(11, 15) Source(6, 7) + SourceIndex(2) +4 >Emitted(11, 34) Source(6, 26) + SourceIndex(2) +5 >Emitted(11, 44) Source(6, 37) + SourceIndex(2) +6 >Emitted(11, 45) Source(6, 38) + SourceIndex(2) --- >>>//# sourceMappingURL=first-output.d.ts.map @@ -6570,7 +6579,7 @@ firstfirst_part3Spread.apply(void 0, __spreadArray([10], __read(firstfirst_part3 //# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXrD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE"} +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXrD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AAED,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE"} //// [/src/first/bin/first-output.js.map.baseline.txt] =================================================================== @@ -6615,10 +6624,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -6642,12 +6651,12 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -6671,7 +6680,7 @@ sourceFile:../first_PART1.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^ 5 > ^ -1-> +1-> > 2 >function 3 > forfirstfirst_PART1Rest @@ -6764,7 +6773,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -6778,7 +6787,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(33, 1) Source(3, 1) + SourceIndex(2) @@ -6789,12 +6798,13 @@ sourceFile:../first_part3.ts 2 >^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^ 1-> + > > 2 >function 3 > firstfirst_part3Spread -1->Emitted(34, 1) Source(4, 1) + SourceIndex(2) -2 >Emitted(34, 10) Source(4, 10) + SourceIndex(2) -3 >Emitted(34, 32) Source(4, 32) + SourceIndex(2) +1->Emitted(34, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(34, 10) Source(5, 10) + SourceIndex(2) +3 >Emitted(34, 32) Source(5, 32) + SourceIndex(2) --- >>> var b = []; 1 >^^^^ @@ -6802,8 +6812,8 @@ sourceFile:../first_part3.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >( 2 > ...b: number[] -1 >Emitted(35, 5) Source(4, 33) + SourceIndex(2) -2 >Emitted(35, 16) Source(4, 47) + SourceIndex(2) +1 >Emitted(35, 5) Source(5, 33) + SourceIndex(2) +2 >Emitted(35, 16) Source(5, 47) + SourceIndex(2) --- >>> for (var _i = 0; _i < arguments.length; _i++) { 1->^^^^^^^^^ @@ -6818,20 +6828,20 @@ sourceFile:../first_part3.ts 4 > ...b: number[] 5 > 6 > ...b: number[] -1->Emitted(36, 10) Source(4, 33) + SourceIndex(2) -2 >Emitted(36, 20) Source(4, 47) + SourceIndex(2) -3 >Emitted(36, 22) Source(4, 33) + SourceIndex(2) -4 >Emitted(36, 43) Source(4, 47) + SourceIndex(2) -5 >Emitted(36, 45) Source(4, 33) + SourceIndex(2) -6 >Emitted(36, 49) Source(4, 47) + SourceIndex(2) +1->Emitted(36, 10) Source(5, 33) + SourceIndex(2) +2 >Emitted(36, 20) Source(5, 47) + SourceIndex(2) +3 >Emitted(36, 22) Source(5, 33) + SourceIndex(2) +4 >Emitted(36, 43) Source(5, 47) + SourceIndex(2) +5 >Emitted(36, 45) Source(5, 33) + SourceIndex(2) +6 >Emitted(36, 49) Source(5, 47) + SourceIndex(2) --- >>> b[_i] = arguments[_i]; 1 >^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^ 1 > 2 > ...b: number[] -1 >Emitted(37, 9) Source(4, 33) + SourceIndex(2) -2 >Emitted(37, 31) Source(4, 47) + SourceIndex(2) +1 >Emitted(37, 9) Source(5, 33) + SourceIndex(2) +2 >Emitted(37, 31) Source(5, 47) + SourceIndex(2) --- >>> } >>>} @@ -6840,8 +6850,8 @@ sourceFile:../first_part3.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >) { 2 >} -1 >Emitted(39, 1) Source(4, 51) + SourceIndex(2) -2 >Emitted(39, 2) Source(4, 52) + SourceIndex(2) +1 >Emitted(39, 1) Source(5, 51) + SourceIndex(2) +2 >Emitted(39, 2) Source(5, 52) + SourceIndex(2) --- >>>var firstfirst_part3_ar = [20, 30]; 1-> @@ -6866,16 +6876,16 @@ sourceFile:../first_part3.ts 8 > 30 9 > ] 10> ; -1->Emitted(40, 1) Source(5, 1) + SourceIndex(2) -2 >Emitted(40, 5) Source(5, 7) + SourceIndex(2) -3 >Emitted(40, 24) Source(5, 26) + SourceIndex(2) -4 >Emitted(40, 27) Source(5, 29) + SourceIndex(2) -5 >Emitted(40, 28) Source(5, 30) + SourceIndex(2) -6 >Emitted(40, 30) Source(5, 32) + SourceIndex(2) -7 >Emitted(40, 32) Source(5, 34) + SourceIndex(2) -8 >Emitted(40, 34) Source(5, 36) + SourceIndex(2) -9 >Emitted(40, 35) Source(5, 37) + SourceIndex(2) -10>Emitted(40, 36) Source(5, 38) + SourceIndex(2) +1->Emitted(40, 1) Source(6, 1) + SourceIndex(2) +2 >Emitted(40, 5) Source(6, 7) + SourceIndex(2) +3 >Emitted(40, 24) Source(6, 26) + SourceIndex(2) +4 >Emitted(40, 27) Source(6, 29) + SourceIndex(2) +5 >Emitted(40, 28) Source(6, 30) + SourceIndex(2) +6 >Emitted(40, 30) Source(6, 32) + SourceIndex(2) +7 >Emitted(40, 32) Source(6, 34) + SourceIndex(2) +8 >Emitted(40, 34) Source(6, 36) + SourceIndex(2) +9 >Emitted(40, 35) Source(6, 37) + SourceIndex(2) +10>Emitted(40, 36) Source(6, 38) + SourceIndex(2) --- >>>firstfirst_part3Spread.apply(void 0, __spreadArray([10], __read(firstfirst_part3_ar), false)); 1-> @@ -6893,18 +6903,18 @@ sourceFile:../first_part3.ts 5 > , ... 6 > firstfirst_part3_ar 7 > ); -1->Emitted(41, 1) Source(6, 1) + SourceIndex(2) -2 >Emitted(41, 23) Source(6, 23) + SourceIndex(2) -3 >Emitted(41, 53) Source(6, 24) + SourceIndex(2) -4 >Emitted(41, 55) Source(6, 26) + SourceIndex(2) -5 >Emitted(41, 65) Source(6, 31) + SourceIndex(2) -6 >Emitted(41, 84) Source(6, 50) + SourceIndex(2) -7 >Emitted(41, 95) Source(6, 52) + SourceIndex(2) +1->Emitted(41, 1) Source(7, 1) + SourceIndex(2) +2 >Emitted(41, 23) Source(7, 23) + SourceIndex(2) +3 >Emitted(41, 53) Source(7, 24) + SourceIndex(2) +4 >Emitted(41, 55) Source(7, 26) + SourceIndex(2) +5 >Emitted(41, 65) Source(7, 31) + SourceIndex(2) +6 >Emitted(41, 84) Source(7, 50) + SourceIndex(2) +7 >Emitted(41, 95) Source(7, 52) + SourceIndex(2) --- >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":489,"kind":"emitHelpers","data":"typescript:read"},{"pos":490,"end":870,"kind":"emitHelpers","data":"typescript:spreadArray"},{"pos":871,"end":1304,"kind":"text"}],"sources":{"helpers":["typescript:read","typescript:spreadArray"]},"mapHash":"-26203276582-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXrD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE\"}","hash":"71257392207-var __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\nvar s = \"Hello, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() { }\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nfunction firstfirst_part3Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar firstfirst_part3_ar = [20, 30];\nfirstfirst_part3Spread.apply(void 0, __spreadArray([10], __read(firstfirst_part3_ar), false));\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":307,"kind":"text"}],"mapHash":"8802529616-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;AEXtC,iBAAS,CAAC,WAET;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC\"}","hash":"-10647290581-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare function firstfirst_part3Spread(...b: number[]): void;\ndeclare const firstfirst_part3_ar: number[];\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","1776071466-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() { }console.log(s);","4973778178-console.log(f());\r\n","998368782-function f() {\r\n return \"JS does hoists\";\r\n}\nfunction firstfirst_part3Spread(...b: number[]) { }\nconst firstfirst_part3_ar = [20, 30];\nfirstfirst_part3Spread(10, ...firstfirst_part3_ar);"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"downlevelIteration":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-5875110108-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare function firstfirst_part3Spread(...b: number[]): void;\ndeclare const firstfirst_part3_ar: number[];\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":489,"kind":"emitHelpers","data":"typescript:read"},{"pos":490,"end":870,"kind":"emitHelpers","data":"typescript:spreadArray"},{"pos":871,"end":1304,"kind":"text"}],"sources":{"helpers":["typescript:read","typescript:spreadArray"]},"mapHash":"-7716375076-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXrD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AAED,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE\"}","hash":"71257392207-var __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\nvar s = \"Hello, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() { }\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nfunction firstfirst_part3Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar firstfirst_part3_ar = [20, 30];\nfirstfirst_part3Spread.apply(void 0, __spreadArray([10], __read(firstfirst_part3_ar), false));\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":307,"kind":"text"}],"mapHash":"21786479890-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;AEXtC,iBAAS,CAAC,WAET;AAED,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC\"}","hash":"-10647290581-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare function firstfirst_part3Spread(...b: number[]): void;\ndeclare const firstfirst_part3_ar: number[];\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-20328557861-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() { }console.log(s);","6007494133-console.log(f());\n","-1751035906-function f() {\n return \"JS does hoists\";\n}\n\nfunction firstfirst_part3Spread(...b: number[]) { }\nconst firstfirst_part3_ar = [20, 30];\nfirstfirst_part3Spread(10, ...firstfirst_part3_ar);"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"downlevelIteration":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-5875110108-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare function firstfirst_part3Spread(...b: number[]): void;\ndeclare const firstfirst_part3_ar: number[];\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -7006,7 +7016,7 @@ declare const firstfirst_part3_ar: number[]; } ], "hash": "71257392207-var __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\nvar s = \"Hello, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() { }\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nfunction firstfirst_part3Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar firstfirst_part3_ar = [20, 30];\nfirstfirst_part3Spread.apply(void 0, __spreadArray([10], __read(firstfirst_part3_ar), false));\n//# sourceMappingURL=first-output.js.map", - "mapHash": "-26203276582-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXrD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE\"}", + "mapHash": "-7716375076-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXrD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AAED,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE\"}", "sources": { "helpers": [ "typescript:read", @@ -7023,7 +7033,7 @@ declare const firstfirst_part3_ar: number[]; } ], "hash": "-10647290581-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare function firstfirst_part3Spread(...b: number[]): void;\ndeclare const firstfirst_part3_ar: number[];\n//# sourceMappingURL=first-output.d.ts.map", - "mapHash": "8802529616-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;AEXtC,iBAAS,CAAC,WAET;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC\"}" + "mapHash": "21786479890-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;AEXtC,iBAAS,CAAC,WAET;AAED,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC\"}" } }, "program": { @@ -7035,9 +7045,9 @@ declare const firstfirst_part3_ar: number[]; ], "fileInfos": { "../../../lib/lib.d.ts": "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; };", - "../first_part1.ts": "1776071466-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() { }console.log(s);", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "998368782-function f() {\r\n return \"JS does hoists\";\r\n}\nfunction firstfirst_part3Spread(...b: number[]) { }\nconst firstfirst_part3_ar = [20, 30];\nfirstfirst_part3Spread(10, ...firstfirst_part3_ar);" + "../first_part1.ts": "-20328557861-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() { }console.log(s);", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "-1751035906-function f() {\n return \"JS does hoists\";\n}\n\nfunction firstfirst_part3Spread(...b: number[]) { }\nconst firstfirst_part3_ar = [20, 30];\nfirstfirst_part3Spread(10, ...firstfirst_part3_ar);" }, "root": [ [ @@ -7067,11 +7077,11 @@ declare const firstfirst_part3_ar: number[]; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 4999 + "size": 4977 } //// [/src/third/thirdjs/output/third-output.d.ts.map] -{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;ACXtC,iBAAS,CAAC,WAET;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC;ACJrC,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;AAED,iBAAS,wBAAwB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACrD,QAAA,MAAM,qBAAqB,UAAW,CAAC;ACPvC,QAAA,IAAI,CAAC,GAAU,CAAC;AAEhB,iBAAS,uBAAuB,SAE/B;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC"} +{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;ACXtC,iBAAS,CAAC,WAET;AAED,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC;ACLrC,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;AAED,iBAAS,wBAAwB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACrD,QAAA,MAAM,qBAAqB,UAAW,CAAC;ACPvC,QAAA,IAAI,CAAC,GAAU,CAAC;AAEhB,iBAAS,uBAAuB,SAE/B;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC"} //// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] =================================================================== @@ -7101,7 +7111,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -7116,7 +7126,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -7127,8 +7137,8 @@ sourceFile:../../../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -7146,8 +7156,8 @@ sourceFile:../../../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -7161,7 +7171,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -7176,7 +7186,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -7185,9 +7195,9 @@ sourceFile:../../../first/first_PART1.ts 2 >^^^^^^^^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^ -1-> - > - >console.log(s); +1-> + > + >console.log(s); > 2 >function 3 > forfirstfirst_PART1Rest @@ -7210,8 +7220,8 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1 >Emitted(9, 1) Source(1, 1) + SourceIndex(1) 2 >Emitted(9, 18) Source(1, 10) + SourceIndex(1) @@ -7229,6 +7239,7 @@ sourceFile:../../../first/first_part3.ts 8 > ^^ 9 > ^^^^^^^^ 1-> + > > 2 >function 3 > firstfirst_part3Spread @@ -7238,15 +7249,15 @@ sourceFile:../../../first/first_part3.ts 7 > number 8 > [] 9 > ) { } -1->Emitted(10, 1) Source(4, 1) + SourceIndex(1) -2 >Emitted(10, 18) Source(4, 10) + SourceIndex(1) -3 >Emitted(10, 40) Source(4, 32) + SourceIndex(1) -4 >Emitted(10, 41) Source(4, 33) + SourceIndex(1) -5 >Emitted(10, 44) Source(4, 36) + SourceIndex(1) -6 >Emitted(10, 47) Source(4, 39) + SourceIndex(1) -7 >Emitted(10, 53) Source(4, 45) + SourceIndex(1) -8 >Emitted(10, 55) Source(4, 47) + SourceIndex(1) -9 >Emitted(10, 63) Source(4, 52) + SourceIndex(1) +1->Emitted(10, 1) Source(5, 1) + SourceIndex(1) +2 >Emitted(10, 18) Source(5, 10) + SourceIndex(1) +3 >Emitted(10, 40) Source(5, 32) + SourceIndex(1) +4 >Emitted(10, 41) Source(5, 33) + SourceIndex(1) +5 >Emitted(10, 44) Source(5, 36) + SourceIndex(1) +6 >Emitted(10, 47) Source(5, 39) + SourceIndex(1) +7 >Emitted(10, 53) Source(5, 45) + SourceIndex(1) +8 >Emitted(10, 55) Source(5, 47) + SourceIndex(1) +9 >Emitted(10, 63) Source(5, 52) + SourceIndex(1) --- >>>declare const firstfirst_part3_ar: number[]; 1 > @@ -7262,12 +7273,12 @@ sourceFile:../../../first/first_part3.ts 4 > firstfirst_part3_ar 5 > = [20, 30] 6 > ; -1 >Emitted(11, 1) Source(5, 1) + SourceIndex(1) -2 >Emitted(11, 9) Source(5, 1) + SourceIndex(1) -3 >Emitted(11, 15) Source(5, 7) + SourceIndex(1) -4 >Emitted(11, 34) Source(5, 26) + SourceIndex(1) -5 >Emitted(11, 44) Source(5, 37) + SourceIndex(1) -6 >Emitted(11, 45) Source(5, 38) + SourceIndex(1) +1 >Emitted(11, 1) Source(6, 1) + SourceIndex(1) +2 >Emitted(11, 9) Source(6, 1) + SourceIndex(1) +3 >Emitted(11, 15) Source(6, 7) + SourceIndex(1) +4 >Emitted(11, 34) Source(6, 26) + SourceIndex(1) +5 >Emitted(11, 44) Source(6, 37) + SourceIndex(1) +6 >Emitted(11, 45) Source(6, 38) + SourceIndex(1) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.d.ts @@ -7290,8 +7301,8 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(13, 2) Source(3, 2) + SourceIndex(2) --- @@ -7300,8 +7311,8 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -7314,12 +7325,12 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(15, 2) Source(11, 2) + SourceIndex(2) --- @@ -7328,7 +7339,7 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^ -1-> +1-> > 2 >function 3 > forsecondsecond_part1Rest @@ -7359,7 +7370,7 @@ sourceFile:../../../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(18, 5) Source(2, 5) + SourceIndex(3) @@ -7368,9 +7379,9 @@ sourceFile:../../../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(19, 2) Source(5, 2) + SourceIndex(3) --- @@ -7384,7 +7395,7 @@ sourceFile:../../../second/second_part2.ts 7 > ^^^^^^ 8 > ^^ 9 > ^^^^^^^^ -1-> +1-> > > 2 >function @@ -7457,8 +7468,8 @@ sourceFile:../../third_part1.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^ 5 > ^^^^^^^^^^^^^-> -1-> - >c.doSomething(); +1-> + >c.doSomething(); > 2 >function 3 > forthirdthird_part1Rest @@ -7618,7 +7629,7 @@ thirdthird_part1Spread.apply(void 0, __spreadArray([10], __read(thirdthird_part1 //# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXrD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE;ACDnD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,IAAM,qBAAqB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACvC,wBAAwB,8BAAC,EAAE,UAAK,qBAAqB,WAAE;ACRvD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE"} +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXrD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AAED,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE;ACFnD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,IAAM,qBAAqB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACvC,wBAAwB,8BAAC,EAAE,UAAK,qBAAqB,WAAE;ACRvD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE"} //// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] =================================================================== @@ -7674,10 +7685,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -7701,12 +7712,12 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -7730,7 +7741,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^ 5 > ^ -1-> +1-> > 2 >function 3 > forfirstfirst_PART1Rest @@ -7823,7 +7834,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -7837,7 +7848,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(44, 1) Source(3, 1) + SourceIndex(2) @@ -7848,12 +7859,13 @@ sourceFile:../../../first/first_part3.ts 2 >^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^ 1-> + > > 2 >function 3 > firstfirst_part3Spread -1->Emitted(45, 1) Source(4, 1) + SourceIndex(2) -2 >Emitted(45, 10) Source(4, 10) + SourceIndex(2) -3 >Emitted(45, 32) Source(4, 32) + SourceIndex(2) +1->Emitted(45, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(45, 10) Source(5, 10) + SourceIndex(2) +3 >Emitted(45, 32) Source(5, 32) + SourceIndex(2) --- >>> var b = []; 1 >^^^^ @@ -7861,8 +7873,8 @@ sourceFile:../../../first/first_part3.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >( 2 > ...b: number[] -1 >Emitted(46, 5) Source(4, 33) + SourceIndex(2) -2 >Emitted(46, 16) Source(4, 47) + SourceIndex(2) +1 >Emitted(46, 5) Source(5, 33) + SourceIndex(2) +2 >Emitted(46, 16) Source(5, 47) + SourceIndex(2) --- >>> for (var _i = 0; _i < arguments.length; _i++) { 1->^^^^^^^^^ @@ -7877,20 +7889,20 @@ sourceFile:../../../first/first_part3.ts 4 > ...b: number[] 5 > 6 > ...b: number[] -1->Emitted(47, 10) Source(4, 33) + SourceIndex(2) -2 >Emitted(47, 20) Source(4, 47) + SourceIndex(2) -3 >Emitted(47, 22) Source(4, 33) + SourceIndex(2) -4 >Emitted(47, 43) Source(4, 47) + SourceIndex(2) -5 >Emitted(47, 45) Source(4, 33) + SourceIndex(2) -6 >Emitted(47, 49) Source(4, 47) + SourceIndex(2) +1->Emitted(47, 10) Source(5, 33) + SourceIndex(2) +2 >Emitted(47, 20) Source(5, 47) + SourceIndex(2) +3 >Emitted(47, 22) Source(5, 33) + SourceIndex(2) +4 >Emitted(47, 43) Source(5, 47) + SourceIndex(2) +5 >Emitted(47, 45) Source(5, 33) + SourceIndex(2) +6 >Emitted(47, 49) Source(5, 47) + SourceIndex(2) --- >>> b[_i] = arguments[_i]; 1 >^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^ 1 > 2 > ...b: number[] -1 >Emitted(48, 9) Source(4, 33) + SourceIndex(2) -2 >Emitted(48, 31) Source(4, 47) + SourceIndex(2) +1 >Emitted(48, 9) Source(5, 33) + SourceIndex(2) +2 >Emitted(48, 31) Source(5, 47) + SourceIndex(2) --- >>> } >>>} @@ -7899,8 +7911,8 @@ sourceFile:../../../first/first_part3.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >) { 2 >} -1 >Emitted(50, 1) Source(4, 51) + SourceIndex(2) -2 >Emitted(50, 2) Source(4, 52) + SourceIndex(2) +1 >Emitted(50, 1) Source(5, 51) + SourceIndex(2) +2 >Emitted(50, 2) Source(5, 52) + SourceIndex(2) --- >>>var firstfirst_part3_ar = [20, 30]; 1-> @@ -7925,16 +7937,16 @@ sourceFile:../../../first/first_part3.ts 8 > 30 9 > ] 10> ; -1->Emitted(51, 1) Source(5, 1) + SourceIndex(2) -2 >Emitted(51, 5) Source(5, 7) + SourceIndex(2) -3 >Emitted(51, 24) Source(5, 26) + SourceIndex(2) -4 >Emitted(51, 27) Source(5, 29) + SourceIndex(2) -5 >Emitted(51, 28) Source(5, 30) + SourceIndex(2) -6 >Emitted(51, 30) Source(5, 32) + SourceIndex(2) -7 >Emitted(51, 32) Source(5, 34) + SourceIndex(2) -8 >Emitted(51, 34) Source(5, 36) + SourceIndex(2) -9 >Emitted(51, 35) Source(5, 37) + SourceIndex(2) -10>Emitted(51, 36) Source(5, 38) + SourceIndex(2) +1->Emitted(51, 1) Source(6, 1) + SourceIndex(2) +2 >Emitted(51, 5) Source(6, 7) + SourceIndex(2) +3 >Emitted(51, 24) Source(6, 26) + SourceIndex(2) +4 >Emitted(51, 27) Source(6, 29) + SourceIndex(2) +5 >Emitted(51, 28) Source(6, 30) + SourceIndex(2) +6 >Emitted(51, 30) Source(6, 32) + SourceIndex(2) +7 >Emitted(51, 32) Source(6, 34) + SourceIndex(2) +8 >Emitted(51, 34) Source(6, 36) + SourceIndex(2) +9 >Emitted(51, 35) Source(6, 37) + SourceIndex(2) +10>Emitted(51, 36) Source(6, 38) + SourceIndex(2) --- >>>firstfirst_part3Spread.apply(void 0, __spreadArray([10], __read(firstfirst_part3_ar), false)); 1-> @@ -7952,13 +7964,13 @@ sourceFile:../../../first/first_part3.ts 5 > , ... 6 > firstfirst_part3_ar 7 > ); -1->Emitted(52, 1) Source(6, 1) + SourceIndex(2) -2 >Emitted(52, 23) Source(6, 23) + SourceIndex(2) -3 >Emitted(52, 53) Source(6, 24) + SourceIndex(2) -4 >Emitted(52, 55) Source(6, 26) + SourceIndex(2) -5 >Emitted(52, 65) Source(6, 31) + SourceIndex(2) -6 >Emitted(52, 84) Source(6, 50) + SourceIndex(2) -7 >Emitted(52, 95) Source(6, 52) + SourceIndex(2) +1->Emitted(52, 1) Source(7, 1) + SourceIndex(2) +2 >Emitted(52, 23) Source(7, 23) + SourceIndex(2) +3 >Emitted(52, 53) Source(7, 24) + SourceIndex(2) +4 >Emitted(52, 55) Source(7, 26) + SourceIndex(2) +5 >Emitted(52, 65) Source(7, 31) + SourceIndex(2) +6 >Emitted(52, 84) Source(7, 50) + SourceIndex(2) +7 >Emitted(52, 95) Source(7, 52) + SourceIndex(2) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.js @@ -7970,19 +7982,19 @@ sourceFile:../../../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1 >namespace N { - > // Comment text - >} - > +1 >namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1 >Emitted(53, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(53, 5) Source(5, 11) + SourceIndex(3) @@ -8006,7 +8018,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -8023,7 +8035,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -8045,7 +8057,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(57, 5) Source(8, 5) + SourceIndex(3) @@ -8057,8 +8069,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -8077,19 +8089,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(59, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(59, 2) Source(11, 2) + SourceIndex(3) @@ -8104,7 +8116,7 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >function 3 > forsecondsecond_part1Rest @@ -8220,10 +8232,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(65, 5) Source(5, 1) + SourceIndex(4) @@ -8250,7 +8262,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -8272,7 +8284,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(68, 5) Source(4, 5) + SourceIndex(4) @@ -8281,7 +8293,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(69, 5) Source(5, 1) + SourceIndex(4) @@ -8296,10 +8308,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(70, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(70, 2) Source(5, 2) + SourceIndex(4) @@ -8310,7 +8322,7 @@ sourceFile:../../../second/second_part2.ts 1-> 2 >^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^ -1-> +1-> > > 2 >function @@ -8462,7 +8474,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -8481,7 +8493,7 @@ sourceFile:../../third_part1.ts 2 >^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >function 3 > forthirdthird_part1Rest @@ -8697,7 +8709,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":489,"kind":"emitHelpers","data":"typescript:read"},{"pos":490,"end":870,"kind":"emitHelpers","data":"typescript:spreadArray"},{"pos":871,"end":1361,"kind":"emitHelpers","data":"typescript:rest"},{"pos":1362,"end":1795,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":1362,"end":1795,"kind":"text"}]},{"pos":1795,"end":2463,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":1795,"end":2463,"kind":"text"}]},{"pos":2463,"end":2885,"kind":"text"}],"mapHash":"26169118295-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXrD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE;ACDnD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,IAAM,qBAAqB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACvC,wBAAwB,8BAAC,EAAE,UAAK,qBAAqB,WAAE;ACRvD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE\"}","hash":"-2171038301-var __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar s = \"Hello, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() { }\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nfunction firstfirst_part3Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar firstfirst_part3_ar = [20, 30];\nfirstfirst_part3Spread.apply(void 0, __spreadArray([10], __read(firstfirst_part3_ar), false));\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nfunction forsecondsecond_part1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nfunction secondsecond_part2Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar secondsecond_part2_ar = [20, 30];\nsecondsecond_part2Spread.apply(void 0, __spreadArray([10], __read(secondsecond_part2_ar), false));\nvar c = new C();\nc.doSomething();\nfunction forthirdthird_part1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nfunction thirdthird_part1Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar thirdthird_part1_ar = [20, 30];\nthirdthird_part1Spread.apply(void 0, __spreadArray([10], __read(thirdthird_part1_ar), false));\n//# sourceMappingURL=third-output.js.map","sources":{"helpers":["typescript:rest","typescript:read","typescript:spreadArray"]}},"dts":{"sections":[{"pos":0,"end":307,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":307,"kind":"text"}]},{"pos":307,"end":564,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":307,"end":564,"kind":"text"}]},{"pos":564,"end":740,"kind":"text"}],"mapHash":"18621572486-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;ACXtC,iBAAS,CAAC,WAET;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC;ACJrC,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;AAED,iBAAS,wBAAwB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACrD,QAAA,MAAM,qBAAqB,UAAW,CAAC;ACPvC,QAAA,IAAI,CAAC,GAAU,CAAC;AAEhB,iBAAS,uBAAuB,SAE/B;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC\"}","hash":"-25062717856-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare function firstfirst_part3Spread(...b: number[]): void;\ndeclare const firstfirst_part3_ar: number[];\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\ndeclare function secondsecond_part2Spread(...b: number[]): void;\ndeclare const secondsecond_part2_ar: number[];\ndeclare var c: C;\ndeclare function forthirdthird_part1Rest(): void;\ndeclare function thirdthird_part1Spread(...b: number[]): void;\ndeclare const thirdthird_part1_ar: number[];\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-5875110108-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare function firstfirst_part3Spread(...b: number[]): void;\ndeclare const firstfirst_part3_ar: number[];\n","-21549614962-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\ndeclare function secondsecond_part2Spread(...b: number[]): void;\ndeclare const secondsecond_part2_ar: number[];\n","-1627128876-var c = new C();\r\nc.doSomething();\r\nfunction forthirdthird_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}\nfunction thirdthird_part1Spread(...b: number[]) { }\nconst thirdthird_part1_ar = [20, 30];\nthirdthird_part1Spread(10, ...thirdthird_part1_ar);"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"downlevelIteration":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-21519156314-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare function firstfirst_part3Spread(...b: number[]): void;\ndeclare const firstfirst_part3_ar: number[];\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\ndeclare function secondsecond_part2Spread(...b: number[]): void;\ndeclare const secondsecond_part2_ar: number[];\ndeclare var c: C;\ndeclare function forthirdthird_part1Rest(): void;\ndeclare function thirdthird_part1Spread(...b: number[]): void;\ndeclare const thirdthird_part1_ar: number[];\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":489,"kind":"emitHelpers","data":"typescript:read"},{"pos":490,"end":870,"kind":"emitHelpers","data":"typescript:spreadArray"},{"pos":871,"end":1361,"kind":"emitHelpers","data":"typescript:rest"},{"pos":1362,"end":1795,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":1362,"end":1795,"kind":"text"}]},{"pos":1795,"end":2463,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":1795,"end":2463,"kind":"text"}]},{"pos":2463,"end":2885,"kind":"text"}],"mapHash":"-5234328997-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXrD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AAED,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE;ACFnD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,IAAM,qBAAqB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACvC,wBAAwB,8BAAC,EAAE,UAAK,qBAAqB,WAAE;ACRvD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE\"}","hash":"-2171038301-var __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar s = \"Hello, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() { }\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nfunction firstfirst_part3Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar firstfirst_part3_ar = [20, 30];\nfirstfirst_part3Spread.apply(void 0, __spreadArray([10], __read(firstfirst_part3_ar), false));\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nfunction forsecondsecond_part1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nfunction secondsecond_part2Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar secondsecond_part2_ar = [20, 30];\nsecondsecond_part2Spread.apply(void 0, __spreadArray([10], __read(secondsecond_part2_ar), false));\nvar c = new C();\nc.doSomething();\nfunction forthirdthird_part1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nfunction thirdthird_part1Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar thirdthird_part1_ar = [20, 30];\nthirdthird_part1Spread.apply(void 0, __spreadArray([10], __read(thirdthird_part1_ar), false));\n//# sourceMappingURL=third-output.js.map","sources":{"helpers":["typescript:rest","typescript:read","typescript:spreadArray"]}},"dts":{"sections":[{"pos":0,"end":307,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":307,"kind":"text"}]},{"pos":307,"end":564,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":307,"end":564,"kind":"text"}]},{"pos":564,"end":740,"kind":"text"}],"mapHash":"-23413824694-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;ACXtC,iBAAS,CAAC,WAET;AAED,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC;ACLrC,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;AAED,iBAAS,wBAAwB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACrD,QAAA,MAAM,qBAAqB,UAAW,CAAC;ACPvC,QAAA,IAAI,CAAC,GAAU,CAAC;AAEhB,iBAAS,uBAAuB,SAE/B;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC\"}","hash":"-25062717856-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare function firstfirst_part3Spread(...b: number[]): void;\ndeclare const firstfirst_part3_ar: number[];\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\ndeclare function secondsecond_part2Spread(...b: number[]): void;\ndeclare const secondsecond_part2_ar: number[];\ndeclare var c: C;\ndeclare function forthirdthird_part1Rest(): void;\ndeclare function thirdthird_part1Spread(...b: number[]): void;\ndeclare const thirdthird_part1_ar: number[];\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-5875110108-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare function firstfirst_part3Spread(...b: number[]): void;\ndeclare const firstfirst_part3_ar: number[];\n","-21549614962-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\ndeclare function secondsecond_part2Spread(...b: number[]): void;\ndeclare const secondsecond_part2_ar: number[];\n","-9658874822-var c = new C();\nc.doSomething();\nfunction forthirdthird_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}\nfunction thirdthird_part1Spread(...b: number[]) { }\nconst thirdthird_part1_ar = [20, 30];\nthirdthird_part1Spread(10, ...thirdthird_part1_ar);"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"downlevelIteration":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-21519156314-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare function firstfirst_part3Spread(...b: number[]): void;\ndeclare const firstfirst_part3_ar: number[];\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\ndeclare function secondsecond_part2Spread(...b: number[]): void;\ndeclare const secondsecond_part2_ar: number[];\ndeclare var c: C;\ndeclare function forthirdthird_part1Rest(): void;\ndeclare function thirdthird_part1Spread(...b: number[]): void;\ndeclare const thirdthird_part1_ar: number[];\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -8915,7 +8927,7 @@ declare const thirdthird_part1_ar: number[]; } ], "hash": "-2171038301-var __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar s = \"Hello, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() { }\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nfunction firstfirst_part3Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar firstfirst_part3_ar = [20, 30];\nfirstfirst_part3Spread.apply(void 0, __spreadArray([10], __read(firstfirst_part3_ar), false));\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nfunction forsecondsecond_part1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nfunction secondsecond_part2Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar secondsecond_part2_ar = [20, 30];\nsecondsecond_part2Spread.apply(void 0, __spreadArray([10], __read(secondsecond_part2_ar), false));\nvar c = new C();\nc.doSomething();\nfunction forthirdthird_part1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nfunction thirdthird_part1Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar thirdthird_part1_ar = [20, 30];\nthirdthird_part1Spread.apply(void 0, __spreadArray([10], __read(thirdthird_part1_ar), false));\n//# sourceMappingURL=third-output.js.map", - "mapHash": "26169118295-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXrD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE;ACDnD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,IAAM,qBAAqB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACvC,wBAAwB,8BAAC,EAAE,UAAK,qBAAqB,WAAE;ACRvD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE\"}", + "mapHash": "-5234328997-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXrD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AAED,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE;ACFnD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,IAAM,qBAAqB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACvC,wBAAwB,8BAAC,EAAE,UAAK,qBAAqB,WAAE;ACRvD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE\"}", "sources": { "helpers": [ "typescript:rest", @@ -8959,7 +8971,7 @@ declare const thirdthird_part1_ar: number[]; } ], "hash": "-25062717856-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare function firstfirst_part3Spread(...b: number[]): void;\ndeclare const firstfirst_part3_ar: number[];\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\ndeclare function secondsecond_part2Spread(...b: number[]): void;\ndeclare const secondsecond_part2_ar: number[];\ndeclare var c: C;\ndeclare function forthirdthird_part1Rest(): void;\ndeclare function thirdthird_part1Spread(...b: number[]): void;\ndeclare const thirdthird_part1_ar: number[];\n//# sourceMappingURL=third-output.d.ts.map", - "mapHash": "18621572486-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;ACXtC,iBAAS,CAAC,WAET;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC;ACJrC,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;AAED,iBAAS,wBAAwB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACrD,QAAA,MAAM,qBAAqB,UAAW,CAAC;ACPvC,QAAA,IAAI,CAAC,GAAU,CAAC;AAEhB,iBAAS,uBAAuB,SAE/B;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC\"}" + "mapHash": "-23413824694-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;ACXtC,iBAAS,CAAC,WAET;AAED,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC;ACLrC,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;AAED,iBAAS,wBAAwB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACrD,QAAA,MAAM,qBAAqB,UAAW,CAAC;ACPvC,QAAA,IAAI,CAAC,GAAU,CAAC;AAEhB,iBAAS,uBAAuB,SAE/B;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC\"}" } }, "program": { @@ -8973,7 +8985,7 @@ declare const thirdthird_part1_ar: number[]; "../../../../lib/lib.d.ts": "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; };", "../../../first/bin/first-output.d.ts": "-5875110108-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare function firstfirst_part3Spread(...b: number[]): void;\ndeclare const firstfirst_part3_ar: number[];\n", "../../../2/second-output.d.ts": "-21549614962-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function forsecondsecond_part1Rest(): void;\ndeclare class C {\n doSomething(): void;\n}\ndeclare function secondsecond_part2Spread(...b: number[]): void;\ndeclare const secondsecond_part2_ar: number[];\n", - "../../third_part1.ts": "-1627128876-var c = new C();\r\nc.doSomething();\r\nfunction forthirdthird_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}\nfunction thirdthird_part1Spread(...b: number[]) { }\nconst thirdthird_part1_ar = [20, 30];\nthirdthird_part1Spread(10, ...thirdthird_part1_ar);" + "../../third_part1.ts": "-9658874822-var c = new C();\nc.doSomething();\nfunction forthirdthird_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}\nfunction thirdthird_part1Spread(...b: number[]) { }\nconst thirdthird_part1_ar = [20, 30];\nthirdthird_part1Spread(10, ...thirdthird_part1_ar);" }, "root": [ [ @@ -8997,6 +9009,6 @@ declare const thirdthird_part1_ar: number[]; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 10159 + "size": 10156 } diff --git a/tests/baselines/reference/tsbuild/outfile-concat/multiple-emitHelpers-in-different-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/multiple-emitHelpers-in-different-projects.js index fdffc8b012777..531a20a0d4ee0 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/multiple-emitHelpers-in-different-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/multiple-emitHelpers-in-different-projects.js @@ -16,148 +16,150 @@ interface ReadonlyArray {} declare const console: { log(msg: any): void; }; //// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); function forfirstfirst_PART1Rest() { const { b, ...rest } = { a: 10, b: 30, yy: 30 }; } //// [/src/first/first_part2.ts] -console.log(f()); +console.log(f()); //// [/src/first/first_part3.ts] -function f() { - return "JS does hoists"; -} +function f() { + return "JS does hoists"; +} + //// [/src/first/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "outFile": "./bin/first-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "first_PART1.ts", - "first_part2.ts", - "first_part3.ts" - ], - "references": [ - ] +{ + "compilerOptions": { + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "outFile": "./bin/first-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "first_PART1.ts", + "first_part2.ts", + "first_part3.ts" + ], + "references": [] } - //// [/src/second/second_part1.ts] -namespace N { - // Comment text -} - -namespace N { - function f() { - console.log('testing'); - } - - f(); -} +namespace N { + // Comment text +} + +namespace N { + function f() { + console.log('testing'); + } + + f(); +} function secondsecond_part1Spread(...b: number[]) { } const secondsecond_part1_ar = [20, 30]; secondsecond_part1Spread(10, ...secondsecond_part1_ar); //// [/src/second/second_part2.ts] -class C { - doSomething() { - console.log("something got done"); - } -} +class C { + doSomething() { + console.log("something got done"); + } +} //// [/src/second/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, "strict": false, - "downlevelIteration": true, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "../2/second-output.js", - "skipDefaultLibCheck": true - }, - "references": [ - ] + "downlevelIteration": true, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "../2/second-output.js", + "skipDefaultLibCheck": true + }, + "references": [] } - //// [/src/third/third_part1.ts] -var c = new C(); -c.doSomething(); +var c = new C(); +c.doSomething(); function forthirdthird_part1Rest() { const { b, ...rest } = { a: 10, b: 30, yy: 30 }; } //// [/src/third/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "./thirdjs/output/third-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "third_part1.ts" - ], - "references": [ - { "path": "../first", "prepend": true }, - { "path": "../second", "prepend": true }, - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "./thirdjs/output/third-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "third_part1.ts" + ], + "references": [ + { + "path": "../first", + "prepend": true + }, + { + "path": "../second", + "prepend": true + } + ] } - Output:: /lib/tsc --b /src/third --verbose -[12:00:10 AM] Projects in this build: +[12:00:22 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:11 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist +[12:00:23 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist -[12:00:12 AM] Building project '/src/first/tsconfig.json'... +[12:00:24 AM] Building project '/src/first/tsconfig.json'... -[12:00:22 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist +[12:00:34 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist -[12:00:23 AM] Building project '/src/second/tsconfig.json'... +[12:00:35 AM] Building project '/src/second/tsconfig.json'... -[12:00:33 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist +[12:00:45 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist -[12:00:34 AM] Building project '/src/third/tsconfig.json'... +[12:00:46 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -205,8 +207,8 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(2, 2) Source(3, 2) + SourceIndex(0) --- @@ -215,8 +217,8 @@ sourceFile:../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -229,12 +231,12 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(4, 2) Source(11, 2) + SourceIndex(0) --- @@ -248,7 +250,7 @@ sourceFile:../second/second_part1.ts 7 > ^^^^^^ 8 > ^^ 9 > ^^^^^^^^ -1-> +1-> > > 2 >function @@ -309,7 +311,7 @@ sourceFile:../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(8, 5) Source(2, 5) + SourceIndex(1) @@ -318,9 +320,9 @@ sourceFile:../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(9, 2) Source(5, 2) + SourceIndex(1) --- @@ -422,19 +424,19 @@ sourceFile:../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1 >namespace N { - > // Comment text - >} - > +1 >namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1 >Emitted(26, 1) Source(5, 1) + SourceIndex(0) 2 >Emitted(26, 5) Source(5, 11) + SourceIndex(0) @@ -458,7 +460,7 @@ sourceFile:../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -475,7 +477,7 @@ sourceFile:../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -497,7 +499,7 @@ sourceFile:../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(30, 5) Source(8, 5) + SourceIndex(0) @@ -509,8 +511,8 @@ sourceFile:../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -529,19 +531,19 @@ sourceFile:../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(32, 1) Source(11, 1) + SourceIndex(0) 2 >Emitted(32, 2) Source(11, 2) + SourceIndex(0) @@ -555,7 +557,7 @@ sourceFile:../second/second_part1.ts 1-> 2 >^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^ -1-> +1-> > > 2 >function @@ -689,10 +691,10 @@ sourceFile:../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(43, 5) Source(5, 1) + SourceIndex(1) @@ -719,7 +721,7 @@ sourceFile:../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -741,7 +743,7 @@ sourceFile:../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(46, 5) Source(4, 5) + SourceIndex(1) @@ -750,7 +752,7 @@ sourceFile:../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(47, 5) Source(5, 1) + SourceIndex(1) @@ -765,10 +767,10 @@ sourceFile:../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(48, 1) Source(5, 1) + SourceIndex(1) 2 >Emitted(48, 2) Source(5, 2) + SourceIndex(1) @@ -778,7 +780,7 @@ sourceFile:../second/second_part2.ts >>>//# sourceMappingURL=second-output.js.map //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":489,"kind":"emitHelpers","data":"typescript:read"},{"pos":490,"end":870,"kind":"emitHelpers","data":"typescript:spreadArray"},{"pos":871,"end":1423,"kind":"text"}],"sources":{"helpers":["typescript:read","typescript:spreadArray"]},"mapHash":"-34534977022-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,IAAM,qBAAqB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACvC,wBAAwB,8BAAC,EAAE,UAAK,qBAAqB,WAAE;ACdvD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"63850821105-var __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nfunction secondsecond_part1Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar secondsecond_part1_ar = [20, 30];\nsecondsecond_part1Spread.apply(void 0, __spreadArray([10], __read(secondsecond_part1_ar), false));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":205,"kind":"text"}],"mapHash":"14094696036-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,iBAAS,wBAAwB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACrD,QAAA,MAAM,qBAAqB,UAAW,CAAC;ACbvC,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-39676616629-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function secondsecond_part1Spread(...b: number[]): void;\ndeclare const secondsecond_part1_ar: number[];\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["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; };","-24334061923-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n\nfunction secondsecond_part1Spread(...b: number[]) { }\nconst secondsecond_part1_ar = [20, 30];\nsecondsecond_part1Spread(10, ...secondsecond_part1_ar);","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"downlevelIteration":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-33702167696-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function secondsecond_part1Spread(...b: number[]): void;\ndeclare const secondsecond_part1_ar: number[];\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":489,"kind":"emitHelpers","data":"typescript:read"},{"pos":490,"end":870,"kind":"emitHelpers","data":"typescript:spreadArray"},{"pos":871,"end":1423,"kind":"text"}],"sources":{"helpers":["typescript:read","typescript:spreadArray"]},"mapHash":"-34534977022-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,IAAM,qBAAqB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACvC,wBAAwB,8BAAC,EAAE,UAAK,qBAAqB,WAAE;ACdvD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"63850821105-var __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nfunction secondsecond_part1Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar secondsecond_part1_ar = [20, 30];\nsecondsecond_part1Spread.apply(void 0, __spreadArray([10], __read(secondsecond_part1_ar), false));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":205,"kind":"text"}],"mapHash":"14094696036-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,iBAAS,wBAAwB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACrD,QAAA,MAAM,qBAAqB,UAAW,CAAC;ACbvC,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-39676616629-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function secondsecond_part1Spread(...b: number[]): void;\ndeclare const secondsecond_part1_ar: number[];\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["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; };","-17632739282-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n\nfunction secondsecond_part1Spread(...b: number[]) { }\nconst secondsecond_part1_ar = [20, 30];\nsecondsecond_part1Spread(10, ...secondsecond_part1_ar);","3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"downlevelIteration":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-33702167696-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function secondsecond_part1Spread(...b: number[]): void;\ndeclare const secondsecond_part1_ar: number[];\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -912,8 +914,8 @@ declare class C { ], "fileInfos": { "../../lib/lib.d.ts": "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; };", - "../second/second_part1.ts": "-24334061923-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n\nfunction secondsecond_part1Spread(...b: number[]) { }\nconst secondsecond_part1_ar = [20, 30];\nsecondsecond_part1Spread(10, ...secondsecond_part1_ar);", - "../second/second_part2.ts": "9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n" + "../second/second_part1.ts": "-17632739282-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n\nfunction secondsecond_part1Spread(...b: number[]) { }\nconst secondsecond_part1_ar = [20, 30];\nsecondsecond_part1Spread(10, ...secondsecond_part1_ar);", + "../second/second_part2.ts": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n" }, "root": [ [ @@ -941,7 +943,7 @@ declare class C { "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 4831 + "size": 4799 } //// [/src/first/bin/first-output.d.ts] @@ -987,7 +989,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -1002,7 +1004,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -1013,8 +1015,8 @@ sourceFile:../first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -1032,8 +1034,8 @@ sourceFile:../first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -1047,7 +1049,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -1062,7 +1064,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -1071,9 +1073,9 @@ sourceFile:../first_PART1.ts 2 >^^^^^^^^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^ -1-> - > - >console.log(s); +1-> + > + >console.log(s); > 2 >function 3 > forfirstfirst_PART1Rest @@ -1098,8 +1100,8 @@ sourceFile:../first_part3.ts 1 > 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) 2 >Emitted(9, 18) Source(1, 10) + SourceIndex(2) @@ -1163,10 +1165,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -1190,12 +1192,12 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -1218,7 +1220,7 @@ sourceFile:../first_PART1.ts 2 >^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >function 3 > forfirstfirst_PART1Rest @@ -1368,7 +1370,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -1382,7 +1384,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(20, 1) Source(3, 1) + SourceIndex(2) @@ -1391,7 +1393,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":490,"kind":"emitHelpers","data":"typescript:rest"},{"pos":491,"end":709,"kind":"text"}],"sources":{"helpers":["typescript:rest"]},"mapHash":"-19791845071-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-20088349121-var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar s = \"Hello, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":199,"kind":"text"}],"mapHash":"22543277725-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;AEbD,iBAAS,CAAC,WAET\"}","hash":"-9615756366-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-2071921725-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-14427003669-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":490,"kind":"emitHelpers","data":"typescript:rest"},{"pos":491,"end":709,"kind":"text"}],"sources":{"helpers":["typescript:rest"]},"mapHash":"-19791845071-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-20088349121-var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar s = \"Hello, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":199,"kind":"text"}],"mapHash":"22543277725-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;AEbD,iBAAS,CAAC,WAET\"}","hash":"-9615756366-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-25468252236-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-14427003669-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -1490,9 +1492,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "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; };", - "../first_part1.ts": "-2071921725-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-25468252236-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -1521,7 +1523,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 3751 + "size": 3726 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -1578,7 +1580,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -1593,7 +1595,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -1604,8 +1606,8 @@ sourceFile:../../../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -1623,8 +1625,8 @@ sourceFile:../../../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -1638,7 +1640,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -1653,7 +1655,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -1662,9 +1664,9 @@ sourceFile:../../../first/first_PART1.ts 2 >^^^^^^^^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^ -1-> - > - >console.log(s); +1-> + > + >console.log(s); > 2 >function 3 > forfirstfirst_PART1Rest @@ -1688,8 +1690,8 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1 >Emitted(9, 1) Source(1, 1) + SourceIndex(1) 2 >Emitted(9, 18) Source(1, 10) + SourceIndex(1) @@ -1717,8 +1719,8 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(11, 2) Source(3, 2) + SourceIndex(2) --- @@ -1727,8 +1729,8 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -1741,12 +1743,12 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(13, 2) Source(11, 2) + SourceIndex(2) --- @@ -1760,7 +1762,7 @@ sourceFile:../../../second/second_part1.ts 7 > ^^^^^^ 8 > ^^ 9 > ^^^^^^^^ -1-> +1-> > > 2 >function @@ -1821,7 +1823,7 @@ sourceFile:../../../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(17, 5) Source(2, 5) + SourceIndex(3) @@ -1830,9 +1832,9 @@ sourceFile:../../../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(18, 2) Source(5, 2) + SourceIndex(3) --- @@ -1866,8 +1868,8 @@ sourceFile:../../third_part1.ts 2 >^^^^^^^^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^ -1-> - >c.doSomething(); +1-> + >c.doSomething(); > 2 >function 3 > forthirdthird_part1Rest @@ -2014,10 +2016,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -2041,12 +2043,12 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -2069,7 +2071,7 @@ sourceFile:../../../first/first_PART1.ts 2 >^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >function 3 > forfirstfirst_PART1Rest @@ -2219,7 +2221,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -2233,7 +2235,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(45, 1) Source(3, 1) + SourceIndex(2) @@ -2249,19 +2251,19 @@ sourceFile:../../../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(46, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(46, 5) Source(5, 11) + SourceIndex(3) @@ -2285,7 +2287,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -2302,7 +2304,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -2324,7 +2326,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(50, 5) Source(8, 5) + SourceIndex(3) @@ -2336,8 +2338,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -2356,19 +2358,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(52, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(52, 2) Source(11, 2) + SourceIndex(3) @@ -2382,7 +2384,7 @@ sourceFile:../../../second/second_part1.ts 1-> 2 >^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^ -1-> +1-> > > 2 >function @@ -2516,10 +2518,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(63, 5) Source(5, 1) + SourceIndex(4) @@ -2546,7 +2548,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -2568,7 +2570,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(66, 5) Source(4, 5) + SourceIndex(4) @@ -2577,7 +2579,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(67, 5) Source(5, 1) + SourceIndex(4) @@ -2592,10 +2594,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(68, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(68, 2) Source(5, 2) + SourceIndex(4) @@ -2640,7 +2642,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -2659,7 +2661,7 @@ sourceFile:../../third_part1.ts 2 >^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >function 3 > forthirdthird_part1Rest @@ -2758,7 +2760,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":490,"kind":"emitHelpers","data":"typescript:rest"},{"pos":491,"end":980,"kind":"emitHelpers","data":"typescript:read"},{"pos":981,"end":1361,"kind":"emitHelpers","data":"typescript:spreadArray"},{"pos":1362,"end":1580,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":1362,"end":1580,"kind":"text"}]},{"pos":1580,"end":2132,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":1580,"end":2132,"kind":"text"}]},{"pos":2132,"end":2280,"kind":"text"}],"sources":{"helpers":["typescript:rest"]},"mapHash":"-13780861725-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,IAAM,qBAAqB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACvC,wBAAwB,8BAAC,EAAE,UAAK,qBAAqB,WAAE;ACdvD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC\"}","hash":"14655148662-var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\nvar s = \"Hello, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nfunction secondsecond_part1Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar secondsecond_part1_ar = [20, 30];\nsecondsecond_part1Spread.apply(void 0, __spreadArray([10], __read(secondsecond_part1_ar), false));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\nfunction forthirdthird_part1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":199,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":199,"kind":"text"}]},{"pos":199,"end":404,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":199,"end":404,"kind":"text"}]},{"pos":404,"end":472,"kind":"text"}],"mapHash":"27738518528-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;ACbD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,iBAAS,wBAAwB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACrD,QAAA,MAAM,qBAAqB,UAAW,CAAC;ACbvC,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC;AAEhB,iBAAS,uBAAuB,SAE/B\"}","hash":"-10232778840-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function secondsecond_part1Spread(...b: number[]): void;\ndeclare const secondsecond_part1_ar: number[];\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\ndeclare function forthirdthird_part1Rest(): void;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-14427003669-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n","-33702167696-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function secondsecond_part1Spread(...b: number[]): void;\ndeclare const secondsecond_part1_ar: number[];\ndeclare class C {\n doSomething(): void;\n}\n","-362916705-var c = new C();\r\nc.doSomething();\r\nfunction forthirdthird_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-8732161298-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function secondsecond_part1Spread(...b: number[]): void;\ndeclare const secondsecond_part1_ar: number[];\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\ndeclare function forthirdthird_part1Rest(): void;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":490,"kind":"emitHelpers","data":"typescript:rest"},{"pos":491,"end":980,"kind":"emitHelpers","data":"typescript:read"},{"pos":981,"end":1361,"kind":"emitHelpers","data":"typescript:spreadArray"},{"pos":1362,"end":1580,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":1362,"end":1580,"kind":"text"}]},{"pos":1580,"end":2132,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":1580,"end":2132,"kind":"text"}]},{"pos":2132,"end":2280,"kind":"text"}],"sources":{"helpers":["typescript:rest"]},"mapHash":"-13780861725-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,IAAM,qBAAqB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACvC,wBAAwB,8BAAC,EAAE,UAAK,qBAAqB,WAAE;ACdvD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC\"}","hash":"14655148662-var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\nvar s = \"Hello, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nfunction secondsecond_part1Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar secondsecond_part1_ar = [20, 30];\nsecondsecond_part1Spread.apply(void 0, __spreadArray([10], __read(secondsecond_part1_ar), false));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\nfunction forthirdthird_part1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":199,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":199,"kind":"text"}]},{"pos":199,"end":404,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":199,"end":404,"kind":"text"}]},{"pos":404,"end":472,"kind":"text"}],"mapHash":"27738518528-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;ACbD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,iBAAS,wBAAwB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACrD,QAAA,MAAM,qBAAqB,UAAW,CAAC;ACbvC,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC;AAEhB,iBAAS,uBAAuB,SAE/B\"}","hash":"-10232778840-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function secondsecond_part1Spread(...b: number[]): void;\ndeclare const secondsecond_part1_ar: number[];\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\ndeclare function forthirdthird_part1Rest(): void;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-14427003669-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n","-33702167696-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function secondsecond_part1Spread(...b: number[]): void;\ndeclare const secondsecond_part1_ar: number[];\ndeclare class C {\n doSomething(): void;\n}\n","-7656447355-var c = new C();\nc.doSomething();\nfunction forthirdthird_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-8732161298-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function secondsecond_part1Spread(...b: number[]): void;\ndeclare const secondsecond_part1_ar: number[];\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\ndeclare function forthirdthird_part1Rest(): void;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -3009,7 +3011,7 @@ declare function forthirdthird_part1Rest(): void; "../../../../lib/lib.d.ts": "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; };", "../../../first/bin/first-output.d.ts": "-14427003669-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "-33702167696-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function secondsecond_part1Spread(...b: number[]): void;\ndeclare const secondsecond_part1_ar: number[];\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "-362916705-var c = new C();\r\nc.doSomething();\r\nfunction forthirdthird_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}" + "../../third_part1.ts": "-7656447355-var c = new C();\nc.doSomething();\nfunction forthirdthird_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}" }, "root": [ [ @@ -3032,7 +3034,7 @@ declare function forthirdthird_part1Rest(): void; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 8009 + "size": 8006 } @@ -3040,17 +3042,17 @@ declare function forthirdthird_part1Rest(): void; Change:: incremental-declaration-doesnt-change Input:: //// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); function forfirstfirst_PART1Rest() { const { b, ...rest } = { a: 10, b: 30, yy: 30 }; }console.log(s); @@ -3059,20 +3061,20 @@ const { b, ...rest } = { a: 10, b: 30, yy: 30 }; Output:: /lib/tsc --b /src/third --verbose -[12:00:52 AM] Projects in this build: +[12:01:04 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:53 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:01:05 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:00:54 AM] Building project '/src/first/tsconfig.json'... +[12:01:06 AM] Building project '/src/first/tsconfig.json'... -[12:01:02 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:01:14 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:03 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:01:15 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:01:04 AM] Updating output of project '/src/third/tsconfig.json'... +[12:01:16 AM] Updating output of project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -3135,10 +3137,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -3162,12 +3164,12 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -3190,7 +3192,7 @@ sourceFile:../first_PART1.ts 2 >^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >function 3 > forfirstfirst_PART1Rest @@ -3367,7 +3369,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -3381,7 +3383,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(21, 1) Source(3, 1) + SourceIndex(2) @@ -3390,7 +3392,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":490,"kind":"emitHelpers","data":"typescript:rest"},{"pos":491,"end":725,"kind":"text"}],"sources":{"helpers":["typescript:rest"]},"mapHash":"-28162747006-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACbhB,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-23489700629-var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar s = \"Hello, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":199,"kind":"text"}],"mapHash":"22543277725-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;AEbD,iBAAS,CAAC,WAET\"}","hash":"-9615756366-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-5382108219-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}console.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-14427003669-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":490,"kind":"emitHelpers","data":"typescript:rest"},{"pos":491,"end":725,"kind":"text"}],"sources":{"helpers":["typescript:rest"]},"mapHash":"-28162747006-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACbhB,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-23489700629-var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar s = \"Hello, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":199,"kind":"text"}],"mapHash":"22543277725-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;AEbD,iBAAS,CAAC,WAET\"}","hash":"-9615756366-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-25115744362-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}console.log(s);","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-14427003669-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -3490,9 +3492,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "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; };", - "../first_part1.ts": "-5382108219-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}console.log(s);", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-25115744362-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}console.log(s);", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -3521,7 +3523,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 3824 + "size": 3799 } //// [/src/third/thirdjs/output/third-output.js] @@ -3658,10 +3660,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -3685,12 +3687,12 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -3713,7 +3715,7 @@ sourceFile:../../../first/first_PART1.ts 2 >^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >function 3 > forfirstfirst_PART1Rest @@ -3890,7 +3892,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -3904,7 +3906,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(46, 1) Source(3, 1) + SourceIndex(2) @@ -3920,19 +3922,19 @@ sourceFile:../../../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(47, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(47, 5) Source(5, 11) + SourceIndex(3) @@ -3956,7 +3958,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -3973,7 +3975,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -3995,7 +3997,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(51, 5) Source(8, 5) + SourceIndex(3) @@ -4007,8 +4009,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -4027,19 +4029,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(53, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(53, 2) Source(11, 2) + SourceIndex(3) @@ -4053,7 +4055,7 @@ sourceFile:../../../second/second_part1.ts 1-> 2 >^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^ -1-> +1-> > > 2 >function @@ -4187,10 +4189,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(64, 5) Source(5, 1) + SourceIndex(4) @@ -4217,7 +4219,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -4239,7 +4241,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(67, 5) Source(4, 5) + SourceIndex(4) @@ -4248,7 +4250,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(68, 5) Source(5, 1) + SourceIndex(4) @@ -4263,10 +4265,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(69, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(69, 2) Source(5, 2) + SourceIndex(4) @@ -4311,7 +4313,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -4330,7 +4332,7 @@ sourceFile:../../third_part1.ts 2 >^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >function 3 > forthirdthird_part1Rest @@ -4429,7 +4431,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":490,"kind":"emitHelpers","data":"typescript:rest"},{"pos":491,"end":980,"kind":"emitHelpers","data":"typescript:read"},{"pos":981,"end":1361,"kind":"emitHelpers","data":"typescript:spreadArray"},{"pos":1362,"end":1596,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":1362,"end":1596,"kind":"text"}]},{"pos":1596,"end":2148,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":1596,"end":2148,"kind":"text"}]},{"pos":2148,"end":2296,"kind":"text"}],"mapHash":"36408281972-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACbhB,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,IAAM,qBAAqB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACvC,wBAAwB,8BAAC,EAAE,UAAK,qBAAqB,WAAE;ACdvD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC\"}","hash":"-22595833054-var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\nvar s = \"Hello, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nfunction secondsecond_part1Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar secondsecond_part1_ar = [20, 30];\nsecondsecond_part1Spread.apply(void 0, __spreadArray([10], __read(secondsecond_part1_ar), false));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\nfunction forthirdthird_part1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\n//# sourceMappingURL=third-output.js.map","sources":{"helpers":["typescript:rest"]}},"dts":{"sections":[{"pos":0,"end":199,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":199,"kind":"text"}]},{"pos":199,"end":404,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":199,"end":404,"kind":"text"}]},{"pos":404,"end":472,"kind":"text"}],"mapHash":"27738518528-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;ACbD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,iBAAS,wBAAwB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACrD,QAAA,MAAM,qBAAqB,UAAW,CAAC;ACbvC,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC;AAEhB,iBAAS,uBAAuB,SAE/B\"}","hash":"-10232778840-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function secondsecond_part1Spread(...b: number[]): void;\ndeclare const secondsecond_part1_ar: number[];\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\ndeclare function forthirdthird_part1Rest(): void;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-14427003669-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n","-33702167696-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function secondsecond_part1Spread(...b: number[]): void;\ndeclare const secondsecond_part1_ar: number[];\ndeclare class C {\n doSomething(): void;\n}\n","-362916705-var c = new C();\r\nc.doSomething();\r\nfunction forthirdthird_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-8732161298-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function secondsecond_part1Spread(...b: number[]): void;\ndeclare const secondsecond_part1_ar: number[];\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\ndeclare function forthirdthird_part1Rest(): void;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":490,"kind":"emitHelpers","data":"typescript:rest"},{"pos":491,"end":980,"kind":"emitHelpers","data":"typescript:read"},{"pos":981,"end":1361,"kind":"emitHelpers","data":"typescript:spreadArray"},{"pos":1362,"end":1596,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":1362,"end":1596,"kind":"text"}]},{"pos":1596,"end":2148,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":1596,"end":2148,"kind":"text"}]},{"pos":2148,"end":2296,"kind":"text"}],"mapHash":"36408281972-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACbhB,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,IAAM,qBAAqB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACvC,wBAAwB,8BAAC,EAAE,UAAK,qBAAqB,WAAE;ACdvD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC\"}","hash":"-22595833054-var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\nvar s = \"Hello, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nfunction secondsecond_part1Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar secondsecond_part1_ar = [20, 30];\nsecondsecond_part1Spread.apply(void 0, __spreadArray([10], __read(secondsecond_part1_ar), false));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\nfunction forthirdthird_part1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\n//# sourceMappingURL=third-output.js.map","sources":{"helpers":["typescript:rest"]}},"dts":{"sections":[{"pos":0,"end":199,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":199,"kind":"text"}]},{"pos":199,"end":404,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":199,"end":404,"kind":"text"}]},{"pos":404,"end":472,"kind":"text"}],"mapHash":"27738518528-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;ACbD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,iBAAS,wBAAwB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACrD,QAAA,MAAM,qBAAqB,UAAW,CAAC;ACbvC,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC;AAEhB,iBAAS,uBAAuB,SAE/B\"}","hash":"-10232778840-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function secondsecond_part1Spread(...b: number[]): void;\ndeclare const secondsecond_part1_ar: number[];\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\ndeclare function forthirdthird_part1Rest(): void;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-14427003669-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n","-33702167696-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function secondsecond_part1Spread(...b: number[]): void;\ndeclare const secondsecond_part1_ar: number[];\ndeclare class C {\n doSomething(): void;\n}\n","-7656447355-var c = new C();\nc.doSomething();\nfunction forthirdthird_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-8732161298-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function secondsecond_part1Spread(...b: number[]): void;\ndeclare const secondsecond_part1_ar: number[];\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\ndeclare function forthirdthird_part1Rest(): void;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -4681,7 +4683,7 @@ declare function forthirdthird_part1Rest(): void; "../../../../lib/lib.d.ts": "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; };", "../../../first/bin/first-output.d.ts": "-14427003669-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "-33702167696-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function secondsecond_part1Spread(...b: number[]): void;\ndeclare const secondsecond_part1_ar: number[];\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "-362916705-var c = new C();\r\nc.doSomething();\r\nfunction forthirdthird_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}" + "../../third_part1.ts": "-7656447355-var c = new C();\nc.doSomething();\nfunction forthirdthird_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}" }, "root": [ [ @@ -4704,7 +4706,7 @@ declare function forthirdthird_part1Rest(): void; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 8067 + "size": 8064 } @@ -4712,37 +4714,37 @@ declare function forthirdthird_part1Rest(): void; Change:: incremental-headers-change-without-dts-changes Input:: //// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); function forfirstfirst_PART1Rest() { }console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:01:15 AM] Projects in this build: +[12:01:27 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:01:16 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:01:28 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:01:17 AM] Building project '/src/first/tsconfig.json'... +[12:01:29 AM] Building project '/src/first/tsconfig.json'... -[12:01:25 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:01:37 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:26 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:01:38 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:01:27 AM] Updating output of project '/src/third/tsconfig.json'... +[12:01:39 AM] Updating output of project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -4778,7 +4780,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -4793,7 +4795,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -4804,8 +4806,8 @@ sourceFile:../first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -4823,8 +4825,8 @@ sourceFile:../first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -4838,7 +4840,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -4853,7 +4855,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -4862,9 +4864,9 @@ sourceFile:../first_PART1.ts 2 >^^^^^^^^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^ -1-> - > - >console.log(s); +1-> + > + >console.log(s); > 2 >function 3 > forfirstfirst_PART1Rest @@ -4887,8 +4889,8 @@ sourceFile:../first_part3.ts 1 > 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) 2 >Emitted(9, 18) Source(1, 10) + SourceIndex(2) @@ -4929,10 +4931,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -4956,12 +4958,12 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -4985,7 +4987,7 @@ sourceFile:../first_PART1.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^ 5 > ^ -1-> +1-> > 2 >function 3 > forfirstfirst_PART1Rest @@ -5078,7 +5080,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -5092,7 +5094,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(8, 1) Source(3, 1) + SourceIndex(2) @@ -5101,7 +5103,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":159,"kind":"text"}],"mapHash":"-28547337588-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXrD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-4649037461-var s = \"Hello, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() { }\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":199,"kind":"text"}],"mapHash":"22270452542-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;AEXtC,iBAAS,CAAC,WAET\"}","hash":"-9615756366-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","1776071466-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() { }console.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-14427003669-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":159,"kind":"text"}],"mapHash":"-28547337588-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXrD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-4649037461-var s = \"Hello, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() { }\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":199,"kind":"text"}],"mapHash":"22270452542-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;AEXtC,iBAAS,CAAC,WAET\"}","hash":"-9615756366-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-20328557861-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() { }console.log(s);","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-14427003669-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -5175,9 +5177,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "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; };", - "../first_part1.ts": "1776071466-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nfunction forfirstfirst_PART1Rest() { }console.log(s);", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-20328557861-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() { }console.log(s);", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -5206,7 +5208,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2937 + "size": 2913 } //// [/src/third/thirdjs/output/third-output.d.ts.map] @@ -5240,7 +5242,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -5255,7 +5257,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -5266,8 +5268,8 @@ sourceFile:../../../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -5285,8 +5287,8 @@ sourceFile:../../../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -5300,7 +5302,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -5315,7 +5317,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -5324,9 +5326,9 @@ sourceFile:../../../first/first_PART1.ts 2 >^^^^^^^^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^ -1-> - > - >console.log(s); +1-> + > + >console.log(s); > 2 >function 3 > forfirstfirst_PART1Rest @@ -5348,8 +5350,8 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1 >Emitted(9, 1) Source(1, 1) + SourceIndex(1) 2 >Emitted(9, 18) Source(1, 10) + SourceIndex(1) @@ -5377,8 +5379,8 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(11, 2) Source(3, 2) + SourceIndex(2) --- @@ -5387,8 +5389,8 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -5401,12 +5403,12 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(13, 2) Source(11, 2) + SourceIndex(2) --- @@ -5420,7 +5422,7 @@ sourceFile:../../../second/second_part1.ts 7 > ^^^^^^ 8 > ^^ 9 > ^^^^^^^^ -1-> +1-> > > 2 >function @@ -5481,7 +5483,7 @@ sourceFile:../../../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(17, 5) Source(2, 5) + SourceIndex(3) @@ -5490,9 +5492,9 @@ sourceFile:../../../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(18, 2) Source(5, 2) + SourceIndex(3) --- @@ -5526,8 +5528,8 @@ sourceFile:../../third_part1.ts 2 >^^^^^^^^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^ -1-> - >c.doSomething(); +1-> + >c.doSomething(); > 2 >function 3 > forthirdthird_part1Rest @@ -5673,10 +5675,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -5700,12 +5702,12 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -5729,7 +5731,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^ 5 > ^ -1-> +1-> > 2 >function 3 > forfirstfirst_PART1Rest @@ -5822,7 +5824,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -5836,7 +5838,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(44, 1) Source(3, 1) + SourceIndex(2) @@ -5852,19 +5854,19 @@ sourceFile:../../../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(45, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(45, 5) Source(5, 11) + SourceIndex(3) @@ -5888,7 +5890,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -5905,7 +5907,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -5927,7 +5929,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(49, 5) Source(8, 5) + SourceIndex(3) @@ -5939,8 +5941,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -5959,19 +5961,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(51, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(51, 2) Source(11, 2) + SourceIndex(3) @@ -5985,7 +5987,7 @@ sourceFile:../../../second/second_part1.ts 1-> 2 >^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^ -1-> +1-> > > 2 >function @@ -6119,10 +6121,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(62, 5) Source(5, 1) + SourceIndex(4) @@ -6149,7 +6151,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -6171,7 +6173,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(65, 5) Source(4, 5) + SourceIndex(4) @@ -6180,7 +6182,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(66, 5) Source(5, 1) + SourceIndex(4) @@ -6195,10 +6197,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(67, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(67, 2) Source(5, 2) + SourceIndex(4) @@ -6243,7 +6245,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -6262,7 +6264,7 @@ sourceFile:../../third_part1.ts 2 >^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >function 3 > forthirdthird_part1Rest @@ -6361,7 +6363,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":489,"kind":"emitHelpers","data":"typescript:read"},{"pos":490,"end":870,"kind":"emitHelpers","data":"typescript:spreadArray"},{"pos":871,"end":1361,"kind":"emitHelpers","data":"typescript:rest"},{"pos":1362,"end":1521,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":1362,"end":1521,"kind":"text"}]},{"pos":1521,"end":2073,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":1521,"end":2073,"kind":"text"}]},{"pos":2073,"end":2221,"kind":"text"}],"mapHash":"10267526983-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXrD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,IAAM,qBAAqB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACvC,wBAAwB,8BAAC,EAAE,UAAK,qBAAqB,WAAE;ACdvD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC\"}","hash":"-25475842662-var __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar s = \"Hello, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() { }\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nfunction secondsecond_part1Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar secondsecond_part1_ar = [20, 30];\nsecondsecond_part1Spread.apply(void 0, __spreadArray([10], __read(secondsecond_part1_ar), false));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\nfunction forthirdthird_part1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\n//# sourceMappingURL=third-output.js.map","sources":{"helpers":["typescript:rest"]}},"dts":{"sections":[{"pos":0,"end":199,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":199,"kind":"text"}]},{"pos":199,"end":404,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":199,"end":404,"kind":"text"}]},{"pos":404,"end":472,"kind":"text"}],"mapHash":"11916833729-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;ACXtC,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,iBAAS,wBAAwB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACrD,QAAA,MAAM,qBAAqB,UAAW,CAAC;ACbvC,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC;AAEhB,iBAAS,uBAAuB,SAE/B\"}","hash":"-10232778840-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function secondsecond_part1Spread(...b: number[]): void;\ndeclare const secondsecond_part1_ar: number[];\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\ndeclare function forthirdthird_part1Rest(): void;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-14427003669-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n","-33702167696-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function secondsecond_part1Spread(...b: number[]): void;\ndeclare const secondsecond_part1_ar: number[];\ndeclare class C {\n doSomething(): void;\n}\n","-362916705-var c = new C();\r\nc.doSomething();\r\nfunction forthirdthird_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-8732161298-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function secondsecond_part1Spread(...b: number[]): void;\ndeclare const secondsecond_part1_ar: number[];\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\ndeclare function forthirdthird_part1Rest(): void;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":489,"kind":"emitHelpers","data":"typescript:read"},{"pos":490,"end":870,"kind":"emitHelpers","data":"typescript:spreadArray"},{"pos":871,"end":1361,"kind":"emitHelpers","data":"typescript:rest"},{"pos":1362,"end":1521,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":1362,"end":1521,"kind":"text"}]},{"pos":1521,"end":2073,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":1521,"end":2073,"kind":"text"}]},{"pos":2073,"end":2221,"kind":"text"}],"mapHash":"10267526983-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXrD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,IAAM,qBAAqB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACvC,wBAAwB,8BAAC,EAAE,UAAK,qBAAqB,WAAE;ACdvD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC\"}","hash":"-25475842662-var __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar s = \"Hello, world\";\nconsole.log(s);\nfunction forfirstfirst_PART1Rest() { }\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nfunction secondsecond_part1Spread() {\n var b = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n b[_i] = arguments[_i];\n }\n}\nvar secondsecond_part1_ar = [20, 30];\nsecondsecond_part1Spread.apply(void 0, __spreadArray([10], __read(secondsecond_part1_ar), false));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\nfunction forthirdthird_part1Rest() {\n var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, [\"b\"]);\n}\n//# sourceMappingURL=third-output.js.map","sources":{"helpers":["typescript:rest"]}},"dts":{"sections":[{"pos":0,"end":199,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":199,"kind":"text"}]},{"pos":199,"end":404,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":199,"end":404,"kind":"text"}]},{"pos":404,"end":472,"kind":"text"}],"mapHash":"11916833729-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;ACXtC,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,iBAAS,wBAAwB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACrD,QAAA,MAAM,qBAAqB,UAAW,CAAC;ACbvC,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC;AAEhB,iBAAS,uBAAuB,SAE/B\"}","hash":"-10232778840-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function secondsecond_part1Spread(...b: number[]): void;\ndeclare const secondsecond_part1_ar: number[];\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\ndeclare function forthirdthird_part1Rest(): void;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-14427003669-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n","-33702167696-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function secondsecond_part1Spread(...b: number[]): void;\ndeclare const secondsecond_part1_ar: number[];\ndeclare class C {\n doSomething(): void;\n}\n","-7656447355-var c = new C();\nc.doSomething();\nfunction forthirdthird_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-8732161298-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function secondsecond_part1Spread(...b: number[]): void;\ndeclare const secondsecond_part1_ar: number[];\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\ndeclare function forthirdthird_part1Rest(): void;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -6611,7 +6613,7 @@ declare function forthirdthird_part1Rest(): void; "../../../../lib/lib.d.ts": "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; };", "../../../first/bin/first-output.d.ts": "-14427003669-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function forfirstfirst_PART1Rest(): void;\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "-33702167696-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare function secondsecond_part1Spread(...b: number[]): void;\ndeclare const secondsecond_part1_ar: number[];\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "-362916705-var c = new C();\r\nc.doSomething();\r\nfunction forthirdthird_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}" + "../../third_part1.ts": "-7656447355-var c = new C();\nc.doSomething();\nfunction forthirdthird_part1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}" }, "root": [ [ @@ -6634,6 +6636,6 @@ declare function forthirdthird_part1Rest(): void; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 7858 + "size": 7855 } diff --git a/tests/baselines/reference/tsbuild/outfile-concat/multiple-prologues-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/multiple-prologues-in-all-projects.js index cbc07c59f1c13..c1850519a57e4 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/multiple-prologues-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/multiple-prologues-in-all-projects.js @@ -17,164 +17,166 @@ declare const console: { log(msg: any): void; }; //// [/src/first/first_PART1.ts] "myPrologue" -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); //// [/src/first/first_part2.ts] -console.log(f()); +console.log(f()); //// [/src/first/first_part3.ts] -function f() { - return "JS does hoists"; -} +function f() { + return "JS does hoists"; +} + //// [/src/first/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "composite": true, - "removeComments": true, - "strict": true, - "sourceMap": true, - "declarationMap": true, - "outFile": "./bin/first-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "first_PART1.ts", - "first_part2.ts", - "first_part3.ts" - ], - "references": [ - ] +{ + "compilerOptions": { + "target": "es5", + "composite": true, + "removeComments": true, + "strict": true, + "sourceMap": true, + "declarationMap": true, + "outFile": "./bin/first-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "first_PART1.ts", + "first_part2.ts", + "first_part3.ts" + ], + "references": [] } - //// [/src/second/second_part1.ts] "myPrologue" -namespace N { - // Comment text -} - -namespace N { - function f() { - console.log('testing'); - } - - f(); -} +namespace N { + // Comment text +} + +namespace N { + function f() { + console.log('testing'); + } + + f(); +} //// [/src/second/second_part2.ts] "myPrologue2"; -class C { - doSomething() { - console.log("something got done"); - } -} +class C { + doSomething() { + console.log("something got done"); + } +} //// [/src/second/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": true, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "../2/second-output.js", - "skipDefaultLibCheck": true - }, - "references": [ - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": true, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "../2/second-output.js", + "skipDefaultLibCheck": true + }, + "references": [] } - //// [/src/third/third_part1.ts] "myPrologue3"; "myPrologue"; -var c = new C(); -c.doSomething(); +var c = new C(); +c.doSomething(); //// [/src/third/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": true, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "./thirdjs/output/third-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "third_part1.ts" - ], - "references": [ - { "path": "../first", "prepend": true }, - { "path": "../second", "prepend": true }, - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": true, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "./thirdjs/output/third-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "third_part1.ts" + ], + "references": [ + { + "path": "../first", + "prepend": true + }, + { + "path": "../second", + "prepend": true + } + ] } - Output:: /lib/tsc --b /src/third --verbose -[12:00:14 AM] Projects in this build: +[12:00:26 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:15 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist +[12:00:27 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist -[12:00:16 AM] Building project '/src/first/tsconfig.json'... +[12:00:28 AM] Building project '/src/first/tsconfig.json'... -[12:00:26 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist +[12:00:38 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist -[12:00:27 AM] Building project '/src/second/tsconfig.json'... +[12:00:39 AM] Building project '/src/second/tsconfig.json'... -[12:00:37 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist +[12:00:49 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist -[12:00:38 AM] Building project '/src/third/tsconfig.json'... +[12:00:50 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success readFiles:: { - "/src/third/tsconfig.json": 1, - "/src/first/tsconfig.json": 1, - "/src/second/tsconfig.json": 1, - "/src/first/first_PART1.ts": 1, - "/src/first/first_part2.ts": 1, - "/src/first/first_part3.ts": 1, - "/src/second/second_part1.ts": 1, - "/src/second/second_part2.ts": 1, - "/src/first/bin/first-output.d.ts": 1, - "/src/2/second-output.d.ts": 1, - "/src/third/third_part1.ts": 1, - "/src/first/bin/first-output.js": 1, - "/src/2/second-output.js": 1, - "/src/first/bin/first-output.js.map": 1, - "/src/2/second-output.js.map": 1, - "/src/first/bin/first-output.d.ts.map": 1, - "/src/2/second-output.d.ts.map": 1 + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/second/second_part1.ts": 1, + "/src/second/second_part2.ts": 1, + "/src/first/bin/first-output.d.ts": 1, + "/src/2/second-output.d.ts": 1, + "/src/third/third_part1.ts": 1, + "/src/first/bin/first-output.js": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1 } //// [/src/2/second-output.d.ts] @@ -219,8 +221,8 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(2, 2) Source(4, 2) + SourceIndex(0) --- @@ -229,8 +231,8 @@ sourceFile:../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -243,12 +245,12 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(4, 2) Source(12, 2) + SourceIndex(0) --- @@ -272,7 +274,7 @@ sourceFile:../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(6, 5) Source(3, 5) + SourceIndex(1) @@ -281,9 +283,9 @@ sourceFile:../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(7, 2) Source(6, 2) + SourceIndex(1) --- @@ -363,19 +365,19 @@ sourceFile:../second/second_part1.ts 4 > ^ 5 > ^^^^^^^^^-> 1 >"myPrologue" - >namespace N { - > // Comment text - >} - > + >namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1 >Emitted(4, 1) Source(6, 1) + SourceIndex(0) 2 >Emitted(4, 5) Source(6, 11) + SourceIndex(0) @@ -399,7 +401,7 @@ sourceFile:../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -416,7 +418,7 @@ sourceFile:../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -438,7 +440,7 @@ sourceFile:../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(8, 5) Source(9, 5) + SourceIndex(0) @@ -450,8 +452,8 @@ sourceFile:../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -470,19 +472,19 @@ sourceFile:../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(10, 1) Source(12, 1) + SourceIndex(0) 2 >Emitted(10, 2) Source(12, 2) + SourceIndex(0) @@ -513,10 +515,10 @@ sourceFile:../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(13, 5) Source(6, 1) + SourceIndex(1) @@ -543,7 +545,7 @@ sourceFile:../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -565,7 +567,7 @@ sourceFile:../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(16, 5) Source(5, 5) + SourceIndex(1) @@ -574,7 +576,7 @@ sourceFile:../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(17, 5) Source(6, 1) + SourceIndex(1) @@ -589,10 +591,10 @@ sourceFile:../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(18, 1) Source(6, 1) + SourceIndex(1) 2 >Emitted(18, 2) Source(6, 2) + SourceIndex(1) @@ -602,7 +604,7 @@ sourceFile:../second/second_part2.ts >>>//# sourceMappingURL=second-output.js.map //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":27,"kind":"prologue","data":"myPrologue"},{"pos":28,"end":42,"kind":"prologue","data":"myPrologue2"},{"pos":43,"end":313,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"\"myPrologue\"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}},{"pos":0,"end":12,"expression":{"pos":0,"end":12,"text":"myPrologue"}}]},{"file":1,"text":"\"myPrologue2\";","directives":[{"pos":0,"end":14,"expression":{"pos":0,"end":13,"text":"myPrologue2"}}]}]},"mapHash":"-3048025768-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\";AAAA,YAAY,CAAA;ACAZ,aAAa,CAAC;ADKd,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-13584872562-\"use strict\";\n\"myPrologue\";\n\"myPrologue2\";\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":93,"kind":"text"}],"mapHash":"10908638301-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AACA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-16005591226-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["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; };","-5295626911-\"myPrologue\"\nnamespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n","18749993618-\"myPrologue2\";\nclass C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":true,"target":1},"outSignature":"-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":27,"kind":"prologue","data":"myPrologue"},{"pos":28,"end":42,"kind":"prologue","data":"myPrologue2"},{"pos":43,"end":313,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"\"myPrologue\"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}},{"pos":0,"end":12,"expression":{"pos":0,"end":12,"text":"myPrologue"}}]},{"file":1,"text":"\"myPrologue2\";","directives":[{"pos":0,"end":14,"expression":{"pos":0,"end":13,"text":"myPrologue2"}}]}]},"mapHash":"-3048025768-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\";AAAA,YAAY,CAAA;ACAZ,aAAa,CAAC;ADKd,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-13584872562-\"use strict\";\n\"myPrologue\";\n\"myPrologue2\";\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":93,"kind":"text"}],"mapHash":"10908638301-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AACA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-16005591226-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["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; };","4499899090-\"myPrologue\"\nnamespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n","7702061777-\"myPrologue2\";\nclass C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":true,"target":1},"outSignature":"-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -749,8 +751,8 @@ declare class C { ], "fileInfos": { "../../lib/lib.d.ts": "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; };", - "../second/second_part1.ts": "-5295626911-\"myPrologue\"\nnamespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n", - "../second/second_part2.ts": "18749993618-\"myPrologue2\";\nclass C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n" + "../second/second_part1.ts": "4499899090-\"myPrologue\"\nnamespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", + "../second/second_part2.ts": "7702061777-\"myPrologue2\";\nclass C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n" }, "root": [ [ @@ -777,7 +779,7 @@ declare class C { "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 3374 + "size": 3340 } //// [/src/first/bin/first-output.d.ts] @@ -823,7 +825,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -838,7 +840,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(4, 2) + SourceIndex(0) --- @@ -849,8 +851,8 @@ sourceFile:../first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -868,8 +870,8 @@ sourceFile:../first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -883,7 +885,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -898,7 +900,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(10, 2) + SourceIndex(0) --- @@ -915,8 +917,8 @@ sourceFile:../first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) @@ -971,10 +973,10 @@ sourceFile:../first_PART1.ts 5 > ^^^^^^^^^^^^^^ 6 > ^ 1-> - >interface TheFirst { - > none: any; - >} - > + >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -998,12 +1000,12 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -1075,7 +1077,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -1089,7 +1091,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(8, 1) Source(3, 1) + SourceIndex(2) @@ -1098,7 +1100,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":27,"kind":"prologue","data":"myPrologue"},{"pos":28,"end":132,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"\"myPrologue\"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}},{"pos":0,"end":12,"expression":{"pos":0,"end":12,"text":"myPrologue"}}]}]},"mapHash":"-16462635350-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AAAA,YAAY,CAAA;AAKZ,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-3610712971-\"use strict\";\n\"myPrologue\";\nvar s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"18068494155-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AETD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","31392936222-\"myPrologue\"\ninterface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":true,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":27,"kind":"prologue","data":"myPrologue"},{"pos":28,"end":132,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"\"myPrologue\"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}},{"pos":0,"end":12,"expression":{"pos":0,"end":12,"text":"myPrologue"}}]}]},"mapHash":"-16462635350-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AAAA,YAAY,CAAA;AAKZ,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-3610712971-\"use strict\";\n\"myPrologue\";\nvar s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"18068494155-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AETD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","31264093903-\"myPrologue\"\ninterface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":true,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -1215,9 +1217,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "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; };", - "../first_part1.ts": "31392936222-\"myPrologue\"\ninterface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "31264093903-\"myPrologue\"\ninterface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -1246,7 +1248,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 3036 + "size": 3010 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -1300,7 +1302,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -1315,7 +1317,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(4, 2) + SourceIndex(0) --- @@ -1326,8 +1328,8 @@ sourceFile:../../../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -1345,8 +1347,8 @@ sourceFile:../../../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -1360,7 +1362,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -1375,7 +1377,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(10, 2) + SourceIndex(0) --- @@ -1391,8 +1393,8 @@ sourceFile:../../../first/first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) @@ -1421,8 +1423,8 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(10, 2) Source(4, 2) + SourceIndex(2) --- @@ -1431,8 +1433,8 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -1445,12 +1447,12 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(12, 2) Source(12, 2) + SourceIndex(2) --- @@ -1474,7 +1476,7 @@ sourceFile:../../../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(14, 5) Source(3, 5) + SourceIndex(3) @@ -1483,9 +1485,9 @@ sourceFile:../../../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(15, 2) Source(6, 2) + SourceIndex(3) --- @@ -1618,10 +1620,10 @@ sourceFile:../../../first/first_PART1.ts 5 > ^^^^^^^^^^^^^^ 6 > ^ 1->"myPrologue" - >interface TheFirst { - > none: any; - >} - > + >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -1645,12 +1647,12 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -1722,7 +1724,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -1736,7 +1738,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(10, 1) Source(3, 1) + SourceIndex(4) @@ -1753,19 +1755,19 @@ sourceFile:../../../second/second_part1.ts 4 > ^ 5 > ^^^^^^^^^-> 1->"myPrologue" - >namespace N { - > // Comment text - >} - > + >namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(11, 1) Source(6, 1) + SourceIndex(5) 2 >Emitted(11, 5) Source(6, 11) + SourceIndex(5) @@ -1789,7 +1791,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -1806,7 +1808,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -1828,7 +1830,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(15, 5) Source(9, 5) + SourceIndex(5) @@ -1840,8 +1842,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -1860,19 +1862,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(17, 1) Source(12, 1) + SourceIndex(5) 2 >Emitted(17, 2) Source(12, 2) + SourceIndex(5) @@ -1903,10 +1905,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(20, 5) Source(6, 1) + SourceIndex(1) @@ -1933,7 +1935,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -1955,7 +1957,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(23, 5) Source(5, 5) + SourceIndex(1) @@ -1964,7 +1966,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(24, 5) Source(6, 1) + SourceIndex(1) @@ -1979,10 +1981,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(25, 1) Source(6, 1) + SourceIndex(1) 2 >Emitted(25, 2) Source(6, 2) + SourceIndex(1) @@ -2029,7 +2031,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -2046,7 +2048,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":27,"kind":"prologue","data":"myPrologue"},{"pos":28,"end":42,"kind":"prologue","data":"myPrologue2"},{"pos":43,"end":57,"kind":"prologue","data":"myPrologue3"},{"pos":58,"end":162,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":58,"end":162,"kind":"text"}]},{"pos":162,"end":432,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":162,"end":432,"kind":"text"}]},{"pos":432,"end":466,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"\"myPrologue3\";\n\"myPrologue\";","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}},{"pos":0,"end":14,"expression":{"pos":0,"end":13,"text":"myPrologue3"}},{"pos":14,"end":28,"expression":{"pos":14,"end":27,"text":"myPrologue"}}]}]},"mapHash":"28083733311-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\"],\"names\":[],\"mappings\":\";AAAA,YAAY,CAAA;ACAZ,aAAa,CAAC;ACAd,aAAa,CAAC;AFKd,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AGXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AJVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACHD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-29491078422-\"use strict\";\n\"myPrologue\";\n\"myPrologue2\";\n\"myPrologue3\";\nvar s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":149,"kind":"text"}]},{"pos":149,"end":242,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":149,"end":242,"kind":"text"}]},{"pos":242,"end":260,"kind":"text"}],"mapHash":"37827717207-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACTD,iBAAS,CAAC,WAET;ACDD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACHD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"406139541-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","419920190-\"myPrologue3\";\n\"myPrologue\";\nvar c = new C();\r\nc.doSomething();\r\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":true,"target":1},"outSignature":"-2893455973-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":27,"kind":"prologue","data":"myPrologue"},{"pos":28,"end":42,"kind":"prologue","data":"myPrologue2"},{"pos":43,"end":57,"kind":"prologue","data":"myPrologue3"},{"pos":58,"end":162,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":58,"end":162,"kind":"text"}]},{"pos":162,"end":432,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":162,"end":432,"kind":"text"}]},{"pos":432,"end":466,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"\"myPrologue3\";\n\"myPrologue\";","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}},{"pos":0,"end":14,"expression":{"pos":0,"end":13,"text":"myPrologue3"}},{"pos":14,"end":28,"expression":{"pos":14,"end":27,"text":"myPrologue"}}]}]},"mapHash":"28083733311-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\"],\"names\":[],\"mappings\":\";AAAA,YAAY,CAAA;ACAZ,aAAa,CAAC;ACAd,aAAa,CAAC;AFKd,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AGXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AJVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACHD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-29491078422-\"use strict\";\n\"myPrologue\";\n\"myPrologue2\";\n\"myPrologue3\";\nvar s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":149,"kind":"text"}]},{"pos":149,"end":242,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":149,"end":242,"kind":"text"}]},{"pos":242,"end":260,"kind":"text"}],"mapHash":"37827717207-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACTD,iBAAS,CAAC,WAET;ACDD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACHD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"406139541-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","-627535068-\"myPrologue3\";\n\"myPrologue\";\nvar c = new C();\nc.doSomething();\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":true,"target":1},"outSignature":"-2893455973-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -2287,7 +2289,7 @@ declare var c: C; "../../../../lib/lib.d.ts": "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; };", "../../../first/bin/first-output.d.ts": "-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "419920190-\"myPrologue3\";\n\"myPrologue\";\nvar c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "-627535068-\"myPrologue3\";\n\"myPrologue\";\nvar c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -2310,7 +2312,7 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 5161 + "size": 5158 } @@ -2319,58 +2321,58 @@ Change:: incremental-declaration-changes Input:: //// [/src/first/first_PART1.ts] "myPrologue" -interface TheFirst { - none: any; -} - -const s = "Hola, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hola, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:00:56 AM] Projects in this build: +[12:01:08 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:57 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:01:09 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:00:58 AM] Building project '/src/first/tsconfig.json'... +[12:01:10 AM] Building project '/src/first/tsconfig.json'... -[12:01:07 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part2.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:01:19 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part2.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:08 AM] Project 'src/third/tsconfig.json' is out of date because output 'src/third/thirdjs/output/third-output.tsbuildinfo' is older than input 'src/first' +[12:01:20 AM] Project 'src/third/tsconfig.json' is out of date because output 'src/third/thirdjs/output/third-output.tsbuildinfo' is older than input 'src/first' -[12:01:09 AM] Building project '/src/third/tsconfig.json'... +[12:01:21 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success readFiles:: { - "/src/third/tsconfig.json": 1, - "/src/first/tsconfig.json": 1, - "/src/second/tsconfig.json": 1, - "/src/first/bin/first-output.tsbuildinfo": 1, - "/src/first/first_PART1.ts": 1, - "/src/first/first_part2.ts": 1, - "/src/first/first_part3.ts": 1, - "/src/2/second-output.tsbuildinfo": 1, - "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, - "/src/first/bin/first-output.d.ts": 1, - "/src/2/second-output.d.ts": 1, - "/src/third/third_part1.ts": 1, - "/src/first/bin/first-output.js": 1, - "/src/2/second-output.js": 1, - "/src/first/bin/first-output.js.map": 1, - "/src/2/second-output.js.map": 1, - "/src/first/bin/first-output.d.ts.map": 1, - "/src/2/second-output.d.ts.map": 1 + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/2/second-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, + "/src/first/bin/first-output.d.ts": 1, + "/src/2/second-output.d.ts": 1, + "/src/third/third_part1.ts": 1, + "/src/first/bin/first-output.js": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1 } //// [/src/first/bin/first-output.d.ts] @@ -2416,7 +2418,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -2431,7 +2433,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(4, 2) + SourceIndex(0) --- @@ -2442,8 +2444,8 @@ sourceFile:../first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -2461,8 +2463,8 @@ sourceFile:../first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -2476,7 +2478,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -2491,7 +2493,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(10, 2) + SourceIndex(0) --- @@ -2508,8 +2510,8 @@ sourceFile:../first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) @@ -2564,10 +2566,10 @@ sourceFile:../first_PART1.ts 5 > ^^^^^^^^^^^^^ 6 > ^ 1-> - >interface TheFirst { - > none: any; - >} - > + >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -2591,12 +2593,12 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -2668,7 +2670,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -2682,7 +2684,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(8, 1) Source(3, 1) + SourceIndex(2) @@ -2691,7 +2693,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":27,"kind":"prologue","data":"myPrologue"},{"pos":28,"end":131,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"\"myPrologue\"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}},{"pos":0,"end":12,"expression":{"pos":0,"end":12,"text":"myPrologue"}}]}]},"mapHash":"-4897215004-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AAAA,YAAY,CAAA;AAKZ,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-6284347259-\"use strict\";\n\"myPrologue\";\nvar s = \"Hola, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":148,"kind":"text"}],"mapHash":"11879278213-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AETD,iBAAS,CAAC,WAET\"}","hash":"-8638855186-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","36491275086-\"myPrologue\"\ninterface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":true,"target":1},"outSignature":"-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":27,"kind":"prologue","data":"myPrologue"},{"pos":28,"end":131,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"\"myPrologue\"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}},{"pos":0,"end":12,"expression":{"pos":0,"end":12,"text":"myPrologue"}}]}]},"mapHash":"-4897215004-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AAAA,YAAY,CAAA;AAKZ,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-6284347259-\"use strict\";\n\"myPrologue\";\nvar s = \"Hola, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":148,"kind":"text"}],"mapHash":"11879278213-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AETD,iBAAS,CAAC,WAET\"}","hash":"-8638855186-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","24417735039-\"myPrologue\"\ninterface TheFirst {\n none: any;\n}\n\nconst s = \"Hola, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":true,"target":1},"outSignature":"-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -2808,9 +2810,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "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; };", - "../first_part1.ts": "36491275086-\"myPrologue\"\ninterface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "24417735039-\"myPrologue\"\ninterface TheFirst {\n none: any;\n}\n\nconst s = \"Hola, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -2839,7 +2841,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 3030 + "size": 3004 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -2893,7 +2895,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -2908,7 +2910,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(4, 2) + SourceIndex(0) --- @@ -2919,8 +2921,8 @@ sourceFile:../../../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -2938,8 +2940,8 @@ sourceFile:../../../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -2953,7 +2955,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -2968,7 +2970,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(10, 2) + SourceIndex(0) --- @@ -2984,8 +2986,8 @@ sourceFile:../../../first/first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) @@ -3014,8 +3016,8 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(10, 2) Source(4, 2) + SourceIndex(2) --- @@ -3024,8 +3026,8 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -3038,12 +3040,12 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(12, 2) Source(12, 2) + SourceIndex(2) --- @@ -3067,7 +3069,7 @@ sourceFile:../../../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(14, 5) Source(3, 5) + SourceIndex(3) @@ -3076,9 +3078,9 @@ sourceFile:../../../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(15, 2) Source(6, 2) + SourceIndex(3) --- @@ -3211,10 +3213,10 @@ sourceFile:../../../first/first_PART1.ts 5 > ^^^^^^^^^^^^^ 6 > ^ 1->"myPrologue" - >interface TheFirst { - > none: any; - >} - > + >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -3238,12 +3240,12 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -3315,7 +3317,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -3329,7 +3331,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(10, 1) Source(3, 1) + SourceIndex(4) @@ -3346,19 +3348,19 @@ sourceFile:../../../second/second_part1.ts 4 > ^ 5 > ^^^^^^^^^-> 1->"myPrologue" - >namespace N { - > // Comment text - >} - > + >namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(11, 1) Source(6, 1) + SourceIndex(5) 2 >Emitted(11, 5) Source(6, 11) + SourceIndex(5) @@ -3382,7 +3384,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -3399,7 +3401,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -3421,7 +3423,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(15, 5) Source(9, 5) + SourceIndex(5) @@ -3433,8 +3435,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -3453,19 +3455,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(17, 1) Source(12, 1) + SourceIndex(5) 2 >Emitted(17, 2) Source(12, 2) + SourceIndex(5) @@ -3496,10 +3498,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(20, 5) Source(6, 1) + SourceIndex(1) @@ -3526,7 +3528,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -3548,7 +3550,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(23, 5) Source(5, 5) + SourceIndex(1) @@ -3557,7 +3559,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(24, 5) Source(6, 1) + SourceIndex(1) @@ -3572,10 +3574,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(25, 1) Source(6, 1) + SourceIndex(1) 2 >Emitted(25, 2) Source(6, 2) + SourceIndex(1) @@ -3622,7 +3624,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -3639,7 +3641,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":27,"kind":"prologue","data":"myPrologue"},{"pos":28,"end":42,"kind":"prologue","data":"myPrologue2"},{"pos":43,"end":57,"kind":"prologue","data":"myPrologue3"},{"pos":58,"end":161,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":58,"end":161,"kind":"text"}]},{"pos":161,"end":431,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":161,"end":431,"kind":"text"}]},{"pos":431,"end":465,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"\"myPrologue3\";\n\"myPrologue\";","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}},{"pos":0,"end":14,"expression":{"pos":0,"end":13,"text":"myPrologue3"}},{"pos":14,"end":28,"expression":{"pos":14,"end":27,"text":"myPrologue"}}]}]},"mapHash":"-70914791687-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\"],\"names\":[],\"mappings\":\";AAAA,YAAY,CAAA;ACAZ,aAAa,CAAC;ACAd,aAAa,CAAC;AFKd,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AGXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AJVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACHD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"23408454490-\"use strict\";\n\"myPrologue\";\n\"myPrologue2\";\n\"myPrologue3\";\nvar s = \"Hola, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":148,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":148,"kind":"text"}]},{"pos":148,"end":241,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":148,"end":241,"kind":"text"}]},{"pos":241,"end":259,"kind":"text"}],"mapHash":"5755872145-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACTD,iBAAS,CAAC,WAET;ACDD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACHD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-30232795483-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","419920190-\"myPrologue3\";\n\"myPrologue\";\nvar c = new C();\r\nc.doSomething();\r\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":true,"target":1},"outSignature":"-16013804117-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":27,"kind":"prologue","data":"myPrologue"},{"pos":28,"end":42,"kind":"prologue","data":"myPrologue2"},{"pos":43,"end":57,"kind":"prologue","data":"myPrologue3"},{"pos":58,"end":161,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":58,"end":161,"kind":"text"}]},{"pos":161,"end":431,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":161,"end":431,"kind":"text"}]},{"pos":431,"end":465,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"\"myPrologue3\";\n\"myPrologue\";","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}},{"pos":0,"end":14,"expression":{"pos":0,"end":13,"text":"myPrologue3"}},{"pos":14,"end":28,"expression":{"pos":14,"end":27,"text":"myPrologue"}}]}]},"mapHash":"-70914791687-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\"],\"names\":[],\"mappings\":\";AAAA,YAAY,CAAA;ACAZ,aAAa,CAAC;ACAd,aAAa,CAAC;AFKd,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AGXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AJVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACHD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"23408454490-\"use strict\";\n\"myPrologue\";\n\"myPrologue2\";\n\"myPrologue3\";\nvar s = \"Hola, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":148,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":148,"kind":"text"}]},{"pos":148,"end":241,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":148,"end":241,"kind":"text"}]},{"pos":241,"end":259,"kind":"text"}],"mapHash":"5755872145-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACTD,iBAAS,CAAC,WAET;ACDD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACHD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-30232795483-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","-627535068-\"myPrologue3\";\n\"myPrologue\";\nvar c = new C();\nc.doSomething();\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":true,"target":1},"outSignature":"-16013804117-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -3880,7 +3882,7 @@ declare var c: C; "../../../../lib/lib.d.ts": "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; };", "../../../first/bin/first-output.d.ts": "-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "419920190-\"myPrologue3\";\n\"myPrologue\";\nvar c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "-627535068-\"myPrologue3\";\n\"myPrologue\";\nvar c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -3903,7 +3905,7 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 5160 + "size": 5157 } @@ -3912,61 +3914,61 @@ Change:: incremental-declaration-doesnt-change Input:: //// [/src/first/first_PART1.ts] "myPrologue" -interface TheFirst { - none: any; -} - -const s = "Hola, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hola, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:01:23 AM] Projects in this build: +[12:01:35 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:01:24 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:01:36 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:01:25 AM] Building project '/src/first/tsconfig.json'... +[12:01:37 AM] Building project '/src/first/tsconfig.json'... -[12:01:33 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part2.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:01:45 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part2.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:34 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:01:46 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:01:35 AM] Updating output of project '/src/third/tsconfig.json'... +[12:01:47 AM] Updating output of project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success readFiles:: { - "/src/third/tsconfig.json": 1, - "/src/first/tsconfig.json": 1, - "/src/second/tsconfig.json": 1, - "/src/first/bin/first-output.tsbuildinfo": 1, - "/src/first/first_PART1.ts": 1, - "/src/first/first_part2.ts": 1, - "/src/first/first_part3.ts": 1, - "/src/2/second-output.tsbuildinfo": 1, - "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, - "/src/third/thirdjs/output/third-output.js": 1, - "/src/third/thirdjs/output/third-output.js.map": 1, - "/src/third/thirdjs/output/third-output.d.ts": 1, - "/src/third/thirdjs/output/third-output.d.ts.map": 1, - "/src/first/bin/first-output.js": 1, - "/src/2/second-output.js": 1, - "/src/first/bin/first-output.js.map": 1, - "/src/2/second-output.js.map": 1, - "/src/first/bin/first-output.d.ts": 1, - "/src/2/second-output.d.ts": 1, - "/src/first/bin/first-output.d.ts.map": 1, - "/src/2/second-output.d.ts.map": 1 + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/2/second-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.js": 1, + "/src/third/thirdjs/output/third-output.js.map": 1, + "/src/third/thirdjs/output/third-output.d.ts": 1, + "/src/third/thirdjs/output/third-output.d.ts.map": 1, + "/src/first/bin/first-output.js": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/first/bin/first-output.d.ts": 1, + "/src/2/second-output.d.ts": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1 } //// [/src/first/bin/first-output.d.ts.map] file written with same contents @@ -4018,10 +4020,10 @@ sourceFile:../first_PART1.ts 5 > ^^^^^^^^^^^^^ 6 > ^ 1-> - >interface TheFirst { - > none: any; - >} - > + >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -4044,12 +4046,12 @@ sourceFile:../first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -4077,7 +4079,7 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > +1 > > 2 >console 3 > . @@ -4149,7 +4151,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -4163,7 +4165,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(9, 1) Source(3, 1) + SourceIndex(2) @@ -4172,7 +4174,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":27,"kind":"prologue","data":"myPrologue"},{"pos":28,"end":147,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"\"myPrologue\"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}},{"pos":0,"end":12,"expression":{"pos":0,"end":12,"text":"myPrologue"}}]}]},"mapHash":"-14273144424-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AAAA,YAAY,CAAA;AAKZ,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACZf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-4031265999-\"use strict\";\n\"myPrologue\";\nvar s = \"Hola, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":148,"kind":"text"}],"mapHash":"11879278213-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AETD,iBAAS,CAAC,WAET\"}","hash":"-8638855186-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","38656732144-\"myPrologue\"\ninterface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":true,"target":1},"outSignature":"-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":27,"kind":"prologue","data":"myPrologue"},{"pos":28,"end":147,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"\"myPrologue\"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}},{"pos":0,"end":12,"expression":{"pos":0,"end":12,"text":"myPrologue"}}]}]},"mapHash":"-14273144424-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AAAA,YAAY,CAAA;AAKZ,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACZf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-4031265999-\"use strict\";\n\"myPrologue\";\nvar s = \"Hola, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":148,"kind":"text"}],"mapHash":"11879278213-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AETD,iBAAS,CAAC,WAET\"}","hash":"-8638855186-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","18526163457-\"myPrologue\"\ninterface TheFirst {\n none: any;\n}\n\nconst s = \"Hola, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":true,"target":1},"outSignature":"-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -4290,9 +4292,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "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; };", - "../first_part1.ts": "38656732144-\"myPrologue\"\ninterface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "18526163457-\"myPrologue\"\ninterface TheFirst {\n none: any;\n}\n\nconst s = \"Hola, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -4321,7 +4323,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 3103 + "size": 3077 } //// [/src/third/thirdjs/output/third-output.js] @@ -4425,10 +4427,10 @@ sourceFile:../../../first/first_PART1.ts 5 > ^^^^^^^^^^^^^ 6 > ^ 1->"myPrologue" - >interface TheFirst { - > none: any; - >} - > + >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -4451,12 +4453,12 @@ sourceFile:../../../first/first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -4484,7 +4486,7 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > +1 > > 2 >console 3 > . @@ -4556,7 +4558,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -4570,7 +4572,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(11, 1) Source(3, 1) + SourceIndex(4) @@ -4587,19 +4589,19 @@ sourceFile:../../../second/second_part1.ts 4 > ^ 5 > ^^^^^^^^^-> 1->"myPrologue" - >namespace N { - > // Comment text - >} - > + >namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(12, 1) Source(6, 1) + SourceIndex(5) 2 >Emitted(12, 5) Source(6, 11) + SourceIndex(5) @@ -4623,7 +4625,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -4640,7 +4642,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -4662,7 +4664,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(16, 5) Source(9, 5) + SourceIndex(5) @@ -4674,8 +4676,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -4694,19 +4696,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(18, 1) Source(12, 1) + SourceIndex(5) 2 >Emitted(18, 2) Source(12, 2) + SourceIndex(5) @@ -4737,10 +4739,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(21, 5) Source(6, 1) + SourceIndex(1) @@ -4767,7 +4769,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -4789,7 +4791,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(24, 5) Source(5, 5) + SourceIndex(1) @@ -4798,7 +4800,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(25, 5) Source(6, 1) + SourceIndex(1) @@ -4813,10 +4815,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(26, 1) Source(6, 1) + SourceIndex(1) 2 >Emitted(26, 2) Source(6, 2) + SourceIndex(1) @@ -4863,7 +4865,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -4880,7 +4882,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":27,"kind":"prologue","data":"myPrologue"},{"pos":28,"end":42,"kind":"prologue","data":"myPrologue2"},{"pos":43,"end":57,"kind":"prologue","data":"myPrologue3"},{"pos":58,"end":177,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":58,"end":177,"kind":"text"}]},{"pos":177,"end":447,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":177,"end":447,"kind":"text"}]},{"pos":447,"end":481,"kind":"text"}],"mapHash":"39252034733-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\"],\"names\":[],\"mappings\":\";AAAA,YAAY,CAAA;ACAZ,aAAa,CAAC;ACAd,aAAa,CAAC;AFKd,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AGZf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AJVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACHD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-19228682234-\"use strict\";\n\"myPrologue\";\n\"myPrologue2\";\n\"myPrologue3\";\nvar s = \"Hola, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map","sources":{"prologues":[{"file":0,"text":"\"myPrologue3\";\n\"myPrologue\";","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}},{"pos":0,"end":14,"expression":{"pos":0,"end":13,"text":"myPrologue3"}},{"pos":14,"end":28,"expression":{"pos":14,"end":27,"text":"myPrologue"}}]}]}},"dts":{"sections":[{"pos":0,"end":148,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":148,"kind":"text"}]},{"pos":148,"end":241,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":148,"end":241,"kind":"text"}]},{"pos":241,"end":259,"kind":"text"}],"mapHash":"5755872145-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACTD,iBAAS,CAAC,WAET;ACDD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACHD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-30232795483-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","419920190-\"myPrologue3\";\n\"myPrologue\";\nvar c = new C();\r\nc.doSomething();\r\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":true,"target":1},"outSignature":"-16013804117-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":27,"kind":"prologue","data":"myPrologue"},{"pos":28,"end":42,"kind":"prologue","data":"myPrologue2"},{"pos":43,"end":57,"kind":"prologue","data":"myPrologue3"},{"pos":58,"end":177,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":58,"end":177,"kind":"text"}]},{"pos":177,"end":447,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":177,"end":447,"kind":"text"}]},{"pos":447,"end":481,"kind":"text"}],"mapHash":"39252034733-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\"],\"names\":[],\"mappings\":\";AAAA,YAAY,CAAA;ACAZ,aAAa,CAAC;ACAd,aAAa,CAAC;AFKd,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AGZf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AJVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACHD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-19228682234-\"use strict\";\n\"myPrologue\";\n\"myPrologue2\";\n\"myPrologue3\";\nvar s = \"Hola, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map","sources":{"prologues":[{"file":0,"text":"\"myPrologue3\";\n\"myPrologue\";","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}},{"pos":0,"end":14,"expression":{"pos":0,"end":13,"text":"myPrologue3"}},{"pos":14,"end":28,"expression":{"pos":14,"end":27,"text":"myPrologue"}}]}]}},"dts":{"sections":[{"pos":0,"end":148,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":148,"kind":"text"}]},{"pos":148,"end":241,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":148,"end":241,"kind":"text"}]},{"pos":241,"end":259,"kind":"text"}],"mapHash":"5755872145-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACTD,iBAAS,CAAC,WAET;ACDD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACHD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-30232795483-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","-627535068-\"myPrologue3\";\n\"myPrologue\";\nvar c = new C();\nc.doSomething();\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":true,"target":1},"outSignature":"-16013804117-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -5122,7 +5124,7 @@ declare var c: C; "../../../../lib/lib.d.ts": "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; };", "../../../first/bin/first-output.d.ts": "-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "419920190-\"myPrologue3\";\n\"myPrologue\";\nvar c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "-627535068-\"myPrologue3\";\n\"myPrologue\";\nvar c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -5145,7 +5147,7 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 5217 + "size": 5214 } @@ -5155,61 +5157,61 @@ Input:: //// [/src/first/first_PART1.ts] "myPrologue5" "myPrologue" -interface TheFirst { - none: any; -} - -const s = "Hola, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hola, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:01:46 AM] Projects in this build: +[12:01:58 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:01:47 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:01:59 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:01:48 AM] Building project '/src/first/tsconfig.json'... +[12:02:00 AM] Building project '/src/first/tsconfig.json'... -[12:01:56 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part2.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:02:08 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part2.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:57 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:02:09 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:01:58 AM] Updating output of project '/src/third/tsconfig.json'... +[12:02:10 AM] Updating output of project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success readFiles:: { - "/src/third/tsconfig.json": 1, - "/src/first/tsconfig.json": 1, - "/src/second/tsconfig.json": 1, - "/src/first/bin/first-output.tsbuildinfo": 1, - "/src/first/first_PART1.ts": 1, - "/src/first/first_part2.ts": 1, - "/src/first/first_part3.ts": 1, - "/src/2/second-output.tsbuildinfo": 1, - "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, - "/src/third/thirdjs/output/third-output.js": 1, - "/src/third/thirdjs/output/third-output.js.map": 1, - "/src/third/thirdjs/output/third-output.d.ts": 1, - "/src/third/thirdjs/output/third-output.d.ts.map": 1, - "/src/first/bin/first-output.js": 1, - "/src/2/second-output.js": 1, - "/src/first/bin/first-output.js.map": 1, - "/src/2/second-output.js.map": 1, - "/src/first/bin/first-output.d.ts": 1, - "/src/2/second-output.d.ts": 1, - "/src/first/bin/first-output.d.ts.map": 1, - "/src/2/second-output.d.ts.map": 1 + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/2/second-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.js": 1, + "/src/third/thirdjs/output/third-output.js.map": 1, + "/src/third/thirdjs/output/third-output.d.ts": 1, + "/src/third/thirdjs/output/third-output.d.ts.map": 1, + "/src/first/bin/first-output.js": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/first/bin/first-output.d.ts": 1, + "/src/2/second-output.d.ts": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1 } //// [/src/first/bin/first-output.d.ts.map] @@ -5245,7 +5247,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -5260,7 +5262,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(5, 2) + SourceIndex(0) --- @@ -5271,8 +5273,8 @@ sourceFile:../first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -5290,8 +5292,8 @@ sourceFile:../first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -5305,7 +5307,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -5320,7 +5322,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(11, 2) + SourceIndex(0) --- @@ -5337,8 +5339,8 @@ sourceFile:../first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) @@ -5407,10 +5409,10 @@ sourceFile:../first_PART1.ts 5 > ^^^^^^^^^^^^^ 6 > ^ 1-> - >interface TheFirst { - > none: any; - >} - > + >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -5433,12 +5435,12 @@ sourceFile:../first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -5466,7 +5468,7 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > +1 > > 2 >console 3 > . @@ -5538,7 +5540,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -5552,7 +5554,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(10, 1) Source(3, 1) + SourceIndex(2) @@ -5561,7 +5563,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":28,"kind":"prologue","data":"myPrologue5"},{"pos":29,"end":42,"kind":"prologue","data":"myPrologue"},{"pos":43,"end":162,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"\"myPrologue5\"\n\"myPrologue\"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}},{"pos":0,"end":13,"expression":{"pos":0,"end":13,"text":"myPrologue5"}},{"pos":13,"end":26,"expression":{"pos":13,"end":26,"text":"myPrologue"}}]}]},"mapHash":"291662276-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AAAA,aAAa,CAAA;AACb,YAAY,CAAA;AAKZ,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACbf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-10744772990-\"use strict\";\n\"myPrologue5\";\n\"myPrologue\";\nvar s = \"Hola, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":148,"kind":"text"}],"mapHash":"22465488777-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAEA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AEVD,iBAAS,CAAC,WAET\"}","hash":"-8638855186-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","35213579206-\"myPrologue5\"\n\"myPrologue\"\ninterface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":true,"target":1},"outSignature":"-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":28,"kind":"prologue","data":"myPrologue5"},{"pos":29,"end":42,"kind":"prologue","data":"myPrologue"},{"pos":43,"end":162,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"\"myPrologue5\"\n\"myPrologue\"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}},{"pos":0,"end":13,"expression":{"pos":0,"end":13,"text":"myPrologue5"}},{"pos":13,"end":26,"expression":{"pos":13,"end":26,"text":"myPrologue"}}]}]},"mapHash":"291662276-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AAAA,aAAa,CAAA;AACb,YAAY,CAAA;AAKZ,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACbf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-10744772990-\"use strict\";\n\"myPrologue5\";\n\"myPrologue\";\nvar s = \"Hola, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":148,"kind":"text"}],"mapHash":"22465488777-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAEA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AEVD,iBAAS,CAAC,WAET\"}","hash":"-8638855186-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-6976674921-\"myPrologue5\"\n\"myPrologue\"\ninterface TheFirst {\n none: any;\n}\n\nconst s = \"Hola, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":true,"target":1},"outSignature":"-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -5697,9 +5699,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "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; };", - "../first_part1.ts": "35213579206-\"myPrologue5\"\n\"myPrologue\"\ninterface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-6976674921-\"myPrologue5\"\n\"myPrologue\"\ninterface TheFirst {\n none: any;\n}\n\nconst s = \"Hola, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -5728,7 +5730,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 3301 + "size": 3275 } //// [/src/third/thirdjs/output/third-output.d.ts.map] @@ -5764,7 +5766,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -5779,7 +5781,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(5, 2) + SourceIndex(0) --- @@ -5790,8 +5792,8 @@ sourceFile:../../../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -5809,8 +5811,8 @@ sourceFile:../../../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -5824,7 +5826,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -5839,7 +5841,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(11, 2) + SourceIndex(0) --- @@ -5855,8 +5857,8 @@ sourceFile:../../../first/first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) @@ -5885,8 +5887,8 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(10, 2) Source(4, 2) + SourceIndex(2) --- @@ -5895,8 +5897,8 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -5909,12 +5911,12 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(12, 2) Source(12, 2) + SourceIndex(2) --- @@ -5938,7 +5940,7 @@ sourceFile:../../../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(14, 5) Source(3, 5) + SourceIndex(3) @@ -5947,9 +5949,9 @@ sourceFile:../../../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(15, 2) Source(6, 2) + SourceIndex(3) --- @@ -6097,10 +6099,10 @@ sourceFile:../../../first/first_PART1.ts 6 > ^ 1->"myPrologue5" >"myPrologue" - >interface TheFirst { - > none: any; - >} - > + >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -6123,12 +6125,12 @@ sourceFile:../../../first/first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -6156,7 +6158,7 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > +1 > > 2 >console 3 > . @@ -6228,7 +6230,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -6242,7 +6244,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(12, 1) Source(3, 1) + SourceIndex(4) @@ -6259,19 +6261,19 @@ sourceFile:../../../second/second_part1.ts 4 > ^ 5 > ^^^^^^^^^-> 1->"myPrologue" - >namespace N { - > // Comment text - >} - > + >namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(13, 1) Source(6, 1) + SourceIndex(5) 2 >Emitted(13, 5) Source(6, 11) + SourceIndex(5) @@ -6295,7 +6297,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -6312,7 +6314,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -6334,7 +6336,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(17, 5) Source(9, 5) + SourceIndex(5) @@ -6346,8 +6348,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -6366,19 +6368,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(19, 1) Source(12, 1) + SourceIndex(5) 2 >Emitted(19, 2) Source(12, 2) + SourceIndex(5) @@ -6409,10 +6411,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(22, 5) Source(6, 1) + SourceIndex(1) @@ -6439,7 +6441,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -6461,7 +6463,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(25, 5) Source(5, 5) + SourceIndex(1) @@ -6470,7 +6472,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(26, 5) Source(6, 1) + SourceIndex(1) @@ -6485,10 +6487,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(27, 1) Source(6, 1) + SourceIndex(1) 2 >Emitted(27, 2) Source(6, 2) + SourceIndex(1) @@ -6535,7 +6537,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -6552,7 +6554,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":28,"kind":"prologue","data":"myPrologue5"},{"pos":29,"end":42,"kind":"prologue","data":"myPrologue"},{"pos":43,"end":57,"kind":"prologue","data":"myPrologue2"},{"pos":58,"end":72,"kind":"prologue","data":"myPrologue3"},{"pos":73,"end":192,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":73,"end":192,"kind":"text"}]},{"pos":192,"end":462,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":192,"end":462,"kind":"text"}]},{"pos":462,"end":496,"kind":"text"}],"mapHash":"-27088974530-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\"],\"names\":[],\"mappings\":\";AAAA,aAAa,CAAA;AACb,YAAY,CAAA;ACDZ,aAAa,CAAC;ACAd,aAAa,CAAC;AFMd,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AGbf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AJVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACHD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"26902052119-\"use strict\";\n\"myPrologue5\";\n\"myPrologue\";\n\"myPrologue2\";\n\"myPrologue3\";\nvar s = \"Hola, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map","sources":{"prologues":[{"file":0,"text":"\"myPrologue3\";\n\"myPrologue\";","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}},{"pos":0,"end":14,"expression":{"pos":0,"end":13,"text":"myPrologue3"}},{"pos":14,"end":28,"expression":{"pos":14,"end":27,"text":"myPrologue"}}]}]}},"dts":{"sections":[{"pos":0,"end":148,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":148,"kind":"text"}]},{"pos":148,"end":241,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":148,"end":241,"kind":"text"}]},{"pos":241,"end":259,"kind":"text"}],"mapHash":"-10856751979-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAEA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACVD,iBAAS,CAAC,WAET;ACDD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACHD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-30232795483-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","419920190-\"myPrologue3\";\n\"myPrologue\";\nvar c = new C();\r\nc.doSomething();\r\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":true,"target":1},"outSignature":"-16013804117-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":28,"kind":"prologue","data":"myPrologue5"},{"pos":29,"end":42,"kind":"prologue","data":"myPrologue"},{"pos":43,"end":57,"kind":"prologue","data":"myPrologue2"},{"pos":58,"end":72,"kind":"prologue","data":"myPrologue3"},{"pos":73,"end":192,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":73,"end":192,"kind":"text"}]},{"pos":192,"end":462,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":192,"end":462,"kind":"text"}]},{"pos":462,"end":496,"kind":"text"}],"mapHash":"-27088974530-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\"],\"names\":[],\"mappings\":\";AAAA,aAAa,CAAA;AACb,YAAY,CAAA;ACDZ,aAAa,CAAC;ACAd,aAAa,CAAC;AFMd,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AGbf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AJVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACHD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"26902052119-\"use strict\";\n\"myPrologue5\";\n\"myPrologue\";\n\"myPrologue2\";\n\"myPrologue3\";\nvar s = \"Hola, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map","sources":{"prologues":[{"file":0,"text":"\"myPrologue3\";\n\"myPrologue\";","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}},{"pos":0,"end":14,"expression":{"pos":0,"end":13,"text":"myPrologue3"}},{"pos":14,"end":28,"expression":{"pos":14,"end":27,"text":"myPrologue"}}]}]}},"dts":{"sections":[{"pos":0,"end":148,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":148,"kind":"text"}]},{"pos":148,"end":241,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":148,"end":241,"kind":"text"}]},{"pos":241,"end":259,"kind":"text"}],"mapHash":"-10856751979-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAEA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACVD,iBAAS,CAAC,WAET;ACDD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACHD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-30232795483-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","-627535068-\"myPrologue3\";\n\"myPrologue\";\nvar c = new C();\nc.doSomething();\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":true,"target":1},"outSignature":"-16013804117-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -6803,7 +6805,7 @@ declare var c: C; "../../../../lib/lib.d.ts": "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; };", "../../../first/bin/first-output.d.ts": "-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "419920190-\"myPrologue3\";\n\"myPrologue\";\nvar c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "-627535068-\"myPrologue3\";\n\"myPrologue\";\nvar c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -6826,6 +6828,6 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 5311 + "size": 5308 } diff --git a/tests/baselines/reference/tsbuild/outfile-concat/multiple-prologues-in-different-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/multiple-prologues-in-different-projects.js index 6f805e6040937..f2c1eb3bbe899 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/multiple-prologues-in-different-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/multiple-prologues-in-different-projects.js @@ -16,142 +16,144 @@ interface ReadonlyArray {} declare const console: { log(msg: any): void; }; //// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); //// [/src/first/first_part2.ts] -console.log(f()); +console.log(f()); //// [/src/first/first_part3.ts] -function f() { - return "JS does hoists"; -} +function f() { + return "JS does hoists"; +} + //// [/src/first/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "composite": true, - "removeComments": true, - "strict": true, - "sourceMap": true, - "declarationMap": true, - "outFile": "./bin/first-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "first_PART1.ts", - "first_part2.ts", - "first_part3.ts" - ], - "references": [ - ] +{ + "compilerOptions": { + "target": "es5", + "composite": true, + "removeComments": true, + "strict": true, + "sourceMap": true, + "declarationMap": true, + "outFile": "./bin/first-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "first_PART1.ts", + "first_part2.ts", + "first_part3.ts" + ], + "references": [] } - //// [/src/second/second_part1.ts] "myPrologue" -namespace N { - // Comment text -} - -namespace N { - function f() { - console.log('testing'); - } - - f(); -} +namespace N { + // Comment text +} + +namespace N { + function f() { + console.log('testing'); + } + + f(); +} //// [/src/second/second_part2.ts] "myPrologue2"; -class C { - doSomething() { - console.log("something got done"); - } -} +class C { + doSomething() { + console.log("something got done"); + } +} //// [/src/second/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "../2/second-output.js", - "skipDefaultLibCheck": true - }, - "references": [ - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "../2/second-output.js", + "skipDefaultLibCheck": true + }, + "references": [] } - //// [/src/third/third_part1.ts] -var c = new C(); -c.doSomething(); +var c = new C(); +c.doSomething(); //// [/src/third/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": true, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "./thirdjs/output/third-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "third_part1.ts" - ], - "references": [ - { "path": "../first", "prepend": true }, - { "path": "../second", "prepend": true }, - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": true, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "./thirdjs/output/third-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "third_part1.ts" + ], + "references": [ + { + "path": "../first", + "prepend": true + }, + { + "path": "../second", + "prepend": true + } + ] } - Output:: /lib/tsc --b /src/third --verbose -[12:00:10 AM] Projects in this build: +[12:00:22 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:11 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist +[12:00:23 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist -[12:00:12 AM] Building project '/src/first/tsconfig.json'... +[12:00:24 AM] Building project '/src/first/tsconfig.json'... -[12:00:22 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist +[12:00:34 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist -[12:00:23 AM] Building project '/src/second/tsconfig.json'... +[12:00:35 AM] Building project '/src/second/tsconfig.json'... -[12:00:33 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist +[12:00:45 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist -[12:00:34 AM] Building project '/src/third/tsconfig.json'... +[12:00:46 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -198,8 +200,8 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(2, 2) Source(4, 2) + SourceIndex(0) --- @@ -208,8 +210,8 @@ sourceFile:../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -222,12 +224,12 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(4, 2) Source(12, 2) + SourceIndex(0) --- @@ -251,7 +253,7 @@ sourceFile:../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(6, 5) Source(3, 5) + SourceIndex(1) @@ -260,9 +262,9 @@ sourceFile:../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(7, 2) Source(6, 2) + SourceIndex(1) --- @@ -340,19 +342,19 @@ sourceFile:../second/second_part1.ts 4 > ^ 5 > ^^^^^^^^^-> 1 >"myPrologue" - >namespace N { - > // Comment text - >} - > + >namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1 >Emitted(3, 1) Source(6, 1) + SourceIndex(0) 2 >Emitted(3, 5) Source(6, 11) + SourceIndex(0) @@ -376,7 +378,7 @@ sourceFile:../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -393,7 +395,7 @@ sourceFile:../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -415,7 +417,7 @@ sourceFile:../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(7, 5) Source(9, 5) + SourceIndex(0) @@ -427,8 +429,8 @@ sourceFile:../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -447,19 +449,19 @@ sourceFile:../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(9, 1) Source(12, 1) + SourceIndex(0) 2 >Emitted(9, 2) Source(12, 2) + SourceIndex(0) @@ -490,10 +492,10 @@ sourceFile:../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(12, 5) Source(6, 1) + SourceIndex(1) @@ -520,7 +522,7 @@ sourceFile:../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -542,7 +544,7 @@ sourceFile:../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(15, 5) Source(5, 5) + SourceIndex(1) @@ -551,7 +553,7 @@ sourceFile:../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(16, 5) Source(6, 1) + SourceIndex(1) @@ -566,10 +568,10 @@ sourceFile:../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(17, 1) Source(6, 1) + SourceIndex(1) 2 >Emitted(17, 2) Source(6, 2) + SourceIndex(1) @@ -579,7 +581,7 @@ sourceFile:../second/second_part2.ts >>>//# sourceMappingURL=second-output.js.map //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"myPrologue"},{"pos":14,"end":28,"kind":"prologue","data":"myPrologue2"},{"pos":29,"end":299,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"\"myPrologue\"","directives":[{"pos":0,"end":12,"expression":{"pos":0,"end":12,"text":"myPrologue"}}]},{"file":1,"text":"\"myPrologue2\";","directives":[{"pos":0,"end":14,"expression":{"pos":0,"end":13,"text":"myPrologue2"}}]}]},"mapHash":"12655227837-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,YAAY,CAAA;ACAZ,aAAa,CAAC;ADKd,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"14567504159-\"myPrologue\";\n\"myPrologue2\";\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":93,"kind":"text"}],"mapHash":"10908638301-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AACA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-16005591226-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["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; };","-5295626911-\"myPrologue\"\nnamespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n","18749993618-\"myPrologue2\";\nclass C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"myPrologue"},{"pos":14,"end":28,"kind":"prologue","data":"myPrologue2"},{"pos":29,"end":299,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"\"myPrologue\"","directives":[{"pos":0,"end":12,"expression":{"pos":0,"end":12,"text":"myPrologue"}}]},{"file":1,"text":"\"myPrologue2\";","directives":[{"pos":0,"end":14,"expression":{"pos":0,"end":13,"text":"myPrologue2"}}]}]},"mapHash":"12655227837-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,YAAY,CAAA;ACAZ,aAAa,CAAC;ADKd,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"14567504159-\"myPrologue\";\n\"myPrologue2\";\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":93,"kind":"text"}],"mapHash":"10908638301-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AACA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-16005591226-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["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; };","4499899090-\"myPrologue\"\nnamespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n","7702061777-\"myPrologue2\";\nclass C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -708,8 +710,8 @@ declare class C { ], "fileInfos": { "../../lib/lib.d.ts": "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; };", - "../second/second_part1.ts": "-5295626911-\"myPrologue\"\nnamespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n", - "../second/second_part2.ts": "18749993618-\"myPrologue2\";\nclass C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n" + "../second/second_part1.ts": "4499899090-\"myPrologue\"\nnamespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", + "../second/second_part2.ts": "7702061777-\"myPrologue2\";\nclass C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n" }, "root": [ [ @@ -736,7 +738,7 @@ declare class C { "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 3225 + "size": 3191 } //// [/src/first/bin/first-output.d.ts] @@ -781,7 +783,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -796,7 +798,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -807,8 +809,8 @@ sourceFile:../first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -826,8 +828,8 @@ sourceFile:../first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -841,7 +843,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -856,7 +858,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -873,8 +875,8 @@ sourceFile:../first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) @@ -915,10 +917,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -942,12 +944,12 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -1019,7 +1021,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -1033,7 +1035,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) @@ -1042,7 +1044,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":118,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}}]}]},"mapHash":"-18922522596-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"5075798521-\"use strict\";\nvar s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":true,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":118,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}}]}]},"mapHash":"-18922522596-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"5075798521-\"use strict\";\nvar s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":true,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -1141,9 +1143,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "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; };", - "../first_part1.ts": "-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -1172,7 +1174,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2845 + "size": 2819 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -1225,7 +1227,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -1240,7 +1242,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -1251,8 +1253,8 @@ sourceFile:../../../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -1270,8 +1272,8 @@ sourceFile:../../../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -1285,7 +1287,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -1300,7 +1302,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -1316,8 +1318,8 @@ sourceFile:../../../first/first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) @@ -1346,8 +1348,8 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(10, 2) Source(4, 2) + SourceIndex(2) --- @@ -1356,8 +1358,8 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -1370,12 +1372,12 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(12, 2) Source(12, 2) + SourceIndex(2) --- @@ -1399,7 +1401,7 @@ sourceFile:../../../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(14, 5) Source(3, 5) + SourceIndex(3) @@ -1408,9 +1410,9 @@ sourceFile:../../../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(15, 2) Source(6, 2) + SourceIndex(3) --- @@ -1524,10 +1526,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1->interface TheFirst { - > none: any; - >} - > +1->interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -1551,12 +1553,12 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -1628,7 +1630,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -1642,7 +1644,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(9, 1) Source(3, 1) + SourceIndex(4) @@ -1659,19 +1661,19 @@ sourceFile:../../../second/second_part1.ts 4 > ^ 5 > ^^^^^^^^^-> 1->"myPrologue" - >namespace N { - > // Comment text - >} - > + >namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(10, 1) Source(6, 1) + SourceIndex(0) 2 >Emitted(10, 5) Source(6, 11) + SourceIndex(0) @@ -1695,7 +1697,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -1712,7 +1714,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -1734,7 +1736,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(14, 5) Source(9, 5) + SourceIndex(0) @@ -1746,8 +1748,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -1766,19 +1768,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(16, 1) Source(12, 1) + SourceIndex(0) 2 >Emitted(16, 2) Source(12, 2) + SourceIndex(0) @@ -1809,10 +1811,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(19, 5) Source(6, 1) + SourceIndex(1) @@ -1839,7 +1841,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -1861,7 +1863,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(22, 5) Source(5, 5) + SourceIndex(1) @@ -1870,7 +1872,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(23, 5) Source(6, 1) + SourceIndex(1) @@ -1885,10 +1887,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(24, 1) Source(6, 1) + SourceIndex(1) 2 >Emitted(24, 2) Source(6, 2) + SourceIndex(1) @@ -1933,7 +1935,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -1950,7 +1952,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":27,"kind":"prologue","data":"myPrologue"},{"pos":28,"end":42,"kind":"prologue","data":"myPrologue2"},{"pos":43,"end":147,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":43,"end":147,"kind":"text"}]},{"pos":147,"end":417,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":147,"end":417,"kind":"text"}]},{"pos":417,"end":451,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}}]}]},"mapHash":"40081010550-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AAAA,YAAY,CAAA;ACAZ,aAAa,CAAC;ACId,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AJGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;AILD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-22343800517-\"use strict\";\n\"myPrologue\";\n\"myPrologue2\";\nvar s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":149,"kind":"text"}]},{"pos":149,"end":242,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":149,"end":242,"kind":"text"}]},{"pos":242,"end":260,"kind":"text"}],"mapHash":"89480535-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACDD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACLD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"406139541-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":true,"target":1},"outSignature":"-2893455973-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":27,"kind":"prologue","data":"myPrologue"},{"pos":28,"end":42,"kind":"prologue","data":"myPrologue2"},{"pos":43,"end":147,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":43,"end":147,"kind":"text"}]},{"pos":147,"end":417,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":147,"end":417,"kind":"text"}]},{"pos":417,"end":451,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}}]}]},"mapHash":"40081010550-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AAAA,YAAY,CAAA;ACAZ,aAAa,CAAC;ACId,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AJGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;AILD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-22343800517-\"use strict\";\n\"myPrologue\";\n\"myPrologue2\";\nvar s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":149,"kind":"text"}]},{"pos":149,"end":242,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":149,"end":242,"kind":"text"}]},{"pos":242,"end":260,"kind":"text"}],"mapHash":"89480535-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACDD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACLD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"406139541-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":true,"target":1},"outSignature":"-2893455973-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -2164,7 +2166,7 @@ declare var c: C; "../../../../lib/lib.d.ts": "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; };", "../../../first/bin/first-output.d.ts": "-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -2187,7 +2189,7 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 4855 + "size": 4850 } @@ -2195,37 +2197,37 @@ declare var c: C; Change:: incremental-declaration-doesnt-change Input:: //// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:00:52 AM] Projects in this build: +[12:01:04 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:53 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:01:05 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:00:54 AM] Building project '/src/first/tsconfig.json'... +[12:01:06 AM] Building project '/src/first/tsconfig.json'... -[12:01:02 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part2.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:01:14 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part2.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:03 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:01:15 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:01:04 AM] Updating output of project '/src/third/tsconfig.json'... +[12:01:16 AM] Updating output of project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -2265,10 +2267,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -2291,12 +2293,12 @@ sourceFile:../first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -2324,7 +2326,7 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > +1 > > 2 >console 3 > . @@ -2396,7 +2398,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -2410,7 +2412,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(8, 1) Source(3, 1) + SourceIndex(2) @@ -2419,7 +2421,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":134,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}}]}]},"mapHash":"-4938209840-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-24904581979-\"use strict\";\nvar s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-16950965473-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":true,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":134,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}}]}]},"mapHash":"-4938209840-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-24904581979-\"use strict\";\nvar s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-20304251376-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":true,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -2519,9 +2521,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "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; };", - "../first_part1.ts": "-16950965473-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-20304251376-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -2550,7 +2552,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2918 + "size": 2892 } //// [/src/third/thirdjs/output/third-output.js] @@ -2637,10 +2639,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1->interface TheFirst { - > none: any; - >} - > +1->interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -2663,12 +2665,12 @@ sourceFile:../../../first/first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -2696,7 +2698,7 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > +1 > > 2 >console 3 > . @@ -2768,7 +2770,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -2782,7 +2784,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(10, 1) Source(3, 1) + SourceIndex(4) @@ -2799,19 +2801,19 @@ sourceFile:../../../second/second_part1.ts 4 > ^ 5 > ^^^^^^^^^-> 1->"myPrologue" - >namespace N { - > // Comment text - >} - > + >namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(11, 1) Source(6, 1) + SourceIndex(0) 2 >Emitted(11, 5) Source(6, 11) + SourceIndex(0) @@ -2835,7 +2837,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -2852,7 +2854,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -2874,7 +2876,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(15, 5) Source(9, 5) + SourceIndex(0) @@ -2886,8 +2888,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -2906,19 +2908,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(17, 1) Source(12, 1) + SourceIndex(0) 2 >Emitted(17, 2) Source(12, 2) + SourceIndex(0) @@ -2949,10 +2951,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(20, 5) Source(6, 1) + SourceIndex(1) @@ -2979,7 +2981,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -3001,7 +3003,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(23, 5) Source(5, 5) + SourceIndex(1) @@ -3010,7 +3012,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(24, 5) Source(6, 1) + SourceIndex(1) @@ -3025,10 +3027,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(25, 1) Source(6, 1) + SourceIndex(1) 2 >Emitted(25, 2) Source(6, 2) + SourceIndex(1) @@ -3073,7 +3075,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -3090,7 +3092,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":27,"kind":"prologue","data":"myPrologue"},{"pos":28,"end":42,"kind":"prologue","data":"myPrologue2"},{"pos":43,"end":163,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":43,"end":163,"kind":"text"}]},{"pos":163,"end":433,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":163,"end":433,"kind":"text"}]},{"pos":433,"end":467,"kind":"text"}],"mapHash":"-40026203606-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AAAA,YAAY,CAAA;ACAZ,aAAa,CAAC;ACId,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AJGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;AILD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-18074355737-\"use strict\";\n\"myPrologue\";\n\"myPrologue2\";\nvar s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map","sources":{"prologues":[{"file":0,"text":"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}}]}]}},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":149,"kind":"text"}]},{"pos":149,"end":242,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":149,"end":242,"kind":"text"}]},{"pos":242,"end":260,"kind":"text"}],"mapHash":"89480535-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACDD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACLD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"406139541-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":true,"target":1},"outSignature":"-2893455973-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":27,"kind":"prologue","data":"myPrologue"},{"pos":28,"end":42,"kind":"prologue","data":"myPrologue2"},{"pos":43,"end":163,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":43,"end":163,"kind":"text"}]},{"pos":163,"end":433,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":163,"end":433,"kind":"text"}]},{"pos":433,"end":467,"kind":"text"}],"mapHash":"-40026203606-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AAAA,YAAY,CAAA;ACAZ,aAAa,CAAC;ACId,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AJGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;AILD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-18074355737-\"use strict\";\n\"myPrologue\";\n\"myPrologue2\";\nvar s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map","sources":{"prologues":[{"file":0,"text":"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}}]}]}},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":149,"kind":"text"}]},{"pos":149,"end":242,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":149,"end":242,"kind":"text"}]},{"pos":242,"end":260,"kind":"text"}],"mapHash":"89480535-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACDD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACLD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"406139541-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":true,"target":1},"outSignature":"-2893455973-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -3305,7 +3307,7 @@ declare var c: C; "../../../../lib/lib.d.ts": "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; };", "../../../first/bin/first-output.d.ts": "-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -3328,7 +3330,7 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 4913 + "size": 4908 } @@ -3337,37 +3339,37 @@ Change:: incremental-headers-change-without-dts-changes Input:: //// [/src/first/first_PART1.ts] "myPrologue5" -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:01:15 AM] Projects in this build: +[12:01:27 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:01:16 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:01:28 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:01:17 AM] Building project '/src/first/tsconfig.json'... +[12:01:29 AM] Building project '/src/first/tsconfig.json'... -[12:01:25 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part2.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:01:37 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part2.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:26 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:01:38 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:01:27 AM] Updating output of project '/src/third/tsconfig.json'... +[12:01:39 AM] Updating output of project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -3404,7 +3406,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -3419,7 +3421,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(4, 2) + SourceIndex(0) --- @@ -3430,8 +3432,8 @@ sourceFile:../first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -3449,8 +3451,8 @@ sourceFile:../first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -3464,7 +3466,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -3479,7 +3481,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(10, 2) + SourceIndex(0) --- @@ -3496,8 +3498,8 @@ sourceFile:../first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) @@ -3553,10 +3555,10 @@ sourceFile:../first_PART1.ts 5 > ^^^^^^^^^^^^^^ 6 > ^ 1-> - >interface TheFirst { - > none: any; - >} - > + >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -3579,12 +3581,12 @@ sourceFile:../first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -3612,7 +3614,7 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > +1 > > 2 >console 3 > . @@ -3684,7 +3686,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -3698,7 +3700,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(9, 1) Source(3, 1) + SourceIndex(2) @@ -3707,7 +3709,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":28,"kind":"prologue","data":"myPrologue5"},{"pos":29,"end":149,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"\"myPrologue5\"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}},{"pos":0,"end":13,"expression":{"pos":0,"end":13,"text":"myPrologue5"}}]}]},"mapHash":"-25421726346-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AAAA,aAAa,CAAA;AAKb,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACZf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"2086701142-\"use strict\";\n\"myPrologue5\";\nvar s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"18068494155-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AETD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-2496167435-\"myPrologue5\"\ninterface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":true,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":28,"kind":"prologue","data":"myPrologue5"},{"pos":29,"end":149,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"\"myPrologue5\"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}},{"pos":0,"end":13,"expression":{"pos":0,"end":13,"text":"myPrologue5"}}]}]},"mapHash":"-25421726346-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AAAA,aAAa,CAAA;AAKb,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACZf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"2086701142-\"use strict\";\n\"myPrologue5\";\nvar s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"18068494155-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AETD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","13639857830-\"myPrologue5\"\ninterface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":true,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -3825,9 +3827,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "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; };", - "../first_part1.ts": "-2496167435-\"myPrologue5\"\ninterface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "13639857830-\"myPrologue5\"\ninterface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -3856,7 +3858,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 3112 + "size": 3086 } //// [/src/third/thirdjs/output/third-output.d.ts.map] @@ -3891,7 +3893,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -3906,7 +3908,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(4, 2) + SourceIndex(0) --- @@ -3917,8 +3919,8 @@ sourceFile:../../../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -3936,8 +3938,8 @@ sourceFile:../../../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -3951,7 +3953,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -3966,7 +3968,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(10, 2) + SourceIndex(0) --- @@ -3982,8 +3984,8 @@ sourceFile:../../../first/first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) @@ -4012,8 +4014,8 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(10, 2) Source(4, 2) + SourceIndex(2) --- @@ -4022,8 +4024,8 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -4036,12 +4038,12 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(12, 2) Source(12, 2) + SourceIndex(2) --- @@ -4065,7 +4067,7 @@ sourceFile:../../../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(14, 5) Source(3, 5) + SourceIndex(3) @@ -4074,9 +4076,9 @@ sourceFile:../../../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(15, 2) Source(6, 2) + SourceIndex(3) --- @@ -4208,10 +4210,10 @@ sourceFile:../../../first/first_PART1.ts 5 > ^^^^^^^^^^^^^^ 6 > ^ 1->"myPrologue5" - >interface TheFirst { - > none: any; - >} - > + >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -4234,12 +4236,12 @@ sourceFile:../../../first/first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -4267,7 +4269,7 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > +1 > > 2 >console 3 > . @@ -4339,7 +4341,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -4353,7 +4355,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(11, 1) Source(3, 1) + SourceIndex(4) @@ -4370,19 +4372,19 @@ sourceFile:../../../second/second_part1.ts 4 > ^ 5 > ^^^^^^^^^-> 1->"myPrologue" - >namespace N { - > // Comment text - >} - > + >namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(12, 1) Source(6, 1) + SourceIndex(1) 2 >Emitted(12, 5) Source(6, 11) + SourceIndex(1) @@ -4406,7 +4408,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -4423,7 +4425,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -4445,7 +4447,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(16, 5) Source(9, 5) + SourceIndex(1) @@ -4457,8 +4459,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -4477,19 +4479,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(18, 1) Source(12, 1) + SourceIndex(1) 2 >Emitted(18, 2) Source(12, 2) + SourceIndex(1) @@ -4520,10 +4522,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(21, 5) Source(6, 1) + SourceIndex(2) @@ -4550,7 +4552,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -4572,7 +4574,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(24, 5) Source(5, 5) + SourceIndex(2) @@ -4581,7 +4583,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(25, 5) Source(6, 1) + SourceIndex(2) @@ -4596,10 +4598,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(26, 1) Source(6, 1) + SourceIndex(2) 2 >Emitted(26, 2) Source(6, 2) + SourceIndex(2) @@ -4644,7 +4646,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -4661,7 +4663,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":28,"kind":"prologue","data":"myPrologue5"},{"pos":29,"end":42,"kind":"prologue","data":"myPrologue"},{"pos":43,"end":57,"kind":"prologue","data":"myPrologue2"},{"pos":58,"end":178,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":58,"end":178,"kind":"text"}]},{"pos":178,"end":448,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":178,"end":448,"kind":"text"}]},{"pos":448,"end":482,"kind":"text"}],"mapHash":"38125604309-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AAAA,aAAa,CAAA;ACAb,YAAY,CAAA;ACAZ,aAAa,CAAC;AFKd,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AGZf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AHGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;AGLD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-2554240200-\"use strict\";\n\"myPrologue5\";\n\"myPrologue\";\n\"myPrologue2\";\nvar s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map","sources":{"prologues":[{"file":0,"text":"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}}]}]}},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":149,"kind":"text"}]},{"pos":149,"end":242,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":149,"end":242,"kind":"text"}]},{"pos":242,"end":260,"kind":"text"}],"mapHash":"30721496667-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACTD,iBAAS,CAAC,WAET;ACDD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACLD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"406139541-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":true,"target":1},"outSignature":"-2893455973-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":28,"kind":"prologue","data":"myPrologue5"},{"pos":29,"end":42,"kind":"prologue","data":"myPrologue"},{"pos":43,"end":57,"kind":"prologue","data":"myPrologue2"},{"pos":58,"end":178,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":58,"end":178,"kind":"text"}]},{"pos":178,"end":448,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":178,"end":448,"kind":"text"}]},{"pos":448,"end":482,"kind":"text"}],"mapHash":"38125604309-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AAAA,aAAa,CAAA;ACAb,YAAY,CAAA;ACAZ,aAAa,CAAC;AFKd,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AGZf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AHGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;AGLD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-2554240200-\"use strict\";\n\"myPrologue5\";\n\"myPrologue\";\n\"myPrologue2\";\nvar s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map","sources":{"prologues":[{"file":0,"text":"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}}]}]}},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":149,"kind":"text"}]},{"pos":149,"end":242,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":149,"end":242,"kind":"text"}]},{"pos":242,"end":260,"kind":"text"}],"mapHash":"30721496667-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACTD,iBAAS,CAAC,WAET;ACDD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACLD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"406139541-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":true,"target":1},"outSignature":"-2893455973-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -4885,7 +4887,7 @@ declare var c: C; "../../../../lib/lib.d.ts": "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; };", "../../../first/bin/first-output.d.ts": "-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -4908,6 +4910,6 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 5006 + "size": 5001 } diff --git a/tests/baselines/reference/tsbuild/outfile-concat/shebang-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/shebang-in-all-projects.js index c6462440acf58..b25f501a51368 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/shebang-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/shebang-in-all-projects.js @@ -17,163 +17,165 @@ declare const console: { log(msg: any): void; }; //// [/src/first/first_PART1.ts] #!someshebang first first_PART1 -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); //// [/src/first/first_part2.ts] #!someshebang first first_part2 -console.log(f()); +console.log(f()); //// [/src/first/first_part3.ts] -function f() { - return "JS does hoists"; -} +function f() { + return "JS does hoists"; +} + //// [/src/first/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "outFile": "./bin/first-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "first_PART1.ts", - "first_part2.ts", - "first_part3.ts" - ], - "references": [ - ] +{ + "compilerOptions": { + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "outFile": "./bin/first-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "first_PART1.ts", + "first_part2.ts", + "first_part3.ts" + ], + "references": [] } - //// [/src/second/second_part1.ts] #!someshebang second second_part1 -namespace N { - // Comment text -} - -namespace N { - function f() { - console.log('testing'); - } - - f(); -} +namespace N { + // Comment text +} + +namespace N { + function f() { + console.log('testing'); + } + + f(); +} //// [/src/second/second_part2.ts] -class C { - doSomething() { - console.log("something got done"); - } -} +class C { + doSomething() { + console.log("something got done"); + } +} //// [/src/second/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "../2/second-output.js", - "skipDefaultLibCheck": true - }, - "references": [ - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "../2/second-output.js", + "skipDefaultLibCheck": true + }, + "references": [] } - //// [/src/third/third_part1.ts] #!someshebang third third_part1 -var c = new C(); -c.doSomething(); +var c = new C(); +c.doSomething(); //// [/src/third/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "./thirdjs/output/third-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "third_part1.ts" - ], - "references": [ - { "path": "../first", "prepend": true }, - { "path": "../second", "prepend": true }, - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "./thirdjs/output/third-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "third_part1.ts" + ], + "references": [ + { + "path": "../first", + "prepend": true + }, + { + "path": "../second", + "prepend": true + } + ] } - Output:: /lib/tsc --b /src/third --verbose -[12:00:10 AM] Projects in this build: +[12:00:22 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:11 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist +[12:00:23 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist -[12:00:12 AM] Building project '/src/first/tsconfig.json'... +[12:00:24 AM] Building project '/src/first/tsconfig.json'... -[12:00:22 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist +[12:00:34 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist -[12:00:23 AM] Building project '/src/second/tsconfig.json'... +[12:00:35 AM] Building project '/src/second/tsconfig.json'... -[12:00:33 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist +[12:00:45 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist -[12:00:34 AM] Building project '/src/third/tsconfig.json'... +[12:00:46 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success readFiles:: { - "/src/third/tsconfig.json": 1, - "/src/first/tsconfig.json": 1, - "/src/second/tsconfig.json": 1, - "/src/first/first_PART1.ts": 1, - "/src/first/first_part2.ts": 1, - "/src/first/first_part3.ts": 1, - "/src/second/second_part1.ts": 1, - "/src/second/second_part2.ts": 1, - "/src/first/bin/first-output.d.ts": 1, - "/src/2/second-output.d.ts": 1, - "/src/third/third_part1.ts": 1, - "/src/first/bin/first-output.js": 1, - "/src/first/bin/first-output.js.map": 1, - "/src/2/second-output.js.map": 1, - "/src/2/second-output.js": 1, - "/src/first/bin/first-output.d.ts.map": 1, - "/src/2/second-output.d.ts.map": 1 + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/second/second_part1.ts": 1, + "/src/second/second_part2.ts": 1, + "/src/first/bin/first-output.d.ts": 1, + "/src/2/second-output.d.ts": 1, + "/src/third/third_part1.ts": 1, + "/src/first/bin/first-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1 } //// [/src/2/second-output.d.ts] @@ -220,8 +222,8 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(3, 2) Source(4, 2) + SourceIndex(0) --- @@ -230,8 +232,8 @@ sourceFile:../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -244,12 +246,12 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(5, 2) Source(12, 2) + SourceIndex(0) --- @@ -272,7 +274,7 @@ sourceFile:../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(7, 5) Source(2, 5) + SourceIndex(1) @@ -281,9 +283,9 @@ sourceFile:../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(8, 2) Source(5, 2) + SourceIndex(1) --- @@ -330,19 +332,19 @@ sourceFile:../second/second_part1.ts 4 > ^ 5 > ^^^^^^^^^-> 1 >#!someshebang second second_part1 - >namespace N { - > // Comment text - >} - > + >namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1 >Emitted(2, 1) Source(6, 1) + SourceIndex(0) 2 >Emitted(2, 5) Source(6, 11) + SourceIndex(0) @@ -366,7 +368,7 @@ sourceFile:../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -383,7 +385,7 @@ sourceFile:../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -405,7 +407,7 @@ sourceFile:../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(6, 5) Source(9, 5) + SourceIndex(0) @@ -417,8 +419,8 @@ sourceFile:../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -437,19 +439,19 @@ sourceFile:../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(8, 1) Source(12, 1) + SourceIndex(0) 2 >Emitted(8, 2) Source(12, 2) + SourceIndex(0) @@ -479,10 +481,10 @@ sourceFile:../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(11, 5) Source(5, 1) + SourceIndex(1) @@ -509,7 +511,7 @@ sourceFile:../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -531,7 +533,7 @@ sourceFile:../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(14, 5) Source(4, 5) + SourceIndex(1) @@ -540,7 +542,7 @@ sourceFile:../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) @@ -555,10 +557,10 @@ sourceFile:../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(16, 1) Source(5, 1) + SourceIndex(1) 2 >Emitted(16, 2) Source(5, 2) + SourceIndex(1) @@ -568,7 +570,7 @@ sourceFile:../second/second_part2.ts >>>//# sourceMappingURL=second-output.js.map //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":34,"end":304,"kind":"text"}],"mapHash":"-4207645659-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\";AAKA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACXD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"7338659886-#!someshebang second second_part1\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":34,"end":127,"kind":"text"}],"mapHash":"-7527955494-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\";AACA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACXD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"10689383263-#!someshebang second second_part1\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["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; };","-8705047463-#!someshebang second second_part1\nnamespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"14403894020-#!someshebang second second_part1\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":34,"end":304,"kind":"text"}],"mapHash":"-4207645659-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\";AAKA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACXD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"7338659886-#!someshebang second second_part1\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":34,"end":127,"kind":"text"}],"mapHash":"-7527955494-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\";AACA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACXD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"10689383263-#!someshebang second second_part1\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["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; };","6147050698-#!someshebang second second_part1\nnamespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n","3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"14403894020-#!someshebang second second_part1\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -645,8 +647,8 @@ declare class C { ], "fileInfos": { "../../lib/lib.d.ts": "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; };", - "../second/second_part1.ts": "-8705047463-#!someshebang second second_part1\nnamespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n", - "../second/second_part2.ts": "9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n" + "../second/second_part1.ts": "6147050698-#!someshebang second second_part1\nnamespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", + "../second/second_part2.ts": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n" }, "root": [ [ @@ -673,7 +675,7 @@ declare class C { "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 2880 + "size": 2847 } //// [/src/first/bin/first-output.d.ts] @@ -721,7 +723,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -736,7 +738,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(4, 2) Source(4, 2) + SourceIndex(0) --- @@ -747,8 +749,8 @@ sourceFile:../first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -766,8 +768,8 @@ sourceFile:../first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -781,7 +783,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -796,7 +798,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(8, 2) Source(10, 2) + SourceIndex(0) --- @@ -813,8 +815,8 @@ sourceFile:../first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(9, 1) Source(1, 1) + SourceIndex(2) 2 >Emitted(9, 18) Source(1, 10) + SourceIndex(2) @@ -856,10 +858,10 @@ sourceFile:../first_PART1.ts 5 > ^^^^^^^^^^^^^^ 6 > ^ 1 >#!someshebang first first_PART1 - >interface TheFirst { - > none: any; - >} - > + >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -883,12 +885,12 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -961,7 +963,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -975,7 +977,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) @@ -984,7 +986,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":32,"end":136,"kind":"text"}],"mapHash":"-13636454783-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AAKA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACDjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-8075006789-#!someshebang first first_PART1\nvar s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":32,"end":181,"kind":"text"}],"mapHash":"-2225185530-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AETD,iBAAS,CAAC,WAET\"}","hash":"6940406639-#!someshebang first first_PART1\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-1632348754-#!someshebang first first_PART1\ninterface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","-270744556-#!someshebang first first_part2\nconsole.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-1610452888-#!someshebang first first_PART1\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":32,"end":136,"kind":"text"}],"mapHash":"-13636454783-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AAKA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACDjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-8075006789-#!someshebang first first_PART1\nvar s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":32,"end":181,"kind":"text"}],"mapHash":"-2225185530-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AETD,iBAAS,CAAC,WAET\"}","hash":"6940406639-#!someshebang first first_PART1\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","22873150815-#!someshebang first first_PART1\ninterface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","-1309709625-#!someshebang first first_part2\nconsole.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-1610452888-#!someshebang first first_PART1\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -1055,9 +1057,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "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; };", - "../first_part1.ts": "-1632348754-#!someshebang first first_PART1\ninterface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n", - "../first_part2.ts": "-270744556-#!someshebang first first_part2\nconsole.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "22873150815-#!someshebang first first_PART1\ninterface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "../first_part2.ts": "-1309709625-#!someshebang first first_part2\nconsole.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -1086,7 +1088,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2801 + "size": 2776 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -1142,7 +1144,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -1157,7 +1159,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(4, 2) Source(4, 2) + SourceIndex(0) --- @@ -1168,8 +1170,8 @@ sourceFile:../../../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -1187,8 +1189,8 @@ sourceFile:../../../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -1202,7 +1204,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -1217,7 +1219,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(8, 2) Source(10, 2) + SourceIndex(0) --- @@ -1233,8 +1235,8 @@ sourceFile:../../../first/first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(9, 1) Source(1, 1) + SourceIndex(1) 2 >Emitted(9, 18) Source(1, 10) + SourceIndex(1) @@ -1263,8 +1265,8 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(11, 2) Source(4, 2) + SourceIndex(2) --- @@ -1273,8 +1275,8 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -1287,12 +1289,12 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(13, 2) Source(12, 2) + SourceIndex(2) --- @@ -1315,7 +1317,7 @@ sourceFile:../../../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(15, 5) Source(2, 5) + SourceIndex(3) @@ -1324,9 +1326,9 @@ sourceFile:../../../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(16, 2) Source(5, 2) + SourceIndex(3) --- @@ -1408,10 +1410,10 @@ sourceFile:../../../first/first_PART1.ts 5 > ^^^^^^^^^^^^^^ 6 > ^ 1 >#!someshebang first first_PART1 - >interface TheFirst { - > none: any; - >} - > + >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -1435,12 +1437,12 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -1513,7 +1515,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -1527,7 +1529,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) @@ -1544,19 +1546,19 @@ sourceFile:../../../second/second_part1.ts 4 > ^ 5 > ^^^^^^^^^-> 1->#!someshebang second second_part1 - >namespace N { - > // Comment text - >} - > + >namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(8, 1) Source(6, 1) + SourceIndex(3) 2 >Emitted(8, 5) Source(6, 11) + SourceIndex(3) @@ -1580,7 +1582,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -1597,7 +1599,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -1619,7 +1621,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(12, 5) Source(9, 5) + SourceIndex(3) @@ -1631,8 +1633,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -1651,19 +1653,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(14, 1) Source(12, 1) + SourceIndex(3) 2 >Emitted(14, 2) Source(12, 2) + SourceIndex(3) @@ -1693,10 +1695,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(17, 5) Source(5, 1) + SourceIndex(4) @@ -1723,7 +1725,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -1745,7 +1747,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(20, 5) Source(4, 5) + SourceIndex(4) @@ -1754,7 +1756,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(21, 5) Source(5, 1) + SourceIndex(4) @@ -1769,10 +1771,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(22, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(22, 2) Source(5, 2) + SourceIndex(4) @@ -1818,7 +1820,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -1835,7 +1837,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":32,"end":136,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":32,"end":136,"kind":"text"}]},{"pos":136,"end":406,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":136,"end":406,"kind":"text"}]},{"pos":406,"end":440,"kind":"text"}],"mapHash":"79536022840-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AAKA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACDjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACXD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACHD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-15072961933-#!someshebang first first_PART1\nvar s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":32,"end":181,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":32,"end":181,"kind":"text"}]},{"pos":181,"end":274,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":181,"end":274,"kind":"text"}]},{"pos":274,"end":292,"kind":"text"}],"mapHash":"-28105379596-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACTD,iBAAS,CAAC,WAET;ACDD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACXD,cAAM,CAAC;IACH,WAAW;CAGd;ACHD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"7399363590-#!someshebang first first_PART1\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-1610452888-#!someshebang first first_PART1\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","14403894020-#!someshebang second second_part1\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","4470817290-#!someshebang third third_part1\nvar c = new C();\r\nc.doSomething();\r\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"11722443212-#!someshebang first first_PART1\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":32,"end":136,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":32,"end":136,"kind":"text"}]},{"pos":136,"end":406,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":136,"end":406,"kind":"text"}]},{"pos":406,"end":440,"kind":"text"}],"mapHash":"79536022840-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AAKA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACDjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACXD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACHD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-15072961933-#!someshebang first first_PART1\nvar s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":32,"end":181,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":32,"end":181,"kind":"text"}]},{"pos":181,"end":274,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":181,"end":274,"kind":"text"}]},{"pos":274,"end":292,"kind":"text"}],"mapHash":"-28105379596-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACTD,iBAAS,CAAC,WAET;ACDD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACXD,cAAM,CAAC;IACH,WAAW;CAGd;ACHD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"7399363590-#!someshebang first first_PART1\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-1610452888-#!someshebang first first_PART1\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","14403894020-#!someshebang second second_part1\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","2058074352-#!someshebang third third_part1\nvar c = new C();\nc.doSomething();\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"11722443212-#!someshebang first first_PART1\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -2003,7 +2005,7 @@ declare var c: C; "../../../../lib/lib.d.ts": "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; };", "../../../first/bin/first-output.d.ts": "-1610452888-#!someshebang first first_PART1\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "14403894020-#!someshebang second second_part1\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "4470817290-#!someshebang third third_part1\nvar c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "2058074352-#!someshebang third third_part1\nvar c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -2026,7 +2028,7 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 4671 + "size": 4667 } @@ -2035,58 +2037,58 @@ Change:: incremental-declaration-changes Input:: //// [/src/first/first_PART1.ts] #!someshebang first first_PART1 -interface TheFirst { - none: any; -} - -const s = "Hola, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hola, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:00:52 AM] Projects in this build: +[12:01:04 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:53 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:01:05 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:00:54 AM] Building project '/src/first/tsconfig.json'... +[12:01:06 AM] Building project '/src/first/tsconfig.json'... -[12:01:03 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:01:15 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:04 AM] Project 'src/third/tsconfig.json' is out of date because output 'src/third/thirdjs/output/third-output.tsbuildinfo' is older than input 'src/first' +[12:01:16 AM] Project 'src/third/tsconfig.json' is out of date because output 'src/third/thirdjs/output/third-output.tsbuildinfo' is older than input 'src/first' -[12:01:05 AM] Building project '/src/third/tsconfig.json'... +[12:01:17 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success readFiles:: { - "/src/third/tsconfig.json": 1, - "/src/first/tsconfig.json": 1, - "/src/second/tsconfig.json": 1, - "/src/first/bin/first-output.tsbuildinfo": 1, - "/src/first/first_PART1.ts": 1, - "/src/first/first_part2.ts": 1, - "/src/first/first_part3.ts": 1, - "/src/2/second-output.tsbuildinfo": 1, - "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, - "/src/first/bin/first-output.d.ts": 1, - "/src/2/second-output.d.ts": 1, - "/src/third/third_part1.ts": 1, - "/src/first/bin/first-output.js": 1, - "/src/first/bin/first-output.js.map": 1, - "/src/2/second-output.js.map": 1, - "/src/2/second-output.js": 1, - "/src/first/bin/first-output.d.ts.map": 1, - "/src/2/second-output.d.ts.map": 1 + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/2/second-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, + "/src/first/bin/first-output.d.ts": 1, + "/src/2/second-output.d.ts": 1, + "/src/third/third_part1.ts": 1, + "/src/first/bin/first-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1 } //// [/src/first/bin/first-output.d.ts] @@ -2134,7 +2136,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -2149,7 +2151,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(4, 2) Source(4, 2) + SourceIndex(0) --- @@ -2160,8 +2162,8 @@ sourceFile:../first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -2179,8 +2181,8 @@ sourceFile:../first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -2194,7 +2196,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -2209,7 +2211,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(8, 2) Source(10, 2) + SourceIndex(0) --- @@ -2226,8 +2228,8 @@ sourceFile:../first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(9, 1) Source(1, 1) + SourceIndex(2) 2 >Emitted(9, 18) Source(1, 10) + SourceIndex(2) @@ -2269,10 +2271,10 @@ sourceFile:../first_PART1.ts 5 > ^^^^^^^^^^^^^ 6 > ^ 1 >#!someshebang first first_PART1 - >interface TheFirst { - > none: any; - >} - > + >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -2296,12 +2298,12 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -2374,7 +2376,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -2388,7 +2390,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) @@ -2397,7 +2399,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":32,"end":135,"kind":"text"}],"mapHash":"19403802043-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AAKA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACDjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-5508575221-#!someshebang first first_PART1\nvar s = \"Hola, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":32,"end":180,"kind":"text"}],"mapHash":"8765467712-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AETD,iBAAS,CAAC,WAET\"}","hash":"-9408717985-#!someshebang first first_PART1\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","9069952478-#!someshebang first first_PART1\ninterface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","-270744556-#!someshebang first first_part2\nconsole.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-12179002280-#!someshebang first first_PART1\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":32,"end":135,"kind":"text"}],"mapHash":"19403802043-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AAKA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACDjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-5508575221-#!someshebang first first_PART1\nvar s = \"Hola, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":32,"end":180,"kind":"text"}],"mapHash":"8765467712-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AETD,iBAAS,CAAC,WAET\"}","hash":"-9408717985-#!someshebang first first_PART1\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","5551939087-#!someshebang first first_PART1\ninterface TheFirst {\n none: any;\n}\n\nconst s = \"Hola, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","-1309709625-#!someshebang first first_part2\nconsole.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-12179002280-#!someshebang first first_PART1\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -2468,9 +2470,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "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; };", - "../first_part1.ts": "9069952478-#!someshebang first first_PART1\ninterface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n", - "../first_part2.ts": "-270744556-#!someshebang first first_part2\nconsole.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "5551939087-#!someshebang first first_PART1\ninterface TheFirst {\n none: any;\n}\n\nconst s = \"Hola, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "../first_part2.ts": "-1309709625-#!someshebang first first_part2\nconsole.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -2499,7 +2501,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2796 + "size": 2771 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -2555,7 +2557,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -2570,7 +2572,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(4, 2) Source(4, 2) + SourceIndex(0) --- @@ -2581,8 +2583,8 @@ sourceFile:../../../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -2600,8 +2602,8 @@ sourceFile:../../../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -2615,7 +2617,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -2630,7 +2632,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(8, 2) Source(10, 2) + SourceIndex(0) --- @@ -2646,8 +2648,8 @@ sourceFile:../../../first/first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(9, 1) Source(1, 1) + SourceIndex(1) 2 >Emitted(9, 18) Source(1, 10) + SourceIndex(1) @@ -2676,8 +2678,8 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(11, 2) Source(4, 2) + SourceIndex(2) --- @@ -2686,8 +2688,8 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -2700,12 +2702,12 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(13, 2) Source(12, 2) + SourceIndex(2) --- @@ -2728,7 +2730,7 @@ sourceFile:../../../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(15, 5) Source(2, 5) + SourceIndex(3) @@ -2737,9 +2739,9 @@ sourceFile:../../../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(16, 2) Source(5, 2) + SourceIndex(3) --- @@ -2821,10 +2823,10 @@ sourceFile:../../../first/first_PART1.ts 5 > ^^^^^^^^^^^^^ 6 > ^ 1 >#!someshebang first first_PART1 - >interface TheFirst { - > none: any; - >} - > + >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -2848,12 +2850,12 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -2926,7 +2928,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -2940,7 +2942,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) @@ -2957,19 +2959,19 @@ sourceFile:../../../second/second_part1.ts 4 > ^ 5 > ^^^^^^^^^-> 1->#!someshebang second second_part1 - >namespace N { - > // Comment text - >} - > + >namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(8, 1) Source(6, 1) + SourceIndex(3) 2 >Emitted(8, 5) Source(6, 11) + SourceIndex(3) @@ -2993,7 +2995,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -3010,7 +3012,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -3032,7 +3034,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(12, 5) Source(9, 5) + SourceIndex(3) @@ -3044,8 +3046,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -3064,19 +3066,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(14, 1) Source(12, 1) + SourceIndex(3) 2 >Emitted(14, 2) Source(12, 2) + SourceIndex(3) @@ -3106,10 +3108,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(17, 5) Source(5, 1) + SourceIndex(4) @@ -3136,7 +3138,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -3158,7 +3160,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(20, 5) Source(4, 5) + SourceIndex(4) @@ -3167,7 +3169,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(21, 5) Source(5, 1) + SourceIndex(4) @@ -3182,10 +3184,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(22, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(22, 2) Source(5, 2) + SourceIndex(4) @@ -3231,7 +3233,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -3248,7 +3250,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":32,"end":135,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":32,"end":135,"kind":"text"}]},{"pos":135,"end":405,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":135,"end":405,"kind":"text"}]},{"pos":405,"end":439,"kind":"text"}],"mapHash":"44962007282-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AAKA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACDjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACXD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACHD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-10384220733-#!someshebang first first_PART1\nvar s = \"Hola, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":32,"end":180,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":32,"end":180,"kind":"text"}]},{"pos":180,"end":273,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":180,"end":273,"kind":"text"}]},{"pos":273,"end":291,"kind":"text"}],"mapHash":"-21522518994-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACTD,iBAAS,CAAC,WAET;ACDD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACXD,cAAM,CAAC;IACH,WAAW;CAGd;ACHD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-29239976458-#!someshebang first first_PART1\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-12179002280-#!someshebang first first_PART1\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","14403894020-#!someshebang second second_part1\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","4470817290-#!someshebang third third_part1\nvar c = new C();\r\nc.doSomething();\r\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-18694510660-#!someshebang first first_PART1\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":32,"end":135,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":32,"end":135,"kind":"text"}]},{"pos":135,"end":405,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":135,"end":405,"kind":"text"}]},{"pos":405,"end":439,"kind":"text"}],"mapHash":"44962007282-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AAKA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACDjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACXD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACHD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-10384220733-#!someshebang first first_PART1\nvar s = \"Hola, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":32,"end":180,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":32,"end":180,"kind":"text"}]},{"pos":180,"end":273,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":180,"end":273,"kind":"text"}]},{"pos":273,"end":291,"kind":"text"}],"mapHash":"-21522518994-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACTD,iBAAS,CAAC,WAET;ACDD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACXD,cAAM,CAAC;IACH,WAAW;CAGd;ACHD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-29239976458-#!someshebang first first_PART1\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-12179002280-#!someshebang first first_PART1\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","14403894020-#!someshebang second second_part1\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","2058074352-#!someshebang third third_part1\nvar c = new C();\nc.doSomething();\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-18694510660-#!someshebang first first_PART1\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -3416,7 +3418,7 @@ declare var c: C; "../../../../lib/lib.d.ts": "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; };", "../../../first/bin/first-output.d.ts": "-12179002280-#!someshebang first first_PART1\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "14403894020-#!someshebang second second_part1\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "4470817290-#!someshebang third third_part1\nvar c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "2058074352-#!someshebang third third_part1\nvar c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -3439,7 +3441,7 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 4671 + "size": 4667 } @@ -3448,61 +3450,61 @@ Change:: incremental-declaration-doesnt-change Input:: //// [/src/first/first_PART1.ts] #!someshebang first first_PART1 -interface TheFirst { - none: any; -} - -const s = "Hola, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hola, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:01:19 AM] Projects in this build: +[12:01:31 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:01:20 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:01:32 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:01:21 AM] Building project '/src/first/tsconfig.json'... +[12:01:33 AM] Building project '/src/first/tsconfig.json'... -[12:01:29 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:01:41 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:30 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:01:42 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:01:31 AM] Updating output of project '/src/third/tsconfig.json'... +[12:01:43 AM] Updating output of project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success readFiles:: { - "/src/third/tsconfig.json": 1, - "/src/first/tsconfig.json": 1, - "/src/second/tsconfig.json": 1, - "/src/first/bin/first-output.tsbuildinfo": 1, - "/src/first/first_PART1.ts": 1, - "/src/first/first_part2.ts": 1, - "/src/first/first_part3.ts": 1, - "/src/2/second-output.tsbuildinfo": 1, - "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, - "/src/third/thirdjs/output/third-output.js": 1, - "/src/third/thirdjs/output/third-output.js.map": 1, - "/src/third/thirdjs/output/third-output.d.ts": 1, - "/src/third/thirdjs/output/third-output.d.ts.map": 1, - "/src/first/bin/first-output.js": 1, - "/src/first/bin/first-output.js.map": 1, - "/src/2/second-output.js.map": 1, - "/src/2/second-output.js": 1, - "/src/first/bin/first-output.d.ts": 1, - "/src/first/bin/first-output.d.ts.map": 1, - "/src/2/second-output.d.ts.map": 1, - "/src/2/second-output.d.ts": 1 + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/2/second-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.js": 1, + "/src/third/thirdjs/output/third-output.js.map": 1, + "/src/third/thirdjs/output/third-output.d.ts": 1, + "/src/third/thirdjs/output/third-output.d.ts.map": 1, + "/src/first/bin/first-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.d.ts": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1, + "/src/2/second-output.d.ts": 1 } //// [/src/first/bin/first-output.d.ts.map] file written with same contents @@ -3541,10 +3543,10 @@ sourceFile:../first_PART1.ts 5 > ^^^^^^^^^^^^^ 6 > ^ 1 >#!someshebang first first_PART1 - >interface TheFirst { - > none: any; - >} - > + >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -3567,12 +3569,12 @@ sourceFile:../first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -3600,7 +3602,7 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > +1 > > 2 >console 3 > . @@ -3673,7 +3675,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -3687,7 +3689,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(8, 1) Source(3, 1) + SourceIndex(2) @@ -3696,7 +3698,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":32,"end":151,"kind":"text"}],"mapHash":"-2608504977-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AAKA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACDjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"4325336759-#!someshebang first first_PART1\nvar s = \"Hola, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":32,"end":180,"kind":"text"}],"mapHash":"8765467712-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AETD,iBAAS,CAAC,WAET\"}","hash":"-9408717985-#!someshebang first first_PART1\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","6925175936-#!someshebang first first_PART1\ninterface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","-270744556-#!someshebang first first_part2\nconsole.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-12179002280-#!someshebang first first_PART1\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":32,"end":151,"kind":"text"}],"mapHash":"-2608504977-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AAKA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACDjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"4325336759-#!someshebang first first_PART1\nvar s = \"Hola, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":32,"end":180,"kind":"text"}],"mapHash":"8765467712-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AETD,iBAAS,CAAC,WAET\"}","hash":"-9408717985-#!someshebang first first_PART1\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","8582950033-#!someshebang first first_PART1\ninterface TheFirst {\n none: any;\n}\n\nconst s = \"Hola, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);","-1309709625-#!someshebang first first_part2\nconsole.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-12179002280-#!someshebang first first_PART1\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -3768,9 +3770,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "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; };", - "../first_part1.ts": "6925175936-#!someshebang first first_PART1\ninterface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);", - "../first_part2.ts": "-270744556-#!someshebang first first_part2\nconsole.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "8582950033-#!someshebang first first_PART1\ninterface TheFirst {\n none: any;\n}\n\nconst s = \"Hola, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);", + "../first_part2.ts": "-1309709625-#!someshebang first first_part2\nconsole.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -3799,7 +3801,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2867 + "size": 2842 } //// [/src/third/thirdjs/output/third-output.js] @@ -3853,10 +3855,10 @@ sourceFile:../../../first/first_PART1.ts 5 > ^^^^^^^^^^^^^ 6 > ^ 1 >#!someshebang first first_PART1 - >interface TheFirst { - > none: any; - >} - > + >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -3879,12 +3881,12 @@ sourceFile:../../../first/first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -3912,7 +3914,7 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > +1 > > 2 >console 3 > . @@ -3985,7 +3987,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -3999,7 +4001,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(8, 1) Source(3, 1) + SourceIndex(2) @@ -4016,19 +4018,19 @@ sourceFile:../../../second/second_part1.ts 4 > ^ 5 > ^^^^^^^^^-> 1->#!someshebang second second_part1 - >namespace N { - > // Comment text - >} - > + >namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(9, 1) Source(6, 1) + SourceIndex(3) 2 >Emitted(9, 5) Source(6, 11) + SourceIndex(3) @@ -4052,7 +4054,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -4069,7 +4071,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -4091,7 +4093,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(13, 5) Source(9, 5) + SourceIndex(3) @@ -4103,8 +4105,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -4123,19 +4125,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(15, 1) Source(12, 1) + SourceIndex(3) 2 >Emitted(15, 2) Source(12, 2) + SourceIndex(3) @@ -4165,10 +4167,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(18, 5) Source(5, 1) + SourceIndex(4) @@ -4195,7 +4197,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -4217,7 +4219,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(21, 5) Source(4, 5) + SourceIndex(4) @@ -4226,7 +4228,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(22, 5) Source(5, 1) + SourceIndex(4) @@ -4241,10 +4243,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(23, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(23, 2) Source(5, 2) + SourceIndex(4) @@ -4290,7 +4292,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -4307,7 +4309,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":32,"end":151,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":32,"end":151,"kind":"text"}]},{"pos":151,"end":421,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":151,"end":421,"kind":"text"}]},{"pos":421,"end":455,"kind":"text"}],"mapHash":"30932229030-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AAKA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACDjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACXD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACHD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"6344932463-#!someshebang first first_PART1\nvar s = \"Hola, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":32,"end":180,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":32,"end":180,"kind":"text"}]},{"pos":180,"end":273,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":180,"end":273,"kind":"text"}]},{"pos":273,"end":291,"kind":"text"}],"mapHash":"-21522518994-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACTD,iBAAS,CAAC,WAET;ACDD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACXD,cAAM,CAAC;IACH,WAAW;CAGd;ACHD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-29239976458-#!someshebang first first_PART1\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-12179002280-#!someshebang first first_PART1\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","14403894020-#!someshebang second second_part1\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","4470817290-#!someshebang third third_part1\nvar c = new C();\r\nc.doSomething();\r\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-18694510660-#!someshebang first first_PART1\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":32,"end":151,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":32,"end":151,"kind":"text"}]},{"pos":151,"end":421,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":151,"end":421,"kind":"text"}]},{"pos":421,"end":455,"kind":"text"}],"mapHash":"30932229030-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AAKA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACDjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACXD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACHD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"6344932463-#!someshebang first first_PART1\nvar s = \"Hola, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":32,"end":180,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":32,"end":180,"kind":"text"}]},{"pos":180,"end":273,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":180,"end":273,"kind":"text"}]},{"pos":273,"end":291,"kind":"text"}],"mapHash":"-21522518994-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACTD,iBAAS,CAAC,WAET;ACDD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACXD,cAAM,CAAC;IACH,WAAW;CAGd;ACHD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-29239976458-#!someshebang first first_PART1\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-12179002280-#!someshebang first first_PART1\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","14403894020-#!someshebang second second_part1\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","2058074352-#!someshebang third third_part1\nvar c = new C();\nc.doSomething();\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-18694510660-#!someshebang first first_PART1\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -4476,7 +4478,7 @@ declare var c: C; "../../../../lib/lib.d.ts": "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; };", "../../../first/bin/first-output.d.ts": "-12179002280-#!someshebang first first_PART1\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "14403894020-#!someshebang second second_part1\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "4470817290-#!someshebang third third_part1\nvar c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "2058074352-#!someshebang third third_part1\nvar c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -4499,6 +4501,6 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 4726 + "size": 4722 } diff --git a/tests/baselines/reference/tsbuild/outfile-concat/shebang-in-only-one-dependency-project.js b/tests/baselines/reference/tsbuild/outfile-concat/shebang-in-only-one-dependency-project.js index 2835997bf135b..57d2741b2a969 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/shebang-in-only-one-dependency-project.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/shebang-in-only-one-dependency-project.js @@ -16,141 +16,143 @@ interface ReadonlyArray {} declare const console: { log(msg: any): void; }; //// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); //// [/src/first/first_part2.ts] -console.log(f()); +console.log(f()); //// [/src/first/first_part3.ts] -function f() { - return "JS does hoists"; -} +function f() { + return "JS does hoists"; +} + //// [/src/first/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "outFile": "./bin/first-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "first_PART1.ts", - "first_part2.ts", - "first_part3.ts" - ], - "references": [ - ] +{ + "compilerOptions": { + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "outFile": "./bin/first-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "first_PART1.ts", + "first_part2.ts", + "first_part3.ts" + ], + "references": [] } - //// [/src/second/second_part1.ts] #!someshebang second second_part1 -namespace N { - // Comment text -} - -namespace N { - function f() { - console.log('testing'); - } - - f(); -} +namespace N { + // Comment text +} + +namespace N { + function f() { + console.log('testing'); + } + + f(); +} //// [/src/second/second_part2.ts] -class C { - doSomething() { - console.log("something got done"); - } -} +class C { + doSomething() { + console.log("something got done"); + } +} //// [/src/second/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "../2/second-output.js", - "skipDefaultLibCheck": true - }, - "references": [ - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "../2/second-output.js", + "skipDefaultLibCheck": true + }, + "references": [] } - //// [/src/third/third_part1.ts] -var c = new C(); -c.doSomething(); +var c = new C(); +c.doSomething(); //// [/src/third/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "./thirdjs/output/third-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "third_part1.ts" - ], - "references": [ - { "path": "../first", "prepend": true }, - { "path": "../second", "prepend": true }, - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "./thirdjs/output/third-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "third_part1.ts" + ], + "references": [ + { + "path": "../first", + "prepend": true + }, + { + "path": "../second", + "prepend": true + } + ] } - Output:: /lib/tsc --b /src/third --verbose -[12:00:07 AM] Projects in this build: +[12:00:19 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:08 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist +[12:00:20 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist -[12:00:09 AM] Building project '/src/first/tsconfig.json'... +[12:00:21 AM] Building project '/src/first/tsconfig.json'... -[12:00:19 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist +[12:00:31 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist -[12:00:20 AM] Building project '/src/second/tsconfig.json'... +[12:00:32 AM] Building project '/src/second/tsconfig.json'... -[12:00:30 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist +[12:00:42 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist -[12:00:31 AM] Building project '/src/third/tsconfig.json'... +[12:00:43 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -199,8 +201,8 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(3, 2) Source(4, 2) + SourceIndex(0) --- @@ -209,8 +211,8 @@ sourceFile:../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -223,12 +225,12 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(5, 2) Source(12, 2) + SourceIndex(0) --- @@ -251,7 +253,7 @@ sourceFile:../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(7, 5) Source(2, 5) + SourceIndex(1) @@ -260,9 +262,9 @@ sourceFile:../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(8, 2) Source(5, 2) + SourceIndex(1) --- @@ -309,19 +311,19 @@ sourceFile:../second/second_part1.ts 4 > ^ 5 > ^^^^^^^^^-> 1 >#!someshebang second second_part1 - >namespace N { - > // Comment text - >} - > + >namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1 >Emitted(2, 1) Source(6, 1) + SourceIndex(0) 2 >Emitted(2, 5) Source(6, 11) + SourceIndex(0) @@ -345,7 +347,7 @@ sourceFile:../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -362,7 +364,7 @@ sourceFile:../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -384,7 +386,7 @@ sourceFile:../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(6, 5) Source(9, 5) + SourceIndex(0) @@ -396,8 +398,8 @@ sourceFile:../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -416,19 +418,19 @@ sourceFile:../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(8, 1) Source(12, 1) + SourceIndex(0) 2 >Emitted(8, 2) Source(12, 2) + SourceIndex(0) @@ -458,10 +460,10 @@ sourceFile:../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(11, 5) Source(5, 1) + SourceIndex(1) @@ -488,7 +490,7 @@ sourceFile:../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -510,7 +512,7 @@ sourceFile:../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(14, 5) Source(4, 5) + SourceIndex(1) @@ -519,7 +521,7 @@ sourceFile:../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) @@ -534,10 +536,10 @@ sourceFile:../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(16, 1) Source(5, 1) + SourceIndex(1) 2 >Emitted(16, 2) Source(5, 2) + SourceIndex(1) @@ -547,7 +549,7 @@ sourceFile:../second/second_part2.ts >>>//# sourceMappingURL=second-output.js.map //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":34,"end":304,"kind":"text"}],"mapHash":"-4207645659-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\";AAKA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACXD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"7338659886-#!someshebang second second_part1\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":34,"end":127,"kind":"text"}],"mapHash":"-7527955494-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\";AACA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACXD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"10689383263-#!someshebang second second_part1\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["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; };","-8705047463-#!someshebang second second_part1\nnamespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"14403894020-#!someshebang second second_part1\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":34,"end":304,"kind":"text"}],"mapHash":"-4207645659-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\";AAKA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACXD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"7338659886-#!someshebang second second_part1\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":34,"end":127,"kind":"text"}],"mapHash":"-7527955494-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\";AACA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACXD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"10689383263-#!someshebang second second_part1\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["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; };","6147050698-#!someshebang second second_part1\nnamespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n","3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"14403894020-#!someshebang second second_part1\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -624,8 +626,8 @@ declare class C { ], "fileInfos": { "../../lib/lib.d.ts": "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; };", - "../second/second_part1.ts": "-8705047463-#!someshebang second second_part1\nnamespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n", - "../second/second_part2.ts": "9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n" + "../second/second_part1.ts": "6147050698-#!someshebang second second_part1\nnamespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", + "../second/second_part2.ts": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n" }, "root": [ [ @@ -652,7 +654,7 @@ declare class C { "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 2880 + "size": 2847 } //// [/src/first/bin/first-output.d.ts] @@ -697,7 +699,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -712,7 +714,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -723,8 +725,8 @@ sourceFile:../first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -742,8 +744,8 @@ sourceFile:../first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -757,7 +759,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -772,7 +774,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -789,8 +791,8 @@ sourceFile:../first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) @@ -829,10 +831,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -856,12 +858,12 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -933,7 +935,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -947,7 +949,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) @@ -956,7 +958,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"4999315210-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"4999315210-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -1027,9 +1029,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "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; };", - "../first_part1.ts": "-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -1058,7 +1060,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2635 + "size": 2609 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -1113,7 +1115,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -1128,7 +1130,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(4, 2) Source(3, 2) + SourceIndex(0) --- @@ -1139,8 +1141,8 @@ sourceFile:../../../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -1158,8 +1160,8 @@ sourceFile:../../../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -1173,7 +1175,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -1188,7 +1190,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(8, 2) Source(9, 2) + SourceIndex(0) --- @@ -1204,8 +1206,8 @@ sourceFile:../../../first/first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(9, 1) Source(1, 1) + SourceIndex(1) 2 >Emitted(9, 18) Source(1, 10) + SourceIndex(1) @@ -1234,8 +1236,8 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(11, 2) Source(4, 2) + SourceIndex(2) --- @@ -1244,8 +1246,8 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -1258,12 +1260,12 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(13, 2) Source(12, 2) + SourceIndex(2) --- @@ -1286,7 +1288,7 @@ sourceFile:../../../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(15, 5) Source(2, 5) + SourceIndex(3) @@ -1295,9 +1297,9 @@ sourceFile:../../../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(16, 2) Source(5, 2) + SourceIndex(3) --- @@ -1377,10 +1379,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -1404,12 +1406,12 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -1481,7 +1483,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -1495,7 +1497,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) @@ -1512,19 +1514,19 @@ sourceFile:../../../second/second_part1.ts 4 > ^ 5 > ^^^^^^^^^-> 1->#!someshebang second second_part1 - >namespace N { - > // Comment text - >} - > + >namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(8, 1) Source(6, 1) + SourceIndex(3) 2 >Emitted(8, 5) Source(6, 11) + SourceIndex(3) @@ -1548,7 +1550,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -1565,7 +1567,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -1587,7 +1589,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(12, 5) Source(9, 5) + SourceIndex(3) @@ -1599,8 +1601,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -1619,19 +1621,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(14, 1) Source(12, 1) + SourceIndex(3) 2 >Emitted(14, 2) Source(12, 2) + SourceIndex(3) @@ -1661,10 +1663,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(17, 5) Source(5, 1) + SourceIndex(4) @@ -1691,7 +1693,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -1713,7 +1715,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(20, 5) Source(4, 5) + SourceIndex(4) @@ -1722,7 +1724,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(21, 5) Source(5, 1) + SourceIndex(4) @@ -1737,10 +1739,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(22, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(22, 2) Source(5, 2) + SourceIndex(4) @@ -1785,7 +1787,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -1802,7 +1804,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":34,"end":138,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":34,"end":138,"kind":"text"}]},{"pos":138,"end":408,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":138,"end":408,"kind":"text"}]},{"pos":408,"end":442,"kind":"text"}],"mapHash":"17881551829-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACXD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"6431547867-#!someshebang second second_part1\nvar s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":34,"end":183,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":34,"end":183,"kind":"text"}]},{"pos":183,"end":276,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":183,"end":276,"kind":"text"}]},{"pos":276,"end":294,"kind":"text"}],"mapHash":"-8603414798-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACDD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACXD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-23331286674-#!someshebang second second_part1\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","14403894020-#!someshebang second second_part1\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15126051532-#!someshebang second second_part1\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":34,"end":138,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":34,"end":138,"kind":"text"}]},{"pos":138,"end":408,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":138,"end":408,"kind":"text"}]},{"pos":408,"end":442,"kind":"text"}],"mapHash":"17881551829-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACXD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"6431547867-#!someshebang second second_part1\nvar s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":34,"end":183,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":34,"end":183,"kind":"text"}]},{"pos":183,"end":276,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":183,"end":276,"kind":"text"}]},{"pos":276,"end":294,"kind":"text"}],"mapHash":"-8603414798-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACDD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACXD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-23331286674-#!someshebang second second_part1\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","14403894020-#!someshebang second second_part1\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15126051532-#!someshebang second second_part1\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -1970,7 +1972,7 @@ declare var c: C; "../../../../lib/lib.d.ts": "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; };", "../../../first/bin/first-output.d.ts": "-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "14403894020-#!someshebang second second_part1\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -1993,7 +1995,7 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 4613 + "size": 4608 } @@ -2001,37 +2003,37 @@ declare var c: C; Change:: incremental-declaration-doesnt-change Input:: //// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:00:49 AM] Projects in this build: +[12:01:01 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:50 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:01:02 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:00:51 AM] Building project '/src/first/tsconfig.json'... +[12:01:03 AM] Building project '/src/first/tsconfig.json'... -[12:00:59 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:01:11 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:00 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:01:12 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:01:01 AM] Updating output of project '/src/third/tsconfig.json'... +[12:01:13 AM] Updating output of project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -2069,10 +2071,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -2095,12 +2097,12 @@ sourceFile:../first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -2128,7 +2130,7 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > +1 > > 2 >console 3 > . @@ -2200,7 +2202,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -2214,7 +2216,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) @@ -2223,7 +2225,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":120,"kind":"text"}],"mapHash":"-2702861355-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-20052626506-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-16950965473-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":120,"kind":"text"}],"mapHash":"-2702861355-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-20052626506-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-20304251376-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -2295,9 +2297,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "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; };", - "../first_part1.ts": "-16950965473-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-20304251376-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -2326,7 +2328,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2708 + "size": 2682 } //// [/src/third/thirdjs/output/third-output.js] @@ -2379,10 +2381,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -2405,12 +2407,12 @@ sourceFile:../../../first/first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -2438,7 +2440,7 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > +1 > > 2 >console 3 > . @@ -2510,7 +2512,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -2524,7 +2526,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(8, 1) Source(3, 1) + SourceIndex(2) @@ -2541,19 +2543,19 @@ sourceFile:../../../second/second_part1.ts 4 > ^ 5 > ^^^^^^^^^-> 1->#!someshebang second second_part1 - >namespace N { - > // Comment text - >} - > + >namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(9, 1) Source(6, 1) + SourceIndex(3) 2 >Emitted(9, 5) Source(6, 11) + SourceIndex(3) @@ -2577,7 +2579,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -2594,7 +2596,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -2616,7 +2618,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(13, 5) Source(9, 5) + SourceIndex(3) @@ -2628,8 +2630,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -2648,19 +2650,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(15, 1) Source(12, 1) + SourceIndex(3) 2 >Emitted(15, 2) Source(12, 2) + SourceIndex(3) @@ -2690,10 +2692,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(18, 5) Source(5, 1) + SourceIndex(4) @@ -2720,7 +2722,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -2742,7 +2744,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(21, 5) Source(4, 5) + SourceIndex(4) @@ -2751,7 +2753,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(22, 5) Source(5, 1) + SourceIndex(4) @@ -2766,10 +2768,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(23, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(23, 2) Source(5, 2) + SourceIndex(4) @@ -2814,7 +2816,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -2831,7 +2833,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":34,"end":154,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":34,"end":154,"kind":"text"}]},{"pos":154,"end":424,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":154,"end":424,"kind":"text"}]},{"pos":424,"end":458,"kind":"text"}],"mapHash":"428292745-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACXD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-25217109881-#!someshebang second second_part1\nvar s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":34,"end":183,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":34,"end":183,"kind":"text"}]},{"pos":183,"end":276,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":183,"end":276,"kind":"text"}]},{"pos":276,"end":294,"kind":"text"}],"mapHash":"-8603414798-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACDD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACXD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-23331286674-#!someshebang second second_part1\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","14403894020-#!someshebang second second_part1\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15126051532-#!someshebang second second_part1\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":34,"end":154,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":34,"end":154,"kind":"text"}]},{"pos":154,"end":424,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":154,"end":424,"kind":"text"}]},{"pos":424,"end":458,"kind":"text"}],"mapHash":"428292745-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACXD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-25217109881-#!someshebang second second_part1\nvar s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":34,"end":183,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":34,"end":183,"kind":"text"}]},{"pos":183,"end":276,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":183,"end":276,"kind":"text"}]},{"pos":276,"end":294,"kind":"text"}],"mapHash":"-8603414798-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACDD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACXD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-23331286674-#!someshebang second second_part1\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","14403894020-#!someshebang second second_part1\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15126051532-#!someshebang second second_part1\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -3000,7 +3002,7 @@ declare var c: C; "../../../../lib/lib.d.ts": "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; };", "../../../first/bin/first-output.d.ts": "-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "14403894020-#!someshebang second second_part1\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -3023,6 +3025,6 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 4670 + "size": 4665 } diff --git a/tests/baselines/reference/tsbuild/outfile-concat/strict-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/strict-in-all-projects.js index ca554f761bce7..ed6614d1c0257 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/strict-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/strict-in-all-projects.js @@ -16,160 +16,162 @@ interface ReadonlyArray {} declare const console: { log(msg: any): void; }; //// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); //// [/src/first/first_part2.ts] -console.log(f()); +console.log(f()); //// [/src/first/first_part3.ts] -function f() { - return "JS does hoists"; -} +function f() { + return "JS does hoists"; +} + //// [/src/first/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "composite": true, - "removeComments": true, - "strict": true, - "sourceMap": true, - "declarationMap": true, - "outFile": "./bin/first-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "first_PART1.ts", - "first_part2.ts", - "first_part3.ts" - ], - "references": [ - ] +{ + "compilerOptions": { + "target": "es5", + "composite": true, + "removeComments": true, + "strict": true, + "sourceMap": true, + "declarationMap": true, + "outFile": "./bin/first-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "first_PART1.ts", + "first_part2.ts", + "first_part3.ts" + ], + "references": [] } - //// [/src/second/second_part1.ts] -namespace N { - // Comment text -} - -namespace N { - function f() { - console.log('testing'); - } - - f(); -} +namespace N { + // Comment text +} + +namespace N { + function f() { + console.log('testing'); + } + + f(); +} //// [/src/second/second_part2.ts] -class C { - doSomething() { - console.log("something got done"); - } -} +class C { + doSomething() { + console.log("something got done"); + } +} //// [/src/second/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": true, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "../2/second-output.js", - "skipDefaultLibCheck": true - }, - "references": [ - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": true, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "../2/second-output.js", + "skipDefaultLibCheck": true + }, + "references": [] } - //// [/src/third/third_part1.ts] -var c = new C(); -c.doSomething(); +var c = new C(); +c.doSomething(); //// [/src/third/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": true, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "./thirdjs/output/third-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "third_part1.ts" - ], - "references": [ - { "path": "../first", "prepend": true }, - { "path": "../second", "prepend": true }, - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": true, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "./thirdjs/output/third-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "third_part1.ts" + ], + "references": [ + { + "path": "../first", + "prepend": true + }, + { + "path": "../second", + "prepend": true + } + ] } - Output:: /lib/tsc --b /src/third --verbose -[12:00:09 AM] Projects in this build: +[12:00:21 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:10 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist +[12:00:22 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist -[12:00:11 AM] Building project '/src/first/tsconfig.json'... +[12:00:23 AM] Building project '/src/first/tsconfig.json'... -[12:00:21 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist +[12:00:33 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist -[12:00:22 AM] Building project '/src/second/tsconfig.json'... +[12:00:34 AM] Building project '/src/second/tsconfig.json'... -[12:00:32 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist +[12:00:44 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist -[12:00:33 AM] Building project '/src/third/tsconfig.json'... +[12:00:45 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success readFiles:: { - "/src/third/tsconfig.json": 1, - "/src/first/tsconfig.json": 1, - "/src/second/tsconfig.json": 1, - "/src/first/first_PART1.ts": 1, - "/src/first/first_part2.ts": 1, - "/src/first/first_part3.ts": 1, - "/src/second/second_part1.ts": 1, - "/src/second/second_part2.ts": 1, - "/src/first/bin/first-output.d.ts": 1, - "/src/2/second-output.d.ts": 1, - "/src/third/third_part1.ts": 1, - "/src/first/bin/first-output.js": 1, - "/src/2/second-output.js": 1, - "/src/first/bin/first-output.js.map": 1, - "/src/2/second-output.js.map": 1, - "/src/first/bin/first-output.d.ts.map": 1, - "/src/2/second-output.d.ts.map": 1 + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/second/second_part1.ts": 1, + "/src/second/second_part2.ts": 1, + "/src/first/bin/first-output.d.ts": 1, + "/src/2/second-output.d.ts": 1, + "/src/third/third_part1.ts": 1, + "/src/first/bin/first-output.js": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1 } //// [/src/2/second-output.d.ts] @@ -213,8 +215,8 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(2, 2) Source(3, 2) + SourceIndex(0) --- @@ -223,8 +225,8 @@ sourceFile:../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -237,12 +239,12 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(4, 2) Source(11, 2) + SourceIndex(0) --- @@ -265,7 +267,7 @@ sourceFile:../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(6, 5) Source(2, 5) + SourceIndex(1) @@ -274,9 +276,9 @@ sourceFile:../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(7, 2) Source(5, 2) + SourceIndex(1) --- @@ -322,19 +324,19 @@ sourceFile:../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1 >namespace N { - > // Comment text - >} - > +1 >namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1 >Emitted(2, 1) Source(5, 1) + SourceIndex(0) 2 >Emitted(2, 5) Source(5, 11) + SourceIndex(0) @@ -358,7 +360,7 @@ sourceFile:../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -375,7 +377,7 @@ sourceFile:../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -397,7 +399,7 @@ sourceFile:../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) @@ -409,8 +411,8 @@ sourceFile:../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -429,19 +431,19 @@ sourceFile:../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(8, 1) Source(11, 1) + SourceIndex(0) 2 >Emitted(8, 2) Source(11, 2) + SourceIndex(0) @@ -471,10 +473,10 @@ sourceFile:../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(11, 5) Source(5, 1) + SourceIndex(1) @@ -501,7 +503,7 @@ sourceFile:../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -523,7 +525,7 @@ sourceFile:../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(14, 5) Source(4, 5) + SourceIndex(1) @@ -532,7 +534,7 @@ sourceFile:../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) @@ -547,10 +549,10 @@ sourceFile:../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(16, 1) Source(5, 1) + SourceIndex(1) 2 >Emitted(16, 2) Source(5, 2) + SourceIndex(1) @@ -560,7 +562,7 @@ sourceFile:../second/second_part2.ts >>>//# sourceMappingURL=second-output.js.map //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":284,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}}]}]},"mapHash":"-5973886303-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\";AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-20649828028-\"use strict\";\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":93,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-16005591226-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["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; };","-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":true,"target":1},"outSignature":"-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":284,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}}]}]},"mapHash":"-5973886303-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\";AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-20649828028-\"use strict\";\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":93,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-16005591226-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["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; };","-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n","3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":true,"target":1},"outSignature":"-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -665,8 +667,8 @@ declare class C { ], "fileInfos": { "../../lib/lib.d.ts": "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; };", - "../second/second_part1.ts": "-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n", - "../second/second_part2.ts": "9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n" + "../second/second_part1.ts": "-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", + "../second/second_part2.ts": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n" }, "root": [ [ @@ -693,7 +695,7 @@ declare class C { "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 2948 + "size": 2916 } //// [/src/first/bin/first-output.d.ts] @@ -738,7 +740,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -753,7 +755,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -764,8 +766,8 @@ sourceFile:../first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -783,8 +785,8 @@ sourceFile:../first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -798,7 +800,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -813,7 +815,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -830,8 +832,8 @@ sourceFile:../first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) @@ -872,10 +874,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -899,12 +901,12 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -976,7 +978,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -990,7 +992,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) @@ -999,7 +1001,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":118,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}}]}]},"mapHash":"-18922522596-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"5075798521-\"use strict\";\nvar s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":true,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":118,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}}]}]},"mapHash":"-18922522596-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"5075798521-\"use strict\";\nvar s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":true,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -1098,9 +1100,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "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; };", - "../first_part1.ts": "-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -1129,7 +1131,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2845 + "size": 2819 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -1182,7 +1184,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -1197,7 +1199,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -1208,8 +1210,8 @@ sourceFile:../../../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -1227,8 +1229,8 @@ sourceFile:../../../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -1242,7 +1244,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -1257,7 +1259,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -1273,8 +1275,8 @@ sourceFile:../../../first/first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) @@ -1302,8 +1304,8 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) --- @@ -1312,8 +1314,8 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -1326,12 +1328,12 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) --- @@ -1354,7 +1356,7 @@ sourceFile:../../../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(14, 5) Source(2, 5) + SourceIndex(3) @@ -1363,9 +1365,9 @@ sourceFile:../../../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(15, 2) Source(5, 2) + SourceIndex(3) --- @@ -1445,10 +1447,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -1472,12 +1474,12 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -1549,7 +1551,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -1563,7 +1565,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) @@ -1579,19 +1581,19 @@ sourceFile:../../../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(8, 5) Source(5, 11) + SourceIndex(3) @@ -1615,7 +1617,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -1632,7 +1634,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -1654,7 +1656,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(12, 5) Source(8, 5) + SourceIndex(3) @@ -1666,8 +1668,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -1686,19 +1688,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(14, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(14, 2) Source(11, 2) + SourceIndex(3) @@ -1728,10 +1730,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(17, 5) Source(5, 1) + SourceIndex(4) @@ -1758,7 +1760,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -1780,7 +1782,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(20, 5) Source(4, 5) + SourceIndex(4) @@ -1789,7 +1791,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(21, 5) Source(5, 1) + SourceIndex(4) @@ -1804,10 +1806,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(22, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(22, 2) Source(5, 2) + SourceIndex(4) @@ -1852,7 +1854,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -1869,7 +1871,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":118,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":14,"end":118,"kind":"text"}]},{"pos":118,"end":388,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":118,"end":388,"kind":"text"}]},{"pos":388,"end":422,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}}]}]},"mapHash":"2198167249-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-33862833231-\"use strict\";\nvar s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":149,"kind":"text"}]},{"pos":149,"end":242,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":149,"end":242,"kind":"text"}]},{"pos":242,"end":260,"kind":"text"}],"mapHash":"-10250552873-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"406139541-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":true,"target":1},"outSignature":"-2893455973-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":118,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":14,"end":118,"kind":"text"}]},{"pos":118,"end":388,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":118,"end":388,"kind":"text"}]},{"pos":388,"end":422,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}}]}]},"mapHash":"2198167249-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-33862833231-\"use strict\";\nvar s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":149,"kind":"text"}]},{"pos":149,"end":242,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":149,"end":242,"kind":"text"}]},{"pos":242,"end":260,"kind":"text"}],"mapHash":"-10250552873-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"406139541-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":true,"target":1},"outSignature":"-2893455973-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -2065,7 +2067,7 @@ declare var c: C; "../../../../lib/lib.d.ts": "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; };", "../../../first/bin/first-output.d.ts": "-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -2088,7 +2090,7 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 4676 + "size": 4671 } @@ -2096,58 +2098,58 @@ declare var c: C; Change:: incremental-declaration-changes Input:: //// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hola, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hola, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:00:51 AM] Projects in this build: +[12:01:03 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:52 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:01:04 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:00:53 AM] Building project '/src/first/tsconfig.json'... +[12:01:05 AM] Building project '/src/first/tsconfig.json'... -[12:01:02 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:01:14 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part2.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:03 AM] Project 'src/third/tsconfig.json' is out of date because output 'src/third/thirdjs/output/third-output.tsbuildinfo' is older than input 'src/first' +[12:01:15 AM] Project 'src/third/tsconfig.json' is out of date because output 'src/third/thirdjs/output/third-output.tsbuildinfo' is older than input 'src/first' -[12:01:04 AM] Building project '/src/third/tsconfig.json'... +[12:01:16 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success readFiles:: { - "/src/third/tsconfig.json": 1, - "/src/first/tsconfig.json": 1, - "/src/second/tsconfig.json": 1, - "/src/first/bin/first-output.tsbuildinfo": 1, - "/src/first/first_PART1.ts": 1, - "/src/first/first_part2.ts": 1, - "/src/first/first_part3.ts": 1, - "/src/2/second-output.tsbuildinfo": 1, - "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, - "/src/first/bin/first-output.d.ts": 1, - "/src/2/second-output.d.ts": 1, - "/src/third/third_part1.ts": 1, - "/src/first/bin/first-output.js": 1, - "/src/2/second-output.js": 1, - "/src/first/bin/first-output.js.map": 1, - "/src/2/second-output.js.map": 1, - "/src/first/bin/first-output.d.ts.map": 1, - "/src/2/second-output.d.ts.map": 1 + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/2/second-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, + "/src/first/bin/first-output.d.ts": 1, + "/src/2/second-output.d.ts": 1, + "/src/third/third_part1.ts": 1, + "/src/first/bin/first-output.js": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1 } //// [/src/first/bin/first-output.d.ts] @@ -2192,7 +2194,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -2207,7 +2209,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -2218,8 +2220,8 @@ sourceFile:../first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -2237,8 +2239,8 @@ sourceFile:../first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -2252,7 +2254,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -2267,7 +2269,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -2284,8 +2286,8 @@ sourceFile:../first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) @@ -2326,10 +2328,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -2353,12 +2355,12 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -2430,7 +2432,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -2444,7 +2446,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) @@ -2453,7 +2455,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":117,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}}]}]},"mapHash":"-11652069546-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-7062323831-\"use strict\";\nvar s = \"Hola, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":148,"kind":"text"}],"mapHash":"31357838721-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-8638855186-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-2594963283-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":true,"target":1},"outSignature":"-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":117,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}}]}]},"mapHash":"-11652069546-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-7062323831-\"use strict\";\nvar s = \"Hola, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":148,"kind":"text"}],"mapHash":"31357838721-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-8638855186-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-21189362626-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hola, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":true,"target":1},"outSignature":"-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -2552,9 +2554,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "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; };", - "../first_part1.ts": "-2594963283-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-21189362626-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hola, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -2583,7 +2585,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2840 + "size": 2815 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -2636,7 +2638,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -2651,7 +2653,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -2662,8 +2664,8 @@ sourceFile:../../../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -2681,8 +2683,8 @@ sourceFile:../../../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -2696,7 +2698,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -2711,7 +2713,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -2727,8 +2729,8 @@ sourceFile:../../../first/first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) @@ -2756,8 +2758,8 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) --- @@ -2766,8 +2768,8 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -2780,12 +2782,12 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) --- @@ -2808,7 +2810,7 @@ sourceFile:../../../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(14, 5) Source(2, 5) + SourceIndex(3) @@ -2817,9 +2819,9 @@ sourceFile:../../../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(15, 2) Source(5, 2) + SourceIndex(3) --- @@ -2899,10 +2901,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -2926,12 +2928,12 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -3003,7 +3005,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -3017,7 +3019,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) @@ -3033,19 +3035,19 @@ sourceFile:../../../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(8, 5) Source(5, 11) + SourceIndex(3) @@ -3069,7 +3071,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -3086,7 +3088,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -3108,7 +3110,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(12, 5) Source(8, 5) + SourceIndex(3) @@ -3120,8 +3122,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -3140,19 +3142,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(14, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(14, 2) Source(11, 2) + SourceIndex(3) @@ -3182,10 +3184,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(17, 5) Source(5, 1) + SourceIndex(4) @@ -3212,7 +3214,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -3234,7 +3236,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(20, 5) Source(4, 5) + SourceIndex(4) @@ -3243,7 +3245,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(21, 5) Source(5, 1) + SourceIndex(4) @@ -3258,10 +3260,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(22, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(22, 2) Source(5, 2) + SourceIndex(4) @@ -3306,7 +3308,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -3323,7 +3325,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":117,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":14,"end":117,"kind":"text"}]},{"pos":117,"end":387,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":117,"end":387,"kind":"text"}]},{"pos":387,"end":421,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}}]}]},"mapHash":"40638595723-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"7657914177-\"use strict\";\nvar s = \"Hola, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":148,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":148,"kind":"text"}]},{"pos":148,"end":241,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":148,"end":241,"kind":"text"}]},{"pos":241,"end":259,"kind":"text"}],"mapHash":"4922242321-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-30232795483-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":true,"target":1},"outSignature":"-16013804117-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":117,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":14,"end":117,"kind":"text"}]},{"pos":117,"end":387,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":117,"end":387,"kind":"text"}]},{"pos":387,"end":421,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}}]}]},"mapHash":"40638595723-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"7657914177-\"use strict\";\nvar s = \"Hola, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":148,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":148,"kind":"text"}]},{"pos":148,"end":241,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":148,"end":241,"kind":"text"}]},{"pos":241,"end":259,"kind":"text"}],"mapHash":"4922242321-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-30232795483-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":true,"target":1},"outSignature":"-16013804117-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -3519,7 +3521,7 @@ declare var c: C; "../../../../lib/lib.d.ts": "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; };", "../../../first/bin/first-output.d.ts": "-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -3542,7 +3544,7 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 4673 + "size": 4668 } @@ -3550,61 +3552,61 @@ declare var c: C; Change:: incremental-declaration-doesnt-change Input:: //// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hola, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hola, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:01:18 AM] Projects in this build: +[12:01:30 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:01:19 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:01:31 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:01:20 AM] Building project '/src/first/tsconfig.json'... +[12:01:32 AM] Building project '/src/first/tsconfig.json'... -[12:01:28 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:01:40 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part2.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:29 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:01:41 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:01:30 AM] Updating output of project '/src/third/tsconfig.json'... +[12:01:42 AM] Updating output of project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success readFiles:: { - "/src/third/tsconfig.json": 1, - "/src/first/tsconfig.json": 1, - "/src/second/tsconfig.json": 1, - "/src/first/bin/first-output.tsbuildinfo": 1, - "/src/first/first_PART1.ts": 1, - "/src/first/first_part2.ts": 1, - "/src/first/first_part3.ts": 1, - "/src/2/second-output.tsbuildinfo": 1, - "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, - "/src/third/thirdjs/output/third-output.js": 1, - "/src/third/thirdjs/output/third-output.js.map": 1, - "/src/third/thirdjs/output/third-output.d.ts": 1, - "/src/third/thirdjs/output/third-output.d.ts.map": 1, - "/src/first/bin/first-output.js": 1, - "/src/2/second-output.js": 1, - "/src/first/bin/first-output.js.map": 1, - "/src/2/second-output.js.map": 1, - "/src/first/bin/first-output.d.ts": 1, - "/src/2/second-output.d.ts": 1, - "/src/first/bin/first-output.d.ts.map": 1, - "/src/2/second-output.d.ts.map": 1 + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/2/second-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.js": 1, + "/src/third/thirdjs/output/third-output.js.map": 1, + "/src/third/thirdjs/output/third-output.d.ts": 1, + "/src/third/thirdjs/output/third-output.d.ts.map": 1, + "/src/first/bin/first-output.js": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/first/bin/first-output.d.ts": 1, + "/src/2/second-output.d.ts": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1 } //// [/src/first/bin/first-output.d.ts.map] file written with same contents @@ -3642,10 +3644,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -3668,12 +3670,12 @@ sourceFile:../first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -3701,7 +3703,7 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > +1 > > 2 >console 3 > . @@ -3773,7 +3775,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -3787,7 +3789,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(8, 1) Source(3, 1) + SourceIndex(2) @@ -3796,7 +3798,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":133,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}}]}]},"mapHash":"12349749002-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-10466209739-\"use strict\";\nvar s = \"Hola, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":148,"kind":"text"}],"mapHash":"31357838721-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-8638855186-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","3570577263-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":true,"target":1},"outSignature":"-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":133,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}}]}]},"mapHash":"12349749002-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-10466209739-\"use strict\";\nvar s = \"Hola, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":148,"kind":"text"}],"mapHash":"31357838721-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-8638855186-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-21292400928-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hola, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":true,"target":1},"outSignature":"-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -3896,9 +3898,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "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; };", - "../first_part1.ts": "3570577263-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-21292400928-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hola, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -3927,7 +3929,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2911 + "size": 2887 } //// [/src/third/thirdjs/output/third-output.js] @@ -3980,10 +3982,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -4006,12 +4008,12 @@ sourceFile:../../../first/first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -4039,7 +4041,7 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > +1 > > 2 >console 3 > . @@ -4111,7 +4113,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -4125,7 +4127,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(8, 1) Source(3, 1) + SourceIndex(2) @@ -4141,19 +4143,19 @@ sourceFile:../../../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(9, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(9, 5) Source(5, 11) + SourceIndex(3) @@ -4177,7 +4179,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -4194,7 +4196,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -4216,7 +4218,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(13, 5) Source(8, 5) + SourceIndex(3) @@ -4228,8 +4230,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -4248,19 +4250,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(15, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(15, 2) Source(11, 2) + SourceIndex(3) @@ -4290,10 +4292,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(18, 5) Source(5, 1) + SourceIndex(4) @@ -4320,7 +4322,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -4342,7 +4344,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(21, 5) Source(4, 5) + SourceIndex(4) @@ -4351,7 +4353,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(22, 5) Source(5, 1) + SourceIndex(4) @@ -4366,10 +4368,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(23, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(23, 2) Source(5, 2) + SourceIndex(4) @@ -4414,7 +4416,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -4431,7 +4433,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":133,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":14,"end":133,"kind":"text"}]},{"pos":133,"end":403,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":133,"end":403,"kind":"text"}]},{"pos":403,"end":437,"kind":"text"}],"mapHash":"17637681983-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"39543134701-\"use strict\";\nvar s = \"Hola, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map","sources":{"prologues":[{"file":0,"text":"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}}]}]}},"dts":{"sections":[{"pos":0,"end":148,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":148,"kind":"text"}]},{"pos":148,"end":241,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":148,"end":241,"kind":"text"}]},{"pos":241,"end":259,"kind":"text"}],"mapHash":"4922242321-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-30232795483-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":true,"target":1},"outSignature":"-16013804117-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":133,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":14,"end":133,"kind":"text"}]},{"pos":133,"end":403,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":133,"end":403,"kind":"text"}]},{"pos":403,"end":437,"kind":"text"}],"mapHash":"17637681983-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"39543134701-\"use strict\";\nvar s = \"Hola, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map","sources":{"prologues":[{"file":0,"text":"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}}]}]}},"dts":{"sections":[{"pos":0,"end":148,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":148,"kind":"text"}]},{"pos":148,"end":241,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":148,"end":241,"kind":"text"}]},{"pos":241,"end":259,"kind":"text"}],"mapHash":"4922242321-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-30232795483-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":true,"target":1},"outSignature":"-16013804117-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -4628,7 +4630,7 @@ declare var c: C; "../../../../lib/lib.d.ts": "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; };", "../../../first/bin/first-output.d.ts": "-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -4651,7 +4653,7 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 4731 + "size": 4726 } @@ -4660,61 +4662,61 @@ Change:: incremental-headers-change-without-dts-changes Input:: //// [/src/first/first_PART1.ts] "myPrologue" -interface TheFirst { - none: any; -} - -const s = "Hola, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hola, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:01:41 AM] Projects in this build: +[12:01:53 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:01:42 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:01:54 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:01:43 AM] Building project '/src/first/tsconfig.json'... +[12:01:55 AM] Building project '/src/first/tsconfig.json'... -[12:01:51 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:02:03 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part2.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:52 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:02:04 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:01:53 AM] Updating output of project '/src/third/tsconfig.json'... +[12:02:05 AM] Updating output of project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success readFiles:: { - "/src/third/tsconfig.json": 1, - "/src/first/tsconfig.json": 1, - "/src/second/tsconfig.json": 1, - "/src/first/bin/first-output.tsbuildinfo": 1, - "/src/first/first_PART1.ts": 1, - "/src/first/first_part2.ts": 1, - "/src/first/first_part3.ts": 1, - "/src/2/second-output.tsbuildinfo": 1, - "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, - "/src/third/thirdjs/output/third-output.js": 1, - "/src/third/thirdjs/output/third-output.js.map": 1, - "/src/third/thirdjs/output/third-output.d.ts": 1, - "/src/third/thirdjs/output/third-output.d.ts.map": 1, - "/src/first/bin/first-output.js": 1, - "/src/2/second-output.js": 1, - "/src/first/bin/first-output.js.map": 1, - "/src/2/second-output.js.map": 1, - "/src/first/bin/first-output.d.ts": 1, - "/src/2/second-output.d.ts": 1, - "/src/first/bin/first-output.d.ts.map": 1, - "/src/2/second-output.d.ts.map": 1 + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/2/second-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.js": 1, + "/src/third/thirdjs/output/third-output.js.map": 1, + "/src/third/thirdjs/output/third-output.d.ts": 1, + "/src/third/thirdjs/output/third-output.d.ts.map": 1, + "/src/first/bin/first-output.js": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/first/bin/first-output.d.ts": 1, + "/src/2/second-output.d.ts": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1 } //// [/src/first/bin/first-output.d.ts.map] @@ -4749,7 +4751,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -4764,7 +4766,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(4, 2) + SourceIndex(0) --- @@ -4775,8 +4777,8 @@ sourceFile:../first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -4794,8 +4796,8 @@ sourceFile:../first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -4809,7 +4811,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -4824,7 +4826,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(10, 2) + SourceIndex(0) --- @@ -4841,8 +4843,8 @@ sourceFile:../first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) @@ -4898,10 +4900,10 @@ sourceFile:../first_PART1.ts 5 > ^^^^^^^^^^^^^ 6 > ^ 1-> - >interface TheFirst { - > none: any; - >} - > + >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -4924,12 +4926,12 @@ sourceFile:../first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -4957,7 +4959,7 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > +1 > > 2 >console 3 > . @@ -5029,7 +5031,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -5043,7 +5045,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(9, 1) Source(3, 1) + SourceIndex(2) @@ -5052,7 +5054,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":27,"kind":"prologue","data":"myPrologue"},{"pos":28,"end":147,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"\"myPrologue\"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}},{"pos":0,"end":12,"expression":{"pos":0,"end":12,"text":"myPrologue"}}]}]},"mapHash":"-14273144424-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AAAA,YAAY,CAAA;AAKZ,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACZf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-4031265999-\"use strict\";\n\"myPrologue\";\nvar s = \"Hola, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":148,"kind":"text"}],"mapHash":"11879278213-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AETD,iBAAS,CAAC,WAET\"}","hash":"-8638855186-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","38656732144-\"myPrologue\"\ninterface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":true,"target":1},"outSignature":"-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":27,"kind":"prologue","data":"myPrologue"},{"pos":28,"end":147,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"\"myPrologue\"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}},{"pos":0,"end":12,"expression":{"pos":0,"end":12,"text":"myPrologue"}}]}]},"mapHash":"-14273144424-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AAAA,YAAY,CAAA;AAKZ,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACZf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-4031265999-\"use strict\";\n\"myPrologue\";\nvar s = \"Hola, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":148,"kind":"text"}],"mapHash":"11879278213-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AETD,iBAAS,CAAC,WAET\"}","hash":"-8638855186-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","18526163457-\"myPrologue\"\ninterface TheFirst {\n none: any;\n}\n\nconst s = \"Hola, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":true,"target":1},"outSignature":"-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -5170,9 +5172,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "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; };", - "../first_part1.ts": "38656732144-\"myPrologue\"\ninterface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "18526163457-\"myPrologue\"\ninterface TheFirst {\n none: any;\n}\n\nconst s = \"Hola, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -5201,7 +5203,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 3103 + "size": 3077 } //// [/src/third/thirdjs/output/third-output.d.ts.map] @@ -5236,7 +5238,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -5251,7 +5253,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(4, 2) + SourceIndex(0) --- @@ -5262,8 +5264,8 @@ sourceFile:../../../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -5281,8 +5283,8 @@ sourceFile:../../../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -5296,7 +5298,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -5311,7 +5313,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(10, 2) + SourceIndex(0) --- @@ -5327,8 +5329,8 @@ sourceFile:../../../first/first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) @@ -5356,8 +5358,8 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) --- @@ -5366,8 +5368,8 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -5380,12 +5382,12 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) --- @@ -5408,7 +5410,7 @@ sourceFile:../../../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(14, 5) Source(2, 5) + SourceIndex(3) @@ -5417,9 +5419,9 @@ sourceFile:../../../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(15, 2) Source(5, 2) + SourceIndex(3) --- @@ -5514,10 +5516,10 @@ sourceFile:../../../first/first_PART1.ts 5 > ^^^^^^^^^^^^^ 6 > ^ 1-> - >interface TheFirst { - > none: any; - >} - > + >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -5540,12 +5542,12 @@ sourceFile:../../../first/first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -5573,7 +5575,7 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > +1 > > 2 >console 3 > . @@ -5645,7 +5647,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -5659,7 +5661,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(9, 1) Source(3, 1) + SourceIndex(2) @@ -5675,19 +5677,19 @@ sourceFile:../../../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(10, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(10, 5) Source(5, 11) + SourceIndex(3) @@ -5711,7 +5713,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -5728,7 +5730,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -5750,7 +5752,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(14, 5) Source(8, 5) + SourceIndex(3) @@ -5762,8 +5764,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -5782,19 +5784,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(16, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(16, 2) Source(11, 2) + SourceIndex(3) @@ -5824,10 +5826,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(19, 5) Source(5, 1) + SourceIndex(4) @@ -5854,7 +5856,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -5876,7 +5878,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(22, 5) Source(4, 5) + SourceIndex(4) @@ -5885,7 +5887,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(23, 5) Source(5, 1) + SourceIndex(4) @@ -5900,10 +5902,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(24, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(24, 2) Source(5, 2) + SourceIndex(4) @@ -5948,7 +5950,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -5965,7 +5967,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":27,"kind":"prologue","data":"myPrologue"},{"pos":28,"end":147,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":28,"end":147,"kind":"text"}]},{"pos":147,"end":417,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":147,"end":417,"kind":"text"}]},{"pos":417,"end":451,"kind":"text"}],"mapHash":"47400624973-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AAAA,YAAY,CAAA;AAKZ,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACZf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-33502743319-\"use strict\";\n\"myPrologue\";\nvar s = \"Hola, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map","sources":{"prologues":[{"file":0,"text":"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}}]}]}},"dts":{"sections":[{"pos":0,"end":148,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":148,"kind":"text"}]},{"pos":148,"end":241,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":148,"end":241,"kind":"text"}]},{"pos":241,"end":259,"kind":"text"}],"mapHash":"26964323861-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACTD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-30232795483-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":true,"target":1},"outSignature":"-16013804117-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":27,"kind":"prologue","data":"myPrologue"},{"pos":28,"end":147,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":28,"end":147,"kind":"text"}]},{"pos":147,"end":417,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":147,"end":417,"kind":"text"}]},{"pos":417,"end":451,"kind":"text"}],"mapHash":"47400624973-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AAAA,YAAY,CAAA;AAKZ,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACZf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-33502743319-\"use strict\";\n\"myPrologue\";\nvar s = \"Hola, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map","sources":{"prologues":[{"file":0,"text":"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}}]}]}},"dts":{"sections":[{"pos":0,"end":148,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":148,"kind":"text"}]},{"pos":148,"end":241,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":148,"end":241,"kind":"text"}]},{"pos":241,"end":259,"kind":"text"}],"mapHash":"26964323861-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACTD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-30232795483-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":true,"target":1},"outSignature":"-16013804117-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -6171,7 +6173,7 @@ declare var c: C; "../../../../lib/lib.d.ts": "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; };", "../../../first/bin/first-output.d.ts": "-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -6194,6 +6196,6 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 4823 + "size": 4818 } diff --git a/tests/baselines/reference/tsbuild/outfile-concat/strict-in-one-dependency.js b/tests/baselines/reference/tsbuild/outfile-concat/strict-in-one-dependency.js index 97ab8ec678d3c..18b69c529b6f3 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/strict-in-one-dependency.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/strict-in-one-dependency.js @@ -16,140 +16,142 @@ interface ReadonlyArray {} declare const console: { log(msg: any): void; }; //// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); //// [/src/first/first_part2.ts] -console.log(f()); +console.log(f()); //// [/src/first/first_part3.ts] -function f() { - return "JS does hoists"; -} +function f() { + return "JS does hoists"; +} + //// [/src/first/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "outFile": "./bin/first-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "first_PART1.ts", - "first_part2.ts", - "first_part3.ts" - ], - "references": [ - ] +{ + "compilerOptions": { + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "outFile": "./bin/first-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "first_PART1.ts", + "first_part2.ts", + "first_part3.ts" + ], + "references": [] } - //// [/src/second/second_part1.ts] -namespace N { - // Comment text -} - -namespace N { - function f() { - console.log('testing'); - } - - f(); -} +namespace N { + // Comment text +} + +namespace N { + function f() { + console.log('testing'); + } + + f(); +} //// [/src/second/second_part2.ts] -class C { - doSomething() { - console.log("something got done"); - } -} +class C { + doSomething() { + console.log("something got done"); + } +} //// [/src/second/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": true, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "../2/second-output.js", - "skipDefaultLibCheck": true - }, - "references": [ - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": true, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "../2/second-output.js", + "skipDefaultLibCheck": true + }, + "references": [] } - //// [/src/third/third_part1.ts] -var c = new C(); -c.doSomething(); +var c = new C(); +c.doSomething(); //// [/src/third/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "./thirdjs/output/third-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "third_part1.ts" - ], - "references": [ - { "path": "../first", "prepend": true }, - { "path": "../second", "prepend": true }, - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "./thirdjs/output/third-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "third_part1.ts" + ], + "references": [ + { + "path": "../first", + "prepend": true + }, + { + "path": "../second", + "prepend": true + } + ] } - Output:: /lib/tsc --b /src/third --verbose -[12:00:07 AM] Projects in this build: +[12:00:19 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:08 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist +[12:00:20 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist -[12:00:09 AM] Building project '/src/first/tsconfig.json'... +[12:00:21 AM] Building project '/src/first/tsconfig.json'... -[12:00:19 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist +[12:00:31 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist -[12:00:20 AM] Building project '/src/second/tsconfig.json'... +[12:00:32 AM] Building project '/src/second/tsconfig.json'... -[12:00:30 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist +[12:00:42 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist -[12:00:31 AM] Building project '/src/third/tsconfig.json'... +[12:00:43 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -195,8 +197,8 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(2, 2) Source(3, 2) + SourceIndex(0) --- @@ -205,8 +207,8 @@ sourceFile:../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -219,12 +221,12 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(4, 2) Source(11, 2) + SourceIndex(0) --- @@ -247,7 +249,7 @@ sourceFile:../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(6, 5) Source(2, 5) + SourceIndex(1) @@ -256,9 +258,9 @@ sourceFile:../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(7, 2) Source(5, 2) + SourceIndex(1) --- @@ -304,19 +306,19 @@ sourceFile:../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1 >namespace N { - > // Comment text - >} - > +1 >namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1 >Emitted(2, 1) Source(5, 1) + SourceIndex(0) 2 >Emitted(2, 5) Source(5, 11) + SourceIndex(0) @@ -340,7 +342,7 @@ sourceFile:../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -357,7 +359,7 @@ sourceFile:../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -379,7 +381,7 @@ sourceFile:../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) @@ -391,8 +393,8 @@ sourceFile:../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -411,19 +413,19 @@ sourceFile:../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(8, 1) Source(11, 1) + SourceIndex(0) 2 >Emitted(8, 2) Source(11, 2) + SourceIndex(0) @@ -453,10 +455,10 @@ sourceFile:../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(11, 5) Source(5, 1) + SourceIndex(1) @@ -483,7 +485,7 @@ sourceFile:../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -505,7 +507,7 @@ sourceFile:../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(14, 5) Source(4, 5) + SourceIndex(1) @@ -514,7 +516,7 @@ sourceFile:../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) @@ -529,10 +531,10 @@ sourceFile:../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(16, 1) Source(5, 1) + SourceIndex(1) 2 >Emitted(16, 2) Source(5, 2) + SourceIndex(1) @@ -542,7 +544,7 @@ sourceFile:../second/second_part2.ts >>>//# sourceMappingURL=second-output.js.map //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":284,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}}]}]},"mapHash":"-5973886303-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\";AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-20649828028-\"use strict\";\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":93,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-16005591226-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["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; };","-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":true,"target":1},"outSignature":"-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":284,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}}]}]},"mapHash":"-5973886303-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\";AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-20649828028-\"use strict\";\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":93,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-16005591226-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["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; };","-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n","3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":true,"target":1},"outSignature":"-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -647,8 +649,8 @@ declare class C { ], "fileInfos": { "../../lib/lib.d.ts": "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; };", - "../second/second_part1.ts": "-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n", - "../second/second_part2.ts": "9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n" + "../second/second_part1.ts": "-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", + "../second/second_part2.ts": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n" }, "root": [ [ @@ -675,7 +677,7 @@ declare class C { "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 2948 + "size": 2916 } //// [/src/first/bin/first-output.d.ts] @@ -720,7 +722,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -735,7 +737,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -746,8 +748,8 @@ sourceFile:../first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -765,8 +767,8 @@ sourceFile:../first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -780,7 +782,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -795,7 +797,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -812,8 +814,8 @@ sourceFile:../first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) @@ -852,10 +854,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -879,12 +881,12 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -956,7 +958,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -970,7 +972,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) @@ -979,7 +981,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"4999315210-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"4999315210-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -1050,9 +1052,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "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; };", - "../first_part1.ts": "-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -1081,7 +1083,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2635 + "size": 2609 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -1134,7 +1136,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -1149,7 +1151,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -1160,8 +1162,8 @@ sourceFile:../../../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -1179,8 +1181,8 @@ sourceFile:../../../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -1194,7 +1196,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -1209,7 +1211,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -1225,8 +1227,8 @@ sourceFile:../../../first/first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) @@ -1254,8 +1256,8 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) --- @@ -1264,8 +1266,8 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -1278,12 +1280,12 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) --- @@ -1306,7 +1308,7 @@ sourceFile:../../../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(14, 5) Source(2, 5) + SourceIndex(3) @@ -1315,9 +1317,9 @@ sourceFile:../../../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(15, 2) Source(5, 2) + SourceIndex(3) --- @@ -1397,10 +1399,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -1424,12 +1426,12 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -1501,7 +1503,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -1515,7 +1517,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) @@ -1531,19 +1533,19 @@ sourceFile:../../../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(8, 5) Source(5, 11) + SourceIndex(3) @@ -1567,7 +1569,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -1584,7 +1586,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -1606,7 +1608,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(12, 5) Source(8, 5) + SourceIndex(3) @@ -1618,8 +1620,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -1638,19 +1640,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(14, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(14, 2) Source(11, 2) + SourceIndex(3) @@ -1680,10 +1682,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(17, 5) Source(5, 1) + SourceIndex(4) @@ -1710,7 +1712,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -1732,7 +1734,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(20, 5) Source(4, 5) + SourceIndex(4) @@ -1741,7 +1743,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(21, 5) Source(5, 1) + SourceIndex(4) @@ -1756,10 +1758,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(22, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(22, 2) Source(5, 2) + SourceIndex(4) @@ -1804,7 +1806,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -1821,7 +1823,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":118,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":14,"end":118,"kind":"text"}]},{"pos":118,"end":388,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":118,"end":388,"kind":"text"}]},{"pos":388,"end":422,"kind":"text"}],"mapHash":"2198167249-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-33862833231-\"use strict\";\nvar s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":149,"kind":"text"}]},{"pos":149,"end":242,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":149,"end":242,"kind":"text"}]},{"pos":242,"end":260,"kind":"text"}],"mapHash":"-10250552873-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"406139541-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2893455973-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":118,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":14,"end":118,"kind":"text"}]},{"pos":118,"end":388,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":118,"end":388,"kind":"text"}]},{"pos":388,"end":422,"kind":"text"}],"mapHash":"2198167249-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-33862833231-\"use strict\";\nvar s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":149,"kind":"text"}]},{"pos":149,"end":242,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":149,"end":242,"kind":"text"}]},{"pos":242,"end":260,"kind":"text"}],"mapHash":"-10250552873-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"406139541-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2893455973-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -1998,7 +2000,7 @@ declare var c: C; "../../../../lib/lib.d.ts": "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; };", "../../../first/bin/first-output.d.ts": "-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -2021,7 +2023,7 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 4542 + "size": 4537 } @@ -2029,37 +2031,37 @@ declare var c: C; Change:: incremental-declaration-doesnt-change Input:: //// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:00:49 AM] Projects in this build: +[12:01:01 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:50 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:01:02 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:00:51 AM] Building project '/src/first/tsconfig.json'... +[12:01:03 AM] Building project '/src/first/tsconfig.json'... -[12:00:59 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:01:11 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part2.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:00 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:01:12 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:01:01 AM] Updating output of project '/src/third/tsconfig.json'... +[12:01:13 AM] Updating output of project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -2097,10 +2099,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -2123,12 +2125,12 @@ sourceFile:../first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -2156,7 +2158,7 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > +1 > > 2 >console 3 > . @@ -2228,7 +2230,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -2242,7 +2244,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) @@ -2251,7 +2253,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":120,"kind":"text"}],"mapHash":"-2702861355-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-20052626506-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-16950965473-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":120,"kind":"text"}],"mapHash":"-2702861355-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-20052626506-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-20304251376-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -2323,9 +2325,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "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; };", - "../first_part1.ts": "-16950965473-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-20304251376-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -2354,7 +2356,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2708 + "size": 2682 } //// [/src/third/thirdjs/output/third-output.js] @@ -2407,10 +2409,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -2433,12 +2435,12 @@ sourceFile:../../../first/first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -2466,7 +2468,7 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > +1 > > 2 >console 3 > . @@ -2538,7 +2540,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -2552,7 +2554,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(8, 1) Source(3, 1) + SourceIndex(2) @@ -2568,19 +2570,19 @@ sourceFile:../../../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(9, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(9, 5) Source(5, 11) + SourceIndex(3) @@ -2604,7 +2606,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -2621,7 +2623,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -2643,7 +2645,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(13, 5) Source(8, 5) + SourceIndex(3) @@ -2655,8 +2657,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -2675,19 +2677,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(15, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(15, 2) Source(11, 2) + SourceIndex(3) @@ -2717,10 +2719,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(18, 5) Source(5, 1) + SourceIndex(4) @@ -2747,7 +2749,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -2769,7 +2771,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(21, 5) Source(4, 5) + SourceIndex(4) @@ -2778,7 +2780,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(22, 5) Source(5, 1) + SourceIndex(4) @@ -2793,10 +2795,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(23, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(23, 2) Source(5, 2) + SourceIndex(4) @@ -2841,7 +2843,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -2858,7 +2860,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":134,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":14,"end":134,"kind":"text"}]},{"pos":134,"end":404,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":134,"end":404,"kind":"text"}]},{"pos":404,"end":438,"kind":"text"}],"mapHash":"40579483013-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"9182045789-\"use strict\";\nvar s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":149,"kind":"text"}]},{"pos":149,"end":242,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":149,"end":242,"kind":"text"}]},{"pos":242,"end":260,"kind":"text"}],"mapHash":"-10250552873-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"406139541-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2893455973-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":14,"end":134,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":14,"end":134,"kind":"text"}]},{"pos":134,"end":404,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":134,"end":404,"kind":"text"}]},{"pos":404,"end":438,"kind":"text"}],"mapHash":"40579483013-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"9182045789-\"use strict\";\nvar s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":149,"kind":"text"}]},{"pos":149,"end":242,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":149,"end":242,"kind":"text"}]},{"pos":242,"end":260,"kind":"text"}],"mapHash":"-10250552873-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"406139541-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2893455973-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -3036,7 +3038,7 @@ declare var c: C; "../../../../lib/lib.d.ts": "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; };", "../../../first/bin/first-output.d.ts": "-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -3059,7 +3061,7 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 4598 + "size": 4593 } @@ -3068,37 +3070,37 @@ Change:: incremental-headers-change-without-dts-changes Input:: //// [/src/first/first_PART1.ts] "myPrologue" -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:01:12 AM] Projects in this build: +[12:01:24 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:01:13 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:01:25 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:01:14 AM] Building project '/src/first/tsconfig.json'... +[12:01:26 AM] Building project '/src/first/tsconfig.json'... -[12:01:22 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:01:34 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part2.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:23 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:01:35 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:01:24 AM] Updating output of project '/src/third/tsconfig.json'... +[12:01:36 AM] Updating output of project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -3135,7 +3137,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -3150,7 +3152,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(4, 2) + SourceIndex(0) --- @@ -3161,8 +3163,8 @@ sourceFile:../first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -3180,8 +3182,8 @@ sourceFile:../first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -3195,7 +3197,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -3210,7 +3212,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(10, 2) + SourceIndex(0) --- @@ -3227,8 +3229,8 @@ sourceFile:../first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) @@ -3282,10 +3284,10 @@ sourceFile:../first_PART1.ts 5 > ^^^^^^^^^^^^^^ 6 > ^ 1-> - >interface TheFirst { - > none: any; - >} - > + >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -3308,12 +3310,12 @@ sourceFile:../first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -3341,7 +3343,7 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > +1 > > 2 >console 3 > . @@ -3413,7 +3415,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -3427,7 +3429,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(8, 1) Source(3, 1) + SourceIndex(2) @@ -3436,7 +3438,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"myPrologue"},{"pos":14,"end":134,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"\"myPrologue\"","directives":[{"pos":0,"end":12,"expression":{"pos":0,"end":12,"text":"myPrologue"}}]}]},"mapHash":"-32438518845-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,YAAY,CAAA;AAKZ,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACZf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"15974240242-\"myPrologue\";\nvar s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"18068494155-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AETD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","32790583232-\"myPrologue\"\ninterface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"myPrologue"},{"pos":14,"end":134,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"\"myPrologue\"","directives":[{"pos":0,"end":12,"expression":{"pos":0,"end":12,"text":"myPrologue"}}]}]},"mapHash":"-32438518845-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,YAAY,CAAA;AAKZ,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACZf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"15974240242-\"myPrologue\";\nvar s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"18068494155-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AETD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","26693021009-\"myPrologue\"\ninterface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -3536,9 +3538,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "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; };", - "../first_part1.ts": "32790583232-\"myPrologue\"\ninterface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "26693021009-\"myPrologue\"\ninterface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -3567,7 +3569,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2960 + "size": 2934 } //// [/src/third/thirdjs/output/third-output.d.ts.map] @@ -3602,7 +3604,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -3617,7 +3619,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(4, 2) + SourceIndex(0) --- @@ -3628,8 +3630,8 @@ sourceFile:../../../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -3647,8 +3649,8 @@ sourceFile:../../../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -3662,7 +3664,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -3677,7 +3679,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(10, 2) + SourceIndex(0) --- @@ -3693,8 +3695,8 @@ sourceFile:../../../first/first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) @@ -3722,8 +3724,8 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) --- @@ -3732,8 +3734,8 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -3746,12 +3748,12 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) --- @@ -3774,7 +3776,7 @@ sourceFile:../../../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(14, 5) Source(2, 5) + SourceIndex(3) @@ -3783,9 +3785,9 @@ sourceFile:../../../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(15, 2) Source(5, 2) + SourceIndex(3) --- @@ -3879,10 +3881,10 @@ sourceFile:../../../first/first_PART1.ts 5 > ^^^^^^^^^^^^^^ 6 > ^ 1 > - >interface TheFirst { - > none: any; - >} - > + >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -3905,12 +3907,12 @@ sourceFile:../../../first/first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -3938,7 +3940,7 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > +1 > > 2 >console 3 > . @@ -4010,7 +4012,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -4024,7 +4026,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(9, 1) Source(3, 1) + SourceIndex(2) @@ -4040,19 +4042,19 @@ sourceFile:../../../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(10, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(10, 5) Source(5, 11) + SourceIndex(3) @@ -4076,7 +4078,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -4093,7 +4095,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -4115,7 +4117,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(14, 5) Source(8, 5) + SourceIndex(3) @@ -4127,8 +4129,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -4147,19 +4149,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(16, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(16, 2) Source(11, 2) + SourceIndex(3) @@ -4189,10 +4191,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(19, 5) Source(5, 1) + SourceIndex(4) @@ -4219,7 +4221,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -4241,7 +4243,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(22, 5) Source(4, 5) + SourceIndex(4) @@ -4250,7 +4252,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(23, 5) Source(5, 1) + SourceIndex(4) @@ -4265,10 +4267,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(24, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(24, 2) Source(5, 2) + SourceIndex(4) @@ -4313,7 +4315,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -4330,7 +4332,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"myPrologue"},{"pos":14,"end":27,"kind":"prologue","data":"use strict"},{"pos":28,"end":148,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":28,"end":148,"kind":"text"}]},{"pos":148,"end":418,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":148,"end":418,"kind":"text"}]},{"pos":418,"end":452,"kind":"text"}],"mapHash":"26598307091-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,YAAY,CAAA;;AAKZ,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACZf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"489186201-\"myPrologue\";\n\"use strict\";\nvar s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":149,"kind":"text"}]},{"pos":149,"end":242,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":149,"end":242,"kind":"text"}]},{"pos":242,"end":260,"kind":"text"}],"mapHash":"28971397851-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACTD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"406139541-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2893455973-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"myPrologue"},{"pos":14,"end":27,"kind":"prologue","data":"use strict"},{"pos":28,"end":148,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":28,"end":148,"kind":"text"}]},{"pos":148,"end":418,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":148,"end":418,"kind":"text"}]},{"pos":418,"end":452,"kind":"text"}],"mapHash":"26598307091-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,YAAY,CAAA;;AAKZ,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACZf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"489186201-\"myPrologue\";\n\"use strict\";\nvar s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":149,"kind":"text"}]},{"pos":149,"end":242,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":149,"end":242,"kind":"text"}]},{"pos":242,"end":260,"kind":"text"}],"mapHash":"28971397851-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACTD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"406139541-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2893455973-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -4517,7 +4519,7 @@ declare var c: C; "../../../../lib/lib.d.ts": "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; };", "../../../first/bin/first-output.d.ts": "-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -4540,6 +4542,6 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 4686 + "size": 4681 } diff --git a/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-baseline-when-internal-is-inside-another-internal.js b/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-baseline-when-internal-is-inside-another-internal.js index 1d60de0152f39..687ce804cbb89 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-baseline-when-internal-is-inside-another-internal.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-baseline-when-internal-is-inside-another-internal.js @@ -43,141 +43,143 @@ namespace ts { export interface SourceFile { someProp: string; } -}interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +}interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); //// [/src/first/first_part2.ts] -console.log(f()); +console.log(f()); //// [/src/first/first_part3.ts] -function f() { - return "JS does hoists"; -} +function f() { + return "JS does hoists"; +} + //// [/src/first/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "outFile": "./bin/first-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "first_PART1.ts", - "first_part2.ts", - "first_part3.ts" - ], - "references": [ - ] +{ + "compilerOptions": { + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "outFile": "./bin/first-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "first_PART1.ts", + "first_part2.ts", + "first_part3.ts" + ], + "references": [] } - //// [/src/second/second_part1.ts] -namespace N { - // Comment text -} - -namespace N { - function f() { - console.log('testing'); - } - - f(); -} +namespace N { + // Comment text +} + +namespace N { + function f() { + console.log('testing'); + } + + f(); +} //// [/src/second/second_part2.ts] -class C { - doSomething() { - console.log("something got done"); - } -} +class C { + doSomething() { + console.log("something got done"); + } +} //// [/src/second/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "../2/second-output.js", - "skipDefaultLibCheck": true - }, - "references": [ - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "../2/second-output.js", + "skipDefaultLibCheck": true + }, + "references": [] } - //// [/src/third/third_part1.ts] -var c = new C(); -c.doSomething(); +var c = new C(); +c.doSomething(); //// [/src/third/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, "declaration": true, - "stripInternal": true, - "outFile": "./thirdjs/output/third-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "third_part1.ts" - ], - "references": [ - { "path": "../first", "prepend": true }, - { "path": "../second", "prepend": true }, - ] + "stripInternal": true, + "outFile": "./thirdjs/output/third-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "third_part1.ts" + ], + "references": [ + { + "path": "../first", + "prepend": true + }, + { + "path": "../second", + "prepend": true + } + ] } - Output:: /lib/tsc --b /src/third --verbose -[12:00:08 AM] Projects in this build: +[12:00:20 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:09 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist +[12:00:21 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist -[12:00:10 AM] Building project '/src/first/tsconfig.json'... +[12:00:22 AM] Building project '/src/first/tsconfig.json'... -[12:00:20 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist +[12:00:32 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist -[12:00:21 AM] Building project '/src/second/tsconfig.json'... +[12:00:33 AM] Building project '/src/second/tsconfig.json'... -[12:00:31 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist +[12:00:43 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist -[12:00:32 AM] Building project '/src/third/tsconfig.json'... +[12:00:44 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -223,8 +225,8 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(2, 2) Source(3, 2) + SourceIndex(0) --- @@ -233,8 +235,8 @@ sourceFile:../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -247,12 +249,12 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(4, 2) Source(11, 2) + SourceIndex(0) --- @@ -275,7 +277,7 @@ sourceFile:../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(6, 5) Source(2, 5) + SourceIndex(1) @@ -284,9 +286,9 @@ sourceFile:../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(7, 2) Source(5, 2) + SourceIndex(1) --- @@ -330,19 +332,19 @@ sourceFile:../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1 >namespace N { - > // Comment text - >} - > +1 >namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) 2 >Emitted(1, 5) Source(5, 11) + SourceIndex(0) @@ -366,7 +368,7 @@ sourceFile:../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -383,7 +385,7 @@ sourceFile:../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -405,7 +407,7 @@ sourceFile:../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(5, 5) Source(8, 5) + SourceIndex(0) @@ -417,8 +419,8 @@ sourceFile:../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -437,19 +439,19 @@ sourceFile:../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(7, 1) Source(11, 1) + SourceIndex(0) 2 >Emitted(7, 2) Source(11, 2) + SourceIndex(0) @@ -479,10 +481,10 @@ sourceFile:../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(10, 5) Source(5, 1) + SourceIndex(1) @@ -509,7 +511,7 @@ sourceFile:../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -531,7 +533,7 @@ sourceFile:../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(13, 5) Source(4, 5) + SourceIndex(1) @@ -540,7 +542,7 @@ sourceFile:../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(14, 5) Source(5, 1) + SourceIndex(1) @@ -555,10 +557,10 @@ sourceFile:../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(15, 1) Source(5, 1) + SourceIndex(1) 2 >Emitted(15, 2) Source(5, 2) + SourceIndex(1) @@ -568,7 +570,7 @@ sourceFile:../second/second_part2.ts >>>//# sourceMappingURL=second-output.js.map //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":270,"kind":"text"}],"mapHash":"9890117190-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-2912899787-var N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":93,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-16005591226-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["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; };","-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":270,"kind":"text"}],"mapHash":"9890117190-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-2912899787-var N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":93,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-16005591226-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["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; };","-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n","3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -645,8 +647,8 @@ declare class C { ], "fileInfos": { "../../lib/lib.d.ts": "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; };", - "../second/second_part1.ts": "-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n", - "../second/second_part2.ts": "9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n" + "../second/second_part1.ts": "-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", + "../second/second_part2.ts": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n" }, "root": [ [ @@ -673,7 +675,7 @@ declare class C { "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 2736 + "size": 2704 } //// [/src/first/bin/first-output.d.ts] @@ -1009,7 +1011,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -1024,7 +1026,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(17, 2) Source(30, 2) + SourceIndex(0) --- @@ -1035,8 +1037,8 @@ sourceFile:../first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -1054,8 +1056,8 @@ sourceFile:../first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -1069,7 +1071,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -1084,7 +1086,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(21, 2) Source(36, 2) + SourceIndex(0) --- @@ -1101,8 +1103,8 @@ sourceFile:../first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(22, 1) Source(1, 1) + SourceIndex(2) 2 >Emitted(22, 18) Source(1, 10) + SourceIndex(2) @@ -1168,10 +1170,10 @@ sourceFile:../first_PART1.ts > export interface SourceFile { > someProp: string; > } - >}interface TheFirst { - > none: any; - >} - > + >}interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -1195,12 +1197,12 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -1272,7 +1274,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -1286,7 +1288,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) @@ -1295,7 +1297,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"text"}],"mapHash":"-27619420124-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AA+BA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACrCf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"4999315210-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":23,"kind":"text"},{"pos":23,"end":354,"kind":"internal"},{"pos":355,"end":565,"kind":"text"}],"mapHash":"62640600936-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,EAAE,CAAC;IAKT,UAAiB,cAAc;QAC3B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;QACtB,OAAO,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;QAEhC,6BAA6B,CAAC,CAAC,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,IAAI,GAAG,MAAM,CAAC;KAC9F;IAGD,UAAiB,YAAY;QAEzB,QAAQ,CAAC,cAAc,EAAE,UAAU,CAAC;QAKpC,QAAQ,CAAC,YAAY,EAAE,UAAU,CAAC;KACrC;IAGD,UAAiB,UAAU;QACvB,QAAQ,EAAE,MAAM,CAAC;KACpB;CACJ;AAAA,UAAU,QAAQ;IACf,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AEnCD,iBAAS,CAAC,WAET\"}","hash":"-30794078285-declare namespace ts {\n interface SourceFileLike {\n readonly text: string;\n lineMap?: ReadonlyArray;\n getPositionOfLineAndCharacter?(line: number, character: number, allowEdits?: true): number;\n }\n interface RedirectInfo {\n readonly redirectTarget: SourceFile;\n readonly unredirected: SourceFile;\n }\n interface SourceFile {\n someProp: string;\n }\n}\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-91898050992-namespace ts {\n /* @internal */\n /**\n * Subset of properties from SourceFile that are used in multiple utility functions\n */\n export interface SourceFileLike {\n readonly text: string;\n lineMap?: ReadonlyArray;\n /* @internal */\n getPositionOfLineAndCharacter?(line: number, character: number, allowEdits?: true): number;\n }\n\n /* @internal */\n export interface RedirectInfo {\n /** Source file this redirects to. */\n readonly redirectTarget: SourceFile;\n /**\n * Source file for the duplicate package. This will not be used by the Program,\n * but we need to keep this around so we can watch for changes in underlying.\n */\n readonly unredirected: SourceFile;\n }\n\n // Source files are declarations when they are external modules.\n export interface SourceFile {\n someProp: string;\n }\n}interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-22356627540-declare namespace ts {\n interface SourceFileLike {\n readonly text: string;\n lineMap?: ReadonlyArray;\n getPositionOfLineAndCharacter?(line: number, character: number, allowEdits?: true): number;\n }\n interface RedirectInfo {\n readonly redirectTarget: SourceFile;\n readonly unredirected: SourceFile;\n }\n interface SourceFile {\n someProp: string;\n }\n}\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"text"}],"mapHash":"-27619420124-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AA+BA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACrCf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"4999315210-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":23,"kind":"text"},{"pos":23,"end":354,"kind":"internal"},{"pos":355,"end":565,"kind":"text"}],"mapHash":"62640600936-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,EAAE,CAAC;IAKT,UAAiB,cAAc;QAC3B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;QACtB,OAAO,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;QAEhC,6BAA6B,CAAC,CAAC,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,IAAI,GAAG,MAAM,CAAC;KAC9F;IAGD,UAAiB,YAAY;QAEzB,QAAQ,CAAC,cAAc,EAAE,UAAU,CAAC;QAKpC,QAAQ,CAAC,YAAY,EAAE,UAAU,CAAC;KACrC;IAGD,UAAiB,UAAU;QACvB,QAAQ,EAAE,MAAM,CAAC;KACpB;CACJ;AAAA,UAAU,QAAQ;IACf,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AEnCD,iBAAS,CAAC,WAET\"}","hash":"-30794078285-declare namespace ts {\n interface SourceFileLike {\n readonly text: string;\n lineMap?: ReadonlyArray;\n getPositionOfLineAndCharacter?(line: number, character: number, allowEdits?: true): number;\n }\n interface RedirectInfo {\n readonly redirectTarget: SourceFile;\n readonly unredirected: SourceFile;\n }\n interface SourceFile {\n someProp: string;\n }\n}\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-85636319423-namespace ts {\n /* @internal */\n /**\n * Subset of properties from SourceFile that are used in multiple utility functions\n */\n export interface SourceFileLike {\n readonly text: string;\n lineMap?: ReadonlyArray;\n /* @internal */\n getPositionOfLineAndCharacter?(line: number, character: number, allowEdits?: true): number;\n }\n\n /* @internal */\n export interface RedirectInfo {\n /** Source file this redirects to. */\n readonly redirectTarget: SourceFile;\n /**\n * Source file for the duplicate package. This will not be used by the Program,\n * but we need to keep this around so we can watch for changes in underlying.\n */\n readonly unredirected: SourceFile;\n }\n\n // Source files are declarations when they are external modules.\n export interface SourceFile {\n someProp: string;\n }\n}interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-22356627540-declare namespace ts {\n interface SourceFileLike {\n readonly text: string;\n lineMap?: ReadonlyArray;\n getPositionOfLineAndCharacter?(line: number, character: number, allowEdits?: true): number;\n }\n interface RedirectInfo {\n readonly redirectTarget: SourceFile;\n readonly unredirected: SourceFile;\n }\n interface SourceFile {\n someProp: string;\n }\n}\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -1395,9 +1397,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "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; };", - "../first_part1.ts": "-91898050992-namespace ts {\n /* @internal */\n /**\n * Subset of properties from SourceFile that are used in multiple utility functions\n */\n export interface SourceFileLike {\n readonly text: string;\n lineMap?: ReadonlyArray;\n /* @internal */\n getPositionOfLineAndCharacter?(line: number, character: number, allowEdits?: true): number;\n }\n\n /* @internal */\n export interface RedirectInfo {\n /** Source file this redirects to. */\n readonly redirectTarget: SourceFile;\n /**\n * Source file for the duplicate package. This will not be used by the Program,\n * but we need to keep this around so we can watch for changes in underlying.\n */\n readonly unredirected: SourceFile;\n }\n\n // Source files are declarations when they are external modules.\n export interface SourceFile {\n someProp: string;\n }\n}interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-85636319423-namespace ts {\n /* @internal */\n /**\n * Subset of properties from SourceFile that are used in multiple utility functions\n */\n export interface SourceFileLike {\n readonly text: string;\n lineMap?: ReadonlyArray;\n /* @internal */\n getPositionOfLineAndCharacter?(line: number, character: number, allowEdits?: true): number;\n }\n\n /* @internal */\n export interface RedirectInfo {\n /** Source file this redirects to. */\n readonly redirectTarget: SourceFile;\n /**\n * Source file for the duplicate package. This will not be used by the Program,\n * but we need to keep this around so we can watch for changes in underlying.\n */\n readonly unredirected: SourceFile;\n }\n\n // Source files are declarations when they are external modules.\n export interface SourceFile {\n someProp: string;\n }\n}interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -1426,7 +1428,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 4880 + "size": 4854 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -1566,7 +1568,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -1581,7 +1583,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(8, 2) Source(30, 2) + SourceIndex(0) --- @@ -1592,8 +1594,8 @@ sourceFile:../../../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -1611,8 +1613,8 @@ sourceFile:../../../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -1626,7 +1628,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -1641,7 +1643,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(12, 2) Source(36, 2) + SourceIndex(0) --- @@ -1657,8 +1659,8 @@ sourceFile:../../../first/first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(13, 1) Source(1, 1) + SourceIndex(1) 2 >Emitted(13, 18) Source(1, 10) + SourceIndex(1) @@ -1686,8 +1688,8 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(15, 2) Source(3, 2) + SourceIndex(2) --- @@ -1696,8 +1698,8 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -1710,12 +1712,12 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(17, 2) Source(11, 2) + SourceIndex(2) --- @@ -1738,7 +1740,7 @@ sourceFile:../../../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(19, 5) Source(2, 5) + SourceIndex(3) @@ -1747,9 +1749,9 @@ sourceFile:../../../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(20, 2) Source(5, 2) + SourceIndex(3) --- @@ -1854,10 +1856,10 @@ sourceFile:../../../first/first_PART1.ts > export interface SourceFile { > someProp: string; > } - >}interface TheFirst { - > none: any; - >} - > + >}interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -1881,12 +1883,12 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -1958,7 +1960,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -1972,7 +1974,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) @@ -1988,19 +1990,19 @@ sourceFile:../../../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(7, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(7, 5) Source(5, 11) + SourceIndex(3) @@ -2024,7 +2026,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -2041,7 +2043,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -2063,7 +2065,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(11, 5) Source(8, 5) + SourceIndex(3) @@ -2075,8 +2077,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -2095,19 +2097,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(13, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(13, 2) Source(11, 2) + SourceIndex(3) @@ -2137,10 +2139,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(16, 5) Source(5, 1) + SourceIndex(4) @@ -2167,7 +2169,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -2189,7 +2191,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(19, 5) Source(4, 5) + SourceIndex(4) @@ -2198,7 +2200,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(20, 5) Source(5, 1) + SourceIndex(4) @@ -2213,10 +2215,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(21, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(21, 2) Source(5, 2) + SourceIndex(4) @@ -2261,7 +2263,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -2278,7 +2280,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":104,"kind":"text"}]},{"pos":104,"end":374,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":104,"end":374,"kind":"text"}]},{"pos":374,"end":408,"kind":"text"}],"mapHash":"29106911449-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AA+BA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACrCf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"24400447170-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":233,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":233,"kind":"text"}]},{"pos":233,"end":326,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":233,"end":326,"kind":"text"}]},{"pos":326,"end":344,"kind":"text"}],"mapHash":"21930574719-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,EAAE,CAAC;IAwBT,UAAiB,UAAU;QACvB,QAAQ,EAAE,MAAM,CAAC;KACpB;CACJ;AAAA,UAAU,QAAQ;IACf,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACnCD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-8017838658-declare namespace ts {\n interface SourceFile {\n someProp: string;\n }\n}\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-22356627540-declare namespace ts {\n interface SourceFileLike {\n readonly text: string;\n lineMap?: ReadonlyArray;\n getPositionOfLineAndCharacter?(line: number, character: number, allowEdits?: true): number;\n }\n interface RedirectInfo {\n readonly redirectTarget: SourceFile;\n readonly unredirected: SourceFile;\n }\n interface SourceFile {\n someProp: string;\n }\n}\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"6047894916-declare namespace ts {\n interface SourceFile {\n someProp: string;\n }\n}\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":104,"kind":"text"}]},{"pos":104,"end":374,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":104,"end":374,"kind":"text"}]},{"pos":374,"end":408,"kind":"text"}],"mapHash":"29106911449-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AA+BA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACrCf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"24400447170-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":233,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":233,"kind":"text"}]},{"pos":233,"end":326,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":233,"end":326,"kind":"text"}]},{"pos":326,"end":344,"kind":"text"}],"mapHash":"21930574719-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,EAAE,CAAC;IAwBT,UAAiB,UAAU;QACvB,QAAQ,EAAE,MAAM,CAAC;KACpB;CACJ;AAAA,UAAU,QAAQ;IACf,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACnCD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-8017838658-declare namespace ts {\n interface SourceFile {\n someProp: string;\n }\n}\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-22356627540-declare namespace ts {\n interface SourceFileLike {\n readonly text: string;\n lineMap?: ReadonlyArray;\n getPositionOfLineAndCharacter?(line: number, character: number, allowEdits?: true): number;\n }\n interface RedirectInfo {\n readonly redirectTarget: SourceFile;\n readonly unredirected: SourceFile;\n }\n interface SourceFile {\n someProp: string;\n }\n}\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"6047894916-declare namespace ts {\n interface SourceFile {\n someProp: string;\n }\n}\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -2451,7 +2453,7 @@ declare var c: C; "../../../../lib/lib.d.ts": "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; };", "../../../first/bin/first-output.d.ts": "-22356627540-declare namespace ts {\n interface SourceFileLike {\n readonly text: string;\n lineMap?: ReadonlyArray;\n getPositionOfLineAndCharacter?(line: number, character: number, allowEdits?: true): number;\n }\n interface RedirectInfo {\n readonly redirectTarget: SourceFile;\n readonly unredirected: SourceFile;\n }\n interface SourceFile {\n someProp: string;\n }\n}\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -2475,6 +2477,6 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 5172 + "size": 5167 } diff --git a/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js b/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js index 599cd6a52e13b..7a7877a278892 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js @@ -16,62 +16,61 @@ interface ReadonlyArray {} declare const console: { log(msg: any): void; }; //// [/src/first/first_PART1.ts] -/**@internal*/ interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +/**@internal*/ interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); //// [/src/first/first_part2.ts] -console.log(f()); +console.log(f()); //// [/src/first/first_part3.ts] -function f() { - return "JS does hoists"; -} +function f() { + return "JS does hoists"; +} + //// [/src/first/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "outFile": "./bin/first-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "first_PART1.ts", - "first_part2.ts", - "first_part3.ts" - ], - "references": [ - ] +{ + "compilerOptions": { + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "outFile": "./bin/first-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "first_PART1.ts", + "first_part2.ts", + "first_part3.ts" + ], + "references": [] } - //// [/src/second/second_part1.ts] -namespace N { - // Comment text -} - -namespace N { - function f() { - console.log('testing'); - } - - f(); -} +namespace N { + // Comment text +} + +namespace N { + function f() { + console.log('testing'); + } + + f(); +} class normalC { /**@internal*/ constructor() { } @@ -100,83 +99,83 @@ namespace normalN { /**@internal*/ enum internalEnum { a, b, c } //// [/src/second/second_part2.ts] -class C { - doSomething() { - console.log("something got done"); - } -} +class C { + doSomething() { + console.log("something got done"); + } +} //// [/src/second/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "../2/second-output.js", - "skipDefaultLibCheck": true - }, +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "../2/second-output.js", + "skipDefaultLibCheck": true + }, "references": [ - { "path": "../first", "prepend": true } - ] + { "path": "../first", "prepend": true } + ] } - //// [/src/third/third_part1.ts] -var c = new C(); -c.doSomething(); +var c = new C(); +c.doSomething(); //// [/src/third/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, "declaration": true, - "stripInternal": true, - "outFile": "./thirdjs/output/third-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "third_part1.ts" - ], - "references": [ - - { "path": "../second", "prepend": true }, - ] + "stripInternal": true, + "outFile": "./thirdjs/output/third-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "third_part1.ts" + ], + "references": [ + { + "path": "../second", + "prepend": true + } + ] } - Output:: /lib/tsc --b /src/third --verbose -[12:00:11 AM] Projects in this build: +[12:00:23 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:12 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist +[12:00:24 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist -[12:00:13 AM] Building project '/src/first/tsconfig.json'... +[12:00:25 AM] Building project '/src/first/tsconfig.json'... -[12:00:23 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist +[12:00:35 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist -[12:00:24 AM] Building project '/src/second/tsconfig.json'... +[12:00:36 AM] Building project '/src/second/tsconfig.json'... -[12:00:34 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist +[12:00:46 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist -[12:00:35 AM] Building project '/src/third/tsconfig.json'... +[12:00:47 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -277,7 +276,7 @@ sourceFile:../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -292,7 +291,7 @@ sourceFile:../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -303,8 +302,8 @@ sourceFile:../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -322,8 +321,8 @@ sourceFile:../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -337,7 +336,7 @@ sourceFile:../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -352,7 +351,7 @@ sourceFile:../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -368,8 +367,8 @@ sourceFile:../first/first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) @@ -397,8 +396,8 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) --- @@ -407,8 +406,8 @@ sourceFile:../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -421,12 +420,12 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) --- @@ -434,7 +433,7 @@ sourceFile:../second/second_part1.ts 1-> 2 >^^^^^^^^^^^^^^ 3 > ^^^^^^^ -1-> +1-> > > 2 >class @@ -1038,7 +1037,7 @@ sourceFile:../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(61, 5) Source(2, 5) + SourceIndex(3) @@ -1047,9 +1046,9 @@ sourceFile:../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(62, 2) Source(5, 2) + SourceIndex(3) --- @@ -1187,10 +1186,10 @@ sourceFile:../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >/**@internal*/ interface TheFirst { - > none: any; - >} - > +1 >/**@internal*/ interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -1214,12 +1213,12 @@ sourceFile:../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -1291,7 +1290,7 @@ sourceFile:../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -1305,7 +1304,7 @@ sourceFile:../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) @@ -1321,19 +1320,19 @@ sourceFile:../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(7, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(7, 5) Source(5, 11) + SourceIndex(3) @@ -1357,7 +1356,7 @@ sourceFile:../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -1374,7 +1373,7 @@ sourceFile:../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -1396,7 +1395,7 @@ sourceFile:../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(11, 5) Source(8, 5) + SourceIndex(3) @@ -1408,8 +1407,8 @@ sourceFile:../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -1428,19 +1427,19 @@ sourceFile:../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^^^^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(13, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(13, 2) Source(11, 2) + SourceIndex(3) @@ -1453,7 +1452,7 @@ sourceFile:../second/second_part1.ts >>>var normalC = (function () { 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > > 1->Emitted(14, 1) Source(13, 1) + SourceIndex(3) @@ -2655,10 +2654,10 @@ sourceFile:../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(103, 5) Source(5, 1) + SourceIndex(4) @@ -2685,7 +2684,7 @@ sourceFile:../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -2707,7 +2706,7 @@ sourceFile:../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(106, 5) Source(4, 5) + SourceIndex(4) @@ -2716,7 +2715,7 @@ sourceFile:../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(107, 5) Source(5, 1) + SourceIndex(4) @@ -2731,10 +2730,10 @@ sourceFile:../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(108, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(108, 2) Source(5, 2) + SourceIndex(4) @@ -2744,7 +2743,7 @@ sourceFile:../second/second_part2.ts >>>//# sourceMappingURL=second-output.js.map //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"prepend","data":"../first/bin/first-output.js","texts":[{"pos":0,"end":104,"kind":"text"}]},{"pos":104,"end":3055,"kind":"text"}],"mapHash":"-4451840947-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part2.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACmB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACE;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACc;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-26297087767-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = (function () {\n function normalC() {\n }\n normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n get: function () { return 10; },\n set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n function foo() { }\n normalN.foo = foo;\n var someNamespace;\n (function (someNamespace) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n normalN.someImport = someNamespace.C;\n normalN.internalConst = 10;\n var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\nvar internalC = (function () {\n function internalC() {\n }\n return internalC;\n}());\nfunction internalfoo() { }\nvar internalNamespace;\n(function (internalNamespace) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\nvar internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\nvar internalImport = internalNamespace.someClass;\nvar internalConst = 10;\nvar internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../first/bin/first-output.d.ts","texts":[{"pos":0,"end":37,"kind":"internal"},{"pos":38,"end":149,"kind":"text"}]},{"pos":149,"end":221,"kind":"text"},{"pos":221,"end":322,"kind":"internal"},{"pos":323,"end":353,"kind":"text"},{"pos":353,"end":727,"kind":"internal"},{"pos":728,"end":730,"kind":"text"},{"pos":730,"end":1117,"kind":"internal"},{"pos":1118,"end":1163,"kind":"text"}],"mapHash":"35487435059-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAe,UAAU,QAAQ;IAC7B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEM,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACxC;AACD,kBAAU,OAAO,CAAC;IACC,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACtD;AACc,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,KAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC5C,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-42543550337-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../first/bin/first-output.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["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; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","5541258877-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n\nclass normalC {\n /**@internal*/ constructor() { }\n /**@internal*/ prop: string;\n /**@internal*/ method() { }\n /**@internal*/ get c() { return 10; }\n /**@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /**@internal*/ export class C { }\n /**@internal*/ export function foo() {}\n /**@internal*/ export namespace someNamespace { export class C {} }\n /**@internal*/ export namespace someOther.something { export class someClass {} }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ export type internalType = internalC;\n /**@internal*/ export const internalConst = 10;\n /**@internal*/ export enum internalEnum { a, b, c }\n}\n/**@internal*/ class internalC {}\n/**@internal*/ function internalfoo() {}\n/**@internal*/ namespace internalNamespace { export class someClass {} }\n/**@internal*/ namespace internalOther.something { export class someClass {} }\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ const internalConst = 10;\n/**@internal*/ enum internalEnum { a, b, c }","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"root":[3,4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-33280928732-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"prepend","data":"../first/bin/first-output.js","texts":[{"pos":0,"end":104,"kind":"text"}]},{"pos":104,"end":3055,"kind":"text"}],"mapHash":"-4451840947-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part2.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACmB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACE;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACc;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-26297087767-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = (function () {\n function normalC() {\n }\n normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n get: function () { return 10; },\n set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n function foo() { }\n normalN.foo = foo;\n var someNamespace;\n (function (someNamespace) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n normalN.someImport = someNamespace.C;\n normalN.internalConst = 10;\n var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\nvar internalC = (function () {\n function internalC() {\n }\n return internalC;\n}());\nfunction internalfoo() { }\nvar internalNamespace;\n(function (internalNamespace) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\nvar internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\nvar internalImport = internalNamespace.someClass;\nvar internalConst = 10;\nvar internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../first/bin/first-output.d.ts","texts":[{"pos":0,"end":37,"kind":"internal"},{"pos":38,"end":149,"kind":"text"}]},{"pos":149,"end":221,"kind":"text"},{"pos":221,"end":322,"kind":"internal"},{"pos":323,"end":353,"kind":"text"},{"pos":353,"end":727,"kind":"internal"},{"pos":728,"end":730,"kind":"text"},{"pos":730,"end":1117,"kind":"internal"},{"pos":1118,"end":1163,"kind":"text"}],"mapHash":"35487435059-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAe,UAAU,QAAQ;IAC7B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEM,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACxC;AACD,kBAAU,OAAO,CAAC;IACC,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACtD;AACc,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,KAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC5C,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-42543550337-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../first/bin/first-output.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["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; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","20074181486-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n\nclass normalC {\n /**@internal*/ constructor() { }\n /**@internal*/ prop: string;\n /**@internal*/ method() { }\n /**@internal*/ get c() { return 10; }\n /**@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /**@internal*/ export class C { }\n /**@internal*/ export function foo() {}\n /**@internal*/ export namespace someNamespace { export class C {} }\n /**@internal*/ export namespace someOther.something { export class someClass {} }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ export type internalType = internalC;\n /**@internal*/ export const internalConst = 10;\n /**@internal*/ export enum internalEnum { a, b, c }\n}\n/**@internal*/ class internalC {}\n/**@internal*/ function internalfoo() {}\n/**@internal*/ namespace internalNamespace { export class someClass {} }\n/**@internal*/ namespace internalOther.something { export class someClass {} }\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ const internalConst = 10;\n/**@internal*/ enum internalEnum { a, b, c }","3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n"],"root":[3,4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-33280928732-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -3059,8 +3058,8 @@ declare class C { "fileInfos": { "../../lib/lib.d.ts": "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; };", "../first/bin/first-output.d.ts": "-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", - "../second/second_part1.ts": "5541258877-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n\nclass normalC {\n /**@internal*/ constructor() { }\n /**@internal*/ prop: string;\n /**@internal*/ method() { }\n /**@internal*/ get c() { return 10; }\n /**@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /**@internal*/ export class C { }\n /**@internal*/ export function foo() {}\n /**@internal*/ export namespace someNamespace { export class C {} }\n /**@internal*/ export namespace someOther.something { export class someClass {} }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ export type internalType = internalC;\n /**@internal*/ export const internalConst = 10;\n /**@internal*/ export enum internalEnum { a, b, c }\n}\n/**@internal*/ class internalC {}\n/**@internal*/ function internalfoo() {}\n/**@internal*/ namespace internalNamespace { export class someClass {} }\n/**@internal*/ namespace internalOther.something { export class someClass {} }\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ const internalConst = 10;\n/**@internal*/ enum internalEnum { a, b, c }", - "../second/second_part2.ts": "9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n" + "../second/second_part1.ts": "20074181486-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n\nclass normalC {\n /**@internal*/ constructor() { }\n /**@internal*/ prop: string;\n /**@internal*/ method() { }\n /**@internal*/ get c() { return 10; }\n /**@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /**@internal*/ export class C { }\n /**@internal*/ export function foo() {}\n /**@internal*/ export namespace someNamespace { export class C {} }\n /**@internal*/ export namespace someOther.something { export class someClass {} }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ export type internalType = internalC;\n /**@internal*/ export const internalConst = 10;\n /**@internal*/ export enum internalEnum { a, b, c }\n}\n/**@internal*/ class internalC {}\n/**@internal*/ function internalfoo() {}\n/**@internal*/ namespace internalNamespace { export class someClass {} }\n/**@internal*/ namespace internalOther.something { export class someClass {} }\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ const internalConst = 10;\n/**@internal*/ enum internalEnum { a, b, c }", + "../second/second_part2.ts": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n" }, "root": [ [ @@ -3087,7 +3086,7 @@ declare class C { "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 12642 + "size": 12611 } //// [/src/first/bin/first-output.d.ts] @@ -3132,7 +3131,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -3147,7 +3146,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -3158,8 +3157,8 @@ sourceFile:../first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -3177,8 +3176,8 @@ sourceFile:../first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -3192,7 +3191,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -3207,7 +3206,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -3224,8 +3223,8 @@ sourceFile:../first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) @@ -3264,10 +3263,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >/**@internal*/ interface TheFirst { - > none: any; - >} - > +1 >/**@internal*/ interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -3291,12 +3290,12 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -3368,7 +3367,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -3382,7 +3381,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) @@ -3391,7 +3390,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"4999315210-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":37,"kind":"internal"},{"pos":38,"end":149,"kind":"text"}],"mapHash":"26534310144-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAe,UAAU,QAAQ;IAC7B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-28083977866-/**@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"4999315210-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":37,"kind":"internal"},{"pos":38,"end":149,"kind":"text"}],"mapHash":"26534310144-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAe,UAAU,QAAQ;IAC7B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-2065248729-/**@internal*/ interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -3469,9 +3468,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "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; };", - "../first_part1.ts": "-28083977866-/**@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-2065248729-/**@internal*/ interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -3500,7 +3499,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2689 + "size": 2662 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -3544,10 +3543,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1 >/**@internal*/ interface TheFirst { - > none: any; - >} - > +1 >/**@internal*/ interface TheFirst { + > none: any; + >} + > > 2 > 3 > const @@ -3565,8 +3564,8 @@ sourceFile:../../../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -3580,7 +3579,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -3595,7 +3594,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(4, 2) Source(9, 2) + SourceIndex(0) --- @@ -3611,8 +3610,8 @@ sourceFile:../../../first/first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) 2 >Emitted(5, 18) Source(1, 10) + SourceIndex(1) @@ -3640,8 +3639,8 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) --- @@ -3650,8 +3649,8 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -3664,12 +3663,12 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(9, 2) Source(11, 2) + SourceIndex(2) --- @@ -3677,7 +3676,7 @@ sourceFile:../../../second/second_part1.ts 1-> 2 >^^^^^^^^^^^^^^ 3 > ^^^^^^^ -1-> +1-> > > 2 >class @@ -3747,7 +3746,7 @@ sourceFile:../../../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(15, 5) Source(2, 5) + SourceIndex(3) @@ -3756,9 +3755,9 @@ sourceFile:../../../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(16, 2) Source(5, 2) + SourceIndex(3) --- @@ -3923,10 +3922,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >/**@internal*/ interface TheFirst { - > none: any; - >} - > +1 >/**@internal*/ interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -3950,12 +3949,12 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -4027,7 +4026,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -4041,7 +4040,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) @@ -4057,19 +4056,19 @@ sourceFile:../../../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(7, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(7, 5) Source(5, 11) + SourceIndex(3) @@ -4093,7 +4092,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -4110,7 +4109,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -4132,7 +4131,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(11, 5) Source(8, 5) + SourceIndex(3) @@ -4144,8 +4143,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -4164,19 +4163,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^^^^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(13, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(13, 2) Source(11, 2) + SourceIndex(3) @@ -4189,7 +4188,7 @@ sourceFile:../../../second/second_part1.ts >>>var normalC = (function () { 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > > 1->Emitted(14, 1) Source(13, 1) + SourceIndex(3) @@ -5391,10 +5390,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(103, 5) Source(5, 1) + SourceIndex(4) @@ -5421,7 +5420,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -5443,7 +5442,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(106, 5) Source(4, 5) + SourceIndex(4) @@ -5452,7 +5451,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(107, 5) Source(5, 1) + SourceIndex(4) @@ -5467,10 +5466,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(108, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(108, 2) Source(5, 2) + SourceIndex(4) @@ -5515,7 +5514,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -5532,7 +5531,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":3055,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":0,"end":3055,"kind":"text"}]},{"pos":3055,"end":3089,"kind":"text"}],"mapHash":"89706277518-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACmB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACE;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACc;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-35670541412-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = (function () {\n function normalC() {\n }\n normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n get: function () { return 10; },\n set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n function foo() { }\n normalN.foo = foo;\n var someNamespace;\n (function (someNamespace) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n normalN.someImport = someNamespace.C;\n normalN.internalConst = 10;\n var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\nvar internalC = (function () {\n function internalC() {\n }\n return internalC;\n}());\nfunction internalfoo() { }\nvar internalNamespace;\n(function (internalNamespace) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\nvar internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\nvar internalImport = internalNamespace.someClass;\nvar internalConst = 10;\nvar internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":260,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":0,"end":260,"kind":"text"}]},{"pos":260,"end":278,"kind":"text"}],"mapHash":"16014976674-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-51018023562-declare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-33280928732-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"-46239946948-declare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":3055,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":0,"end":3055,"kind":"text"}]},{"pos":3055,"end":3089,"kind":"text"}],"mapHash":"89706277518-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACmB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACE;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACc;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-35670541412-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = (function () {\n function normalC() {\n }\n normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n get: function () { return 10; },\n set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n function foo() { }\n normalN.foo = foo;\n var someNamespace;\n (function (someNamespace) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n normalN.someImport = someNamespace.C;\n normalN.internalConst = 10;\n var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\nvar internalC = (function () {\n function internalC() {\n }\n return internalC;\n}());\nfunction internalfoo() { }\nvar internalNamespace;\n(function (internalNamespace) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\nvar internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\nvar internalImport = internalNamespace.someClass;\nvar internalConst = 10;\nvar internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":260,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":0,"end":260,"kind":"text"}]},{"pos":260,"end":278,"kind":"text"}],"mapHash":"16014976674-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-51018023562-declare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-33280928732-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"-46239946948-declare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -5750,7 +5749,7 @@ declare var c: C; "fileInfos": { "../../../../lib/lib.d.ts": "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; };", "../../../2/second-output.d.ts": "-33280928732-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -5774,7 +5773,7 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 9617 + "size": 9612 } @@ -5782,39 +5781,39 @@ declare var c: C; Change:: incremental-declaration-doesnt-change Input:: //// [/src/first/first_PART1.ts] -/**@internal*/ interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +/**@internal*/ interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:00:53 AM] Projects in this build: +[12:01:05 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:54 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:01:06 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:00:55 AM] Building project '/src/first/tsconfig.json'... +[12:01:07 AM] Building project '/src/first/tsconfig.json'... -[12:01:03 AM] Project 'src/second/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:01:15 AM] Project 'src/second/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:01:04 AM] Updating output of project '/src/second/tsconfig.json'... +[12:01:16 AM] Updating output of project '/src/second/tsconfig.json'... -[12:01:11 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/second' has changed +[12:01:23 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/second' has changed -[12:01:12 AM] Updating output of project '/src/third/tsconfig.json'... +[12:01:24 AM] Updating output of project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -5952,10 +5951,10 @@ sourceFile:../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >/**@internal*/ interface TheFirst { - > none: any; - >} - > +1 >/**@internal*/ interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -5978,12 +5977,12 @@ sourceFile:../first/first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -6011,7 +6010,7 @@ sourceFile:../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > +1 > > 2 >console 3 > . @@ -6083,7 +6082,7 @@ sourceFile:../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -6097,7 +6096,7 @@ sourceFile:../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) @@ -6113,19 +6112,19 @@ sourceFile:../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(8, 5) Source(5, 11) + SourceIndex(3) @@ -6149,7 +6148,7 @@ sourceFile:../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -6166,7 +6165,7 @@ sourceFile:../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -6188,7 +6187,7 @@ sourceFile:../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(12, 5) Source(8, 5) + SourceIndex(3) @@ -6200,8 +6199,8 @@ sourceFile:../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -6220,19 +6219,19 @@ sourceFile:../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^^^^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(14, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(14, 2) Source(11, 2) + SourceIndex(3) @@ -6245,7 +6244,7 @@ sourceFile:../second/second_part1.ts >>>var normalC = (function () { 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > > 1->Emitted(15, 1) Source(13, 1) + SourceIndex(3) @@ -7447,10 +7446,10 @@ sourceFile:../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(104, 5) Source(5, 1) + SourceIndex(4) @@ -7477,7 +7476,7 @@ sourceFile:../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -7499,7 +7498,7 @@ sourceFile:../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(107, 5) Source(4, 5) + SourceIndex(4) @@ -7508,7 +7507,7 @@ sourceFile:../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(108, 5) Source(5, 1) + SourceIndex(4) @@ -7523,10 +7522,10 @@ sourceFile:../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(109, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(109, 2) Source(5, 2) + SourceIndex(4) @@ -7536,7 +7535,7 @@ sourceFile:../second/second_part2.ts >>>//# sourceMappingURL=second-output.js.map //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":120,"kind":"prepend","data":"../first/bin/first-output.js","texts":[{"pos":0,"end":120,"kind":"text"}]},{"pos":120,"end":3071,"kind":"text"}],"mapHash":"3227826561-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part2.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACmB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACE;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACc;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-5973792363-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = (function () {\n function normalC() {\n }\n normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n get: function () { return 10; },\n set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n function foo() { }\n normalN.foo = foo;\n var someNamespace;\n (function (someNamespace) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n normalN.someImport = someNamespace.C;\n normalN.internalConst = 10;\n var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\nvar internalC = (function () {\n function internalC() {\n }\n return internalC;\n}());\nfunction internalfoo() { }\nvar internalNamespace;\n(function (internalNamespace) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\nvar internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\nvar internalImport = internalNamespace.someClass;\nvar internalConst = 10;\nvar internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../first/bin/first-output.d.ts","texts":[{"pos":0,"end":37,"kind":"internal"},{"pos":38,"end":149,"kind":"text"}]},{"pos":149,"end":221,"kind":"text"},{"pos":221,"end":322,"kind":"internal"},{"pos":323,"end":353,"kind":"text"},{"pos":353,"end":727,"kind":"internal"},{"pos":728,"end":730,"kind":"text"},{"pos":730,"end":1117,"kind":"internal"},{"pos":1118,"end":1163,"kind":"text"}],"mapHash":"35487435059-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAe,UAAU,QAAQ;IAC7B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEM,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACxC;AACD,kBAAU,OAAO,CAAC;IACC,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACtD;AACc,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,KAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC5C,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-42543550337-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../first/bin/first-output.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["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; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","5541258877-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n\nclass normalC {\n /**@internal*/ constructor() { }\n /**@internal*/ prop: string;\n /**@internal*/ method() { }\n /**@internal*/ get c() { return 10; }\n /**@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /**@internal*/ export class C { }\n /**@internal*/ export function foo() {}\n /**@internal*/ export namespace someNamespace { export class C {} }\n /**@internal*/ export namespace someOther.something { export class someClass {} }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ export type internalType = internalC;\n /**@internal*/ export const internalConst = 10;\n /**@internal*/ export enum internalEnum { a, b, c }\n}\n/**@internal*/ class internalC {}\n/**@internal*/ function internalfoo() {}\n/**@internal*/ namespace internalNamespace { export class someClass {} }\n/**@internal*/ namespace internalOther.something { export class someClass {} }\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ const internalConst = 10;\n/**@internal*/ enum internalEnum { a, b, c }","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"root":[3,4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-33280928732-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":120,"kind":"prepend","data":"../first/bin/first-output.js","texts":[{"pos":0,"end":120,"kind":"text"}]},{"pos":120,"end":3071,"kind":"text"}],"mapHash":"3227826561-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part2.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACmB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACE;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACc;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-5973792363-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = (function () {\n function normalC() {\n }\n normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n get: function () { return 10; },\n set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n function foo() { }\n normalN.foo = foo;\n var someNamespace;\n (function (someNamespace) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n normalN.someImport = someNamespace.C;\n normalN.internalConst = 10;\n var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\nvar internalC = (function () {\n function internalC() {\n }\n return internalC;\n}());\nfunction internalfoo() { }\nvar internalNamespace;\n(function (internalNamespace) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\nvar internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\nvar internalImport = internalNamespace.someClass;\nvar internalConst = 10;\nvar internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../first/bin/first-output.d.ts","texts":[{"pos":0,"end":37,"kind":"internal"},{"pos":38,"end":149,"kind":"text"}]},{"pos":149,"end":221,"kind":"text"},{"pos":221,"end":322,"kind":"internal"},{"pos":323,"end":353,"kind":"text"},{"pos":353,"end":727,"kind":"internal"},{"pos":728,"end":730,"kind":"text"},{"pos":730,"end":1117,"kind":"internal"},{"pos":1118,"end":1163,"kind":"text"}],"mapHash":"35487435059-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAe,UAAU,QAAQ;IAC7B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEM,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACxC;AACD,kBAAU,OAAO,CAAC;IACC,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACtD;AACc,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,KAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC5C,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-42543550337-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../first/bin/first-output.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["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; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","20074181486-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n\nclass normalC {\n /**@internal*/ constructor() { }\n /**@internal*/ prop: string;\n /**@internal*/ method() { }\n /**@internal*/ get c() { return 10; }\n /**@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /**@internal*/ export class C { }\n /**@internal*/ export function foo() {}\n /**@internal*/ export namespace someNamespace { export class C {} }\n /**@internal*/ export namespace someOther.something { export class someClass {} }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ export type internalType = internalC;\n /**@internal*/ export const internalConst = 10;\n /**@internal*/ export enum internalEnum { a, b, c }\n}\n/**@internal*/ class internalC {}\n/**@internal*/ function internalfoo() {}\n/**@internal*/ namespace internalNamespace { export class someClass {} }\n/**@internal*/ namespace internalOther.something { export class someClass {} }\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ const internalConst = 10;\n/**@internal*/ enum internalEnum { a, b, c }","3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n"],"root":[3,4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-33280928732-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -7852,8 +7851,8 @@ declare class C { "fileInfos": { "../../lib/lib.d.ts": "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; };", "../first/bin/first-output.d.ts": "-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", - "../second/second_part1.ts": "5541258877-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n\nclass normalC {\n /**@internal*/ constructor() { }\n /**@internal*/ prop: string;\n /**@internal*/ method() { }\n /**@internal*/ get c() { return 10; }\n /**@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /**@internal*/ export class C { }\n /**@internal*/ export function foo() {}\n /**@internal*/ export namespace someNamespace { export class C {} }\n /**@internal*/ export namespace someOther.something { export class someClass {} }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ export type internalType = internalC;\n /**@internal*/ export const internalConst = 10;\n /**@internal*/ export enum internalEnum { a, b, c }\n}\n/**@internal*/ class internalC {}\n/**@internal*/ function internalfoo() {}\n/**@internal*/ namespace internalNamespace { export class someClass {} }\n/**@internal*/ namespace internalOther.something { export class someClass {} }\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ const internalConst = 10;\n/**@internal*/ enum internalEnum { a, b, c }", - "../second/second_part2.ts": "9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n" + "../second/second_part1.ts": "20074181486-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n\nclass normalC {\n /**@internal*/ constructor() { }\n /**@internal*/ prop: string;\n /**@internal*/ method() { }\n /**@internal*/ get c() { return 10; }\n /**@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /**@internal*/ export class C { }\n /**@internal*/ export function foo() {}\n /**@internal*/ export namespace someNamespace { export class C {} }\n /**@internal*/ export namespace someOther.something { export class someClass {} }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ export type internalType = internalC;\n /**@internal*/ export const internalConst = 10;\n /**@internal*/ export enum internalEnum { a, b, c }\n}\n/**@internal*/ class internalC {}\n/**@internal*/ function internalfoo() {}\n/**@internal*/ namespace internalNamespace { export class someClass {} }\n/**@internal*/ namespace internalOther.something { export class someClass {} }\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ const internalConst = 10;\n/**@internal*/ enum internalEnum { a, b, c }", + "../second/second_part2.ts": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n" }, "root": [ [ @@ -7880,7 +7879,7 @@ declare class C { "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 12697 + "size": 12666 } //// [/src/first/bin/first-output.d.ts.map] file written with same contents @@ -7916,10 +7915,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >/**@internal*/ interface TheFirst { - > none: any; - >} - > +1 >/**@internal*/ interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -7942,12 +7941,12 @@ sourceFile:../first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -7975,7 +7974,7 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > +1 > > 2 >console 3 > . @@ -8047,7 +8046,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -8061,7 +8060,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) @@ -8070,7 +8069,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":120,"kind":"text"}],"mapHash":"-2702861355-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-20052626506-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":37,"kind":"internal"},{"pos":38,"end":149,"kind":"text"}],"mapHash":"26534310144-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAe,UAAU,QAAQ;IAC7B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-39212946152-/**@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":120,"kind":"text"}],"mapHash":"-2702861355-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-20052626506-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":37,"kind":"internal"},{"pos":38,"end":149,"kind":"text"}],"mapHash":"26534310144-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAe,UAAU,QAAQ;IAC7B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","248375721-/**@internal*/ interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -8149,9 +8148,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "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; };", - "../first_part1.ts": "-39212946152-/**@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "248375721-/**@internal*/ interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -8180,7 +8179,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2762 + "size": 2733 } //// [/src/third/thirdjs/output/third-output.js] @@ -8318,10 +8317,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >/**@internal*/ interface TheFirst { - > none: any; - >} - > +1 >/**@internal*/ interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -8344,12 +8343,12 @@ sourceFile:../../../first/first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -8377,7 +8376,7 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > +1 > > 2 >console 3 > . @@ -8449,7 +8448,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -8463,7 +8462,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) @@ -8479,19 +8478,19 @@ sourceFile:../../../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(8, 5) Source(5, 11) + SourceIndex(3) @@ -8515,7 +8514,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -8532,7 +8531,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -8554,7 +8553,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(12, 5) Source(8, 5) + SourceIndex(3) @@ -8566,8 +8565,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -8586,19 +8585,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^^^^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(14, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(14, 2) Source(11, 2) + SourceIndex(3) @@ -8611,7 +8610,7 @@ sourceFile:../../../second/second_part1.ts >>>var normalC = (function () { 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > > 1->Emitted(15, 1) Source(13, 1) + SourceIndex(3) @@ -9813,10 +9812,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(104, 5) Source(5, 1) + SourceIndex(4) @@ -9843,7 +9842,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -9865,7 +9864,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(107, 5) Source(4, 5) + SourceIndex(4) @@ -9874,7 +9873,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(108, 5) Source(5, 1) + SourceIndex(4) @@ -9889,10 +9888,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(109, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(109, 2) Source(5, 2) + SourceIndex(4) @@ -9937,7 +9936,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -9954,7 +9953,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":3071,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":0,"end":3071,"kind":"text"}]},{"pos":3071,"end":3105,"kind":"text"}],"mapHash":"111332820802-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACmB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACE;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACc;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-16026082872-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = (function () {\n function normalC() {\n }\n normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n get: function () { return 10; },\n set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n function foo() { }\n normalN.foo = foo;\n var someNamespace;\n (function (someNamespace) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n normalN.someImport = someNamespace.C;\n normalN.internalConst = 10;\n var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\nvar internalC = (function () {\n function internalC() {\n }\n return internalC;\n}());\nfunction internalfoo() { }\nvar internalNamespace;\n(function (internalNamespace) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\nvar internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\nvar internalImport = internalNamespace.someClass;\nvar internalConst = 10;\nvar internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":260,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":0,"end":260,"kind":"text"}]},{"pos":260,"end":278,"kind":"text"}],"mapHash":"16014976674-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-51018023562-declare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-33280928732-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"-46239946948-declare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":3071,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":0,"end":3071,"kind":"text"}]},{"pos":3071,"end":3105,"kind":"text"}],"mapHash":"111332820802-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACmB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACE;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACc;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-16026082872-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = (function () {\n function normalC() {\n }\n normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n get: function () { return 10; },\n set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n function foo() { }\n normalN.foo = foo;\n var someNamespace;\n (function (someNamespace) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n normalN.someImport = someNamespace.C;\n normalN.internalConst = 10;\n var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\nvar internalC = (function () {\n function internalC() {\n }\n return internalC;\n}());\nfunction internalfoo() { }\nvar internalNamespace;\n(function (internalNamespace) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\nvar internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\nvar internalImport = internalNamespace.someClass;\nvar internalConst = 10;\nvar internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":260,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":0,"end":260,"kind":"text"}]},{"pos":260,"end":278,"kind":"text"}],"mapHash":"16014976674-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-51018023562-declare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-33280928732-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"-46239946948-declare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -10173,7 +10172,7 @@ declare var c: C; "fileInfos": { "../../../../lib/lib.d.ts": "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; };", "../../../2/second-output.d.ts": "-33280928732-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -10197,7 +10196,7 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 9675 + "size": 9670 } @@ -10205,39 +10204,39 @@ declare var c: C; Change:: incremental-headers-change-without-dts-changes Input:: //// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:01:24 AM] Projects in this build: +[12:01:36 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:01:25 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:01:37 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:01:26 AM] Building project '/src/first/tsconfig.json'... +[12:01:38 AM] Building project '/src/first/tsconfig.json'... -[12:01:34 AM] Project 'src/second/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:01:46 AM] Project 'src/second/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:01:35 AM] Updating output of project '/src/second/tsconfig.json'... +[12:01:47 AM] Updating output of project '/src/second/tsconfig.json'... -[12:01:41 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/second' has changed +[12:01:53 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/second' has changed -[12:01:42 AM] Updating output of project '/src/third/tsconfig.json'... +[12:01:54 AM] Updating output of project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -10273,7 +10272,7 @@ sourceFile:../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -10288,7 +10287,7 @@ sourceFile:../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -10299,8 +10298,8 @@ sourceFile:../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -10318,8 +10317,8 @@ sourceFile:../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -10333,7 +10332,7 @@ sourceFile:../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -10348,7 +10347,7 @@ sourceFile:../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -10364,8 +10363,8 @@ sourceFile:../first/first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) @@ -10393,8 +10392,8 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) --- @@ -10403,8 +10402,8 @@ sourceFile:../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -10417,12 +10416,12 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) --- @@ -10430,7 +10429,7 @@ sourceFile:../second/second_part1.ts 1-> 2 >^^^^^^^^^^^^^^ 3 > ^^^^^^^ -1-> +1-> > > 2 >class @@ -11034,7 +11033,7 @@ sourceFile:../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(61, 5) Source(2, 5) + SourceIndex(3) @@ -11043,16 +11042,16 @@ sourceFile:../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(62, 2) Source(5, 2) + SourceIndex(3) --- >>>//# sourceMappingURL=second-output.d.ts.map //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":120,"kind":"prepend","data":"../first/bin/first-output.js","texts":[{"pos":0,"end":120,"kind":"text"}]},{"pos":120,"end":3071,"kind":"text"}],"mapHash":"3227826561-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part2.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACmB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACE;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACc;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-5973792363-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = (function () {\n function normalC() {\n }\n normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n get: function () { return 10; },\n set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n function foo() { }\n normalN.foo = foo;\n var someNamespace;\n (function (someNamespace) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n normalN.someImport = someNamespace.C;\n normalN.internalConst = 10;\n var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\nvar internalC = (function () {\n function internalC() {\n }\n return internalC;\n}());\nfunction internalfoo() { }\nvar internalNamespace;\n(function (internalNamespace) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\nvar internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\nvar internalImport = internalNamespace.someClass;\nvar internalConst = 10;\nvar internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../first/bin/first-output.d.ts","texts":[{"pos":0,"end":149,"kind":"text"}]},{"pos":149,"end":221,"kind":"text"},{"pos":221,"end":322,"kind":"internal"},{"pos":323,"end":353,"kind":"text"},{"pos":353,"end":727,"kind":"internal"},{"pos":728,"end":730,"kind":"text"},{"pos":730,"end":1117,"kind":"internal"},{"pos":1118,"end":1163,"kind":"text"}],"mapHash":"65800017434-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEM,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACxC;AACD,kBAAU,OAAO,CAAC;IACC,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACtD;AACc,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,KAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC5C,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-42543550337-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../first/bin/first-output.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["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; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","5541258877-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n\nclass normalC {\n /**@internal*/ constructor() { }\n /**@internal*/ prop: string;\n /**@internal*/ method() { }\n /**@internal*/ get c() { return 10; }\n /**@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /**@internal*/ export class C { }\n /**@internal*/ export function foo() {}\n /**@internal*/ export namespace someNamespace { export class C {} }\n /**@internal*/ export namespace someOther.something { export class someClass {} }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ export type internalType = internalC;\n /**@internal*/ export const internalConst = 10;\n /**@internal*/ export enum internalEnum { a, b, c }\n}\n/**@internal*/ class internalC {}\n/**@internal*/ function internalfoo() {}\n/**@internal*/ namespace internalNamespace { export class someClass {} }\n/**@internal*/ namespace internalOther.something { export class someClass {} }\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ const internalConst = 10;\n/**@internal*/ enum internalEnum { a, b, c }","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"root":[3,4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-33280928732-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":120,"kind":"prepend","data":"../first/bin/first-output.js","texts":[{"pos":0,"end":120,"kind":"text"}]},{"pos":120,"end":3071,"kind":"text"}],"mapHash":"3227826561-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part2.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACmB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACE;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACc;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-5973792363-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = (function () {\n function normalC() {\n }\n normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n get: function () { return 10; },\n set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n function foo() { }\n normalN.foo = foo;\n var someNamespace;\n (function (someNamespace) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n normalN.someImport = someNamespace.C;\n normalN.internalConst = 10;\n var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\nvar internalC = (function () {\n function internalC() {\n }\n return internalC;\n}());\nfunction internalfoo() { }\nvar internalNamespace;\n(function (internalNamespace) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\nvar internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\nvar internalImport = internalNamespace.someClass;\nvar internalConst = 10;\nvar internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../first/bin/first-output.d.ts","texts":[{"pos":0,"end":149,"kind":"text"}]},{"pos":149,"end":221,"kind":"text"},{"pos":221,"end":322,"kind":"internal"},{"pos":323,"end":353,"kind":"text"},{"pos":353,"end":727,"kind":"internal"},{"pos":728,"end":730,"kind":"text"},{"pos":730,"end":1117,"kind":"internal"},{"pos":1118,"end":1163,"kind":"text"}],"mapHash":"65800017434-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEM,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACxC;AACD,kBAAU,OAAO,CAAC;IACC,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACtD;AACc,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,KAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC5C,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-42543550337-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../first/bin/first-output.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["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; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","20074181486-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n\nclass normalC {\n /**@internal*/ constructor() { }\n /**@internal*/ prop: string;\n /**@internal*/ method() { }\n /**@internal*/ get c() { return 10; }\n /**@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /**@internal*/ export class C { }\n /**@internal*/ export function foo() {}\n /**@internal*/ export namespace someNamespace { export class C {} }\n /**@internal*/ export namespace someOther.something { export class someClass {} }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ export type internalType = internalC;\n /**@internal*/ export const internalConst = 10;\n /**@internal*/ export enum internalEnum { a, b, c }\n}\n/**@internal*/ class internalC {}\n/**@internal*/ function internalfoo() {}\n/**@internal*/ namespace internalNamespace { export class someClass {} }\n/**@internal*/ namespace internalOther.something { export class someClass {} }\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ const internalConst = 10;\n/**@internal*/ enum internalEnum { a, b, c }","3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n"],"root":[3,4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-33280928732-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -11361,8 +11360,8 @@ declare class C { "fileInfos": { "../../lib/lib.d.ts": "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; };", "../first/bin/first-output.d.ts": "-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", - "../second/second_part1.ts": "5541258877-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n\nclass normalC {\n /**@internal*/ constructor() { }\n /**@internal*/ prop: string;\n /**@internal*/ method() { }\n /**@internal*/ get c() { return 10; }\n /**@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /**@internal*/ export class C { }\n /**@internal*/ export function foo() {}\n /**@internal*/ export namespace someNamespace { export class C {} }\n /**@internal*/ export namespace someOther.something { export class someClass {} }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ export type internalType = internalC;\n /**@internal*/ export const internalConst = 10;\n /**@internal*/ export enum internalEnum { a, b, c }\n}\n/**@internal*/ class internalC {}\n/**@internal*/ function internalfoo() {}\n/**@internal*/ namespace internalNamespace { export class someClass {} }\n/**@internal*/ namespace internalOther.something { export class someClass {} }\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ const internalConst = 10;\n/**@internal*/ enum internalEnum { a, b, c }", - "../second/second_part2.ts": "9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n" + "../second/second_part1.ts": "20074181486-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n\nclass normalC {\n /**@internal*/ constructor() { }\n /**@internal*/ prop: string;\n /**@internal*/ method() { }\n /**@internal*/ get c() { return 10; }\n /**@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /**@internal*/ export class C { }\n /**@internal*/ export function foo() {}\n /**@internal*/ export namespace someNamespace { export class C {} }\n /**@internal*/ export namespace someOther.something { export class someClass {} }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ export type internalType = internalC;\n /**@internal*/ export const internalConst = 10;\n /**@internal*/ export enum internalEnum { a, b, c }\n}\n/**@internal*/ class internalC {}\n/**@internal*/ function internalfoo() {}\n/**@internal*/ namespace internalNamespace { export class someClass {} }\n/**@internal*/ namespace internalOther.something { export class someClass {} }\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ const internalConst = 10;\n/**@internal*/ enum internalEnum { a, b, c }", + "../second/second_part2.ts": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n" }, "root": [ [ @@ -11389,7 +11388,7 @@ declare class C { "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 12658 + "size": 12627 } //// [/src/first/bin/first-output.d.ts.map] @@ -11423,7 +11422,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -11438,7 +11437,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -11449,8 +11448,8 @@ sourceFile:../first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -11468,8 +11467,8 @@ sourceFile:../first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -11483,7 +11482,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -11498,7 +11497,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -11515,8 +11514,8 @@ sourceFile:../first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) @@ -11545,10 +11544,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -11571,12 +11570,12 @@ sourceFile:../first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -11604,7 +11603,7 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > +1 > > 2 >console 3 > . @@ -11676,7 +11675,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -11690,7 +11689,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) @@ -11699,7 +11698,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":120,"kind":"text"}],"mapHash":"-2702861355-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-20052626506-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-16950965473-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":120,"kind":"text"}],"mapHash":"-2702861355-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-20052626506-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-20304251376-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -11771,9 +11770,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "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; };", - "../first_part1.ts": "-16950965473-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-20304251376-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -11802,7 +11801,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2708 + "size": 2682 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -11859,7 +11858,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -11874,7 +11873,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -11885,8 +11884,8 @@ sourceFile:../../../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -11904,8 +11903,8 @@ sourceFile:../../../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -11919,7 +11918,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -11934,7 +11933,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -11950,8 +11949,8 @@ sourceFile:../../../first/first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) @@ -11979,8 +11978,8 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) --- @@ -11989,8 +11988,8 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -12003,12 +12002,12 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) --- @@ -12016,7 +12015,7 @@ sourceFile:../../../second/second_part1.ts 1-> 2 >^^^^^^^^^^^^^^ 3 > ^^^^^^^ -1-> +1-> > > 2 >class @@ -12086,7 +12085,7 @@ sourceFile:../../../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(18, 5) Source(2, 5) + SourceIndex(3) @@ -12095,9 +12094,9 @@ sourceFile:../../../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(19, 2) Source(5, 2) + SourceIndex(3) --- @@ -12129,7 +12128,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.d.ts.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":3071,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":0,"end":3071,"kind":"text"}]},{"pos":3071,"end":3105,"kind":"text"}],"mapHash":"111332820802-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACmB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACE;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACc;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-16026082872-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = (function () {\n function normalC() {\n }\n normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n get: function () { return 10; },\n set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n function foo() { }\n normalN.foo = foo;\n var someNamespace;\n (function (someNamespace) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n normalN.someImport = someNamespace.C;\n normalN.internalConst = 10;\n var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\nvar internalC = (function () {\n function internalC() {\n }\n return internalC;\n}());\nfunction internalfoo() { }\nvar internalNamespace;\n(function (internalNamespace) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\nvar internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\nvar internalImport = internalNamespace.someClass;\nvar internalConst = 10;\nvar internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":298,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":0,"end":298,"kind":"text"}]},{"pos":298,"end":316,"kind":"text"}],"mapHash":"-6546370592-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-3909930061-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-33280928732-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"5840619833-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":3071,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":0,"end":3071,"kind":"text"}]},{"pos":3071,"end":3105,"kind":"text"}],"mapHash":"111332820802-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACmB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACE;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACc;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-16026082872-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = (function () {\n function normalC() {\n }\n normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n get: function () { return 10; },\n set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n function foo() { }\n normalN.foo = foo;\n var someNamespace;\n (function (someNamespace) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n normalN.someImport = someNamespace.C;\n normalN.internalConst = 10;\n var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\nvar internalC = (function () {\n function internalC() {\n }\n return internalC;\n}());\nfunction internalfoo() { }\nvar internalNamespace;\n(function (internalNamespace) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\nvar internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\nvar internalImport = internalNamespace.someClass;\nvar internalConst = 10;\nvar internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":298,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":0,"end":298,"kind":"text"}]},{"pos":298,"end":316,"kind":"text"}],"mapHash":"-6546370592-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-3909930061-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-33280928732-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"5840619833-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -12351,7 +12350,7 @@ declare var c: C; "fileInfos": { "../../../../lib/lib.d.ts": "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; };", "../../../2/second-output.d.ts": "-33280928732-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -12375,6 +12374,6 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 9799 + "size": 9794 } diff --git a/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-jsdoc-style-comment.js b/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-jsdoc-style-comment.js index b52514d9d9e4a..ff1e6433577b6 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-jsdoc-style-comment.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-jsdoc-style-comment.js @@ -16,62 +16,61 @@ interface ReadonlyArray {} declare const console: { log(msg: any): void; }; //// [/src/first/first_PART1.ts] -/**@internal*/ interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +/**@internal*/ interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); //// [/src/first/first_part2.ts] -console.log(f()); +console.log(f()); //// [/src/first/first_part3.ts] -function f() { - return "JS does hoists"; -} +function f() { + return "JS does hoists"; +} + //// [/src/first/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "outFile": "./bin/first-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "first_PART1.ts", - "first_part2.ts", - "first_part3.ts" - ], - "references": [ - ] +{ + "compilerOptions": { + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "outFile": "./bin/first-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "first_PART1.ts", + "first_part2.ts", + "first_part3.ts" + ], + "references": [] } - //// [/src/second/second_part1.ts] -namespace N { - // Comment text -} - -namespace N { - function f() { - console.log('testing'); - } - - f(); -} +namespace N { + // Comment text +} + +namespace N { + function f() { + console.log('testing'); + } + + f(); +} class normalC { /**@internal*/ constructor() { } @@ -100,82 +99,85 @@ namespace normalN { /**@internal*/ enum internalEnum { a, b, c } //// [/src/second/second_part2.ts] -class C { - doSomething() { - console.log("something got done"); - } -} +class C { + doSomething() { + console.log("something got done"); + } +} //// [/src/second/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "../2/second-output.js", - "skipDefaultLibCheck": true - }, - "references": [ - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "../2/second-output.js", + "skipDefaultLibCheck": true + }, + "references": [] } - //// [/src/third/third_part1.ts] -var c = new C(); -c.doSomething(); +var c = new C(); +c.doSomething(); //// [/src/third/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, "declaration": true, - "stripInternal": true, - "outFile": "./thirdjs/output/third-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "third_part1.ts" - ], - "references": [ - { "path": "../first", "prepend": true }, - { "path": "../second", "prepend": true }, - ] + "stripInternal": true, + "outFile": "./thirdjs/output/third-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "third_part1.ts" + ], + "references": [ + { + "path": "../first", + "prepend": true + }, + { + "path": "../second", + "prepend": true + } + ] } - Output:: /lib/tsc --b /src/third --verbose -[12:00:09 AM] Projects in this build: +[12:00:21 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:10 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist +[12:00:22 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist -[12:00:11 AM] Building project '/src/first/tsconfig.json'... +[12:00:23 AM] Building project '/src/first/tsconfig.json'... -[12:00:21 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist +[12:00:33 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist -[12:00:22 AM] Building project '/src/second/tsconfig.json'... +[12:00:34 AM] Building project '/src/second/tsconfig.json'... -[12:00:32 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist +[12:00:44 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist -[12:00:33 AM] Building project '/src/third/tsconfig.json'... +[12:00:45 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -268,8 +270,8 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(2, 2) Source(3, 2) + SourceIndex(0) --- @@ -278,8 +280,8 @@ sourceFile:../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -292,12 +294,12 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(4, 2) Source(11, 2) + SourceIndex(0) --- @@ -305,7 +307,7 @@ sourceFile:../second/second_part1.ts 1-> 2 >^^^^^^^^^^^^^^ 3 > ^^^^^^^ -1-> +1-> > > 2 >class @@ -909,7 +911,7 @@ sourceFile:../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(53, 5) Source(2, 5) + SourceIndex(1) @@ -918,9 +920,9 @@ sourceFile:../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(54, 2) Source(5, 2) + SourceIndex(1) --- @@ -1051,19 +1053,19 @@ sourceFile:../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1 >namespace N { - > // Comment text - >} - > +1 >namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) 2 >Emitted(1, 5) Source(5, 11) + SourceIndex(0) @@ -1087,7 +1089,7 @@ sourceFile:../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -1104,7 +1106,7 @@ sourceFile:../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -1126,7 +1128,7 @@ sourceFile:../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(5, 5) Source(8, 5) + SourceIndex(0) @@ -1138,8 +1140,8 @@ sourceFile:../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -1158,19 +1160,19 @@ sourceFile:../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^^^^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(7, 1) Source(11, 1) + SourceIndex(0) 2 >Emitted(7, 2) Source(11, 2) + SourceIndex(0) @@ -1183,7 +1185,7 @@ sourceFile:../second/second_part1.ts >>>var normalC = (function () { 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > > 1->Emitted(8, 1) Source(13, 1) + SourceIndex(0) @@ -2385,10 +2387,10 @@ sourceFile:../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(97, 5) Source(5, 1) + SourceIndex(1) @@ -2415,7 +2417,7 @@ sourceFile:../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -2437,7 +2439,7 @@ sourceFile:../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(100, 5) Source(4, 5) + SourceIndex(1) @@ -2446,7 +2448,7 @@ sourceFile:../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(101, 5) Source(5, 1) + SourceIndex(1) @@ -2461,10 +2463,10 @@ sourceFile:../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(102, 1) Source(5, 1) + SourceIndex(1) 2 >Emitted(102, 2) Source(5, 2) + SourceIndex(1) @@ -2474,7 +2476,7 @@ sourceFile:../second/second_part2.ts >>>//# sourceMappingURL=second-output.js.map //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":2951,"kind":"text"}],"mapHash":"6253281662-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACmB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACE;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACc;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"211633331599-var N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = (function () {\n function normalC() {\n }\n normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n get: function () { return 10; },\n set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n function foo() { }\n normalN.foo = foo;\n var someNamespace;\n (function (someNamespace) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n normalN.someImport = someNamespace.C;\n normalN.internalConst = 10;\n var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\nvar internalC = (function () {\n function internalC() {\n }\n return internalC;\n}());\nfunction internalfoo() { }\nvar internalNamespace;\n(function (internalNamespace) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\nvar internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\nvar internalImport = internalNamespace.someClass;\nvar internalConst = 10;\nvar internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":72,"kind":"text"},{"pos":72,"end":173,"kind":"internal"},{"pos":174,"end":204,"kind":"text"},{"pos":204,"end":578,"kind":"internal"},{"pos":579,"end":581,"kind":"text"},{"pos":581,"end":968,"kind":"internal"},{"pos":969,"end":1014,"kind":"text"}],"mapHash":"119062312689-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEM,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACxC;AACD,kBAAU,OAAO,CAAC;IACC,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACtD;AACc,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,KAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC5C,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-21418946771-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["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; };","5541258877-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n\nclass normalC {\n /**@internal*/ constructor() { }\n /**@internal*/ prop: string;\n /**@internal*/ method() { }\n /**@internal*/ get c() { return 10; }\n /**@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /**@internal*/ export class C { }\n /**@internal*/ export function foo() {}\n /**@internal*/ export namespace someNamespace { export class C {} }\n /**@internal*/ export namespace someOther.something { export class someClass {} }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ export type internalType = internalC;\n /**@internal*/ export const internalConst = 10;\n /**@internal*/ export enum internalEnum { a, b, c }\n}\n/**@internal*/ class internalC {}\n/**@internal*/ function internalfoo() {}\n/**@internal*/ namespace internalNamespace { export class someClass {} }\n/**@internal*/ namespace internalOther.something { export class someClass {} }\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ const internalConst = 10;\n/**@internal*/ enum internalEnum { a, b, c }","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-18721653870-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":2951,"kind":"text"}],"mapHash":"6253281662-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACmB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACE;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACc;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"211633331599-var N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = (function () {\n function normalC() {\n }\n normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n get: function () { return 10; },\n set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n function foo() { }\n normalN.foo = foo;\n var someNamespace;\n (function (someNamespace) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n normalN.someImport = someNamespace.C;\n normalN.internalConst = 10;\n var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\nvar internalC = (function () {\n function internalC() {\n }\n return internalC;\n}());\nfunction internalfoo() { }\nvar internalNamespace;\n(function (internalNamespace) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\nvar internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\nvar internalImport = internalNamespace.someClass;\nvar internalConst = 10;\nvar internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":72,"kind":"text"},{"pos":72,"end":173,"kind":"internal"},{"pos":174,"end":204,"kind":"text"},{"pos":204,"end":578,"kind":"internal"},{"pos":579,"end":581,"kind":"text"},{"pos":581,"end":968,"kind":"internal"},{"pos":969,"end":1014,"kind":"text"}],"mapHash":"119062312689-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEM,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACxC;AACD,kBAAU,OAAO,CAAC;IACC,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACtD;AACc,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,KAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC5C,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-21418946771-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["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; };","20074181486-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n\nclass normalC {\n /**@internal*/ constructor() { }\n /**@internal*/ prop: string;\n /**@internal*/ method() { }\n /**@internal*/ get c() { return 10; }\n /**@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /**@internal*/ export class C { }\n /**@internal*/ export function foo() {}\n /**@internal*/ export namespace someNamespace { export class C {} }\n /**@internal*/ export namespace someOther.something { export class someClass {} }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ export type internalType = internalC;\n /**@internal*/ export const internalConst = 10;\n /**@internal*/ export enum internalEnum { a, b, c }\n}\n/**@internal*/ class internalC {}\n/**@internal*/ function internalfoo() {}\n/**@internal*/ namespace internalNamespace { export class someClass {} }\n/**@internal*/ namespace internalOther.something { export class someClass {} }\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ const internalConst = 10;\n/**@internal*/ enum internalEnum { a, b, c }","3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-18721653870-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -2730,8 +2732,8 @@ declare class C { ], "fileInfos": { "../../lib/lib.d.ts": "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; };", - "../second/second_part1.ts": "5541258877-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n\nclass normalC {\n /**@internal*/ constructor() { }\n /**@internal*/ prop: string;\n /**@internal*/ method() { }\n /**@internal*/ get c() { return 10; }\n /**@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /**@internal*/ export class C { }\n /**@internal*/ export function foo() {}\n /**@internal*/ export namespace someNamespace { export class C {} }\n /**@internal*/ export namespace someOther.something { export class someClass {} }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ export type internalType = internalC;\n /**@internal*/ export const internalConst = 10;\n /**@internal*/ export enum internalEnum { a, b, c }\n}\n/**@internal*/ class internalC {}\n/**@internal*/ function internalfoo() {}\n/**@internal*/ namespace internalNamespace { export class someClass {} }\n/**@internal*/ namespace internalOther.something { export class someClass {} }\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ const internalConst = 10;\n/**@internal*/ enum internalEnum { a, b, c }", - "../second/second_part2.ts": "9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n" + "../second/second_part1.ts": "20074181486-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n\nclass normalC {\n /**@internal*/ constructor() { }\n /**@internal*/ prop: string;\n /**@internal*/ method() { }\n /**@internal*/ get c() { return 10; }\n /**@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /**@internal*/ export class C { }\n /**@internal*/ export function foo() {}\n /**@internal*/ export namespace someNamespace { export class C {} }\n /**@internal*/ export namespace someOther.something { export class someClass {} }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ export type internalType = internalC;\n /**@internal*/ export const internalConst = 10;\n /**@internal*/ export enum internalEnum { a, b, c }\n}\n/**@internal*/ class internalC {}\n/**@internal*/ function internalfoo() {}\n/**@internal*/ namespace internalNamespace { export class someClass {} }\n/**@internal*/ namespace internalOther.something { export class someClass {} }\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ const internalConst = 10;\n/**@internal*/ enum internalEnum { a, b, c }", + "../second/second_part2.ts": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n" }, "root": [ [ @@ -2758,7 +2760,7 @@ declare class C { "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 11263 + "size": 11232 } //// [/src/first/bin/first-output.d.ts] @@ -2803,7 +2805,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -2818,7 +2820,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -2829,8 +2831,8 @@ sourceFile:../first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -2848,8 +2850,8 @@ sourceFile:../first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -2863,7 +2865,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -2878,7 +2880,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -2895,8 +2897,8 @@ sourceFile:../first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) @@ -2935,10 +2937,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >/**@internal*/ interface TheFirst { - > none: any; - >} - > +1 >/**@internal*/ interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -2962,12 +2964,12 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -3039,7 +3041,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -3053,7 +3055,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) @@ -3062,7 +3064,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"4999315210-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":37,"kind":"internal"},{"pos":38,"end":149,"kind":"text"}],"mapHash":"26534310144-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAe,UAAU,QAAQ;IAC7B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-28083977866-/**@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"4999315210-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":37,"kind":"internal"},{"pos":38,"end":149,"kind":"text"}],"mapHash":"26534310144-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAe,UAAU,QAAQ;IAC7B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-2065248729-/**@internal*/ interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -3140,9 +3142,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "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; };", - "../first_part1.ts": "-28083977866-/**@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-2065248729-/**@internal*/ interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -3171,7 +3173,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2689 + "size": 2662 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -3215,10 +3217,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1 >/**@internal*/ interface TheFirst { - > none: any; - >} - > +1 >/**@internal*/ interface TheFirst { + > none: any; + >} + > > 2 > 3 > const @@ -3236,8 +3238,8 @@ sourceFile:../../../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -3251,7 +3253,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -3266,7 +3268,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(4, 2) Source(9, 2) + SourceIndex(0) --- @@ -3282,8 +3284,8 @@ sourceFile:../../../first/first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) 2 >Emitted(5, 18) Source(1, 10) + SourceIndex(1) @@ -3311,8 +3313,8 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) --- @@ -3321,8 +3323,8 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -3335,12 +3337,12 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(9, 2) Source(11, 2) + SourceIndex(2) --- @@ -3348,7 +3350,7 @@ sourceFile:../../../second/second_part1.ts 1-> 2 >^^^^^^^^^^^^^^ 3 > ^^^^^^^ -1-> +1-> > > 2 >class @@ -3418,7 +3420,7 @@ sourceFile:../../../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(15, 5) Source(2, 5) + SourceIndex(3) @@ -3427,9 +3429,9 @@ sourceFile:../../../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(16, 2) Source(5, 2) + SourceIndex(3) --- @@ -3594,10 +3596,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >/**@internal*/ interface TheFirst { - > none: any; - >} - > +1 >/**@internal*/ interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -3621,12 +3623,12 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -3698,7 +3700,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -3712,7 +3714,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) @@ -3728,19 +3730,19 @@ sourceFile:../../../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(7, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(7, 5) Source(5, 11) + SourceIndex(3) @@ -3764,7 +3766,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -3781,7 +3783,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -3803,7 +3805,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(11, 5) Source(8, 5) + SourceIndex(3) @@ -3815,8 +3817,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -3835,19 +3837,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^^^^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(13, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(13, 2) Source(11, 2) + SourceIndex(3) @@ -3860,7 +3862,7 @@ sourceFile:../../../second/second_part1.ts >>>var normalC = (function () { 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > > 1->Emitted(14, 1) Source(13, 1) + SourceIndex(3) @@ -5062,10 +5064,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(103, 5) Source(5, 1) + SourceIndex(4) @@ -5092,7 +5094,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -5114,7 +5116,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(106, 5) Source(4, 5) + SourceIndex(4) @@ -5123,7 +5125,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(107, 5) Source(5, 1) + SourceIndex(4) @@ -5138,10 +5140,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(108, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(108, 2) Source(5, 2) + SourceIndex(4) @@ -5186,7 +5188,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -5203,7 +5205,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":104,"kind":"text"}]},{"pos":104,"end":3055,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":104,"end":3055,"kind":"text"}]},{"pos":3055,"end":3089,"kind":"text"}],"mapHash":"89706277518-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACmB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACE;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACc;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-35670541412-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = (function () {\n function normalC() {\n }\n normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n get: function () { return 10; },\n set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n function foo() { }\n normalN.foo = foo;\n var someNamespace;\n (function (someNamespace) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n normalN.someImport = someNamespace.C;\n normalN.internalConst = 10;\n var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\nvar internalC = (function () {\n function internalC() {\n }\n return internalC;\n}());\nfunction internalfoo() { }\nvar internalNamespace;\n(function (internalNamespace) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\nvar internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\nvar internalImport = internalNamespace.someClass;\nvar internalConst = 10;\nvar internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":111,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":111,"kind":"text"}]},{"pos":111,"end":260,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":111,"end":260,"kind":"text"}]},{"pos":260,"end":278,"kind":"text"}],"mapHash":"16014976674-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-51018023562-declare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-18721653870-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"-46239946948-declare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":104,"kind":"text"}]},{"pos":104,"end":3055,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":104,"end":3055,"kind":"text"}]},{"pos":3055,"end":3089,"kind":"text"}],"mapHash":"89706277518-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACmB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACE;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACc;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-35670541412-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = (function () {\n function normalC() {\n }\n normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n get: function () { return 10; },\n set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n function foo() { }\n normalN.foo = foo;\n var someNamespace;\n (function (someNamespace) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n normalN.someImport = someNamespace.C;\n normalN.internalConst = 10;\n var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\nvar internalC = (function () {\n function internalC() {\n }\n return internalC;\n}());\nfunction internalfoo() { }\nvar internalNamespace;\n(function (internalNamespace) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\nvar internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\nvar internalImport = internalNamespace.someClass;\nvar internalConst = 10;\nvar internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":111,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":111,"kind":"text"}]},{"pos":111,"end":260,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":111,"end":260,"kind":"text"}]},{"pos":260,"end":278,"kind":"text"}],"mapHash":"16014976674-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-51018023562-declare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-18721653870-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"-46239946948-declare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -5459,7 +5461,7 @@ declare var c: C; "../../../../lib/lib.d.ts": "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; };", "../../../first/bin/first-output.d.ts": "-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "-18721653870-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -5483,7 +5485,7 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 9932 + "size": 9927 } @@ -5491,37 +5493,37 @@ declare var c: C; Change:: incremental-declaration-doesnt-change Input:: //// [/src/first/first_PART1.ts] -/**@internal*/ interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +/**@internal*/ interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:00:51 AM] Projects in this build: +[12:01:03 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:52 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:01:04 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:00:53 AM] Building project '/src/first/tsconfig.json'... +[12:01:05 AM] Building project '/src/first/tsconfig.json'... -[12:01:01 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:01:13 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:02 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:01:14 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:01:03 AM] Updating output of project '/src/third/tsconfig.json'... +[12:01:15 AM] Updating output of project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -5559,10 +5561,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >/**@internal*/ interface TheFirst { - > none: any; - >} - > +1 >/**@internal*/ interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -5585,12 +5587,12 @@ sourceFile:../first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -5618,7 +5620,7 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > +1 > > 2 >console 3 > . @@ -5690,7 +5692,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -5704,7 +5706,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) @@ -5713,7 +5715,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":120,"kind":"text"}],"mapHash":"-2702861355-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-20052626506-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":37,"kind":"internal"},{"pos":38,"end":149,"kind":"text"}],"mapHash":"26534310144-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAe,UAAU,QAAQ;IAC7B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-39212946152-/**@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":120,"kind":"text"}],"mapHash":"-2702861355-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-20052626506-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":37,"kind":"internal"},{"pos":38,"end":149,"kind":"text"}],"mapHash":"26534310144-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAe,UAAU,QAAQ;IAC7B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","248375721-/**@internal*/ interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -5792,9 +5794,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "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; };", - "../first_part1.ts": "-39212946152-/**@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "248375721-/**@internal*/ interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -5823,7 +5825,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2762 + "size": 2733 } //// [/src/third/thirdjs/output/third-output.js] @@ -5961,10 +5963,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >/**@internal*/ interface TheFirst { - > none: any; - >} - > +1 >/**@internal*/ interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -5987,12 +5989,12 @@ sourceFile:../../../first/first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -6020,7 +6022,7 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > +1 > > 2 >console 3 > . @@ -6092,7 +6094,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -6106,7 +6108,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) @@ -6122,19 +6124,19 @@ sourceFile:../../../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(8, 5) Source(5, 11) + SourceIndex(3) @@ -6158,7 +6160,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -6175,7 +6177,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -6197,7 +6199,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(12, 5) Source(8, 5) + SourceIndex(3) @@ -6209,8 +6211,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -6229,19 +6231,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^^^^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(14, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(14, 2) Source(11, 2) + SourceIndex(3) @@ -6254,7 +6256,7 @@ sourceFile:../../../second/second_part1.ts >>>var normalC = (function () { 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > > 1->Emitted(15, 1) Source(13, 1) + SourceIndex(3) @@ -7456,10 +7458,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(104, 5) Source(5, 1) + SourceIndex(4) @@ -7486,7 +7488,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -7508,7 +7510,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(107, 5) Source(4, 5) + SourceIndex(4) @@ -7517,7 +7519,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(108, 5) Source(5, 1) + SourceIndex(4) @@ -7532,10 +7534,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(109, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(109, 2) Source(5, 2) + SourceIndex(4) @@ -7580,7 +7582,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -7597,7 +7599,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":120,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":120,"kind":"text"}]},{"pos":120,"end":3071,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":120,"end":3071,"kind":"text"}]},{"pos":3071,"end":3105,"kind":"text"}],"mapHash":"111332820802-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACmB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACE;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACc;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-16026082872-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = (function () {\n function normalC() {\n }\n normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n get: function () { return 10; },\n set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n function foo() { }\n normalN.foo = foo;\n var someNamespace;\n (function (someNamespace) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n normalN.someImport = someNamespace.C;\n normalN.internalConst = 10;\n var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\nvar internalC = (function () {\n function internalC() {\n }\n return internalC;\n}());\nfunction internalfoo() { }\nvar internalNamespace;\n(function (internalNamespace) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\nvar internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\nvar internalImport = internalNamespace.someClass;\nvar internalConst = 10;\nvar internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":111,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":111,"kind":"text"}]},{"pos":111,"end":260,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":111,"end":260,"kind":"text"}]},{"pos":260,"end":278,"kind":"text"}],"mapHash":"16014976674-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-51018023562-declare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-18721653870-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"-46239946948-declare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":120,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":120,"kind":"text"}]},{"pos":120,"end":3071,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":120,"end":3071,"kind":"text"}]},{"pos":3071,"end":3105,"kind":"text"}],"mapHash":"111332820802-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACmB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACE;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACc;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-16026082872-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = (function () {\n function normalC() {\n }\n normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n get: function () { return 10; },\n set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n function foo() { }\n normalN.foo = foo;\n var someNamespace;\n (function (someNamespace) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n normalN.someImport = someNamespace.C;\n normalN.internalConst = 10;\n var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\nvar internalC = (function () {\n function internalC() {\n }\n return internalC;\n}());\nfunction internalfoo() { }\nvar internalNamespace;\n(function (internalNamespace) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\nvar internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\nvar internalImport = internalNamespace.someClass;\nvar internalConst = 10;\nvar internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":111,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":111,"kind":"text"}]},{"pos":111,"end":260,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":111,"end":260,"kind":"text"}]},{"pos":260,"end":278,"kind":"text"}],"mapHash":"16014976674-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-51018023562-declare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-18721653870-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"-46239946948-declare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -7854,7 +7856,7 @@ declare var c: C; "../../../../lib/lib.d.ts": "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; };", "../../../first/bin/first-output.d.ts": "-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "-18721653870-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -7878,7 +7880,7 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 9990 + "size": 9985 } @@ -7886,37 +7888,37 @@ declare var c: C; Change:: incremental-headers-change-without-dts-changes Input:: //// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:01:14 AM] Projects in this build: +[12:01:26 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:01:15 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:01:27 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:01:16 AM] Building project '/src/first/tsconfig.json'... +[12:01:28 AM] Building project '/src/first/tsconfig.json'... -[12:01:24 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:01:36 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:25 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:01:37 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:01:26 AM] Updating output of project '/src/third/tsconfig.json'... +[12:01:38 AM] Updating output of project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -7952,7 +7954,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -7967,7 +7969,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -7978,8 +7980,8 @@ sourceFile:../first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -7997,8 +7999,8 @@ sourceFile:../first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -8012,7 +8014,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -8027,7 +8029,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -8044,8 +8046,8 @@ sourceFile:../first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) @@ -8074,10 +8076,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -8100,12 +8102,12 @@ sourceFile:../first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -8133,7 +8135,7 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > +1 > > 2 >console 3 > . @@ -8205,7 +8207,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -8219,7 +8221,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) @@ -8228,7 +8230,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":120,"kind":"text"}],"mapHash":"-2702861355-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-20052626506-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-16950965473-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":120,"kind":"text"}],"mapHash":"-2702861355-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-20052626506-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-20304251376-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -8300,9 +8302,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "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; };", - "../first_part1.ts": "-16950965473-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-20304251376-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -8331,7 +8333,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2708 + "size": 2682 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -8388,7 +8390,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -8403,7 +8405,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -8414,8 +8416,8 @@ sourceFile:../../../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -8433,8 +8435,8 @@ sourceFile:../../../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -8448,7 +8450,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -8463,7 +8465,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -8479,8 +8481,8 @@ sourceFile:../../../first/first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) @@ -8508,8 +8510,8 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) --- @@ -8518,8 +8520,8 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -8532,12 +8534,12 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) --- @@ -8545,7 +8547,7 @@ sourceFile:../../../second/second_part1.ts 1-> 2 >^^^^^^^^^^^^^^ 3 > ^^^^^^^ -1-> +1-> > > 2 >class @@ -8615,7 +8617,7 @@ sourceFile:../../../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(18, 5) Source(2, 5) + SourceIndex(3) @@ -8624,9 +8626,9 @@ sourceFile:../../../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(19, 2) Source(5, 2) + SourceIndex(3) --- @@ -8658,7 +8660,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.d.ts.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":120,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":120,"kind":"text"}]},{"pos":120,"end":3071,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":120,"end":3071,"kind":"text"}]},{"pos":3071,"end":3105,"kind":"text"}],"mapHash":"111332820802-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACmB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACE;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACc;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-16026082872-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = (function () {\n function normalC() {\n }\n normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n get: function () { return 10; },\n set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n function foo() { }\n normalN.foo = foo;\n var someNamespace;\n (function (someNamespace) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n normalN.someImport = someNamespace.C;\n normalN.internalConst = 10;\n var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\nvar internalC = (function () {\n function internalC() {\n }\n return internalC;\n}());\nfunction internalfoo() { }\nvar internalNamespace;\n(function (internalNamespace) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\nvar internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\nvar internalImport = internalNamespace.someClass;\nvar internalConst = 10;\nvar internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":149,"kind":"text"}]},{"pos":149,"end":298,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":149,"end":298,"kind":"text"}]},{"pos":298,"end":316,"kind":"text"}],"mapHash":"-6546370592-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-3909930061-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-18721653870-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"5840619833-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":120,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":120,"kind":"text"}]},{"pos":120,"end":3071,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":120,"end":3071,"kind":"text"}]},{"pos":3071,"end":3105,"kind":"text"}],"mapHash":"111332820802-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACmB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACE;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACc;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-16026082872-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = (function () {\n function normalC() {\n }\n normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n get: function () { return 10; },\n set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n function foo() { }\n normalN.foo = foo;\n var someNamespace;\n (function (someNamespace) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n normalN.someImport = someNamespace.C;\n normalN.internalConst = 10;\n var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\nvar internalC = (function () {\n function internalC() {\n }\n return internalC;\n}());\nfunction internalfoo() { }\nvar internalNamespace;\n(function (internalNamespace) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\nvar internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\nvar internalImport = internalNamespace.someClass;\nvar internalConst = 10;\nvar internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":149,"kind":"text"}]},{"pos":149,"end":298,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":149,"end":298,"kind":"text"}]},{"pos":298,"end":316,"kind":"text"}],"mapHash":"-6546370592-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-3909930061-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-18721653870-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"5840619833-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -8918,7 +8920,7 @@ declare var c: C; "../../../../lib/lib.d.ts": "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; };", "../../../first/bin/first-output.d.ts": "-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "-18721653870-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -8942,6 +8944,6 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 10114 + "size": 10109 } diff --git a/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-jsdoc-style-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js b/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-jsdoc-style-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js index 0eb11deb9b96a..8fdf242f35abb 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-jsdoc-style-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-jsdoc-style-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js @@ -16,62 +16,61 @@ interface ReadonlyArray {} declare const console: { log(msg: any): void; }; //// [/src/first/first_PART1.ts] -/**@internal*/ interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +/**@internal*/ interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); //// [/src/first/first_part2.ts] -console.log(f()); +console.log(f()); //// [/src/first/first_part3.ts] -function f() { - return "JS does hoists"; -} +function f() { + return "JS does hoists"; +} + //// [/src/first/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "composite": true, - "removeComments": false, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "outFile": "./bin/first-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "first_PART1.ts", - "first_part2.ts", - "first_part3.ts" - ], - "references": [ - ] +{ + "compilerOptions": { + "target": "es5", + "composite": true, + "removeComments": false, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "outFile": "./bin/first-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "first_PART1.ts", + "first_part2.ts", + "first_part3.ts" + ], + "references": [] } - //// [/src/second/second_part1.ts] -namespace N { - // Comment text -} - -namespace N { - function f() { - console.log('testing'); - } - - f(); -} +namespace N { + // Comment text +} + +namespace N { + function f() { + console.log('testing'); + } + + f(); +} class normalC { /**@internal*/ constructor() { } @@ -100,83 +99,83 @@ namespace normalN { /**@internal*/ enum internalEnum { a, b, c } //// [/src/second/second_part2.ts] -class C { - doSomething() { - console.log("something got done"); - } -} +class C { + doSomething() { + console.log("something got done"); + } +} //// [/src/second/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": false, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "../2/second-output.js", - "skipDefaultLibCheck": true - }, +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": false, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "../2/second-output.js", + "skipDefaultLibCheck": true + }, "references": [ - { "path": "../first", "prepend": true } - ] + { "path": "../first", "prepend": true } + ] } - //// [/src/third/third_part1.ts] -var c = new C(); -c.doSomething(); +var c = new C(); +c.doSomething(); //// [/src/third/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": false, - "strict": false, - "sourceMap": true, - "declarationMap": true, +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": false, + "strict": false, + "sourceMap": true, + "declarationMap": true, "declaration": true, - "stripInternal": true, - "outFile": "./thirdjs/output/third-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "third_part1.ts" - ], - "references": [ - - { "path": "../second", "prepend": true }, - ] + "stripInternal": true, + "outFile": "./thirdjs/output/third-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "third_part1.ts" + ], + "references": [ + { + "path": "../second", + "prepend": true + } + ] } - Output:: /lib/tsc --b /src/third --verbose -[12:00:14 AM] Projects in this build: +[12:00:26 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:15 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist +[12:00:27 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist -[12:00:16 AM] Building project '/src/first/tsconfig.json'... +[12:00:28 AM] Building project '/src/first/tsconfig.json'... -[12:00:26 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist +[12:00:38 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist -[12:00:27 AM] Building project '/src/second/tsconfig.json'... +[12:00:39 AM] Building project '/src/second/tsconfig.json'... -[12:00:37 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist +[12:00:49 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist -[12:00:38 AM] Building project '/src/third/tsconfig.json'... +[12:00:50 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -283,7 +282,7 @@ sourceFile:../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -298,7 +297,7 @@ sourceFile:../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -309,8 +308,8 @@ sourceFile:../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -328,8 +327,8 @@ sourceFile:../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -343,7 +342,7 @@ sourceFile:../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -358,7 +357,7 @@ sourceFile:../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -374,8 +373,8 @@ sourceFile:../first/first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) @@ -403,8 +402,8 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) --- @@ -413,8 +412,8 @@ sourceFile:../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -427,12 +426,12 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) --- @@ -441,7 +440,7 @@ sourceFile:../second/second_part1.ts 2 >^^^^^^^^^^^^^^ 3 > ^^^^^^^ 4 > ^^^^^^^^^^^^-> -1-> +1-> > > 2 >class @@ -1174,7 +1173,7 @@ sourceFile:../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(61, 5) Source(2, 5) + SourceIndex(3) @@ -1183,9 +1182,9 @@ sourceFile:../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(62, 2) Source(5, 2) + SourceIndex(3) --- @@ -1323,10 +1322,10 @@ sourceFile:../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >/**@internal*/ interface TheFirst { - > none: any; - >} - > +1 >/**@internal*/ interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -1350,12 +1349,12 @@ sourceFile:../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -1427,7 +1426,7 @@ sourceFile:../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -1441,7 +1440,7 @@ sourceFile:../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) @@ -1457,19 +1456,19 @@ sourceFile:../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(7, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(7, 5) Source(5, 11) + SourceIndex(3) @@ -1493,7 +1492,7 @@ sourceFile:../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -1510,7 +1509,7 @@ sourceFile:../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -1532,7 +1531,7 @@ sourceFile:../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(11, 5) Source(8, 5) + SourceIndex(3) @@ -1544,8 +1543,8 @@ sourceFile:../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -1564,19 +1563,19 @@ sourceFile:../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(13, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(13, 2) Source(11, 2) + SourceIndex(3) @@ -1589,7 +1588,7 @@ sourceFile:../second/second_part1.ts >>>var normalC = /** @class */ (function () { 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > > 1->Emitted(14, 1) Source(13, 1) + SourceIndex(3) @@ -2894,10 +2893,10 @@ sourceFile:../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(103, 5) Source(5, 1) + SourceIndex(4) @@ -2924,7 +2923,7 @@ sourceFile:../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -2946,7 +2945,7 @@ sourceFile:../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(106, 5) Source(4, 5) + SourceIndex(4) @@ -2955,7 +2954,7 @@ sourceFile:../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(107, 5) Source(5, 1) + SourceIndex(4) @@ -2970,10 +2969,10 @@ sourceFile:../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(108, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(108, 2) Source(5, 2) + SourceIndex(4) @@ -2983,7 +2982,7 @@ sourceFile:../second/second_part2.ts >>>//# sourceMappingURL=second-output.js.map //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"prepend","data":"../first/bin/first-output.js","texts":[{"pos":0,"end":104,"kind":"text"}]},{"pos":104,"end":3437,"kind":"text"}],"mapHash":"73103866863-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part2.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,cAAc,CAAC;IAAgB,CAAC;IAEhC,cAAc,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAApB,cAAc,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACrC,cAAc,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,cAAc,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IACjC,cAAc,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACvC,cAAc,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACnE,cAAc,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACjF,cAAc,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE1D,cAAc,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC/C,cAAc,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,cAAc,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AACjC,cAAc,CAAC,SAAS,WAAW,KAAI,CAAC;AACxC,cAAc,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACxE,cAAc,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC9E,cAAc,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEnE,cAAc,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACxC,cAAc,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"81210091323-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = /** @class */ (function () {\n /**@internal*/ function normalC() {\n }\n /**@internal*/ normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n /**@internal*/ get: function () { return 10; },\n /**@internal*/ set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n /**@internal*/ var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n /**@internal*/ function foo() { }\n normalN.foo = foo;\n /**@internal*/ var someNamespace;\n (function (someNamespace) {\n var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n /**@internal*/ var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n /**@internal*/ normalN.someImport = someNamespace.C;\n /**@internal*/ normalN.internalConst = 10;\n /**@internal*/ var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\n/**@internal*/ var internalC = /** @class */ (function () {\n function internalC() {\n }\n return internalC;\n}());\n/**@internal*/ function internalfoo() { }\n/**@internal*/ var internalNamespace;\n(function (internalNamespace) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\n/**@internal*/ var internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\n/**@internal*/ var internalImport = internalNamespace.someClass;\n/**@internal*/ var internalConst = 10;\n/**@internal*/ var internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = /** @class */ (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":164,"kind":"prepend","data":"../first/bin/first-output.d.ts","texts":[{"pos":0,"end":52,"kind":"internal"},{"pos":53,"end":164,"kind":"text"}]},{"pos":164,"end":236,"kind":"text"},{"pos":236,"end":412,"kind":"internal"},{"pos":413,"end":443,"kind":"text"},{"pos":443,"end":937,"kind":"internal"},{"pos":938,"end":940,"kind":"text"},{"pos":940,"end":1447,"kind":"internal"},{"pos":1448,"end":1493,"kind":"text"}],"mapHash":"62262842155-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,cAAc,CAAC,UAAU,QAAQ;IAC7B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;IACT,cAAc;IACd,cAAc,CAAC,IAAI,EAAE,MAAM,CAAC;IAC5B,cAAc,CAAC,MAAM;IACrB,cAAc,CAAC,IAAI,CAAC,IACM,MAAM,CADK;IACrC,cAAc,CAAC,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACxC;AACD,kBAAU,OAAO,CAAC;IACd,cAAc,CAAC,MAAa,CAAC;KAAI;IACjC,cAAc,CAAC,SAAgB,GAAG,SAAK;IACvC,cAAc,CAAC,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACnE,cAAc,CAAC,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IACjF,cAAc,CAAC,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC1D,cAAc,CAAC,KAAY,YAAY,GAAG,SAAS,CAAC;IACpD,cAAc,CAAQ,MAAM,aAAa,KAAK,CAAC;IAC/C,cAAc,CAAC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACtD;AACD,cAAc,CAAC,cAAM,SAAS;CAAG;AACjC,cAAc,CAAC,iBAAS,WAAW,SAAK;AACxC,cAAc,CAAC,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACxE,cAAc,CAAC,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC9E,cAAc,CAAC,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACnE,cAAc,CAAC,KAAK,YAAY,GAAG,SAAS,CAAC;AAC7C,cAAc,CAAC,QAAA,MAAM,aAAa,KAAK,CAAC;AACxC,cAAc,CAAC,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC5C,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-25727102683-/**@internal*/ interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n /**@internal*/ constructor();\n /**@internal*/ prop: string;\n /**@internal*/ method(): void;\n /**@internal*/ get c(): number;\n /**@internal*/ set c(val: number);\n}\ndeclare namespace normalN {\n /**@internal*/ class C {\n }\n /**@internal*/ function foo(): void;\n /**@internal*/ namespace someNamespace {\n class C {\n }\n }\n /**@internal*/ namespace someOther.something {\n class someClass {\n }\n }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ type internalType = internalC;\n /**@internal*/ const internalConst = 10;\n /**@internal*/ enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\n/**@internal*/ declare class internalC {\n}\n/**@internal*/ declare function internalfoo(): void;\n/**@internal*/ declare namespace internalNamespace {\n class someClass {\n }\n}\n/**@internal*/ declare namespace internalOther.something {\n class someClass {\n }\n}\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ declare const internalConst = 10;\n/**@internal*/ declare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../first/bin/first-output.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["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; };","21400511536-/**@internal*/ interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","5541258877-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n\nclass normalC {\n /**@internal*/ constructor() { }\n /**@internal*/ prop: string;\n /**@internal*/ method() { }\n /**@internal*/ get c() { return 10; }\n /**@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /**@internal*/ export class C { }\n /**@internal*/ export function foo() {}\n /**@internal*/ export namespace someNamespace { export class C {} }\n /**@internal*/ export namespace someOther.something { export class someClass {} }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ export type internalType = internalC;\n /**@internal*/ export const internalConst = 10;\n /**@internal*/ export enum internalEnum { a, b, c }\n}\n/**@internal*/ class internalC {}\n/**@internal*/ function internalfoo() {}\n/**@internal*/ namespace internalNamespace { export class someClass {} }\n/**@internal*/ namespace internalOther.something { export class someClass {} }\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ const internalConst = 10;\n/**@internal*/ enum internalEnum { a, b, c }","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"root":[3,4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":false,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-21352142710-/**@internal*/ interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n /**@internal*/ constructor();\n /**@internal*/ prop: string;\n /**@internal*/ method(): void;\n /**@internal*/ get c(): number;\n /**@internal*/ set c(val: number);\n}\ndeclare namespace normalN {\n /**@internal*/ class C {\n }\n /**@internal*/ function foo(): void;\n /**@internal*/ namespace someNamespace {\n class C {\n }\n }\n /**@internal*/ namespace someOther.something {\n class someClass {\n }\n }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ type internalType = internalC;\n /**@internal*/ const internalConst = 10;\n /**@internal*/ enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\n/**@internal*/ declare class internalC {\n}\n/**@internal*/ declare function internalfoo(): void;\n/**@internal*/ declare namespace internalNamespace {\n class someClass {\n }\n}\n/**@internal*/ declare namespace internalOther.something {\n class someClass {\n }\n}\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ declare const internalConst = 10;\n/**@internal*/ declare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"prepend","data":"../first/bin/first-output.js","texts":[{"pos":0,"end":104,"kind":"text"}]},{"pos":104,"end":3437,"kind":"text"}],"mapHash":"73103866863-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part2.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,cAAc,CAAC;IAAgB,CAAC;IAEhC,cAAc,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAApB,cAAc,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACrC,cAAc,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,cAAc,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IACjC,cAAc,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACvC,cAAc,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACnE,cAAc,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACjF,cAAc,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE1D,cAAc,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC/C,cAAc,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,cAAc,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AACjC,cAAc,CAAC,SAAS,WAAW,KAAI,CAAC;AACxC,cAAc,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACxE,cAAc,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC9E,cAAc,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEnE,cAAc,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACxC,cAAc,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"81210091323-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = /** @class */ (function () {\n /**@internal*/ function normalC() {\n }\n /**@internal*/ normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n /**@internal*/ get: function () { return 10; },\n /**@internal*/ set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n /**@internal*/ var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n /**@internal*/ function foo() { }\n normalN.foo = foo;\n /**@internal*/ var someNamespace;\n (function (someNamespace) {\n var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n /**@internal*/ var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n /**@internal*/ normalN.someImport = someNamespace.C;\n /**@internal*/ normalN.internalConst = 10;\n /**@internal*/ var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\n/**@internal*/ var internalC = /** @class */ (function () {\n function internalC() {\n }\n return internalC;\n}());\n/**@internal*/ function internalfoo() { }\n/**@internal*/ var internalNamespace;\n(function (internalNamespace) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\n/**@internal*/ var internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\n/**@internal*/ var internalImport = internalNamespace.someClass;\n/**@internal*/ var internalConst = 10;\n/**@internal*/ var internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = /** @class */ (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":164,"kind":"prepend","data":"../first/bin/first-output.d.ts","texts":[{"pos":0,"end":52,"kind":"internal"},{"pos":53,"end":164,"kind":"text"}]},{"pos":164,"end":236,"kind":"text"},{"pos":236,"end":412,"kind":"internal"},{"pos":413,"end":443,"kind":"text"},{"pos":443,"end":937,"kind":"internal"},{"pos":938,"end":940,"kind":"text"},{"pos":940,"end":1447,"kind":"internal"},{"pos":1448,"end":1493,"kind":"text"}],"mapHash":"62262842155-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,cAAc,CAAC,UAAU,QAAQ;IAC7B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;IACT,cAAc;IACd,cAAc,CAAC,IAAI,EAAE,MAAM,CAAC;IAC5B,cAAc,CAAC,MAAM;IACrB,cAAc,CAAC,IAAI,CAAC,IACM,MAAM,CADK;IACrC,cAAc,CAAC,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACxC;AACD,kBAAU,OAAO,CAAC;IACd,cAAc,CAAC,MAAa,CAAC;KAAI;IACjC,cAAc,CAAC,SAAgB,GAAG,SAAK;IACvC,cAAc,CAAC,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACnE,cAAc,CAAC,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IACjF,cAAc,CAAC,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC1D,cAAc,CAAC,KAAY,YAAY,GAAG,SAAS,CAAC;IACpD,cAAc,CAAQ,MAAM,aAAa,KAAK,CAAC;IAC/C,cAAc,CAAC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACtD;AACD,cAAc,CAAC,cAAM,SAAS;CAAG;AACjC,cAAc,CAAC,iBAAS,WAAW,SAAK;AACxC,cAAc,CAAC,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACxE,cAAc,CAAC,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC9E,cAAc,CAAC,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACnE,cAAc,CAAC,KAAK,YAAY,GAAG,SAAS,CAAC;AAC7C,cAAc,CAAC,QAAA,MAAM,aAAa,KAAK,CAAC;AACxC,cAAc,CAAC,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC5C,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-25727102683-/**@internal*/ interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n /**@internal*/ constructor();\n /**@internal*/ prop: string;\n /**@internal*/ method(): void;\n /**@internal*/ get c(): number;\n /**@internal*/ set c(val: number);\n}\ndeclare namespace normalN {\n /**@internal*/ class C {\n }\n /**@internal*/ function foo(): void;\n /**@internal*/ namespace someNamespace {\n class C {\n }\n }\n /**@internal*/ namespace someOther.something {\n class someClass {\n }\n }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ type internalType = internalC;\n /**@internal*/ const internalConst = 10;\n /**@internal*/ enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\n/**@internal*/ declare class internalC {\n}\n/**@internal*/ declare function internalfoo(): void;\n/**@internal*/ declare namespace internalNamespace {\n class someClass {\n }\n}\n/**@internal*/ declare namespace internalOther.something {\n class someClass {\n }\n}\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ declare const internalConst = 10;\n/**@internal*/ declare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../first/bin/first-output.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["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; };","21400511536-/**@internal*/ interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","20074181486-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n\nclass normalC {\n /**@internal*/ constructor() { }\n /**@internal*/ prop: string;\n /**@internal*/ method() { }\n /**@internal*/ get c() { return 10; }\n /**@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /**@internal*/ export class C { }\n /**@internal*/ export function foo() {}\n /**@internal*/ export namespace someNamespace { export class C {} }\n /**@internal*/ export namespace someOther.something { export class someClass {} }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ export type internalType = internalC;\n /**@internal*/ export const internalConst = 10;\n /**@internal*/ export enum internalEnum { a, b, c }\n}\n/**@internal*/ class internalC {}\n/**@internal*/ function internalfoo() {}\n/**@internal*/ namespace internalNamespace { export class someClass {} }\n/**@internal*/ namespace internalOther.something { export class someClass {} }\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ const internalConst = 10;\n/**@internal*/ enum internalEnum { a, b, c }","3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n"],"root":[3,4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":false,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-21352142710-/**@internal*/ interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n /**@internal*/ constructor();\n /**@internal*/ prop: string;\n /**@internal*/ method(): void;\n /**@internal*/ get c(): number;\n /**@internal*/ set c(val: number);\n}\ndeclare namespace normalN {\n /**@internal*/ class C {\n }\n /**@internal*/ function foo(): void;\n /**@internal*/ namespace someNamespace {\n class C {\n }\n }\n /**@internal*/ namespace someOther.something {\n class someClass {\n }\n }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ type internalType = internalC;\n /**@internal*/ const internalConst = 10;\n /**@internal*/ enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\n/**@internal*/ declare class internalC {\n}\n/**@internal*/ declare function internalfoo(): void;\n/**@internal*/ declare namespace internalNamespace {\n class someClass {\n }\n}\n/**@internal*/ declare namespace internalOther.something {\n class someClass {\n }\n}\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ declare const internalConst = 10;\n/**@internal*/ declare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -3298,8 +3297,8 @@ declare class C { "fileInfos": { "../../lib/lib.d.ts": "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; };", "../first/bin/first-output.d.ts": "21400511536-/**@internal*/ interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", - "../second/second_part1.ts": "5541258877-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n\nclass normalC {\n /**@internal*/ constructor() { }\n /**@internal*/ prop: string;\n /**@internal*/ method() { }\n /**@internal*/ get c() { return 10; }\n /**@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /**@internal*/ export class C { }\n /**@internal*/ export function foo() {}\n /**@internal*/ export namespace someNamespace { export class C {} }\n /**@internal*/ export namespace someOther.something { export class someClass {} }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ export type internalType = internalC;\n /**@internal*/ export const internalConst = 10;\n /**@internal*/ export enum internalEnum { a, b, c }\n}\n/**@internal*/ class internalC {}\n/**@internal*/ function internalfoo() {}\n/**@internal*/ namespace internalNamespace { export class someClass {} }\n/**@internal*/ namespace internalOther.something { export class someClass {} }\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ const internalConst = 10;\n/**@internal*/ enum internalEnum { a, b, c }", - "../second/second_part2.ts": "9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n" + "../second/second_part1.ts": "20074181486-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n\nclass normalC {\n /**@internal*/ constructor() { }\n /**@internal*/ prop: string;\n /**@internal*/ method() { }\n /**@internal*/ get c() { return 10; }\n /**@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /**@internal*/ export class C { }\n /**@internal*/ export function foo() {}\n /**@internal*/ export namespace someNamespace { export class C {} }\n /**@internal*/ export namespace someOther.something { export class someClass {} }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ export type internalType = internalC;\n /**@internal*/ export const internalConst = 10;\n /**@internal*/ export enum internalEnum { a, b, c }\n}\n/**@internal*/ class internalC {}\n/**@internal*/ function internalfoo() {}\n/**@internal*/ namespace internalNamespace { export class someClass {} }\n/**@internal*/ namespace internalOther.something { export class someClass {} }\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ const internalConst = 10;\n/**@internal*/ enum internalEnum { a, b, c }", + "../second/second_part2.ts": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n" }, "root": [ [ @@ -3326,7 +3325,7 @@ declare class C { "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 14099 + "size": 14068 } //// [/src/first/bin/first-output.d.ts] @@ -3377,7 +3376,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -3392,7 +3391,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -3403,8 +3402,8 @@ sourceFile:../first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -3422,8 +3421,8 @@ sourceFile:../first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -3437,7 +3436,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -3452,7 +3451,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -3469,8 +3468,8 @@ sourceFile:../first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) @@ -3509,10 +3508,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >/**@internal*/ interface TheFirst { - > none: any; - >} - > +1 >/**@internal*/ interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -3536,12 +3535,12 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -3613,7 +3612,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -3627,7 +3626,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) @@ -3636,7 +3635,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"4999315210-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":52,"kind":"internal"},{"pos":53,"end":164,"kind":"text"}],"mapHash":"32981141636-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,cAAc,CAAC,UAAU,QAAQ;IAC7B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"23779352887-/**@internal*/ interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-28083977866-/**@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":false,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"21400511536-/**@internal*/ interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"4999315210-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":52,"kind":"internal"},{"pos":53,"end":164,"kind":"text"}],"mapHash":"32981141636-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,cAAc,CAAC,UAAU,QAAQ;IAC7B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"23779352887-/**@internal*/ interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-2065248729-/**@internal*/ interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":false,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"21400511536-/**@internal*/ interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -3714,9 +3713,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "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; };", - "../first_part1.ts": "-28083977866-/**@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-2065248729-/**@internal*/ interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -3745,7 +3744,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2728 + "size": 2701 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -3789,10 +3788,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1 >/**@internal*/ interface TheFirst { - > none: any; - >} - > +1 >/**@internal*/ interface TheFirst { + > none: any; + >} + > > 2 > 3 > const @@ -3810,8 +3809,8 @@ sourceFile:../../../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -3825,7 +3824,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -3840,7 +3839,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(4, 2) Source(9, 2) + SourceIndex(0) --- @@ -3856,8 +3855,8 @@ sourceFile:../../../first/first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) 2 >Emitted(5, 18) Source(1, 10) + SourceIndex(1) @@ -3885,8 +3884,8 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) --- @@ -3895,8 +3894,8 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -3909,12 +3908,12 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(9, 2) Source(11, 2) + SourceIndex(2) --- @@ -3922,7 +3921,7 @@ sourceFile:../../../second/second_part1.ts 1-> 2 >^^^^^^^^^^^^^^ 3 > ^^^^^^^ -1-> +1-> > > 2 >class @@ -3992,7 +3991,7 @@ sourceFile:../../../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(15, 5) Source(2, 5) + SourceIndex(3) @@ -4001,9 +4000,9 @@ sourceFile:../../../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(16, 2) Source(5, 2) + SourceIndex(3) --- @@ -4168,10 +4167,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >/**@internal*/ interface TheFirst { - > none: any; - >} - > +1 >/**@internal*/ interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -4195,12 +4194,12 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -4272,7 +4271,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -4286,7 +4285,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) @@ -4302,19 +4301,19 @@ sourceFile:../../../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(7, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(7, 5) Source(5, 11) + SourceIndex(3) @@ -4338,7 +4337,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -4355,7 +4354,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -4377,7 +4376,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(11, 5) Source(8, 5) + SourceIndex(3) @@ -4389,8 +4388,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -4409,19 +4408,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(13, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(13, 2) Source(11, 2) + SourceIndex(3) @@ -4434,7 +4433,7 @@ sourceFile:../../../second/second_part1.ts >>>var normalC = /** @class */ (function () { 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > > 1->Emitted(14, 1) Source(13, 1) + SourceIndex(3) @@ -5739,10 +5738,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(103, 5) Source(5, 1) + SourceIndex(4) @@ -5769,7 +5768,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -5791,7 +5790,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(106, 5) Source(4, 5) + SourceIndex(4) @@ -5800,7 +5799,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(107, 5) Source(5, 1) + SourceIndex(4) @@ -5815,10 +5814,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(108, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(108, 2) Source(5, 2) + SourceIndex(4) @@ -5863,7 +5862,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -5880,7 +5879,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":3437,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":0,"end":3437,"kind":"text"}]},{"pos":3437,"end":3471,"kind":"text"}],"mapHash":"-35203587856-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,cAAc,CAAC;IAAgB,CAAC;IAEhC,cAAc,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAApB,cAAc,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACrC,cAAc,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,cAAc,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IACjC,cAAc,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACvC,cAAc,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACnE,cAAc,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACjF,cAAc,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE1D,cAAc,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC/C,cAAc,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,cAAc,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AACjC,cAAc,CAAC,SAAS,WAAW,KAAI,CAAC;AACxC,cAAc,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACxE,cAAc,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC9E,cAAc,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEnE,cAAc,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACxC,cAAc,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"91870309422-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = /** @class */ (function () {\n /**@internal*/ function normalC() {\n }\n /**@internal*/ normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n /**@internal*/ get: function () { return 10; },\n /**@internal*/ set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n /**@internal*/ var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n /**@internal*/ function foo() { }\n normalN.foo = foo;\n /**@internal*/ var someNamespace;\n (function (someNamespace) {\n var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n /**@internal*/ var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n /**@internal*/ normalN.someImport = someNamespace.C;\n /**@internal*/ normalN.internalConst = 10;\n /**@internal*/ var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\n/**@internal*/ var internalC = /** @class */ (function () {\n function internalC() {\n }\n return internalC;\n}());\n/**@internal*/ function internalfoo() { }\n/**@internal*/ var internalNamespace;\n(function (internalNamespace) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\n/**@internal*/ var internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\n/**@internal*/ var internalImport = internalNamespace.someClass;\n/**@internal*/ var internalConst = 10;\n/**@internal*/ var internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = /** @class */ (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":260,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":0,"end":260,"kind":"text"}]},{"pos":260,"end":278,"kind":"text"}],"mapHash":"16014976674-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-51018023562-declare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-21352142710-/**@internal*/ interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n /**@internal*/ constructor();\n /**@internal*/ prop: string;\n /**@internal*/ method(): void;\n /**@internal*/ get c(): number;\n /**@internal*/ set c(val: number);\n}\ndeclare namespace normalN {\n /**@internal*/ class C {\n }\n /**@internal*/ function foo(): void;\n /**@internal*/ namespace someNamespace {\n class C {\n }\n }\n /**@internal*/ namespace someOther.something {\n class someClass {\n }\n }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ type internalType = internalC;\n /**@internal*/ const internalConst = 10;\n /**@internal*/ enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\n/**@internal*/ declare class internalC {\n}\n/**@internal*/ declare function internalfoo(): void;\n/**@internal*/ declare namespace internalNamespace {\n class someClass {\n }\n}\n/**@internal*/ declare namespace internalOther.something {\n class someClass {\n }\n}\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ declare const internalConst = 10;\n/**@internal*/ declare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":false,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"-46239946948-declare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":3437,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":0,"end":3437,"kind":"text"}]},{"pos":3437,"end":3471,"kind":"text"}],"mapHash":"-35203587856-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,cAAc,CAAC;IAAgB,CAAC;IAEhC,cAAc,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAApB,cAAc,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACrC,cAAc,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,cAAc,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IACjC,cAAc,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACvC,cAAc,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACnE,cAAc,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACjF,cAAc,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE1D,cAAc,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC/C,cAAc,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,cAAc,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AACjC,cAAc,CAAC,SAAS,WAAW,KAAI,CAAC;AACxC,cAAc,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACxE,cAAc,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC9E,cAAc,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEnE,cAAc,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACxC,cAAc,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"91870309422-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = /** @class */ (function () {\n /**@internal*/ function normalC() {\n }\n /**@internal*/ normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n /**@internal*/ get: function () { return 10; },\n /**@internal*/ set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n /**@internal*/ var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n /**@internal*/ function foo() { }\n normalN.foo = foo;\n /**@internal*/ var someNamespace;\n (function (someNamespace) {\n var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n /**@internal*/ var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n /**@internal*/ normalN.someImport = someNamespace.C;\n /**@internal*/ normalN.internalConst = 10;\n /**@internal*/ var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\n/**@internal*/ var internalC = /** @class */ (function () {\n function internalC() {\n }\n return internalC;\n}());\n/**@internal*/ function internalfoo() { }\n/**@internal*/ var internalNamespace;\n(function (internalNamespace) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\n/**@internal*/ var internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\n/**@internal*/ var internalImport = internalNamespace.someClass;\n/**@internal*/ var internalConst = 10;\n/**@internal*/ var internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = /** @class */ (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":260,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":0,"end":260,"kind":"text"}]},{"pos":260,"end":278,"kind":"text"}],"mapHash":"16014976674-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-51018023562-declare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-21352142710-/**@internal*/ interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n /**@internal*/ constructor();\n /**@internal*/ prop: string;\n /**@internal*/ method(): void;\n /**@internal*/ get c(): number;\n /**@internal*/ set c(val: number);\n}\ndeclare namespace normalN {\n /**@internal*/ class C {\n }\n /**@internal*/ function foo(): void;\n /**@internal*/ namespace someNamespace {\n class C {\n }\n }\n /**@internal*/ namespace someOther.something {\n class someClass {\n }\n }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ type internalType = internalC;\n /**@internal*/ const internalConst = 10;\n /**@internal*/ enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\n/**@internal*/ declare class internalC {\n}\n/**@internal*/ declare function internalfoo(): void;\n/**@internal*/ declare namespace internalNamespace {\n class someClass {\n }\n}\n/**@internal*/ declare namespace internalOther.something {\n class someClass {\n }\n}\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ declare const internalConst = 10;\n/**@internal*/ declare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":false,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"-46239946948-declare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -6098,7 +6097,7 @@ declare var c: C; "fileInfos": { "../../../../lib/lib.d.ts": "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; };", "../../../2/second-output.d.ts": "-21352142710-/**@internal*/ interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n /**@internal*/ constructor();\n /**@internal*/ prop: string;\n /**@internal*/ method(): void;\n /**@internal*/ get c(): number;\n /**@internal*/ set c(val: number);\n}\ndeclare namespace normalN {\n /**@internal*/ class C {\n }\n /**@internal*/ function foo(): void;\n /**@internal*/ namespace someNamespace {\n class C {\n }\n }\n /**@internal*/ namespace someOther.something {\n class someClass {\n }\n }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ type internalType = internalC;\n /**@internal*/ const internalConst = 10;\n /**@internal*/ enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\n/**@internal*/ declare class internalC {\n}\n/**@internal*/ declare function internalfoo(): void;\n/**@internal*/ declare namespace internalNamespace {\n class someClass {\n }\n}\n/**@internal*/ declare namespace internalOther.something {\n class someClass {\n }\n}\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ declare const internalConst = 10;\n/**@internal*/ declare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -6122,7 +6121,7 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 10510 + "size": 10505 } @@ -6130,39 +6129,39 @@ declare var c: C; Change:: incremental-declaration-doesnt-change Input:: //// [/src/first/first_PART1.ts] -/**@internal*/ interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +/**@internal*/ interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:00:56 AM] Projects in this build: +[12:01:08 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:57 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:01:09 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:00:58 AM] Building project '/src/first/tsconfig.json'... +[12:01:10 AM] Building project '/src/first/tsconfig.json'... -[12:01:06 AM] Project 'src/second/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:01:18 AM] Project 'src/second/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:01:07 AM] Updating output of project '/src/second/tsconfig.json'... +[12:01:19 AM] Updating output of project '/src/second/tsconfig.json'... -[12:01:14 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/second' has changed +[12:01:26 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/second' has changed -[12:01:15 AM] Updating output of project '/src/third/tsconfig.json'... +[12:01:27 AM] Updating output of project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -6300,10 +6299,10 @@ sourceFile:../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >/**@internal*/ interface TheFirst { - > none: any; - >} - > +1 >/**@internal*/ interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -6326,12 +6325,12 @@ sourceFile:../first/first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -6359,7 +6358,7 @@ sourceFile:../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > +1 > > 2 >console 3 > . @@ -6431,7 +6430,7 @@ sourceFile:../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -6445,7 +6444,7 @@ sourceFile:../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) @@ -6461,19 +6460,19 @@ sourceFile:../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(8, 5) Source(5, 11) + SourceIndex(3) @@ -6497,7 +6496,7 @@ sourceFile:../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -6514,7 +6513,7 @@ sourceFile:../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -6536,7 +6535,7 @@ sourceFile:../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(12, 5) Source(8, 5) + SourceIndex(3) @@ -6548,8 +6547,8 @@ sourceFile:../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -6568,19 +6567,19 @@ sourceFile:../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(14, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(14, 2) Source(11, 2) + SourceIndex(3) @@ -6593,7 +6592,7 @@ sourceFile:../second/second_part1.ts >>>var normalC = /** @class */ (function () { 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > > 1->Emitted(15, 1) Source(13, 1) + SourceIndex(3) @@ -7898,10 +7897,10 @@ sourceFile:../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(104, 5) Source(5, 1) + SourceIndex(4) @@ -7928,7 +7927,7 @@ sourceFile:../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -7950,7 +7949,7 @@ sourceFile:../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(107, 5) Source(4, 5) + SourceIndex(4) @@ -7959,7 +7958,7 @@ sourceFile:../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(108, 5) Source(5, 1) + SourceIndex(4) @@ -7974,10 +7973,10 @@ sourceFile:../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(109, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(109, 2) Source(5, 2) + SourceIndex(4) @@ -7987,7 +7986,7 @@ sourceFile:../second/second_part2.ts >>>//# sourceMappingURL=second-output.js.map //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":120,"kind":"prepend","data":"../first/bin/first-output.js","texts":[{"pos":0,"end":120,"kind":"text"}]},{"pos":120,"end":3453,"kind":"text"}],"mapHash":"-92108137693-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part2.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,cAAc,CAAC;IAAgB,CAAC;IAEhC,cAAc,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAApB,cAAc,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACrC,cAAc,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,cAAc,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IACjC,cAAc,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACvC,cAAc,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACnE,cAAc,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACjF,cAAc,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE1D,cAAc,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC/C,cAAc,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,cAAc,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AACjC,cAAc,CAAC,SAAS,WAAW,KAAI,CAAC;AACxC,cAAc,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACxE,cAAc,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC9E,cAAc,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEnE,cAAc,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACxC,cAAc,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"65642999015-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = /** @class */ (function () {\n /**@internal*/ function normalC() {\n }\n /**@internal*/ normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n /**@internal*/ get: function () { return 10; },\n /**@internal*/ set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n /**@internal*/ var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n /**@internal*/ function foo() { }\n normalN.foo = foo;\n /**@internal*/ var someNamespace;\n (function (someNamespace) {\n var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n /**@internal*/ var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n /**@internal*/ normalN.someImport = someNamespace.C;\n /**@internal*/ normalN.internalConst = 10;\n /**@internal*/ var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\n/**@internal*/ var internalC = /** @class */ (function () {\n function internalC() {\n }\n return internalC;\n}());\n/**@internal*/ function internalfoo() { }\n/**@internal*/ var internalNamespace;\n(function (internalNamespace) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\n/**@internal*/ var internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\n/**@internal*/ var internalImport = internalNamespace.someClass;\n/**@internal*/ var internalConst = 10;\n/**@internal*/ var internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = /** @class */ (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":164,"kind":"prepend","data":"../first/bin/first-output.d.ts","texts":[{"pos":0,"end":52,"kind":"internal"},{"pos":53,"end":164,"kind":"text"}]},{"pos":164,"end":236,"kind":"text"},{"pos":236,"end":412,"kind":"internal"},{"pos":413,"end":443,"kind":"text"},{"pos":443,"end":937,"kind":"internal"},{"pos":938,"end":940,"kind":"text"},{"pos":940,"end":1447,"kind":"internal"},{"pos":1448,"end":1493,"kind":"text"}],"mapHash":"62262842155-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,cAAc,CAAC,UAAU,QAAQ;IAC7B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;IACT,cAAc;IACd,cAAc,CAAC,IAAI,EAAE,MAAM,CAAC;IAC5B,cAAc,CAAC,MAAM;IACrB,cAAc,CAAC,IAAI,CAAC,IACM,MAAM,CADK;IACrC,cAAc,CAAC,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACxC;AACD,kBAAU,OAAO,CAAC;IACd,cAAc,CAAC,MAAa,CAAC;KAAI;IACjC,cAAc,CAAC,SAAgB,GAAG,SAAK;IACvC,cAAc,CAAC,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACnE,cAAc,CAAC,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IACjF,cAAc,CAAC,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC1D,cAAc,CAAC,KAAY,YAAY,GAAG,SAAS,CAAC;IACpD,cAAc,CAAQ,MAAM,aAAa,KAAK,CAAC;IAC/C,cAAc,CAAC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACtD;AACD,cAAc,CAAC,cAAM,SAAS;CAAG;AACjC,cAAc,CAAC,iBAAS,WAAW,SAAK;AACxC,cAAc,CAAC,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACxE,cAAc,CAAC,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC9E,cAAc,CAAC,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACnE,cAAc,CAAC,KAAK,YAAY,GAAG,SAAS,CAAC;AAC7C,cAAc,CAAC,QAAA,MAAM,aAAa,KAAK,CAAC;AACxC,cAAc,CAAC,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC5C,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-25727102683-/**@internal*/ interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n /**@internal*/ constructor();\n /**@internal*/ prop: string;\n /**@internal*/ method(): void;\n /**@internal*/ get c(): number;\n /**@internal*/ set c(val: number);\n}\ndeclare namespace normalN {\n /**@internal*/ class C {\n }\n /**@internal*/ function foo(): void;\n /**@internal*/ namespace someNamespace {\n class C {\n }\n }\n /**@internal*/ namespace someOther.something {\n class someClass {\n }\n }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ type internalType = internalC;\n /**@internal*/ const internalConst = 10;\n /**@internal*/ enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\n/**@internal*/ declare class internalC {\n}\n/**@internal*/ declare function internalfoo(): void;\n/**@internal*/ declare namespace internalNamespace {\n class someClass {\n }\n}\n/**@internal*/ declare namespace internalOther.something {\n class someClass {\n }\n}\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ declare const internalConst = 10;\n/**@internal*/ declare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../first/bin/first-output.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["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; };","21400511536-/**@internal*/ interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","5541258877-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n\nclass normalC {\n /**@internal*/ constructor() { }\n /**@internal*/ prop: string;\n /**@internal*/ method() { }\n /**@internal*/ get c() { return 10; }\n /**@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /**@internal*/ export class C { }\n /**@internal*/ export function foo() {}\n /**@internal*/ export namespace someNamespace { export class C {} }\n /**@internal*/ export namespace someOther.something { export class someClass {} }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ export type internalType = internalC;\n /**@internal*/ export const internalConst = 10;\n /**@internal*/ export enum internalEnum { a, b, c }\n}\n/**@internal*/ class internalC {}\n/**@internal*/ function internalfoo() {}\n/**@internal*/ namespace internalNamespace { export class someClass {} }\n/**@internal*/ namespace internalOther.something { export class someClass {} }\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ const internalConst = 10;\n/**@internal*/ enum internalEnum { a, b, c }","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"root":[3,4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":false,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-21352142710-/**@internal*/ interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n /**@internal*/ constructor();\n /**@internal*/ prop: string;\n /**@internal*/ method(): void;\n /**@internal*/ get c(): number;\n /**@internal*/ set c(val: number);\n}\ndeclare namespace normalN {\n /**@internal*/ class C {\n }\n /**@internal*/ function foo(): void;\n /**@internal*/ namespace someNamespace {\n class C {\n }\n }\n /**@internal*/ namespace someOther.something {\n class someClass {\n }\n }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ type internalType = internalC;\n /**@internal*/ const internalConst = 10;\n /**@internal*/ enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\n/**@internal*/ declare class internalC {\n}\n/**@internal*/ declare function internalfoo(): void;\n/**@internal*/ declare namespace internalNamespace {\n class someClass {\n }\n}\n/**@internal*/ declare namespace internalOther.something {\n class someClass {\n }\n}\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ declare const internalConst = 10;\n/**@internal*/ declare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":120,"kind":"prepend","data":"../first/bin/first-output.js","texts":[{"pos":0,"end":120,"kind":"text"}]},{"pos":120,"end":3453,"kind":"text"}],"mapHash":"-92108137693-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part2.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,cAAc,CAAC;IAAgB,CAAC;IAEhC,cAAc,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAApB,cAAc,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACrC,cAAc,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,cAAc,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IACjC,cAAc,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACvC,cAAc,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACnE,cAAc,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACjF,cAAc,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE1D,cAAc,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC/C,cAAc,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,cAAc,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AACjC,cAAc,CAAC,SAAS,WAAW,KAAI,CAAC;AACxC,cAAc,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACxE,cAAc,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC9E,cAAc,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEnE,cAAc,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACxC,cAAc,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"65642999015-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = /** @class */ (function () {\n /**@internal*/ function normalC() {\n }\n /**@internal*/ normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n /**@internal*/ get: function () { return 10; },\n /**@internal*/ set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n /**@internal*/ var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n /**@internal*/ function foo() { }\n normalN.foo = foo;\n /**@internal*/ var someNamespace;\n (function (someNamespace) {\n var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n /**@internal*/ var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n /**@internal*/ normalN.someImport = someNamespace.C;\n /**@internal*/ normalN.internalConst = 10;\n /**@internal*/ var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\n/**@internal*/ var internalC = /** @class */ (function () {\n function internalC() {\n }\n return internalC;\n}());\n/**@internal*/ function internalfoo() { }\n/**@internal*/ var internalNamespace;\n(function (internalNamespace) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\n/**@internal*/ var internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\n/**@internal*/ var internalImport = internalNamespace.someClass;\n/**@internal*/ var internalConst = 10;\n/**@internal*/ var internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = /** @class */ (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":164,"kind":"prepend","data":"../first/bin/first-output.d.ts","texts":[{"pos":0,"end":52,"kind":"internal"},{"pos":53,"end":164,"kind":"text"}]},{"pos":164,"end":236,"kind":"text"},{"pos":236,"end":412,"kind":"internal"},{"pos":413,"end":443,"kind":"text"},{"pos":443,"end":937,"kind":"internal"},{"pos":938,"end":940,"kind":"text"},{"pos":940,"end":1447,"kind":"internal"},{"pos":1448,"end":1493,"kind":"text"}],"mapHash":"62262842155-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,cAAc,CAAC,UAAU,QAAQ;IAC7B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;IACT,cAAc;IACd,cAAc,CAAC,IAAI,EAAE,MAAM,CAAC;IAC5B,cAAc,CAAC,MAAM;IACrB,cAAc,CAAC,IAAI,CAAC,IACM,MAAM,CADK;IACrC,cAAc,CAAC,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACxC;AACD,kBAAU,OAAO,CAAC;IACd,cAAc,CAAC,MAAa,CAAC;KAAI;IACjC,cAAc,CAAC,SAAgB,GAAG,SAAK;IACvC,cAAc,CAAC,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACnE,cAAc,CAAC,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IACjF,cAAc,CAAC,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC1D,cAAc,CAAC,KAAY,YAAY,GAAG,SAAS,CAAC;IACpD,cAAc,CAAQ,MAAM,aAAa,KAAK,CAAC;IAC/C,cAAc,CAAC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACtD;AACD,cAAc,CAAC,cAAM,SAAS;CAAG;AACjC,cAAc,CAAC,iBAAS,WAAW,SAAK;AACxC,cAAc,CAAC,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACxE,cAAc,CAAC,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC9E,cAAc,CAAC,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACnE,cAAc,CAAC,KAAK,YAAY,GAAG,SAAS,CAAC;AAC7C,cAAc,CAAC,QAAA,MAAM,aAAa,KAAK,CAAC;AACxC,cAAc,CAAC,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC5C,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-25727102683-/**@internal*/ interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n /**@internal*/ constructor();\n /**@internal*/ prop: string;\n /**@internal*/ method(): void;\n /**@internal*/ get c(): number;\n /**@internal*/ set c(val: number);\n}\ndeclare namespace normalN {\n /**@internal*/ class C {\n }\n /**@internal*/ function foo(): void;\n /**@internal*/ namespace someNamespace {\n class C {\n }\n }\n /**@internal*/ namespace someOther.something {\n class someClass {\n }\n }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ type internalType = internalC;\n /**@internal*/ const internalConst = 10;\n /**@internal*/ enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\n/**@internal*/ declare class internalC {\n}\n/**@internal*/ declare function internalfoo(): void;\n/**@internal*/ declare namespace internalNamespace {\n class someClass {\n }\n}\n/**@internal*/ declare namespace internalOther.something {\n class someClass {\n }\n}\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ declare const internalConst = 10;\n/**@internal*/ declare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../first/bin/first-output.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["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; };","21400511536-/**@internal*/ interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","20074181486-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n\nclass normalC {\n /**@internal*/ constructor() { }\n /**@internal*/ prop: string;\n /**@internal*/ method() { }\n /**@internal*/ get c() { return 10; }\n /**@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /**@internal*/ export class C { }\n /**@internal*/ export function foo() {}\n /**@internal*/ export namespace someNamespace { export class C {} }\n /**@internal*/ export namespace someOther.something { export class someClass {} }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ export type internalType = internalC;\n /**@internal*/ export const internalConst = 10;\n /**@internal*/ export enum internalEnum { a, b, c }\n}\n/**@internal*/ class internalC {}\n/**@internal*/ function internalfoo() {}\n/**@internal*/ namespace internalNamespace { export class someClass {} }\n/**@internal*/ namespace internalOther.something { export class someClass {} }\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ const internalConst = 10;\n/**@internal*/ enum internalEnum { a, b, c }","3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n"],"root":[3,4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":false,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-21352142710-/**@internal*/ interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n /**@internal*/ constructor();\n /**@internal*/ prop: string;\n /**@internal*/ method(): void;\n /**@internal*/ get c(): number;\n /**@internal*/ set c(val: number);\n}\ndeclare namespace normalN {\n /**@internal*/ class C {\n }\n /**@internal*/ function foo(): void;\n /**@internal*/ namespace someNamespace {\n class C {\n }\n }\n /**@internal*/ namespace someOther.something {\n class someClass {\n }\n }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ type internalType = internalC;\n /**@internal*/ const internalConst = 10;\n /**@internal*/ enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\n/**@internal*/ declare class internalC {\n}\n/**@internal*/ declare function internalfoo(): void;\n/**@internal*/ declare namespace internalNamespace {\n class someClass {\n }\n}\n/**@internal*/ declare namespace internalOther.something {\n class someClass {\n }\n}\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ declare const internalConst = 10;\n/**@internal*/ declare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -8303,8 +8302,8 @@ declare class C { "fileInfos": { "../../lib/lib.d.ts": "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; };", "../first/bin/first-output.d.ts": "21400511536-/**@internal*/ interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", - "../second/second_part1.ts": "5541258877-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n\nclass normalC {\n /**@internal*/ constructor() { }\n /**@internal*/ prop: string;\n /**@internal*/ method() { }\n /**@internal*/ get c() { return 10; }\n /**@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /**@internal*/ export class C { }\n /**@internal*/ export function foo() {}\n /**@internal*/ export namespace someNamespace { export class C {} }\n /**@internal*/ export namespace someOther.something { export class someClass {} }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ export type internalType = internalC;\n /**@internal*/ export const internalConst = 10;\n /**@internal*/ export enum internalEnum { a, b, c }\n}\n/**@internal*/ class internalC {}\n/**@internal*/ function internalfoo() {}\n/**@internal*/ namespace internalNamespace { export class someClass {} }\n/**@internal*/ namespace internalOther.something { export class someClass {} }\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ const internalConst = 10;\n/**@internal*/ enum internalEnum { a, b, c }", - "../second/second_part2.ts": "9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n" + "../second/second_part1.ts": "20074181486-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n\nclass normalC {\n /**@internal*/ constructor() { }\n /**@internal*/ prop: string;\n /**@internal*/ method() { }\n /**@internal*/ get c() { return 10; }\n /**@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /**@internal*/ export class C { }\n /**@internal*/ export function foo() {}\n /**@internal*/ export namespace someNamespace { export class C {} }\n /**@internal*/ export namespace someOther.something { export class someClass {} }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ export type internalType = internalC;\n /**@internal*/ export const internalConst = 10;\n /**@internal*/ export enum internalEnum { a, b, c }\n}\n/**@internal*/ class internalC {}\n/**@internal*/ function internalfoo() {}\n/**@internal*/ namespace internalNamespace { export class someClass {} }\n/**@internal*/ namespace internalOther.something { export class someClass {} }\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ const internalConst = 10;\n/**@internal*/ enum internalEnum { a, b, c }", + "../second/second_part2.ts": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n" }, "root": [ [ @@ -8331,7 +8330,7 @@ declare class C { "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 14157 + "size": 14126 } //// [/src/first/bin/first-output.d.ts.map] file written with same contents @@ -8367,10 +8366,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >/**@internal*/ interface TheFirst { - > none: any; - >} - > +1 >/**@internal*/ interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -8393,12 +8392,12 @@ sourceFile:../first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -8426,7 +8425,7 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > +1 > > 2 >console 3 > . @@ -8498,7 +8497,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -8512,7 +8511,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) @@ -8521,7 +8520,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":120,"kind":"text"}],"mapHash":"-2702861355-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-20052626506-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":52,"kind":"internal"},{"pos":53,"end":164,"kind":"text"}],"mapHash":"32981141636-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,cAAc,CAAC,UAAU,QAAQ;IAC7B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"23779352887-/**@internal*/ interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-39212946152-/**@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":false,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"21400511536-/**@internal*/ interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":120,"kind":"text"}],"mapHash":"-2702861355-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-20052626506-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":52,"kind":"internal"},{"pos":53,"end":164,"kind":"text"}],"mapHash":"32981141636-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,cAAc,CAAC,UAAU,QAAQ;IAC7B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"23779352887-/**@internal*/ interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","248375721-/**@internal*/ interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":false,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"21400511536-/**@internal*/ interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -8600,9 +8599,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "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; };", - "../first_part1.ts": "-39212946152-/**@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "248375721-/**@internal*/ interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -8631,7 +8630,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2801 + "size": 2772 } //// [/src/third/thirdjs/output/third-output.js] @@ -8769,10 +8768,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >/**@internal*/ interface TheFirst { - > none: any; - >} - > +1 >/**@internal*/ interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -8795,12 +8794,12 @@ sourceFile:../../../first/first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -8828,7 +8827,7 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > +1 > > 2 >console 3 > . @@ -8900,7 +8899,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -8914,7 +8913,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) @@ -8930,19 +8929,19 @@ sourceFile:../../../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(8, 5) Source(5, 11) + SourceIndex(3) @@ -8966,7 +8965,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -8983,7 +8982,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -9005,7 +9004,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(12, 5) Source(8, 5) + SourceIndex(3) @@ -9017,8 +9016,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -9037,19 +9036,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(14, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(14, 2) Source(11, 2) + SourceIndex(3) @@ -9062,7 +9061,7 @@ sourceFile:../../../second/second_part1.ts >>>var normalC = /** @class */ (function () { 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > > 1->Emitted(15, 1) Source(13, 1) + SourceIndex(3) @@ -10367,10 +10366,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(104, 5) Source(5, 1) + SourceIndex(4) @@ -10397,7 +10396,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -10419,7 +10418,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(107, 5) Source(4, 5) + SourceIndex(4) @@ -10428,7 +10427,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(108, 5) Source(5, 1) + SourceIndex(4) @@ -10443,10 +10442,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(109, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(109, 2) Source(5, 2) + SourceIndex(4) @@ -10491,7 +10490,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -10508,7 +10507,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":3453,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":0,"end":3453,"kind":"text"}]},{"pos":3453,"end":3487,"kind":"text"}],"mapHash":"76555087780-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,cAAc,CAAC;IAAgB,CAAC;IAEhC,cAAc,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAApB,cAAc,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACrC,cAAc,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,cAAc,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IACjC,cAAc,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACvC,cAAc,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACnE,cAAc,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACjF,cAAc,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE1D,cAAc,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC/C,cAAc,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,cAAc,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AACjC,cAAc,CAAC,SAAS,WAAW,KAAI,CAAC;AACxC,cAAc,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACxE,cAAc,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC9E,cAAc,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEnE,cAAc,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACxC,cAAc,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"56873260890-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = /** @class */ (function () {\n /**@internal*/ function normalC() {\n }\n /**@internal*/ normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n /**@internal*/ get: function () { return 10; },\n /**@internal*/ set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n /**@internal*/ var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n /**@internal*/ function foo() { }\n normalN.foo = foo;\n /**@internal*/ var someNamespace;\n (function (someNamespace) {\n var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n /**@internal*/ var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n /**@internal*/ normalN.someImport = someNamespace.C;\n /**@internal*/ normalN.internalConst = 10;\n /**@internal*/ var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\n/**@internal*/ var internalC = /** @class */ (function () {\n function internalC() {\n }\n return internalC;\n}());\n/**@internal*/ function internalfoo() { }\n/**@internal*/ var internalNamespace;\n(function (internalNamespace) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\n/**@internal*/ var internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\n/**@internal*/ var internalImport = internalNamespace.someClass;\n/**@internal*/ var internalConst = 10;\n/**@internal*/ var internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = /** @class */ (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":260,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":0,"end":260,"kind":"text"}]},{"pos":260,"end":278,"kind":"text"}],"mapHash":"16014976674-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-51018023562-declare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-21352142710-/**@internal*/ interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n /**@internal*/ constructor();\n /**@internal*/ prop: string;\n /**@internal*/ method(): void;\n /**@internal*/ get c(): number;\n /**@internal*/ set c(val: number);\n}\ndeclare namespace normalN {\n /**@internal*/ class C {\n }\n /**@internal*/ function foo(): void;\n /**@internal*/ namespace someNamespace {\n class C {\n }\n }\n /**@internal*/ namespace someOther.something {\n class someClass {\n }\n }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ type internalType = internalC;\n /**@internal*/ const internalConst = 10;\n /**@internal*/ enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\n/**@internal*/ declare class internalC {\n}\n/**@internal*/ declare function internalfoo(): void;\n/**@internal*/ declare namespace internalNamespace {\n class someClass {\n }\n}\n/**@internal*/ declare namespace internalOther.something {\n class someClass {\n }\n}\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ declare const internalConst = 10;\n/**@internal*/ declare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":false,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"-46239946948-declare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":3453,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":0,"end":3453,"kind":"text"}]},{"pos":3453,"end":3487,"kind":"text"}],"mapHash":"76555087780-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,cAAc,CAAC;IAAgB,CAAC;IAEhC,cAAc,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAApB,cAAc,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACrC,cAAc,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,cAAc,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IACjC,cAAc,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACvC,cAAc,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACnE,cAAc,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACjF,cAAc,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE1D,cAAc,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC/C,cAAc,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,cAAc,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AACjC,cAAc,CAAC,SAAS,WAAW,KAAI,CAAC;AACxC,cAAc,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACxE,cAAc,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC9E,cAAc,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEnE,cAAc,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACxC,cAAc,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"56873260890-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = /** @class */ (function () {\n /**@internal*/ function normalC() {\n }\n /**@internal*/ normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n /**@internal*/ get: function () { return 10; },\n /**@internal*/ set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n /**@internal*/ var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n /**@internal*/ function foo() { }\n normalN.foo = foo;\n /**@internal*/ var someNamespace;\n (function (someNamespace) {\n var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n /**@internal*/ var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n /**@internal*/ normalN.someImport = someNamespace.C;\n /**@internal*/ normalN.internalConst = 10;\n /**@internal*/ var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\n/**@internal*/ var internalC = /** @class */ (function () {\n function internalC() {\n }\n return internalC;\n}());\n/**@internal*/ function internalfoo() { }\n/**@internal*/ var internalNamespace;\n(function (internalNamespace) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\n/**@internal*/ var internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\n/**@internal*/ var internalImport = internalNamespace.someClass;\n/**@internal*/ var internalConst = 10;\n/**@internal*/ var internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = /** @class */ (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":260,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":0,"end":260,"kind":"text"}]},{"pos":260,"end":278,"kind":"text"}],"mapHash":"16014976674-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-51018023562-declare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-21352142710-/**@internal*/ interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n /**@internal*/ constructor();\n /**@internal*/ prop: string;\n /**@internal*/ method(): void;\n /**@internal*/ get c(): number;\n /**@internal*/ set c(val: number);\n}\ndeclare namespace normalN {\n /**@internal*/ class C {\n }\n /**@internal*/ function foo(): void;\n /**@internal*/ namespace someNamespace {\n class C {\n }\n }\n /**@internal*/ namespace someOther.something {\n class someClass {\n }\n }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ type internalType = internalC;\n /**@internal*/ const internalConst = 10;\n /**@internal*/ enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\n/**@internal*/ declare class internalC {\n}\n/**@internal*/ declare function internalfoo(): void;\n/**@internal*/ declare namespace internalNamespace {\n class someClass {\n }\n}\n/**@internal*/ declare namespace internalOther.something {\n class someClass {\n }\n}\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ declare const internalConst = 10;\n/**@internal*/ declare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":false,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"-46239946948-declare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -10727,7 +10726,7 @@ declare var c: C; "fileInfos": { "../../../../lib/lib.d.ts": "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; };", "../../../2/second-output.d.ts": "-21352142710-/**@internal*/ interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n /**@internal*/ constructor();\n /**@internal*/ prop: string;\n /**@internal*/ method(): void;\n /**@internal*/ get c(): number;\n /**@internal*/ set c(val: number);\n}\ndeclare namespace normalN {\n /**@internal*/ class C {\n }\n /**@internal*/ function foo(): void;\n /**@internal*/ namespace someNamespace {\n class C {\n }\n }\n /**@internal*/ namespace someOther.something {\n class someClass {\n }\n }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ type internalType = internalC;\n /**@internal*/ const internalConst = 10;\n /**@internal*/ enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\n/**@internal*/ declare class internalC {\n}\n/**@internal*/ declare function internalfoo(): void;\n/**@internal*/ declare namespace internalNamespace {\n class someClass {\n }\n}\n/**@internal*/ declare namespace internalOther.something {\n class someClass {\n }\n}\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ declare const internalConst = 10;\n/**@internal*/ declare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -10751,6 +10750,6 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 10566 + "size": 10561 } diff --git a/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-jsdoc-style-with-comments-emit-enabled.js b/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-jsdoc-style-with-comments-emit-enabled.js index e0b7560137148..36ee45f51288d 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-jsdoc-style-with-comments-emit-enabled.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-jsdoc-style-with-comments-emit-enabled.js @@ -16,62 +16,61 @@ interface ReadonlyArray {} declare const console: { log(msg: any): void; }; //// [/src/first/first_PART1.ts] -/**@internal*/ interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +/**@internal*/ interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); //// [/src/first/first_part2.ts] -console.log(f()); +console.log(f()); //// [/src/first/first_part3.ts] -function f() { - return "JS does hoists"; -} +function f() { + return "JS does hoists"; +} + //// [/src/first/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "composite": true, - "removeComments": false, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "outFile": "./bin/first-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "first_PART1.ts", - "first_part2.ts", - "first_part3.ts" - ], - "references": [ - ] +{ + "compilerOptions": { + "target": "es5", + "composite": true, + "removeComments": false, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "outFile": "./bin/first-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "first_PART1.ts", + "first_part2.ts", + "first_part3.ts" + ], + "references": [] } - //// [/src/second/second_part1.ts] -namespace N { - // Comment text -} - -namespace N { - function f() { - console.log('testing'); - } - - f(); -} +namespace N { + // Comment text +} + +namespace N { + function f() { + console.log('testing'); + } + + f(); +} class normalC { /**@internal*/ constructor() { } @@ -100,82 +99,85 @@ namespace normalN { /**@internal*/ enum internalEnum { a, b, c } //// [/src/second/second_part2.ts] -class C { - doSomething() { - console.log("something got done"); - } -} +class C { + doSomething() { + console.log("something got done"); + } +} //// [/src/second/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": false, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "../2/second-output.js", - "skipDefaultLibCheck": true - }, - "references": [ - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": false, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "../2/second-output.js", + "skipDefaultLibCheck": true + }, + "references": [] } - //// [/src/third/third_part1.ts] -var c = new C(); -c.doSomething(); +var c = new C(); +c.doSomething(); //// [/src/third/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": false, - "strict": false, - "sourceMap": true, - "declarationMap": true, +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": false, + "strict": false, + "sourceMap": true, + "declarationMap": true, "declaration": true, - "stripInternal": true, - "outFile": "./thirdjs/output/third-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "third_part1.ts" - ], - "references": [ - { "path": "../first", "prepend": true }, - { "path": "../second", "prepend": true }, - ] + "stripInternal": true, + "outFile": "./thirdjs/output/third-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "third_part1.ts" + ], + "references": [ + { + "path": "../first", + "prepend": true + }, + { + "path": "../second", + "prepend": true + } + ] } - Output:: /lib/tsc --b /src/third --verbose -[12:00:12 AM] Projects in this build: +[12:00:24 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:13 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist +[12:00:25 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist -[12:00:14 AM] Building project '/src/first/tsconfig.json'... +[12:00:26 AM] Building project '/src/first/tsconfig.json'... -[12:00:24 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist +[12:00:36 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist -[12:00:25 AM] Building project '/src/second/tsconfig.json'... +[12:00:37 AM] Building project '/src/second/tsconfig.json'... -[12:00:35 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist +[12:00:47 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist -[12:00:36 AM] Building project '/src/third/tsconfig.json'... +[12:00:48 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -268,8 +270,8 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(2, 2) Source(3, 2) + SourceIndex(0) --- @@ -278,8 +280,8 @@ sourceFile:../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -292,12 +294,12 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(4, 2) Source(11, 2) + SourceIndex(0) --- @@ -306,7 +308,7 @@ sourceFile:../second/second_part1.ts 2 >^^^^^^^^^^^^^^ 3 > ^^^^^^^ 4 > ^^^^^^^^^^^^-> -1-> +1-> > > 2 >class @@ -1039,7 +1041,7 @@ sourceFile:../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(53, 5) Source(2, 5) + SourceIndex(1) @@ -1048,9 +1050,9 @@ sourceFile:../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(54, 2) Source(5, 2) + SourceIndex(1) --- @@ -1181,19 +1183,19 @@ sourceFile:../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1 >namespace N { - > // Comment text - >} - > +1 >namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) 2 >Emitted(1, 5) Source(5, 11) + SourceIndex(0) @@ -1217,7 +1219,7 @@ sourceFile:../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -1234,7 +1236,7 @@ sourceFile:../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -1256,7 +1258,7 @@ sourceFile:../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(5, 5) Source(8, 5) + SourceIndex(0) @@ -1268,8 +1270,8 @@ sourceFile:../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -1288,19 +1290,19 @@ sourceFile:../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(7, 1) Source(11, 1) + SourceIndex(0) 2 >Emitted(7, 2) Source(11, 2) + SourceIndex(0) @@ -1313,7 +1315,7 @@ sourceFile:../second/second_part1.ts >>>var normalC = /** @class */ (function () { 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > > 1->Emitted(8, 1) Source(13, 1) + SourceIndex(0) @@ -2618,10 +2620,10 @@ sourceFile:../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(97, 5) Source(5, 1) + SourceIndex(1) @@ -2648,7 +2650,7 @@ sourceFile:../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -2670,7 +2672,7 @@ sourceFile:../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(100, 5) Source(4, 5) + SourceIndex(1) @@ -2679,7 +2681,7 @@ sourceFile:../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(101, 5) Source(5, 1) + SourceIndex(1) @@ -2694,10 +2696,10 @@ sourceFile:../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(102, 1) Source(5, 1) + SourceIndex(1) 2 >Emitted(102, 2) Source(5, 2) + SourceIndex(1) @@ -2707,7 +2709,7 @@ sourceFile:../second/second_part2.ts >>>//# sourceMappingURL=second-output.js.map //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":3333,"kind":"text"}],"mapHash":"72728491936-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,cAAc,CAAC;IAAgB,CAAC;IAEhC,cAAc,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAApB,cAAc,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACrC,cAAc,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,cAAc,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IACjC,cAAc,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACvC,cAAc,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACnE,cAAc,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACjF,cAAc,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE1D,cAAc,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC/C,cAAc,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,cAAc,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AACjC,cAAc,CAAC,SAAS,WAAW,KAAI,CAAC;AACxC,cAAc,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACxE,cAAc,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC9E,cAAc,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEnE,cAAc,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACxC,cAAc,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"219880979041-var N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = /** @class */ (function () {\n /**@internal*/ function normalC() {\n }\n /**@internal*/ normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n /**@internal*/ get: function () { return 10; },\n /**@internal*/ set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n /**@internal*/ var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n /**@internal*/ function foo() { }\n normalN.foo = foo;\n /**@internal*/ var someNamespace;\n (function (someNamespace) {\n var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n /**@internal*/ var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n /**@internal*/ normalN.someImport = someNamespace.C;\n /**@internal*/ normalN.internalConst = 10;\n /**@internal*/ var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\n/**@internal*/ var internalC = /** @class */ (function () {\n function internalC() {\n }\n return internalC;\n}());\n/**@internal*/ function internalfoo() { }\n/**@internal*/ var internalNamespace;\n(function (internalNamespace) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\n/**@internal*/ var internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\n/**@internal*/ var internalImport = internalNamespace.someClass;\n/**@internal*/ var internalConst = 10;\n/**@internal*/ var internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = /** @class */ (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":72,"kind":"text"},{"pos":72,"end":248,"kind":"internal"},{"pos":249,"end":279,"kind":"text"},{"pos":279,"end":773,"kind":"internal"},{"pos":774,"end":776,"kind":"text"},{"pos":776,"end":1283,"kind":"internal"},{"pos":1284,"end":1329,"kind":"text"}],"mapHash":"-10387050907-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;IACT,cAAc;IACd,cAAc,CAAC,IAAI,EAAE,MAAM,CAAC;IAC5B,cAAc,CAAC,MAAM;IACrB,cAAc,CAAC,IAAI,CAAC,IACM,MAAM,CADK;IACrC,cAAc,CAAC,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACxC;AACD,kBAAU,OAAO,CAAC;IACd,cAAc,CAAC,MAAa,CAAC;KAAI;IACjC,cAAc,CAAC,SAAgB,GAAG,SAAK;IACvC,cAAc,CAAC,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACnE,cAAc,CAAC,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IACjF,cAAc,CAAC,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC1D,cAAc,CAAC,KAAY,YAAY,GAAG,SAAS,CAAC;IACpD,cAAc,CAAQ,MAAM,aAAa,KAAK,CAAC;IAC/C,cAAc,CAAC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACtD;AACD,cAAc,CAAC,cAAM,SAAS;CAAG;AACjC,cAAc,CAAC,iBAAS,WAAW,SAAK;AACxC,cAAc,CAAC,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACxE,cAAc,CAAC,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC9E,cAAc,CAAC,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACnE,cAAc,CAAC,KAAK,YAAY,GAAG,SAAS,CAAC;AAC7C,cAAc,CAAC,QAAA,MAAM,aAAa,KAAK,CAAC;AACxC,cAAc,CAAC,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC5C,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-38748554374-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n /**@internal*/ constructor();\n /**@internal*/ prop: string;\n /**@internal*/ method(): void;\n /**@internal*/ get c(): number;\n /**@internal*/ set c(val: number);\n}\ndeclare namespace normalN {\n /**@internal*/ class C {\n }\n /**@internal*/ function foo(): void;\n /**@internal*/ namespace someNamespace {\n class C {\n }\n }\n /**@internal*/ namespace someOther.something {\n class someClass {\n }\n }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ type internalType = internalC;\n /**@internal*/ const internalConst = 10;\n /**@internal*/ enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\n/**@internal*/ declare class internalC {\n}\n/**@internal*/ declare function internalfoo(): void;\n/**@internal*/ declare namespace internalNamespace {\n class someClass {\n }\n}\n/**@internal*/ declare namespace internalOther.something {\n class someClass {\n }\n}\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ declare const internalConst = 10;\n/**@internal*/ declare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["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; };","5541258877-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n\nclass normalC {\n /**@internal*/ constructor() { }\n /**@internal*/ prop: string;\n /**@internal*/ method() { }\n /**@internal*/ get c() { return 10; }\n /**@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /**@internal*/ export class C { }\n /**@internal*/ export function foo() {}\n /**@internal*/ export namespace someNamespace { export class C {} }\n /**@internal*/ export namespace someOther.something { export class someClass {} }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ export type internalType = internalC;\n /**@internal*/ export const internalConst = 10;\n /**@internal*/ export enum internalEnum { a, b, c }\n}\n/**@internal*/ class internalC {}\n/**@internal*/ function internalfoo() {}\n/**@internal*/ namespace internalNamespace { export class someClass {} }\n/**@internal*/ namespace internalOther.something { export class someClass {} }\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ const internalConst = 10;\n/**@internal*/ enum internalEnum { a, b, c }","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":false,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-41025113601-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n /**@internal*/ constructor();\n /**@internal*/ prop: string;\n /**@internal*/ method(): void;\n /**@internal*/ get c(): number;\n /**@internal*/ set c(val: number);\n}\ndeclare namespace normalN {\n /**@internal*/ class C {\n }\n /**@internal*/ function foo(): void;\n /**@internal*/ namespace someNamespace {\n class C {\n }\n }\n /**@internal*/ namespace someOther.something {\n class someClass {\n }\n }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ type internalType = internalC;\n /**@internal*/ const internalConst = 10;\n /**@internal*/ enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\n/**@internal*/ declare class internalC {\n}\n/**@internal*/ declare function internalfoo(): void;\n/**@internal*/ declare namespace internalNamespace {\n class someClass {\n }\n}\n/**@internal*/ declare namespace internalOther.something {\n class someClass {\n }\n}\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ declare const internalConst = 10;\n/**@internal*/ declare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":3333,"kind":"text"}],"mapHash":"72728491936-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,cAAc,CAAC;IAAgB,CAAC;IAEhC,cAAc,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAApB,cAAc,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACrC,cAAc,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,cAAc,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IACjC,cAAc,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACvC,cAAc,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACnE,cAAc,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACjF,cAAc,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE1D,cAAc,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC/C,cAAc,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,cAAc,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AACjC,cAAc,CAAC,SAAS,WAAW,KAAI,CAAC;AACxC,cAAc,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACxE,cAAc,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC9E,cAAc,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEnE,cAAc,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACxC,cAAc,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"219880979041-var N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = /** @class */ (function () {\n /**@internal*/ function normalC() {\n }\n /**@internal*/ normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n /**@internal*/ get: function () { return 10; },\n /**@internal*/ set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n /**@internal*/ var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n /**@internal*/ function foo() { }\n normalN.foo = foo;\n /**@internal*/ var someNamespace;\n (function (someNamespace) {\n var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n /**@internal*/ var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n /**@internal*/ normalN.someImport = someNamespace.C;\n /**@internal*/ normalN.internalConst = 10;\n /**@internal*/ var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\n/**@internal*/ var internalC = /** @class */ (function () {\n function internalC() {\n }\n return internalC;\n}());\n/**@internal*/ function internalfoo() { }\n/**@internal*/ var internalNamespace;\n(function (internalNamespace) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\n/**@internal*/ var internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\n/**@internal*/ var internalImport = internalNamespace.someClass;\n/**@internal*/ var internalConst = 10;\n/**@internal*/ var internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = /** @class */ (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":72,"kind":"text"},{"pos":72,"end":248,"kind":"internal"},{"pos":249,"end":279,"kind":"text"},{"pos":279,"end":773,"kind":"internal"},{"pos":774,"end":776,"kind":"text"},{"pos":776,"end":1283,"kind":"internal"},{"pos":1284,"end":1329,"kind":"text"}],"mapHash":"-10387050907-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;IACT,cAAc;IACd,cAAc,CAAC,IAAI,EAAE,MAAM,CAAC;IAC5B,cAAc,CAAC,MAAM;IACrB,cAAc,CAAC,IAAI,CAAC,IACM,MAAM,CADK;IACrC,cAAc,CAAC,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACxC;AACD,kBAAU,OAAO,CAAC;IACd,cAAc,CAAC,MAAa,CAAC;KAAI;IACjC,cAAc,CAAC,SAAgB,GAAG,SAAK;IACvC,cAAc,CAAC,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACnE,cAAc,CAAC,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IACjF,cAAc,CAAC,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC1D,cAAc,CAAC,KAAY,YAAY,GAAG,SAAS,CAAC;IACpD,cAAc,CAAQ,MAAM,aAAa,KAAK,CAAC;IAC/C,cAAc,CAAC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACtD;AACD,cAAc,CAAC,cAAM,SAAS;CAAG;AACjC,cAAc,CAAC,iBAAS,WAAW,SAAK;AACxC,cAAc,CAAC,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACxE,cAAc,CAAC,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC9E,cAAc,CAAC,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACnE,cAAc,CAAC,KAAK,YAAY,GAAG,SAAS,CAAC;AAC7C,cAAc,CAAC,QAAA,MAAM,aAAa,KAAK,CAAC;AACxC,cAAc,CAAC,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC5C,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-38748554374-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n /**@internal*/ constructor();\n /**@internal*/ prop: string;\n /**@internal*/ method(): void;\n /**@internal*/ get c(): number;\n /**@internal*/ set c(val: number);\n}\ndeclare namespace normalN {\n /**@internal*/ class C {\n }\n /**@internal*/ function foo(): void;\n /**@internal*/ namespace someNamespace {\n class C {\n }\n }\n /**@internal*/ namespace someOther.something {\n class someClass {\n }\n }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ type internalType = internalC;\n /**@internal*/ const internalConst = 10;\n /**@internal*/ enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\n/**@internal*/ declare class internalC {\n}\n/**@internal*/ declare function internalfoo(): void;\n/**@internal*/ declare namespace internalNamespace {\n class someClass {\n }\n}\n/**@internal*/ declare namespace internalOther.something {\n class someClass {\n }\n}\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ declare const internalConst = 10;\n/**@internal*/ declare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["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; };","20074181486-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n\nclass normalC {\n /**@internal*/ constructor() { }\n /**@internal*/ prop: string;\n /**@internal*/ method() { }\n /**@internal*/ get c() { return 10; }\n /**@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /**@internal*/ export class C { }\n /**@internal*/ export function foo() {}\n /**@internal*/ export namespace someNamespace { export class C {} }\n /**@internal*/ export namespace someOther.something { export class someClass {} }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ export type internalType = internalC;\n /**@internal*/ export const internalConst = 10;\n /**@internal*/ export enum internalEnum { a, b, c }\n}\n/**@internal*/ class internalC {}\n/**@internal*/ function internalfoo() {}\n/**@internal*/ namespace internalNamespace { export class someClass {} }\n/**@internal*/ namespace internalOther.something { export class someClass {} }\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ const internalConst = 10;\n/**@internal*/ enum internalEnum { a, b, c }","3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":false,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-41025113601-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n /**@internal*/ constructor();\n /**@internal*/ prop: string;\n /**@internal*/ method(): void;\n /**@internal*/ get c(): number;\n /**@internal*/ set c(val: number);\n}\ndeclare namespace normalN {\n /**@internal*/ class C {\n }\n /**@internal*/ function foo(): void;\n /**@internal*/ namespace someNamespace {\n class C {\n }\n }\n /**@internal*/ namespace someOther.something {\n class someClass {\n }\n }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ type internalType = internalC;\n /**@internal*/ const internalConst = 10;\n /**@internal*/ enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\n/**@internal*/ declare class internalC {\n}\n/**@internal*/ declare function internalfoo(): void;\n/**@internal*/ declare namespace internalNamespace {\n class someClass {\n }\n}\n/**@internal*/ declare namespace internalOther.something {\n class someClass {\n }\n}\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ declare const internalConst = 10;\n/**@internal*/ declare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -2963,8 +2965,8 @@ declare class C { ], "fileInfos": { "../../lib/lib.d.ts": "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; };", - "../second/second_part1.ts": "5541258877-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n\nclass normalC {\n /**@internal*/ constructor() { }\n /**@internal*/ prop: string;\n /**@internal*/ method() { }\n /**@internal*/ get c() { return 10; }\n /**@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /**@internal*/ export class C { }\n /**@internal*/ export function foo() {}\n /**@internal*/ export namespace someNamespace { export class C {} }\n /**@internal*/ export namespace someOther.something { export class someClass {} }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ export type internalType = internalC;\n /**@internal*/ export const internalConst = 10;\n /**@internal*/ export enum internalEnum { a, b, c }\n}\n/**@internal*/ class internalC {}\n/**@internal*/ function internalfoo() {}\n/**@internal*/ namespace internalNamespace { export class someClass {} }\n/**@internal*/ namespace internalOther.something { export class someClass {} }\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ const internalConst = 10;\n/**@internal*/ enum internalEnum { a, b, c }", - "../second/second_part2.ts": "9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n" + "../second/second_part1.ts": "20074181486-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n\nclass normalC {\n /**@internal*/ constructor() { }\n /**@internal*/ prop: string;\n /**@internal*/ method() { }\n /**@internal*/ get c() { return 10; }\n /**@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /**@internal*/ export class C { }\n /**@internal*/ export function foo() {}\n /**@internal*/ export namespace someNamespace { export class C {} }\n /**@internal*/ export namespace someOther.something { export class someClass {} }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ export type internalType = internalC;\n /**@internal*/ export const internalConst = 10;\n /**@internal*/ export enum internalEnum { a, b, c }\n}\n/**@internal*/ class internalC {}\n/**@internal*/ function internalfoo() {}\n/**@internal*/ namespace internalNamespace { export class someClass {} }\n/**@internal*/ namespace internalOther.something { export class someClass {} }\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ const internalConst = 10;\n/**@internal*/ enum internalEnum { a, b, c }", + "../second/second_part2.ts": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n" }, "root": [ [ @@ -2991,7 +2993,7 @@ declare class C { "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 12670 + "size": 12639 } //// [/src/first/bin/first-output.d.ts] @@ -3042,7 +3044,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -3057,7 +3059,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -3068,8 +3070,8 @@ sourceFile:../first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -3087,8 +3089,8 @@ sourceFile:../first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -3102,7 +3104,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -3117,7 +3119,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -3134,8 +3136,8 @@ sourceFile:../first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) @@ -3174,10 +3176,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >/**@internal*/ interface TheFirst { - > none: any; - >} - > +1 >/**@internal*/ interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -3201,12 +3203,12 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -3278,7 +3280,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -3292,7 +3294,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) @@ -3301,7 +3303,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"4999315210-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":52,"kind":"internal"},{"pos":53,"end":164,"kind":"text"}],"mapHash":"32981141636-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,cAAc,CAAC,UAAU,QAAQ;IAC7B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"23779352887-/**@internal*/ interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-28083977866-/**@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":false,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"21400511536-/**@internal*/ interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"4999315210-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":52,"kind":"internal"},{"pos":53,"end":164,"kind":"text"}],"mapHash":"32981141636-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,cAAc,CAAC,UAAU,QAAQ;IAC7B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"23779352887-/**@internal*/ interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-2065248729-/**@internal*/ interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":false,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"21400511536-/**@internal*/ interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -3379,9 +3381,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "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; };", - "../first_part1.ts": "-28083977866-/**@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-2065248729-/**@internal*/ interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -3410,7 +3412,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2728 + "size": 2701 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -3454,10 +3456,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1 >/**@internal*/ interface TheFirst { - > none: any; - >} - > +1 >/**@internal*/ interface TheFirst { + > none: any; + >} + > > 2 > 3 > const @@ -3475,8 +3477,8 @@ sourceFile:../../../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -3490,7 +3492,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -3505,7 +3507,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(4, 2) Source(9, 2) + SourceIndex(0) --- @@ -3521,8 +3523,8 @@ sourceFile:../../../first/first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) 2 >Emitted(5, 18) Source(1, 10) + SourceIndex(1) @@ -3550,8 +3552,8 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) --- @@ -3560,8 +3562,8 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -3574,12 +3576,12 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(9, 2) Source(11, 2) + SourceIndex(2) --- @@ -3587,7 +3589,7 @@ sourceFile:../../../second/second_part1.ts 1-> 2 >^^^^^^^^^^^^^^ 3 > ^^^^^^^ -1-> +1-> > > 2 >class @@ -3657,7 +3659,7 @@ sourceFile:../../../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(15, 5) Source(2, 5) + SourceIndex(3) @@ -3666,9 +3668,9 @@ sourceFile:../../../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(16, 2) Source(5, 2) + SourceIndex(3) --- @@ -3833,10 +3835,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >/**@internal*/ interface TheFirst { - > none: any; - >} - > +1 >/**@internal*/ interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -3860,12 +3862,12 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -3937,7 +3939,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -3951,7 +3953,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) @@ -3967,19 +3969,19 @@ sourceFile:../../../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(7, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(7, 5) Source(5, 11) + SourceIndex(3) @@ -4003,7 +4005,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -4020,7 +4022,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -4042,7 +4044,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(11, 5) Source(8, 5) + SourceIndex(3) @@ -4054,8 +4056,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -4074,19 +4076,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(13, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(13, 2) Source(11, 2) + SourceIndex(3) @@ -4099,7 +4101,7 @@ sourceFile:../../../second/second_part1.ts >>>var normalC = /** @class */ (function () { 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > > 1->Emitted(14, 1) Source(13, 1) + SourceIndex(3) @@ -5404,10 +5406,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(103, 5) Source(5, 1) + SourceIndex(4) @@ -5434,7 +5436,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -5456,7 +5458,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(106, 5) Source(4, 5) + SourceIndex(4) @@ -5465,7 +5467,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(107, 5) Source(5, 1) + SourceIndex(4) @@ -5480,10 +5482,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(108, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(108, 2) Source(5, 2) + SourceIndex(4) @@ -5528,7 +5530,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -5545,7 +5547,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":104,"kind":"text"}]},{"pos":104,"end":3437,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":104,"end":3437,"kind":"text"}]},{"pos":3437,"end":3471,"kind":"text"}],"mapHash":"-35203587856-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,cAAc,CAAC;IAAgB,CAAC;IAEhC,cAAc,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAApB,cAAc,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACrC,cAAc,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,cAAc,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IACjC,cAAc,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACvC,cAAc,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACnE,cAAc,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACjF,cAAc,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE1D,cAAc,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC/C,cAAc,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,cAAc,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AACjC,cAAc,CAAC,SAAS,WAAW,KAAI,CAAC;AACxC,cAAc,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACxE,cAAc,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC9E,cAAc,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEnE,cAAc,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACxC,cAAc,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"91870309422-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = /** @class */ (function () {\n /**@internal*/ function normalC() {\n }\n /**@internal*/ normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n /**@internal*/ get: function () { return 10; },\n /**@internal*/ set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n /**@internal*/ var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n /**@internal*/ function foo() { }\n normalN.foo = foo;\n /**@internal*/ var someNamespace;\n (function (someNamespace) {\n var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n /**@internal*/ var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n /**@internal*/ normalN.someImport = someNamespace.C;\n /**@internal*/ normalN.internalConst = 10;\n /**@internal*/ var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\n/**@internal*/ var internalC = /** @class */ (function () {\n function internalC() {\n }\n return internalC;\n}());\n/**@internal*/ function internalfoo() { }\n/**@internal*/ var internalNamespace;\n(function (internalNamespace) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\n/**@internal*/ var internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\n/**@internal*/ var internalImport = internalNamespace.someClass;\n/**@internal*/ var internalConst = 10;\n/**@internal*/ var internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = /** @class */ (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":111,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":111,"kind":"text"}]},{"pos":111,"end":260,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":111,"end":260,"kind":"text"}]},{"pos":260,"end":278,"kind":"text"}],"mapHash":"16014976674-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-51018023562-declare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","21400511536-/**@internal*/ interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-41025113601-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n /**@internal*/ constructor();\n /**@internal*/ prop: string;\n /**@internal*/ method(): void;\n /**@internal*/ get c(): number;\n /**@internal*/ set c(val: number);\n}\ndeclare namespace normalN {\n /**@internal*/ class C {\n }\n /**@internal*/ function foo(): void;\n /**@internal*/ namespace someNamespace {\n class C {\n }\n }\n /**@internal*/ namespace someOther.something {\n class someClass {\n }\n }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ type internalType = internalC;\n /**@internal*/ const internalConst = 10;\n /**@internal*/ enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\n/**@internal*/ declare class internalC {\n}\n/**@internal*/ declare function internalfoo(): void;\n/**@internal*/ declare namespace internalNamespace {\n class someClass {\n }\n}\n/**@internal*/ declare namespace internalOther.something {\n class someClass {\n }\n}\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ declare const internalConst = 10;\n/**@internal*/ declare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":false,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"-46239946948-declare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":104,"kind":"text"}]},{"pos":104,"end":3437,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":104,"end":3437,"kind":"text"}]},{"pos":3437,"end":3471,"kind":"text"}],"mapHash":"-35203587856-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,cAAc,CAAC;IAAgB,CAAC;IAEhC,cAAc,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAApB,cAAc,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACrC,cAAc,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,cAAc,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IACjC,cAAc,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACvC,cAAc,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACnE,cAAc,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACjF,cAAc,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE1D,cAAc,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC/C,cAAc,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,cAAc,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AACjC,cAAc,CAAC,SAAS,WAAW,KAAI,CAAC;AACxC,cAAc,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACxE,cAAc,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC9E,cAAc,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEnE,cAAc,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACxC,cAAc,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"91870309422-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = /** @class */ (function () {\n /**@internal*/ function normalC() {\n }\n /**@internal*/ normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n /**@internal*/ get: function () { return 10; },\n /**@internal*/ set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n /**@internal*/ var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n /**@internal*/ function foo() { }\n normalN.foo = foo;\n /**@internal*/ var someNamespace;\n (function (someNamespace) {\n var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n /**@internal*/ var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n /**@internal*/ normalN.someImport = someNamespace.C;\n /**@internal*/ normalN.internalConst = 10;\n /**@internal*/ var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\n/**@internal*/ var internalC = /** @class */ (function () {\n function internalC() {\n }\n return internalC;\n}());\n/**@internal*/ function internalfoo() { }\n/**@internal*/ var internalNamespace;\n(function (internalNamespace) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\n/**@internal*/ var internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\n/**@internal*/ var internalImport = internalNamespace.someClass;\n/**@internal*/ var internalConst = 10;\n/**@internal*/ var internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = /** @class */ (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":111,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":111,"kind":"text"}]},{"pos":111,"end":260,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":111,"end":260,"kind":"text"}]},{"pos":260,"end":278,"kind":"text"}],"mapHash":"16014976674-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-51018023562-declare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","21400511536-/**@internal*/ interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-41025113601-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n /**@internal*/ constructor();\n /**@internal*/ prop: string;\n /**@internal*/ method(): void;\n /**@internal*/ get c(): number;\n /**@internal*/ set c(val: number);\n}\ndeclare namespace normalN {\n /**@internal*/ class C {\n }\n /**@internal*/ function foo(): void;\n /**@internal*/ namespace someNamespace {\n class C {\n }\n }\n /**@internal*/ namespace someOther.something {\n class someClass {\n }\n }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ type internalType = internalC;\n /**@internal*/ const internalConst = 10;\n /**@internal*/ enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\n/**@internal*/ declare class internalC {\n}\n/**@internal*/ declare function internalfoo(): void;\n/**@internal*/ declare namespace internalNamespace {\n class someClass {\n }\n}\n/**@internal*/ declare namespace internalOther.something {\n class someClass {\n }\n}\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ declare const internalConst = 10;\n/**@internal*/ declare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":false,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"-46239946948-declare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -5801,7 +5803,7 @@ declare var c: C; "../../../../lib/lib.d.ts": "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; };", "../../../first/bin/first-output.d.ts": "21400511536-/**@internal*/ interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "-41025113601-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n /**@internal*/ constructor();\n /**@internal*/ prop: string;\n /**@internal*/ method(): void;\n /**@internal*/ get c(): number;\n /**@internal*/ set c(val: number);\n}\ndeclare namespace normalN {\n /**@internal*/ class C {\n }\n /**@internal*/ function foo(): void;\n /**@internal*/ namespace someNamespace {\n class C {\n }\n }\n /**@internal*/ namespace someOther.something {\n class someClass {\n }\n }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ type internalType = internalC;\n /**@internal*/ const internalConst = 10;\n /**@internal*/ enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\n/**@internal*/ declare class internalC {\n}\n/**@internal*/ declare function internalfoo(): void;\n/**@internal*/ declare namespace internalNamespace {\n class someClass {\n }\n}\n/**@internal*/ declare namespace internalOther.something {\n class someClass {\n }\n}\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ declare const internalConst = 10;\n/**@internal*/ declare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -5825,7 +5827,7 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 10824 + "size": 10819 } @@ -5833,37 +5835,37 @@ declare var c: C; Change:: incremental-declaration-doesnt-change Input:: //// [/src/first/first_PART1.ts] -/**@internal*/ interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +/**@internal*/ interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:00:54 AM] Projects in this build: +[12:01:06 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:55 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:01:07 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:00:56 AM] Building project '/src/first/tsconfig.json'... +[12:01:08 AM] Building project '/src/first/tsconfig.json'... -[12:01:04 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:01:16 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:05 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:01:17 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:01:06 AM] Updating output of project '/src/third/tsconfig.json'... +[12:01:18 AM] Updating output of project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -5901,10 +5903,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >/**@internal*/ interface TheFirst { - > none: any; - >} - > +1 >/**@internal*/ interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -5927,12 +5929,12 @@ sourceFile:../first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -5960,7 +5962,7 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > +1 > > 2 >console 3 > . @@ -6032,7 +6034,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -6046,7 +6048,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) @@ -6055,7 +6057,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":120,"kind":"text"}],"mapHash":"-2702861355-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-20052626506-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":52,"kind":"internal"},{"pos":53,"end":164,"kind":"text"}],"mapHash":"32981141636-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,cAAc,CAAC,UAAU,QAAQ;IAC7B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"23779352887-/**@internal*/ interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-39212946152-/**@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":false,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"21400511536-/**@internal*/ interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":120,"kind":"text"}],"mapHash":"-2702861355-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-20052626506-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":52,"kind":"internal"},{"pos":53,"end":164,"kind":"text"}],"mapHash":"32981141636-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,cAAc,CAAC,UAAU,QAAQ;IAC7B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"23779352887-/**@internal*/ interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","248375721-/**@internal*/ interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":false,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"21400511536-/**@internal*/ interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -6134,9 +6136,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "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; };", - "../first_part1.ts": "-39212946152-/**@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "248375721-/**@internal*/ interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -6165,7 +6167,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2801 + "size": 2772 } //// [/src/third/thirdjs/output/third-output.js] @@ -6303,10 +6305,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >/**@internal*/ interface TheFirst { - > none: any; - >} - > +1 >/**@internal*/ interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -6329,12 +6331,12 @@ sourceFile:../../../first/first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -6362,7 +6364,7 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > +1 > > 2 >console 3 > . @@ -6434,7 +6436,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -6448,7 +6450,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) @@ -6464,19 +6466,19 @@ sourceFile:../../../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(8, 5) Source(5, 11) + SourceIndex(3) @@ -6500,7 +6502,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -6517,7 +6519,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -6539,7 +6541,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(12, 5) Source(8, 5) + SourceIndex(3) @@ -6551,8 +6553,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -6571,19 +6573,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(14, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(14, 2) Source(11, 2) + SourceIndex(3) @@ -6596,7 +6598,7 @@ sourceFile:../../../second/second_part1.ts >>>var normalC = /** @class */ (function () { 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > > 1->Emitted(15, 1) Source(13, 1) + SourceIndex(3) @@ -7901,10 +7903,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(104, 5) Source(5, 1) + SourceIndex(4) @@ -7931,7 +7933,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -7953,7 +7955,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(107, 5) Source(4, 5) + SourceIndex(4) @@ -7962,7 +7964,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(108, 5) Source(5, 1) + SourceIndex(4) @@ -7977,10 +7979,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(109, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(109, 2) Source(5, 2) + SourceIndex(4) @@ -8025,7 +8027,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -8042,7 +8044,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":120,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":120,"kind":"text"}]},{"pos":120,"end":3453,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":120,"end":3453,"kind":"text"}]},{"pos":3453,"end":3487,"kind":"text"}],"mapHash":"76555087780-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,cAAc,CAAC;IAAgB,CAAC;IAEhC,cAAc,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAApB,cAAc,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACrC,cAAc,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,cAAc,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IACjC,cAAc,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACvC,cAAc,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACnE,cAAc,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACjF,cAAc,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE1D,cAAc,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC/C,cAAc,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,cAAc,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AACjC,cAAc,CAAC,SAAS,WAAW,KAAI,CAAC;AACxC,cAAc,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACxE,cAAc,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC9E,cAAc,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEnE,cAAc,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACxC,cAAc,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"56873260890-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = /** @class */ (function () {\n /**@internal*/ function normalC() {\n }\n /**@internal*/ normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n /**@internal*/ get: function () { return 10; },\n /**@internal*/ set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n /**@internal*/ var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n /**@internal*/ function foo() { }\n normalN.foo = foo;\n /**@internal*/ var someNamespace;\n (function (someNamespace) {\n var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n /**@internal*/ var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n /**@internal*/ normalN.someImport = someNamespace.C;\n /**@internal*/ normalN.internalConst = 10;\n /**@internal*/ var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\n/**@internal*/ var internalC = /** @class */ (function () {\n function internalC() {\n }\n return internalC;\n}());\n/**@internal*/ function internalfoo() { }\n/**@internal*/ var internalNamespace;\n(function (internalNamespace) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\n/**@internal*/ var internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\n/**@internal*/ var internalImport = internalNamespace.someClass;\n/**@internal*/ var internalConst = 10;\n/**@internal*/ var internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = /** @class */ (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":111,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":111,"kind":"text"}]},{"pos":111,"end":260,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":111,"end":260,"kind":"text"}]},{"pos":260,"end":278,"kind":"text"}],"mapHash":"16014976674-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-51018023562-declare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","21400511536-/**@internal*/ interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-41025113601-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n /**@internal*/ constructor();\n /**@internal*/ prop: string;\n /**@internal*/ method(): void;\n /**@internal*/ get c(): number;\n /**@internal*/ set c(val: number);\n}\ndeclare namespace normalN {\n /**@internal*/ class C {\n }\n /**@internal*/ function foo(): void;\n /**@internal*/ namespace someNamespace {\n class C {\n }\n }\n /**@internal*/ namespace someOther.something {\n class someClass {\n }\n }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ type internalType = internalC;\n /**@internal*/ const internalConst = 10;\n /**@internal*/ enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\n/**@internal*/ declare class internalC {\n}\n/**@internal*/ declare function internalfoo(): void;\n/**@internal*/ declare namespace internalNamespace {\n class someClass {\n }\n}\n/**@internal*/ declare namespace internalOther.something {\n class someClass {\n }\n}\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ declare const internalConst = 10;\n/**@internal*/ declare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":false,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"-46239946948-declare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":120,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":120,"kind":"text"}]},{"pos":120,"end":3453,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":120,"end":3453,"kind":"text"}]},{"pos":3453,"end":3487,"kind":"text"}],"mapHash":"76555087780-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,cAAc,CAAC;IAAgB,CAAC;IAEhC,cAAc,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAApB,cAAc,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACrC,cAAc,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,cAAc,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IACjC,cAAc,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACvC,cAAc,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACnE,cAAc,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACjF,cAAc,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE1D,cAAc,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC/C,cAAc,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,cAAc,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AACjC,cAAc,CAAC,SAAS,WAAW,KAAI,CAAC;AACxC,cAAc,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACxE,cAAc,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC9E,cAAc,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEnE,cAAc,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACxC,cAAc,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"56873260890-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = /** @class */ (function () {\n /**@internal*/ function normalC() {\n }\n /**@internal*/ normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n /**@internal*/ get: function () { return 10; },\n /**@internal*/ set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n /**@internal*/ var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n /**@internal*/ function foo() { }\n normalN.foo = foo;\n /**@internal*/ var someNamespace;\n (function (someNamespace) {\n var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n /**@internal*/ var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n /**@internal*/ normalN.someImport = someNamespace.C;\n /**@internal*/ normalN.internalConst = 10;\n /**@internal*/ var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\n/**@internal*/ var internalC = /** @class */ (function () {\n function internalC() {\n }\n return internalC;\n}());\n/**@internal*/ function internalfoo() { }\n/**@internal*/ var internalNamespace;\n(function (internalNamespace) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\n/**@internal*/ var internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\n/**@internal*/ var internalImport = internalNamespace.someClass;\n/**@internal*/ var internalConst = 10;\n/**@internal*/ var internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = /** @class */ (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":111,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":111,"kind":"text"}]},{"pos":111,"end":260,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":111,"end":260,"kind":"text"}]},{"pos":260,"end":278,"kind":"text"}],"mapHash":"16014976674-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-51018023562-declare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","21400511536-/**@internal*/ interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-41025113601-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n /**@internal*/ constructor();\n /**@internal*/ prop: string;\n /**@internal*/ method(): void;\n /**@internal*/ get c(): number;\n /**@internal*/ set c(val: number);\n}\ndeclare namespace normalN {\n /**@internal*/ class C {\n }\n /**@internal*/ function foo(): void;\n /**@internal*/ namespace someNamespace {\n class C {\n }\n }\n /**@internal*/ namespace someOther.something {\n class someClass {\n }\n }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ type internalType = internalC;\n /**@internal*/ const internalConst = 10;\n /**@internal*/ enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\n/**@internal*/ declare class internalC {\n}\n/**@internal*/ declare function internalfoo(): void;\n/**@internal*/ declare namespace internalNamespace {\n class someClass {\n }\n}\n/**@internal*/ declare namespace internalOther.something {\n class someClass {\n }\n}\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ declare const internalConst = 10;\n/**@internal*/ declare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":false,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"-46239946948-declare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -8299,7 +8301,7 @@ declare var c: C; "../../../../lib/lib.d.ts": "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; };", "../../../first/bin/first-output.d.ts": "21400511536-/**@internal*/ interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "-41025113601-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n /**@internal*/ constructor();\n /**@internal*/ prop: string;\n /**@internal*/ method(): void;\n /**@internal*/ get c(): number;\n /**@internal*/ set c(val: number);\n}\ndeclare namespace normalN {\n /**@internal*/ class C {\n }\n /**@internal*/ function foo(): void;\n /**@internal*/ namespace someNamespace {\n class C {\n }\n }\n /**@internal*/ namespace someOther.something {\n class someClass {\n }\n }\n /**@internal*/ export import someImport = someNamespace.C;\n /**@internal*/ type internalType = internalC;\n /**@internal*/ const internalConst = 10;\n /**@internal*/ enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\n/**@internal*/ declare class internalC {\n}\n/**@internal*/ declare function internalfoo(): void;\n/**@internal*/ declare namespace internalNamespace {\n class someClass {\n }\n}\n/**@internal*/ declare namespace internalOther.something {\n class someClass {\n }\n}\n/**@internal*/ import internalImport = internalNamespace.someClass;\n/**@internal*/ type internalType = internalC;\n/**@internal*/ declare const internalConst = 10;\n/**@internal*/ declare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -8323,6 +8325,6 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 10880 + "size": 10875 } diff --git a/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-when-few-members-of-enum-are-internal.js b/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-when-few-members-of-enum-are-internal.js index 94387c99106da..be2c29a32689b 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-when-few-members-of-enum-are-internal.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-when-few-members-of-enum-are-internal.js @@ -38,141 +38,143 @@ enum TokenFlags { /* @internal */ NumericLiteralFlags = Scientific | Octal | HexSpecifier | BinaryOrOctalSpecifier | ContainsSeparator } -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); //// [/src/first/first_part2.ts] -console.log(f()); +console.log(f()); //// [/src/first/first_part3.ts] -function f() { - return "JS does hoists"; -} +function f() { + return "JS does hoists"; +} + //// [/src/first/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "outFile": "./bin/first-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "first_PART1.ts", - "first_part2.ts", - "first_part3.ts" - ], - "references": [ - ] +{ + "compilerOptions": { + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "outFile": "./bin/first-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "first_PART1.ts", + "first_part2.ts", + "first_part3.ts" + ], + "references": [] } - //// [/src/second/second_part1.ts] -namespace N { - // Comment text -} - -namespace N { - function f() { - console.log('testing'); - } - - f(); -} +namespace N { + // Comment text +} + +namespace N { + function f() { + console.log('testing'); + } + + f(); +} //// [/src/second/second_part2.ts] -class C { - doSomething() { - console.log("something got done"); - } -} +class C { + doSomething() { + console.log("something got done"); + } +} //// [/src/second/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "../2/second-output.js", - "skipDefaultLibCheck": true - }, - "references": [ - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "../2/second-output.js", + "skipDefaultLibCheck": true + }, + "references": [] } - //// [/src/third/third_part1.ts] -var c = new C(); -c.doSomething(); +var c = new C(); +c.doSomething(); //// [/src/third/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, "declaration": true, - "stripInternal": true, - "outFile": "./thirdjs/output/third-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "third_part1.ts" - ], - "references": [ - { "path": "../first", "prepend": true }, - { "path": "../second", "prepend": true }, - ] + "stripInternal": true, + "outFile": "./thirdjs/output/third-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "third_part1.ts" + ], + "references": [ + { + "path": "../first", + "prepend": true + }, + { + "path": "../second", + "prepend": true + } + ] } - Output:: /lib/tsc --b /src/third --verbose -[12:00:08 AM] Projects in this build: +[12:00:20 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:09 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist +[12:00:21 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist -[12:00:10 AM] Building project '/src/first/tsconfig.json'... +[12:00:22 AM] Building project '/src/first/tsconfig.json'... -[12:00:20 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist +[12:00:32 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist -[12:00:21 AM] Building project '/src/second/tsconfig.json'... +[12:00:33 AM] Building project '/src/second/tsconfig.json'... -[12:00:31 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist +[12:00:43 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist -[12:00:32 AM] Building project '/src/third/tsconfig.json'... +[12:00:44 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -218,8 +220,8 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(2, 2) Source(3, 2) + SourceIndex(0) --- @@ -228,8 +230,8 @@ sourceFile:../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -242,12 +244,12 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(4, 2) Source(11, 2) + SourceIndex(0) --- @@ -270,7 +272,7 @@ sourceFile:../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(6, 5) Source(2, 5) + SourceIndex(1) @@ -279,9 +281,9 @@ sourceFile:../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(7, 2) Source(5, 2) + SourceIndex(1) --- @@ -325,19 +327,19 @@ sourceFile:../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1 >namespace N { - > // Comment text - >} - > +1 >namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) 2 >Emitted(1, 5) Source(5, 11) + SourceIndex(0) @@ -361,7 +363,7 @@ sourceFile:../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -378,7 +380,7 @@ sourceFile:../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -400,7 +402,7 @@ sourceFile:../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(5, 5) Source(8, 5) + SourceIndex(0) @@ -412,8 +414,8 @@ sourceFile:../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -432,19 +434,19 @@ sourceFile:../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(7, 1) Source(11, 1) + SourceIndex(0) 2 >Emitted(7, 2) Source(11, 2) + SourceIndex(0) @@ -474,10 +476,10 @@ sourceFile:../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(10, 5) Source(5, 1) + SourceIndex(1) @@ -504,7 +506,7 @@ sourceFile:../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -526,7 +528,7 @@ sourceFile:../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(13, 5) Source(4, 5) + SourceIndex(1) @@ -535,7 +537,7 @@ sourceFile:../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(14, 5) Source(5, 1) + SourceIndex(1) @@ -550,10 +552,10 @@ sourceFile:../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(15, 1) Source(5, 1) + SourceIndex(1) 2 >Emitted(15, 2) Source(5, 2) + SourceIndex(1) @@ -563,7 +565,7 @@ sourceFile:../second/second_part2.ts >>>//# sourceMappingURL=second-output.js.map //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":270,"kind":"text"}],"mapHash":"9890117190-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-2912899787-var N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":93,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-16005591226-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["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; };","-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":270,"kind":"text"}],"mapHash":"9890117190-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-2912899787-var N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":93,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-16005591226-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["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; };","-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n","3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -640,8 +642,8 @@ declare class C { ], "fileInfos": { "../../lib/lib.d.ts": "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; };", - "../second/second_part1.ts": "-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n", - "../second/second_part2.ts": "9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n" + "../second/second_part1.ts": "-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", + "../second/second_part2.ts": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n" }, "root": [ [ @@ -668,7 +670,7 @@ declare class C { "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 2736 + "size": 2704 } //// [/src/first/bin/first-output.d.ts] @@ -917,7 +919,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -932,7 +934,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(18, 2) Source(25, 2) + SourceIndex(0) --- @@ -943,8 +945,8 @@ sourceFile:../first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -962,8 +964,8 @@ sourceFile:../first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -977,7 +979,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -992,7 +994,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(22, 2) Source(31, 2) + SourceIndex(0) --- @@ -1009,8 +1011,8 @@ sourceFile:../first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(23, 1) Source(1, 1) + SourceIndex(2) 2 >Emitted(23, 18) Source(1, 10) + SourceIndex(2) @@ -1326,10 +1328,10 @@ sourceFile:../first_PART1.ts 5 > ^^^^^^^^^^^^^^ 6 > ^ 1 > - >interface TheFirst { - > none: any; - >} - > + >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -1353,12 +1355,12 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -1430,7 +1432,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -1444,7 +1446,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(22, 1) Source(3, 1) + SourceIndex(2) @@ -1453,7 +1455,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":1109,"kind":"text"}],"mapHash":"-31206929079-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,IAAK,UAqBJ;AArBD,WAAK,UAAU;IACX,2CAAQ,CAAA;IAER,uEAA2B,CAAA;IAE3B,6EAA8B,CAAA;IAE9B,2DAAqB,CAAA;IAErB,6EAA8B,CAAA;IAC9B,wDAAmB,CAAA;IACnB,8CAAc,CAAA;IACd,4DAAqB,CAAA;IACrB,mEAAwB,CAAA;IACxB,iEAAuB,CAAA;IAEvB,uEAA0B,CAAA;IAE1B,iFAAyD,CAAA;IAEzD,4EAAoG,CAAA;AACxG,CAAC,EArBI,UAAU,KAAV,UAAU,QAqBd;AAKD,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AChCf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"44196247116-var TokenFlags;\n(function (TokenFlags) {\n TokenFlags[TokenFlags[\"None\"] = 0] = \"None\";\n TokenFlags[TokenFlags[\"PrecedingLineBreak\"] = 1] = \"PrecedingLineBreak\";\n TokenFlags[TokenFlags[\"PrecedingJSDocComment\"] = 2] = \"PrecedingJSDocComment\";\n TokenFlags[TokenFlags[\"Unterminated\"] = 4] = \"Unterminated\";\n TokenFlags[TokenFlags[\"ExtendedUnicodeEscape\"] = 8] = \"ExtendedUnicodeEscape\";\n TokenFlags[TokenFlags[\"Scientific\"] = 16] = \"Scientific\";\n TokenFlags[TokenFlags[\"Octal\"] = 32] = \"Octal\";\n TokenFlags[TokenFlags[\"HexSpecifier\"] = 64] = \"HexSpecifier\";\n TokenFlags[TokenFlags[\"BinarySpecifier\"] = 128] = \"BinarySpecifier\";\n TokenFlags[TokenFlags[\"OctalSpecifier\"] = 256] = \"OctalSpecifier\";\n TokenFlags[TokenFlags[\"ContainsSeparator\"] = 512] = \"ContainsSeparator\";\n TokenFlags[TokenFlags[\"BinaryOrOctalSpecifier\"] = 384] = \"BinaryOrOctalSpecifier\";\n TokenFlags[TokenFlags[\"NumericLiteralFlags\"] = 1008] = \"NumericLiteralFlags\";\n})(TokenFlags || (TokenFlags = {}));\nvar s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":40,"kind":"text"},{"pos":40,"end":151,"kind":"internal"},{"pos":152,"end":265,"kind":"text"},{"pos":265,"end":358,"kind":"internal"},{"pos":359,"end":510,"kind":"text"}],"mapHash":"12756767772-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,aAAK,UAAU;IACX,IAAI,IAAI;IAER,kBAAkB,IAAS;IAE3B,qBAAqB,IAAS;IAE9B,YAAY,IAAS;IAErB,qBAAqB,IAAS;IAC9B,UAAU,KAAS;IACnB,KAAK,KAAS;IACd,YAAY,KAAS;IACrB,eAAe,MAAS;IACxB,cAAc,MAAS;IAEvB,iBAAiB,MAAS;IAE1B,sBAAsB,MAAmC;IAEzD,mBAAmB,OAAiF;CACvG;AACD,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AE9BD,iBAAS,CAAC,WAET\"}","hash":"9708454722-declare enum TokenFlags {\n None = 0,\n PrecedingLineBreak = 1,\n PrecedingJSDocComment = 2,\n Unterminated = 4,\n ExtendedUnicodeEscape = 8,\n Scientific = 16,\n Octal = 32,\n HexSpecifier = 64,\n BinarySpecifier = 128,\n OctalSpecifier = 256,\n ContainsSeparator = 512,\n BinaryOrOctalSpecifier = 384,\n NumericLiteralFlags = 1008\n}\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-78369044808-enum TokenFlags {\n None = 0,\n /* @internal */\n PrecedingLineBreak = 1 << 0,\n /* @internal */\n PrecedingJSDocComment = 1 << 1,\n /* @internal */\n Unterminated = 1 << 2,\n /* @internal */\n ExtendedUnicodeEscape = 1 << 3,\n Scientific = 1 << 4,\n Octal = 1 << 5,\n HexSpecifier = 1 << 6,\n BinarySpecifier = 1 << 7,\n OctalSpecifier = 1 << 8,\n /* @internal */\n ContainsSeparator = 1 << 9,\n /* @internal */\n BinaryOrOctalSpecifier = BinarySpecifier | OctalSpecifier,\n /* @internal */\n NumericLiteralFlags = Scientific | Octal | HexSpecifier | BinaryOrOctalSpecifier | ContainsSeparator\n}\ninterface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"16496689275-declare enum TokenFlags {\n None = 0,\n PrecedingLineBreak = 1,\n PrecedingJSDocComment = 2,\n Unterminated = 4,\n ExtendedUnicodeEscape = 8,\n Scientific = 16,\n Octal = 32,\n HexSpecifier = 64,\n BinarySpecifier = 128,\n OctalSpecifier = 256,\n ContainsSeparator = 512,\n BinaryOrOctalSpecifier = 384,\n NumericLiteralFlags = 1008\n}\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":1109,"kind":"text"}],"mapHash":"-31206929079-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,IAAK,UAqBJ;AArBD,WAAK,UAAU;IACX,2CAAQ,CAAA;IAER,uEAA2B,CAAA;IAE3B,6EAA8B,CAAA;IAE9B,2DAAqB,CAAA;IAErB,6EAA8B,CAAA;IAC9B,wDAAmB,CAAA;IACnB,8CAAc,CAAA;IACd,4DAAqB,CAAA;IACrB,mEAAwB,CAAA;IACxB,iEAAuB,CAAA;IAEvB,uEAA0B,CAAA;IAE1B,iFAAyD,CAAA;IAEzD,4EAAoG,CAAA;AACxG,CAAC,EArBI,UAAU,KAAV,UAAU,QAqBd;AAKD,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AChCf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"44196247116-var TokenFlags;\n(function (TokenFlags) {\n TokenFlags[TokenFlags[\"None\"] = 0] = \"None\";\n TokenFlags[TokenFlags[\"PrecedingLineBreak\"] = 1] = \"PrecedingLineBreak\";\n TokenFlags[TokenFlags[\"PrecedingJSDocComment\"] = 2] = \"PrecedingJSDocComment\";\n TokenFlags[TokenFlags[\"Unterminated\"] = 4] = \"Unterminated\";\n TokenFlags[TokenFlags[\"ExtendedUnicodeEscape\"] = 8] = \"ExtendedUnicodeEscape\";\n TokenFlags[TokenFlags[\"Scientific\"] = 16] = \"Scientific\";\n TokenFlags[TokenFlags[\"Octal\"] = 32] = \"Octal\";\n TokenFlags[TokenFlags[\"HexSpecifier\"] = 64] = \"HexSpecifier\";\n TokenFlags[TokenFlags[\"BinarySpecifier\"] = 128] = \"BinarySpecifier\";\n TokenFlags[TokenFlags[\"OctalSpecifier\"] = 256] = \"OctalSpecifier\";\n TokenFlags[TokenFlags[\"ContainsSeparator\"] = 512] = \"ContainsSeparator\";\n TokenFlags[TokenFlags[\"BinaryOrOctalSpecifier\"] = 384] = \"BinaryOrOctalSpecifier\";\n TokenFlags[TokenFlags[\"NumericLiteralFlags\"] = 1008] = \"NumericLiteralFlags\";\n})(TokenFlags || (TokenFlags = {}));\nvar s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":40,"kind":"text"},{"pos":40,"end":151,"kind":"internal"},{"pos":152,"end":265,"kind":"text"},{"pos":265,"end":358,"kind":"internal"},{"pos":359,"end":510,"kind":"text"}],"mapHash":"12756767772-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,aAAK,UAAU;IACX,IAAI,IAAI;IAER,kBAAkB,IAAS;IAE3B,qBAAqB,IAAS;IAE9B,YAAY,IAAS;IAErB,qBAAqB,IAAS;IAC9B,UAAU,KAAS;IACnB,KAAK,KAAS;IACd,YAAY,KAAS;IACrB,eAAe,MAAS;IACxB,cAAc,MAAS;IAEvB,iBAAiB,MAAS;IAE1B,sBAAsB,MAAmC;IAEzD,mBAAmB,OAAiF;CACvG;AACD,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AE9BD,iBAAS,CAAC,WAET\"}","hash":"9708454722-declare enum TokenFlags {\n None = 0,\n PrecedingLineBreak = 1,\n PrecedingJSDocComment = 2,\n Unterminated = 4,\n ExtendedUnicodeEscape = 8,\n Scientific = 16,\n Octal = 32,\n HexSpecifier = 64,\n BinarySpecifier = 128,\n OctalSpecifier = 256,\n ContainsSeparator = 512,\n BinaryOrOctalSpecifier = 384,\n NumericLiteralFlags = 1008\n}\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-71688230743-enum TokenFlags {\n None = 0,\n /* @internal */\n PrecedingLineBreak = 1 << 0,\n /* @internal */\n PrecedingJSDocComment = 1 << 1,\n /* @internal */\n Unterminated = 1 << 2,\n /* @internal */\n ExtendedUnicodeEscape = 1 << 3,\n Scientific = 1 << 4,\n Octal = 1 << 5,\n HexSpecifier = 1 << 6,\n BinarySpecifier = 1 << 7,\n OctalSpecifier = 1 << 8,\n /* @internal */\n ContainsSeparator = 1 << 9,\n /* @internal */\n BinaryOrOctalSpecifier = BinarySpecifier | OctalSpecifier,\n /* @internal */\n NumericLiteralFlags = Scientific | Octal | HexSpecifier | BinaryOrOctalSpecifier | ContainsSeparator\n}\ninterface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"16496689275-declare enum TokenFlags {\n None = 0,\n PrecedingLineBreak = 1,\n PrecedingJSDocComment = 2,\n Unterminated = 4,\n ExtendedUnicodeEscape = 8,\n Scientific = 16,\n Octal = 32,\n HexSpecifier = 64,\n BinarySpecifier = 128,\n OctalSpecifier = 256,\n ContainsSeparator = 512,\n BinaryOrOctalSpecifier = 384,\n NumericLiteralFlags = 1008\n}\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -1585,9 +1587,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "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; };", - "../first_part1.ts": "-78369044808-enum TokenFlags {\n None = 0,\n /* @internal */\n PrecedingLineBreak = 1 << 0,\n /* @internal */\n PrecedingJSDocComment = 1 << 1,\n /* @internal */\n Unterminated = 1 << 2,\n /* @internal */\n ExtendedUnicodeEscape = 1 << 3,\n Scientific = 1 << 4,\n Octal = 1 << 5,\n HexSpecifier = 1 << 6,\n BinarySpecifier = 1 << 7,\n OctalSpecifier = 1 << 8,\n /* @internal */\n ContainsSeparator = 1 << 9,\n /* @internal */\n BinaryOrOctalSpecifier = BinarySpecifier | OctalSpecifier,\n /* @internal */\n NumericLiteralFlags = Scientific | Octal | HexSpecifier | BinaryOrOctalSpecifier | ContainsSeparator\n}\ninterface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-71688230743-enum TokenFlags {\n None = 0,\n /* @internal */\n PrecedingLineBreak = 1 << 0,\n /* @internal */\n PrecedingJSDocComment = 1 << 1,\n /* @internal */\n Unterminated = 1 << 2,\n /* @internal */\n ExtendedUnicodeEscape = 1 << 3,\n Scientific = 1 << 4,\n Octal = 1 << 5,\n HexSpecifier = 1 << 6,\n BinarySpecifier = 1 << 7,\n OctalSpecifier = 1 << 8,\n /* @internal */\n ContainsSeparator = 1 << 9,\n /* @internal */\n BinaryOrOctalSpecifier = BinarySpecifier | OctalSpecifier,\n /* @internal */\n NumericLiteralFlags = Scientific | Octal | HexSpecifier | BinaryOrOctalSpecifier | ContainsSeparator\n}\ninterface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -1616,7 +1618,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 5809 + "size": 5783 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -1785,7 +1787,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -1800,7 +1802,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(11, 2) Source(25, 2) + SourceIndex(0) --- @@ -1811,8 +1813,8 @@ sourceFile:../../../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -1830,8 +1832,8 @@ sourceFile:../../../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -1845,7 +1847,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -1860,7 +1862,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(15, 2) Source(31, 2) + SourceIndex(0) --- @@ -1876,8 +1878,8 @@ sourceFile:../../../first/first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(16, 1) Source(1, 1) + SourceIndex(1) 2 >Emitted(16, 18) Source(1, 10) + SourceIndex(1) @@ -1905,8 +1907,8 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(18, 2) Source(3, 2) + SourceIndex(2) --- @@ -1915,8 +1917,8 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -1929,12 +1931,12 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(20, 2) Source(11, 2) + SourceIndex(2) --- @@ -1957,7 +1959,7 @@ sourceFile:../../../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(22, 5) Source(2, 5) + SourceIndex(3) @@ -1966,9 +1968,9 @@ sourceFile:../../../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(23, 2) Source(5, 2) + SourceIndex(3) --- @@ -2323,10 +2325,10 @@ sourceFile:../../../first/first_PART1.ts 5 > ^^^^^^^^^^^^^^ 6 > ^ 1 > - >interface TheFirst { - > none: any; - >} - > + >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -2350,12 +2352,12 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -2427,7 +2429,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -2441,7 +2443,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(22, 1) Source(3, 1) + SourceIndex(2) @@ -2457,19 +2459,19 @@ sourceFile:../../../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(23, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(23, 5) Source(5, 11) + SourceIndex(3) @@ -2493,7 +2495,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -2510,7 +2512,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -2532,7 +2534,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(27, 5) Source(8, 5) + SourceIndex(3) @@ -2544,8 +2546,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -2564,19 +2566,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(29, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(29, 2) Source(11, 2) + SourceIndex(3) @@ -2606,10 +2608,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(32, 5) Source(5, 1) + SourceIndex(4) @@ -2636,7 +2638,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -2658,7 +2660,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(35, 5) Source(4, 5) + SourceIndex(4) @@ -2667,7 +2669,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(36, 5) Source(5, 1) + SourceIndex(4) @@ -2682,10 +2684,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(37, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(37, 2) Source(5, 2) + SourceIndex(4) @@ -2730,7 +2732,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -2747,7 +2749,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":1109,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":1109,"kind":"text"}]},{"pos":1109,"end":1379,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":1109,"end":1379,"kind":"text"}]},{"pos":1379,"end":1413,"kind":"text"}],"mapHash":"82804019774-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,IAAK,UAqBJ;AArBD,WAAK,UAAU;IACX,2CAAQ,CAAA;IAER,uEAA2B,CAAA;IAE3B,6EAA8B,CAAA;IAE9B,2DAAqB,CAAA;IAErB,6EAA8B,CAAA;IAC9B,wDAAmB,CAAA;IACnB,8CAAc,CAAA;IACd,4DAAqB,CAAA;IACrB,mEAAwB,CAAA;IACxB,iEAAuB,CAAA;IAEvB,uEAA0B,CAAA;IAE1B,iFAAyD,CAAA;IAEzD,4EAAoG,CAAA;AACxG,CAAC,EArBI,UAAU,KAAV,UAAU,QAqBd;AAKD,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AChCf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"81736370692-var TokenFlags;\n(function (TokenFlags) {\n TokenFlags[TokenFlags[\"None\"] = 0] = \"None\";\n TokenFlags[TokenFlags[\"PrecedingLineBreak\"] = 1] = \"PrecedingLineBreak\";\n TokenFlags[TokenFlags[\"PrecedingJSDocComment\"] = 2] = \"PrecedingJSDocComment\";\n TokenFlags[TokenFlags[\"Unterminated\"] = 4] = \"Unterminated\";\n TokenFlags[TokenFlags[\"ExtendedUnicodeEscape\"] = 8] = \"ExtendedUnicodeEscape\";\n TokenFlags[TokenFlags[\"Scientific\"] = 16] = \"Scientific\";\n TokenFlags[TokenFlags[\"Octal\"] = 32] = \"Octal\";\n TokenFlags[TokenFlags[\"HexSpecifier\"] = 64] = \"HexSpecifier\";\n TokenFlags[TokenFlags[\"BinarySpecifier\"] = 128] = \"BinarySpecifier\";\n TokenFlags[TokenFlags[\"OctalSpecifier\"] = 256] = \"OctalSpecifier\";\n TokenFlags[TokenFlags[\"ContainsSeparator\"] = 512] = \"ContainsSeparator\";\n TokenFlags[TokenFlags[\"BinaryOrOctalSpecifier\"] = 384] = \"BinaryOrOctalSpecifier\";\n TokenFlags[TokenFlags[\"NumericLiteralFlags\"] = 1008] = \"NumericLiteralFlags\";\n})(TokenFlags || (TokenFlags = {}));\nvar s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":304,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":304,"kind":"text"}]},{"pos":304,"end":397,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":304,"end":397,"kind":"text"}]},{"pos":397,"end":415,"kind":"text"}],"mapHash":"22013376427-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,aAAK,UAAU;IACX,IAAI,IAAI;IASR,UAAU,KAAS;IACnB,KAAK,KAAS;IACd,YAAY,KAAS;IACrB,eAAe,MAAS;IACxB,cAAc,MAAS;CAO1B;AACD,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AC9BD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"3834368531-declare enum TokenFlags {\n None = 0,\n Scientific = 16,\n Octal = 32,\n HexSpecifier = 64,\n BinarySpecifier = 128,\n OctalSpecifier = 256,\n}\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","16496689275-declare enum TokenFlags {\n None = 0,\n PrecedingLineBreak = 1,\n PrecedingJSDocComment = 2,\n Unterminated = 4,\n ExtendedUnicodeEscape = 8,\n Scientific = 16,\n Octal = 32,\n HexSpecifier = 64,\n BinarySpecifier = 128,\n OctalSpecifier = 256,\n ContainsSeparator = 512,\n BinaryOrOctalSpecifier = 384,\n NumericLiteralFlags = 1008\n}\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"2647420825-declare enum TokenFlags {\n None = 0,\n Scientific = 16,\n Octal = 32,\n HexSpecifier = 64,\n BinarySpecifier = 128,\n OctalSpecifier = 256,\n}\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":1109,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":1109,"kind":"text"}]},{"pos":1109,"end":1379,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":1109,"end":1379,"kind":"text"}]},{"pos":1379,"end":1413,"kind":"text"}],"mapHash":"82804019774-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,IAAK,UAqBJ;AArBD,WAAK,UAAU;IACX,2CAAQ,CAAA;IAER,uEAA2B,CAAA;IAE3B,6EAA8B,CAAA;IAE9B,2DAAqB,CAAA;IAErB,6EAA8B,CAAA;IAC9B,wDAAmB,CAAA;IACnB,8CAAc,CAAA;IACd,4DAAqB,CAAA;IACrB,mEAAwB,CAAA;IACxB,iEAAuB,CAAA;IAEvB,uEAA0B,CAAA;IAE1B,iFAAyD,CAAA;IAEzD,4EAAoG,CAAA;AACxG,CAAC,EArBI,UAAU,KAAV,UAAU,QAqBd;AAKD,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AChCf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"81736370692-var TokenFlags;\n(function (TokenFlags) {\n TokenFlags[TokenFlags[\"None\"] = 0] = \"None\";\n TokenFlags[TokenFlags[\"PrecedingLineBreak\"] = 1] = \"PrecedingLineBreak\";\n TokenFlags[TokenFlags[\"PrecedingJSDocComment\"] = 2] = \"PrecedingJSDocComment\";\n TokenFlags[TokenFlags[\"Unterminated\"] = 4] = \"Unterminated\";\n TokenFlags[TokenFlags[\"ExtendedUnicodeEscape\"] = 8] = \"ExtendedUnicodeEscape\";\n TokenFlags[TokenFlags[\"Scientific\"] = 16] = \"Scientific\";\n TokenFlags[TokenFlags[\"Octal\"] = 32] = \"Octal\";\n TokenFlags[TokenFlags[\"HexSpecifier\"] = 64] = \"HexSpecifier\";\n TokenFlags[TokenFlags[\"BinarySpecifier\"] = 128] = \"BinarySpecifier\";\n TokenFlags[TokenFlags[\"OctalSpecifier\"] = 256] = \"OctalSpecifier\";\n TokenFlags[TokenFlags[\"ContainsSeparator\"] = 512] = \"ContainsSeparator\";\n TokenFlags[TokenFlags[\"BinaryOrOctalSpecifier\"] = 384] = \"BinaryOrOctalSpecifier\";\n TokenFlags[TokenFlags[\"NumericLiteralFlags\"] = 1008] = \"NumericLiteralFlags\";\n})(TokenFlags || (TokenFlags = {}));\nvar s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":304,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":304,"kind":"text"}]},{"pos":304,"end":397,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":304,"end":397,"kind":"text"}]},{"pos":397,"end":415,"kind":"text"}],"mapHash":"22013376427-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,aAAK,UAAU;IACX,IAAI,IAAI;IASR,UAAU,KAAS;IACnB,KAAK,KAAS;IACd,YAAY,KAAS;IACrB,eAAe,MAAS;IACxB,cAAc,MAAS;CAO1B;AACD,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AC9BD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"3834368531-declare enum TokenFlags {\n None = 0,\n Scientific = 16,\n Octal = 32,\n HexSpecifier = 64,\n BinarySpecifier = 128,\n OctalSpecifier = 256,\n}\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","16496689275-declare enum TokenFlags {\n None = 0,\n PrecedingLineBreak = 1,\n PrecedingJSDocComment = 2,\n Unterminated = 4,\n ExtendedUnicodeEscape = 8,\n Scientific = 16,\n Octal = 32,\n HexSpecifier = 64,\n BinarySpecifier = 128,\n OctalSpecifier = 256,\n ContainsSeparator = 512,\n BinaryOrOctalSpecifier = 384,\n NumericLiteralFlags = 1008\n}\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"2647420825-declare enum TokenFlags {\n None = 0,\n Scientific = 16,\n Octal = 32,\n HexSpecifier = 64,\n BinarySpecifier = 128,\n OctalSpecifier = 256,\n}\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -2939,7 +2941,7 @@ declare var c: C; "../../../../lib/lib.d.ts": "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; };", "../../../first/bin/first-output.d.ts": "16496689275-declare enum TokenFlags {\n None = 0,\n PrecedingLineBreak = 1,\n PrecedingJSDocComment = 2,\n Unterminated = 4,\n ExtendedUnicodeEscape = 8,\n Scientific = 16,\n Octal = 32,\n HexSpecifier = 64,\n BinarySpecifier = 128,\n OctalSpecifier = 256,\n ContainsSeparator = 512,\n BinaryOrOctalSpecifier = 384,\n NumericLiteralFlags = 1008\n}\ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -2963,6 +2965,6 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 6682 + "size": 6677 } diff --git a/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-when-one-two-three-are-prepended-in-order.js b/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-when-one-two-three-are-prepended-in-order.js index e87f01b7ebd80..e3c2fb5b5c083 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-when-one-two-three-are-prepended-in-order.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-when-one-two-three-are-prepended-in-order.js @@ -16,62 +16,61 @@ interface ReadonlyArray {} declare const console: { log(msg: any): void; }; //// [/src/first/first_PART1.ts] -/*@internal*/ interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +/*@internal*/ interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); //// [/src/first/first_part2.ts] -console.log(f()); +console.log(f()); //// [/src/first/first_part3.ts] -function f() { - return "JS does hoists"; -} +function f() { + return "JS does hoists"; +} + //// [/src/first/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "outFile": "./bin/first-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "first_PART1.ts", - "first_part2.ts", - "first_part3.ts" - ], - "references": [ - ] +{ + "compilerOptions": { + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "outFile": "./bin/first-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "first_PART1.ts", + "first_part2.ts", + "first_part3.ts" + ], + "references": [] } - //// [/src/second/second_part1.ts] -namespace N { - // Comment text -} - -namespace N { - function f() { - console.log('testing'); - } - - f(); -} +namespace N { + // Comment text +} + +namespace N { + function f() { + console.log('testing'); + } + + f(); +} class normalC { /*@internal*/ constructor() { } @@ -100,103 +99,103 @@ namespace normalN { /*@internal*/ enum internalEnum { a, b, c } //// [/src/second/second_part2.ts] -class C { - doSomething() { - console.log("something got done"); - } -} +class C { + doSomething() { + console.log("something got done"); + } +} //// [/src/second/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "../2/second-output.js", - "skipDefaultLibCheck": true - }, +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "../2/second-output.js", + "skipDefaultLibCheck": true + }, "references": [ - { "path": "../first", "prepend": true } - ] + { "path": "../first", "prepend": true } + ] } - //// [/src/third/third_part1.ts] -var c = new C(); -c.doSomething(); +var c = new C(); +c.doSomething(); //// [/src/third/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, "declaration": true, - "stripInternal": true, - "outFile": "./thirdjs/output/third-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "third_part1.ts" - ], - "references": [ - - { "path": "../second", "prepend": true }, - ] + "stripInternal": true, + "outFile": "./thirdjs/output/third-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "third_part1.ts" + ], + "references": [ + { + "path": "../second", + "prepend": true + } + ] } - Output:: /lib/tsc --b /src/third --verbose -[12:00:11 AM] Projects in this build: +[12:00:23 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:12 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist +[12:00:24 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist -[12:00:13 AM] Building project '/src/first/tsconfig.json'... +[12:00:25 AM] Building project '/src/first/tsconfig.json'... -[12:00:23 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist +[12:00:35 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist -[12:00:24 AM] Building project '/src/second/tsconfig.json'... +[12:00:36 AM] Building project '/src/second/tsconfig.json'... -[12:00:34 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist +[12:00:46 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist -[12:00:35 AM] Building project '/src/third/tsconfig.json'... +[12:00:47 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success readFiles:: { - "/src/third/tsconfig.json": 1, - "/src/second/tsconfig.json": 1, - "/src/first/tsconfig.json": 1, - "/src/first/first_PART1.ts": 1, - "/src/first/first_part2.ts": 1, - "/src/first/first_part3.ts": 1, - "/src/first/bin/first-output.d.ts": 1, - "/src/second/second_part1.ts": 1, - "/src/second/second_part2.ts": 1, - "/src/first/bin/first-output.js": 1, - "/src/first/bin/first-output.js.map": 1, - "/src/first/bin/first-output.d.ts.map": 1, - "/src/2/second-output.d.ts": 1, - "/src/third/third_part1.ts": 1, - "/src/2/second-output.js": 1, - "/src/2/second-output.js.map": 1, - "/src/2/second-output.d.ts.map": 1 + "/src/third/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/first/bin/first-output.d.ts": 1, + "/src/second/second_part1.ts": 1, + "/src/second/second_part2.ts": 1, + "/src/first/bin/first-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts": 1, + "/src/third/third_part1.ts": 1, + "/src/2/second-output.js": 1, + "/src/2/second-output.js.map": 1, + "/src/2/second-output.d.ts.map": 1 } //// [/src/2/second-output.d.ts] @@ -295,7 +294,7 @@ sourceFile:../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -310,7 +309,7 @@ sourceFile:../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -321,8 +320,8 @@ sourceFile:../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -340,8 +339,8 @@ sourceFile:../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -355,7 +354,7 @@ sourceFile:../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -370,7 +369,7 @@ sourceFile:../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -386,8 +385,8 @@ sourceFile:../first/first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) @@ -415,8 +414,8 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) --- @@ -425,8 +424,8 @@ sourceFile:../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -439,12 +438,12 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) --- @@ -452,7 +451,7 @@ sourceFile:../second/second_part1.ts 1-> 2 >^^^^^^^^^^^^^^ 3 > ^^^^^^^ -1-> +1-> > > 2 >class @@ -1056,7 +1055,7 @@ sourceFile:../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(61, 5) Source(2, 5) + SourceIndex(3) @@ -1065,9 +1064,9 @@ sourceFile:../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(62, 2) Source(5, 2) + SourceIndex(3) --- @@ -1205,10 +1204,10 @@ sourceFile:../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > +1 >/*@internal*/ interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -1232,12 +1231,12 @@ sourceFile:../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -1309,7 +1308,7 @@ sourceFile:../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -1323,7 +1322,7 @@ sourceFile:../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) @@ -1339,19 +1338,19 @@ sourceFile:../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(7, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(7, 5) Source(5, 11) + SourceIndex(3) @@ -1375,7 +1374,7 @@ sourceFile:../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -1392,7 +1391,7 @@ sourceFile:../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -1414,7 +1413,7 @@ sourceFile:../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(11, 5) Source(8, 5) + SourceIndex(3) @@ -1426,8 +1425,8 @@ sourceFile:../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -1446,19 +1445,19 @@ sourceFile:../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^^^^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(13, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(13, 2) Source(11, 2) + SourceIndex(3) @@ -1471,7 +1470,7 @@ sourceFile:../second/second_part1.ts >>>var normalC = (function () { 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > > 1->Emitted(14, 1) Source(13, 1) + SourceIndex(3) @@ -2673,10 +2672,10 @@ sourceFile:../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(103, 5) Source(5, 1) + SourceIndex(4) @@ -2703,7 +2702,7 @@ sourceFile:../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -2725,7 +2724,7 @@ sourceFile:../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(106, 5) Source(4, 5) + SourceIndex(4) @@ -2734,7 +2733,7 @@ sourceFile:../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(107, 5) Source(5, 1) + SourceIndex(4) @@ -2749,10 +2748,10 @@ sourceFile:../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(108, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(108, 2) Source(5, 2) + SourceIndex(4) @@ -2762,7 +2761,7 @@ sourceFile:../second/second_part2.ts >>>//# sourceMappingURL=second-output.js.map //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"prepend","data":"../first/bin/first-output.js","texts":[{"pos":0,"end":104,"kind":"text"}]},{"pos":104,"end":3055,"kind":"text"}],"mapHash":"-31829622207-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part2.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACkB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACa;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-26297087767-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = (function () {\n function normalC() {\n }\n normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n get: function () { return 10; },\n set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n function foo() { }\n normalN.foo = foo;\n var someNamespace;\n (function (someNamespace) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n normalN.someImport = someNamespace.C;\n normalN.internalConst = 10;\n var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\nvar internalC = (function () {\n function internalC() {\n }\n return internalC;\n}());\nfunction internalfoo() { }\nvar internalNamespace;\n(function (internalNamespace) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\nvar internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\nvar internalImport = internalNamespace.someClass;\nvar internalConst = 10;\nvar internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../first/bin/first-output.d.ts","texts":[{"pos":0,"end":37,"kind":"internal"},{"pos":38,"end":149,"kind":"text"}]},{"pos":149,"end":221,"kind":"text"},{"pos":221,"end":322,"kind":"internal"},{"pos":323,"end":353,"kind":"text"},{"pos":353,"end":727,"kind":"internal"},{"pos":728,"end":730,"kind":"text"},{"pos":730,"end":1117,"kind":"internal"},{"pos":1118,"end":1163,"kind":"text"}],"mapHash":"13974556515-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACvC;AACD,kBAAU,OAAO,CAAC;IACA,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACrD;AACa,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,KAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC3C,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-42543550337-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../first/bin/first-output.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["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; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","13528403307-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n\nclass normalC {\n /*@internal*/ constructor() { }\n /*@internal*/ prop: string;\n /*@internal*/ method() { }\n /*@internal*/ get c() { return 10; }\n /*@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /*@internal*/ export class C { }\n /*@internal*/ export function foo() {}\n /*@internal*/ export namespace someNamespace { export class C {} }\n /*@internal*/ export namespace someOther.something { export class someClass {} }\n /*@internal*/ export import someImport = someNamespace.C;\n /*@internal*/ export type internalType = internalC;\n /*@internal*/ export const internalConst = 10;\n /*@internal*/ export enum internalEnum { a, b, c }\n}\n/*@internal*/ class internalC {}\n/*@internal*/ function internalfoo() {}\n/*@internal*/ namespace internalNamespace { export class someClass {} }\n/*@internal*/ namespace internalOther.something { export class someClass {} }\n/*@internal*/ import internalImport = internalNamespace.someClass;\n/*@internal*/ type internalType = internalC;\n/*@internal*/ const internalConst = 10;\n/*@internal*/ enum internalEnum { a, b, c }","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"root":[3,4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-33280928732-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"prepend","data":"../first/bin/first-output.js","texts":[{"pos":0,"end":104,"kind":"text"}]},{"pos":104,"end":3055,"kind":"text"}],"mapHash":"-31829622207-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part2.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACkB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACa;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-26297087767-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = (function () {\n function normalC() {\n }\n normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n get: function () { return 10; },\n set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n function foo() { }\n normalN.foo = foo;\n var someNamespace;\n (function (someNamespace) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n normalN.someImport = someNamespace.C;\n normalN.internalConst = 10;\n var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\nvar internalC = (function () {\n function internalC() {\n }\n return internalC;\n}());\nfunction internalfoo() { }\nvar internalNamespace;\n(function (internalNamespace) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\nvar internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\nvar internalImport = internalNamespace.someClass;\nvar internalConst = 10;\nvar internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../first/bin/first-output.d.ts","texts":[{"pos":0,"end":37,"kind":"internal"},{"pos":38,"end":149,"kind":"text"}]},{"pos":149,"end":221,"kind":"text"},{"pos":221,"end":322,"kind":"internal"},{"pos":323,"end":353,"kind":"text"},{"pos":353,"end":727,"kind":"internal"},{"pos":728,"end":730,"kind":"text"},{"pos":730,"end":1117,"kind":"internal"},{"pos":1118,"end":1163,"kind":"text"}],"mapHash":"13974556515-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACvC;AACD,kBAAU,OAAO,CAAC;IACA,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACrD;AACa,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,KAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC3C,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-42543550337-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../first/bin/first-output.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["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; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","48997088700-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n\nclass normalC {\n /*@internal*/ constructor() { }\n /*@internal*/ prop: string;\n /*@internal*/ method() { }\n /*@internal*/ get c() { return 10; }\n /*@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /*@internal*/ export class C { }\n /*@internal*/ export function foo() {}\n /*@internal*/ export namespace someNamespace { export class C {} }\n /*@internal*/ export namespace someOther.something { export class someClass {} }\n /*@internal*/ export import someImport = someNamespace.C;\n /*@internal*/ export type internalType = internalC;\n /*@internal*/ export const internalConst = 10;\n /*@internal*/ export enum internalEnum { a, b, c }\n}\n/*@internal*/ class internalC {}\n/*@internal*/ function internalfoo() {}\n/*@internal*/ namespace internalNamespace { export class someClass {} }\n/*@internal*/ namespace internalOther.something { export class someClass {} }\n/*@internal*/ import internalImport = internalNamespace.someClass;\n/*@internal*/ type internalType = internalC;\n/*@internal*/ const internalConst = 10;\n/*@internal*/ enum internalEnum { a, b, c }","3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n"],"root":[3,4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-33280928732-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -3077,8 +3076,8 @@ declare class C { "fileInfos": { "../../lib/lib.d.ts": "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; };", "../first/bin/first-output.d.ts": "-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", - "../second/second_part1.ts": "13528403307-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n\nclass normalC {\n /*@internal*/ constructor() { }\n /*@internal*/ prop: string;\n /*@internal*/ method() { }\n /*@internal*/ get c() { return 10; }\n /*@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /*@internal*/ export class C { }\n /*@internal*/ export function foo() {}\n /*@internal*/ export namespace someNamespace { export class C {} }\n /*@internal*/ export namespace someOther.something { export class someClass {} }\n /*@internal*/ export import someImport = someNamespace.C;\n /*@internal*/ export type internalType = internalC;\n /*@internal*/ export const internalConst = 10;\n /*@internal*/ export enum internalEnum { a, b, c }\n}\n/*@internal*/ class internalC {}\n/*@internal*/ function internalfoo() {}\n/*@internal*/ namespace internalNamespace { export class someClass {} }\n/*@internal*/ namespace internalOther.something { export class someClass {} }\n/*@internal*/ import internalImport = internalNamespace.someClass;\n/*@internal*/ type internalType = internalC;\n/*@internal*/ const internalConst = 10;\n/*@internal*/ enum internalEnum { a, b, c }", - "../second/second_part2.ts": "9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n" + "../second/second_part1.ts": "48997088700-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n\nclass normalC {\n /*@internal*/ constructor() { }\n /*@internal*/ prop: string;\n /*@internal*/ method() { }\n /*@internal*/ get c() { return 10; }\n /*@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /*@internal*/ export class C { }\n /*@internal*/ export function foo() {}\n /*@internal*/ export namespace someNamespace { export class C {} }\n /*@internal*/ export namespace someOther.something { export class someClass {} }\n /*@internal*/ export import someImport = someNamespace.C;\n /*@internal*/ export type internalType = internalC;\n /*@internal*/ export const internalConst = 10;\n /*@internal*/ export enum internalEnum { a, b, c }\n}\n/*@internal*/ class internalC {}\n/*@internal*/ function internalfoo() {}\n/*@internal*/ namespace internalNamespace { export class someClass {} }\n/*@internal*/ namespace internalOther.something { export class someClass {} }\n/*@internal*/ import internalImport = internalNamespace.someClass;\n/*@internal*/ type internalType = internalC;\n/*@internal*/ const internalConst = 10;\n/*@internal*/ enum internalEnum { a, b, c }", + "../second/second_part2.ts": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n" }, "root": [ [ @@ -3105,7 +3104,7 @@ declare class C { "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 12623 + "size": 12591 } //// [/src/first/bin/first-output.d.ts] @@ -3150,7 +3149,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -3165,7 +3164,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -3176,8 +3175,8 @@ sourceFile:../first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -3195,8 +3194,8 @@ sourceFile:../first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -3210,7 +3209,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -3225,7 +3224,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -3242,8 +3241,8 @@ sourceFile:../first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) @@ -3282,10 +3281,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > +1 >/*@internal*/ interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -3309,12 +3308,12 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -3386,7 +3385,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -3400,7 +3399,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) @@ -3409,7 +3408,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"4999315210-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":37,"kind":"internal"},{"pos":38,"end":149,"kind":"text"}],"mapHash":"36580418620-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-7635519924-/*@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"4999315210-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":37,"kind":"internal"},{"pos":38,"end":149,"kind":"text"}],"mapHash":"36580418620-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","6800247997-/*@internal*/ interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -3487,9 +3486,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "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; };", - "../first_part1.ts": "-7635519924-/*@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "6800247997-/*@internal*/ interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -3518,7 +3517,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2687 + "size": 2660 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -3562,10 +3561,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > +1 >/*@internal*/ interface TheFirst { + > none: any; + >} + > > 2 > 3 > const @@ -3583,8 +3582,8 @@ sourceFile:../../../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -3598,7 +3597,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -3613,7 +3612,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(4, 2) Source(9, 2) + SourceIndex(0) --- @@ -3629,8 +3628,8 @@ sourceFile:../../../first/first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) 2 >Emitted(5, 18) Source(1, 10) + SourceIndex(1) @@ -3658,8 +3657,8 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) --- @@ -3668,8 +3667,8 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -3682,12 +3681,12 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(9, 2) Source(11, 2) + SourceIndex(2) --- @@ -3695,7 +3694,7 @@ sourceFile:../../../second/second_part1.ts 1-> 2 >^^^^^^^^^^^^^^ 3 > ^^^^^^^ -1-> +1-> > > 2 >class @@ -3765,7 +3764,7 @@ sourceFile:../../../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(15, 5) Source(2, 5) + SourceIndex(3) @@ -3774,9 +3773,9 @@ sourceFile:../../../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(16, 2) Source(5, 2) + SourceIndex(3) --- @@ -3941,10 +3940,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > +1 >/*@internal*/ interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -3968,12 +3967,12 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -4045,7 +4044,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -4059,7 +4058,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) @@ -4075,19 +4074,19 @@ sourceFile:../../../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(7, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(7, 5) Source(5, 11) + SourceIndex(3) @@ -4111,7 +4110,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -4128,7 +4127,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -4150,7 +4149,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(11, 5) Source(8, 5) + SourceIndex(3) @@ -4162,8 +4161,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -4182,19 +4181,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^^^^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(13, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(13, 2) Source(11, 2) + SourceIndex(3) @@ -4207,7 +4206,7 @@ sourceFile:../../../second/second_part1.ts >>>var normalC = (function () { 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > > 1->Emitted(14, 1) Source(13, 1) + SourceIndex(3) @@ -5409,10 +5408,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(103, 5) Source(5, 1) + SourceIndex(4) @@ -5439,7 +5438,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -5461,7 +5460,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(106, 5) Source(4, 5) + SourceIndex(4) @@ -5470,7 +5469,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(107, 5) Source(5, 1) + SourceIndex(4) @@ -5485,10 +5484,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(108, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(108, 2) Source(5, 2) + SourceIndex(4) @@ -5533,7 +5532,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -5550,7 +5549,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":3055,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":0,"end":3055,"kind":"text"}]},{"pos":3055,"end":3089,"kind":"text"}],"mapHash":"-8086338046-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACkB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACa;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-35670541412-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = (function () {\n function normalC() {\n }\n normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n get: function () { return 10; },\n set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n function foo() { }\n normalN.foo = foo;\n var someNamespace;\n (function (someNamespace) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n normalN.someImport = someNamespace.C;\n normalN.internalConst = 10;\n var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\nvar internalC = (function () {\n function internalC() {\n }\n return internalC;\n}());\nfunction internalfoo() { }\nvar internalNamespace;\n(function (internalNamespace) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\nvar internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\nvar internalImport = internalNamespace.someClass;\nvar internalConst = 10;\nvar internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":260,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":0,"end":260,"kind":"text"}]},{"pos":260,"end":278,"kind":"text"}],"mapHash":"16014976674-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-51018023562-declare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-33280928732-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"-46239946948-declare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":3055,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":0,"end":3055,"kind":"text"}]},{"pos":3055,"end":3089,"kind":"text"}],"mapHash":"-8086338046-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACkB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACa;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-35670541412-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = (function () {\n function normalC() {\n }\n normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n get: function () { return 10; },\n set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n function foo() { }\n normalN.foo = foo;\n var someNamespace;\n (function (someNamespace) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n normalN.someImport = someNamespace.C;\n normalN.internalConst = 10;\n var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\nvar internalC = (function () {\n function internalC() {\n }\n return internalC;\n}());\nfunction internalfoo() { }\nvar internalNamespace;\n(function (internalNamespace) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\nvar internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\nvar internalImport = internalNamespace.someClass;\nvar internalConst = 10;\nvar internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":260,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":0,"end":260,"kind":"text"}]},{"pos":260,"end":278,"kind":"text"}],"mapHash":"16014976674-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-51018023562-declare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-33280928732-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"-46239946948-declare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -5768,7 +5767,7 @@ declare var c: C; "fileInfos": { "../../../../lib/lib.d.ts": "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; };", "../../../2/second-output.d.ts": "-33280928732-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -5792,7 +5791,7 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 9617 + "size": 9612 } @@ -5800,62 +5799,62 @@ declare var c: C; Change:: incremental-declaration-changes Input:: //// [/src/first/first_PART1.ts] -/*@internal*/ interface TheFirst { - none: any; -} - -const s = "Hola, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +/*@internal*/ interface TheFirst { + none: any; +} + +const s = "Hola, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:00:53 AM] Projects in this build: +[12:01:05 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:54 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:01:06 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:00:55 AM] Building project '/src/first/tsconfig.json'... +[12:01:07 AM] Building project '/src/first/tsconfig.json'... -[12:01:04 AM] Project 'src/second/tsconfig.json' is out of date because output 'src/2/second-output.tsbuildinfo' is older than input 'src/first' +[12:01:16 AM] Project 'src/second/tsconfig.json' is out of date because output 'src/2/second-output.tsbuildinfo' is older than input 'src/first' -[12:01:05 AM] Building project '/src/second/tsconfig.json'... +[12:01:17 AM] Building project '/src/second/tsconfig.json'... -[12:01:14 AM] Project 'src/third/tsconfig.json' is out of date because output 'src/third/thirdjs/output/third-output.tsbuildinfo' is older than input 'src/second' +[12:01:26 AM] Project 'src/third/tsconfig.json' is out of date because output 'src/third/thirdjs/output/third-output.tsbuildinfo' is older than input 'src/second' -[12:01:15 AM] Building project '/src/third/tsconfig.json'... +[12:01:27 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success readFiles:: { - "/src/third/tsconfig.json": 1, - "/src/second/tsconfig.json": 1, - "/src/first/tsconfig.json": 1, - "/src/first/bin/first-output.tsbuildinfo": 1, - "/src/first/first_PART1.ts": 1, - "/src/first/first_part2.ts": 1, - "/src/first/first_part3.ts": 1, - "/src/2/second-output.tsbuildinfo": 1, - "/src/first/bin/first-output.d.ts": 1, - "/src/second/second_part1.ts": 1, - "/src/second/second_part2.ts": 1, - "/src/first/bin/first-output.js": 1, - "/src/first/bin/first-output.js.map": 1, - "/src/first/bin/first-output.d.ts.map": 1, - "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, - "/src/2/second-output.d.ts": 1, - "/src/third/third_part1.ts": 1, - "/src/2/second-output.js": 1, - "/src/2/second-output.js.map": 1, - "/src/2/second-output.d.ts.map": 1 + "/src/third/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/2/second-output.tsbuildinfo": 1, + "/src/first/bin/first-output.d.ts": 1, + "/src/second/second_part1.ts": 1, + "/src/second/second_part2.ts": 1, + "/src/first/bin/first-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, + "/src/2/second-output.d.ts": 1, + "/src/third/third_part1.ts": 1, + "/src/2/second-output.js": 1, + "/src/2/second-output.js.map": 1, + "/src/2/second-output.d.ts.map": 1 } //// [/src/2/second-output.d.ts] @@ -5954,7 +5953,7 @@ sourceFile:../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -5969,7 +5968,7 @@ sourceFile:../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -5980,8 +5979,8 @@ sourceFile:../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -5999,8 +5998,8 @@ sourceFile:../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -6014,7 +6013,7 @@ sourceFile:../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -6029,7 +6028,7 @@ sourceFile:../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -6045,8 +6044,8 @@ sourceFile:../first/first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) @@ -6074,8 +6073,8 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) --- @@ -6084,8 +6083,8 @@ sourceFile:../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -6098,12 +6097,12 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) --- @@ -6111,7 +6110,7 @@ sourceFile:../second/second_part1.ts 1-> 2 >^^^^^^^^^^^^^^ 3 > ^^^^^^^ -1-> +1-> > > 2 >class @@ -6715,7 +6714,7 @@ sourceFile:../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(61, 5) Source(2, 5) + SourceIndex(3) @@ -6724,9 +6723,9 @@ sourceFile:../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(62, 2) Source(5, 2) + SourceIndex(3) --- @@ -6864,10 +6863,10 @@ sourceFile:../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^ 6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > +1 >/*@internal*/ interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -6891,12 +6890,12 @@ sourceFile:../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -6968,7 +6967,7 @@ sourceFile:../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -6982,7 +6981,7 @@ sourceFile:../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) @@ -6998,19 +6997,19 @@ sourceFile:../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(7, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(7, 5) Source(5, 11) + SourceIndex(3) @@ -7034,7 +7033,7 @@ sourceFile:../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -7051,7 +7050,7 @@ sourceFile:../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -7073,7 +7072,7 @@ sourceFile:../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(11, 5) Source(8, 5) + SourceIndex(3) @@ -7085,8 +7084,8 @@ sourceFile:../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -7105,19 +7104,19 @@ sourceFile:../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^^^^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(13, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(13, 2) Source(11, 2) + SourceIndex(3) @@ -7130,7 +7129,7 @@ sourceFile:../second/second_part1.ts >>>var normalC = (function () { 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > > 1->Emitted(14, 1) Source(13, 1) + SourceIndex(3) @@ -8332,10 +8331,10 @@ sourceFile:../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(103, 5) Source(5, 1) + SourceIndex(4) @@ -8362,7 +8361,7 @@ sourceFile:../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -8384,7 +8383,7 @@ sourceFile:../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(106, 5) Source(4, 5) + SourceIndex(4) @@ -8393,7 +8392,7 @@ sourceFile:../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(107, 5) Source(5, 1) + SourceIndex(4) @@ -8408,10 +8407,10 @@ sourceFile:../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(108, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(108, 2) Source(5, 2) + SourceIndex(4) @@ -8421,7 +8420,7 @@ sourceFile:../second/second_part2.ts >>>//# sourceMappingURL=second-output.js.map //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":103,"kind":"prepend","data":"../first/bin/first-output.js","texts":[{"pos":0,"end":103,"kind":"text"}]},{"pos":103,"end":3054,"kind":"text"}],"mapHash":"44741038523-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part2.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACkB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACa;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"17880960601-var s = \"Hola, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = (function () {\n function normalC() {\n }\n normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n get: function () { return 10; },\n set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n function foo() { }\n normalN.foo = foo;\n var someNamespace;\n (function (someNamespace) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n normalN.someImport = someNamespace.C;\n normalN.internalConst = 10;\n var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\nvar internalC = (function () {\n function internalC() {\n }\n return internalC;\n}());\nfunction internalfoo() { }\nvar internalNamespace;\n(function (internalNamespace) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\nvar internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\nvar internalImport = internalNamespace.someClass;\nvar internalConst = 10;\nvar internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":148,"kind":"prepend","data":"../first/bin/first-output.d.ts","texts":[{"pos":0,"end":37,"kind":"internal"},{"pos":38,"end":148,"kind":"text"}]},{"pos":148,"end":220,"kind":"text"},{"pos":220,"end":321,"kind":"internal"},{"pos":322,"end":352,"kind":"text"},{"pos":352,"end":726,"kind":"internal"},{"pos":727,"end":729,"kind":"text"},{"pos":729,"end":1116,"kind":"internal"},{"pos":1117,"end":1162,"kind":"text"}],"mapHash":"96265888669-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACvC;AACD,kBAAU,OAAO,CAAC;IACA,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACrD;AACa,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,KAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC3C,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-37030595441-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../first/bin/first-output.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["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; };","-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","13528403307-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n\nclass normalC {\n /*@internal*/ constructor() { }\n /*@internal*/ prop: string;\n /*@internal*/ method() { }\n /*@internal*/ get c() { return 10; }\n /*@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /*@internal*/ export class C { }\n /*@internal*/ export function foo() {}\n /*@internal*/ export namespace someNamespace { export class C {} }\n /*@internal*/ export namespace someOther.something { export class someClass {} }\n /*@internal*/ export import someImport = someNamespace.C;\n /*@internal*/ export type internalType = internalC;\n /*@internal*/ export const internalConst = 10;\n /*@internal*/ export enum internalEnum { a, b, c }\n}\n/*@internal*/ class internalC {}\n/*@internal*/ function internalfoo() {}\n/*@internal*/ namespace internalNamespace { export class someClass {} }\n/*@internal*/ namespace internalOther.something { export class someClass {} }\n/*@internal*/ import internalImport = internalNamespace.someClass;\n/*@internal*/ type internalType = internalC;\n/*@internal*/ const internalConst = 10;\n/*@internal*/ enum internalEnum { a, b, c }","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"root":[3,4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-30869224908-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":103,"kind":"prepend","data":"../first/bin/first-output.js","texts":[{"pos":0,"end":103,"kind":"text"}]},{"pos":103,"end":3054,"kind":"text"}],"mapHash":"44741038523-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part2.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACkB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACa;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"17880960601-var s = \"Hola, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = (function () {\n function normalC() {\n }\n normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n get: function () { return 10; },\n set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n function foo() { }\n normalN.foo = foo;\n var someNamespace;\n (function (someNamespace) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n normalN.someImport = someNamespace.C;\n normalN.internalConst = 10;\n var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\nvar internalC = (function () {\n function internalC() {\n }\n return internalC;\n}());\nfunction internalfoo() { }\nvar internalNamespace;\n(function (internalNamespace) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\nvar internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\nvar internalImport = internalNamespace.someClass;\nvar internalConst = 10;\nvar internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":148,"kind":"prepend","data":"../first/bin/first-output.d.ts","texts":[{"pos":0,"end":37,"kind":"internal"},{"pos":38,"end":148,"kind":"text"}]},{"pos":148,"end":220,"kind":"text"},{"pos":220,"end":321,"kind":"internal"},{"pos":322,"end":352,"kind":"text"},{"pos":352,"end":726,"kind":"internal"},{"pos":727,"end":729,"kind":"text"},{"pos":729,"end":1116,"kind":"internal"},{"pos":1117,"end":1162,"kind":"text"}],"mapHash":"96265888669-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACvC;AACD,kBAAU,OAAO,CAAC;IACA,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACrD;AACa,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,KAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC3C,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-37030595441-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../first/bin/first-output.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["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; };","-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","48997088700-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n\nclass normalC {\n /*@internal*/ constructor() { }\n /*@internal*/ prop: string;\n /*@internal*/ method() { }\n /*@internal*/ get c() { return 10; }\n /*@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /*@internal*/ export class C { }\n /*@internal*/ export function foo() {}\n /*@internal*/ export namespace someNamespace { export class C {} }\n /*@internal*/ export namespace someOther.something { export class someClass {} }\n /*@internal*/ export import someImport = someNamespace.C;\n /*@internal*/ export type internalType = internalC;\n /*@internal*/ export const internalConst = 10;\n /*@internal*/ export enum internalEnum { a, b, c }\n}\n/*@internal*/ class internalC {}\n/*@internal*/ function internalfoo() {}\n/*@internal*/ namespace internalNamespace { export class someClass {} }\n/*@internal*/ namespace internalOther.something { export class someClass {} }\n/*@internal*/ import internalImport = internalNamespace.someClass;\n/*@internal*/ type internalType = internalC;\n/*@internal*/ const internalConst = 10;\n/*@internal*/ enum internalEnum { a, b, c }","3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n"],"root":[3,4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-30869224908-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -8736,8 +8735,8 @@ declare class C { "fileInfos": { "../../lib/lib.d.ts": "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; };", "../first/bin/first-output.d.ts": "-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", - "../second/second_part1.ts": "13528403307-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n\nclass normalC {\n /*@internal*/ constructor() { }\n /*@internal*/ prop: string;\n /*@internal*/ method() { }\n /*@internal*/ get c() { return 10; }\n /*@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /*@internal*/ export class C { }\n /*@internal*/ export function foo() {}\n /*@internal*/ export namespace someNamespace { export class C {} }\n /*@internal*/ export namespace someOther.something { export class someClass {} }\n /*@internal*/ export import someImport = someNamespace.C;\n /*@internal*/ export type internalType = internalC;\n /*@internal*/ export const internalConst = 10;\n /*@internal*/ export enum internalEnum { a, b, c }\n}\n/*@internal*/ class internalC {}\n/*@internal*/ function internalfoo() {}\n/*@internal*/ namespace internalNamespace { export class someClass {} }\n/*@internal*/ namespace internalOther.something { export class someClass {} }\n/*@internal*/ import internalImport = internalNamespace.someClass;\n/*@internal*/ type internalType = internalC;\n/*@internal*/ const internalConst = 10;\n/*@internal*/ enum internalEnum { a, b, c }", - "../second/second_part2.ts": "9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n" + "../second/second_part1.ts": "48997088700-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n\nclass normalC {\n /*@internal*/ constructor() { }\n /*@internal*/ prop: string;\n /*@internal*/ method() { }\n /*@internal*/ get c() { return 10; }\n /*@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /*@internal*/ export class C { }\n /*@internal*/ export function foo() {}\n /*@internal*/ export namespace someNamespace { export class C {} }\n /*@internal*/ export namespace someOther.something { export class someClass {} }\n /*@internal*/ export import someImport = someNamespace.C;\n /*@internal*/ export type internalType = internalC;\n /*@internal*/ export const internalConst = 10;\n /*@internal*/ export enum internalEnum { a, b, c }\n}\n/*@internal*/ class internalC {}\n/*@internal*/ function internalfoo() {}\n/*@internal*/ namespace internalNamespace { export class someClass {} }\n/*@internal*/ namespace internalOther.something { export class someClass {} }\n/*@internal*/ import internalImport = internalNamespace.someClass;\n/*@internal*/ type internalType = internalC;\n/*@internal*/ const internalConst = 10;\n/*@internal*/ enum internalEnum { a, b, c }", + "../second/second_part2.ts": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n" }, "root": [ [ @@ -8764,7 +8763,7 @@ declare class C { "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 12617 + "size": 12585 } //// [/src/first/bin/first-output.d.ts] @@ -8809,7 +8808,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -8824,7 +8823,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -8835,8 +8834,8 @@ sourceFile:../first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -8854,8 +8853,8 @@ sourceFile:../first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -8869,7 +8868,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -8884,7 +8883,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -8901,8 +8900,8 @@ sourceFile:../first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) @@ -8941,10 +8940,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^ 6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > +1 >/*@internal*/ interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -8968,12 +8967,12 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -9045,7 +9044,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -9059,7 +9058,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) @@ -9068,7 +9067,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":103,"kind":"text"}],"mapHash":"-23743024037-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"11286582394-var s = \"Hola, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":37,"kind":"internal"},{"pos":38,"end":148,"kind":"text"}],"mapHash":"26096235382-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-8638855186-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-12716948804-/*@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":103,"kind":"text"}],"mapHash":"-23743024037-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"11286582394-var s = \"Hola, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":37,"kind":"internal"},{"pos":38,"end":148,"kind":"text"}],"mapHash":"26096235382-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-8638855186-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-17321008723-/*@internal*/ interface TheFirst {\n none: any;\n}\n\nconst s = \"Hola, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -9146,9 +9145,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "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; };", - "../first_part1.ts": "-12716948804-/*@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-17321008723-/*@internal*/ interface TheFirst {\n none: any;\n}\n\nconst s = \"Hola, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -9177,7 +9176,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2684 + "size": 2658 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -9221,10 +9220,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^ 6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > +1 >/*@internal*/ interface TheFirst { + > none: any; + >} + > > 2 > 3 > const @@ -9242,8 +9241,8 @@ sourceFile:../../../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -9257,7 +9256,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -9272,7 +9271,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(4, 2) Source(9, 2) + SourceIndex(0) --- @@ -9288,8 +9287,8 @@ sourceFile:../../../first/first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) 2 >Emitted(5, 18) Source(1, 10) + SourceIndex(1) @@ -9317,8 +9316,8 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) --- @@ -9327,8 +9326,8 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -9341,12 +9340,12 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(9, 2) Source(11, 2) + SourceIndex(2) --- @@ -9354,7 +9353,7 @@ sourceFile:../../../second/second_part1.ts 1-> 2 >^^^^^^^^^^^^^^ 3 > ^^^^^^^ -1-> +1-> > > 2 >class @@ -9424,7 +9423,7 @@ sourceFile:../../../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(15, 5) Source(2, 5) + SourceIndex(3) @@ -9433,9 +9432,9 @@ sourceFile:../../../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(16, 2) Source(5, 2) + SourceIndex(3) --- @@ -9600,10 +9599,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^ 6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > +1 >/*@internal*/ interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -9627,12 +9626,12 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -9704,7 +9703,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -9718,7 +9717,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) @@ -9734,19 +9733,19 @@ sourceFile:../../../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(7, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(7, 5) Source(5, 11) + SourceIndex(3) @@ -9770,7 +9769,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -9787,7 +9786,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -9809,7 +9808,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(11, 5) Source(8, 5) + SourceIndex(3) @@ -9821,8 +9820,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -9841,19 +9840,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^^^^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(13, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(13, 2) Source(11, 2) + SourceIndex(3) @@ -9866,7 +9865,7 @@ sourceFile:../../../second/second_part1.ts >>>var normalC = (function () { 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > > 1->Emitted(14, 1) Source(13, 1) + SourceIndex(3) @@ -11068,10 +11067,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(103, 5) Source(5, 1) + SourceIndex(4) @@ -11098,7 +11097,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -11120,7 +11119,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(106, 5) Source(4, 5) + SourceIndex(4) @@ -11129,7 +11128,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(107, 5) Source(5, 1) + SourceIndex(4) @@ -11144,10 +11143,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(108, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(108, 2) Source(5, 2) + SourceIndex(4) @@ -11192,7 +11191,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -11209,7 +11208,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":3054,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":0,"end":3054,"kind":"text"}]},{"pos":3054,"end":3088,"kind":"text"}],"mapHash":"175025764412-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACkB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACa;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"1719185164-var s = \"Hola, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = (function () {\n function normalC() {\n }\n normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n get: function () { return 10; },\n set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n function foo() { }\n normalN.foo = foo;\n var someNamespace;\n (function (someNamespace) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n normalN.someImport = someNamespace.C;\n normalN.internalConst = 10;\n var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\nvar internalC = (function () {\n function internalC() {\n }\n return internalC;\n}());\nfunction internalfoo() { }\nvar internalNamespace;\n(function (internalNamespace) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\nvar internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\nvar internalImport = internalNamespace.someClass;\nvar internalConst = 10;\nvar internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":259,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":0,"end":259,"kind":"text"}]},{"pos":259,"end":277,"kind":"text"}],"mapHash":"-7558054436-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"1167029542-declare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-30869224908-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"16620847852-declare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":3054,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":0,"end":3054,"kind":"text"}]},{"pos":3054,"end":3088,"kind":"text"}],"mapHash":"175025764412-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACkB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACa;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"1719185164-var s = \"Hola, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = (function () {\n function normalC() {\n }\n normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n get: function () { return 10; },\n set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n function foo() { }\n normalN.foo = foo;\n var someNamespace;\n (function (someNamespace) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n normalN.someImport = someNamespace.C;\n normalN.internalConst = 10;\n var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\nvar internalC = (function () {\n function internalC() {\n }\n return internalC;\n}());\nfunction internalfoo() { }\nvar internalNamespace;\n(function (internalNamespace) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\nvar internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\nvar internalImport = internalNamespace.someClass;\nvar internalConst = 10;\nvar internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":259,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":0,"end":259,"kind":"text"}]},{"pos":259,"end":277,"kind":"text"}],"mapHash":"-7558054436-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"1167029542-declare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-30869224908-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"16620847852-declare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -11427,7 +11426,7 @@ declare var c: C; "fileInfos": { "../../../../lib/lib.d.ts": "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; };", "../../../2/second-output.d.ts": "-30869224908-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -11451,7 +11450,7 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 9609 + "size": 9604 } @@ -11459,63 +11458,63 @@ declare var c: C; Change:: incremental-declaration-doesnt-change Input:: //// [/src/first/first_PART1.ts] -/*@internal*/ interface TheFirst { - none: any; -} - -const s = "Hola, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +/*@internal*/ interface TheFirst { + none: any; +} + +const s = "Hola, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:01:31 AM] Projects in this build: +[12:01:43 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:01:32 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:01:44 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:01:33 AM] Building project '/src/first/tsconfig.json'... +[12:01:45 AM] Building project '/src/first/tsconfig.json'... -[12:01:41 AM] Project 'src/second/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:01:53 AM] Project 'src/second/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:01:42 AM] Updating output of project '/src/second/tsconfig.json'... +[12:01:54 AM] Updating output of project '/src/second/tsconfig.json'... -[12:01:49 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/second' has changed +[12:02:01 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/second' has changed -[12:01:50 AM] Updating output of project '/src/third/tsconfig.json'... +[12:02:02 AM] Updating output of project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success readFiles:: { - "/src/third/tsconfig.json": 1, - "/src/second/tsconfig.json": 1, - "/src/first/tsconfig.json": 1, - "/src/first/bin/first-output.tsbuildinfo": 1, - "/src/first/first_PART1.ts": 1, - "/src/first/first_part2.ts": 1, - "/src/first/first_part3.ts": 1, - "/src/2/second-output.tsbuildinfo": 1, - "/src/2/second-output.js": 2, - "/src/2/second-output.js.map": 2, - "/src/2/second-output.d.ts": 2, - "/src/2/second-output.d.ts.map": 2, - "/src/first/bin/first-output.js": 1, - "/src/first/bin/first-output.js.map": 1, - "/src/first/bin/first-output.d.ts": 1, - "/src/first/bin/first-output.d.ts.map": 1, - "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, - "/src/third/thirdjs/output/third-output.js": 1, - "/src/third/thirdjs/output/third-output.js.map": 1, - "/src/third/thirdjs/output/third-output.d.ts": 1, - "/src/third/thirdjs/output/third-output.d.ts.map": 1 + "/src/third/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/2/second-output.tsbuildinfo": 1, + "/src/2/second-output.js": 2, + "/src/2/second-output.js.map": 2, + "/src/2/second-output.d.ts": 2, + "/src/2/second-output.d.ts.map": 2, + "/src/first/bin/first-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/first/bin/first-output.d.ts": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.js": 1, + "/src/third/thirdjs/output/third-output.js.map": 1, + "/src/third/thirdjs/output/third-output.d.ts": 1, + "/src/third/thirdjs/output/third-output.d.ts.map": 1 } //// [/src/2/second-output.js] @@ -11651,10 +11650,10 @@ sourceFile:../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^ 6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > +1 >/*@internal*/ interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -11677,12 +11676,12 @@ sourceFile:../first/first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -11710,7 +11709,7 @@ sourceFile:../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > +1 > > 2 >console 3 > . @@ -11782,7 +11781,7 @@ sourceFile:../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -11796,7 +11795,7 @@ sourceFile:../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) @@ -11812,19 +11811,19 @@ sourceFile:../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(8, 5) Source(5, 11) + SourceIndex(3) @@ -11848,7 +11847,7 @@ sourceFile:../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -11865,7 +11864,7 @@ sourceFile:../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -11887,7 +11886,7 @@ sourceFile:../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(12, 5) Source(8, 5) + SourceIndex(3) @@ -11899,8 +11898,8 @@ sourceFile:../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -11919,19 +11918,19 @@ sourceFile:../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^^^^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(14, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(14, 2) Source(11, 2) + SourceIndex(3) @@ -11944,7 +11943,7 @@ sourceFile:../second/second_part1.ts >>>var normalC = (function () { 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > > 1->Emitted(15, 1) Source(13, 1) + SourceIndex(3) @@ -13146,10 +13145,10 @@ sourceFile:../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(104, 5) Source(5, 1) + SourceIndex(4) @@ -13176,7 +13175,7 @@ sourceFile:../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -13198,7 +13197,7 @@ sourceFile:../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(107, 5) Source(4, 5) + SourceIndex(4) @@ -13207,7 +13206,7 @@ sourceFile:../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(108, 5) Source(5, 1) + SourceIndex(4) @@ -13222,10 +13221,10 @@ sourceFile:../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(109, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(109, 2) Source(5, 2) + SourceIndex(4) @@ -13235,7 +13234,7 @@ sourceFile:../second/second_part2.ts >>>//# sourceMappingURL=second-output.js.map //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":119,"kind":"prepend","data":"../first/bin/first-output.js","texts":[{"pos":0,"end":119,"kind":"text"}]},{"pos":119,"end":3070,"kind":"text"}],"mapHash":"25332072687-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part2.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACkB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACa;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"119804235525-var s = \"Hola, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = (function () {\n function normalC() {\n }\n normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n get: function () { return 10; },\n set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n function foo() { }\n normalN.foo = foo;\n var someNamespace;\n (function (someNamespace) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n normalN.someImport = someNamespace.C;\n normalN.internalConst = 10;\n var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\nvar internalC = (function () {\n function internalC() {\n }\n return internalC;\n}());\nfunction internalfoo() { }\nvar internalNamespace;\n(function (internalNamespace) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\nvar internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\nvar internalImport = internalNamespace.someClass;\nvar internalConst = 10;\nvar internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":148,"kind":"prepend","data":"../first/bin/first-output.d.ts","texts":[{"pos":0,"end":37,"kind":"internal"},{"pos":38,"end":148,"kind":"text"}]},{"pos":148,"end":220,"kind":"text"},{"pos":220,"end":321,"kind":"internal"},{"pos":322,"end":352,"kind":"text"},{"pos":352,"end":726,"kind":"internal"},{"pos":727,"end":729,"kind":"text"},{"pos":729,"end":1116,"kind":"internal"},{"pos":1117,"end":1162,"kind":"text"}],"mapHash":"96265888669-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACvC;AACD,kBAAU,OAAO,CAAC;IACA,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACrD;AACa,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,KAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC3C,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-37030595441-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../first/bin/first-output.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["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; };","-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","13528403307-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n\nclass normalC {\n /*@internal*/ constructor() { }\n /*@internal*/ prop: string;\n /*@internal*/ method() { }\n /*@internal*/ get c() { return 10; }\n /*@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /*@internal*/ export class C { }\n /*@internal*/ export function foo() {}\n /*@internal*/ export namespace someNamespace { export class C {} }\n /*@internal*/ export namespace someOther.something { export class someClass {} }\n /*@internal*/ export import someImport = someNamespace.C;\n /*@internal*/ export type internalType = internalC;\n /*@internal*/ export const internalConst = 10;\n /*@internal*/ export enum internalEnum { a, b, c }\n}\n/*@internal*/ class internalC {}\n/*@internal*/ function internalfoo() {}\n/*@internal*/ namespace internalNamespace { export class someClass {} }\n/*@internal*/ namespace internalOther.something { export class someClass {} }\n/*@internal*/ import internalImport = internalNamespace.someClass;\n/*@internal*/ type internalType = internalC;\n/*@internal*/ const internalConst = 10;\n/*@internal*/ enum internalEnum { a, b, c }","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"root":[3,4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-30869224908-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":119,"kind":"prepend","data":"../first/bin/first-output.js","texts":[{"pos":0,"end":119,"kind":"text"}]},{"pos":119,"end":3070,"kind":"text"}],"mapHash":"25332072687-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part2.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACkB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACa;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"119804235525-var s = \"Hola, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = (function () {\n function normalC() {\n }\n normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n get: function () { return 10; },\n set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n function foo() { }\n normalN.foo = foo;\n var someNamespace;\n (function (someNamespace) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n normalN.someImport = someNamespace.C;\n normalN.internalConst = 10;\n var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\nvar internalC = (function () {\n function internalC() {\n }\n return internalC;\n}());\nfunction internalfoo() { }\nvar internalNamespace;\n(function (internalNamespace) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\nvar internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\nvar internalImport = internalNamespace.someClass;\nvar internalConst = 10;\nvar internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":148,"kind":"prepend","data":"../first/bin/first-output.d.ts","texts":[{"pos":0,"end":37,"kind":"internal"},{"pos":38,"end":148,"kind":"text"}]},{"pos":148,"end":220,"kind":"text"},{"pos":220,"end":321,"kind":"internal"},{"pos":322,"end":352,"kind":"text"},{"pos":352,"end":726,"kind":"internal"},{"pos":727,"end":729,"kind":"text"},{"pos":729,"end":1116,"kind":"internal"},{"pos":1117,"end":1162,"kind":"text"}],"mapHash":"96265888669-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACvC;AACD,kBAAU,OAAO,CAAC;IACA,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACrD;AACa,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,KAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC3C,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-37030595441-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../first/bin/first-output.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["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; };","-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","48997088700-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n\nclass normalC {\n /*@internal*/ constructor() { }\n /*@internal*/ prop: string;\n /*@internal*/ method() { }\n /*@internal*/ get c() { return 10; }\n /*@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /*@internal*/ export class C { }\n /*@internal*/ export function foo() {}\n /*@internal*/ export namespace someNamespace { export class C {} }\n /*@internal*/ export namespace someOther.something { export class someClass {} }\n /*@internal*/ export import someImport = someNamespace.C;\n /*@internal*/ export type internalType = internalC;\n /*@internal*/ export const internalConst = 10;\n /*@internal*/ export enum internalEnum { a, b, c }\n}\n/*@internal*/ class internalC {}\n/*@internal*/ function internalfoo() {}\n/*@internal*/ namespace internalNamespace { export class someClass {} }\n/*@internal*/ namespace internalOther.something { export class someClass {} }\n/*@internal*/ import internalImport = internalNamespace.someClass;\n/*@internal*/ type internalType = internalC;\n/*@internal*/ const internalConst = 10;\n/*@internal*/ enum internalEnum { a, b, c }","3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n"],"root":[3,4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-30869224908-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -13551,8 +13550,8 @@ declare class C { "fileInfos": { "../../lib/lib.d.ts": "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; };", "../first/bin/first-output.d.ts": "-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", - "../second/second_part1.ts": "13528403307-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n\nclass normalC {\n /*@internal*/ constructor() { }\n /*@internal*/ prop: string;\n /*@internal*/ method() { }\n /*@internal*/ get c() { return 10; }\n /*@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /*@internal*/ export class C { }\n /*@internal*/ export function foo() {}\n /*@internal*/ export namespace someNamespace { export class C {} }\n /*@internal*/ export namespace someOther.something { export class someClass {} }\n /*@internal*/ export import someImport = someNamespace.C;\n /*@internal*/ export type internalType = internalC;\n /*@internal*/ export const internalConst = 10;\n /*@internal*/ export enum internalEnum { a, b, c }\n}\n/*@internal*/ class internalC {}\n/*@internal*/ function internalfoo() {}\n/*@internal*/ namespace internalNamespace { export class someClass {} }\n/*@internal*/ namespace internalOther.something { export class someClass {} }\n/*@internal*/ import internalImport = internalNamespace.someClass;\n/*@internal*/ type internalType = internalC;\n/*@internal*/ const internalConst = 10;\n/*@internal*/ enum internalEnum { a, b, c }", - "../second/second_part2.ts": "9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n" + "../second/second_part1.ts": "48997088700-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n\nclass normalC {\n /*@internal*/ constructor() { }\n /*@internal*/ prop: string;\n /*@internal*/ method() { }\n /*@internal*/ get c() { return 10; }\n /*@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /*@internal*/ export class C { }\n /*@internal*/ export function foo() {}\n /*@internal*/ export namespace someNamespace { export class C {} }\n /*@internal*/ export namespace someOther.something { export class someClass {} }\n /*@internal*/ export import someImport = someNamespace.C;\n /*@internal*/ export type internalType = internalC;\n /*@internal*/ export const internalConst = 10;\n /*@internal*/ export enum internalEnum { a, b, c }\n}\n/*@internal*/ class internalC {}\n/*@internal*/ function internalfoo() {}\n/*@internal*/ namespace internalNamespace { export class someClass {} }\n/*@internal*/ namespace internalOther.something { export class someClass {} }\n/*@internal*/ import internalImport = internalNamespace.someClass;\n/*@internal*/ type internalType = internalC;\n/*@internal*/ const internalConst = 10;\n/*@internal*/ enum internalEnum { a, b, c }", + "../second/second_part2.ts": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n" }, "root": [ [ @@ -13579,7 +13578,7 @@ declare class C { "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 12675 + "size": 12643 } //// [/src/first/bin/first-output.d.ts.map] file written with same contents @@ -13615,10 +13614,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^ 6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > +1 >/*@internal*/ interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -13641,12 +13640,12 @@ sourceFile:../first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -13674,7 +13673,7 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > +1 > > 2 >console 3 > . @@ -13746,7 +13745,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -13760,7 +13759,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) @@ -13769,7 +13768,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":119,"kind":"text"}],"mapHash":"-32659542769-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"14669719846-var s = \"Hola, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":37,"kind":"internal"},{"pos":38,"end":148,"kind":"text"}],"mapHash":"26096235382-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-8638855186-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-9838630498-/*@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":119,"kind":"text"}],"mapHash":"-32659542769-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"14669719846-var s = \"Hola, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":37,"kind":"internal"},{"pos":38,"end":148,"kind":"text"}],"mapHash":"26096235382-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-8638855186-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-21236879249-/*@internal*/ interface TheFirst {\n none: any;\n}\n\nconst s = \"Hola, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -13848,9 +13847,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "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; };", - "../first_part1.ts": "-9838630498-/*@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-21236879249-/*@internal*/ interface TheFirst {\n none: any;\n}\n\nconst s = \"Hola, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -13879,7 +13878,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2755 + "size": 2730 } //// [/src/third/thirdjs/output/third-output.js] @@ -14017,10 +14016,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^ 6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > +1 >/*@internal*/ interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -14043,12 +14042,12 @@ sourceFile:../../../first/first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -14076,7 +14075,7 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > +1 > > 2 >console 3 > . @@ -14148,7 +14147,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -14162,7 +14161,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) @@ -14178,19 +14177,19 @@ sourceFile:../../../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(8, 5) Source(5, 11) + SourceIndex(3) @@ -14214,7 +14213,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -14231,7 +14230,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -14253,7 +14252,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(12, 5) Source(8, 5) + SourceIndex(3) @@ -14265,8 +14264,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -14285,19 +14284,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^^^^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(14, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(14, 2) Source(11, 2) + SourceIndex(3) @@ -14310,7 +14309,7 @@ sourceFile:../../../second/second_part1.ts >>>var normalC = (function () { 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > > 1->Emitted(15, 1) Source(13, 1) + SourceIndex(3) @@ -15512,10 +15511,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(104, 5) Source(5, 1) + SourceIndex(4) @@ -15542,7 +15541,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -15564,7 +15563,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(107, 5) Source(4, 5) + SourceIndex(4) @@ -15573,7 +15572,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(108, 5) Source(5, 1) + SourceIndex(4) @@ -15588,10 +15587,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(109, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(109, 2) Source(5, 2) + SourceIndex(4) @@ -15636,7 +15635,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -15653,7 +15652,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":3070,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":0,"end":3070,"kind":"text"}]},{"pos":3070,"end":3104,"kind":"text"}],"mapHash":"-121698117904-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACkB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACa;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"112142595384-var s = \"Hola, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = (function () {\n function normalC() {\n }\n normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n get: function () { return 10; },\n set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n function foo() { }\n normalN.foo = foo;\n var someNamespace;\n (function (someNamespace) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n normalN.someImport = someNamespace.C;\n normalN.internalConst = 10;\n var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\nvar internalC = (function () {\n function internalC() {\n }\n return internalC;\n}());\nfunction internalfoo() { }\nvar internalNamespace;\n(function (internalNamespace) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\nvar internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\nvar internalImport = internalNamespace.someClass;\nvar internalConst = 10;\nvar internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":259,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":0,"end":259,"kind":"text"}]},{"pos":259,"end":277,"kind":"text"}],"mapHash":"-7558054436-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"1167029542-declare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-30869224908-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"16620847852-declare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":3070,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":0,"end":3070,"kind":"text"}]},{"pos":3070,"end":3104,"kind":"text"}],"mapHash":"-121698117904-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACkB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACa;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"112142595384-var s = \"Hola, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = (function () {\n function normalC() {\n }\n normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n get: function () { return 10; },\n set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n function foo() { }\n normalN.foo = foo;\n var someNamespace;\n (function (someNamespace) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n normalN.someImport = someNamespace.C;\n normalN.internalConst = 10;\n var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\nvar internalC = (function () {\n function internalC() {\n }\n return internalC;\n}());\nfunction internalfoo() { }\nvar internalNamespace;\n(function (internalNamespace) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\nvar internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\nvar internalImport = internalNamespace.someClass;\nvar internalConst = 10;\nvar internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":259,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":0,"end":259,"kind":"text"}]},{"pos":259,"end":277,"kind":"text"}],"mapHash":"-7558054436-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"1167029542-declare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-30869224908-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"16620847852-declare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -15872,7 +15871,7 @@ declare var c: C; "fileInfos": { "../../../../lib/lib.d.ts": "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; };", "../../../2/second-output.d.ts": "-30869224908-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -15896,7 +15895,7 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 9669 + "size": 9664 } @@ -15904,63 +15903,63 @@ declare var c: C; Change:: incremental-headers-change-without-dts-changes Input:: //// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hola, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hola, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:02:02 AM] Projects in this build: +[12:02:14 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:02:03 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:02:15 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:02:04 AM] Building project '/src/first/tsconfig.json'... +[12:02:16 AM] Building project '/src/first/tsconfig.json'... -[12:02:12 AM] Project 'src/second/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:02:24 AM] Project 'src/second/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:02:13 AM] Updating output of project '/src/second/tsconfig.json'... +[12:02:25 AM] Updating output of project '/src/second/tsconfig.json'... -[12:02:19 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/second' has changed +[12:02:31 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/second' has changed -[12:02:20 AM] Updating output of project '/src/third/tsconfig.json'... +[12:02:32 AM] Updating output of project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success readFiles:: { - "/src/third/tsconfig.json": 1, - "/src/second/tsconfig.json": 1, - "/src/first/tsconfig.json": 1, - "/src/first/bin/first-output.tsbuildinfo": 1, - "/src/first/first_PART1.ts": 1, - "/src/first/first_part2.ts": 1, - "/src/first/first_part3.ts": 1, - "/src/2/second-output.tsbuildinfo": 1, - "/src/2/second-output.js": 2, - "/src/2/second-output.js.map": 2, - "/src/2/second-output.d.ts": 2, - "/src/2/second-output.d.ts.map": 2, - "/src/first/bin/first-output.js": 1, - "/src/first/bin/first-output.js.map": 1, - "/src/first/bin/first-output.d.ts": 1, - "/src/first/bin/first-output.d.ts.map": 1, - "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, - "/src/third/thirdjs/output/third-output.js": 1, - "/src/third/thirdjs/output/third-output.js.map": 1, - "/src/third/thirdjs/output/third-output.d.ts": 1, - "/src/third/thirdjs/output/third-output.d.ts.map": 1 + "/src/third/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/2/second-output.tsbuildinfo": 1, + "/src/2/second-output.js": 2, + "/src/2/second-output.js.map": 2, + "/src/2/second-output.d.ts": 2, + "/src/2/second-output.d.ts.map": 2, + "/src/first/bin/first-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/first/bin/first-output.d.ts": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.js": 1, + "/src/third/thirdjs/output/third-output.js.map": 1, + "/src/third/thirdjs/output/third-output.d.ts": 1, + "/src/third/thirdjs/output/third-output.d.ts.map": 1 } //// [/src/2/second-output.d.ts.map] @@ -15994,7 +15993,7 @@ sourceFile:../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -16009,7 +16008,7 @@ sourceFile:../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -16020,8 +16019,8 @@ sourceFile:../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -16039,8 +16038,8 @@ sourceFile:../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -16054,7 +16053,7 @@ sourceFile:../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -16069,7 +16068,7 @@ sourceFile:../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -16085,8 +16084,8 @@ sourceFile:../first/first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) @@ -16114,8 +16113,8 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) --- @@ -16124,8 +16123,8 @@ sourceFile:../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -16138,12 +16137,12 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) --- @@ -16151,7 +16150,7 @@ sourceFile:../second/second_part1.ts 1-> 2 >^^^^^^^^^^^^^^ 3 > ^^^^^^^ -1-> +1-> > > 2 >class @@ -16755,7 +16754,7 @@ sourceFile:../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(61, 5) Source(2, 5) + SourceIndex(3) @@ -16764,16 +16763,16 @@ sourceFile:../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(62, 2) Source(5, 2) + SourceIndex(3) --- >>>//# sourceMappingURL=second-output.d.ts.map //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":119,"kind":"prepend","data":"../first/bin/first-output.js","texts":[{"pos":0,"end":119,"kind":"text"}]},{"pos":119,"end":3070,"kind":"text"}],"mapHash":"25332072687-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part2.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACkB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACa;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"119804235525-var s = \"Hola, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = (function () {\n function normalC() {\n }\n normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n get: function () { return 10; },\n set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n function foo() { }\n normalN.foo = foo;\n var someNamespace;\n (function (someNamespace) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n normalN.someImport = someNamespace.C;\n normalN.internalConst = 10;\n var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\nvar internalC = (function () {\n function internalC() {\n }\n return internalC;\n}());\nfunction internalfoo() { }\nvar internalNamespace;\n(function (internalNamespace) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\nvar internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\nvar internalImport = internalNamespace.someClass;\nvar internalConst = 10;\nvar internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":148,"kind":"prepend","data":"../first/bin/first-output.d.ts","texts":[{"pos":0,"end":148,"kind":"text"}]},{"pos":148,"end":220,"kind":"text"},{"pos":220,"end":321,"kind":"internal"},{"pos":322,"end":352,"kind":"text"},{"pos":352,"end":726,"kind":"internal"},{"pos":727,"end":729,"kind":"text"},{"pos":729,"end":1116,"kind":"internal"},{"pos":1117,"end":1162,"kind":"text"}],"mapHash":"-16943993016-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACvC;AACD,kBAAU,OAAO,CAAC;IACA,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACrD;AACa,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,KAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC3C,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-37030595441-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../first/bin/first-output.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["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; };","-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","13528403307-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n\nclass normalC {\n /*@internal*/ constructor() { }\n /*@internal*/ prop: string;\n /*@internal*/ method() { }\n /*@internal*/ get c() { return 10; }\n /*@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /*@internal*/ export class C { }\n /*@internal*/ export function foo() {}\n /*@internal*/ export namespace someNamespace { export class C {} }\n /*@internal*/ export namespace someOther.something { export class someClass {} }\n /*@internal*/ export import someImport = someNamespace.C;\n /*@internal*/ export type internalType = internalC;\n /*@internal*/ export const internalConst = 10;\n /*@internal*/ export enum internalEnum { a, b, c }\n}\n/*@internal*/ class internalC {}\n/*@internal*/ function internalfoo() {}\n/*@internal*/ namespace internalNamespace { export class someClass {} }\n/*@internal*/ namespace internalOther.something { export class someClass {} }\n/*@internal*/ import internalImport = internalNamespace.someClass;\n/*@internal*/ type internalType = internalC;\n/*@internal*/ const internalConst = 10;\n/*@internal*/ enum internalEnum { a, b, c }","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"root":[3,4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-30869224908-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":119,"kind":"prepend","data":"../first/bin/first-output.js","texts":[{"pos":0,"end":119,"kind":"text"}]},{"pos":119,"end":3070,"kind":"text"}],"mapHash":"25332072687-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part2.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACkB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACa;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"119804235525-var s = \"Hola, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = (function () {\n function normalC() {\n }\n normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n get: function () { return 10; },\n set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n function foo() { }\n normalN.foo = foo;\n var someNamespace;\n (function (someNamespace) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n normalN.someImport = someNamespace.C;\n normalN.internalConst = 10;\n var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\nvar internalC = (function () {\n function internalC() {\n }\n return internalC;\n}());\nfunction internalfoo() { }\nvar internalNamespace;\n(function (internalNamespace) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\nvar internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\nvar internalImport = internalNamespace.someClass;\nvar internalConst = 10;\nvar internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":148,"kind":"prepend","data":"../first/bin/first-output.d.ts","texts":[{"pos":0,"end":148,"kind":"text"}]},{"pos":148,"end":220,"kind":"text"},{"pos":220,"end":321,"kind":"internal"},{"pos":322,"end":352,"kind":"text"},{"pos":352,"end":726,"kind":"internal"},{"pos":727,"end":729,"kind":"text"},{"pos":729,"end":1116,"kind":"internal"},{"pos":1117,"end":1162,"kind":"text"}],"mapHash":"-16943993016-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACvC;AACD,kBAAU,OAAO,CAAC;IACA,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACrD;AACa,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,KAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC3C,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-37030595441-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../first/bin/first-output.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["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; };","-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","48997088700-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n\nclass normalC {\n /*@internal*/ constructor() { }\n /*@internal*/ prop: string;\n /*@internal*/ method() { }\n /*@internal*/ get c() { return 10; }\n /*@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /*@internal*/ export class C { }\n /*@internal*/ export function foo() {}\n /*@internal*/ export namespace someNamespace { export class C {} }\n /*@internal*/ export namespace someOther.something { export class someClass {} }\n /*@internal*/ export import someImport = someNamespace.C;\n /*@internal*/ export type internalType = internalC;\n /*@internal*/ export const internalConst = 10;\n /*@internal*/ export enum internalEnum { a, b, c }\n}\n/*@internal*/ class internalC {}\n/*@internal*/ function internalfoo() {}\n/*@internal*/ namespace internalNamespace { export class someClass {} }\n/*@internal*/ namespace internalOther.something { export class someClass {} }\n/*@internal*/ import internalImport = internalNamespace.someClass;\n/*@internal*/ type internalType = internalC;\n/*@internal*/ const internalConst = 10;\n/*@internal*/ enum internalEnum { a, b, c }","3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n"],"root":[3,4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-30869224908-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -17082,8 +17081,8 @@ declare class C { "fileInfos": { "../../lib/lib.d.ts": "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; };", "../first/bin/first-output.d.ts": "-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", - "../second/second_part1.ts": "13528403307-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n\nclass normalC {\n /*@internal*/ constructor() { }\n /*@internal*/ prop: string;\n /*@internal*/ method() { }\n /*@internal*/ get c() { return 10; }\n /*@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /*@internal*/ export class C { }\n /*@internal*/ export function foo() {}\n /*@internal*/ export namespace someNamespace { export class C {} }\n /*@internal*/ export namespace someOther.something { export class someClass {} }\n /*@internal*/ export import someImport = someNamespace.C;\n /*@internal*/ export type internalType = internalC;\n /*@internal*/ export const internalConst = 10;\n /*@internal*/ export enum internalEnum { a, b, c }\n}\n/*@internal*/ class internalC {}\n/*@internal*/ function internalfoo() {}\n/*@internal*/ namespace internalNamespace { export class someClass {} }\n/*@internal*/ namespace internalOther.something { export class someClass {} }\n/*@internal*/ import internalImport = internalNamespace.someClass;\n/*@internal*/ type internalType = internalC;\n/*@internal*/ const internalConst = 10;\n/*@internal*/ enum internalEnum { a, b, c }", - "../second/second_part2.ts": "9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n" + "../second/second_part1.ts": "48997088700-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n\nclass normalC {\n /*@internal*/ constructor() { }\n /*@internal*/ prop: string;\n /*@internal*/ method() { }\n /*@internal*/ get c() { return 10; }\n /*@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /*@internal*/ export class C { }\n /*@internal*/ export function foo() {}\n /*@internal*/ export namespace someNamespace { export class C {} }\n /*@internal*/ export namespace someOther.something { export class someClass {} }\n /*@internal*/ export import someImport = someNamespace.C;\n /*@internal*/ export type internalType = internalC;\n /*@internal*/ export const internalConst = 10;\n /*@internal*/ export enum internalEnum { a, b, c }\n}\n/*@internal*/ class internalC {}\n/*@internal*/ function internalfoo() {}\n/*@internal*/ namespace internalNamespace { export class someClass {} }\n/*@internal*/ namespace internalOther.something { export class someClass {} }\n/*@internal*/ import internalImport = internalNamespace.someClass;\n/*@internal*/ type internalType = internalC;\n/*@internal*/ const internalConst = 10;\n/*@internal*/ enum internalEnum { a, b, c }", + "../second/second_part2.ts": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n" }, "root": [ [ @@ -17110,7 +17109,7 @@ declare class C { "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 12637 + "size": 12605 } //// [/src/first/bin/first-output.d.ts.map] @@ -17144,7 +17143,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -17159,7 +17158,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -17170,8 +17169,8 @@ sourceFile:../first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -17189,8 +17188,8 @@ sourceFile:../first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -17204,7 +17203,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -17219,7 +17218,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -17236,8 +17235,8 @@ sourceFile:../first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) @@ -17266,10 +17265,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -17292,12 +17291,12 @@ sourceFile:../first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -17325,7 +17324,7 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > +1 > > 2 >console 3 > . @@ -17397,7 +17396,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -17411,7 +17410,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) @@ -17420,7 +17419,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":119,"kind":"text"}],"mapHash":"-32659542769-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"14669719846-var s = \"Hola, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":148,"kind":"text"}],"mapHash":"31357838721-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-8638855186-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","3570577263-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":119,"kind":"text"}],"mapHash":"-32659542769-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"14669719846-var s = \"Hola, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":148,"kind":"text"}],"mapHash":"31357838721-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-8638855186-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-21292400928-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hola, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -17492,9 +17491,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "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; };", - "../first_part1.ts": "3570577263-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-21292400928-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hola, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -17523,7 +17522,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2701 + "size": 2677 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -17580,7 +17579,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -17595,7 +17594,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -17606,8 +17605,8 @@ sourceFile:../../../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -17625,8 +17624,8 @@ sourceFile:../../../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -17640,7 +17639,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -17655,7 +17654,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -17671,8 +17670,8 @@ sourceFile:../../../first/first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) @@ -17700,8 +17699,8 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) --- @@ -17710,8 +17709,8 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -17724,12 +17723,12 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) --- @@ -17737,7 +17736,7 @@ sourceFile:../../../second/second_part1.ts 1-> 2 >^^^^^^^^^^^^^^ 3 > ^^^^^^^ -1-> +1-> > > 2 >class @@ -17807,7 +17806,7 @@ sourceFile:../../../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(18, 5) Source(2, 5) + SourceIndex(3) @@ -17816,9 +17815,9 @@ sourceFile:../../../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(19, 2) Source(5, 2) + SourceIndex(3) --- @@ -17850,7 +17849,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.d.ts.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":3070,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":0,"end":3070,"kind":"text"}]},{"pos":3070,"end":3104,"kind":"text"}],"mapHash":"-121698117904-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACkB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACa;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"112142595384-var s = \"Hola, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = (function () {\n function normalC() {\n }\n normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n get: function () { return 10; },\n set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n function foo() { }\n normalN.foo = foo;\n var someNamespace;\n (function (someNamespace) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n normalN.someImport = someNamespace.C;\n normalN.internalConst = 10;\n var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\nvar internalC = (function () {\n function internalC() {\n }\n return internalC;\n}());\nfunction internalfoo() { }\nvar internalNamespace;\n(function (internalNamespace) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\nvar internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\nvar internalImport = internalNamespace.someClass;\nvar internalConst = 10;\nvar internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":297,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":0,"end":297,"kind":"text"}]},{"pos":297,"end":315,"kind":"text"}],"mapHash":"12830271258-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-5865236541-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-30869224908-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"-3666241207-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":3070,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":0,"end":3070,"kind":"text"}]},{"pos":3070,"end":3104,"kind":"text"}],"mapHash":"-121698117904-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACkB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACa;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"112142595384-var s = \"Hola, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = (function () {\n function normalC() {\n }\n normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n get: function () { return 10; },\n set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n function foo() { }\n normalN.foo = foo;\n var someNamespace;\n (function (someNamespace) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n normalN.someImport = someNamespace.C;\n normalN.internalConst = 10;\n var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\nvar internalC = (function () {\n function internalC() {\n }\n return internalC;\n}());\nfunction internalfoo() { }\nvar internalNamespace;\n(function (internalNamespace) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\nvar internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\nvar internalImport = internalNamespace.someClass;\nvar internalConst = 10;\nvar internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":297,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":0,"end":297,"kind":"text"}]},{"pos":297,"end":315,"kind":"text"}],"mapHash":"12830271258-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-5865236541-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-30869224908-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"-3666241207-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -18072,7 +18071,7 @@ declare var c: C; "fileInfos": { "../../../../lib/lib.d.ts": "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; };", "../../../2/second-output.d.ts": "-30869224908-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -18096,6 +18095,6 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 9797 + "size": 9792 } diff --git a/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-when-prepend-is-completely-internal.js b/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-when-prepend-is-completely-internal.js index 57cac12014f53..709fe87214f84 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-when-prepend-is-completely-internal.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-when-prepend-is-completely-internal.js @@ -19,79 +19,109 @@ declare const console: { log(msg: any): void; }; /* @internal */ const A = 1; //// [/src/first/first_part2.ts] -console.log(f()); +console.log(f()); //// [/src/first/first_part3.ts] -function f() { - return "JS does hoists"; -} +function f() { + return "JS does hoists"; +} -//// [/src/first/tsconfig.json] -{"compilerOptions":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true,"sourceMap":true,"outFile":"./bin/first-output.js"},"files":["/src/first/first_PART1.ts"]} -//// [/src/second/second_part1.ts] -namespace N { - // Comment text +//// [/src/first/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true, + "sourceMap": true, + "outFile": "./bin/first-output.js" + }, + "files": [ + "/src/first/first_PART1.ts" + ] } -namespace N { - function f() { - console.log('testing'); - } - - f(); -} +//// [/src/second/second_part1.ts] +namespace N { + // Comment text +} + +namespace N { + function f() { + console.log('testing'); + } + + f(); +} //// [/src/second/second_part2.ts] -class C { - doSomething() { - console.log("something got done"); - } -} +class C { + doSomething() { + console.log("something got done"); + } +} //// [/src/second/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "../2/second-output.js", - "skipDefaultLibCheck": true - }, - "references": [ - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "../2/second-output.js", + "skipDefaultLibCheck": true + }, + "references": [] } - //// [/src/third/third_part1.ts] const B = 2; //// [/src/third/tsconfig.json] -{"compilerOptions":{"ignoreDeprecations":"5.0","composite":true,"declaration":true,"declarationMap":false,"stripInternal":true,"sourceMap":true,"outFile":"./thirdjs/output/third-output.js"},"references":[{"path":"../first","prepend":true}],"files":["/src/third/third_part1.ts"]} +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "composite": true, + "declaration": true, + "declarationMap": false, + "stripInternal": true, + "sourceMap": true, + "outFile": "./thirdjs/output/third-output.js" + }, + "references": [ + { + "path": "../first", + "prepend": true + } + ], + "files": [ + "/src/third/third_part1.ts" + ] +} Output:: /lib/tsc --b /src/third --verbose -[12:00:10 AM] Projects in this build: +[12:00:22 AM] Projects in this build: * src/first/tsconfig.json * src/third/tsconfig.json -[12:00:11 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist +[12:00:23 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist -[12:00:12 AM] Building project '/src/first/tsconfig.json'... +[12:00:24 AM] Building project '/src/first/tsconfig.json'... -[12:00:22 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist +[12:00:34 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist -[12:00:23 AM] Building project '/src/third/tsconfig.json'... +[12:00:35 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success diff --git a/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js b/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js index acc224cd92aca..dc796b6cebe6d 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js @@ -16,62 +16,61 @@ interface ReadonlyArray {} declare const console: { log(msg: any): void; }; //// [/src/first/first_PART1.ts] -/*@internal*/ interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +/*@internal*/ interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); //// [/src/first/first_part2.ts] -console.log(f()); +console.log(f()); //// [/src/first/first_part3.ts] -function f() { - return "JS does hoists"; -} +function f() { + return "JS does hoists"; +} + //// [/src/first/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "composite": true, - "removeComments": false, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "outFile": "./bin/first-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "first_PART1.ts", - "first_part2.ts", - "first_part3.ts" - ], - "references": [ - ] +{ + "compilerOptions": { + "target": "es5", + "composite": true, + "removeComments": false, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "outFile": "./bin/first-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "first_PART1.ts", + "first_part2.ts", + "first_part3.ts" + ], + "references": [] } - //// [/src/second/second_part1.ts] -namespace N { - // Comment text -} - -namespace N { - function f() { - console.log('testing'); - } - - f(); -} +namespace N { + // Comment text +} + +namespace N { + function f() { + console.log('testing'); + } + + f(); +} class normalC { /*@internal*/ constructor() { } @@ -100,83 +99,83 @@ namespace normalN { /*@internal*/ enum internalEnum { a, b, c } //// [/src/second/second_part2.ts] -class C { - doSomething() { - console.log("something got done"); - } -} +class C { + doSomething() { + console.log("something got done"); + } +} //// [/src/second/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": false, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "../2/second-output.js", - "skipDefaultLibCheck": true - }, +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": false, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "../2/second-output.js", + "skipDefaultLibCheck": true + }, "references": [ - { "path": "../first", "prepend": true } - ] + { "path": "../first", "prepend": true } + ] } - //// [/src/third/third_part1.ts] -var c = new C(); -c.doSomething(); +var c = new C(); +c.doSomething(); //// [/src/third/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": false, - "strict": false, - "sourceMap": true, - "declarationMap": true, +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": false, + "strict": false, + "sourceMap": true, + "declarationMap": true, "declaration": true, - "stripInternal": true, - "outFile": "./thirdjs/output/third-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "third_part1.ts" - ], - "references": [ - - { "path": "../second", "prepend": true }, - ] + "stripInternal": true, + "outFile": "./thirdjs/output/third-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "third_part1.ts" + ], + "references": [ + { + "path": "../second", + "prepend": true + } + ] } - Output:: /lib/tsc --b /src/third --verbose -[12:00:14 AM] Projects in this build: +[12:00:26 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:15 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist +[12:00:27 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist -[12:00:16 AM] Building project '/src/first/tsconfig.json'... +[12:00:28 AM] Building project '/src/first/tsconfig.json'... -[12:00:26 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist +[12:00:38 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist -[12:00:27 AM] Building project '/src/second/tsconfig.json'... +[12:00:39 AM] Building project '/src/second/tsconfig.json'... -[12:00:37 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist +[12:00:49 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist -[12:00:38 AM] Building project '/src/third/tsconfig.json'... +[12:00:50 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -277,7 +276,7 @@ sourceFile:../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -292,7 +291,7 @@ sourceFile:../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -303,8 +302,8 @@ sourceFile:../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -322,8 +321,8 @@ sourceFile:../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -337,7 +336,7 @@ sourceFile:../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -352,7 +351,7 @@ sourceFile:../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -368,8 +367,8 @@ sourceFile:../first/first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) @@ -397,8 +396,8 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) --- @@ -407,8 +406,8 @@ sourceFile:../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -421,12 +420,12 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) --- @@ -434,7 +433,7 @@ sourceFile:../second/second_part1.ts 1-> 2 >^^^^^^^^^^^^^^ 3 > ^^^^^^^ -1-> +1-> > > 2 >class @@ -1038,7 +1037,7 @@ sourceFile:../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(61, 5) Source(2, 5) + SourceIndex(3) @@ -1047,9 +1046,9 @@ sourceFile:../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(62, 2) Source(5, 2) + SourceIndex(3) --- @@ -1187,10 +1186,10 @@ sourceFile:../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > +1 >/*@internal*/ interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -1214,12 +1213,12 @@ sourceFile:../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -1291,7 +1290,7 @@ sourceFile:../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -1305,7 +1304,7 @@ sourceFile:../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) @@ -1321,19 +1320,19 @@ sourceFile:../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(7, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(7, 5) Source(5, 11) + SourceIndex(3) @@ -1357,7 +1356,7 @@ sourceFile:../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -1374,7 +1373,7 @@ sourceFile:../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -1396,7 +1395,7 @@ sourceFile:../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(11, 5) Source(8, 5) + SourceIndex(3) @@ -1408,8 +1407,8 @@ sourceFile:../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -1428,19 +1427,19 @@ sourceFile:../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(13, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(13, 2) Source(11, 2) + SourceIndex(3) @@ -1453,7 +1452,7 @@ sourceFile:../second/second_part1.ts >>>var normalC = /** @class */ (function () { 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > > 1->Emitted(14, 1) Source(13, 1) + SourceIndex(3) @@ -2758,10 +2757,10 @@ sourceFile:../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(103, 5) Source(5, 1) + SourceIndex(4) @@ -2788,7 +2787,7 @@ sourceFile:../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -2810,7 +2809,7 @@ sourceFile:../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(106, 5) Source(4, 5) + SourceIndex(4) @@ -2819,7 +2818,7 @@ sourceFile:../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(107, 5) Source(5, 1) + SourceIndex(4) @@ -2834,10 +2833,10 @@ sourceFile:../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(108, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(108, 2) Source(5, 2) + SourceIndex(4) @@ -2847,7 +2846,7 @@ sourceFile:../second/second_part2.ts >>>//# sourceMappingURL=second-output.js.map //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"prepend","data":"../first/bin/first-output.js","texts":[{"pos":0,"end":104,"kind":"text"}]},{"pos":104,"end":3419,"kind":"text"}],"mapHash":"49450898210-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part2.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,aAAa,CAAC;IAAgB,CAAC;IAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,aAAa,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,aAAa,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAChC,aAAa,CAAC,SAAS,WAAW,KAAI,CAAC;AACvC,aAAa,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACvE,aAAa,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC7E,aAAa,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAElE,aAAa,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACvC,aAAa,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-14315723033-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = /** @class */ (function () {\n /*@internal*/ function normalC() {\n }\n /*@internal*/ normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n /*@internal*/ get: function () { return 10; },\n /*@internal*/ set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n /*@internal*/ var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n /*@internal*/ function foo() { }\n normalN.foo = foo;\n /*@internal*/ var someNamespace;\n (function (someNamespace) {\n var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n /*@internal*/ var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n /*@internal*/ normalN.someImport = someNamespace.C;\n /*@internal*/ normalN.internalConst = 10;\n /*@internal*/ var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\n/*@internal*/ var internalC = /** @class */ (function () {\n function internalC() {\n }\n return internalC;\n}());\n/*@internal*/ function internalfoo() { }\n/*@internal*/ var internalNamespace;\n(function (internalNamespace) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\n/*@internal*/ var internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\n/*@internal*/ var internalImport = internalNamespace.someClass;\n/*@internal*/ var internalConst = 10;\n/*@internal*/ var internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = /** @class */ (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../first/bin/first-output.d.ts","texts":[{"pos":0,"end":37,"kind":"internal"},{"pos":38,"end":149,"kind":"text"}]},{"pos":149,"end":221,"kind":"text"},{"pos":221,"end":322,"kind":"internal"},{"pos":323,"end":353,"kind":"text"},{"pos":353,"end":727,"kind":"internal"},{"pos":728,"end":730,"kind":"text"},{"pos":730,"end":1117,"kind":"internal"},{"pos":1118,"end":1163,"kind":"text"}],"mapHash":"13974556515-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACvC;AACD,kBAAU,OAAO,CAAC;IACA,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACrD;AACa,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,KAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC3C,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-42543550337-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../first/bin/first-output.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["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; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","13528403307-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n\nclass normalC {\n /*@internal*/ constructor() { }\n /*@internal*/ prop: string;\n /*@internal*/ method() { }\n /*@internal*/ get c() { return 10; }\n /*@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /*@internal*/ export class C { }\n /*@internal*/ export function foo() {}\n /*@internal*/ export namespace someNamespace { export class C {} }\n /*@internal*/ export namespace someOther.something { export class someClass {} }\n /*@internal*/ export import someImport = someNamespace.C;\n /*@internal*/ export type internalType = internalC;\n /*@internal*/ export const internalConst = 10;\n /*@internal*/ export enum internalEnum { a, b, c }\n}\n/*@internal*/ class internalC {}\n/*@internal*/ function internalfoo() {}\n/*@internal*/ namespace internalNamespace { export class someClass {} }\n/*@internal*/ namespace internalOther.something { export class someClass {} }\n/*@internal*/ import internalImport = internalNamespace.someClass;\n/*@internal*/ type internalType = internalC;\n/*@internal*/ const internalConst = 10;\n/*@internal*/ enum internalEnum { a, b, c }","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"root":[3,4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":false,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-33280928732-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"prepend","data":"../first/bin/first-output.js","texts":[{"pos":0,"end":104,"kind":"text"}]},{"pos":104,"end":3419,"kind":"text"}],"mapHash":"49450898210-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part2.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,aAAa,CAAC;IAAgB,CAAC;IAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,aAAa,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,aAAa,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAChC,aAAa,CAAC,SAAS,WAAW,KAAI,CAAC;AACvC,aAAa,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACvE,aAAa,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC7E,aAAa,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAElE,aAAa,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACvC,aAAa,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-14315723033-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = /** @class */ (function () {\n /*@internal*/ function normalC() {\n }\n /*@internal*/ normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n /*@internal*/ get: function () { return 10; },\n /*@internal*/ set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n /*@internal*/ var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n /*@internal*/ function foo() { }\n normalN.foo = foo;\n /*@internal*/ var someNamespace;\n (function (someNamespace) {\n var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n /*@internal*/ var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n /*@internal*/ normalN.someImport = someNamespace.C;\n /*@internal*/ normalN.internalConst = 10;\n /*@internal*/ var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\n/*@internal*/ var internalC = /** @class */ (function () {\n function internalC() {\n }\n return internalC;\n}());\n/*@internal*/ function internalfoo() { }\n/*@internal*/ var internalNamespace;\n(function (internalNamespace) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\n/*@internal*/ var internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\n/*@internal*/ var internalImport = internalNamespace.someClass;\n/*@internal*/ var internalConst = 10;\n/*@internal*/ var internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = /** @class */ (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../first/bin/first-output.d.ts","texts":[{"pos":0,"end":37,"kind":"internal"},{"pos":38,"end":149,"kind":"text"}]},{"pos":149,"end":221,"kind":"text"},{"pos":221,"end":322,"kind":"internal"},{"pos":323,"end":353,"kind":"text"},{"pos":353,"end":727,"kind":"internal"},{"pos":728,"end":730,"kind":"text"},{"pos":730,"end":1117,"kind":"internal"},{"pos":1118,"end":1163,"kind":"text"}],"mapHash":"13974556515-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACvC;AACD,kBAAU,OAAO,CAAC;IACA,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACrD;AACa,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,KAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC3C,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-42543550337-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../first/bin/first-output.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["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; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","48997088700-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n\nclass normalC {\n /*@internal*/ constructor() { }\n /*@internal*/ prop: string;\n /*@internal*/ method() { }\n /*@internal*/ get c() { return 10; }\n /*@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /*@internal*/ export class C { }\n /*@internal*/ export function foo() {}\n /*@internal*/ export namespace someNamespace { export class C {} }\n /*@internal*/ export namespace someOther.something { export class someClass {} }\n /*@internal*/ export import someImport = someNamespace.C;\n /*@internal*/ export type internalType = internalC;\n /*@internal*/ export const internalConst = 10;\n /*@internal*/ export enum internalEnum { a, b, c }\n}\n/*@internal*/ class internalC {}\n/*@internal*/ function internalfoo() {}\n/*@internal*/ namespace internalNamespace { export class someClass {} }\n/*@internal*/ namespace internalOther.something { export class someClass {} }\n/*@internal*/ import internalImport = internalNamespace.someClass;\n/*@internal*/ type internalType = internalC;\n/*@internal*/ const internalConst = 10;\n/*@internal*/ enum internalEnum { a, b, c }","3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n"],"root":[3,4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":false,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-33280928732-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -3162,8 +3161,8 @@ declare class C { "fileInfos": { "../../lib/lib.d.ts": "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; };", "../first/bin/first-output.d.ts": "-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", - "../second/second_part1.ts": "13528403307-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n\nclass normalC {\n /*@internal*/ constructor() { }\n /*@internal*/ prop: string;\n /*@internal*/ method() { }\n /*@internal*/ get c() { return 10; }\n /*@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /*@internal*/ export class C { }\n /*@internal*/ export function foo() {}\n /*@internal*/ export namespace someNamespace { export class C {} }\n /*@internal*/ export namespace someOther.something { export class someClass {} }\n /*@internal*/ export import someImport = someNamespace.C;\n /*@internal*/ export type internalType = internalC;\n /*@internal*/ export const internalConst = 10;\n /*@internal*/ export enum internalEnum { a, b, c }\n}\n/*@internal*/ class internalC {}\n/*@internal*/ function internalfoo() {}\n/*@internal*/ namespace internalNamespace { export class someClass {} }\n/*@internal*/ namespace internalOther.something { export class someClass {} }\n/*@internal*/ import internalImport = internalNamespace.someClass;\n/*@internal*/ type internalType = internalC;\n/*@internal*/ const internalConst = 10;\n/*@internal*/ enum internalEnum { a, b, c }", - "../second/second_part2.ts": "9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n" + "../second/second_part1.ts": "48997088700-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n\nclass normalC {\n /*@internal*/ constructor() { }\n /*@internal*/ prop: string;\n /*@internal*/ method() { }\n /*@internal*/ get c() { return 10; }\n /*@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /*@internal*/ export class C { }\n /*@internal*/ export function foo() {}\n /*@internal*/ export namespace someNamespace { export class C {} }\n /*@internal*/ export namespace someOther.something { export class someClass {} }\n /*@internal*/ export import someImport = someNamespace.C;\n /*@internal*/ export type internalType = internalC;\n /*@internal*/ export const internalConst = 10;\n /*@internal*/ export enum internalEnum { a, b, c }\n}\n/*@internal*/ class internalC {}\n/*@internal*/ function internalfoo() {}\n/*@internal*/ namespace internalNamespace { export class someClass {} }\n/*@internal*/ namespace internalOther.something { export class someClass {} }\n/*@internal*/ import internalImport = internalNamespace.someClass;\n/*@internal*/ type internalType = internalC;\n/*@internal*/ const internalConst = 10;\n/*@internal*/ enum internalEnum { a, b, c }", + "../second/second_part2.ts": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n" }, "root": [ [ @@ -3190,7 +3189,7 @@ declare class C { "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 13167 + "size": 13135 } //// [/src/first/bin/first-output.d.ts] @@ -3235,7 +3234,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -3250,7 +3249,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -3261,8 +3260,8 @@ sourceFile:../first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -3280,8 +3279,8 @@ sourceFile:../first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -3295,7 +3294,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -3310,7 +3309,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -3327,8 +3326,8 @@ sourceFile:../first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) @@ -3367,10 +3366,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > +1 >/*@internal*/ interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -3394,12 +3393,12 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -3471,7 +3470,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -3485,7 +3484,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) @@ -3494,7 +3493,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"4999315210-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":37,"kind":"internal"},{"pos":38,"end":149,"kind":"text"}],"mapHash":"36580418620-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-7635519924-/*@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":false,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"4999315210-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":37,"kind":"internal"},{"pos":38,"end":149,"kind":"text"}],"mapHash":"36580418620-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","6800247997-/*@internal*/ interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":false,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -3572,9 +3571,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "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; };", - "../first_part1.ts": "-7635519924-/*@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "6800247997-/*@internal*/ interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -3603,7 +3602,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2688 + "size": 2661 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -3647,10 +3646,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > +1 >/*@internal*/ interface TheFirst { + > none: any; + >} + > > 2 > 3 > const @@ -3668,8 +3667,8 @@ sourceFile:../../../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -3683,7 +3682,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -3698,7 +3697,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(4, 2) Source(9, 2) + SourceIndex(0) --- @@ -3714,8 +3713,8 @@ sourceFile:../../../first/first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) 2 >Emitted(5, 18) Source(1, 10) + SourceIndex(1) @@ -3743,8 +3742,8 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) --- @@ -3753,8 +3752,8 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -3767,12 +3766,12 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(9, 2) Source(11, 2) + SourceIndex(2) --- @@ -3780,7 +3779,7 @@ sourceFile:../../../second/second_part1.ts 1-> 2 >^^^^^^^^^^^^^^ 3 > ^^^^^^^ -1-> +1-> > > 2 >class @@ -3850,7 +3849,7 @@ sourceFile:../../../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(15, 5) Source(2, 5) + SourceIndex(3) @@ -3859,9 +3858,9 @@ sourceFile:../../../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(16, 2) Source(5, 2) + SourceIndex(3) --- @@ -4026,10 +4025,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > +1 >/*@internal*/ interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -4053,12 +4052,12 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -4130,7 +4129,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -4144,7 +4143,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) @@ -4160,19 +4159,19 @@ sourceFile:../../../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(7, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(7, 5) Source(5, 11) + SourceIndex(3) @@ -4196,7 +4195,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -4213,7 +4212,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -4235,7 +4234,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(11, 5) Source(8, 5) + SourceIndex(3) @@ -4247,8 +4246,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -4267,19 +4266,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(13, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(13, 2) Source(11, 2) + SourceIndex(3) @@ -4292,7 +4291,7 @@ sourceFile:../../../second/second_part1.ts >>>var normalC = /** @class */ (function () { 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > > 1->Emitted(14, 1) Source(13, 1) + SourceIndex(3) @@ -5597,10 +5596,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(103, 5) Source(5, 1) + SourceIndex(4) @@ -5627,7 +5626,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -5649,7 +5648,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(106, 5) Source(4, 5) + SourceIndex(4) @@ -5658,7 +5657,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(107, 5) Source(5, 1) + SourceIndex(4) @@ -5673,10 +5672,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(108, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(108, 2) Source(5, 2) + SourceIndex(4) @@ -5721,7 +5720,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -5738,7 +5737,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":3419,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":0,"end":3419,"kind":"text"}]},{"pos":3419,"end":3453,"kind":"text"}],"mapHash":"139241117891-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,aAAa,CAAC;IAAgB,CAAC;IAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,aAAa,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,aAAa,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAChC,aAAa,CAAC,SAAS,WAAW,KAAI,CAAC;AACvC,aAAa,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACvE,aAAa,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC7E,aAAa,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAElE,aAAa,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACvC,aAAa,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-30933053094-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = /** @class */ (function () {\n /*@internal*/ function normalC() {\n }\n /*@internal*/ normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n /*@internal*/ get: function () { return 10; },\n /*@internal*/ set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n /*@internal*/ var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n /*@internal*/ function foo() { }\n normalN.foo = foo;\n /*@internal*/ var someNamespace;\n (function (someNamespace) {\n var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n /*@internal*/ var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n /*@internal*/ normalN.someImport = someNamespace.C;\n /*@internal*/ normalN.internalConst = 10;\n /*@internal*/ var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\n/*@internal*/ var internalC = /** @class */ (function () {\n function internalC() {\n }\n return internalC;\n}());\n/*@internal*/ function internalfoo() { }\n/*@internal*/ var internalNamespace;\n(function (internalNamespace) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\n/*@internal*/ var internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\n/*@internal*/ var internalImport = internalNamespace.someClass;\n/*@internal*/ var internalConst = 10;\n/*@internal*/ var internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = /** @class */ (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":260,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":0,"end":260,"kind":"text"}]},{"pos":260,"end":278,"kind":"text"}],"mapHash":"16014976674-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-51018023562-declare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-33280928732-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":false,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"-46239946948-declare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":3419,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":0,"end":3419,"kind":"text"}]},{"pos":3419,"end":3453,"kind":"text"}],"mapHash":"139241117891-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,aAAa,CAAC;IAAgB,CAAC;IAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,aAAa,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,aAAa,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAChC,aAAa,CAAC,SAAS,WAAW,KAAI,CAAC;AACvC,aAAa,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACvE,aAAa,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC7E,aAAa,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAElE,aAAa,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACvC,aAAa,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-30933053094-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = /** @class */ (function () {\n /*@internal*/ function normalC() {\n }\n /*@internal*/ normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n /*@internal*/ get: function () { return 10; },\n /*@internal*/ set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n /*@internal*/ var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n /*@internal*/ function foo() { }\n normalN.foo = foo;\n /*@internal*/ var someNamespace;\n (function (someNamespace) {\n var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n /*@internal*/ var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n /*@internal*/ normalN.someImport = someNamespace.C;\n /*@internal*/ normalN.internalConst = 10;\n /*@internal*/ var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\n/*@internal*/ var internalC = /** @class */ (function () {\n function internalC() {\n }\n return internalC;\n}());\n/*@internal*/ function internalfoo() { }\n/*@internal*/ var internalNamespace;\n(function (internalNamespace) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\n/*@internal*/ var internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\n/*@internal*/ var internalImport = internalNamespace.someClass;\n/*@internal*/ var internalConst = 10;\n/*@internal*/ var internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = /** @class */ (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":260,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":0,"end":260,"kind":"text"}]},{"pos":260,"end":278,"kind":"text"}],"mapHash":"16014976674-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-51018023562-declare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-33280928732-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":false,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"-46239946948-declare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -5956,7 +5955,7 @@ declare var c: C; "fileInfos": { "../../../../lib/lib.d.ts": "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; };", "../../../2/second-output.d.ts": "-33280928732-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -5980,7 +5979,7 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 10163 + "size": 10158 } @@ -5988,39 +5987,39 @@ declare var c: C; Change:: incremental-declaration-doesnt-change Input:: //// [/src/first/first_PART1.ts] -/*@internal*/ interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +/*@internal*/ interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:00:56 AM] Projects in this build: +[12:01:08 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:57 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:01:09 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:00:58 AM] Building project '/src/first/tsconfig.json'... +[12:01:10 AM] Building project '/src/first/tsconfig.json'... -[12:01:06 AM] Project 'src/second/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:01:18 AM] Project 'src/second/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:01:07 AM] Updating output of project '/src/second/tsconfig.json'... +[12:01:19 AM] Updating output of project '/src/second/tsconfig.json'... -[12:01:14 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/second' has changed +[12:01:26 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/second' has changed -[12:01:15 AM] Updating output of project '/src/third/tsconfig.json'... +[12:01:27 AM] Updating output of project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -6158,10 +6157,10 @@ sourceFile:../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > +1 >/*@internal*/ interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -6184,12 +6183,12 @@ sourceFile:../first/first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -6217,7 +6216,7 @@ sourceFile:../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > +1 > > 2 >console 3 > . @@ -6289,7 +6288,7 @@ sourceFile:../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -6303,7 +6302,7 @@ sourceFile:../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) @@ -6319,19 +6318,19 @@ sourceFile:../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(8, 5) Source(5, 11) + SourceIndex(3) @@ -6355,7 +6354,7 @@ sourceFile:../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -6372,7 +6371,7 @@ sourceFile:../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -6394,7 +6393,7 @@ sourceFile:../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(12, 5) Source(8, 5) + SourceIndex(3) @@ -6406,8 +6405,8 @@ sourceFile:../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -6426,19 +6425,19 @@ sourceFile:../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(14, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(14, 2) Source(11, 2) + SourceIndex(3) @@ -6451,7 +6450,7 @@ sourceFile:../second/second_part1.ts >>>var normalC = /** @class */ (function () { 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > > 1->Emitted(15, 1) Source(13, 1) + SourceIndex(3) @@ -7756,10 +7755,10 @@ sourceFile:../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(104, 5) Source(5, 1) + SourceIndex(4) @@ -7786,7 +7785,7 @@ sourceFile:../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -7808,7 +7807,7 @@ sourceFile:../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(107, 5) Source(4, 5) + SourceIndex(4) @@ -7817,7 +7816,7 @@ sourceFile:../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(108, 5) Source(5, 1) + SourceIndex(4) @@ -7832,10 +7831,10 @@ sourceFile:../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(109, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(109, 2) Source(5, 2) + SourceIndex(4) @@ -7845,7 +7844,7 @@ sourceFile:../second/second_part2.ts >>>//# sourceMappingURL=second-output.js.map //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":120,"kind":"prepend","data":"../first/bin/first-output.js","texts":[{"pos":0,"end":120,"kind":"text"}]},{"pos":120,"end":3435,"kind":"text"}],"mapHash":"4497977942-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part2.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,aAAa,CAAC;IAAgB,CAAC;IAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,aAAa,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,aAAa,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAChC,aAAa,CAAC,SAAS,WAAW,KAAI,CAAC;AACvC,aAAa,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACvE,aAAa,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC7E,aAAa,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAElE,aAAa,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACvC,aAAa,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"15795435923-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = /** @class */ (function () {\n /*@internal*/ function normalC() {\n }\n /*@internal*/ normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n /*@internal*/ get: function () { return 10; },\n /*@internal*/ set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n /*@internal*/ var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n /*@internal*/ function foo() { }\n normalN.foo = foo;\n /*@internal*/ var someNamespace;\n (function (someNamespace) {\n var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n /*@internal*/ var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n /*@internal*/ normalN.someImport = someNamespace.C;\n /*@internal*/ normalN.internalConst = 10;\n /*@internal*/ var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\n/*@internal*/ var internalC = /** @class */ (function () {\n function internalC() {\n }\n return internalC;\n}());\n/*@internal*/ function internalfoo() { }\n/*@internal*/ var internalNamespace;\n(function (internalNamespace) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\n/*@internal*/ var internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\n/*@internal*/ var internalImport = internalNamespace.someClass;\n/*@internal*/ var internalConst = 10;\n/*@internal*/ var internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = /** @class */ (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../first/bin/first-output.d.ts","texts":[{"pos":0,"end":37,"kind":"internal"},{"pos":38,"end":149,"kind":"text"}]},{"pos":149,"end":221,"kind":"text"},{"pos":221,"end":322,"kind":"internal"},{"pos":323,"end":353,"kind":"text"},{"pos":353,"end":727,"kind":"internal"},{"pos":728,"end":730,"kind":"text"},{"pos":730,"end":1117,"kind":"internal"},{"pos":1118,"end":1163,"kind":"text"}],"mapHash":"13974556515-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACvC;AACD,kBAAU,OAAO,CAAC;IACA,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACrD;AACa,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,KAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC3C,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-42543550337-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../first/bin/first-output.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["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; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","13528403307-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n\nclass normalC {\n /*@internal*/ constructor() { }\n /*@internal*/ prop: string;\n /*@internal*/ method() { }\n /*@internal*/ get c() { return 10; }\n /*@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /*@internal*/ export class C { }\n /*@internal*/ export function foo() {}\n /*@internal*/ export namespace someNamespace { export class C {} }\n /*@internal*/ export namespace someOther.something { export class someClass {} }\n /*@internal*/ export import someImport = someNamespace.C;\n /*@internal*/ export type internalType = internalC;\n /*@internal*/ export const internalConst = 10;\n /*@internal*/ export enum internalEnum { a, b, c }\n}\n/*@internal*/ class internalC {}\n/*@internal*/ function internalfoo() {}\n/*@internal*/ namespace internalNamespace { export class someClass {} }\n/*@internal*/ namespace internalOther.something { export class someClass {} }\n/*@internal*/ import internalImport = internalNamespace.someClass;\n/*@internal*/ type internalType = internalC;\n/*@internal*/ const internalConst = 10;\n/*@internal*/ enum internalEnum { a, b, c }","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"root":[3,4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":false,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-33280928732-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":120,"kind":"prepend","data":"../first/bin/first-output.js","texts":[{"pos":0,"end":120,"kind":"text"}]},{"pos":120,"end":3435,"kind":"text"}],"mapHash":"4497977942-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part2.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,aAAa,CAAC;IAAgB,CAAC;IAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,aAAa,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,aAAa,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAChC,aAAa,CAAC,SAAS,WAAW,KAAI,CAAC;AACvC,aAAa,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACvE,aAAa,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC7E,aAAa,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAElE,aAAa,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACvC,aAAa,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"15795435923-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = /** @class */ (function () {\n /*@internal*/ function normalC() {\n }\n /*@internal*/ normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n /*@internal*/ get: function () { return 10; },\n /*@internal*/ set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n /*@internal*/ var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n /*@internal*/ function foo() { }\n normalN.foo = foo;\n /*@internal*/ var someNamespace;\n (function (someNamespace) {\n var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n /*@internal*/ var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n /*@internal*/ normalN.someImport = someNamespace.C;\n /*@internal*/ normalN.internalConst = 10;\n /*@internal*/ var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\n/*@internal*/ var internalC = /** @class */ (function () {\n function internalC() {\n }\n return internalC;\n}());\n/*@internal*/ function internalfoo() { }\n/*@internal*/ var internalNamespace;\n(function (internalNamespace) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\n/*@internal*/ var internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\n/*@internal*/ var internalImport = internalNamespace.someClass;\n/*@internal*/ var internalConst = 10;\n/*@internal*/ var internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = /** @class */ (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../first/bin/first-output.d.ts","texts":[{"pos":0,"end":37,"kind":"internal"},{"pos":38,"end":149,"kind":"text"}]},{"pos":149,"end":221,"kind":"text"},{"pos":221,"end":322,"kind":"internal"},{"pos":323,"end":353,"kind":"text"},{"pos":353,"end":727,"kind":"internal"},{"pos":728,"end":730,"kind":"text"},{"pos":730,"end":1117,"kind":"internal"},{"pos":1118,"end":1163,"kind":"text"}],"mapHash":"13974556515-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACvC;AACD,kBAAU,OAAO,CAAC;IACA,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACrD;AACa,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,KAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC3C,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-42543550337-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../first/bin/first-output.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["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; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","48997088700-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n\nclass normalC {\n /*@internal*/ constructor() { }\n /*@internal*/ prop: string;\n /*@internal*/ method() { }\n /*@internal*/ get c() { return 10; }\n /*@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /*@internal*/ export class C { }\n /*@internal*/ export function foo() {}\n /*@internal*/ export namespace someNamespace { export class C {} }\n /*@internal*/ export namespace someOther.something { export class someClass {} }\n /*@internal*/ export import someImport = someNamespace.C;\n /*@internal*/ export type internalType = internalC;\n /*@internal*/ export const internalConst = 10;\n /*@internal*/ export enum internalEnum { a, b, c }\n}\n/*@internal*/ class internalC {}\n/*@internal*/ function internalfoo() {}\n/*@internal*/ namespace internalNamespace { export class someClass {} }\n/*@internal*/ namespace internalOther.something { export class someClass {} }\n/*@internal*/ import internalImport = internalNamespace.someClass;\n/*@internal*/ type internalType = internalC;\n/*@internal*/ const internalConst = 10;\n/*@internal*/ enum internalEnum { a, b, c }","3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n"],"root":[3,4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":false,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-33280928732-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -8161,8 +8160,8 @@ declare class C { "fileInfos": { "../../lib/lib.d.ts": "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; };", "../first/bin/first-output.d.ts": "-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", - "../second/second_part1.ts": "13528403307-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n\nclass normalC {\n /*@internal*/ constructor() { }\n /*@internal*/ prop: string;\n /*@internal*/ method() { }\n /*@internal*/ get c() { return 10; }\n /*@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /*@internal*/ export class C { }\n /*@internal*/ export function foo() {}\n /*@internal*/ export namespace someNamespace { export class C {} }\n /*@internal*/ export namespace someOther.something { export class someClass {} }\n /*@internal*/ export import someImport = someNamespace.C;\n /*@internal*/ export type internalType = internalC;\n /*@internal*/ export const internalConst = 10;\n /*@internal*/ export enum internalEnum { a, b, c }\n}\n/*@internal*/ class internalC {}\n/*@internal*/ function internalfoo() {}\n/*@internal*/ namespace internalNamespace { export class someClass {} }\n/*@internal*/ namespace internalOther.something { export class someClass {} }\n/*@internal*/ import internalImport = internalNamespace.someClass;\n/*@internal*/ type internalType = internalC;\n/*@internal*/ const internalConst = 10;\n/*@internal*/ enum internalEnum { a, b, c }", - "../second/second_part2.ts": "9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n" + "../second/second_part1.ts": "48997088700-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n\nclass normalC {\n /*@internal*/ constructor() { }\n /*@internal*/ prop: string;\n /*@internal*/ method() { }\n /*@internal*/ get c() { return 10; }\n /*@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /*@internal*/ export class C { }\n /*@internal*/ export function foo() {}\n /*@internal*/ export namespace someNamespace { export class C {} }\n /*@internal*/ export namespace someOther.something { export class someClass {} }\n /*@internal*/ export import someImport = someNamespace.C;\n /*@internal*/ export type internalType = internalC;\n /*@internal*/ export const internalConst = 10;\n /*@internal*/ export enum internalEnum { a, b, c }\n}\n/*@internal*/ class internalC {}\n/*@internal*/ function internalfoo() {}\n/*@internal*/ namespace internalNamespace { export class someClass {} }\n/*@internal*/ namespace internalOther.something { export class someClass {} }\n/*@internal*/ import internalImport = internalNamespace.someClass;\n/*@internal*/ type internalType = internalC;\n/*@internal*/ const internalConst = 10;\n/*@internal*/ enum internalEnum { a, b, c }", + "../second/second_part2.ts": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n" }, "root": [ [ @@ -8189,7 +8188,7 @@ declare class C { "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 13222 + "size": 13190 } //// [/src/first/bin/first-output.d.ts.map] file written with same contents @@ -8225,10 +8224,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > +1 >/*@internal*/ interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -8251,12 +8250,12 @@ sourceFile:../first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -8284,7 +8283,7 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > +1 > > 2 >console 3 > . @@ -8356,7 +8355,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -8370,7 +8369,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) @@ -8379,7 +8378,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":120,"kind":"text"}],"mapHash":"-2702861355-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-20052626506-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":37,"kind":"internal"},{"pos":38,"end":149,"kind":"text"}],"mapHash":"36580418620-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-8483255506-/*@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":false,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":120,"kind":"text"}],"mapHash":"-2702861355-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-20052626506-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":37,"kind":"internal"},{"pos":38,"end":149,"kind":"text"}],"mapHash":"36580418620-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","3002800511-/*@internal*/ interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":false,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -8458,9 +8457,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "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; };", - "../first_part1.ts": "-8483255506-/*@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "3002800511-/*@internal*/ interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -8489,7 +8488,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2761 + "size": 2734 } //// [/src/third/thirdjs/output/third-output.js] @@ -8627,10 +8626,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > +1 >/*@internal*/ interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -8653,12 +8652,12 @@ sourceFile:../../../first/first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -8686,7 +8685,7 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > +1 > > 2 >console 3 > . @@ -8758,7 +8757,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -8772,7 +8771,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) @@ -8788,19 +8787,19 @@ sourceFile:../../../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(8, 5) Source(5, 11) + SourceIndex(3) @@ -8824,7 +8823,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -8841,7 +8840,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -8863,7 +8862,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(12, 5) Source(8, 5) + SourceIndex(3) @@ -8875,8 +8874,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -8895,19 +8894,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(14, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(14, 2) Source(11, 2) + SourceIndex(3) @@ -8920,7 +8919,7 @@ sourceFile:../../../second/second_part1.ts >>>var normalC = /** @class */ (function () { 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > > 1->Emitted(15, 1) Source(13, 1) + SourceIndex(3) @@ -10225,10 +10224,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(104, 5) Source(5, 1) + SourceIndex(4) @@ -10255,7 +10254,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -10277,7 +10276,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(107, 5) Source(4, 5) + SourceIndex(4) @@ -10286,7 +10285,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(108, 5) Source(5, 1) + SourceIndex(4) @@ -10301,10 +10300,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(109, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(109, 2) Source(5, 2) + SourceIndex(4) @@ -10349,7 +10348,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -10366,7 +10365,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":3435,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":0,"end":3435,"kind":"text"}]},{"pos":3435,"end":3469,"kind":"text"}],"mapHash":"92086003575-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,aAAa,CAAC;IAAgB,CAAC;IAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,aAAa,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,aAAa,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAChC,aAAa,CAAC,SAAS,WAAW,KAAI,CAAC;AACvC,aAAa,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACvE,aAAa,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC7E,aAAa,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAElE,aAAa,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACvC,aAAa,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"14154918278-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = /** @class */ (function () {\n /*@internal*/ function normalC() {\n }\n /*@internal*/ normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n /*@internal*/ get: function () { return 10; },\n /*@internal*/ set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n /*@internal*/ var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n /*@internal*/ function foo() { }\n normalN.foo = foo;\n /*@internal*/ var someNamespace;\n (function (someNamespace) {\n var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n /*@internal*/ var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n /*@internal*/ normalN.someImport = someNamespace.C;\n /*@internal*/ normalN.internalConst = 10;\n /*@internal*/ var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\n/*@internal*/ var internalC = /** @class */ (function () {\n function internalC() {\n }\n return internalC;\n}());\n/*@internal*/ function internalfoo() { }\n/*@internal*/ var internalNamespace;\n(function (internalNamespace) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\n/*@internal*/ var internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\n/*@internal*/ var internalImport = internalNamespace.someClass;\n/*@internal*/ var internalConst = 10;\n/*@internal*/ var internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = /** @class */ (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":260,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":0,"end":260,"kind":"text"}]},{"pos":260,"end":278,"kind":"text"}],"mapHash":"16014976674-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-51018023562-declare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-33280928732-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":false,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"-46239946948-declare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":3435,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":0,"end":3435,"kind":"text"}]},{"pos":3435,"end":3469,"kind":"text"}],"mapHash":"92086003575-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,aAAa,CAAC;IAAgB,CAAC;IAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,aAAa,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,aAAa,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAChC,aAAa,CAAC,SAAS,WAAW,KAAI,CAAC;AACvC,aAAa,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACvE,aAAa,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC7E,aAAa,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAElE,aAAa,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACvC,aAAa,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"14154918278-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = /** @class */ (function () {\n /*@internal*/ function normalC() {\n }\n /*@internal*/ normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n /*@internal*/ get: function () { return 10; },\n /*@internal*/ set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n /*@internal*/ var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n /*@internal*/ function foo() { }\n normalN.foo = foo;\n /*@internal*/ var someNamespace;\n (function (someNamespace) {\n var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n /*@internal*/ var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n /*@internal*/ normalN.someImport = someNamespace.C;\n /*@internal*/ normalN.internalConst = 10;\n /*@internal*/ var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\n/*@internal*/ var internalC = /** @class */ (function () {\n function internalC() {\n }\n return internalC;\n}());\n/*@internal*/ function internalfoo() { }\n/*@internal*/ var internalNamespace;\n(function (internalNamespace) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\n/*@internal*/ var internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\n/*@internal*/ var internalImport = internalNamespace.someClass;\n/*@internal*/ var internalConst = 10;\n/*@internal*/ var internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = /** @class */ (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":260,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":0,"end":260,"kind":"text"}]},{"pos":260,"end":278,"kind":"text"}],"mapHash":"16014976674-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-51018023562-declare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-33280928732-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":false,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"-46239946948-declare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -10585,7 +10584,7 @@ declare var c: C; "fileInfos": { "../../../../lib/lib.d.ts": "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; };", "../../../2/second-output.d.ts": "-33280928732-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -10609,7 +10608,7 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 10218 + "size": 10213 } @@ -10617,39 +10616,39 @@ declare var c: C; Change:: incremental-headers-change-without-dts-changes Input:: //// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:01:27 AM] Projects in this build: +[12:01:39 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:01:28 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:01:40 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:01:29 AM] Building project '/src/first/tsconfig.json'... +[12:01:41 AM] Building project '/src/first/tsconfig.json'... -[12:01:37 AM] Project 'src/second/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:01:49 AM] Project 'src/second/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:01:38 AM] Updating output of project '/src/second/tsconfig.json'... +[12:01:50 AM] Updating output of project '/src/second/tsconfig.json'... -[12:01:44 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/second' has changed +[12:01:56 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/second' has changed -[12:01:45 AM] Updating output of project '/src/third/tsconfig.json'... +[12:01:57 AM] Updating output of project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -10685,7 +10684,7 @@ sourceFile:../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -10700,7 +10699,7 @@ sourceFile:../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -10711,8 +10710,8 @@ sourceFile:../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -10730,8 +10729,8 @@ sourceFile:../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -10745,7 +10744,7 @@ sourceFile:../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -10760,7 +10759,7 @@ sourceFile:../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -10776,8 +10775,8 @@ sourceFile:../first/first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) @@ -10805,8 +10804,8 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) --- @@ -10815,8 +10814,8 @@ sourceFile:../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -10829,12 +10828,12 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) --- @@ -10842,7 +10841,7 @@ sourceFile:../second/second_part1.ts 1-> 2 >^^^^^^^^^^^^^^ 3 > ^^^^^^^ -1-> +1-> > > 2 >class @@ -11446,7 +11445,7 @@ sourceFile:../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(61, 5) Source(2, 5) + SourceIndex(3) @@ -11455,16 +11454,16 @@ sourceFile:../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(62, 2) Source(5, 2) + SourceIndex(3) --- >>>//# sourceMappingURL=second-output.d.ts.map //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":120,"kind":"prepend","data":"../first/bin/first-output.js","texts":[{"pos":0,"end":120,"kind":"text"}]},{"pos":120,"end":3435,"kind":"text"}],"mapHash":"4497977942-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part2.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,aAAa,CAAC;IAAgB,CAAC;IAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,aAAa,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,aAAa,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAChC,aAAa,CAAC,SAAS,WAAW,KAAI,CAAC;AACvC,aAAa,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACvE,aAAa,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC7E,aAAa,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAElE,aAAa,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACvC,aAAa,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"15795435923-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = /** @class */ (function () {\n /*@internal*/ function normalC() {\n }\n /*@internal*/ normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n /*@internal*/ get: function () { return 10; },\n /*@internal*/ set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n /*@internal*/ var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n /*@internal*/ function foo() { }\n normalN.foo = foo;\n /*@internal*/ var someNamespace;\n (function (someNamespace) {\n var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n /*@internal*/ var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n /*@internal*/ normalN.someImport = someNamespace.C;\n /*@internal*/ normalN.internalConst = 10;\n /*@internal*/ var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\n/*@internal*/ var internalC = /** @class */ (function () {\n function internalC() {\n }\n return internalC;\n}());\n/*@internal*/ function internalfoo() { }\n/*@internal*/ var internalNamespace;\n(function (internalNamespace) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\n/*@internal*/ var internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\n/*@internal*/ var internalImport = internalNamespace.someClass;\n/*@internal*/ var internalConst = 10;\n/*@internal*/ var internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = /** @class */ (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../first/bin/first-output.d.ts","texts":[{"pos":0,"end":149,"kind":"text"}]},{"pos":149,"end":221,"kind":"text"},{"pos":221,"end":322,"kind":"internal"},{"pos":323,"end":353,"kind":"text"},{"pos":353,"end":727,"kind":"internal"},{"pos":728,"end":730,"kind":"text"},{"pos":730,"end":1117,"kind":"internal"},{"pos":1118,"end":1163,"kind":"text"}],"mapHash":"55383497486-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACvC;AACD,kBAAU,OAAO,CAAC;IACA,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACrD;AACa,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,KAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC3C,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-42543550337-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../first/bin/first-output.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["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; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","13528403307-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n\nclass normalC {\n /*@internal*/ constructor() { }\n /*@internal*/ prop: string;\n /*@internal*/ method() { }\n /*@internal*/ get c() { return 10; }\n /*@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /*@internal*/ export class C { }\n /*@internal*/ export function foo() {}\n /*@internal*/ export namespace someNamespace { export class C {} }\n /*@internal*/ export namespace someOther.something { export class someClass {} }\n /*@internal*/ export import someImport = someNamespace.C;\n /*@internal*/ export type internalType = internalC;\n /*@internal*/ export const internalConst = 10;\n /*@internal*/ export enum internalEnum { a, b, c }\n}\n/*@internal*/ class internalC {}\n/*@internal*/ function internalfoo() {}\n/*@internal*/ namespace internalNamespace { export class someClass {} }\n/*@internal*/ namespace internalOther.something { export class someClass {} }\n/*@internal*/ import internalImport = internalNamespace.someClass;\n/*@internal*/ type internalType = internalC;\n/*@internal*/ const internalConst = 10;\n/*@internal*/ enum internalEnum { a, b, c }","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"root":[3,4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":false,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-33280928732-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":120,"kind":"prepend","data":"../first/bin/first-output.js","texts":[{"pos":0,"end":120,"kind":"text"}]},{"pos":120,"end":3435,"kind":"text"}],"mapHash":"4497977942-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part2.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,aAAa,CAAC;IAAgB,CAAC;IAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,aAAa,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,aAAa,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAChC,aAAa,CAAC,SAAS,WAAW,KAAI,CAAC;AACvC,aAAa,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACvE,aAAa,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC7E,aAAa,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAElE,aAAa,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACvC,aAAa,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"15795435923-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = /** @class */ (function () {\n /*@internal*/ function normalC() {\n }\n /*@internal*/ normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n /*@internal*/ get: function () { return 10; },\n /*@internal*/ set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n /*@internal*/ var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n /*@internal*/ function foo() { }\n normalN.foo = foo;\n /*@internal*/ var someNamespace;\n (function (someNamespace) {\n var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n /*@internal*/ var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n /*@internal*/ normalN.someImport = someNamespace.C;\n /*@internal*/ normalN.internalConst = 10;\n /*@internal*/ var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\n/*@internal*/ var internalC = /** @class */ (function () {\n function internalC() {\n }\n return internalC;\n}());\n/*@internal*/ function internalfoo() { }\n/*@internal*/ var internalNamespace;\n(function (internalNamespace) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\n/*@internal*/ var internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\n/*@internal*/ var internalImport = internalNamespace.someClass;\n/*@internal*/ var internalConst = 10;\n/*@internal*/ var internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = /** @class */ (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../first/bin/first-output.d.ts","texts":[{"pos":0,"end":149,"kind":"text"}]},{"pos":149,"end":221,"kind":"text"},{"pos":221,"end":322,"kind":"internal"},{"pos":323,"end":353,"kind":"text"},{"pos":353,"end":727,"kind":"internal"},{"pos":728,"end":730,"kind":"text"},{"pos":730,"end":1117,"kind":"internal"},{"pos":1118,"end":1163,"kind":"text"}],"mapHash":"55383497486-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first/first_PART1.ts\",\"../first/first_part3.ts\",\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACvC;AACD,kBAAU,OAAO,CAAC;IACA,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACrD;AACa,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,KAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC3C,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-42543550337-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../first/bin/first-output.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["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; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","48997088700-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n\nclass normalC {\n /*@internal*/ constructor() { }\n /*@internal*/ prop: string;\n /*@internal*/ method() { }\n /*@internal*/ get c() { return 10; }\n /*@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /*@internal*/ export class C { }\n /*@internal*/ export function foo() {}\n /*@internal*/ export namespace someNamespace { export class C {} }\n /*@internal*/ export namespace someOther.something { export class someClass {} }\n /*@internal*/ export import someImport = someNamespace.C;\n /*@internal*/ export type internalType = internalC;\n /*@internal*/ export const internalConst = 10;\n /*@internal*/ export enum internalEnum { a, b, c }\n}\n/*@internal*/ class internalC {}\n/*@internal*/ function internalfoo() {}\n/*@internal*/ namespace internalNamespace { export class someClass {} }\n/*@internal*/ namespace internalOther.something { export class someClass {} }\n/*@internal*/ import internalImport = internalNamespace.someClass;\n/*@internal*/ type internalType = internalC;\n/*@internal*/ const internalConst = 10;\n/*@internal*/ enum internalEnum { a, b, c }","3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n"],"root":[3,4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":false,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-33280928732-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -11773,8 +11772,8 @@ declare class C { "fileInfos": { "../../lib/lib.d.ts": "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; };", "../first/bin/first-output.d.ts": "-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", - "../second/second_part1.ts": "13528403307-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n\nclass normalC {\n /*@internal*/ constructor() { }\n /*@internal*/ prop: string;\n /*@internal*/ method() { }\n /*@internal*/ get c() { return 10; }\n /*@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /*@internal*/ export class C { }\n /*@internal*/ export function foo() {}\n /*@internal*/ export namespace someNamespace { export class C {} }\n /*@internal*/ export namespace someOther.something { export class someClass {} }\n /*@internal*/ export import someImport = someNamespace.C;\n /*@internal*/ export type internalType = internalC;\n /*@internal*/ export const internalConst = 10;\n /*@internal*/ export enum internalEnum { a, b, c }\n}\n/*@internal*/ class internalC {}\n/*@internal*/ function internalfoo() {}\n/*@internal*/ namespace internalNamespace { export class someClass {} }\n/*@internal*/ namespace internalOther.something { export class someClass {} }\n/*@internal*/ import internalImport = internalNamespace.someClass;\n/*@internal*/ type internalType = internalC;\n/*@internal*/ const internalConst = 10;\n/*@internal*/ enum internalEnum { a, b, c }", - "../second/second_part2.ts": "9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n" + "../second/second_part1.ts": "48997088700-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n\nclass normalC {\n /*@internal*/ constructor() { }\n /*@internal*/ prop: string;\n /*@internal*/ method() { }\n /*@internal*/ get c() { return 10; }\n /*@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /*@internal*/ export class C { }\n /*@internal*/ export function foo() {}\n /*@internal*/ export namespace someNamespace { export class C {} }\n /*@internal*/ export namespace someOther.something { export class someClass {} }\n /*@internal*/ export import someImport = someNamespace.C;\n /*@internal*/ export type internalType = internalC;\n /*@internal*/ export const internalConst = 10;\n /*@internal*/ export enum internalEnum { a, b, c }\n}\n/*@internal*/ class internalC {}\n/*@internal*/ function internalfoo() {}\n/*@internal*/ namespace internalNamespace { export class someClass {} }\n/*@internal*/ namespace internalOther.something { export class someClass {} }\n/*@internal*/ import internalImport = internalNamespace.someClass;\n/*@internal*/ type internalType = internalC;\n/*@internal*/ const internalConst = 10;\n/*@internal*/ enum internalEnum { a, b, c }", + "../second/second_part2.ts": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n" }, "root": [ [ @@ -11801,7 +11800,7 @@ declare class C { "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 13183 + "size": 13151 } //// [/src/first/bin/first-output.d.ts.map] @@ -11835,7 +11834,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -11850,7 +11849,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -11861,8 +11860,8 @@ sourceFile:../first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -11880,8 +11879,8 @@ sourceFile:../first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -11895,7 +11894,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -11910,7 +11909,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -11927,8 +11926,8 @@ sourceFile:../first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) @@ -11957,10 +11956,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -11983,12 +11982,12 @@ sourceFile:../first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -12016,7 +12015,7 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > +1 > > 2 >console 3 > . @@ -12088,7 +12087,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -12102,7 +12101,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) @@ -12111,7 +12110,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":120,"kind":"text"}],"mapHash":"-2702861355-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-20052626506-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-16950965473-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":false,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":120,"kind":"text"}],"mapHash":"-2702861355-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-20052626506-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-20304251376-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":false,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -12183,9 +12182,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "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; };", - "../first_part1.ts": "-16950965473-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-20304251376-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -12214,7 +12213,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2709 + "size": 2683 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -12271,7 +12270,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -12286,7 +12285,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -12297,8 +12296,8 @@ sourceFile:../../../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -12316,8 +12315,8 @@ sourceFile:../../../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -12331,7 +12330,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -12346,7 +12345,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -12362,8 +12361,8 @@ sourceFile:../../../first/first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) @@ -12391,8 +12390,8 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) --- @@ -12401,8 +12400,8 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -12415,12 +12414,12 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) --- @@ -12428,7 +12427,7 @@ sourceFile:../../../second/second_part1.ts 1-> 2 >^^^^^^^^^^^^^^ 3 > ^^^^^^^ -1-> +1-> > > 2 >class @@ -12498,7 +12497,7 @@ sourceFile:../../../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(18, 5) Source(2, 5) + SourceIndex(3) @@ -12507,9 +12506,9 @@ sourceFile:../../../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(19, 2) Source(5, 2) + SourceIndex(3) --- @@ -12541,7 +12540,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.d.ts.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":3435,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":0,"end":3435,"kind":"text"}]},{"pos":3435,"end":3469,"kind":"text"}],"mapHash":"92086003575-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,aAAa,CAAC;IAAgB,CAAC;IAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,aAAa,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,aAAa,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAChC,aAAa,CAAC,SAAS,WAAW,KAAI,CAAC;AACvC,aAAa,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACvE,aAAa,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC7E,aAAa,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAElE,aAAa,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACvC,aAAa,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"14154918278-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = /** @class */ (function () {\n /*@internal*/ function normalC() {\n }\n /*@internal*/ normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n /*@internal*/ get: function () { return 10; },\n /*@internal*/ set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n /*@internal*/ var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n /*@internal*/ function foo() { }\n normalN.foo = foo;\n /*@internal*/ var someNamespace;\n (function (someNamespace) {\n var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n /*@internal*/ var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n /*@internal*/ normalN.someImport = someNamespace.C;\n /*@internal*/ normalN.internalConst = 10;\n /*@internal*/ var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\n/*@internal*/ var internalC = /** @class */ (function () {\n function internalC() {\n }\n return internalC;\n}());\n/*@internal*/ function internalfoo() { }\n/*@internal*/ var internalNamespace;\n(function (internalNamespace) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\n/*@internal*/ var internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\n/*@internal*/ var internalImport = internalNamespace.someClass;\n/*@internal*/ var internalConst = 10;\n/*@internal*/ var internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = /** @class */ (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":298,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":0,"end":298,"kind":"text"}]},{"pos":298,"end":316,"kind":"text"}],"mapHash":"-6546370592-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-3909930061-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-33280928732-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":false,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"5840619833-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":3435,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":0,"end":3435,"kind":"text"}]},{"pos":3435,"end":3469,"kind":"text"}],"mapHash":"92086003575-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,aAAa,CAAC;IAAgB,CAAC;IAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,aAAa,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,aAAa,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAChC,aAAa,CAAC,SAAS,WAAW,KAAI,CAAC;AACvC,aAAa,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACvE,aAAa,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC7E,aAAa,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAElE,aAAa,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACvC,aAAa,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"14154918278-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = /** @class */ (function () {\n /*@internal*/ function normalC() {\n }\n /*@internal*/ normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n /*@internal*/ get: function () { return 10; },\n /*@internal*/ set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n /*@internal*/ var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n /*@internal*/ function foo() { }\n normalN.foo = foo;\n /*@internal*/ var someNamespace;\n (function (someNamespace) {\n var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n /*@internal*/ var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n /*@internal*/ normalN.someImport = someNamespace.C;\n /*@internal*/ normalN.internalConst = 10;\n /*@internal*/ var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\n/*@internal*/ var internalC = /** @class */ (function () {\n function internalC() {\n }\n return internalC;\n}());\n/*@internal*/ function internalfoo() { }\n/*@internal*/ var internalNamespace;\n(function (internalNamespace) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\n/*@internal*/ var internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\n/*@internal*/ var internalImport = internalNamespace.someClass;\n/*@internal*/ var internalConst = 10;\n/*@internal*/ var internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = /** @class */ (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":298,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":0,"end":298,"kind":"text"}]},{"pos":298,"end":316,"kind":"text"}],"mapHash":"-6546370592-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-3909930061-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-33280928732-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":false,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"5840619833-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -12763,7 +12762,7 @@ declare var c: C; "fileInfos": { "../../../../lib/lib.d.ts": "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; };", "../../../2/second-output.d.ts": "-33280928732-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -12787,6 +12786,6 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 10342 + "size": 10337 } diff --git a/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-with-comments-emit-enabled.js b/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-with-comments-emit-enabled.js index 7a37ee925afa2..40a96667a4b0a 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-with-comments-emit-enabled.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-with-comments-emit-enabled.js @@ -16,62 +16,61 @@ interface ReadonlyArray {} declare const console: { log(msg: any): void; }; //// [/src/first/first_PART1.ts] -/*@internal*/ interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +/*@internal*/ interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); //// [/src/first/first_part2.ts] -console.log(f()); +console.log(f()); //// [/src/first/first_part3.ts] -function f() { - return "JS does hoists"; -} +function f() { + return "JS does hoists"; +} + //// [/src/first/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "composite": true, - "removeComments": false, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "outFile": "./bin/first-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "first_PART1.ts", - "first_part2.ts", - "first_part3.ts" - ], - "references": [ - ] +{ + "compilerOptions": { + "target": "es5", + "composite": true, + "removeComments": false, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "outFile": "./bin/first-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "first_PART1.ts", + "first_part2.ts", + "first_part3.ts" + ], + "references": [] } - //// [/src/second/second_part1.ts] -namespace N { - // Comment text -} - -namespace N { - function f() { - console.log('testing'); - } - - f(); -} +namespace N { + // Comment text +} + +namespace N { + function f() { + console.log('testing'); + } + + f(); +} class normalC { /*@internal*/ constructor() { } @@ -100,82 +99,85 @@ namespace normalN { /*@internal*/ enum internalEnum { a, b, c } //// [/src/second/second_part2.ts] -class C { - doSomething() { - console.log("something got done"); - } -} +class C { + doSomething() { + console.log("something got done"); + } +} //// [/src/second/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": false, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "../2/second-output.js", - "skipDefaultLibCheck": true - }, - "references": [ - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": false, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "../2/second-output.js", + "skipDefaultLibCheck": true + }, + "references": [] } - //// [/src/third/third_part1.ts] -var c = new C(); -c.doSomething(); +var c = new C(); +c.doSomething(); //// [/src/third/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": false, - "strict": false, - "sourceMap": true, - "declarationMap": true, +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": false, + "strict": false, + "sourceMap": true, + "declarationMap": true, "declaration": true, - "stripInternal": true, - "outFile": "./thirdjs/output/third-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "third_part1.ts" - ], - "references": [ - { "path": "../first", "prepend": true }, - { "path": "../second", "prepend": true }, - ] + "stripInternal": true, + "outFile": "./thirdjs/output/third-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "third_part1.ts" + ], + "references": [ + { + "path": "../first", + "prepend": true + }, + { + "path": "../second", + "prepend": true + } + ] } - Output:: /lib/tsc --b /src/third --verbose -[12:00:12 AM] Projects in this build: +[12:00:24 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:13 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist +[12:00:25 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist -[12:00:14 AM] Building project '/src/first/tsconfig.json'... +[12:00:26 AM] Building project '/src/first/tsconfig.json'... -[12:00:24 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist +[12:00:36 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist -[12:00:25 AM] Building project '/src/second/tsconfig.json'... +[12:00:37 AM] Building project '/src/second/tsconfig.json'... -[12:00:35 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist +[12:00:47 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist -[12:00:36 AM] Building project '/src/third/tsconfig.json'... +[12:00:48 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -268,8 +270,8 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(2, 2) Source(3, 2) + SourceIndex(0) --- @@ -278,8 +280,8 @@ sourceFile:../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -292,12 +294,12 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(4, 2) Source(11, 2) + SourceIndex(0) --- @@ -305,7 +307,7 @@ sourceFile:../second/second_part1.ts 1-> 2 >^^^^^^^^^^^^^^ 3 > ^^^^^^^ -1-> +1-> > > 2 >class @@ -909,7 +911,7 @@ sourceFile:../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(53, 5) Source(2, 5) + SourceIndex(1) @@ -918,9 +920,9 @@ sourceFile:../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(54, 2) Source(5, 2) + SourceIndex(1) --- @@ -1051,19 +1053,19 @@ sourceFile:../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1 >namespace N { - > // Comment text - >} - > +1 >namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) 2 >Emitted(1, 5) Source(5, 11) + SourceIndex(0) @@ -1087,7 +1089,7 @@ sourceFile:../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -1104,7 +1106,7 @@ sourceFile:../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -1126,7 +1128,7 @@ sourceFile:../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(5, 5) Source(8, 5) + SourceIndex(0) @@ -1138,8 +1140,8 @@ sourceFile:../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -1158,19 +1160,19 @@ sourceFile:../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(7, 1) Source(11, 1) + SourceIndex(0) 2 >Emitted(7, 2) Source(11, 2) + SourceIndex(0) @@ -1183,7 +1185,7 @@ sourceFile:../second/second_part1.ts >>>var normalC = /** @class */ (function () { 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > > 1->Emitted(8, 1) Source(13, 1) + SourceIndex(0) @@ -2488,10 +2490,10 @@ sourceFile:../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(97, 5) Source(5, 1) + SourceIndex(1) @@ -2518,7 +2520,7 @@ sourceFile:../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -2540,7 +2542,7 @@ sourceFile:../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(100, 5) Source(4, 5) + SourceIndex(1) @@ -2549,7 +2551,7 @@ sourceFile:../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(101, 5) Source(5, 1) + SourceIndex(1) @@ -2564,10 +2566,10 @@ sourceFile:../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(102, 1) Source(5, 1) + SourceIndex(1) 2 >Emitted(102, 2) Source(5, 2) + SourceIndex(1) @@ -2577,7 +2579,7 @@ sourceFile:../second/second_part2.ts >>>//# sourceMappingURL=second-output.js.map //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":3315,"kind":"text"}],"mapHash":"-2464084269-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,aAAa,CAAC;IAAgB,CAAC;IAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,aAAa,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,aAAa,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAChC,aAAa,CAAC,SAAS,WAAW,KAAI,CAAC;AACvC,aAAa,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACvE,aAAa,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC7E,aAAa,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAElE,aAAa,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACvC,aAAa,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-11392275315-var N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = /** @class */ (function () {\n /*@internal*/ function normalC() {\n }\n /*@internal*/ normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n /*@internal*/ get: function () { return 10; },\n /*@internal*/ set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n /*@internal*/ var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n /*@internal*/ function foo() { }\n normalN.foo = foo;\n /*@internal*/ var someNamespace;\n (function (someNamespace) {\n var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n /*@internal*/ var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n /*@internal*/ normalN.someImport = someNamespace.C;\n /*@internal*/ normalN.internalConst = 10;\n /*@internal*/ var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\n/*@internal*/ var internalC = /** @class */ (function () {\n function internalC() {\n }\n return internalC;\n}());\n/*@internal*/ function internalfoo() { }\n/*@internal*/ var internalNamespace;\n(function (internalNamespace) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\n/*@internal*/ var internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\n/*@internal*/ var internalImport = internalNamespace.someClass;\n/*@internal*/ var internalConst = 10;\n/*@internal*/ var internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = /** @class */ (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":72,"kind":"text"},{"pos":72,"end":173,"kind":"internal"},{"pos":174,"end":204,"kind":"text"},{"pos":204,"end":578,"kind":"internal"},{"pos":579,"end":581,"kind":"text"},{"pos":581,"end":968,"kind":"internal"},{"pos":969,"end":1014,"kind":"text"}],"mapHash":"-11613291547-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACvC;AACD,kBAAU,OAAO,CAAC;IACA,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACrD;AACa,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,KAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC3C,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-21418946771-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["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; };","13528403307-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n\nclass normalC {\n /*@internal*/ constructor() { }\n /*@internal*/ prop: string;\n /*@internal*/ method() { }\n /*@internal*/ get c() { return 10; }\n /*@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /*@internal*/ export class C { }\n /*@internal*/ export function foo() {}\n /*@internal*/ export namespace someNamespace { export class C {} }\n /*@internal*/ export namespace someOther.something { export class someClass {} }\n /*@internal*/ export import someImport = someNamespace.C;\n /*@internal*/ export type internalType = internalC;\n /*@internal*/ export const internalConst = 10;\n /*@internal*/ export enum internalEnum { a, b, c }\n}\n/*@internal*/ class internalC {}\n/*@internal*/ function internalfoo() {}\n/*@internal*/ namespace internalNamespace { export class someClass {} }\n/*@internal*/ namespace internalOther.something { export class someClass {} }\n/*@internal*/ import internalImport = internalNamespace.someClass;\n/*@internal*/ type internalType = internalC;\n/*@internal*/ const internalConst = 10;\n/*@internal*/ enum internalEnum { a, b, c }","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":false,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-18721653870-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":3315,"kind":"text"}],"mapHash":"-2464084269-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,aAAa,CAAC;IAAgB,CAAC;IAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,aAAa,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,aAAa,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAChC,aAAa,CAAC,SAAS,WAAW,KAAI,CAAC;AACvC,aAAa,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACvE,aAAa,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC7E,aAAa,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAElE,aAAa,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACvC,aAAa,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-11392275315-var N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = /** @class */ (function () {\n /*@internal*/ function normalC() {\n }\n /*@internal*/ normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n /*@internal*/ get: function () { return 10; },\n /*@internal*/ set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n /*@internal*/ var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n /*@internal*/ function foo() { }\n normalN.foo = foo;\n /*@internal*/ var someNamespace;\n (function (someNamespace) {\n var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n /*@internal*/ var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n /*@internal*/ normalN.someImport = someNamespace.C;\n /*@internal*/ normalN.internalConst = 10;\n /*@internal*/ var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\n/*@internal*/ var internalC = /** @class */ (function () {\n function internalC() {\n }\n return internalC;\n}());\n/*@internal*/ function internalfoo() { }\n/*@internal*/ var internalNamespace;\n(function (internalNamespace) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\n/*@internal*/ var internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\n/*@internal*/ var internalImport = internalNamespace.someClass;\n/*@internal*/ var internalConst = 10;\n/*@internal*/ var internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = /** @class */ (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":72,"kind":"text"},{"pos":72,"end":173,"kind":"internal"},{"pos":174,"end":204,"kind":"text"},{"pos":204,"end":578,"kind":"internal"},{"pos":579,"end":581,"kind":"text"},{"pos":581,"end":968,"kind":"internal"},{"pos":969,"end":1014,"kind":"text"}],"mapHash":"-11613291547-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACvC;AACD,kBAAU,OAAO,CAAC;IACA,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACrD;AACa,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,KAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC3C,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-21418946771-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["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; };","48997088700-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n\nclass normalC {\n /*@internal*/ constructor() { }\n /*@internal*/ prop: string;\n /*@internal*/ method() { }\n /*@internal*/ get c() { return 10; }\n /*@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /*@internal*/ export class C { }\n /*@internal*/ export function foo() {}\n /*@internal*/ export namespace someNamespace { export class C {} }\n /*@internal*/ export namespace someOther.something { export class someClass {} }\n /*@internal*/ export import someImport = someNamespace.C;\n /*@internal*/ export type internalType = internalC;\n /*@internal*/ export const internalConst = 10;\n /*@internal*/ export enum internalEnum { a, b, c }\n}\n/*@internal*/ class internalC {}\n/*@internal*/ function internalfoo() {}\n/*@internal*/ namespace internalNamespace { export class someClass {} }\n/*@internal*/ namespace internalOther.something { export class someClass {} }\n/*@internal*/ import internalImport = internalNamespace.someClass;\n/*@internal*/ type internalType = internalC;\n/*@internal*/ const internalConst = 10;\n/*@internal*/ enum internalEnum { a, b, c }","3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":false,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-18721653870-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -2833,8 +2835,8 @@ declare class C { ], "fileInfos": { "../../lib/lib.d.ts": "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; };", - "../second/second_part1.ts": "13528403307-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n\nclass normalC {\n /*@internal*/ constructor() { }\n /*@internal*/ prop: string;\n /*@internal*/ method() { }\n /*@internal*/ get c() { return 10; }\n /*@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /*@internal*/ export class C { }\n /*@internal*/ export function foo() {}\n /*@internal*/ export namespace someNamespace { export class C {} }\n /*@internal*/ export namespace someOther.something { export class someClass {} }\n /*@internal*/ export import someImport = someNamespace.C;\n /*@internal*/ export type internalType = internalC;\n /*@internal*/ export const internalConst = 10;\n /*@internal*/ export enum internalEnum { a, b, c }\n}\n/*@internal*/ class internalC {}\n/*@internal*/ function internalfoo() {}\n/*@internal*/ namespace internalNamespace { export class someClass {} }\n/*@internal*/ namespace internalOther.something { export class someClass {} }\n/*@internal*/ import internalImport = internalNamespace.someClass;\n/*@internal*/ type internalType = internalC;\n/*@internal*/ const internalConst = 10;\n/*@internal*/ enum internalEnum { a, b, c }", - "../second/second_part2.ts": "9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n" + "../second/second_part1.ts": "48997088700-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n\nclass normalC {\n /*@internal*/ constructor() { }\n /*@internal*/ prop: string;\n /*@internal*/ method() { }\n /*@internal*/ get c() { return 10; }\n /*@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /*@internal*/ export class C { }\n /*@internal*/ export function foo() {}\n /*@internal*/ export namespace someNamespace { export class C {} }\n /*@internal*/ export namespace someOther.something { export class someClass {} }\n /*@internal*/ export import someImport = someNamespace.C;\n /*@internal*/ export type internalType = internalC;\n /*@internal*/ export const internalConst = 10;\n /*@internal*/ export enum internalEnum { a, b, c }\n}\n/*@internal*/ class internalC {}\n/*@internal*/ function internalfoo() {}\n/*@internal*/ namespace internalNamespace { export class someClass {} }\n/*@internal*/ namespace internalOther.something { export class someClass {} }\n/*@internal*/ import internalImport = internalNamespace.someClass;\n/*@internal*/ type internalType = internalC;\n/*@internal*/ const internalConst = 10;\n/*@internal*/ enum internalEnum { a, b, c }", + "../second/second_part2.ts": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n" }, "root": [ [ @@ -2861,7 +2863,7 @@ declare class C { "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 11789 + "size": 11757 } //// [/src/first/bin/first-output.d.ts] @@ -2906,7 +2908,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -2921,7 +2923,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -2932,8 +2934,8 @@ sourceFile:../first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -2951,8 +2953,8 @@ sourceFile:../first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -2966,7 +2968,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -2981,7 +2983,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -2998,8 +3000,8 @@ sourceFile:../first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) @@ -3038,10 +3040,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > +1 >/*@internal*/ interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -3065,12 +3067,12 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -3142,7 +3144,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -3156,7 +3158,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) @@ -3165,7 +3167,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"4999315210-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":37,"kind":"internal"},{"pos":38,"end":149,"kind":"text"}],"mapHash":"36580418620-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-7635519924-/*@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":false,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"4999315210-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":37,"kind":"internal"},{"pos":38,"end":149,"kind":"text"}],"mapHash":"36580418620-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","6800247997-/*@internal*/ interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":false,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -3243,9 +3245,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "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; };", - "../first_part1.ts": "-7635519924-/*@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "6800247997-/*@internal*/ interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -3274,7 +3276,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2688 + "size": 2661 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -3318,10 +3320,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > +1 >/*@internal*/ interface TheFirst { + > none: any; + >} + > > 2 > 3 > const @@ -3339,8 +3341,8 @@ sourceFile:../../../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -3354,7 +3356,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -3369,7 +3371,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(4, 2) Source(9, 2) + SourceIndex(0) --- @@ -3385,8 +3387,8 @@ sourceFile:../../../first/first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) 2 >Emitted(5, 18) Source(1, 10) + SourceIndex(1) @@ -3414,8 +3416,8 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) --- @@ -3424,8 +3426,8 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -3438,12 +3440,12 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(9, 2) Source(11, 2) + SourceIndex(2) --- @@ -3451,7 +3453,7 @@ sourceFile:../../../second/second_part1.ts 1-> 2 >^^^^^^^^^^^^^^ 3 > ^^^^^^^ -1-> +1-> > > 2 >class @@ -3521,7 +3523,7 @@ sourceFile:../../../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(15, 5) Source(2, 5) + SourceIndex(3) @@ -3530,9 +3532,9 @@ sourceFile:../../../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(16, 2) Source(5, 2) + SourceIndex(3) --- @@ -3697,10 +3699,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > +1 >/*@internal*/ interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -3724,12 +3726,12 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -3801,7 +3803,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -3815,7 +3817,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) @@ -3831,19 +3833,19 @@ sourceFile:../../../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(7, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(7, 5) Source(5, 11) + SourceIndex(3) @@ -3867,7 +3869,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -3884,7 +3886,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -3906,7 +3908,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(11, 5) Source(8, 5) + SourceIndex(3) @@ -3918,8 +3920,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -3938,19 +3940,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(13, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(13, 2) Source(11, 2) + SourceIndex(3) @@ -3963,7 +3965,7 @@ sourceFile:../../../second/second_part1.ts >>>var normalC = /** @class */ (function () { 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > > 1->Emitted(14, 1) Source(13, 1) + SourceIndex(3) @@ -5268,10 +5270,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(103, 5) Source(5, 1) + SourceIndex(4) @@ -5298,7 +5300,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -5320,7 +5322,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(106, 5) Source(4, 5) + SourceIndex(4) @@ -5329,7 +5331,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(107, 5) Source(5, 1) + SourceIndex(4) @@ -5344,10 +5346,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(108, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(108, 2) Source(5, 2) + SourceIndex(4) @@ -5392,7 +5394,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -5409,7 +5411,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":104,"kind":"text"}]},{"pos":104,"end":3419,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":104,"end":3419,"kind":"text"}]},{"pos":3419,"end":3453,"kind":"text"}],"mapHash":"139241117891-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,aAAa,CAAC;IAAgB,CAAC;IAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,aAAa,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,aAAa,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAChC,aAAa,CAAC,SAAS,WAAW,KAAI,CAAC;AACvC,aAAa,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACvE,aAAa,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC7E,aAAa,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAElE,aAAa,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACvC,aAAa,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-30933053094-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = /** @class */ (function () {\n /*@internal*/ function normalC() {\n }\n /*@internal*/ normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n /*@internal*/ get: function () { return 10; },\n /*@internal*/ set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n /*@internal*/ var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n /*@internal*/ function foo() { }\n normalN.foo = foo;\n /*@internal*/ var someNamespace;\n (function (someNamespace) {\n var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n /*@internal*/ var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n /*@internal*/ normalN.someImport = someNamespace.C;\n /*@internal*/ normalN.internalConst = 10;\n /*@internal*/ var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\n/*@internal*/ var internalC = /** @class */ (function () {\n function internalC() {\n }\n return internalC;\n}());\n/*@internal*/ function internalfoo() { }\n/*@internal*/ var internalNamespace;\n(function (internalNamespace) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\n/*@internal*/ var internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\n/*@internal*/ var internalImport = internalNamespace.someClass;\n/*@internal*/ var internalConst = 10;\n/*@internal*/ var internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = /** @class */ (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":111,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":111,"kind":"text"}]},{"pos":111,"end":260,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":111,"end":260,"kind":"text"}]},{"pos":260,"end":278,"kind":"text"}],"mapHash":"16014976674-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-51018023562-declare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-18721653870-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":false,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"-46239946948-declare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":104,"kind":"text"}]},{"pos":104,"end":3419,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":104,"end":3419,"kind":"text"}]},{"pos":3419,"end":3453,"kind":"text"}],"mapHash":"139241117891-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,aAAa,CAAC;IAAgB,CAAC;IAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,aAAa,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,aAAa,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAChC,aAAa,CAAC,SAAS,WAAW,KAAI,CAAC;AACvC,aAAa,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACvE,aAAa,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC7E,aAAa,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAElE,aAAa,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACvC,aAAa,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-30933053094-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = /** @class */ (function () {\n /*@internal*/ function normalC() {\n }\n /*@internal*/ normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n /*@internal*/ get: function () { return 10; },\n /*@internal*/ set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n /*@internal*/ var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n /*@internal*/ function foo() { }\n normalN.foo = foo;\n /*@internal*/ var someNamespace;\n (function (someNamespace) {\n var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n /*@internal*/ var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n /*@internal*/ normalN.someImport = someNamespace.C;\n /*@internal*/ normalN.internalConst = 10;\n /*@internal*/ var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\n/*@internal*/ var internalC = /** @class */ (function () {\n function internalC() {\n }\n return internalC;\n}());\n/*@internal*/ function internalfoo() { }\n/*@internal*/ var internalNamespace;\n(function (internalNamespace) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\n/*@internal*/ var internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\n/*@internal*/ var internalImport = internalNamespace.someClass;\n/*@internal*/ var internalConst = 10;\n/*@internal*/ var internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = /** @class */ (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":111,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":111,"kind":"text"}]},{"pos":111,"end":260,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":111,"end":260,"kind":"text"}]},{"pos":260,"end":278,"kind":"text"}],"mapHash":"16014976674-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-51018023562-declare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-18721653870-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":false,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"-46239946948-declare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -5665,7 +5667,7 @@ declare var c: C; "../../../../lib/lib.d.ts": "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; };", "../../../first/bin/first-output.d.ts": "-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "-18721653870-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -5689,7 +5691,7 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 10478 + "size": 10473 } @@ -5697,37 +5699,37 @@ declare var c: C; Change:: incremental-declaration-doesnt-change Input:: //// [/src/first/first_PART1.ts] -/*@internal*/ interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +/*@internal*/ interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:00:54 AM] Projects in this build: +[12:01:06 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:55 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:01:07 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:00:56 AM] Building project '/src/first/tsconfig.json'... +[12:01:08 AM] Building project '/src/first/tsconfig.json'... -[12:01:04 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:01:16 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:05 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:01:17 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:01:06 AM] Updating output of project '/src/third/tsconfig.json'... +[12:01:18 AM] Updating output of project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -5765,10 +5767,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > +1 >/*@internal*/ interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -5791,12 +5793,12 @@ sourceFile:../first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -5824,7 +5826,7 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > +1 > > 2 >console 3 > . @@ -5896,7 +5898,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -5910,7 +5912,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) @@ -5919,7 +5921,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":120,"kind":"text"}],"mapHash":"-2702861355-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-20052626506-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":37,"kind":"internal"},{"pos":38,"end":149,"kind":"text"}],"mapHash":"36580418620-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-8483255506-/*@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":false,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":120,"kind":"text"}],"mapHash":"-2702861355-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-20052626506-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":37,"kind":"internal"},{"pos":38,"end":149,"kind":"text"}],"mapHash":"36580418620-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","3002800511-/*@internal*/ interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":false,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -5998,9 +6000,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "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; };", - "../first_part1.ts": "-8483255506-/*@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "3002800511-/*@internal*/ interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -6029,7 +6031,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2761 + "size": 2734 } //// [/src/third/thirdjs/output/third-output.js] @@ -6167,10 +6169,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > +1 >/*@internal*/ interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -6193,12 +6195,12 @@ sourceFile:../../../first/first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -6226,7 +6228,7 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > +1 > > 2 >console 3 > . @@ -6298,7 +6300,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -6312,7 +6314,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) @@ -6328,19 +6330,19 @@ sourceFile:../../../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(8, 5) Source(5, 11) + SourceIndex(3) @@ -6364,7 +6366,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -6381,7 +6383,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -6403,7 +6405,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(12, 5) Source(8, 5) + SourceIndex(3) @@ -6415,8 +6417,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -6435,19 +6437,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(14, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(14, 2) Source(11, 2) + SourceIndex(3) @@ -6460,7 +6462,7 @@ sourceFile:../../../second/second_part1.ts >>>var normalC = /** @class */ (function () { 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > > 1->Emitted(15, 1) Source(13, 1) + SourceIndex(3) @@ -7765,10 +7767,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(104, 5) Source(5, 1) + SourceIndex(4) @@ -7795,7 +7797,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -7817,7 +7819,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(107, 5) Source(4, 5) + SourceIndex(4) @@ -7826,7 +7828,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(108, 5) Source(5, 1) + SourceIndex(4) @@ -7841,10 +7843,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(109, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(109, 2) Source(5, 2) + SourceIndex(4) @@ -7889,7 +7891,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -7906,7 +7908,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":120,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":120,"kind":"text"}]},{"pos":120,"end":3435,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":120,"end":3435,"kind":"text"}]},{"pos":3435,"end":3469,"kind":"text"}],"mapHash":"92086003575-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,aAAa,CAAC;IAAgB,CAAC;IAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,aAAa,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,aAAa,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAChC,aAAa,CAAC,SAAS,WAAW,KAAI,CAAC;AACvC,aAAa,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACvE,aAAa,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC7E,aAAa,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAElE,aAAa,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACvC,aAAa,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"14154918278-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = /** @class */ (function () {\n /*@internal*/ function normalC() {\n }\n /*@internal*/ normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n /*@internal*/ get: function () { return 10; },\n /*@internal*/ set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n /*@internal*/ var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n /*@internal*/ function foo() { }\n normalN.foo = foo;\n /*@internal*/ var someNamespace;\n (function (someNamespace) {\n var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n /*@internal*/ var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n /*@internal*/ normalN.someImport = someNamespace.C;\n /*@internal*/ normalN.internalConst = 10;\n /*@internal*/ var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\n/*@internal*/ var internalC = /** @class */ (function () {\n function internalC() {\n }\n return internalC;\n}());\n/*@internal*/ function internalfoo() { }\n/*@internal*/ var internalNamespace;\n(function (internalNamespace) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\n/*@internal*/ var internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\n/*@internal*/ var internalImport = internalNamespace.someClass;\n/*@internal*/ var internalConst = 10;\n/*@internal*/ var internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = /** @class */ (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":111,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":111,"kind":"text"}]},{"pos":111,"end":260,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":111,"end":260,"kind":"text"}]},{"pos":260,"end":278,"kind":"text"}],"mapHash":"16014976674-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-51018023562-declare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-18721653870-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":false,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"-46239946948-declare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":120,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":120,"kind":"text"}]},{"pos":120,"end":3435,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":120,"end":3435,"kind":"text"}]},{"pos":3435,"end":3469,"kind":"text"}],"mapHash":"92086003575-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,aAAa,CAAC;IAAgB,CAAC;IAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,aAAa,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,aAAa,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAChC,aAAa,CAAC,SAAS,WAAW,KAAI,CAAC;AACvC,aAAa,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACvE,aAAa,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC7E,aAAa,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAElE,aAAa,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACvC,aAAa,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"14154918278-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = /** @class */ (function () {\n /*@internal*/ function normalC() {\n }\n /*@internal*/ normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n /*@internal*/ get: function () { return 10; },\n /*@internal*/ set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n /*@internal*/ var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n /*@internal*/ function foo() { }\n normalN.foo = foo;\n /*@internal*/ var someNamespace;\n (function (someNamespace) {\n var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n /*@internal*/ var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n /*@internal*/ normalN.someImport = someNamespace.C;\n /*@internal*/ normalN.internalConst = 10;\n /*@internal*/ var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\n/*@internal*/ var internalC = /** @class */ (function () {\n function internalC() {\n }\n return internalC;\n}());\n/*@internal*/ function internalfoo() { }\n/*@internal*/ var internalNamespace;\n(function (internalNamespace) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\n/*@internal*/ var internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\n/*@internal*/ var internalImport = internalNamespace.someClass;\n/*@internal*/ var internalConst = 10;\n/*@internal*/ var internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = /** @class */ (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":111,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":111,"kind":"text"}]},{"pos":111,"end":260,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":111,"end":260,"kind":"text"}]},{"pos":260,"end":278,"kind":"text"}],"mapHash":"16014976674-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-51018023562-declare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-18721653870-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":false,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"-46239946948-declare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -8163,7 +8165,7 @@ declare var c: C; "../../../../lib/lib.d.ts": "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; };", "../../../first/bin/first-output.d.ts": "-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "-18721653870-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -8187,7 +8189,7 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 10533 + "size": 10528 } @@ -8195,37 +8197,37 @@ declare var c: C; Change:: incremental-headers-change-without-dts-changes Input:: //// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:01:17 AM] Projects in this build: +[12:01:29 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:01:18 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:01:30 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:01:19 AM] Building project '/src/first/tsconfig.json'... +[12:01:31 AM] Building project '/src/first/tsconfig.json'... -[12:01:27 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:01:39 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:28 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:01:40 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:01:29 AM] Updating output of project '/src/third/tsconfig.json'... +[12:01:41 AM] Updating output of project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -8261,7 +8263,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -8276,7 +8278,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -8287,8 +8289,8 @@ sourceFile:../first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -8306,8 +8308,8 @@ sourceFile:../first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -8321,7 +8323,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -8336,7 +8338,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -8353,8 +8355,8 @@ sourceFile:../first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) @@ -8383,10 +8385,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -8409,12 +8411,12 @@ sourceFile:../first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -8442,7 +8444,7 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > +1 > > 2 >console 3 > . @@ -8514,7 +8516,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -8528,7 +8530,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) @@ -8537,7 +8539,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":120,"kind":"text"}],"mapHash":"-2702861355-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-20052626506-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-16950965473-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":false,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":120,"kind":"text"}],"mapHash":"-2702861355-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-20052626506-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-20304251376-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":false,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -8609,9 +8611,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "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; };", - "../first_part1.ts": "-16950965473-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-20304251376-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -8640,7 +8642,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2709 + "size": 2683 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -8697,7 +8699,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -8712,7 +8714,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -8723,8 +8725,8 @@ sourceFile:../../../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -8742,8 +8744,8 @@ sourceFile:../../../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -8757,7 +8759,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -8772,7 +8774,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -8788,8 +8790,8 @@ sourceFile:../../../first/first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) @@ -8817,8 +8819,8 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) --- @@ -8827,8 +8829,8 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -8841,12 +8843,12 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) --- @@ -8854,7 +8856,7 @@ sourceFile:../../../second/second_part1.ts 1-> 2 >^^^^^^^^^^^^^^ 3 > ^^^^^^^ -1-> +1-> > > 2 >class @@ -8924,7 +8926,7 @@ sourceFile:../../../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(18, 5) Source(2, 5) + SourceIndex(3) @@ -8933,9 +8935,9 @@ sourceFile:../../../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(19, 2) Source(5, 2) + SourceIndex(3) --- @@ -8967,7 +8969,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.d.ts.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":120,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":120,"kind":"text"}]},{"pos":120,"end":3435,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":120,"end":3435,"kind":"text"}]},{"pos":3435,"end":3469,"kind":"text"}],"mapHash":"92086003575-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,aAAa,CAAC;IAAgB,CAAC;IAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,aAAa,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,aAAa,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAChC,aAAa,CAAC,SAAS,WAAW,KAAI,CAAC;AACvC,aAAa,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACvE,aAAa,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC7E,aAAa,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAElE,aAAa,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACvC,aAAa,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"14154918278-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = /** @class */ (function () {\n /*@internal*/ function normalC() {\n }\n /*@internal*/ normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n /*@internal*/ get: function () { return 10; },\n /*@internal*/ set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n /*@internal*/ var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n /*@internal*/ function foo() { }\n normalN.foo = foo;\n /*@internal*/ var someNamespace;\n (function (someNamespace) {\n var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n /*@internal*/ var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n /*@internal*/ normalN.someImport = someNamespace.C;\n /*@internal*/ normalN.internalConst = 10;\n /*@internal*/ var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\n/*@internal*/ var internalC = /** @class */ (function () {\n function internalC() {\n }\n return internalC;\n}());\n/*@internal*/ function internalfoo() { }\n/*@internal*/ var internalNamespace;\n(function (internalNamespace) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\n/*@internal*/ var internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\n/*@internal*/ var internalImport = internalNamespace.someClass;\n/*@internal*/ var internalConst = 10;\n/*@internal*/ var internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = /** @class */ (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":149,"kind":"text"}]},{"pos":149,"end":298,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":149,"end":298,"kind":"text"}]},{"pos":298,"end":316,"kind":"text"}],"mapHash":"-6546370592-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-3909930061-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-18721653870-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":false,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"5840619833-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":120,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":120,"kind":"text"}]},{"pos":120,"end":3435,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":120,"end":3435,"kind":"text"}]},{"pos":3435,"end":3469,"kind":"text"}],"mapHash":"92086003575-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,aAAa,CAAC;IAAgB,CAAC;IAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,aAAa,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,aAAa,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAChC,aAAa,CAAC,SAAS,WAAW,KAAI,CAAC;AACvC,aAAa,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACvE,aAAa,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC7E,aAAa,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAElE,aAAa,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACvC,aAAa,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"14154918278-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = /** @class */ (function () {\n /*@internal*/ function normalC() {\n }\n /*@internal*/ normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n /*@internal*/ get: function () { return 10; },\n /*@internal*/ set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n /*@internal*/ var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n /*@internal*/ function foo() { }\n normalN.foo = foo;\n /*@internal*/ var someNamespace;\n (function (someNamespace) {\n var C = /** @class */ (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n /*@internal*/ var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n /*@internal*/ normalN.someImport = someNamespace.C;\n /*@internal*/ normalN.internalConst = 10;\n /*@internal*/ var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\n/*@internal*/ var internalC = /** @class */ (function () {\n function internalC() {\n }\n return internalC;\n}());\n/*@internal*/ function internalfoo() { }\n/*@internal*/ var internalNamespace;\n(function (internalNamespace) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\n/*@internal*/ var internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = /** @class */ (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\n/*@internal*/ var internalImport = internalNamespace.someClass;\n/*@internal*/ var internalConst = 10;\n/*@internal*/ var internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = /** @class */ (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":149,"kind":"text"}]},{"pos":149,"end":298,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":149,"end":298,"kind":"text"}]},{"pos":298,"end":316,"kind":"text"}],"mapHash":"-6546370592-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-3909930061-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-18721653870-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":false,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"5840619833-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -9227,7 +9229,7 @@ declare var c: C; "../../../../lib/lib.d.ts": "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; };", "../../../first/bin/first-output.d.ts": "-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "-18721653870-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -9251,6 +9253,6 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 10657 + "size": 10652 } diff --git a/tests/baselines/reference/tsbuild/outfile-concat/stripInternal.js b/tests/baselines/reference/tsbuild/outfile-concat/stripInternal.js index 379c01472329a..4ea1ea2274226 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/stripInternal.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/stripInternal.js @@ -16,62 +16,61 @@ interface ReadonlyArray {} declare const console: { log(msg: any): void; }; //// [/src/first/first_PART1.ts] -/*@internal*/ interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +/*@internal*/ interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); //// [/src/first/first_part2.ts] -console.log(f()); +console.log(f()); //// [/src/first/first_part3.ts] -function f() { - return "JS does hoists"; -} +function f() { + return "JS does hoists"; +} + //// [/src/first/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "outFile": "./bin/first-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "first_PART1.ts", - "first_part2.ts", - "first_part3.ts" - ], - "references": [ - ] +{ + "compilerOptions": { + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "outFile": "./bin/first-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "first_PART1.ts", + "first_part2.ts", + "first_part3.ts" + ], + "references": [] } - //// [/src/second/second_part1.ts] -namespace N { - // Comment text -} - -namespace N { - function f() { - console.log('testing'); - } - - f(); -} +namespace N { + // Comment text +} + +namespace N { + function f() { + console.log('testing'); + } + + f(); +} class normalC { /*@internal*/ constructor() { } @@ -100,102 +99,105 @@ namespace normalN { /*@internal*/ enum internalEnum { a, b, c } //// [/src/second/second_part2.ts] -class C { - doSomething() { - console.log("something got done"); - } -} +class C { + doSomething() { + console.log("something got done"); + } +} //// [/src/second/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "../2/second-output.js", - "skipDefaultLibCheck": true - }, - "references": [ - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "../2/second-output.js", + "skipDefaultLibCheck": true + }, + "references": [] } - //// [/src/third/third_part1.ts] -var c = new C(); -c.doSomething(); +var c = new C(); +c.doSomething(); //// [/src/third/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, "declaration": true, - "stripInternal": true, - "outFile": "./thirdjs/output/third-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "third_part1.ts" - ], - "references": [ - { "path": "../first", "prepend": true }, - { "path": "../second", "prepend": true }, - ] + "stripInternal": true, + "outFile": "./thirdjs/output/third-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "third_part1.ts" + ], + "references": [ + { + "path": "../first", + "prepend": true + }, + { + "path": "../second", + "prepend": true + } + ] } - Output:: /lib/tsc --b /src/third --verbose -[12:00:09 AM] Projects in this build: +[12:00:21 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:10 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist +[12:00:22 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist -[12:00:11 AM] Building project '/src/first/tsconfig.json'... +[12:00:23 AM] Building project '/src/first/tsconfig.json'... -[12:00:21 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist +[12:00:33 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist -[12:00:22 AM] Building project '/src/second/tsconfig.json'... +[12:00:34 AM] Building project '/src/second/tsconfig.json'... -[12:00:32 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist +[12:00:44 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist -[12:00:33 AM] Building project '/src/third/tsconfig.json'... +[12:00:45 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success readFiles:: { - "/src/third/tsconfig.json": 1, - "/src/first/tsconfig.json": 1, - "/src/second/tsconfig.json": 1, - "/src/first/first_PART1.ts": 1, - "/src/first/first_part2.ts": 1, - "/src/first/first_part3.ts": 1, - "/src/second/second_part1.ts": 1, - "/src/second/second_part2.ts": 1, - "/src/first/bin/first-output.d.ts": 1, - "/src/2/second-output.d.ts": 1, - "/src/third/third_part1.ts": 1, - "/src/first/bin/first-output.js": 1, - "/src/2/second-output.js": 1, - "/src/first/bin/first-output.js.map": 1, - "/src/2/second-output.js.map": 1, - "/src/first/bin/first-output.d.ts.map": 1, - "/src/2/second-output.d.ts.map": 1 + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/second/second_part1.ts": 1, + "/src/second/second_part2.ts": 1, + "/src/first/bin/first-output.d.ts": 1, + "/src/2/second-output.d.ts": 1, + "/src/third/third_part1.ts": 1, + "/src/first/bin/first-output.js": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1 } //// [/src/2/second-output.d.ts] @@ -286,8 +288,8 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(2, 2) Source(3, 2) + SourceIndex(0) --- @@ -296,8 +298,8 @@ sourceFile:../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -310,12 +312,12 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(4, 2) Source(11, 2) + SourceIndex(0) --- @@ -323,7 +325,7 @@ sourceFile:../second/second_part1.ts 1-> 2 >^^^^^^^^^^^^^^ 3 > ^^^^^^^ -1-> +1-> > > 2 >class @@ -927,7 +929,7 @@ sourceFile:../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(53, 5) Source(2, 5) + SourceIndex(1) @@ -936,9 +938,9 @@ sourceFile:../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(54, 2) Source(5, 2) + SourceIndex(1) --- @@ -1069,19 +1071,19 @@ sourceFile:../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1 >namespace N { - > // Comment text - >} - > +1 >namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) 2 >Emitted(1, 5) Source(5, 11) + SourceIndex(0) @@ -1105,7 +1107,7 @@ sourceFile:../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -1122,7 +1124,7 @@ sourceFile:../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -1144,7 +1146,7 @@ sourceFile:../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(5, 5) Source(8, 5) + SourceIndex(0) @@ -1156,8 +1158,8 @@ sourceFile:../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -1176,19 +1178,19 @@ sourceFile:../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^^^^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(7, 1) Source(11, 1) + SourceIndex(0) 2 >Emitted(7, 2) Source(11, 2) + SourceIndex(0) @@ -1201,7 +1203,7 @@ sourceFile:../second/second_part1.ts >>>var normalC = (function () { 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > > 1->Emitted(8, 1) Source(13, 1) + SourceIndex(0) @@ -2403,10 +2405,10 @@ sourceFile:../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(97, 5) Source(5, 1) + SourceIndex(1) @@ -2433,7 +2435,7 @@ sourceFile:../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -2455,7 +2457,7 @@ sourceFile:../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(100, 5) Source(4, 5) + SourceIndex(1) @@ -2464,7 +2466,7 @@ sourceFile:../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(101, 5) Source(5, 1) + SourceIndex(1) @@ -2479,10 +2481,10 @@ sourceFile:../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(102, 1) Source(5, 1) + SourceIndex(1) 2 >Emitted(102, 2) Source(5, 2) + SourceIndex(1) @@ -2492,7 +2494,7 @@ sourceFile:../second/second_part2.ts >>>//# sourceMappingURL=second-output.js.map //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":2951,"kind":"text"}],"mapHash":"47594977138-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACkB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACa;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"211633331599-var N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = (function () {\n function normalC() {\n }\n normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n get: function () { return 10; },\n set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n function foo() { }\n normalN.foo = foo;\n var someNamespace;\n (function (someNamespace) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n normalN.someImport = someNamespace.C;\n normalN.internalConst = 10;\n var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\nvar internalC = (function () {\n function internalC() {\n }\n return internalC;\n}());\nfunction internalfoo() { }\nvar internalNamespace;\n(function (internalNamespace) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\nvar internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\nvar internalImport = internalNamespace.someClass;\nvar internalConst = 10;\nvar internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":72,"kind":"text"},{"pos":72,"end":173,"kind":"internal"},{"pos":174,"end":204,"kind":"text"},{"pos":204,"end":578,"kind":"internal"},{"pos":579,"end":581,"kind":"text"},{"pos":581,"end":968,"kind":"internal"},{"pos":969,"end":1014,"kind":"text"}],"mapHash":"-11613291547-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACvC;AACD,kBAAU,OAAO,CAAC;IACA,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACrD;AACa,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,KAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC3C,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-21418946771-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["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; };","13528403307-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n\nclass normalC {\n /*@internal*/ constructor() { }\n /*@internal*/ prop: string;\n /*@internal*/ method() { }\n /*@internal*/ get c() { return 10; }\n /*@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /*@internal*/ export class C { }\n /*@internal*/ export function foo() {}\n /*@internal*/ export namespace someNamespace { export class C {} }\n /*@internal*/ export namespace someOther.something { export class someClass {} }\n /*@internal*/ export import someImport = someNamespace.C;\n /*@internal*/ export type internalType = internalC;\n /*@internal*/ export const internalConst = 10;\n /*@internal*/ export enum internalEnum { a, b, c }\n}\n/*@internal*/ class internalC {}\n/*@internal*/ function internalfoo() {}\n/*@internal*/ namespace internalNamespace { export class someClass {} }\n/*@internal*/ namespace internalOther.something { export class someClass {} }\n/*@internal*/ import internalImport = internalNamespace.someClass;\n/*@internal*/ type internalType = internalC;\n/*@internal*/ const internalConst = 10;\n/*@internal*/ enum internalEnum { a, b, c }","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-18721653870-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":2951,"kind":"text"}],"mapHash":"47594977138-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACkB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACa;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"211633331599-var N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = (function () {\n function normalC() {\n }\n normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n get: function () { return 10; },\n set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n function foo() { }\n normalN.foo = foo;\n var someNamespace;\n (function (someNamespace) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n normalN.someImport = someNamespace.C;\n normalN.internalConst = 10;\n var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\nvar internalC = (function () {\n function internalC() {\n }\n return internalC;\n}());\nfunction internalfoo() { }\nvar internalNamespace;\n(function (internalNamespace) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\nvar internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\nvar internalImport = internalNamespace.someClass;\nvar internalConst = 10;\nvar internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":72,"kind":"text"},{"pos":72,"end":173,"kind":"internal"},{"pos":174,"end":204,"kind":"text"},{"pos":204,"end":578,"kind":"internal"},{"pos":579,"end":581,"kind":"text"},{"pos":581,"end":968,"kind":"internal"},{"pos":969,"end":1014,"kind":"text"}],"mapHash":"-11613291547-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACvC;AACD,kBAAU,OAAO,CAAC;IACA,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACrD;AACa,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,KAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC3C,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-21418946771-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["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; };","48997088700-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n\nclass normalC {\n /*@internal*/ constructor() { }\n /*@internal*/ prop: string;\n /*@internal*/ method() { }\n /*@internal*/ get c() { return 10; }\n /*@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /*@internal*/ export class C { }\n /*@internal*/ export function foo() {}\n /*@internal*/ export namespace someNamespace { export class C {} }\n /*@internal*/ export namespace someOther.something { export class someClass {} }\n /*@internal*/ export import someImport = someNamespace.C;\n /*@internal*/ export type internalType = internalC;\n /*@internal*/ export const internalConst = 10;\n /*@internal*/ export enum internalEnum { a, b, c }\n}\n/*@internal*/ class internalC {}\n/*@internal*/ function internalfoo() {}\n/*@internal*/ namespace internalNamespace { export class someClass {} }\n/*@internal*/ namespace internalOther.something { export class someClass {} }\n/*@internal*/ import internalImport = internalNamespace.someClass;\n/*@internal*/ type internalType = internalC;\n/*@internal*/ const internalConst = 10;\n/*@internal*/ enum internalEnum { a, b, c }","3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-18721653870-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -2748,8 +2750,8 @@ declare class C { ], "fileInfos": { "../../lib/lib.d.ts": "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; };", - "../second/second_part1.ts": "13528403307-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n\nclass normalC {\n /*@internal*/ constructor() { }\n /*@internal*/ prop: string;\n /*@internal*/ method() { }\n /*@internal*/ get c() { return 10; }\n /*@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /*@internal*/ export class C { }\n /*@internal*/ export function foo() {}\n /*@internal*/ export namespace someNamespace { export class C {} }\n /*@internal*/ export namespace someOther.something { export class someClass {} }\n /*@internal*/ export import someImport = someNamespace.C;\n /*@internal*/ export type internalType = internalC;\n /*@internal*/ export const internalConst = 10;\n /*@internal*/ export enum internalEnum { a, b, c }\n}\n/*@internal*/ class internalC {}\n/*@internal*/ function internalfoo() {}\n/*@internal*/ namespace internalNamespace { export class someClass {} }\n/*@internal*/ namespace internalOther.something { export class someClass {} }\n/*@internal*/ import internalImport = internalNamespace.someClass;\n/*@internal*/ type internalType = internalC;\n/*@internal*/ const internalConst = 10;\n/*@internal*/ enum internalEnum { a, b, c }", - "../second/second_part2.ts": "9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n" + "../second/second_part1.ts": "48997088700-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n\nclass normalC {\n /*@internal*/ constructor() { }\n /*@internal*/ prop: string;\n /*@internal*/ method() { }\n /*@internal*/ get c() { return 10; }\n /*@internal*/ set c(val: number) { }\n}\nnamespace normalN {\n /*@internal*/ export class C { }\n /*@internal*/ export function foo() {}\n /*@internal*/ export namespace someNamespace { export class C {} }\n /*@internal*/ export namespace someOther.something { export class someClass {} }\n /*@internal*/ export import someImport = someNamespace.C;\n /*@internal*/ export type internalType = internalC;\n /*@internal*/ export const internalConst = 10;\n /*@internal*/ export enum internalEnum { a, b, c }\n}\n/*@internal*/ class internalC {}\n/*@internal*/ function internalfoo() {}\n/*@internal*/ namespace internalNamespace { export class someClass {} }\n/*@internal*/ namespace internalOther.something { export class someClass {} }\n/*@internal*/ import internalImport = internalNamespace.someClass;\n/*@internal*/ type internalType = internalC;\n/*@internal*/ const internalConst = 10;\n/*@internal*/ enum internalEnum { a, b, c }", + "../second/second_part2.ts": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n" }, "root": [ [ @@ -2776,7 +2778,7 @@ declare class C { "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 11244 + "size": 11212 } //// [/src/first/bin/first-output.d.ts] @@ -2821,7 +2823,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -2836,7 +2838,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -2847,8 +2849,8 @@ sourceFile:../first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -2866,8 +2868,8 @@ sourceFile:../first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -2881,7 +2883,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -2896,7 +2898,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -2913,8 +2915,8 @@ sourceFile:../first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) @@ -2953,10 +2955,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > +1 >/*@internal*/ interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -2980,12 +2982,12 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -3057,7 +3059,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -3071,7 +3073,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) @@ -3080,7 +3082,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"4999315210-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":37,"kind":"internal"},{"pos":38,"end":149,"kind":"text"}],"mapHash":"36580418620-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-7635519924-/*@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"4999315210-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":37,"kind":"internal"},{"pos":38,"end":149,"kind":"text"}],"mapHash":"36580418620-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","6800247997-/*@internal*/ interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -3158,9 +3160,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "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; };", - "../first_part1.ts": "-7635519924-/*@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "6800247997-/*@internal*/ interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -3189,7 +3191,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2687 + "size": 2660 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -3233,10 +3235,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > +1 >/*@internal*/ interface TheFirst { + > none: any; + >} + > > 2 > 3 > const @@ -3254,8 +3256,8 @@ sourceFile:../../../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -3269,7 +3271,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -3284,7 +3286,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(4, 2) Source(9, 2) + SourceIndex(0) --- @@ -3300,8 +3302,8 @@ sourceFile:../../../first/first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) 2 >Emitted(5, 18) Source(1, 10) + SourceIndex(1) @@ -3329,8 +3331,8 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) --- @@ -3339,8 +3341,8 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -3353,12 +3355,12 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(9, 2) Source(11, 2) + SourceIndex(2) --- @@ -3366,7 +3368,7 @@ sourceFile:../../../second/second_part1.ts 1-> 2 >^^^^^^^^^^^^^^ 3 > ^^^^^^^ -1-> +1-> > > 2 >class @@ -3436,7 +3438,7 @@ sourceFile:../../../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(15, 5) Source(2, 5) + SourceIndex(3) @@ -3445,9 +3447,9 @@ sourceFile:../../../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(16, 2) Source(5, 2) + SourceIndex(3) --- @@ -3612,10 +3614,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > +1 >/*@internal*/ interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -3639,12 +3641,12 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -3716,7 +3718,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -3730,7 +3732,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) @@ -3746,19 +3748,19 @@ sourceFile:../../../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(7, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(7, 5) Source(5, 11) + SourceIndex(3) @@ -3782,7 +3784,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -3799,7 +3801,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -3821,7 +3823,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(11, 5) Source(8, 5) + SourceIndex(3) @@ -3833,8 +3835,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -3853,19 +3855,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^^^^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(13, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(13, 2) Source(11, 2) + SourceIndex(3) @@ -3878,7 +3880,7 @@ sourceFile:../../../second/second_part1.ts >>>var normalC = (function () { 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > > 1->Emitted(14, 1) Source(13, 1) + SourceIndex(3) @@ -5080,10 +5082,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(103, 5) Source(5, 1) + SourceIndex(4) @@ -5110,7 +5112,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -5132,7 +5134,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(106, 5) Source(4, 5) + SourceIndex(4) @@ -5141,7 +5143,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(107, 5) Source(5, 1) + SourceIndex(4) @@ -5156,10 +5158,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(108, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(108, 2) Source(5, 2) + SourceIndex(4) @@ -5204,7 +5206,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -5221,7 +5223,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":104,"kind":"text"}]},{"pos":104,"end":3055,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":104,"end":3055,"kind":"text"}]},{"pos":3055,"end":3089,"kind":"text"}],"mapHash":"-8086338046-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACkB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACa;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-35670541412-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = (function () {\n function normalC() {\n }\n normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n get: function () { return 10; },\n set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n function foo() { }\n normalN.foo = foo;\n var someNamespace;\n (function (someNamespace) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n normalN.someImport = someNamespace.C;\n normalN.internalConst = 10;\n var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\nvar internalC = (function () {\n function internalC() {\n }\n return internalC;\n}());\nfunction internalfoo() { }\nvar internalNamespace;\n(function (internalNamespace) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\nvar internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\nvar internalImport = internalNamespace.someClass;\nvar internalConst = 10;\nvar internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":111,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":111,"kind":"text"}]},{"pos":111,"end":260,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":111,"end":260,"kind":"text"}]},{"pos":260,"end":278,"kind":"text"}],"mapHash":"16014976674-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-51018023562-declare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-18721653870-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"-46239946948-declare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":104,"kind":"text"}]},{"pos":104,"end":3055,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":104,"end":3055,"kind":"text"}]},{"pos":3055,"end":3089,"kind":"text"}],"mapHash":"-8086338046-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACkB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACa;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-35670541412-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = (function () {\n function normalC() {\n }\n normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n get: function () { return 10; },\n set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n function foo() { }\n normalN.foo = foo;\n var someNamespace;\n (function (someNamespace) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n normalN.someImport = someNamespace.C;\n normalN.internalConst = 10;\n var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\nvar internalC = (function () {\n function internalC() {\n }\n return internalC;\n}());\nfunction internalfoo() { }\nvar internalNamespace;\n(function (internalNamespace) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\nvar internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\nvar internalImport = internalNamespace.someClass;\nvar internalConst = 10;\nvar internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":111,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":111,"kind":"text"}]},{"pos":111,"end":260,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":111,"end":260,"kind":"text"}]},{"pos":260,"end":278,"kind":"text"}],"mapHash":"16014976674-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-51018023562-declare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-18721653870-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"-46239946948-declare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -5477,7 +5479,7 @@ declare var c: C; "../../../../lib/lib.d.ts": "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; };", "../../../first/bin/first-output.d.ts": "-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "-18721653870-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -5501,7 +5503,7 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 9932 + "size": 9927 } @@ -5509,58 +5511,58 @@ declare var c: C; Change:: incremental-declaration-changes Input:: //// [/src/first/first_PART1.ts] -/*@internal*/ interface TheFirst { - none: any; -} - -const s = "Hola, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +/*@internal*/ interface TheFirst { + none: any; +} + +const s = "Hola, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:00:51 AM] Projects in this build: +[12:01:03 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:52 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:01:04 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:00:53 AM] Building project '/src/first/tsconfig.json'... +[12:01:05 AM] Building project '/src/first/tsconfig.json'... -[12:01:02 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:01:14 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:03 AM] Project 'src/third/tsconfig.json' is out of date because output 'src/third/thirdjs/output/third-output.tsbuildinfo' is older than input 'src/first' +[12:01:15 AM] Project 'src/third/tsconfig.json' is out of date because output 'src/third/thirdjs/output/third-output.tsbuildinfo' is older than input 'src/first' -[12:01:04 AM] Building project '/src/third/tsconfig.json'... +[12:01:16 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success readFiles:: { - "/src/third/tsconfig.json": 1, - "/src/first/tsconfig.json": 1, - "/src/second/tsconfig.json": 1, - "/src/first/bin/first-output.tsbuildinfo": 1, - "/src/first/first_PART1.ts": 1, - "/src/first/first_part2.ts": 1, - "/src/first/first_part3.ts": 1, - "/src/2/second-output.tsbuildinfo": 1, - "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, - "/src/first/bin/first-output.d.ts": 1, - "/src/2/second-output.d.ts": 1, - "/src/third/third_part1.ts": 1, - "/src/first/bin/first-output.js": 1, - "/src/2/second-output.js": 1, - "/src/first/bin/first-output.js.map": 1, - "/src/2/second-output.js.map": 1, - "/src/first/bin/first-output.d.ts.map": 1, - "/src/2/second-output.d.ts.map": 1 + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/2/second-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, + "/src/first/bin/first-output.d.ts": 1, + "/src/2/second-output.d.ts": 1, + "/src/third/third_part1.ts": 1, + "/src/first/bin/first-output.js": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1 } //// [/src/first/bin/first-output.d.ts] @@ -5605,7 +5607,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -5620,7 +5622,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -5631,8 +5633,8 @@ sourceFile:../first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -5650,8 +5652,8 @@ sourceFile:../first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -5665,7 +5667,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -5680,7 +5682,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -5697,8 +5699,8 @@ sourceFile:../first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) @@ -5737,10 +5739,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^ 6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > +1 >/*@internal*/ interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -5764,12 +5766,12 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -5841,7 +5843,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -5855,7 +5857,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) @@ -5864,7 +5866,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":103,"kind":"text"}],"mapHash":"-23743024037-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"11286582394-var s = \"Hola, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":37,"kind":"internal"},{"pos":38,"end":148,"kind":"text"}],"mapHash":"26096235382-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-8638855186-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-12716948804-/*@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":103,"kind":"text"}],"mapHash":"-23743024037-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"11286582394-var s = \"Hola, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":37,"kind":"internal"},{"pos":38,"end":148,"kind":"text"}],"mapHash":"26096235382-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-8638855186-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-17321008723-/*@internal*/ interface TheFirst {\n none: any;\n}\n\nconst s = \"Hola, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -5942,9 +5944,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "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; };", - "../first_part1.ts": "-12716948804-/*@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-17321008723-/*@internal*/ interface TheFirst {\n none: any;\n}\n\nconst s = \"Hola, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -5973,7 +5975,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2684 + "size": 2658 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -6017,10 +6019,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^ 6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > +1 >/*@internal*/ interface TheFirst { + > none: any; + >} + > > 2 > 3 > const @@ -6038,8 +6040,8 @@ sourceFile:../../../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -6053,7 +6055,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -6068,7 +6070,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(4, 2) Source(9, 2) + SourceIndex(0) --- @@ -6084,8 +6086,8 @@ sourceFile:../../../first/first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) 2 >Emitted(5, 18) Source(1, 10) + SourceIndex(1) @@ -6113,8 +6115,8 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) --- @@ -6123,8 +6125,8 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -6137,12 +6139,12 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(9, 2) Source(11, 2) + SourceIndex(2) --- @@ -6150,7 +6152,7 @@ sourceFile:../../../second/second_part1.ts 1-> 2 >^^^^^^^^^^^^^^ 3 > ^^^^^^^ -1-> +1-> > > 2 >class @@ -6220,7 +6222,7 @@ sourceFile:../../../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(15, 5) Source(2, 5) + SourceIndex(3) @@ -6229,9 +6231,9 @@ sourceFile:../../../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(16, 2) Source(5, 2) + SourceIndex(3) --- @@ -6396,10 +6398,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^ 6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > +1 >/*@internal*/ interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -6423,12 +6425,12 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -6500,7 +6502,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -6514,7 +6516,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) @@ -6530,19 +6532,19 @@ sourceFile:../../../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(7, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(7, 5) Source(5, 11) + SourceIndex(3) @@ -6566,7 +6568,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -6583,7 +6585,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -6605,7 +6607,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(11, 5) Source(8, 5) + SourceIndex(3) @@ -6617,8 +6619,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -6637,19 +6639,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^^^^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(13, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(13, 2) Source(11, 2) + SourceIndex(3) @@ -6662,7 +6664,7 @@ sourceFile:../../../second/second_part1.ts >>>var normalC = (function () { 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > > 1->Emitted(14, 1) Source(13, 1) + SourceIndex(3) @@ -7864,10 +7866,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(103, 5) Source(5, 1) + SourceIndex(4) @@ -7894,7 +7896,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -7916,7 +7918,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(106, 5) Source(4, 5) + SourceIndex(4) @@ -7925,7 +7927,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(107, 5) Source(5, 1) + SourceIndex(4) @@ -7940,10 +7942,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(108, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(108, 2) Source(5, 2) + SourceIndex(4) @@ -7988,7 +7990,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -8005,7 +8007,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":103,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":103,"kind":"text"}]},{"pos":103,"end":3054,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":103,"end":3054,"kind":"text"}]},{"pos":3054,"end":3088,"kind":"text"}],"mapHash":"175025764412-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACkB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACa;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"1719185164-var s = \"Hola, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = (function () {\n function normalC() {\n }\n normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n get: function () { return 10; },\n set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n function foo() { }\n normalN.foo = foo;\n var someNamespace;\n (function (someNamespace) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n normalN.someImport = someNamespace.C;\n normalN.internalConst = 10;\n var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\nvar internalC = (function () {\n function internalC() {\n }\n return internalC;\n}());\nfunction internalfoo() { }\nvar internalNamespace;\n(function (internalNamespace) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\nvar internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\nvar internalImport = internalNamespace.someClass;\nvar internalConst = 10;\nvar internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":110,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":110,"kind":"text"}]},{"pos":110,"end":259,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":110,"end":259,"kind":"text"}]},{"pos":259,"end":277,"kind":"text"}],"mapHash":"-7558054436-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"1167029542-declare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-18721653870-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"16620847852-declare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":103,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":103,"kind":"text"}]},{"pos":103,"end":3054,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":103,"end":3054,"kind":"text"}]},{"pos":3054,"end":3088,"kind":"text"}],"mapHash":"175025764412-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACkB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACa;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"1719185164-var s = \"Hola, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = (function () {\n function normalC() {\n }\n normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n get: function () { return 10; },\n set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n function foo() { }\n normalN.foo = foo;\n var someNamespace;\n (function (someNamespace) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n normalN.someImport = someNamespace.C;\n normalN.internalConst = 10;\n var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\nvar internalC = (function () {\n function internalC() {\n }\n return internalC;\n}());\nfunction internalfoo() { }\nvar internalNamespace;\n(function (internalNamespace) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\nvar internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\nvar internalImport = internalNamespace.someClass;\nvar internalConst = 10;\nvar internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":110,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":110,"kind":"text"}]},{"pos":110,"end":259,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":110,"end":259,"kind":"text"}]},{"pos":259,"end":277,"kind":"text"}],"mapHash":"-7558054436-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"1167029542-declare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-18721653870-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"16620847852-declare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -8261,7 +8263,7 @@ declare var c: C; "../../../../lib/lib.d.ts": "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; };", "../../../first/bin/first-output.d.ts": "-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "-18721653870-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -8285,7 +8287,7 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 9924 + "size": 9919 } @@ -8293,61 +8295,61 @@ declare var c: C; Change:: incremental-declaration-doesnt-change Input:: //// [/src/first/first_PART1.ts] -/*@internal*/ interface TheFirst { - none: any; -} - -const s = "Hola, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +/*@internal*/ interface TheFirst { + none: any; +} + +const s = "Hola, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:01:18 AM] Projects in this build: +[12:01:30 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:01:19 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:01:31 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:01:20 AM] Building project '/src/first/tsconfig.json'... +[12:01:32 AM] Building project '/src/first/tsconfig.json'... -[12:01:28 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:01:40 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:29 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:01:41 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:01:30 AM] Updating output of project '/src/third/tsconfig.json'... +[12:01:42 AM] Updating output of project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success readFiles:: { - "/src/third/tsconfig.json": 1, - "/src/first/tsconfig.json": 1, - "/src/second/tsconfig.json": 1, - "/src/first/bin/first-output.tsbuildinfo": 1, - "/src/first/first_PART1.ts": 1, - "/src/first/first_part2.ts": 1, - "/src/first/first_part3.ts": 1, - "/src/2/second-output.tsbuildinfo": 1, - "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, - "/src/third/thirdjs/output/third-output.js": 1, - "/src/third/thirdjs/output/third-output.js.map": 1, - "/src/third/thirdjs/output/third-output.d.ts": 1, - "/src/third/thirdjs/output/third-output.d.ts.map": 1, - "/src/first/bin/first-output.js": 1, - "/src/2/second-output.js": 1, - "/src/first/bin/first-output.js.map": 1, - "/src/2/second-output.js.map": 1, - "/src/first/bin/first-output.d.ts": 1, - "/src/2/second-output.d.ts": 1, - "/src/first/bin/first-output.d.ts.map": 1, - "/src/2/second-output.d.ts.map": 1 + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/2/second-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.js": 1, + "/src/third/thirdjs/output/third-output.js.map": 1, + "/src/third/thirdjs/output/third-output.d.ts": 1, + "/src/third/thirdjs/output/third-output.d.ts.map": 1, + "/src/first/bin/first-output.js": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/first/bin/first-output.d.ts": 1, + "/src/2/second-output.d.ts": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1 } //// [/src/first/bin/first-output.d.ts.map] file written with same contents @@ -8383,10 +8385,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^ 6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > +1 >/*@internal*/ interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -8409,12 +8411,12 @@ sourceFile:../first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -8442,7 +8444,7 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > +1 > > 2 >console 3 > . @@ -8514,7 +8516,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -8528,7 +8530,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) @@ -8537,7 +8539,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":119,"kind":"text"}],"mapHash":"-32659542769-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"14669719846-var s = \"Hola, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":37,"kind":"internal"},{"pos":38,"end":148,"kind":"text"}],"mapHash":"26096235382-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-8638855186-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-9838630498-/*@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":119,"kind":"text"}],"mapHash":"-32659542769-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"14669719846-var s = \"Hola, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":37,"kind":"internal"},{"pos":38,"end":148,"kind":"text"}],"mapHash":"26096235382-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-8638855186-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-21236879249-/*@internal*/ interface TheFirst {\n none: any;\n}\n\nconst s = \"Hola, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -8616,9 +8618,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "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; };", - "../first_part1.ts": "-9838630498-/*@internal*/ interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-21236879249-/*@internal*/ interface TheFirst {\n none: any;\n}\n\nconst s = \"Hola, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -8647,7 +8649,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2755 + "size": 2730 } //// [/src/third/thirdjs/output/third-output.js] @@ -8785,10 +8787,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^ 6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > +1 >/*@internal*/ interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -8811,12 +8813,12 @@ sourceFile:../../../first/first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -8844,7 +8846,7 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > +1 > > 2 >console 3 > . @@ -8916,7 +8918,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -8930,7 +8932,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) @@ -8946,19 +8948,19 @@ sourceFile:../../../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(8, 5) Source(5, 11) + SourceIndex(3) @@ -8982,7 +8984,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -8999,7 +9001,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -9021,7 +9023,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(12, 5) Source(8, 5) + SourceIndex(3) @@ -9033,8 +9035,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -9053,19 +9055,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^^^^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(14, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(14, 2) Source(11, 2) + SourceIndex(3) @@ -9078,7 +9080,7 @@ sourceFile:../../../second/second_part1.ts >>>var normalC = (function () { 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> +1-> > > 1->Emitted(15, 1) Source(13, 1) + SourceIndex(3) @@ -10280,10 +10282,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(104, 5) Source(5, 1) + SourceIndex(4) @@ -10310,7 +10312,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -10332,7 +10334,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(107, 5) Source(4, 5) + SourceIndex(4) @@ -10341,7 +10343,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(108, 5) Source(5, 1) + SourceIndex(4) @@ -10356,10 +10358,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(109, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(109, 2) Source(5, 2) + SourceIndex(4) @@ -10404,7 +10406,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -10421,7 +10423,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":119,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":119,"kind":"text"}]},{"pos":119,"end":3070,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":119,"end":3070,"kind":"text"}]},{"pos":3070,"end":3104,"kind":"text"}],"mapHash":"-121698117904-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACkB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACa;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"112142595384-var s = \"Hola, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = (function () {\n function normalC() {\n }\n normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n get: function () { return 10; },\n set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n function foo() { }\n normalN.foo = foo;\n var someNamespace;\n (function (someNamespace) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n normalN.someImport = someNamespace.C;\n normalN.internalConst = 10;\n var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\nvar internalC = (function () {\n function internalC() {\n }\n return internalC;\n}());\nfunction internalfoo() { }\nvar internalNamespace;\n(function (internalNamespace) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\nvar internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\nvar internalImport = internalNamespace.someClass;\nvar internalConst = 10;\nvar internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":110,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":110,"kind":"text"}]},{"pos":110,"end":259,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":110,"end":259,"kind":"text"}]},{"pos":259,"end":277,"kind":"text"}],"mapHash":"-7558054436-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"1167029542-declare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-18721653870-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"16620847852-declare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":119,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":119,"kind":"text"}]},{"pos":119,"end":3070,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":119,"end":3070,"kind":"text"}]},{"pos":3070,"end":3104,"kind":"text"}],"mapHash":"-121698117904-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACkB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACa;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"112142595384-var s = \"Hola, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = (function () {\n function normalC() {\n }\n normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n get: function () { return 10; },\n set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n function foo() { }\n normalN.foo = foo;\n var someNamespace;\n (function (someNamespace) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n normalN.someImport = someNamespace.C;\n normalN.internalConst = 10;\n var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\nvar internalC = (function () {\n function internalC() {\n }\n return internalC;\n}());\nfunction internalfoo() { }\nvar internalNamespace;\n(function (internalNamespace) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\nvar internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\nvar internalImport = internalNamespace.someClass;\nvar internalConst = 10;\nvar internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":110,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":110,"kind":"text"}]},{"pos":110,"end":259,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":110,"end":259,"kind":"text"}]},{"pos":259,"end":277,"kind":"text"}],"mapHash":"-7558054436-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"1167029542-declare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-18721653870-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"16620847852-declare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -10678,7 +10680,7 @@ declare var c: C; "../../../../lib/lib.d.ts": "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; };", "../../../first/bin/first-output.d.ts": "-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "-18721653870-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -10702,7 +10704,7 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 9984 + "size": 9979 } @@ -10710,61 +10712,61 @@ declare var c: C; Change:: incremental-headers-change-without-dts-changes Input:: //// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hola, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hola, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:01:41 AM] Projects in this build: +[12:01:53 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:01:42 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:01:54 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:01:43 AM] Building project '/src/first/tsconfig.json'... +[12:01:55 AM] Building project '/src/first/tsconfig.json'... -[12:01:51 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:02:03 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:52 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:02:04 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:01:53 AM] Updating output of project '/src/third/tsconfig.json'... +[12:02:05 AM] Updating output of project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success readFiles:: { - "/src/third/tsconfig.json": 1, - "/src/first/tsconfig.json": 1, - "/src/second/tsconfig.json": 1, - "/src/first/bin/first-output.tsbuildinfo": 1, - "/src/first/first_PART1.ts": 1, - "/src/first/first_part2.ts": 1, - "/src/first/first_part3.ts": 1, - "/src/2/second-output.tsbuildinfo": 1, - "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, - "/src/third/thirdjs/output/third-output.js": 1, - "/src/third/thirdjs/output/third-output.js.map": 1, - "/src/third/thirdjs/output/third-output.d.ts": 1, - "/src/third/thirdjs/output/third-output.d.ts.map": 1, - "/src/first/bin/first-output.js": 1, - "/src/2/second-output.js": 1, - "/src/first/bin/first-output.js.map": 1, - "/src/2/second-output.js.map": 1, - "/src/first/bin/first-output.d.ts": 1, - "/src/2/second-output.d.ts": 1, - "/src/first/bin/first-output.d.ts.map": 1, - "/src/2/second-output.d.ts.map": 1 + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/2/second-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.js": 1, + "/src/third/thirdjs/output/third-output.js.map": 1, + "/src/third/thirdjs/output/third-output.d.ts": 1, + "/src/third/thirdjs/output/third-output.d.ts.map": 1, + "/src/first/bin/first-output.js": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/first/bin/first-output.d.ts": 1, + "/src/2/second-output.d.ts": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1 } //// [/src/first/bin/first-output.d.ts.map] @@ -10798,7 +10800,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -10813,7 +10815,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -10824,8 +10826,8 @@ sourceFile:../first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -10843,8 +10845,8 @@ sourceFile:../first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -10858,7 +10860,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -10873,7 +10875,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -10890,8 +10892,8 @@ sourceFile:../first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) @@ -10920,10 +10922,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -10946,12 +10948,12 @@ sourceFile:../first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -10979,7 +10981,7 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > +1 > > 2 >console 3 > . @@ -11051,7 +11053,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -11065,7 +11067,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) @@ -11074,7 +11076,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":119,"kind":"text"}],"mapHash":"-32659542769-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"14669719846-var s = \"Hola, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":148,"kind":"text"}],"mapHash":"31357838721-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-8638855186-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","3570577263-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":119,"kind":"text"}],"mapHash":"-32659542769-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"14669719846-var s = \"Hola, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":148,"kind":"text"}],"mapHash":"31357838721-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-8638855186-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-21292400928-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hola, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -11146,9 +11148,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "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; };", - "../first_part1.ts": "3570577263-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-21292400928-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hola, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -11177,7 +11179,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2701 + "size": 2677 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -11234,7 +11236,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -11249,7 +11251,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -11260,8 +11262,8 @@ sourceFile:../../../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -11279,8 +11281,8 @@ sourceFile:../../../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -11294,7 +11296,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -11309,7 +11311,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -11325,8 +11327,8 @@ sourceFile:../../../first/first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) @@ -11354,8 +11356,8 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) --- @@ -11364,8 +11366,8 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -11378,12 +11380,12 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) --- @@ -11391,7 +11393,7 @@ sourceFile:../../../second/second_part1.ts 1-> 2 >^^^^^^^^^^^^^^ 3 > ^^^^^^^ -1-> +1-> > > 2 >class @@ -11461,7 +11463,7 @@ sourceFile:../../../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(18, 5) Source(2, 5) + SourceIndex(3) @@ -11470,9 +11472,9 @@ sourceFile:../../../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(19, 2) Source(5, 2) + SourceIndex(3) --- @@ -11504,7 +11506,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.d.ts.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":119,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":119,"kind":"text"}]},{"pos":119,"end":3070,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":119,"end":3070,"kind":"text"}]},{"pos":3070,"end":3104,"kind":"text"}],"mapHash":"-121698117904-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACkB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACa;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"112142595384-var s = \"Hola, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = (function () {\n function normalC() {\n }\n normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n get: function () { return 10; },\n set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n function foo() { }\n normalN.foo = foo;\n var someNamespace;\n (function (someNamespace) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n normalN.someImport = someNamespace.C;\n normalN.internalConst = 10;\n var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\nvar internalC = (function () {\n function internalC() {\n }\n return internalC;\n}());\nfunction internalfoo() { }\nvar internalNamespace;\n(function (internalNamespace) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\nvar internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\nvar internalImport = internalNamespace.someClass;\nvar internalConst = 10;\nvar internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":148,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":148,"kind":"text"}]},{"pos":148,"end":297,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":148,"end":297,"kind":"text"}]},{"pos":297,"end":315,"kind":"text"}],"mapHash":"12830271258-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-5865236541-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-18721653870-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"-3666241207-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":119,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":119,"kind":"text"}]},{"pos":119,"end":3070,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":119,"end":3070,"kind":"text"}]},{"pos":3070,"end":3104,"kind":"text"}],"mapHash":"-121698117904-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACkB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACa;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"112142595384-var s = \"Hola, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar normalC = (function () {\n function normalC() {\n }\n normalC.prototype.method = function () { };\n Object.defineProperty(normalC.prototype, \"c\", {\n get: function () { return 10; },\n set: function (val) { },\n enumerable: false,\n configurable: true\n });\n return normalC;\n}());\nvar normalN;\n(function (normalN) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n normalN.C = C;\n function foo() { }\n normalN.foo = foo;\n var someNamespace;\n (function (someNamespace) {\n var C = (function () {\n function C() {\n }\n return C;\n }());\n someNamespace.C = C;\n })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {}));\n var someOther;\n (function (someOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = someOther.something || (someOther.something = {}));\n })(someOther = normalN.someOther || (normalN.someOther = {}));\n normalN.someImport = someNamespace.C;\n normalN.internalConst = 10;\n var internalEnum;\n (function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {}));\n})(normalN || (normalN = {}));\nvar internalC = (function () {\n function internalC() {\n }\n return internalC;\n}());\nfunction internalfoo() { }\nvar internalNamespace;\n(function (internalNamespace) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n internalNamespace.someClass = someClass;\n})(internalNamespace || (internalNamespace = {}));\nvar internalOther;\n(function (internalOther) {\n var something;\n (function (something) {\n var someClass = (function () {\n function someClass() {\n }\n return someClass;\n }());\n something.someClass = someClass;\n })(something = internalOther.something || (internalOther.something = {}));\n})(internalOther || (internalOther = {}));\nvar internalImport = internalNamespace.someClass;\nvar internalConst = 10;\nvar internalEnum;\n(function (internalEnum) {\n internalEnum[internalEnum[\"a\"] = 0] = \"a\";\n internalEnum[internalEnum[\"b\"] = 1] = \"b\";\n internalEnum[internalEnum[\"c\"] = 2] = \"c\";\n})(internalEnum || (internalEnum = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":148,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":148,"kind":"text"}]},{"pos":148,"end":297,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":148,"end":297,"kind":"text"}]},{"pos":297,"end":315,"kind":"text"}],"mapHash":"12830271258-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-5865236541-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-18721653870-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"stripInternal":true,"target":1},"outSignature":"-3666241207-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n}\ndeclare namespace normalN {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -11764,7 +11766,7 @@ declare var c: C; "../../../../lib/lib.d.ts": "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; };", "../../../first/bin/first-output.d.ts": "-14566027737-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "-18721653870-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class normalC {\n constructor();\n prop: string;\n method(): void;\n get c(): number;\n set c(val: number);\n}\ndeclare namespace normalN {\n class C {\n }\n function foo(): void;\n namespace someNamespace {\n class C {\n }\n }\n namespace someOther.something {\n class someClass {\n }\n }\n export import someImport = someNamespace.C;\n type internalType = internalC;\n const internalConst = 10;\n enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n }\n}\ndeclare class internalC {\n}\ndeclare function internalfoo(): void;\ndeclare namespace internalNamespace {\n class someClass {\n }\n}\ndeclare namespace internalOther.something {\n class someClass {\n }\n}\nimport internalImport = internalNamespace.someClass;\ntype internalType = internalC;\ndeclare const internalConst = 10;\ndeclare enum internalEnum {\n a = 0,\n b = 1,\n c = 2\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -11788,6 +11790,6 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 10112 + "size": 10107 } diff --git a/tests/baselines/reference/tsbuild/outfile-concat/triple-slash-refs-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/triple-slash-refs-in-all-projects.js index df9c2aa7f6dfe..23ea696b01ab7 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/triple-slash-refs-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/triple-slash-refs-in-all-projects.js @@ -16,178 +16,180 @@ interface ReadonlyArray {} declare const console: { log(msg: any): void; }; //// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); //// [/src/first/first_part2.ts] /// const first_part2Const = new firstfirst_part2(); -console.log(f()); +console.log(f()); //// [/src/first/first_part3.ts] -function f() { - return "JS does hoists"; -} +function f() { + return "JS does hoists"; +} + //// [/src/first/tripleRef.d.ts] declare class firstfirst_part2 { } //// [/src/first/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "outFile": "./bin/first-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "first_PART1.ts", - "first_part2.ts", - "first_part3.ts" - ], - "references": [ - ] +{ + "compilerOptions": { + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "outFile": "./bin/first-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "first_PART1.ts", + "first_part2.ts", + "first_part3.ts" + ], + "references": [] } - //// [/src/second/second_part1.ts] /// const second_part1Const = new secondsecond_part1(); -namespace N { - // Comment text -} - -namespace N { - function f() { - console.log('testing'); - } - - f(); -} +namespace N { + // Comment text +} + +namespace N { + function f() { + console.log('testing'); + } + + f(); +} //// [/src/second/second_part2.ts] -class C { - doSomething() { - console.log("something got done"); - } -} +class C { + doSomething() { + console.log("something got done"); + } +} //// [/src/second/tripleRef.d.ts] declare class secondsecond_part1 { } //// [/src/second/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "../2/second-output.js", - "skipDefaultLibCheck": true - }, - "references": [ - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "../2/second-output.js", + "skipDefaultLibCheck": true + }, + "references": [] } - //// [/src/third/third_part1.ts] /// const third_part1Const = new thirdthird_part1(); -var c = new C(); -c.doSomething(); +var c = new C(); +c.doSomething(); //// [/src/third/tripleRef.d.ts] declare class thirdthird_part1 { } //// [/src/third/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "./thirdjs/output/third-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "third_part1.ts" - ], - "references": [ - { "path": "../first", "prepend": true }, - { "path": "../second", "prepend": true }, - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "./thirdjs/output/third-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "third_part1.ts" + ], + "references": [ + { + "path": "../first", + "prepend": true + }, + { + "path": "../second", + "prepend": true + } + ] } - Output:: /lib/tsc --b /src/third --verbose -[12:00:12 AM] Projects in this build: +[12:00:24 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:13 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist +[12:00:25 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist -[12:00:14 AM] Building project '/src/first/tsconfig.json'... +[12:00:26 AM] Building project '/src/first/tsconfig.json'... -[12:00:24 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist +[12:00:36 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist -[12:00:25 AM] Building project '/src/second/tsconfig.json'... +[12:00:37 AM] Building project '/src/second/tsconfig.json'... -[12:00:35 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist +[12:00:47 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist -[12:00:36 AM] Building project '/src/third/tsconfig.json'... +[12:00:48 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success readFiles:: { - "/src/third/tsconfig.json": 1, - "/src/first/tsconfig.json": 1, - "/src/second/tsconfig.json": 1, - "/src/first/first_PART1.ts": 1, - "/src/first/first_part2.ts": 1, - "/src/first/tripleRef.d.ts": 1, - "/src/first/first_part3.ts": 1, - "/src/second/second_part1.ts": 1, - "/src/second/tripleRef.d.ts": 1, - "/src/second/second_part2.ts": 1, - "/src/first/bin/first-output.d.ts": 1, - "/src/2/second-output.d.ts": 1, - "/src/third/third_part1.ts": 1, - "/src/third/tripleRef.d.ts": 1, - "/src/first/bin/first-output.js": 1, - "/src/2/second-output.js": 1, - "/src/first/bin/first-output.js.map": 1, - "/src/2/second-output.js.map": 1, - "/src/first/bin/first-output.d.ts.map": 1, - "/src/2/second-output.d.ts.map": 1 + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/tripleRef.d.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/second/second_part1.ts": 1, + "/src/second/tripleRef.d.ts": 1, + "/src/second/second_part2.ts": 1, + "/src/first/bin/first-output.d.ts": 1, + "/src/2/second-output.d.ts": 1, + "/src/third/third_part1.ts": 1, + "/src/third/tripleRef.d.ts": 1, + "/src/first/bin/first-output.js": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1 } //// [/src/2/second-output.d.ts] @@ -256,8 +258,8 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(4, 2) Source(5, 2) + SourceIndex(0) --- @@ -266,8 +268,8 @@ sourceFile:../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -280,12 +282,12 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(6, 2) Source(13, 2) + SourceIndex(0) --- @@ -308,7 +310,7 @@ sourceFile:../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(8, 5) Source(2, 5) + SourceIndex(1) @@ -317,9 +319,9 @@ sourceFile:../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(9, 2) Source(5, 2) + SourceIndex(1) --- @@ -392,19 +394,19 @@ sourceFile:../second/second_part1.ts 4 > ^ 5 > ^^^^^^^^^-> 1 > - >namespace N { - > // Comment text - >} - > + >namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1 >Emitted(2, 1) Source(7, 1) + SourceIndex(0) 2 >Emitted(2, 5) Source(7, 11) + SourceIndex(0) @@ -428,7 +430,7 @@ sourceFile:../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -445,7 +447,7 @@ sourceFile:../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -467,7 +469,7 @@ sourceFile:../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(6, 5) Source(10, 5) + SourceIndex(0) @@ -479,8 +481,8 @@ sourceFile:../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -499,19 +501,19 @@ sourceFile:../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(8, 1) Source(13, 1) + SourceIndex(0) 2 >Emitted(8, 2) Source(13, 2) + SourceIndex(0) @@ -541,10 +543,10 @@ sourceFile:../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(11, 5) Source(5, 1) + SourceIndex(1) @@ -571,7 +573,7 @@ sourceFile:../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -593,7 +595,7 @@ sourceFile:../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(14, 5) Source(4, 5) + SourceIndex(1) @@ -602,7 +604,7 @@ sourceFile:../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) @@ -617,10 +619,10 @@ sourceFile:../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(16, 1) Source(5, 1) + SourceIndex(1) 2 >Emitted(16, 2) Source(5, 2) + SourceIndex(1) @@ -630,7 +632,7 @@ sourceFile:../second/second_part2.ts >>>//# sourceMappingURL=second-output.js.map //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":320,"kind":"text"}],"mapHash":"6635165462-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AACA,IAAM,iBAAiB,GAAG,IAAI,kBAAkB,EAAE,CAAC;AAKnD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACZD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-34413738364-var second_part1Const = new secondsecond_part1();\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":49,"kind":"reference","data":"../second/tripleRef.d.ts"},{"pos":50,"end":196,"kind":"text"}],"mapHash":"-3800548159-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\";AACA,QAAA,MAAM,iBAAiB,oBAA2B,CAAC;AACnD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACZD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-251663252-/// \ndeclare const second_part1Const: secondsecond_part1;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/tripleref.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["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; };","-742713438-declare class secondsecond_part1 { }","-823890693-///\nconst second_part1Const = new secondsecond_part1();\nnamespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-13015294415-/// \ndeclare const second_part1Const: secondsecond_part1;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":320,"kind":"text"}],"mapHash":"6635165462-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AACA,IAAM,iBAAiB,GAAG,IAAI,kBAAkB,EAAE,CAAC;AAKnD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACZD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-34413738364-var second_part1Const = new secondsecond_part1();\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":49,"kind":"reference","data":"../second/tripleRef.d.ts"},{"pos":50,"end":196,"kind":"text"}],"mapHash":"-3800548159-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\";AACA,QAAA,MAAM,iBAAiB,oBAA2B,CAAC;AACnD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACZD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-251663252-/// \ndeclare const second_part1Const: secondsecond_part1;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/tripleref.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["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; };","-742713438-declare class secondsecond_part1 { }","-13901060436-///\nconst second_part1Const = new secondsecond_part1();\nnamespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n","3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n"],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-13015294415-/// \ndeclare const second_part1Const: secondsecond_part1;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -720,8 +722,8 @@ declare class C { "fileInfos": { "../../lib/lib.d.ts": "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; };", "../second/tripleref.d.ts": "-742713438-declare class secondsecond_part1 { }", - "../second/second_part1.ts": "-823890693-///\nconst second_part1Const = new secondsecond_part1();\nnamespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n", - "../second/second_part2.ts": "9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n" + "../second/second_part1.ts": "-13901060436-///\nconst second_part1Const = new secondsecond_part1();\nnamespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", + "../second/second_part2.ts": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n" }, "root": [ [ @@ -751,7 +753,7 @@ declare class C { "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 3330 + "size": 3300 } //// [/src/first/bin/first-output.d.ts] @@ -799,7 +801,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -814,7 +816,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(4, 2) Source(3, 2) + SourceIndex(0) --- @@ -825,8 +827,8 @@ sourceFile:../first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -844,8 +846,8 @@ sourceFile:../first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -859,7 +861,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -874,7 +876,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(8, 2) Source(9, 2) + SourceIndex(0) --- @@ -916,8 +918,8 @@ sourceFile:../first_part3.ts 1 > 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1 >Emitted(10, 1) Source(1, 1) + SourceIndex(2) 2 >Emitted(10, 18) Source(1, 10) + SourceIndex(2) @@ -957,10 +959,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -984,12 +986,12 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -1089,7 +1091,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -1103,7 +1105,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) @@ -1112,7 +1114,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":151,"kind":"text"}],"mapHash":"-46474879684-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACTf,IAAM,gBAAgB,GAAG,IAAI,gBAAgB,EAAE,CAAC;AAChD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACFjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"6451620159-var s = \"Hello, world\";\nconsole.log(s);\nvar first_part2Const = new firstfirst_part2();\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":42,"kind":"reference","data":"../tripleRef.d.ts"},{"pos":43,"end":242,"kind":"text"}],"mapHash":"28011477375-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACPD,QAAA,MAAM,gBAAgB,kBAAyB,CAAC;ACDhD,iBAAS,CAAC,WAET\"}","hash":"-31213872065-/// \ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare const first_part2Const: firstfirst_part2;\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../tripleref.d.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","-2651673797-declare class firstfirst_part2 { }","1679819683-///\nconst first_part2Const = new firstfirst_part2();\nconsole.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[2,4,5],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-28977998536-/// \ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare const first_part2Const: firstfirst_part2;\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":151,"kind":"text"}],"mapHash":"-46474879684-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACTf,IAAM,gBAAgB,GAAG,IAAI,gBAAgB,EAAE,CAAC;AAChD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACFjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"6451620159-var s = \"Hello, world\";\nconsole.log(s);\nvar first_part2Const = new firstfirst_part2();\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":42,"kind":"reference","data":"../tripleRef.d.ts"},{"pos":43,"end":242,"kind":"text"}],"mapHash":"28011477375-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACPD,QAAA,MAAM,gBAAgB,kBAAyB,CAAC;ACDhD,iBAAS,CAAC,WAET\"}","hash":"-31213872065-/// \ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare const first_part2Const: firstfirst_part2;\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../tripleref.d.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","-2651673797-declare class firstfirst_part2 { }","2784064630-///\nconst first_part2Const = new firstfirst_part2();\nconsole.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[2,4,5],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-28977998536-/// \ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare const first_part2Const: firstfirst_part2;\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -1195,10 +1197,10 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "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; };", - "../first_part1.ts": "-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n", + "../first_part1.ts": "-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", "../tripleref.d.ts": "-2651673797-declare class firstfirst_part2 { }", - "../first_part2.ts": "1679819683-///\nconst first_part2Const = new firstfirst_part2();\nconsole.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part2.ts": "2784064630-///\nconst first_part2Const = new firstfirst_part2();\nconsole.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -1228,7 +1230,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 3186 + "size": 3160 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -1290,7 +1292,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -1305,7 +1307,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(6, 2) Source(3, 2) + SourceIndex(0) --- @@ -1316,8 +1318,8 @@ sourceFile:../../../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -1335,8 +1337,8 @@ sourceFile:../../../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -1350,7 +1352,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -1365,7 +1367,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- @@ -1407,8 +1409,8 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1 >Emitted(12, 1) Source(1, 1) + SourceIndex(2) 2 >Emitted(12, 18) Source(1, 10) + SourceIndex(2) @@ -1458,8 +1460,8 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(15, 2) Source(5, 2) + SourceIndex(3) --- @@ -1468,8 +1470,8 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -1482,12 +1484,12 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(17, 2) Source(13, 2) + SourceIndex(3) --- @@ -1510,7 +1512,7 @@ sourceFile:../../../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(19, 5) Source(2, 5) + SourceIndex(4) @@ -1519,9 +1521,9 @@ sourceFile:../../../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(20, 2) Source(5, 2) + SourceIndex(4) --- @@ -1624,10 +1626,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -1651,12 +1653,12 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -1756,7 +1758,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -1770,7 +1772,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) @@ -1814,19 +1816,19 @@ sourceFile:../../../second/second_part1.ts 4 > ^ 5 > ^^^^^^^^^-> 1 > - >namespace N { - > // Comment text - >} - > + >namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1 >Emitted(9, 1) Source(7, 1) + SourceIndex(3) 2 >Emitted(9, 5) Source(7, 11) + SourceIndex(3) @@ -1850,7 +1852,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -1867,7 +1869,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -1889,7 +1891,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(13, 5) Source(10, 5) + SourceIndex(3) @@ -1901,8 +1903,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -1921,19 +1923,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(15, 1) Source(13, 1) + SourceIndex(3) 2 >Emitted(15, 2) Source(13, 2) + SourceIndex(3) @@ -1963,10 +1965,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(18, 5) Source(5, 1) + SourceIndex(4) @@ -1993,7 +1995,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -2015,7 +2017,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(21, 5) Source(4, 5) + SourceIndex(4) @@ -2024,7 +2026,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(22, 5) Source(5, 1) + SourceIndex(4) @@ -2039,10 +2041,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(23, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(23, 2) Source(5, 2) + SourceIndex(4) @@ -2115,7 +2117,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -2132,7 +2134,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":151,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":151,"kind":"text"}]},{"pos":151,"end":471,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":151,"end":471,"kind":"text"}]},{"pos":471,"end":552,"kind":"text"}],"mapHash":"44476692060-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACTf,IAAM,gBAAgB,GAAG,IAAI,gBAAgB,EAAE,CAAC;AAChD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACFjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACDD,IAAM,iBAAiB,GAAG,IAAI,kBAAkB,EAAE,CAAC;AAKnD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACZD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACHD,IAAM,gBAAgB,GAAG,IAAI,gBAAgB,EAAE,CAAC;AAChD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-26848080718-var s = \"Hello, world\";\nconsole.log(s);\nvar first_part2Const = new firstfirst_part2();\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar second_part1Const = new secondsecond_part1();\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar third_part1Const = new thirdthird_part1();\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":45,"kind":"reference","data":"../../tripleRef.d.ts"},{"pos":46,"end":100,"kind":"reference","data":"../../../first/tripleRef.d.ts"},{"pos":101,"end":156,"kind":"reference","data":"../../../second/tripleRef.d.ts"},{"pos":157,"end":356,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":157,"end":356,"kind":"text"}]},{"pos":356,"end":502,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":356,"end":502,"kind":"text"}]},{"pos":502,"end":570,"kind":"text"}],"mapHash":"-21355679145-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";;;AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACPD,QAAA,MAAM,gBAAgB,kBAAyB,CAAC;ACDhD,iBAAS,CAAC,WAET;ACDD,QAAA,MAAM,iBAAiB,oBAA2B,CAAC;AACnD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACZD,cAAM,CAAC;IACH,WAAW;CAGd;ACHD,QAAA,MAAM,gBAAgB,kBAAyB,CAAC;AAChD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-14850014846-/// \n/// \n/// \ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare const first_part2Const: firstfirst_part2;\ndeclare function f(): string;\ndeclare const second_part1Const: secondsecond_part1;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare const third_part1Const: thirdthird_part1;\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/tripleref.d.ts","../../../first/bin/first-output.d.ts","../../../second/tripleref.d.ts","../../../2/second-output.d.ts","../../tripleref.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-2651673797-declare class firstfirst_part2 { }","-28977998536-/// \ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare const first_part2Const: firstfirst_part2;\ndeclare function f(): string;\n","-742713438-declare class secondsecond_part1 { }","-13015294415-/// \ndeclare const second_part1Const: secondsecond_part1;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","2278097536-declare class thirdthird_part1 { }","-6970567573-///\nconst third_part1Const = new thirdthird_part1();\nvar c = new C();\r\nc.doSomething();\r\n"],"root":[7],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-20224508856-/// \n/// \n/// \ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare const first_part2Const: firstfirst_part2;\ndeclare function f(): string;\ndeclare const second_part1Const: secondsecond_part1;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare const third_part1Const: thirdthird_part1;\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":151,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":151,"kind":"text"}]},{"pos":151,"end":471,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":151,"end":471,"kind":"text"}]},{"pos":471,"end":552,"kind":"text"}],"mapHash":"44476692060-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACTf,IAAM,gBAAgB,GAAG,IAAI,gBAAgB,EAAE,CAAC;AAChD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACFjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACDD,IAAM,iBAAiB,GAAG,IAAI,kBAAkB,EAAE,CAAC;AAKnD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACZD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACHD,IAAM,gBAAgB,GAAG,IAAI,gBAAgB,EAAE,CAAC;AAChD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-26848080718-var s = \"Hello, world\";\nconsole.log(s);\nvar first_part2Const = new firstfirst_part2();\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar second_part1Const = new secondsecond_part1();\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar third_part1Const = new thirdthird_part1();\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":45,"kind":"reference","data":"../../tripleRef.d.ts"},{"pos":46,"end":100,"kind":"reference","data":"../../../first/tripleRef.d.ts"},{"pos":101,"end":156,"kind":"reference","data":"../../../second/tripleRef.d.ts"},{"pos":157,"end":356,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":157,"end":356,"kind":"text"}]},{"pos":356,"end":502,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":356,"end":502,"kind":"text"}]},{"pos":502,"end":570,"kind":"text"}],"mapHash":"-21355679145-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";;;AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACPD,QAAA,MAAM,gBAAgB,kBAAyB,CAAC;ACDhD,iBAAS,CAAC,WAET;ACDD,QAAA,MAAM,iBAAiB,oBAA2B,CAAC;AACnD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACZD,cAAM,CAAC;IACH,WAAW;CAGd;ACHD,QAAA,MAAM,gBAAgB,kBAAyB,CAAC;AAChD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-14850014846-/// \n/// \n/// \ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare const first_part2Const: firstfirst_part2;\ndeclare function f(): string;\ndeclare const second_part1Const: secondsecond_part1;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare const third_part1Const: thirdthird_part1;\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/tripleref.d.ts","../../../first/bin/first-output.d.ts","../../../second/tripleref.d.ts","../../../2/second-output.d.ts","../../tripleref.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-2651673797-declare class firstfirst_part2 { }","-28977998536-/// \ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare const first_part2Const: firstfirst_part2;\ndeclare function f(): string;\n","-742713438-declare class secondsecond_part1 { }","-13015294415-/// \ndeclare const second_part1Const: secondsecond_part1;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","2278097536-declare class thirdthird_part1 { }","-3899916527-///\nconst third_part1Const = new thirdthird_part1();\nvar c = new C();\nc.doSomething();\n"],"root":[7],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-20224508856-/// \n/// \n/// \ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare const first_part2Const: firstfirst_part2;\ndeclare function f(): string;\ndeclare const second_part1Const: secondsecond_part1;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare const third_part1Const: thirdthird_part1;\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -2339,7 +2341,7 @@ declare var c: C; "../../../second/tripleref.d.ts": "-742713438-declare class secondsecond_part1 { }", "../../../2/second-output.d.ts": "-13015294415-/// \ndeclare const second_part1Const: secondsecond_part1;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n", "../../tripleref.d.ts": "2278097536-declare class thirdthird_part1 { }", - "../../third_part1.ts": "-6970567573-///\nconst third_part1Const = new thirdthird_part1();\nvar c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "-3899916527-///\nconst third_part1Const = new thirdthird_part1();\nvar c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -2362,7 +2364,7 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 6303 + "size": 6299 } @@ -2370,61 +2372,61 @@ declare var c: C; Change:: incremental-declaration-changes Input:: //// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hola, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hola, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:00:54 AM] Projects in this build: +[12:01:06 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:55 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:01:07 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:00:56 AM] Building project '/src/first/tsconfig.json'... +[12:01:08 AM] Building project '/src/first/tsconfig.json'... -[12:01:05 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:01:17 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:06 AM] Project 'src/third/tsconfig.json' is out of date because output 'src/third/thirdjs/output/third-output.tsbuildinfo' is older than input 'src/first' +[12:01:18 AM] Project 'src/third/tsconfig.json' is out of date because output 'src/third/thirdjs/output/third-output.tsbuildinfo' is older than input 'src/first' -[12:01:07 AM] Building project '/src/third/tsconfig.json'... +[12:01:19 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success readFiles:: { - "/src/third/tsconfig.json": 1, - "/src/first/tsconfig.json": 1, - "/src/second/tsconfig.json": 1, - "/src/first/bin/first-output.tsbuildinfo": 1, - "/src/first/first_PART1.ts": 1, - "/src/first/first_part2.ts": 1, - "/src/first/tripleRef.d.ts": 1, - "/src/first/first_part3.ts": 1, - "/src/2/second-output.tsbuildinfo": 1, - "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, - "/src/first/bin/first-output.d.ts": 1, - "/src/2/second-output.d.ts": 1, - "/src/second/tripleRef.d.ts": 1, - "/src/third/third_part1.ts": 1, - "/src/third/tripleRef.d.ts": 1, - "/src/first/bin/first-output.js": 1, - "/src/2/second-output.js": 1, - "/src/first/bin/first-output.js.map": 1, - "/src/2/second-output.js.map": 1, - "/src/first/bin/first-output.d.ts.map": 1, - "/src/2/second-output.d.ts.map": 1 + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/tripleRef.d.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/2/second-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, + "/src/first/bin/first-output.d.ts": 1, + "/src/2/second-output.d.ts": 1, + "/src/second/tripleRef.d.ts": 1, + "/src/third/third_part1.ts": 1, + "/src/third/tripleRef.d.ts": 1, + "/src/first/bin/first-output.js": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1 } //// [/src/first/bin/first-output.d.ts] @@ -2472,7 +2474,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -2487,7 +2489,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(4, 2) Source(3, 2) + SourceIndex(0) --- @@ -2498,8 +2500,8 @@ sourceFile:../first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -2517,8 +2519,8 @@ sourceFile:../first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -2532,7 +2534,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -2547,7 +2549,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(8, 2) Source(9, 2) + SourceIndex(0) --- @@ -2589,8 +2591,8 @@ sourceFile:../first_part3.ts 1 > 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1 >Emitted(10, 1) Source(1, 1) + SourceIndex(2) 2 >Emitted(10, 18) Source(1, 10) + SourceIndex(2) @@ -2630,10 +2632,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -2657,12 +2659,12 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -2762,7 +2764,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -2776,7 +2778,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) @@ -2785,7 +2787,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":150,"kind":"text"}],"mapHash":"-19929709898-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACTf,IAAM,gBAAgB,GAAG,IAAI,gBAAgB,EAAE,CAAC;AAChD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACFjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"3513364655-var s = \"Hola, world\";\nconsole.log(s);\nvar first_part2Const = new firstfirst_part2();\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":42,"kind":"reference","data":"../tripleRef.d.ts"},{"pos":43,"end":241,"kind":"text"}],"mapHash":"5325987449-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACPD,QAAA,MAAM,gBAAgB,kBAAyB,CAAC;ACDhD,iBAAS,CAAC,WAET\"}","hash":"-5832256817-/// \ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare const first_part2Const: firstfirst_part2;\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../tripleref.d.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-2594963283-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","-2651673797-declare class firstfirst_part2 { }","1679819683-///\nconst first_part2Const = new firstfirst_part2();\nconsole.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[2,4,5],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-11326924856-/// \ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare const first_part2Const: firstfirst_part2;\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":150,"kind":"text"}],"mapHash":"-19929709898-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACTf,IAAM,gBAAgB,GAAG,IAAI,gBAAgB,EAAE,CAAC;AAChD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACFjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"3513364655-var s = \"Hola, world\";\nconsole.log(s);\nvar first_part2Const = new firstfirst_part2();\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":42,"kind":"reference","data":"../tripleRef.d.ts"},{"pos":43,"end":241,"kind":"text"}],"mapHash":"5325987449-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACPD,QAAA,MAAM,gBAAgB,kBAAyB,CAAC;ACDhD,iBAAS,CAAC,WAET\"}","hash":"-5832256817-/// \ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare const first_part2Const: firstfirst_part2;\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../tripleref.d.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-21189362626-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hola, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","-2651673797-declare class firstfirst_part2 { }","2784064630-///\nconst first_part2Const = new firstfirst_part2();\nconsole.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[2,4,5],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-11326924856-/// \ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare const first_part2Const: firstfirst_part2;\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -2868,10 +2870,10 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "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; };", - "../first_part1.ts": "-2594963283-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n", + "../first_part1.ts": "-21189362626-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hola, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", "../tripleref.d.ts": "-2651673797-declare class firstfirst_part2 { }", - "../first_part2.ts": "1679819683-///\nconst first_part2Const = new firstfirst_part2();\nconsole.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part2.ts": "2784064630-///\nconst first_part2Const = new firstfirst_part2();\nconsole.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -2901,7 +2903,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 3179 + "size": 3154 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -2963,7 +2965,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -2978,7 +2980,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(6, 2) Source(3, 2) + SourceIndex(0) --- @@ -2989,8 +2991,8 @@ sourceFile:../../../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -3008,8 +3010,8 @@ sourceFile:../../../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -3023,7 +3025,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -3038,7 +3040,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- @@ -3080,8 +3082,8 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1 >Emitted(12, 1) Source(1, 1) + SourceIndex(2) 2 >Emitted(12, 18) Source(1, 10) + SourceIndex(2) @@ -3131,8 +3133,8 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(15, 2) Source(5, 2) + SourceIndex(3) --- @@ -3141,8 +3143,8 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -3155,12 +3157,12 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(17, 2) Source(13, 2) + SourceIndex(3) --- @@ -3183,7 +3185,7 @@ sourceFile:../../../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(19, 5) Source(2, 5) + SourceIndex(4) @@ -3192,9 +3194,9 @@ sourceFile:../../../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(20, 2) Source(5, 2) + SourceIndex(4) --- @@ -3297,10 +3299,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -3324,12 +3326,12 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -3429,7 +3431,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -3443,7 +3445,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) @@ -3487,19 +3489,19 @@ sourceFile:../../../second/second_part1.ts 4 > ^ 5 > ^^^^^^^^^-> 1 > - >namespace N { - > // Comment text - >} - > + >namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1 >Emitted(9, 1) Source(7, 1) + SourceIndex(3) 2 >Emitted(9, 5) Source(7, 11) + SourceIndex(3) @@ -3523,7 +3525,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -3540,7 +3542,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -3562,7 +3564,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(13, 5) Source(10, 5) + SourceIndex(3) @@ -3574,8 +3576,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -3594,19 +3596,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(15, 1) Source(13, 1) + SourceIndex(3) 2 >Emitted(15, 2) Source(13, 2) + SourceIndex(3) @@ -3636,10 +3638,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(18, 5) Source(5, 1) + SourceIndex(4) @@ -3666,7 +3668,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -3688,7 +3690,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(21, 5) Source(4, 5) + SourceIndex(4) @@ -3697,7 +3699,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(22, 5) Source(5, 1) + SourceIndex(4) @@ -3712,10 +3714,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(23, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(23, 2) Source(5, 2) + SourceIndex(4) @@ -3788,7 +3790,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -3805,7 +3807,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":150,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":150,"kind":"text"}]},{"pos":150,"end":470,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":150,"end":470,"kind":"text"}]},{"pos":470,"end":551,"kind":"text"}],"mapHash":"-20483685162-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACTf,IAAM,gBAAgB,GAAG,IAAI,gBAAgB,EAAE,CAAC;AAChD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACFjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACDD,IAAM,iBAAiB,GAAG,IAAI,kBAAkB,EAAE,CAAC;AAKnD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACZD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACHD,IAAM,gBAAgB,GAAG,IAAI,gBAAgB,EAAE,CAAC;AAChD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"12954329634-var s = \"Hola, world\";\nconsole.log(s);\nvar first_part2Const = new firstfirst_part2();\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar second_part1Const = new secondsecond_part1();\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar third_part1Const = new thirdthird_part1();\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":45,"kind":"reference","data":"../../tripleRef.d.ts"},{"pos":46,"end":100,"kind":"reference","data":"../../../first/tripleRef.d.ts"},{"pos":101,"end":156,"kind":"reference","data":"../../../second/tripleRef.d.ts"},{"pos":157,"end":355,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":157,"end":355,"kind":"text"}]},{"pos":355,"end":501,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":355,"end":501,"kind":"text"}]},{"pos":501,"end":569,"kind":"text"}],"mapHash":"7646357201-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";;;AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACPD,QAAA,MAAM,gBAAgB,kBAAyB,CAAC;ACDhD,iBAAS,CAAC,WAET;ACDD,QAAA,MAAM,iBAAiB,oBAA2B,CAAC;AACnD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACZD,cAAM,CAAC;IACH,WAAW;CAGd;ACHD,QAAA,MAAM,gBAAgB,kBAAyB,CAAC;AAChD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-23292322318-/// \n/// \n/// \ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare const first_part2Const: firstfirst_part2;\ndeclare function f(): string;\ndeclare const second_part1Const: secondsecond_part1;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare const third_part1Const: thirdthird_part1;\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/tripleref.d.ts","../../../first/bin/first-output.d.ts","../../../second/tripleref.d.ts","../../../2/second-output.d.ts","../../tripleref.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-2651673797-declare class firstfirst_part2 { }","-11326924856-/// \ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare const first_part2Const: firstfirst_part2;\ndeclare function f(): string;\n","-742713438-declare class secondsecond_part1 { }","-13015294415-/// \ndeclare const second_part1Const: secondsecond_part1;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","2278097536-declare class thirdthird_part1 { }","-6970567573-///\nconst third_part1Const = new thirdthird_part1();\nvar c = new C();\r\nc.doSomething();\r\n"],"root":[7],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-34154607432-/// \n/// \n/// \ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare const first_part2Const: firstfirst_part2;\ndeclare function f(): string;\ndeclare const second_part1Const: secondsecond_part1;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare const third_part1Const: thirdthird_part1;\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":150,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":150,"kind":"text"}]},{"pos":150,"end":470,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":150,"end":470,"kind":"text"}]},{"pos":470,"end":551,"kind":"text"}],"mapHash":"-20483685162-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACTf,IAAM,gBAAgB,GAAG,IAAI,gBAAgB,EAAE,CAAC;AAChD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACFjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACDD,IAAM,iBAAiB,GAAG,IAAI,kBAAkB,EAAE,CAAC;AAKnD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACZD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACHD,IAAM,gBAAgB,GAAG,IAAI,gBAAgB,EAAE,CAAC;AAChD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"12954329634-var s = \"Hola, world\";\nconsole.log(s);\nvar first_part2Const = new firstfirst_part2();\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar second_part1Const = new secondsecond_part1();\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar third_part1Const = new thirdthird_part1();\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":45,"kind":"reference","data":"../../tripleRef.d.ts"},{"pos":46,"end":100,"kind":"reference","data":"../../../first/tripleRef.d.ts"},{"pos":101,"end":156,"kind":"reference","data":"../../../second/tripleRef.d.ts"},{"pos":157,"end":355,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":157,"end":355,"kind":"text"}]},{"pos":355,"end":501,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":355,"end":501,"kind":"text"}]},{"pos":501,"end":569,"kind":"text"}],"mapHash":"7646357201-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";;;AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACPD,QAAA,MAAM,gBAAgB,kBAAyB,CAAC;ACDhD,iBAAS,CAAC,WAET;ACDD,QAAA,MAAM,iBAAiB,oBAA2B,CAAC;AACnD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACZD,cAAM,CAAC;IACH,WAAW;CAGd;ACHD,QAAA,MAAM,gBAAgB,kBAAyB,CAAC;AAChD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-23292322318-/// \n/// \n/// \ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare const first_part2Const: firstfirst_part2;\ndeclare function f(): string;\ndeclare const second_part1Const: secondsecond_part1;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare const third_part1Const: thirdthird_part1;\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/tripleref.d.ts","../../../first/bin/first-output.d.ts","../../../second/tripleref.d.ts","../../../2/second-output.d.ts","../../tripleref.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-2651673797-declare class firstfirst_part2 { }","-11326924856-/// \ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare const first_part2Const: firstfirst_part2;\ndeclare function f(): string;\n","-742713438-declare class secondsecond_part1 { }","-13015294415-/// \ndeclare const second_part1Const: secondsecond_part1;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","2278097536-declare class thirdthird_part1 { }","-3899916527-///\nconst third_part1Const = new thirdthird_part1();\nvar c = new C();\nc.doSomething();\n"],"root":[7],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-34154607432-/// \n/// \n/// \ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare const first_part2Const: firstfirst_part2;\ndeclare function f(): string;\ndeclare const second_part1Const: secondsecond_part1;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare const third_part1Const: thirdthird_part1;\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -4012,7 +4014,7 @@ declare var c: C; "../../../second/tripleref.d.ts": "-742713438-declare class secondsecond_part1 { }", "../../../2/second-output.d.ts": "-13015294415-/// \ndeclare const second_part1Const: secondsecond_part1;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n", "../../tripleref.d.ts": "2278097536-declare class thirdthird_part1 { }", - "../../third_part1.ts": "-6970567573-///\nconst third_part1Const = new thirdthird_part1();\nvar c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "-3899916527-///\nconst third_part1Const = new thirdthird_part1();\nvar c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -4035,7 +4037,7 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 6297 + "size": 6293 } @@ -4043,62 +4045,62 @@ declare var c: C; Change:: incremental-declaration-doesnt-change Input:: //// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hola, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hola, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:01:21 AM] Projects in this build: +[12:01:33 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:01:22 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:01:34 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:01:23 AM] Building project '/src/first/tsconfig.json'... +[12:01:35 AM] Building project '/src/first/tsconfig.json'... -[12:01:31 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:01:43 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:32 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:01:44 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:01:33 AM] Updating output of project '/src/third/tsconfig.json'... +[12:01:45 AM] Updating output of project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success readFiles:: { - "/src/third/tsconfig.json": 1, - "/src/first/tsconfig.json": 1, - "/src/second/tsconfig.json": 1, - "/src/first/bin/first-output.tsbuildinfo": 1, - "/src/first/first_PART1.ts": 1, - "/src/first/first_part2.ts": 1, - "/src/first/tripleRef.d.ts": 1, - "/src/first/first_part3.ts": 1, - "/src/2/second-output.tsbuildinfo": 1, - "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, - "/src/third/thirdjs/output/third-output.js": 1, - "/src/third/thirdjs/output/third-output.js.map": 1, - "/src/third/thirdjs/output/third-output.d.ts": 1, - "/src/third/thirdjs/output/third-output.d.ts.map": 1, - "/src/first/bin/first-output.js": 1, - "/src/2/second-output.js": 1, - "/src/first/bin/first-output.js.map": 1, - "/src/2/second-output.js.map": 1, - "/src/first/bin/first-output.d.ts": 1, - "/src/2/second-output.d.ts": 1, - "/src/first/bin/first-output.d.ts.map": 1, - "/src/2/second-output.d.ts.map": 1 + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/tripleRef.d.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/2/second-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.js": 1, + "/src/third/thirdjs/output/third-output.js.map": 1, + "/src/third/thirdjs/output/third-output.d.ts": 1, + "/src/third/thirdjs/output/third-output.d.ts.map": 1, + "/src/first/bin/first-output.js": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/first/bin/first-output.d.ts": 1, + "/src/2/second-output.d.ts": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1 } //// [/src/first/bin/first-output.d.ts.map] file written with same contents @@ -4135,10 +4137,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -4161,12 +4163,12 @@ sourceFile:../first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -4194,7 +4196,7 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >console 3 > . @@ -4294,7 +4296,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -4308,7 +4310,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(8, 1) Source(3, 1) + SourceIndex(2) @@ -4317,7 +4319,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":166,"kind":"text"}],"mapHash":"-10985091094-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,IAAM,gBAAgB,GAAG,IAAI,gBAAgB,EAAE,CAAC;AAChD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACFjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"433907675-var s = \"Hola, world\";\nconsole.log(s);\nconsole.log(s);\nvar first_part2Const = new firstfirst_part2();\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":42,"kind":"reference","data":"../tripleRef.d.ts"},{"pos":43,"end":241,"kind":"text"}],"mapHash":"5325987449-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACPD,QAAA,MAAM,gBAAgB,kBAAyB,CAAC;ACDhD,iBAAS,CAAC,WAET\"}","hash":"-5832256817-/// \ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare const first_part2Const: firstfirst_part2;\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../tripleref.d.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","3570577263-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","-2651673797-declare class firstfirst_part2 { }","1679819683-///\nconst first_part2Const = new firstfirst_part2();\nconsole.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[2,4,5],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-11326924856-/// \ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare const first_part2Const: firstfirst_part2;\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":166,"kind":"text"}],"mapHash":"-10985091094-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,IAAM,gBAAgB,GAAG,IAAI,gBAAgB,EAAE,CAAC;AAChD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACFjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"433907675-var s = \"Hola, world\";\nconsole.log(s);\nconsole.log(s);\nvar first_part2Const = new firstfirst_part2();\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":42,"kind":"reference","data":"../tripleRef.d.ts"},{"pos":43,"end":241,"kind":"text"}],"mapHash":"5325987449-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\";AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACPD,QAAA,MAAM,gBAAgB,kBAAyB,CAAC;ACDhD,iBAAS,CAAC,WAET\"}","hash":"-5832256817-/// \ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare const first_part2Const: firstfirst_part2;\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../tripleref.d.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-21292400928-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hola, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);","-2651673797-declare class firstfirst_part2 { }","2784064630-///\nconst first_part2Const = new firstfirst_part2();\nconsole.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[2,4,5],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-11326924856-/// \ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare const first_part2Const: firstfirst_part2;\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -4401,10 +4403,10 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "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; };", - "../first_part1.ts": "3570577263-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hola, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);", + "../first_part1.ts": "-21292400928-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hola, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);", "../tripleref.d.ts": "-2651673797-declare class firstfirst_part2 { }", - "../first_part2.ts": "1679819683-///\nconst first_part2Const = new firstfirst_part2();\nconsole.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part2.ts": "2784064630-///\nconst first_part2Const = new firstfirst_part2();\nconsole.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -4434,7 +4436,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 3249 + "size": 3225 } //// [/src/third/thirdjs/output/third-output.js] @@ -4488,10 +4490,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -4514,12 +4516,12 @@ sourceFile:../../../first/first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -4547,7 +4549,7 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >console 3 > . @@ -4647,7 +4649,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -4661,7 +4663,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(8, 1) Source(3, 1) + SourceIndex(2) @@ -4705,19 +4707,19 @@ sourceFile:../../../second/second_part1.ts 4 > ^ 5 > ^^^^^^^^^-> 1 > - >namespace N { - > // Comment text - >} - > + >namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1 >Emitted(10, 1) Source(7, 1) + SourceIndex(3) 2 >Emitted(10, 5) Source(7, 11) + SourceIndex(3) @@ -4741,7 +4743,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -4758,7 +4760,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -4780,7 +4782,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(14, 5) Source(10, 5) + SourceIndex(3) @@ -4792,8 +4794,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -4812,19 +4814,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(16, 1) Source(13, 1) + SourceIndex(3) 2 >Emitted(16, 2) Source(13, 2) + SourceIndex(3) @@ -4854,10 +4856,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(19, 5) Source(5, 1) + SourceIndex(4) @@ -4884,7 +4886,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -4906,7 +4908,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(22, 5) Source(4, 5) + SourceIndex(4) @@ -4915,7 +4917,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(23, 5) Source(5, 1) + SourceIndex(4) @@ -4930,10 +4932,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(24, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(24, 2) Source(5, 2) + SourceIndex(4) @@ -5006,7 +5008,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -5023,7 +5025,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":166,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":166,"kind":"text"}]},{"pos":166,"end":486,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":166,"end":486,"kind":"text"}]},{"pos":486,"end":567,"kind":"text"}],"mapHash":"-35476945910-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,IAAM,gBAAgB,GAAG,IAAI,gBAAgB,EAAE,CAAC;AAChD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACFjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACDD,IAAM,iBAAiB,GAAG,IAAI,kBAAkB,EAAE,CAAC;AAKnD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACZD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACHD,IAAM,gBAAgB,GAAG,IAAI,gBAAgB,EAAE,CAAC;AAChD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-13036579122-var s = \"Hola, world\";\nconsole.log(s);\nconsole.log(s);\nvar first_part2Const = new firstfirst_part2();\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar second_part1Const = new secondsecond_part1();\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar third_part1Const = new thirdthird_part1();\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":45,"kind":"reference","data":"../../tripleRef.d.ts"},{"pos":46,"end":100,"kind":"reference","data":"../../../first/tripleRef.d.ts"},{"pos":101,"end":156,"kind":"reference","data":"../../../second/tripleRef.d.ts"},{"pos":157,"end":355,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":157,"end":355,"kind":"text"}]},{"pos":355,"end":501,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":355,"end":501,"kind":"text"}]},{"pos":501,"end":569,"kind":"text"}],"mapHash":"7646357201-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";;;AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACPD,QAAA,MAAM,gBAAgB,kBAAyB,CAAC;ACDhD,iBAAS,CAAC,WAET;ACDD,QAAA,MAAM,iBAAiB,oBAA2B,CAAC;AACnD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACZD,cAAM,CAAC;IACH,WAAW;CAGd;ACHD,QAAA,MAAM,gBAAgB,kBAAyB,CAAC;AAChD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-23292322318-/// \n/// \n/// \ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare const first_part2Const: firstfirst_part2;\ndeclare function f(): string;\ndeclare const second_part1Const: secondsecond_part1;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare const third_part1Const: thirdthird_part1;\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/tripleref.d.ts","../../../first/bin/first-output.d.ts","../../../second/tripleref.d.ts","../../../2/second-output.d.ts","../../tripleref.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-2651673797-declare class firstfirst_part2 { }","-11326924856-/// \ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare const first_part2Const: firstfirst_part2;\ndeclare function f(): string;\n","-742713438-declare class secondsecond_part1 { }","-13015294415-/// \ndeclare const second_part1Const: secondsecond_part1;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","2278097536-declare class thirdthird_part1 { }","-6970567573-///\nconst third_part1Const = new thirdthird_part1();\nvar c = new C();\r\nc.doSomething();\r\n"],"root":[7],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-34154607432-/// \n/// \n/// \ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare const first_part2Const: firstfirst_part2;\ndeclare function f(): string;\ndeclare const second_part1Const: secondsecond_part1;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare const third_part1Const: thirdthird_part1;\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":166,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":166,"kind":"text"}]},{"pos":166,"end":486,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":166,"end":486,"kind":"text"}]},{"pos":486,"end":567,"kind":"text"}],"mapHash":"-35476945910-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,IAAM,gBAAgB,GAAG,IAAI,gBAAgB,EAAE,CAAC;AAChD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACFjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACDD,IAAM,iBAAiB,GAAG,IAAI,kBAAkB,EAAE,CAAC;AAKnD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACZD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACHD,IAAM,gBAAgB,GAAG,IAAI,gBAAgB,EAAE,CAAC;AAChD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-13036579122-var s = \"Hola, world\";\nconsole.log(s);\nconsole.log(s);\nvar first_part2Const = new firstfirst_part2();\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar second_part1Const = new secondsecond_part1();\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar third_part1Const = new thirdthird_part1();\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":45,"kind":"reference","data":"../../tripleRef.d.ts"},{"pos":46,"end":100,"kind":"reference","data":"../../../first/tripleRef.d.ts"},{"pos":101,"end":156,"kind":"reference","data":"../../../second/tripleRef.d.ts"},{"pos":157,"end":355,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":157,"end":355,"kind":"text"}]},{"pos":355,"end":501,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":355,"end":501,"kind":"text"}]},{"pos":501,"end":569,"kind":"text"}],"mapHash":"7646357201-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";;;AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACPD,QAAA,MAAM,gBAAgB,kBAAyB,CAAC;ACDhD,iBAAS,CAAC,WAET;ACDD,QAAA,MAAM,iBAAiB,oBAA2B,CAAC;AACnD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACZD,cAAM,CAAC;IACH,WAAW;CAGd;ACHD,QAAA,MAAM,gBAAgB,kBAAyB,CAAC;AAChD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-23292322318-/// \n/// \n/// \ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare const first_part2Const: firstfirst_part2;\ndeclare function f(): string;\ndeclare const second_part1Const: secondsecond_part1;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare const third_part1Const: thirdthird_part1;\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/tripleref.d.ts","../../../first/bin/first-output.d.ts","../../../second/tripleref.d.ts","../../../2/second-output.d.ts","../../tripleref.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-2651673797-declare class firstfirst_part2 { }","-11326924856-/// \ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare const first_part2Const: firstfirst_part2;\ndeclare function f(): string;\n","-742713438-declare class secondsecond_part1 { }","-13015294415-/// \ndeclare const second_part1Const: secondsecond_part1;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","2278097536-declare class thirdthird_part1 { }","-3899916527-///\nconst third_part1Const = new thirdthird_part1();\nvar c = new C();\nc.doSomething();\n"],"root":[7],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-34154607432-/// \n/// \n/// \ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hola, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare const first_part2Const: firstfirst_part2;\ndeclare function f(): string;\ndeclare const second_part1Const: secondsecond_part1;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare const third_part1Const: thirdthird_part1;\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -5231,7 +5233,7 @@ declare var c: C; "../../../second/tripleref.d.ts": "-742713438-declare class secondsecond_part1 { }", "../../../2/second-output.d.ts": "-13015294415-/// \ndeclare const second_part1Const: secondsecond_part1;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n", "../../tripleref.d.ts": "2278097536-declare class thirdthird_part1 { }", - "../../third_part1.ts": "-6970567573-///\nconst third_part1Const = new thirdthird_part1();\nvar c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "-3899916527-///\nconst third_part1Const = new thirdthird_part1();\nvar c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -5254,6 +5256,6 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 6355 + "size": 6351 } diff --git a/tests/baselines/reference/tsbuild/outfile-concat/triple-slash-refs-in-one-project.js b/tests/baselines/reference/tsbuild/outfile-concat/triple-slash-refs-in-one-project.js index d4e5614de837e..6f1ea6caf8ad0 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/triple-slash-refs-in-one-project.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/triple-slash-refs-in-one-project.js @@ -16,145 +16,147 @@ interface ReadonlyArray {} declare const console: { log(msg: any): void; }; //// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); //// [/src/first/first_part2.ts] -console.log(f()); +console.log(f()); //// [/src/first/first_part3.ts] -function f() { - return "JS does hoists"; -} +function f() { + return "JS does hoists"; +} + //// [/src/first/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "outFile": "./bin/first-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "first_PART1.ts", - "first_part2.ts", - "first_part3.ts" - ], - "references": [ - ] +{ + "compilerOptions": { + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "outFile": "./bin/first-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "first_PART1.ts", + "first_part2.ts", + "first_part3.ts" + ], + "references": [] } - //// [/src/second/second_part1.ts] /// const second_part1Const = new secondsecond_part1(); -namespace N { - // Comment text -} - -namespace N { - function f() { - console.log('testing'); - } - - f(); -} +namespace N { + // Comment text +} + +namespace N { + function f() { + console.log('testing'); + } + + f(); +} //// [/src/second/second_part2.ts] -class C { - doSomething() { - console.log("something got done"); - } -} +class C { + doSomething() { + console.log("something got done"); + } +} //// [/src/second/tripleRef.d.ts] declare class secondsecond_part1 { } //// [/src/second/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "../2/second-output.js", - "skipDefaultLibCheck": true - }, - "references": [ - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "../2/second-output.js", + "skipDefaultLibCheck": true + }, + "references": [] } - //// [/src/third/third_part1.ts] -var c = new C(); -c.doSomething(); +var c = new C(); +c.doSomething(); //// [/src/third/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "./thirdjs/output/third-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "third_part1.ts" - ], - "references": [ - { "path": "../first", "prepend": true }, - { "path": "../second", "prepend": true }, - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "./thirdjs/output/third-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "third_part1.ts" + ], + "references": [ + { + "path": "../first", + "prepend": true + }, + { + "path": "../second", + "prepend": true + } + ] } - Output:: /lib/tsc --b /src/third --verbose -[12:00:08 AM] Projects in this build: +[12:00:20 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:09 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist +[12:00:21 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist -[12:00:10 AM] Building project '/src/first/tsconfig.json'... +[12:00:22 AM] Building project '/src/first/tsconfig.json'... -[12:00:20 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist +[12:00:32 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist -[12:00:21 AM] Building project '/src/second/tsconfig.json'... +[12:00:33 AM] Building project '/src/second/tsconfig.json'... -[12:00:31 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist +[12:00:43 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist -[12:00:32 AM] Building project '/src/third/tsconfig.json'... +[12:00:44 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -225,8 +227,8 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(4, 2) Source(5, 2) + SourceIndex(0) --- @@ -235,8 +237,8 @@ sourceFile:../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -249,12 +251,12 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(6, 2) Source(13, 2) + SourceIndex(0) --- @@ -277,7 +279,7 @@ sourceFile:../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(8, 5) Source(2, 5) + SourceIndex(1) @@ -286,9 +288,9 @@ sourceFile:../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(9, 2) Source(5, 2) + SourceIndex(1) --- @@ -361,19 +363,19 @@ sourceFile:../second/second_part1.ts 4 > ^ 5 > ^^^^^^^^^-> 1 > - >namespace N { - > // Comment text - >} - > + >namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1 >Emitted(2, 1) Source(7, 1) + SourceIndex(0) 2 >Emitted(2, 5) Source(7, 11) + SourceIndex(0) @@ -397,7 +399,7 @@ sourceFile:../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -414,7 +416,7 @@ sourceFile:../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -436,7 +438,7 @@ sourceFile:../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(6, 5) Source(10, 5) + SourceIndex(0) @@ -448,8 +450,8 @@ sourceFile:../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -468,19 +470,19 @@ sourceFile:../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(8, 1) Source(13, 1) + SourceIndex(0) 2 >Emitted(8, 2) Source(13, 2) + SourceIndex(0) @@ -510,10 +512,10 @@ sourceFile:../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(11, 5) Source(5, 1) + SourceIndex(1) @@ -540,7 +542,7 @@ sourceFile:../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -562,7 +564,7 @@ sourceFile:../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(14, 5) Source(4, 5) + SourceIndex(1) @@ -571,7 +573,7 @@ sourceFile:../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) @@ -586,10 +588,10 @@ sourceFile:../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(16, 1) Source(5, 1) + SourceIndex(1) 2 >Emitted(16, 2) Source(5, 2) + SourceIndex(1) @@ -599,7 +601,7 @@ sourceFile:../second/second_part2.ts >>>//# sourceMappingURL=second-output.js.map //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":320,"kind":"text"}],"mapHash":"6635165462-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AACA,IAAM,iBAAiB,GAAG,IAAI,kBAAkB,EAAE,CAAC;AAKnD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACZD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-34413738364-var second_part1Const = new secondsecond_part1();\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":49,"kind":"reference","data":"../second/tripleRef.d.ts"},{"pos":50,"end":196,"kind":"text"}],"mapHash":"-3800548159-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\";AACA,QAAA,MAAM,iBAAiB,oBAA2B,CAAC;AACnD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACZD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-251663252-/// \ndeclare const second_part1Const: secondsecond_part1;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/tripleref.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["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; };","-742713438-declare class secondsecond_part1 { }","-823890693-///\nconst second_part1Const = new secondsecond_part1();\nnamespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-13015294415-/// \ndeclare const second_part1Const: secondsecond_part1;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":320,"kind":"text"}],"mapHash":"6635165462-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AACA,IAAM,iBAAiB,GAAG,IAAI,kBAAkB,EAAE,CAAC;AAKnD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACZD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-34413738364-var second_part1Const = new secondsecond_part1();\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":49,"kind":"reference","data":"../second/tripleRef.d.ts"},{"pos":50,"end":196,"kind":"text"}],"mapHash":"-3800548159-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\";AACA,QAAA,MAAM,iBAAiB,oBAA2B,CAAC;AACnD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACZD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-251663252-/// \ndeclare const second_part1Const: secondsecond_part1;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/tripleref.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["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; };","-742713438-declare class secondsecond_part1 { }","-13901060436-///\nconst second_part1Const = new secondsecond_part1();\nnamespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n","3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n"],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-13015294415-/// \ndeclare const second_part1Const: secondsecond_part1;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -689,8 +691,8 @@ declare class C { "fileInfos": { "../../lib/lib.d.ts": "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; };", "../second/tripleref.d.ts": "-742713438-declare class secondsecond_part1 { }", - "../second/second_part1.ts": "-823890693-///\nconst second_part1Const = new secondsecond_part1();\nnamespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n", - "../second/second_part2.ts": "9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n" + "../second/second_part1.ts": "-13901060436-///\nconst second_part1Const = new secondsecond_part1();\nnamespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", + "../second/second_part2.ts": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n" }, "root": [ [ @@ -720,7 +722,7 @@ declare class C { "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 3330 + "size": 3300 } //// [/src/first/bin/first-output.d.ts] @@ -765,7 +767,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -780,7 +782,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -791,8 +793,8 @@ sourceFile:../first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -810,8 +812,8 @@ sourceFile:../first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -825,7 +827,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -840,7 +842,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -857,8 +859,8 @@ sourceFile:../first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) @@ -897,10 +899,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -924,12 +926,12 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -1001,7 +1003,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -1015,7 +1017,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) @@ -1024,7 +1026,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"4999315210-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"4999315210-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -1095,9 +1097,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "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; };", - "../first_part1.ts": "-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -1126,7 +1128,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2635 + "size": 2609 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -1182,7 +1184,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -1197,7 +1199,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(4, 2) Source(3, 2) + SourceIndex(0) --- @@ -1208,8 +1210,8 @@ sourceFile:../../../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -1227,8 +1229,8 @@ sourceFile:../../../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -1242,7 +1244,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -1257,7 +1259,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(8, 2) Source(9, 2) + SourceIndex(0) --- @@ -1274,8 +1276,8 @@ sourceFile:../../../first/first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(9, 1) Source(1, 1) + SourceIndex(1) 2 >Emitted(9, 18) Source(1, 10) + SourceIndex(1) @@ -1325,8 +1327,8 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(12, 2) Source(5, 2) + SourceIndex(2) --- @@ -1335,8 +1337,8 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -1349,12 +1351,12 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(14, 2) Source(13, 2) + SourceIndex(2) --- @@ -1377,7 +1379,7 @@ sourceFile:../../../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(16, 5) Source(2, 5) + SourceIndex(3) @@ -1386,9 +1388,9 @@ sourceFile:../../../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(17, 2) Source(5, 2) + SourceIndex(3) --- @@ -1467,10 +1469,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -1494,12 +1496,12 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -1571,7 +1573,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -1585,7 +1587,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) @@ -1629,19 +1631,19 @@ sourceFile:../../../second/second_part1.ts 4 > ^ 5 > ^^^^^^^^^-> 1 > - >namespace N { - > // Comment text - >} - > + >namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1 >Emitted(8, 1) Source(7, 1) + SourceIndex(3) 2 >Emitted(8, 5) Source(7, 11) + SourceIndex(3) @@ -1665,7 +1667,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -1682,7 +1684,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -1704,7 +1706,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(12, 5) Source(10, 5) + SourceIndex(3) @@ -1716,8 +1718,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -1736,19 +1738,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(14, 1) Source(13, 1) + SourceIndex(3) 2 >Emitted(14, 2) Source(13, 2) + SourceIndex(3) @@ -1778,10 +1780,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(17, 5) Source(5, 1) + SourceIndex(4) @@ -1808,7 +1810,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -1830,7 +1832,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(20, 5) Source(4, 5) + SourceIndex(4) @@ -1839,7 +1841,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(21, 5) Source(5, 1) + SourceIndex(4) @@ -1854,10 +1856,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(22, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(22, 2) Source(5, 2) + SourceIndex(4) @@ -1902,7 +1904,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -1919,7 +1921,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":104,"kind":"text"}]},{"pos":104,"end":424,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":104,"end":424,"kind":"text"}]},{"pos":424,"end":458,"kind":"text"}],"mapHash":"-13380196693-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACDD,IAAM,iBAAiB,GAAG,IAAI,kBAAkB,EAAE,CAAC;AAKnD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACZD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-25341534095-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar second_part1Const = new secondsecond_part1();\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":55,"kind":"reference","data":"../../../second/tripleRef.d.ts"},{"pos":56,"end":205,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":56,"end":205,"kind":"text"}]},{"pos":205,"end":351,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":205,"end":351,"kind":"text"}]},{"pos":351,"end":369,"kind":"text"}],"mapHash":"-6747558023-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACDD,QAAA,MAAM,iBAAiB,oBAA2B,CAAC;AACnD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACZD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-22889630575-/// \ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare const second_part1Const: secondsecond_part1;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../second/tripleref.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-742713438-declare class secondsecond_part1 { }","-13015294415-/// \ndeclare const second_part1Const: secondsecond_part1;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[5],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-28265593705-/// \ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare const second_part1Const: secondsecond_part1;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":104,"kind":"text"}]},{"pos":104,"end":424,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":104,"end":424,"kind":"text"}]},{"pos":424,"end":458,"kind":"text"}],"mapHash":"-13380196693-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACDD,IAAM,iBAAiB,GAAG,IAAI,kBAAkB,EAAE,CAAC;AAKnD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACZD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"-25341534095-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar second_part1Const = new secondsecond_part1();\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":55,"kind":"reference","data":"../../../second/tripleRef.d.ts"},{"pos":56,"end":205,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":56,"end":205,"kind":"text"}]},{"pos":205,"end":351,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":205,"end":351,"kind":"text"}]},{"pos":351,"end":369,"kind":"text"}],"mapHash":"-6747558023-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACDD,QAAA,MAAM,iBAAiB,oBAA2B,CAAC;AACnD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACZD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-22889630575-/// \ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare const second_part1Const: secondsecond_part1;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../second/tripleref.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-742713438-declare class secondsecond_part1 { }","-13015294415-/// \ndeclare const second_part1Const: secondsecond_part1;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[5],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-28265593705-/// \ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare const second_part1Const: secondsecond_part1;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -2100,7 +2102,7 @@ declare var c: C; "../../../first/bin/first-output.d.ts": "-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", "../../../second/tripleref.d.ts": "-742713438-declare class secondsecond_part1 { }", "../../../2/second-output.d.ts": "-13015294415-/// \ndeclare const second_part1Const: secondsecond_part1;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -2123,7 +2125,7 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 5099 + "size": 5094 } @@ -2131,37 +2133,37 @@ declare var c: C; Change:: incremental-declaration-doesnt-change Input:: //// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:00:50 AM] Projects in this build: +[12:01:02 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:51 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:01:03 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:00:52 AM] Building project '/src/first/tsconfig.json'... +[12:01:04 AM] Building project '/src/first/tsconfig.json'... -[12:01:00 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:01:12 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:01 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:01:13 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:01:02 AM] Updating output of project '/src/third/tsconfig.json'... +[12:01:14 AM] Updating output of project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -2199,10 +2201,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -2225,12 +2227,12 @@ sourceFile:../first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -2258,7 +2260,7 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > +1 > > 2 >console 3 > . @@ -2330,7 +2332,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -2344,7 +2346,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) @@ -2353,7 +2355,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":120,"kind":"text"}],"mapHash":"-2702861355-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-20052626506-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-16950965473-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":120,"kind":"text"}],"mapHash":"-2702861355-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-20052626506-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-20304251376-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -2425,9 +2427,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "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; };", - "../first_part1.ts": "-16950965473-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-20304251376-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -2456,7 +2458,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2708 + "size": 2682 } //// [/src/third/thirdjs/output/third-output.js] @@ -2508,10 +2510,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -2534,12 +2536,12 @@ sourceFile:../../../first/first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -2567,7 +2569,7 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > +1 > > 2 >console 3 > . @@ -2639,7 +2641,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -2653,7 +2655,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) @@ -2697,19 +2699,19 @@ sourceFile:../../../second/second_part1.ts 4 > ^ 5 > ^^^^^^^^^-> 1 > - >namespace N { - > // Comment text - >} - > + >namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1 >Emitted(9, 1) Source(7, 1) + SourceIndex(3) 2 >Emitted(9, 5) Source(7, 11) + SourceIndex(3) @@ -2733,7 +2735,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -2750,7 +2752,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -2772,7 +2774,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(13, 5) Source(10, 5) + SourceIndex(3) @@ -2784,8 +2786,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -2804,19 +2806,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(15, 1) Source(13, 1) + SourceIndex(3) 2 >Emitted(15, 2) Source(13, 2) + SourceIndex(3) @@ -2846,10 +2848,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(18, 5) Source(5, 1) + SourceIndex(4) @@ -2876,7 +2878,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -2898,7 +2900,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(21, 5) Source(4, 5) + SourceIndex(4) @@ -2907,7 +2909,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(22, 5) Source(5, 1) + SourceIndex(4) @@ -2922,10 +2924,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(23, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(23, 2) Source(5, 2) + SourceIndex(4) @@ -2970,7 +2972,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -2987,7 +2989,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":120,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":120,"kind":"text"}]},{"pos":120,"end":440,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":120,"end":440,"kind":"text"}]},{"pos":440,"end":474,"kind":"text"}],"mapHash":"29274327775-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACDD,IAAM,iBAAiB,GAAG,IAAI,kBAAkB,EAAE,CAAC;AAKnD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACZD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"8728936477-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar second_part1Const = new secondsecond_part1();\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":55,"kind":"reference","data":"../../../second/tripleRef.d.ts"},{"pos":56,"end":205,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":56,"end":205,"kind":"text"}]},{"pos":205,"end":351,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":205,"end":351,"kind":"text"}]},{"pos":351,"end":369,"kind":"text"}],"mapHash":"-6747558023-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACDD,QAAA,MAAM,iBAAiB,oBAA2B,CAAC;AACnD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACZD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-22889630575-/// \ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare const second_part1Const: secondsecond_part1;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../second/tripleref.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-742713438-declare class secondsecond_part1 { }","-13015294415-/// \ndeclare const second_part1Const: secondsecond_part1;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[5],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-28265593705-/// \ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare const second_part1Const: secondsecond_part1;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":120,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":120,"kind":"text"}]},{"pos":120,"end":440,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":120,"end":440,"kind":"text"}]},{"pos":440,"end":474,"kind":"text"}],"mapHash":"29274327775-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACDD,IAAM,iBAAiB,GAAG,IAAI,kBAAkB,EAAE,CAAC;AAKnD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACZD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"8728936477-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar second_part1Const = new secondsecond_part1();\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":55,"kind":"reference","data":"../../../second/tripleRef.d.ts"},{"pos":56,"end":205,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":56,"end":205,"kind":"text"}]},{"pos":205,"end":351,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":205,"end":351,"kind":"text"}]},{"pos":351,"end":369,"kind":"text"}],"mapHash":"-6747558023-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\";AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACDD,QAAA,MAAM,iBAAiB,oBAA2B,CAAC;AACnD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACZD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"-22889630575-/// \ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare const second_part1Const: secondsecond_part1;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../second/tripleref.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-742713438-declare class secondsecond_part1 { }","-13015294415-/// \ndeclare const second_part1Const: secondsecond_part1;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[5],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-28265593705-/// \ninterface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare const second_part1Const: secondsecond_part1;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -3169,7 +3171,7 @@ declare var c: C; "../../../first/bin/first-output.d.ts": "-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", "../../../second/tripleref.d.ts": "-742713438-declare class secondsecond_part1 { }", "../../../2/second-output.d.ts": "-13015294415-/// \ndeclare const second_part1Const: secondsecond_part1;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -3192,6 +3194,6 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 5153 + "size": 5148 } diff --git a/tests/baselines/reference/tsbuild/outfile-concat/when-final-project-is-not-composite-but-incremental.js b/tests/baselines/reference/tsbuild/outfile-concat/when-final-project-is-not-composite-but-incremental.js index 4b0e46c9889fe..7155c7d4c5992 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/when-final-project-is-not-composite-but-incremental.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/when-final-project-is-not-composite-but-incremental.js @@ -16,140 +16,142 @@ interface ReadonlyArray {} declare const console: { log(msg: any): void; }; //// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); //// [/src/first/first_part2.ts] -console.log(f()); +console.log(f()); //// [/src/first/first_part3.ts] -function f() { - return "JS does hoists"; -} +function f() { + return "JS does hoists"; +} + //// [/src/first/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "outFile": "./bin/first-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "first_PART1.ts", - "first_part2.ts", - "first_part3.ts" - ], - "references": [ - ] +{ + "compilerOptions": { + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "outFile": "./bin/first-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "first_PART1.ts", + "first_part2.ts", + "first_part3.ts" + ], + "references": [] } - //// [/src/second/second_part1.ts] -namespace N { - // Comment text -} - -namespace N { - function f() { - console.log('testing'); - } - - f(); -} +namespace N { + // Comment text +} + +namespace N { + function f() { + console.log('testing'); + } + + f(); +} //// [/src/second/second_part2.ts] -class C { - doSomething() { - console.log("something got done"); - } -} +class C { + doSomething() { + console.log("something got done"); + } +} //// [/src/second/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "../2/second-output.js", - "skipDefaultLibCheck": true - }, - "references": [ - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "../2/second-output.js", + "skipDefaultLibCheck": true + }, + "references": [] } - //// [/src/third/third_part1.ts] -var c = new C(); -c.doSomething(); +var c = new C(); +c.doSomething(); //// [/src/third/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "incremental": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "./thirdjs/output/third-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "third_part1.ts" - ], - "references": [ - { "path": "../first", "prepend": true }, - { "path": "../second", "prepend": true }, - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "incremental": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "./thirdjs/output/third-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "third_part1.ts" + ], + "references": [ + { + "path": "../first", + "prepend": true + }, + { + "path": "../second", + "prepend": true + } + ] } - Output:: /lib/tsc --b /src/third --verbose -[12:00:07 AM] Projects in this build: +[12:00:19 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:08 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist +[12:00:20 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist -[12:00:09 AM] Building project '/src/first/tsconfig.json'... +[12:00:21 AM] Building project '/src/first/tsconfig.json'... -[12:00:19 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist +[12:00:31 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist -[12:00:20 AM] Building project '/src/second/tsconfig.json'... +[12:00:32 AM] Building project '/src/second/tsconfig.json'... -[12:00:30 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist +[12:00:42 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist -[12:00:31 AM] Building project '/src/third/tsconfig.json'... +[12:00:43 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -195,8 +197,8 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(2, 2) Source(3, 2) + SourceIndex(0) --- @@ -205,8 +207,8 @@ sourceFile:../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -219,12 +221,12 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(4, 2) Source(11, 2) + SourceIndex(0) --- @@ -247,7 +249,7 @@ sourceFile:../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(6, 5) Source(2, 5) + SourceIndex(1) @@ -256,9 +258,9 @@ sourceFile:../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(7, 2) Source(5, 2) + SourceIndex(1) --- @@ -302,19 +304,19 @@ sourceFile:../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1 >namespace N { - > // Comment text - >} - > +1 >namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) 2 >Emitted(1, 5) Source(5, 11) + SourceIndex(0) @@ -338,7 +340,7 @@ sourceFile:../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -355,7 +357,7 @@ sourceFile:../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -377,7 +379,7 @@ sourceFile:../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(5, 5) Source(8, 5) + SourceIndex(0) @@ -389,8 +391,8 @@ sourceFile:../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -409,19 +411,19 @@ sourceFile:../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(7, 1) Source(11, 1) + SourceIndex(0) 2 >Emitted(7, 2) Source(11, 2) + SourceIndex(0) @@ -451,10 +453,10 @@ sourceFile:../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(10, 5) Source(5, 1) + SourceIndex(1) @@ -481,7 +483,7 @@ sourceFile:../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -503,7 +505,7 @@ sourceFile:../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(13, 5) Source(4, 5) + SourceIndex(1) @@ -512,7 +514,7 @@ sourceFile:../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(14, 5) Source(5, 1) + SourceIndex(1) @@ -527,10 +529,10 @@ sourceFile:../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(15, 1) Source(5, 1) + SourceIndex(1) 2 >Emitted(15, 2) Source(5, 2) + SourceIndex(1) @@ -540,7 +542,7 @@ sourceFile:../second/second_part2.ts >>>//# sourceMappingURL=second-output.js.map //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":270,"kind":"text"}],"mapHash":"9890117190-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-2912899787-var N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":93,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-16005591226-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["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; };","-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":270,"kind":"text"}],"mapHash":"9890117190-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-2912899787-var N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":93,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-16005591226-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["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; };","-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n","3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -617,8 +619,8 @@ declare class C { ], "fileInfos": { "../../lib/lib.d.ts": "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; };", - "../second/second_part1.ts": "-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n", - "../second/second_part2.ts": "9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n" + "../second/second_part1.ts": "-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", + "../second/second_part2.ts": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n" }, "root": [ [ @@ -645,7 +647,7 @@ declare class C { "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 2736 + "size": 2704 } //// [/src/first/bin/first-output.d.ts] @@ -690,7 +692,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -705,7 +707,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -716,8 +718,8 @@ sourceFile:../first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -735,8 +737,8 @@ sourceFile:../first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -750,7 +752,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -765,7 +767,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -782,8 +784,8 @@ sourceFile:../first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) @@ -822,10 +824,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -849,12 +851,12 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -926,7 +928,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -940,7 +942,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) @@ -949,7 +951,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"4999315210-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"4999315210-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -1020,9 +1022,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "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; };", - "../first_part1.ts": "-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -1051,7 +1053,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2635 + "size": 2609 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -1104,7 +1106,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -1119,7 +1121,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -1130,8 +1132,8 @@ sourceFile:../../../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -1149,8 +1151,8 @@ sourceFile:../../../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -1164,7 +1166,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -1179,7 +1181,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -1195,8 +1197,8 @@ sourceFile:../../../first/first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) @@ -1224,8 +1226,8 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) --- @@ -1234,8 +1236,8 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -1248,12 +1250,12 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) --- @@ -1276,7 +1278,7 @@ sourceFile:../../../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(14, 5) Source(2, 5) + SourceIndex(3) @@ -1285,9 +1287,9 @@ sourceFile:../../../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(15, 2) Source(5, 2) + SourceIndex(3) --- @@ -1365,10 +1367,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -1392,12 +1394,12 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -1469,7 +1471,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -1483,7 +1485,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) @@ -1499,19 +1501,19 @@ sourceFile:../../../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(7, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(7, 5) Source(5, 11) + SourceIndex(3) @@ -1535,7 +1537,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -1552,7 +1554,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -1574,7 +1576,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(11, 5) Source(8, 5) + SourceIndex(3) @@ -1586,8 +1588,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -1606,19 +1608,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(13, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(13, 2) Source(11, 2) + SourceIndex(3) @@ -1648,10 +1650,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(16, 5) Source(5, 1) + SourceIndex(4) @@ -1678,7 +1680,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -1700,7 +1702,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(19, 5) Source(4, 5) + SourceIndex(4) @@ -1709,7 +1711,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(20, 5) Source(5, 1) + SourceIndex(4) @@ -1724,10 +1726,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(21, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(21, 2) Source(5, 2) + SourceIndex(4) @@ -1772,7 +1774,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -1789,7 +1791,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":104,"kind":"text"}]},{"pos":104,"end":374,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":104,"end":374,"kind":"text"}]},{"pos":374,"end":408,"kind":"text"}],"mapHash":"59293632534-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"24400447170-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":149,"kind":"text"}]},{"pos":149,"end":242,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":149,"end":242,"kind":"text"}]},{"pos":242,"end":260,"kind":"text"}],"mapHash":"-10250552873-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"406139541-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[4],"options":{"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1}},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":104,"kind":"text"}]},{"pos":104,"end":374,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":104,"end":374,"kind":"text"}]},{"pos":374,"end":408,"kind":"text"}],"mapHash":"59293632534-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"24400447170-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":149,"kind":"text"}]},{"pos":149,"end":242,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":149,"end":242,"kind":"text"}]},{"pos":242,"end":260,"kind":"text"}],"mapHash":"-10250552873-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"406139541-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[4],"options":{"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1}},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -1957,7 +1959,7 @@ declare var c: C; "../../../../lib/lib.d.ts": "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; };", "../../../first/bin/first-output.d.ts": "-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -1977,6 +1979,6 @@ declare var c: C; } }, "version": "FakeTSVersion", - "size": 4095 + "size": 4090 } diff --git a/tests/baselines/reference/tsbuild/outfile-concat/when-final-project-is-not-composite-but-uses-project-references.js b/tests/baselines/reference/tsbuild/outfile-concat/when-final-project-is-not-composite-but-uses-project-references.js index 03189ba498afd..fdfe1a2678da5 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/when-final-project-is-not-composite-but-uses-project-references.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/when-final-project-is-not-composite-but-uses-project-references.js @@ -16,140 +16,142 @@ interface ReadonlyArray {} declare const console: { log(msg: any): void; }; //// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); //// [/src/first/first_part2.ts] -console.log(f()); +console.log(f()); //// [/src/first/first_part3.ts] -function f() { - return "JS does hoists"; -} +function f() { + return "JS does hoists"; +} + //// [/src/first/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "outFile": "./bin/first-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "first_PART1.ts", - "first_part2.ts", - "first_part3.ts" - ], - "references": [ - ] +{ + "compilerOptions": { + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "outFile": "./bin/first-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "first_PART1.ts", + "first_part2.ts", + "first_part3.ts" + ], + "references": [] } - //// [/src/second/second_part1.ts] -namespace N { - // Comment text -} - -namespace N { - function f() { - console.log('testing'); - } - - f(); -} +namespace N { + // Comment text +} + +namespace N { + function f() { + console.log('testing'); + } + + f(); +} //// [/src/second/second_part2.ts] -class C { - doSomething() { - console.log("something got done"); - } -} +class C { + doSomething() { + console.log("something got done"); + } +} //// [/src/second/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "../2/second-output.js", - "skipDefaultLibCheck": true - }, - "references": [ - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "../2/second-output.js", + "skipDefaultLibCheck": true + }, + "references": [] } - //// [/src/third/third_part1.ts] -var c = new C(); -c.doSomething(); +var c = new C(); +c.doSomething(); //// [/src/third/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "./thirdjs/output/third-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "third_part1.ts" - ], - "references": [ - { "path": "../first", "prepend": true }, - { "path": "../second", "prepend": true }, - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "./thirdjs/output/third-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "third_part1.ts" + ], + "references": [ + { + "path": "../first", + "prepend": true + }, + { + "path": "../second", + "prepend": true + } + ] } - Output:: /lib/tsc --b /src/third --verbose -[12:00:07 AM] Projects in this build: +[12:00:19 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:08 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist +[12:00:20 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist -[12:00:09 AM] Building project '/src/first/tsconfig.json'... +[12:00:21 AM] Building project '/src/first/tsconfig.json'... -[12:00:19 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist +[12:00:31 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist -[12:00:20 AM] Building project '/src/second/tsconfig.json'... +[12:00:32 AM] Building project '/src/second/tsconfig.json'... -[12:00:30 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist +[12:00:42 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist -[12:00:31 AM] Building project '/src/third/tsconfig.json'... +[12:00:43 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -195,8 +197,8 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(2, 2) Source(3, 2) + SourceIndex(0) --- @@ -205,8 +207,8 @@ sourceFile:../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -219,12 +221,12 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(4, 2) Source(11, 2) + SourceIndex(0) --- @@ -247,7 +249,7 @@ sourceFile:../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(6, 5) Source(2, 5) + SourceIndex(1) @@ -256,9 +258,9 @@ sourceFile:../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(7, 2) Source(5, 2) + SourceIndex(1) --- @@ -302,19 +304,19 @@ sourceFile:../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1 >namespace N { - > // Comment text - >} - > +1 >namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) 2 >Emitted(1, 5) Source(5, 11) + SourceIndex(0) @@ -338,7 +340,7 @@ sourceFile:../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -355,7 +357,7 @@ sourceFile:../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -377,7 +379,7 @@ sourceFile:../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(5, 5) Source(8, 5) + SourceIndex(0) @@ -389,8 +391,8 @@ sourceFile:../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -409,19 +411,19 @@ sourceFile:../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(7, 1) Source(11, 1) + SourceIndex(0) 2 >Emitted(7, 2) Source(11, 2) + SourceIndex(0) @@ -451,10 +453,10 @@ sourceFile:../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(10, 5) Source(5, 1) + SourceIndex(1) @@ -481,7 +483,7 @@ sourceFile:../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -503,7 +505,7 @@ sourceFile:../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(13, 5) Source(4, 5) + SourceIndex(1) @@ -512,7 +514,7 @@ sourceFile:../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(14, 5) Source(5, 1) + SourceIndex(1) @@ -527,10 +529,10 @@ sourceFile:../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(15, 1) Source(5, 1) + SourceIndex(1) 2 >Emitted(15, 2) Source(5, 2) + SourceIndex(1) @@ -540,7 +542,7 @@ sourceFile:../second/second_part2.ts >>>//# sourceMappingURL=second-output.js.map //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":270,"kind":"text"}],"mapHash":"9890117190-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-2912899787-var N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":93,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-16005591226-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["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; };","-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":270,"kind":"text"}],"mapHash":"9890117190-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-2912899787-var N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":93,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-16005591226-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["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; };","-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n","3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -617,8 +619,8 @@ declare class C { ], "fileInfos": { "../../lib/lib.d.ts": "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; };", - "../second/second_part1.ts": "-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n", - "../second/second_part2.ts": "9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n" + "../second/second_part1.ts": "-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", + "../second/second_part2.ts": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n" }, "root": [ [ @@ -645,7 +647,7 @@ declare class C { "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 2736 + "size": 2704 } //// [/src/first/bin/first-output.d.ts] @@ -690,7 +692,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -705,7 +707,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -716,8 +718,8 @@ sourceFile:../first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -735,8 +737,8 @@ sourceFile:../first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -750,7 +752,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -765,7 +767,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -782,8 +784,8 @@ sourceFile:../first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) @@ -822,10 +824,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -849,12 +851,12 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -926,7 +928,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -940,7 +942,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) @@ -949,7 +951,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"4999315210-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"4999315210-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -1020,9 +1022,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "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; };", - "../first_part1.ts": "-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -1051,7 +1053,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2635 + "size": 2609 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -1104,7 +1106,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -1119,7 +1121,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -1130,8 +1132,8 @@ sourceFile:../../../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -1149,8 +1151,8 @@ sourceFile:../../../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -1164,7 +1166,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -1179,7 +1181,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -1195,8 +1197,8 @@ sourceFile:../../../first/first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) @@ -1224,8 +1226,8 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) --- @@ -1234,8 +1236,8 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -1248,12 +1250,12 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) --- @@ -1276,7 +1278,7 @@ sourceFile:../../../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(14, 5) Source(2, 5) + SourceIndex(3) @@ -1285,9 +1287,9 @@ sourceFile:../../../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(15, 2) Source(5, 2) + SourceIndex(3) --- @@ -1365,10 +1367,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -1392,12 +1394,12 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -1469,7 +1471,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -1483,7 +1485,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) @@ -1499,19 +1501,19 @@ sourceFile:../../../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(7, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(7, 5) Source(5, 11) + SourceIndex(3) @@ -1535,7 +1537,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -1552,7 +1554,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -1574,7 +1576,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(11, 5) Source(8, 5) + SourceIndex(3) @@ -1586,8 +1588,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -1606,19 +1608,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(13, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(13, 2) Source(11, 2) + SourceIndex(3) @@ -1648,10 +1650,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(16, 5) Source(5, 1) + SourceIndex(4) @@ -1678,7 +1680,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -1700,7 +1702,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(19, 5) Source(4, 5) + SourceIndex(4) @@ -1709,7 +1711,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(20, 5) Source(5, 1) + SourceIndex(4) @@ -1724,10 +1726,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(21, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(21, 2) Source(5, 2) + SourceIndex(4) @@ -1772,7 +1774,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -1793,37 +1795,37 @@ sourceFile:../../third_part1.ts Change:: incremental-declaration-doesnt-change Input:: //// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:00:45 AM] Projects in this build: +[12:00:57 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:46 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:00:58 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:00:47 AM] Building project '/src/first/tsconfig.json'... +[12:00:59 AM] Building project '/src/first/tsconfig.json'... -[12:00:55 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:01:07 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part2.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:00:56 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:01:08 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:00:57 AM] Building project '/src/third/tsconfig.json'... +[12:01:09 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -1861,10 +1863,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -1887,12 +1889,12 @@ sourceFile:../first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -1920,7 +1922,7 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > +1 > > 2 >console 3 > . @@ -1992,7 +1994,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -2006,7 +2008,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) @@ -2015,7 +2017,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":120,"kind":"text"}],"mapHash":"-2702861355-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-20052626506-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-16950965473-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":120,"kind":"text"}],"mapHash":"-2702861355-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-20052626506-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-20304251376-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -2087,9 +2089,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "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; };", - "../first_part1.ts": "-16950965473-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-20304251376-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -2118,7 +2120,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2708 + "size": 2682 } //// [/src/third/thirdjs/output/third-output.d.ts] file written with same contents @@ -2172,10 +2174,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -2198,12 +2200,12 @@ sourceFile:../../../first/first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -2231,7 +2233,7 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > +1 > > 2 >console 3 > . @@ -2303,7 +2305,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -2317,7 +2319,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) @@ -2333,19 +2335,19 @@ sourceFile:../../../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(8, 5) Source(5, 11) + SourceIndex(3) @@ -2369,7 +2371,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -2386,7 +2388,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -2408,7 +2410,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(12, 5) Source(8, 5) + SourceIndex(3) @@ -2420,8 +2422,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -2440,19 +2442,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(14, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(14, 2) Source(11, 2) + SourceIndex(3) @@ -2482,10 +2484,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(17, 5) Source(5, 1) + SourceIndex(4) @@ -2512,7 +2514,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -2534,7 +2536,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(20, 5) Source(4, 5) + SourceIndex(4) @@ -2543,7 +2545,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(21, 5) Source(5, 1) + SourceIndex(4) @@ -2558,10 +2560,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(22, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(22, 2) Source(5, 2) + SourceIndex(4) @@ -2606,7 +2608,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . diff --git a/tests/baselines/reference/tsbuild/outfile-concat/when-final-project-specifies-tsBuildInfoFile.js b/tests/baselines/reference/tsbuild/outfile-concat/when-final-project-specifies-tsBuildInfoFile.js index 46365a1ac07f2..f35d5e8b46520 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/when-final-project-specifies-tsBuildInfoFile.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/when-final-project-specifies-tsBuildInfoFile.js @@ -16,141 +16,143 @@ interface ReadonlyArray {} declare const console: { log(msg: any): void; }; //// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); //// [/src/first/first_part2.ts] -console.log(f()); +console.log(f()); //// [/src/first/first_part3.ts] -function f() { - return "JS does hoists"; -} +function f() { + return "JS does hoists"; +} + //// [/src/first/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "outFile": "./bin/first-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "first_PART1.ts", - "first_part2.ts", - "first_part3.ts" - ], - "references": [ - ] +{ + "compilerOptions": { + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "outFile": "./bin/first-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "first_PART1.ts", + "first_part2.ts", + "first_part3.ts" + ], + "references": [] } - //// [/src/second/second_part1.ts] -namespace N { - // Comment text -} - -namespace N { - function f() { - console.log('testing'); - } - - f(); -} +namespace N { + // Comment text +} + +namespace N { + function f() { + console.log('testing'); + } + + f(); +} //// [/src/second/second_part2.ts] -class C { - doSomething() { - console.log("something got done"); - } -} +class C { + doSomething() { + console.log("something got done"); + } +} //// [/src/second/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "../2/second-output.js", - "skipDefaultLibCheck": true - }, - "references": [ - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "../2/second-output.js", + "skipDefaultLibCheck": true + }, + "references": [] } - //// [/src/third/third_part1.ts] -var c = new C(); -c.doSomething(); +var c = new C(); +c.doSomething(); //// [/src/third/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", "composite": true, - "tsBuildInfoFile": "./thirdjs/output/third.tsbuildinfo", - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "./thirdjs/output/third-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "third_part1.ts" - ], - "references": [ - { "path": "../first", "prepend": true }, - { "path": "../second", "prepend": true }, - ] + "tsBuildInfoFile": "./thirdjs/output/third.tsbuildinfo", + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "./thirdjs/output/third-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "third_part1.ts" + ], + "references": [ + { + "path": "../first", + "prepend": true + }, + { + "path": "../second", + "prepend": true + } + ] } - Output:: /lib/tsc --b /src/third --verbose -[12:00:07 AM] Projects in this build: +[12:00:19 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:08 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist +[12:00:20 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist -[12:00:09 AM] Building project '/src/first/tsconfig.json'... +[12:00:21 AM] Building project '/src/first/tsconfig.json'... -[12:00:19 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist +[12:00:31 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist -[12:00:20 AM] Building project '/src/second/tsconfig.json'... +[12:00:32 AM] Building project '/src/second/tsconfig.json'... -[12:00:30 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third.tsbuildinfo' does not exist +[12:00:42 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third.tsbuildinfo' does not exist -[12:00:31 AM] Building project '/src/third/tsconfig.json'... +[12:00:43 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -196,8 +198,8 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(2, 2) Source(3, 2) + SourceIndex(0) --- @@ -206,8 +208,8 @@ sourceFile:../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -220,12 +222,12 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(4, 2) Source(11, 2) + SourceIndex(0) --- @@ -248,7 +250,7 @@ sourceFile:../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(6, 5) Source(2, 5) + SourceIndex(1) @@ -257,9 +259,9 @@ sourceFile:../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(7, 2) Source(5, 2) + SourceIndex(1) --- @@ -303,19 +305,19 @@ sourceFile:../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1 >namespace N { - > // Comment text - >} - > +1 >namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) 2 >Emitted(1, 5) Source(5, 11) + SourceIndex(0) @@ -339,7 +341,7 @@ sourceFile:../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -356,7 +358,7 @@ sourceFile:../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -378,7 +380,7 @@ sourceFile:../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(5, 5) Source(8, 5) + SourceIndex(0) @@ -390,8 +392,8 @@ sourceFile:../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -410,19 +412,19 @@ sourceFile:../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(7, 1) Source(11, 1) + SourceIndex(0) 2 >Emitted(7, 2) Source(11, 2) + SourceIndex(0) @@ -452,10 +454,10 @@ sourceFile:../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(10, 5) Source(5, 1) + SourceIndex(1) @@ -482,7 +484,7 @@ sourceFile:../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -504,7 +506,7 @@ sourceFile:../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(13, 5) Source(4, 5) + SourceIndex(1) @@ -513,7 +515,7 @@ sourceFile:../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(14, 5) Source(5, 1) + SourceIndex(1) @@ -528,10 +530,10 @@ sourceFile:../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(15, 1) Source(5, 1) + SourceIndex(1) 2 >Emitted(15, 2) Source(5, 2) + SourceIndex(1) @@ -541,7 +543,7 @@ sourceFile:../second/second_part2.ts >>>//# sourceMappingURL=second-output.js.map //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":270,"kind":"text"}],"mapHash":"9890117190-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-2912899787-var N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":93,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-16005591226-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["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; };","-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":270,"kind":"text"}],"mapHash":"9890117190-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-2912899787-var N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":93,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-16005591226-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["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; };","-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n","3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -618,8 +620,8 @@ declare class C { ], "fileInfos": { "../../lib/lib.d.ts": "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; };", - "../second/second_part1.ts": "-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n", - "../second/second_part2.ts": "9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n" + "../second/second_part1.ts": "-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", + "../second/second_part2.ts": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n" }, "root": [ [ @@ -646,7 +648,7 @@ declare class C { "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 2736 + "size": 2704 } //// [/src/first/bin/first-output.d.ts] @@ -691,7 +693,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -706,7 +708,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -717,8 +719,8 @@ sourceFile:../first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -736,8 +738,8 @@ sourceFile:../first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -751,7 +753,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -766,7 +768,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -783,8 +785,8 @@ sourceFile:../first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) @@ -823,10 +825,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -850,12 +852,12 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -927,7 +929,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -941,7 +943,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) @@ -950,7 +952,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"4999315210-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"4999315210-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -1021,9 +1023,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "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; };", - "../first_part1.ts": "-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -1052,7 +1054,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2635 + "size": 2609 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -1105,7 +1107,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -1120,7 +1122,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -1131,8 +1133,8 @@ sourceFile:../../../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -1150,8 +1152,8 @@ sourceFile:../../../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -1165,7 +1167,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -1180,7 +1182,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -1196,8 +1198,8 @@ sourceFile:../../../first/first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) @@ -1225,8 +1227,8 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) --- @@ -1235,8 +1237,8 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -1249,12 +1251,12 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) --- @@ -1277,7 +1279,7 @@ sourceFile:../../../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(14, 5) Source(2, 5) + SourceIndex(3) @@ -1286,9 +1288,9 @@ sourceFile:../../../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(15, 2) Source(5, 2) + SourceIndex(3) --- @@ -1366,10 +1368,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -1393,12 +1395,12 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -1470,7 +1472,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -1484,7 +1486,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) @@ -1500,19 +1502,19 @@ sourceFile:../../../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(7, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(7, 5) Source(5, 11) + SourceIndex(3) @@ -1536,7 +1538,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -1553,7 +1555,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -1575,7 +1577,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(11, 5) Source(8, 5) + SourceIndex(3) @@ -1587,8 +1589,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -1607,19 +1609,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(13, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(13, 2) Source(11, 2) + SourceIndex(3) @@ -1649,10 +1651,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(16, 5) Source(5, 1) + SourceIndex(4) @@ -1679,7 +1681,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -1701,7 +1703,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(19, 5) Source(4, 5) + SourceIndex(4) @@ -1710,7 +1712,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(20, 5) Source(5, 1) + SourceIndex(4) @@ -1725,10 +1727,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(21, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(21, 2) Source(5, 2) + SourceIndex(4) @@ -1773,7 +1775,7 @@ sourceFile:../../third_part1.ts 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >c 3 > . @@ -1790,7 +1792,7 @@ sourceFile:../../third_part1.ts >>>//# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":104,"kind":"text"}]},{"pos":104,"end":374,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":104,"end":374,"kind":"text"}]},{"pos":374,"end":408,"kind":"text"}],"mapHash":"59293632534-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"24400447170-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":149,"kind":"text"}]},{"pos":149,"end":242,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":149,"end":242,"kind":"text"}]},{"pos":242,"end":260,"kind":"text"}],"mapHash":"-10250552873-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"406139541-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","10470273651-var c = new C();\r\nc.doSomething();\r\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1,"tsBuildInfoFile":"./third.tsbuildinfo"},"outSignature":"-2893455973-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":104,"kind":"text"}]},{"pos":104,"end":374,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":104,"end":374,"kind":"text"}]},{"pos":374,"end":408,"kind":"text"}],"mapHash":"59293632534-{\"version\":3,\"file\":\"third-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part2.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC\"}","hash":"24400447170-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\nvar N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\nvar c = new C();\nc.doSomething();\n//# sourceMappingURL=third-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":149,"kind":"text"}]},{"pos":149,"end":242,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":149,"end":242,"kind":"text"}]},{"pos":242,"end":260,"kind":"text"}],"mapHash":"-10250552873-{\"version\":3,\"file\":\"third-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../../first/first_PART1.ts\",\"../../../first/first_part3.ts\",\"../../../second/second_part1.ts\",\"../../../second/second_part2.ts\",\"../../third_part1.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC\"}","hash":"406139541-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n//# sourceMappingURL=third-output.d.ts.map"}},"program":{"fileNames":["../../../../lib/lib.d.ts","../../../first/bin/first-output.d.ts","../../../2/second-output.d.ts","../../third_part1.ts"],"fileInfos":["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; };","-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","7305100057-var c = new C();\nc.doSomething();\n"],"root":[4],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./third-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1,"tsBuildInfoFile":"./third.tsbuildinfo"},"outSignature":"-2893455973-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\ndeclare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\ndeclare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} //// [/src/third/thirdjs/output/third.tsbuildinfo.baseline.txt] ====================================================================== @@ -1958,7 +1960,7 @@ declare var c: C; "../../../../lib/lib.d.ts": "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; };", "../../../first/bin/first-output.d.ts": "-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n", "../../../2/second-output.d.ts": "-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n", - "../../third_part1.ts": "10470273651-var c = new C();\r\nc.doSomething();\r\n" + "../../third_part1.ts": "7305100057-var c = new C();\nc.doSomething();\n" }, "root": [ [ @@ -1982,6 +1984,6 @@ declare var c: C; "latestChangedDtsFile": "./third-output.d.ts" }, "version": "FakeTSVersion", - "size": 4505 + "size": 4500 } diff --git a/tests/baselines/reference/tsbuild/outfile-concat/when-source-files-are-empty-in-the-own-file.js b/tests/baselines/reference/tsbuild/outfile-concat/when-source-files-are-empty-in-the-own-file.js index d3d36cacbea0b..e2b0521b36b55 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/when-source-files-are-empty-in-the-own-file.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/when-source-files-are-empty-in-the-own-file.js @@ -16,138 +16,140 @@ interface ReadonlyArray {} declare const console: { log(msg: any): void; }; //// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); //// [/src/first/first_part2.ts] -console.log(f()); +console.log(f()); //// [/src/first/first_part3.ts] -function f() { - return "JS does hoists"; -} +function f() { + return "JS does hoists"; +} + //// [/src/first/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "outFile": "./bin/first-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "first_PART1.ts", - "first_part2.ts", - "first_part3.ts" - ], - "references": [ - ] +{ + "compilerOptions": { + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "outFile": "./bin/first-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "first_PART1.ts", + "first_part2.ts", + "first_part3.ts" + ], + "references": [] } - //// [/src/second/second_part1.ts] -namespace N { - // Comment text -} - -namespace N { - function f() { - console.log('testing'); - } - - f(); -} +namespace N { + // Comment text +} + +namespace N { + function f() { + console.log('testing'); + } + + f(); +} //// [/src/second/second_part2.ts] -class C { - doSomething() { - console.log("something got done"); - } -} +class C { + doSomething() { + console.log("something got done"); + } +} //// [/src/second/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "../2/second-output.js", - "skipDefaultLibCheck": true - }, - "references": [ - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "../2/second-output.js", + "skipDefaultLibCheck": true + }, + "references": [] } - //// [/src/third/third_part1.ts] //// [/src/third/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "./thirdjs/output/third-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "third_part1.ts" - ], - "references": [ - { "path": "../first", "prepend": true }, - { "path": "../second", "prepend": true }, - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "./thirdjs/output/third-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "third_part1.ts" + ], + "references": [ + { + "path": "../first", + "prepend": true + }, + { + "path": "../second", + "prepend": true + } + ] } - Output:: /lib/tsc --b /src/third --verbose -[12:00:07 AM] Projects in this build: +[12:00:19 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:08 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist +[12:00:20 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist -[12:00:09 AM] Building project '/src/first/tsconfig.json'... +[12:00:21 AM] Building project '/src/first/tsconfig.json'... -[12:00:19 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist +[12:00:31 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist -[12:00:20 AM] Building project '/src/second/tsconfig.json'... +[12:00:32 AM] Building project '/src/second/tsconfig.json'... -[12:00:30 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist +[12:00:42 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist -[12:00:31 AM] Building project '/src/third/tsconfig.json'... +[12:00:43 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -193,8 +195,8 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(2, 2) Source(3, 2) + SourceIndex(0) --- @@ -203,8 +205,8 @@ sourceFile:../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -217,12 +219,12 @@ sourceFile:../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(4, 2) Source(11, 2) + SourceIndex(0) --- @@ -245,7 +247,7 @@ sourceFile:../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(6, 5) Source(2, 5) + SourceIndex(1) @@ -254,9 +256,9 @@ sourceFile:../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(7, 2) Source(5, 2) + SourceIndex(1) --- @@ -300,19 +302,19 @@ sourceFile:../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1 >namespace N { - > // Comment text - >} - > +1 >namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) 2 >Emitted(1, 5) Source(5, 11) + SourceIndex(0) @@ -336,7 +338,7 @@ sourceFile:../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -353,7 +355,7 @@ sourceFile:../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -375,7 +377,7 @@ sourceFile:../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(5, 5) Source(8, 5) + SourceIndex(0) @@ -387,8 +389,8 @@ sourceFile:../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -407,19 +409,19 @@ sourceFile:../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(7, 1) Source(11, 1) + SourceIndex(0) 2 >Emitted(7, 2) Source(11, 2) + SourceIndex(0) @@ -449,10 +451,10 @@ sourceFile:../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(10, 5) Source(5, 1) + SourceIndex(1) @@ -479,7 +481,7 @@ sourceFile:../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -501,7 +503,7 @@ sourceFile:../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(13, 5) Source(4, 5) + SourceIndex(1) @@ -510,7 +512,7 @@ sourceFile:../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(14, 5) Source(5, 1) + SourceIndex(1) @@ -525,10 +527,10 @@ sourceFile:../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(15, 1) Source(5, 1) + SourceIndex(1) 2 >Emitted(15, 2) Source(5, 2) + SourceIndex(1) @@ -538,7 +540,7 @@ sourceFile:../second/second_part2.ts >>>//# sourceMappingURL=second-output.js.map //// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":270,"kind":"text"}],"mapHash":"9890117190-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-2912899787-var N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":93,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-16005591226-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["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; };","-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n","9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":270,"kind":"text"}],"mapHash":"9890117190-{\"version\":3,\"file\":\"second-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC\"}","hash":"-2912899787-var N;\n(function (N) {\n function f() {\n console.log('testing');\n }\n f();\n})(N || (N = {}));\nvar C = (function () {\n function C() {\n }\n C.prototype.doSomething = function () {\n console.log(\"something got done\");\n };\n return C;\n}());\n//# sourceMappingURL=second-output.js.map"},"dts":{"sections":[{"pos":0,"end":93,"kind":"text"}],"mapHash":"7640041563-{\"version\":3,\"file\":\"second-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../second/second_part1.ts\",\"../second/second_part2.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd\"}","hash":"-16005591226-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","../second/second_part1.ts","../second/second_part2.ts"],"fileInfos":["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; };","-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n","3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./second-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-2513601205-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n","latestChangedDtsFile":"./second-output.d.ts"},"version":"FakeTSVersion"} //// [/src/2/second-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -615,8 +617,8 @@ declare class C { ], "fileInfos": { "../../lib/lib.d.ts": "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; };", - "../second/second_part1.ts": "-21603042336-namespace N {\r\n // Comment text\r\n}\r\n\r\nnamespace N {\r\n function f() {\r\n console.log('testing');\r\n }\r\n\r\n f();\r\n}\r\n", - "../second/second_part2.ts": "9339262372-class C {\r\n doSomething() {\r\n console.log(\"something got done\");\r\n }\r\n}\r\n" + "../second/second_part1.ts": "-12195290447-namespace N {\n // Comment text\n}\n\nnamespace N {\n function f() {\n console.log('testing');\n }\n\n f();\n}\n", + "../second/second_part2.ts": "3642692259-class C {\n doSomething() {\n console.log(\"something got done\");\n }\n}\n" }, "root": [ [ @@ -643,7 +645,7 @@ declare class C { "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 2736 + "size": 2704 } //// [/src/first/bin/first-output.d.ts] @@ -688,7 +690,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -703,7 +705,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -714,8 +716,8 @@ sourceFile:../first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -733,8 +735,8 @@ sourceFile:../first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -748,7 +750,7 @@ sourceFile:../first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -763,7 +765,7 @@ sourceFile:../first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -780,8 +782,8 @@ sourceFile:../first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) @@ -820,10 +822,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -847,12 +849,12 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -924,7 +926,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -938,7 +940,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) @@ -947,7 +949,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"4999315210-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":104,"kind":"text"}],"mapHash":"-22423542495-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"4999315210-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -1018,9 +1020,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "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; };", - "../first_part1.ts": "-17207381411-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\n", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-22071182994-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\n", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -1049,7 +1051,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2635 + "size": 2609 } //// [/src/third/thirdjs/output/third-output.d.ts] @@ -1101,7 +1103,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -1116,7 +1118,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- @@ -1127,8 +1129,8 @@ sourceFile:../../../first/first_PART1.ts 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> - > +1-> + > > 2 > 3 > const @@ -1146,8 +1148,8 @@ sourceFile:../../../first/first_PART1.ts 1 > 2 >^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^ -1 > - > +1 > + > > 2 >interface 3 > NoJsForHereEither @@ -1161,7 +1163,7 @@ sourceFile:../../../first/first_PART1.ts 3 > ^^ 4 > ^^^ 5 > ^ -1 > { +1 > { > 2 > none 3 > : @@ -1176,7 +1178,7 @@ sourceFile:../../../first/first_PART1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > >} 1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) --- @@ -1192,8 +1194,8 @@ sourceFile:../../../first/first_part3.ts 1-> 2 >function 3 > f -4 > () { - > return "JS does hoists"; +4 > () { + > return "JS does hoists"; > } 1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) 2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) @@ -1221,8 +1223,8 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text +1 >{ + > // Comment text >} 1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) --- @@ -1231,8 +1233,8 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1-> - > +1-> + > > 2 >namespace 3 > N @@ -1245,12 +1247,12 @@ sourceFile:../../../second/second_part1.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); >} 1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) --- @@ -1273,7 +1275,7 @@ sourceFile:../../../second/second_part2.ts >>> doSomething(): void; 1->^^^^ 2 > ^^^^^^^^^^^ -1-> { +1-> { > 2 > doSomething 1->Emitted(14, 5) Source(2, 5) + SourceIndex(3) @@ -1282,9 +1284,9 @@ sourceFile:../../../second/second_part2.ts >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } +1 >() { + > console.log("something got done"); + > } >} 1 >Emitted(15, 2) Source(5, 2) + SourceIndex(3) --- @@ -1335,10 +1337,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -1362,12 +1364,12 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -1439,7 +1441,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -1453,7 +1455,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) @@ -1469,19 +1471,19 @@ sourceFile:../../../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(7, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(7, 5) Source(5, 11) + SourceIndex(3) @@ -1505,7 +1507,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -1522,7 +1524,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -1544,7 +1546,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(11, 5) Source(8, 5) + SourceIndex(3) @@ -1556,8 +1558,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -1576,19 +1578,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(13, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(13, 2) Source(11, 2) + SourceIndex(3) @@ -1618,10 +1620,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(16, 5) Source(5, 1) + SourceIndex(4) @@ -1648,7 +1650,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -1670,7 +1672,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(19, 5) Source(4, 5) + SourceIndex(4) @@ -1679,7 +1681,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(20, 5) Source(5, 1) + SourceIndex(4) @@ -1694,10 +1696,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(21, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(21, 2) Source(5, 2) + SourceIndex(4) @@ -1887,37 +1889,37 @@ declare class C { Change:: incremental-declaration-doesnt-change Input:: //// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:00:49 AM] Projects in this build: +[12:01:01 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:50 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' +[12:01:02 AM] Project 'src/first/tsconfig.json' is out of date because output 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' -[12:00:51 AM] Building project '/src/first/tsconfig.json'... +[12:01:03 AM] Building project '/src/first/tsconfig.json'... -[12:00:59 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than output 'src/2/second-output.tsbuildinfo' +[12:01:11 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part2.ts' is older than output 'src/2/second-output.tsbuildinfo' -[12:01:00 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +[12:01:12 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -[12:01:01 AM] Updating output of project '/src/third/tsconfig.json'... +[12:01:13 AM] Updating output of project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success @@ -1955,10 +1957,10 @@ sourceFile:../first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -1981,12 +1983,12 @@ sourceFile:../first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -2014,7 +2016,7 @@ sourceFile:../first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > +1 > > 2 >console 3 > . @@ -2086,7 +2088,7 @@ sourceFile:../first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -2100,7 +2102,7 @@ sourceFile:../first_part3.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) @@ -2109,7 +2111,7 @@ sourceFile:../first_part3.ts >>>//# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":120,"kind":"text"}],"mapHash":"-2702861355-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-20052626506-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-16950965473-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);","4973778178-console.log(f());\r\n","6202806249-function f() {\r\n return \"JS does hoists\";\r\n}"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":120,"kind":"text"}],"mapHash":"-2702861355-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC\"}","hash":"-20052626506-var s = \"Hello, world\";\nconsole.log(s);\nconsole.log(s);\nconsole.log(f());\nfunction f() {\n return \"JS does hoists\";\n}\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":149,"kind":"text"}],"mapHash":"28957120071-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\",\"../first_part2.ts\",\"../first_part3.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET\"}","hash":"-14898761250-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_part1.ts","../first_part2.ts","../first_part3.ts"],"fileInfos":["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; };","-20304251376-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);","6007494133-console.log(f());\n","4357625305-function f() {\n return \"JS does hoists\";\n}\n"],"root":[[2,4]],"options":{"composite":true,"declarationMap":true,"outFile":"./first-output.js","removeComments":true,"skipDefaultLibCheck":true,"sourceMap":true,"strict":false,"target":1},"outSignature":"-15957783529-interface TheFirst {\n none: any;\n}\ndeclare const s = \"Hello, world\";\ninterface NoJsForHereEither {\n none: any;\n}\ndeclare function f(): string;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} //// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] ====================================================================== @@ -2181,9 +2183,9 @@ declare function f(): string; ], "fileInfos": { "../../../lib/lib.d.ts": "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; };", - "../first_part1.ts": "-16950965473-interface TheFirst {\r\n none: any;\r\n}\r\n\r\nconst s = \"Hello, world\";\r\n\r\ninterface NoJsForHereEither {\r\n none: any;\r\n}\r\n\r\nconsole.log(s);\r\nconsole.log(s);", - "../first_part2.ts": "4973778178-console.log(f());\r\n", - "../first_part3.ts": "6202806249-function f() {\r\n return \"JS does hoists\";\r\n}" + "../first_part1.ts": "-20304251376-interface TheFirst {\n none: any;\n}\n\nconst s = \"Hello, world\";\n\ninterface NoJsForHereEither {\n none: any;\n}\n\nconsole.log(s);\nconsole.log(s);", + "../first_part2.ts": "6007494133-console.log(f());\n", + "../first_part3.ts": "4357625305-function f() {\n return \"JS does hoists\";\n}\n" }, "root": [ [ @@ -2212,7 +2214,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2708 + "size": 2682 } //// [/src/third/thirdjs/output/third-output.js] @@ -2261,10 +2263,10 @@ sourceFile:../../../first/first_PART1.ts 4 > ^^^ 5 > ^^^^^^^^^^^^^^ 6 > ^ -1 >interface TheFirst { - > none: any; - >} - > +1 >interface TheFirst { + > none: any; + >} + > > 2 >const 3 > s @@ -2287,12 +2289,12 @@ sourceFile:../../../first/first_PART1.ts 6 > ^ 7 > ^ 8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > > 2 >console 3 > . @@ -2320,7 +2322,7 @@ sourceFile:../../../first/first_PART1.ts 7 > ^ 8 > ^ 9 > ^^-> -1 > +1 > > 2 >console 3 > . @@ -2392,7 +2394,7 @@ sourceFile:../../../first/first_part3.ts 2 > ^^^^^^^ 3 > ^^^^^^^^^^^^^^^^ 4 > ^ -1->() { +1->() { > 2 > return 3 > "JS does hoists" @@ -2406,7 +2408,7 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >^ 3 > ^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) @@ -2422,19 +2424,19 @@ sourceFile:../../../second/second_part1.ts 3 > ^ 4 > ^ 5 > ^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > +1->namespace N { + > // Comment text + >} + > > 2 >namespace 3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) 2 >Emitted(8, 5) Source(5, 11) + SourceIndex(3) @@ -2458,7 +2460,7 @@ sourceFile:../../../second/second_part1.ts 2 > ^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^^^^^^^-> -1-> { +1-> { > 2 > function 3 > f @@ -2475,7 +2477,7 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^ 8 > ^ -1->() { +1->() { > 2 > console 3 > . @@ -2497,7 +2499,7 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^ 2 > ^ 3 > ^^^-> -1 > +1 > > 2 > } 1 >Emitted(12, 5) Source(8, 5) + SourceIndex(3) @@ -2509,8 +2511,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^ 4 > ^ 5 > ^^^^^^^^^^-> -1-> - > +1-> + > > 2 > f 3 > () @@ -2529,19 +2531,19 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^^^^^^^^ 8 > ^^^^-> -1-> +1-> > 2 >} 3 > 4 > N 5 > 6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); > } 1->Emitted(14, 1) Source(11, 1) + SourceIndex(3) 2 >Emitted(14, 2) Source(11, 2) + SourceIndex(3) @@ -2571,10 +2573,10 @@ sourceFile:../../../second/second_part2.ts 1->^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } +1->class C { + > doSomething() { + > console.log("something got done"); + > } > 2 > } 1->Emitted(17, 5) Source(5, 1) + SourceIndex(4) @@ -2601,7 +2603,7 @@ sourceFile:../../../second/second_part2.ts 6 > ^^^^^^^^^^^^^^^^^^^^ 7 > ^ 8 > ^ -1->doSomething() { +1->doSomething() { > 2 > console 3 > . @@ -2623,7 +2625,7 @@ sourceFile:../../../second/second_part2.ts 1 >^^^^ 2 > ^ 3 > ^^^^^^^^-> -1 > +1 > > 2 > } 1 >Emitted(20, 5) Source(4, 5) + SourceIndex(4) @@ -2632,7 +2634,7 @@ sourceFile:../../../second/second_part2.ts >>> return C; 1->^^^^ 2 > ^^^^^^^^ -1-> +1-> > 2 > } 1->Emitted(21, 5) Source(5, 1) + SourceIndex(4) @@ -2647,10 +2649,10 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >} 3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } +4 > class C { + > doSomething() { + > console.log("something got done"); + > } > } 1 >Emitted(22, 1) Source(5, 1) + SourceIndex(4) 2 >Emitted(22, 2) Source(5, 2) + SourceIndex(4) diff --git a/tests/baselines/reference/tsbuild/outputPaths/when-rootDir-is-not-specified-and-is-composite.js b/tests/baselines/reference/tsbuild/outputPaths/when-rootDir-is-not-specified-and-is-composite.js index 248f1737ce5a2..67f74ccf04d89 100644 --- a/tests/baselines/reference/tsbuild/outputPaths/when-rootDir-is-not-specified-and-is-composite.js +++ b/tests/baselines/reference/tsbuild/outputPaths/when-rootDir-is-not-specified-and-is-composite.js @@ -19,7 +19,12 @@ declare const console: { log(msg: any): void; }; export const x = 10; //// [/src/tsconfig.json] -{"compilerOptions":{"outDir":"dist","composite":true}} +{ + "compilerOptions": { + "outDir": "dist", + "composite": true + } +} diff --git a/tests/baselines/reference/tsbuild/outputPaths/when-rootDir-is-not-specified.js b/tests/baselines/reference/tsbuild/outputPaths/when-rootDir-is-not-specified.js index ca9532c2e2246..35f5d206412d9 100644 --- a/tests/baselines/reference/tsbuild/outputPaths/when-rootDir-is-not-specified.js +++ b/tests/baselines/reference/tsbuild/outputPaths/when-rootDir-is-not-specified.js @@ -19,7 +19,11 @@ declare const console: { log(msg: any): void; }; export const x = 10; //// [/src/tsconfig.json] -{"compilerOptions":{"outDir":"dist"}} +{ + "compilerOptions": { + "outDir": "dist" + } +} diff --git a/tests/baselines/reference/tsbuild/outputPaths/when-rootDir-is-specified-but-not-all-files-belong-to-rootDir-and-is-composite.js b/tests/baselines/reference/tsbuild/outputPaths/when-rootDir-is-specified-but-not-all-files-belong-to-rootDir-and-is-composite.js index ee2c88d99f7f6..8bb04bcb3e14b 100644 --- a/tests/baselines/reference/tsbuild/outputPaths/when-rootDir-is-specified-but-not-all-files-belong-to-rootDir-and-is-composite.js +++ b/tests/baselines/reference/tsbuild/outputPaths/when-rootDir-is-specified-but-not-all-files-belong-to-rootDir-and-is-composite.js @@ -19,7 +19,13 @@ declare const console: { log(msg: any): void; }; export const x = 10; //// [/src/tsconfig.json] -{"compilerOptions":{"outDir":"dist","rootDir":"src","composite":true}} +{ + "compilerOptions": { + "outDir": "dist", + "rootDir": "src", + "composite": true + } +} //// [/src/types/type.ts] export type t = string; diff --git a/tests/baselines/reference/tsbuild/outputPaths/when-rootDir-is-specified-but-not-all-files-belong-to-rootDir.js b/tests/baselines/reference/tsbuild/outputPaths/when-rootDir-is-specified-but-not-all-files-belong-to-rootDir.js index 84c19e7d34b53..d1f6f432d1e08 100644 --- a/tests/baselines/reference/tsbuild/outputPaths/when-rootDir-is-specified-but-not-all-files-belong-to-rootDir.js +++ b/tests/baselines/reference/tsbuild/outputPaths/when-rootDir-is-specified-but-not-all-files-belong-to-rootDir.js @@ -19,7 +19,12 @@ declare const console: { log(msg: any): void; }; export const x = 10; //// [/src/tsconfig.json] -{"compilerOptions":{"outDir":"dist","rootDir":"src"}} +{ + "compilerOptions": { + "outDir": "dist", + "rootDir": "src" + } +} //// [/src/types/type.ts] export type t = string; diff --git a/tests/baselines/reference/tsbuild/outputPaths/when-rootDir-is-specified.js b/tests/baselines/reference/tsbuild/outputPaths/when-rootDir-is-specified.js index 8ce30996bbd79..57f1dc17cf217 100644 --- a/tests/baselines/reference/tsbuild/outputPaths/when-rootDir-is-specified.js +++ b/tests/baselines/reference/tsbuild/outputPaths/when-rootDir-is-specified.js @@ -19,7 +19,12 @@ declare const console: { log(msg: any): void; }; export const x = 10; //// [/src/tsconfig.json] -{"compilerOptions":{"outDir":"dist","rootDir":"src"}} +{ + "compilerOptions": { + "outDir": "dist", + "rootDir": "src" + } +} diff --git a/tests/baselines/reference/tsbuild/projectReferenceWithRootDirInParent/builds-correctly.js b/tests/baselines/reference/tsbuild/projectReferenceWithRootDirInParent/builds-correctly.js index e3cf06b0169d1..c570855892ffb 100644 --- a/tests/baselines/reference/tsbuild/projectReferenceWithRootDirInParent/builds-correctly.js +++ b/tests/baselines/reference/tsbuild/projectReferenceWithRootDirInParent/builds-correctly.js @@ -16,42 +16,45 @@ interface ReadonlyArray {} declare const console: { log(msg: any): void; }; //// [/src/src/main/a.ts] -import { b } from './b'; -const a = b; +import { b } from './b'; +const a = b; + //// [/src/src/main/b.ts] -export const b = 0; +export const b = 0; //// [/src/src/main/tsconfig.json] -{ - "extends": "../../tsconfig.base.json", - "references": [ - { "path": "../other" } - ] +{ + "extends": "../../tsconfig.base.json", + "references": [ + { + "path": "../other" + } + ] } //// [/src/src/other/other.ts] -export const Other = 0; +export const Other = 0; //// [/src/src/other/tsconfig.json] -{ - "extends": "../../tsconfig.base.json" +{ + "extends": "../../tsconfig.base.json" } //// [/src/tsconfig.base.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "rootDir": "./src/", - "outDir": "./dist/", - "skipDefaultLibCheck": true - }, - "exclude": [ - "node_modules" - ] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "rootDir": "./src/", + "outDir": "./dist/", + "skipDefaultLibCheck": true + }, + "exclude": [ + "node_modules" + ] } @@ -84,7 +87,7 @@ exports.b = 0; //// [/src/dist/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../lib/lib.d.ts","../../src/main/b.ts","../../src/main/a.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-11678562673-export const b = 0;\r\n","signature":"-5842658702-export declare const b = 0;\n"},{"version":"-17071184049-import { b } from './b';\r\nconst a = b;","signature":"-3531856636-export {};\n"}],"root":[2,3],"options":{"composite":true,"declaration":true,"outDir":"..","rootDir":"../../src","skipDefaultLibCheck":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,3,2],"latestChangedDtsFile":"./a.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../lib/lib.d.ts","../../src/main/b.ts","../../src/main/a.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-13368948254-export const b = 0;\n","signature":"-5842658702-export declare const b = 0;\n"},{"version":"-18592354388-import { b } from './b';\nconst a = b;\n","signature":"-3531856636-export {};\n"}],"root":[2,3],"options":{"composite":true,"declaration":true,"outDir":"..","rootDir":"../../src","skipDefaultLibCheck":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,3,2],"latestChangedDtsFile":"./a.d.ts"},"version":"FakeTSVersion"} //// [/src/dist/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -111,18 +114,18 @@ exports.b = 0; }, "../../src/main/b.ts": { "original": { - "version": "-11678562673-export const b = 0;\r\n", + "version": "-13368948254-export const b = 0;\n", "signature": "-5842658702-export declare const b = 0;\n" }, - "version": "-11678562673-export const b = 0;\r\n", + "version": "-13368948254-export const b = 0;\n", "signature": "-5842658702-export declare const b = 0;\n" }, "../../src/main/a.ts": { "original": { - "version": "-17071184049-import { b } from './b';\r\nconst a = b;", + "version": "-18592354388-import { b } from './b';\nconst a = b;\n", "signature": "-3531856636-export {};\n" }, - "version": "-17071184049-import { b } from './b';\r\nconst a = b;", + "version": "-18592354388-import { b } from './b';\nconst a = b;\n", "signature": "-3531856636-export {};\n" } }, @@ -157,7 +160,7 @@ exports.b = 0; "latestChangedDtsFile": "./a.d.ts" }, "version": "FakeTSVersion", - "size": 1091 + "size": 1089 } //// [/src/dist/other/other.d.ts] @@ -172,7 +175,7 @@ exports.Other = 0; //// [/src/dist/other/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../lib/lib.d.ts","../../src/other/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2951227185-export const Other = 0;\r\n","signature":"-10003600206-export declare const Other = 0;\n"}],"root":[2],"options":{"composite":true,"declaration":true,"outDir":"..","rootDir":"../../src","skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./other.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../lib/lib.d.ts","../../src/other/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-4254247902-export const Other = 0;\n","signature":"-10003600206-export declare const Other = 0;\n"}],"root":[2],"options":{"composite":true,"declaration":true,"outDir":"..","rootDir":"../../src","skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./other.d.ts"},"version":"FakeTSVersion"} //// [/src/dist/other/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -193,10 +196,10 @@ exports.Other = 0; }, "../../src/other/other.ts": { "original": { - "version": "-2951227185-export const Other = 0;\r\n", + "version": "-4254247902-export const Other = 0;\n", "signature": "-10003600206-export declare const Other = 0;\n" }, - "version": "-2951227185-export const Other = 0;\r\n", + "version": "-4254247902-export const Other = 0;\n", "signature": "-10003600206-export declare const Other = 0;\n" } }, @@ -222,6 +225,6 @@ exports.Other = 0; "latestChangedDtsFile": "./other.d.ts" }, "version": "FakeTSVersion", - "size": 950 + "size": 948 } diff --git a/tests/baselines/reference/tsbuild/projectReferenceWithRootDirInParent/reports-error-for-same-tsbuildinfo-file-because-no-rootDir-in-the-base.js b/tests/baselines/reference/tsbuild/projectReferenceWithRootDirInParent/reports-error-for-same-tsbuildinfo-file-because-no-rootDir-in-the-base.js index 0831e9324fbc9..4818c4cc4ab8b 100644 --- a/tests/baselines/reference/tsbuild/projectReferenceWithRootDirInParent/reports-error-for-same-tsbuildinfo-file-because-no-rootDir-in-the-base.js +++ b/tests/baselines/reference/tsbuild/projectReferenceWithRootDirInParent/reports-error-for-same-tsbuildinfo-file-because-no-rootDir-in-the-base.js @@ -16,64 +16,71 @@ interface ReadonlyArray {} declare const console: { log(msg: any): void; }; //// [/src/src/main/a.ts] -import { b } from './b'; -const a = b; +import { b } from './b'; +const a = b; + //// [/src/src/main/b.ts] -export const b = 0; +export const b = 0; //// [/src/src/main/tsconfig.json] -{ - "extends": "../../tsconfig.base.json", - "references": [ - { "path": "../other" } - ] +{ + "extends": "../../tsconfig.base.json", + "references": [ + { + "path": "../other" + } + ] } //// [/src/src/other/other.ts] -export const Other = 0; +export const Other = 0; //// [/src/src/other/tsconfig.json] -{ - "extends": "../../tsconfig.base.json" +{ + "extends": "../../tsconfig.base.json" } //// [/src/tsconfig.base.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - - "outDir": "./dist/", - "skipDefaultLibCheck": true - }, - "exclude": [ - "node_modules" - ] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + + "outDir": "./dist/", + "skipDefaultLibCheck": true + }, + "exclude": [ + "node_modules" + ] } Output:: /lib/tsc --b /src/src/main --verbose -[12:00:07 AM] Projects in this build: +[12:00:16 AM] Projects in this build: * src/src/other/tsconfig.json * src/src/main/tsconfig.json -[12:00:08 AM] Project 'src/src/other/tsconfig.json' is out of date because output file 'src/dist/tsconfig.tsbuildinfo' does not exist +[12:00:17 AM] Project 'src/src/other/tsconfig.json' is out of date because output file 'src/dist/tsconfig.tsbuildinfo' does not exist -[12:00:09 AM] Building project '/src/src/other/tsconfig.json'... +[12:00:18 AM] Building project '/src/src/other/tsconfig.json'... -[12:00:16 AM] Project 'src/src/main/tsconfig.json' is out of date because buildinfo file 'src/dist/tsconfig.tsbuildinfo' indicates that file 'src/src/other/other.ts' was root file of compilation but not any more. +[12:00:25 AM] Project 'src/src/main/tsconfig.json' is out of date because buildinfo file 'src/dist/tsconfig.tsbuildinfo' indicates that file 'src/src/other/other.ts' was root file of compilation but not any more. -[12:00:17 AM] Building project '/src/src/main/tsconfig.json'... +[12:00:26 AM] Building project '/src/src/main/tsconfig.json'... src/src/main/tsconfig.json:4:5 - error TS6377: Cannot write file '/src/dist/tsconfig.tsbuildinfo' because it will overwrite '.tsbuildinfo' file generated by referenced project '/src/src/other' -4 { "path": "../other" } -   ~~~~~~~~~~~~~~~~~~~~~~ +4 { +   ~ +5 "path": "../other" +  ~~~~~~~~~~~~~~~~~~~~~~~~ +6 } +  ~~~~~ Found 1 error. @@ -93,7 +100,7 @@ exports.Other = 0; //// [/src/dist/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../src/other/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2951227185-export const Other = 0;\r\n","signature":"-10003600206-export declare const Other = 0;\n"}],"root":[2],"options":{"composite":true,"declaration":true,"outDir":"./","skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./other.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../src/other/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-4254247902-export const Other = 0;\n","signature":"-10003600206-export declare const Other = 0;\n"}],"root":[2],"options":{"composite":true,"declaration":true,"outDir":"./","skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./other.d.ts"},"version":"FakeTSVersion"} //// [/src/dist/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -114,10 +121,10 @@ exports.Other = 0; }, "../src/other/other.ts": { "original": { - "version": "-2951227185-export const Other = 0;\r\n", + "version": "-4254247902-export const Other = 0;\n", "signature": "-10003600206-export declare const Other = 0;\n" }, - "version": "-2951227185-export const Other = 0;\r\n", + "version": "-4254247902-export const Other = 0;\n", "signature": "-10003600206-export declare const Other = 0;\n" } }, @@ -142,6 +149,6 @@ exports.Other = 0; "latestChangedDtsFile": "./other.d.ts" }, "version": "FakeTSVersion", - "size": 922 + "size": 920 } diff --git a/tests/baselines/reference/tsbuild/projectReferenceWithRootDirInParent/reports-error-for-same-tsbuildinfo-file.js b/tests/baselines/reference/tsbuild/projectReferenceWithRootDirInParent/reports-error-for-same-tsbuildinfo-file.js index 94b95e7dc7c79..d3e7a8cc918e0 100644 --- a/tests/baselines/reference/tsbuild/projectReferenceWithRootDirInParent/reports-error-for-same-tsbuildinfo-file.js +++ b/tests/baselines/reference/tsbuild/projectReferenceWithRootDirInParent/reports-error-for-same-tsbuildinfo-file.js @@ -16,57 +16,77 @@ interface ReadonlyArray {} declare const console: { log(msg: any): void; }; //// [/src/src/main/a.ts] -import { b } from './b'; -const a = b; +import { b } from './b'; +const a = b; + //// [/src/src/main/b.ts] -export const b = 0; +export const b = 0; //// [/src/src/main/tsconfig.json] -{"compilerOptions":{"composite":true,"outDir":"../../dist/"},"references":[{"path":"../other"}]} +{ + "compilerOptions": { + "composite": true, + "outDir": "../../dist/" + }, + "references": [ + { + "path": "../other" + } + ] +} //// [/src/src/other/other.ts] -export const Other = 0; +export const Other = 0; //// [/src/src/other/tsconfig.json] -{"compilerOptions":{"composite":true,"outDir":"../../dist/"}} +{ + "compilerOptions": { + "composite": true, + "outDir": "../../dist/" + } +} //// [/src/tsconfig.base.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "rootDir": "./src/", - "outDir": "./dist/", - "skipDefaultLibCheck": true - }, - "exclude": [ - "node_modules" - ] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "rootDir": "./src/", + "outDir": "./dist/", + "skipDefaultLibCheck": true + }, + "exclude": [ + "node_modules" + ] } Output:: /lib/tsc --b /src/src/main --verbose -[12:00:08 AM] Projects in this build: +[12:00:17 AM] Projects in this build: * src/src/other/tsconfig.json * src/src/main/tsconfig.json -[12:00:09 AM] Project 'src/src/other/tsconfig.json' is out of date because output file 'src/dist/tsconfig.tsbuildinfo' does not exist +[12:00:18 AM] Project 'src/src/other/tsconfig.json' is out of date because output file 'src/dist/tsconfig.tsbuildinfo' does not exist -[12:00:10 AM] Building project '/src/src/other/tsconfig.json'... +[12:00:19 AM] Building project '/src/src/other/tsconfig.json'... -[12:00:17 AM] Project 'src/src/main/tsconfig.json' is out of date because buildinfo file 'src/dist/tsconfig.tsbuildinfo' indicates that file 'src/src/other/other.ts' was root file of compilation but not any more. +[12:00:26 AM] Project 'src/src/main/tsconfig.json' is out of date because buildinfo file 'src/dist/tsconfig.tsbuildinfo' indicates that file 'src/src/other/other.ts' was root file of compilation but not any more. -[12:00:18 AM] Building project '/src/src/main/tsconfig.json'... +[12:00:27 AM] Building project '/src/src/main/tsconfig.json'... -src/src/main/tsconfig.json:1:76 - error TS6377: Cannot write file '/src/dist/tsconfig.tsbuildinfo' because it will overwrite '.tsbuildinfo' file generated by referenced project '/src/src/other' +src/src/main/tsconfig.json:7:5 - error TS6377: Cannot write file '/src/dist/tsconfig.tsbuildinfo' because it will overwrite '.tsbuildinfo' file generated by referenced project '/src/src/other' -1 {"compilerOptions":{"composite":true,"outDir":"../../dist/"},"references":[{"path":"../other"}]} -   ~~~~~~~~~~~~~~~~~~~ +7 { +   ~ +8 "path": "../other" +  ~~~~~~~~~~~~~~~~~~~~~~~~ +9 } +  ~~~~~ Found 1 error. @@ -86,7 +106,7 @@ exports.Other = 0; //// [/src/dist/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../src/other/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2951227185-export const Other = 0;\r\n","signature":"-10003600206-export declare const Other = 0;\n"}],"root":[2],"options":{"composite":true,"outDir":"./"},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./other.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../src/other/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-4254247902-export const Other = 0;\n","signature":"-10003600206-export declare const Other = 0;\n"}],"root":[2],"options":{"composite":true,"outDir":"./"},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./other.d.ts"},"version":"FakeTSVersion"} //// [/src/dist/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -107,10 +127,10 @@ exports.Other = 0; }, "../src/other/other.ts": { "original": { - "version": "-2951227185-export const Other = 0;\r\n", + "version": "-4254247902-export const Other = 0;\n", "signature": "-10003600206-export declare const Other = 0;\n" }, - "version": "-2951227185-export const Other = 0;\r\n", + "version": "-4254247902-export const Other = 0;\n", "signature": "-10003600206-export declare const Other = 0;\n" } }, @@ -133,6 +153,6 @@ exports.Other = 0; "latestChangedDtsFile": "./other.d.ts" }, "version": "FakeTSVersion", - "size": 876 + "size": 874 } diff --git a/tests/baselines/reference/tsbuild/projectReferenceWithRootDirInParent/reports-no-error-when-tsbuildinfo-differ.js b/tests/baselines/reference/tsbuild/projectReferenceWithRootDirInParent/reports-no-error-when-tsbuildinfo-differ.js index c4687d08f7710..7c1734fc793e7 100644 --- a/tests/baselines/reference/tsbuild/projectReferenceWithRootDirInParent/reports-no-error-when-tsbuildinfo-differ.js +++ b/tests/baselines/reference/tsbuild/projectReferenceWithRootDirInParent/reports-no-error-when-tsbuildinfo-differ.js @@ -16,52 +16,68 @@ interface ReadonlyArray {} declare const console: { log(msg: any): void; }; //// [/src/src/main/a.ts] -import { b } from './b'; -const a = b; +import { b } from './b'; +const a = b; + //// [/src/src/main/b.ts] -export const b = 0; +export const b = 0; //// [/src/src/main/tsconfig.main.json] -{"compilerOptions":{"composite":true,"outDir":"../../dist/"},"references":[{"path":"../other/tsconfig.other.json"}]} +{ + "compilerOptions": { + "composite": true, + "outDir": "../../dist/" + }, + "references": [ + { + "path": "../other/tsconfig.other.json" + } + ] +} //// [/src/src/other/other.ts] -export const Other = 0; +export const Other = 0; //// [/src/src/other/tsconfig.other.json] -{"compilerOptions":{"composite":true,"outDir":"../../dist/"}} +{ + "compilerOptions": { + "composite": true, + "outDir": "../../dist/" + } +} //// [/src/tsconfig.base.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "rootDir": "./src/", - "outDir": "./dist/", - "skipDefaultLibCheck": true - }, - "exclude": [ - "node_modules" - ] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "rootDir": "./src/", + "outDir": "./dist/", + "skipDefaultLibCheck": true + }, + "exclude": [ + "node_modules" + ] } Output:: /lib/tsc --b /src/src/main/tsconfig.main.json --verbose -[12:00:10 AM] Projects in this build: +[12:00:19 AM] Projects in this build: * src/src/other/tsconfig.other.json * src/src/main/tsconfig.main.json -[12:00:11 AM] Project 'src/src/other/tsconfig.other.json' is out of date because output file 'src/dist/tsconfig.other.tsbuildinfo' does not exist +[12:00:20 AM] Project 'src/src/other/tsconfig.other.json' is out of date because output file 'src/dist/tsconfig.other.tsbuildinfo' does not exist -[12:00:12 AM] Building project '/src/src/other/tsconfig.other.json'... +[12:00:21 AM] Building project '/src/src/other/tsconfig.other.json'... -[12:00:19 AM] Project 'src/src/main/tsconfig.main.json' is out of date because output file 'src/dist/tsconfig.main.tsbuildinfo' does not exist +[12:00:28 AM] Project 'src/src/main/tsconfig.main.json' is out of date because output file 'src/dist/tsconfig.main.tsbuildinfo' does not exist -[12:00:20 AM] Building project '/src/src/main/tsconfig.main.json'... +[12:00:29 AM] Building project '/src/src/main/tsconfig.main.json'... exitCode:: ExitStatus.Success @@ -100,7 +116,7 @@ exports.Other = 0; //// [/src/dist/tsconfig.main.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../src/main/b.ts","../src/main/a.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-11678562673-export const b = 0;\r\n","signature":"-5842658702-export declare const b = 0;\n"},{"version":"-17071184049-import { b } from './b';\r\nconst a = b;","signature":"-3531856636-export {};\n"}],"root":[2,3],"options":{"composite":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,3,2],"latestChangedDtsFile":"./a.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../src/main/b.ts","../src/main/a.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-13368948254-export const b = 0;\n","signature":"-5842658702-export declare const b = 0;\n"},{"version":"-18592354388-import { b } from './b';\nconst a = b;\n","signature":"-3531856636-export {};\n"}],"root":[2,3],"options":{"composite":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,3,2],"latestChangedDtsFile":"./a.d.ts"},"version":"FakeTSVersion"} //// [/src/dist/tsconfig.main.tsbuildinfo.readable.baseline.txt] { @@ -127,18 +143,18 @@ exports.Other = 0; }, "../src/main/b.ts": { "original": { - "version": "-11678562673-export const b = 0;\r\n", + "version": "-13368948254-export const b = 0;\n", "signature": "-5842658702-export declare const b = 0;\n" }, - "version": "-11678562673-export const b = 0;\r\n", + "version": "-13368948254-export const b = 0;\n", "signature": "-5842658702-export declare const b = 0;\n" }, "../src/main/a.ts": { "original": { - "version": "-17071184049-import { b } from './b';\r\nconst a = b;", + "version": "-18592354388-import { b } from './b';\nconst a = b;\n", "signature": "-3531856636-export {};\n" }, - "version": "-17071184049-import { b } from './b';\r\nconst a = b;", + "version": "-18592354388-import { b } from './b';\nconst a = b;\n", "signature": "-3531856636-export {};\n" } }, @@ -170,11 +186,11 @@ exports.Other = 0; "latestChangedDtsFile": "./a.d.ts" }, "version": "FakeTSVersion", - "size": 1014 + "size": 1012 } //// [/src/dist/tsconfig.other.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../src/other/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2951227185-export const Other = 0;\r\n","signature":"-10003600206-export declare const Other = 0;\n"}],"root":[2],"options":{"composite":true,"outDir":"./"},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./other.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../src/other/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-4254247902-export const Other = 0;\n","signature":"-10003600206-export declare const Other = 0;\n"}],"root":[2],"options":{"composite":true,"outDir":"./"},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./other.d.ts"},"version":"FakeTSVersion"} //// [/src/dist/tsconfig.other.tsbuildinfo.readable.baseline.txt] { @@ -195,10 +211,10 @@ exports.Other = 0; }, "../src/other/other.ts": { "original": { - "version": "-2951227185-export const Other = 0;\r\n", + "version": "-4254247902-export const Other = 0;\n", "signature": "-10003600206-export declare const Other = 0;\n" }, - "version": "-2951227185-export const Other = 0;\r\n", + "version": "-4254247902-export const Other = 0;\n", "signature": "-10003600206-export declare const Other = 0;\n" } }, @@ -221,6 +237,6 @@ exports.Other = 0; "latestChangedDtsFile": "./other.d.ts" }, "version": "FakeTSVersion", - "size": 876 + "size": 874 } diff --git a/tests/baselines/reference/tsbuild/publicAPI/build-with-custom-transformers.js b/tests/baselines/reference/tsbuild/publicAPI/build-with-custom-transformers.js index 780420f72fa9c..41611dc19dae2 100644 --- a/tests/baselines/reference/tsbuild/publicAPI/build-with-custom-transformers.js +++ b/tests/baselines/reference/tsbuild/publicAPI/build-with-custom-transformers.js @@ -22,10 +22,24 @@ export enum e { } export function f2() { } // trailing //// [/src/shared/tsconfig.json] -{"compilerOptions":{"composite":true}} +{ + "compilerOptions": { + "composite": true + } +} //// [/src/tsconfig.json] -{"references":[{"path":"./shared/tsconfig.json"},{"path":"./webpack/tsconfig.json"}],"files":[]} +{ + "references": [ + { + "path": "./shared/tsconfig.json" + }, + { + "path": "./webpack/tsconfig.json" + } + ], + "files": [] +} //// [/src/webpack/index.ts] export function f2() { } @@ -35,7 +49,16 @@ export enum e2 { } export function f22() { } // trailing //// [/src/webpack/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[{"path":"../shared/tsconfig.json"}]} +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../shared/tsconfig.json" + } + ] +} @@ -55,8 +78,13 @@ Output:: [12:00:22 AM] Building project '/src/webpack/tsconfig.json'... exitCode:: ExitStatus.Success -Program root files: ["/src/shared/index.ts"] -Program options: {"composite":true,"configFilePath":"/src/shared/tsconfig.json"} +Program root files: [ + "/src/shared/index.ts" +] +Program options: { + "composite": true, + "configFilePath": "/src/shared/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -70,8 +98,13 @@ Shape signatures in builder refreshed for:: /lib/lib.d.ts (used version) /src/shared/index.ts (used version) -Program root files: ["/src/webpack/index.ts"] -Program options: {"composite":true,"configFilePath":"/src/webpack/tsconfig.json"} +Program root files: [ + "/src/webpack/index.ts" +] +Program options: { + "composite": true, + "configFilePath": "/src/webpack/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts diff --git a/tests/baselines/reference/tsbuild/resolveJsonModule/files-containing-json-file-non-composite.js b/tests/baselines/reference/tsbuild/resolveJsonModule/files-containing-json-file-non-composite.js index 64f6b164c2662..ebe6d8ab6a3ba 100644 --- a/tests/baselines/reference/tsbuild/resolveJsonModule/files-containing-json-file-non-composite.js +++ b/tests/baselines/reference/tsbuild/resolveJsonModule/files-containing-json-file-non-composite.js @@ -17,7 +17,7 @@ declare const console: { log(msg: any): void; }; //// [/src/src/hello.json] { - "hello": "world" + "hello": "world" } //// [/src/src/index.ts] @@ -27,19 +27,19 @@ export default hello.hello //// [/src/tsconfig.json] { - "compilerOptions": { - "moduleResolution": "node", - "module": "commonjs", - "resolveJsonModule": true, - "esModuleInterop": true, - "allowSyntheticDefaultImports": true, - "outDir": "dist", - "skipDefaultLibCheck": true - }, - "files": [ - "src/index.ts", - "src/hello.json" - ] + "compilerOptions": { + "moduleResolution": "node", + "module": "commonjs", + "resolveJsonModule": true, + "esModuleInterop": true, + "allowSyntheticDefaultImports": true, + "outDir": "dist", + "skipDefaultLibCheck": true + }, + "files": [ + "src/index.ts", + "src/hello.json" + ] } diff --git a/tests/baselines/reference/tsbuild/resolveJsonModule/files-containing-json-file.js b/tests/baselines/reference/tsbuild/resolveJsonModule/files-containing-json-file.js index 34859f3f5ec72..d1e74c1672567 100644 --- a/tests/baselines/reference/tsbuild/resolveJsonModule/files-containing-json-file.js +++ b/tests/baselines/reference/tsbuild/resolveJsonModule/files-containing-json-file.js @@ -17,7 +17,7 @@ declare const console: { log(msg: any): void; }; //// [/src/src/hello.json] { - "hello": "world" + "hello": "world" } //// [/src/src/index.ts] @@ -27,20 +27,20 @@ export default hello.hello //// [/src/tsconfig.json] { - "compilerOptions": { - "composite": true, - "moduleResolution": "node", - "module": "commonjs", - "resolveJsonModule": true, - "esModuleInterop": true, - "allowSyntheticDefaultImports": true, - "outDir": "dist", - "skipDefaultLibCheck": true - }, - "files": [ - "src/index.ts", - "src/hello.json" - ] + "compilerOptions": { + "composite": true, + "moduleResolution": "node", + "module": "commonjs", + "resolveJsonModule": true, + "esModuleInterop": true, + "allowSyntheticDefaultImports": true, + "outDir": "dist", + "skipDefaultLibCheck": true + }, + "files": [ + "src/index.ts", + "src/hello.json" + ] } @@ -90,7 +90,7 @@ exports.default = hello_json_1.default.hello; //// [/src/dist/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../src/hello.json","../src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"7507174767-{\n \"hello\": \"world\"\n}",{"version":"-6443385642-import hello from \"./hello.json\"\nexport default hello.hello\n","signature":"6785192742-declare const _default: string;\nexport default _default;\n"}],"root":[2,3],"options":{"allowSyntheticDefaultImports":true,"composite":true,"esModuleInterop":true,"module":1,"outDir":"./","skipDefaultLibCheck":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./src/index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../src/hello.json","../src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"6651571919-{\n \"hello\": \"world\"\n}",{"version":"-6443385642-import hello from \"./hello.json\"\nexport default hello.hello\n","signature":"6785192742-declare const _default: string;\nexport default _default;\n"}],"root":[2,3],"options":{"allowSyntheticDefaultImports":true,"composite":true,"esModuleInterop":true,"module":1,"outDir":"./","skipDefaultLibCheck":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./src/index.d.ts"},"version":"FakeTSVersion"} //// [/src/dist/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -116,8 +116,8 @@ exports.default = hello_json_1.default.hello; "affectsGlobalScope": true }, "../src/hello.json": { - "version": "7507174767-{\n \"hello\": \"world\"\n}", - "signature": "7507174767-{\n \"hello\": \"world\"\n}" + "version": "6651571919-{\n \"hello\": \"world\"\n}", + "signature": "6651571919-{\n \"hello\": \"world\"\n}" }, "../src/index.ts": { "original": { @@ -160,6 +160,6 @@ exports.default = hello_json_1.default.hello; "latestChangedDtsFile": "./src/index.d.ts" }, "version": "FakeTSVersion", - "size": 1122 + "size": 1123 } diff --git a/tests/baselines/reference/tsbuild/resolveJsonModule/importing-json-module-from-project-reference.js b/tests/baselines/reference/tsbuild/resolveJsonModule/importing-json-module-from-project-reference.js index 203f18cfb6ce8..40078a0a727c6 100644 --- a/tests/baselines/reference/tsbuild/resolveJsonModule/importing-json-module-from-project-reference.js +++ b/tests/baselines/reference/tsbuild/resolveJsonModule/importing-json-module-from-project-reference.js @@ -22,51 +22,51 @@ console.log(foo); //// [/src/main/tsconfig.json] { - "extends": "../tsconfig.json", - "include": [ - "./**/*.ts" - ], - "references": [ - { - "path": "../strings/tsconfig.json" - } - ] + "extends": "../tsconfig.json", + "include": [ + "./**/*.ts" + ], + "references": [ + { + "path": "../strings/tsconfig.json" + } + ] } //// [/src/strings/foo.json] { - "foo": "bar baz" + "foo": "bar baz" } //// [/src/strings/tsconfig.json] { - "extends": "../tsconfig.json", - "include": [ - "foo.json" - ], - "references": [] + "extends": "../tsconfig.json", + "include": [ + "foo.json" + ], + "references": [] } //// [/src/tsconfig.json] { - "compilerOptions": { - "target": "es5", - "module": "commonjs", - "rootDir": "./", - "composite": true, - "resolveJsonModule": true, - "strict": true, - "esModuleInterop": true - }, - "references": [ - { - "path": "./strings/tsconfig.json" + "compilerOptions": { + "target": "es5", + "module": "commonjs", + "rootDir": "./", + "composite": true, + "resolveJsonModule": true, + "strict": true, + "esModuleInterop": true }, - { - "path": "./main/tsconfig.json" - } - ], - "files": [] + "references": [ + { + "path": "./strings/tsconfig.json" + }, + { + "path": "./main/tsconfig.json" + } + ], + "files": [] } @@ -111,7 +111,7 @@ console.log(foo_json_1.foo); //// [/src/main/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../strings/foo.json","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-5425277207-{\n \"foo\": \"bar baz\"\n}",{"version":"-6647471184-import { foo } from '../strings/foo.json';\nconsole.log(foo);\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"esModuleInterop":true,"module":1,"rootDir":"..","strict":true,"target":1},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,3,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../strings/foo.json","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-6280880055-{\n \"foo\": \"bar baz\"\n}",{"version":"-6647471184-import { foo } from '../strings/foo.json';\nconsole.log(foo);\n","signature":"-3531856636-export {};\n"}],"root":[3],"options":{"composite":true,"esModuleInterop":true,"module":1,"rootDir":"..","strict":true,"target":1},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,3,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/main/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -137,8 +137,8 @@ console.log(foo_json_1.foo); "affectsGlobalScope": true }, "../strings/foo.json": { - "version": "-5425277207-{\n \"foo\": \"bar baz\"\n}", - "signature": "-5425277207-{\n \"foo\": \"bar baz\"\n}" + "version": "-6280880055-{\n \"foo\": \"bar baz\"\n}", + "signature": "-6280880055-{\n \"foo\": \"bar baz\"\n}" }, "./index.ts": { "original": { @@ -177,11 +177,11 @@ console.log(foo_json_1.foo); "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1030 + "size": 1031 } //// [/src/strings/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./foo.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-5425277207-{\n \"foo\": \"bar baz\"\n}"],"root":[2],"options":{"composite":true,"esModuleInterop":true,"module":1,"rootDir":"..","strict":true,"target":1},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./foo.json"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-6280880055-{\n \"foo\": \"bar baz\"\n}"],"root":[2],"options":{"composite":true,"esModuleInterop":true,"module":1,"rootDir":"..","strict":true,"target":1},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2]},"version":"FakeTSVersion"} //// [/src/strings/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -201,8 +201,8 @@ console.log(foo_json_1.foo); "affectsGlobalScope": true }, "./foo.json": { - "version": "-5425277207-{\n \"foo\": \"bar baz\"\n}", - "signature": "-5425277207-{\n \"foo\": \"bar baz\"\n}" + "version": "-6280880055-{\n \"foo\": \"bar baz\"\n}", + "signature": "-6280880055-{\n \"foo\": \"bar baz\"\n}" } }, "root": [ @@ -227,7 +227,7 @@ console.log(foo_json_1.foo); ] }, "version": "FakeTSVersion", - "size": 814 + "size": 815 } diff --git a/tests/baselines/reference/tsbuild/resolveJsonModule/include-and-files-non-composite.js b/tests/baselines/reference/tsbuild/resolveJsonModule/include-and-files-non-composite.js index e698ee8fbe27e..f414117ac9f02 100644 --- a/tests/baselines/reference/tsbuild/resolveJsonModule/include-and-files-non-composite.js +++ b/tests/baselines/reference/tsbuild/resolveJsonModule/include-and-files-non-composite.js @@ -17,7 +17,7 @@ declare const console: { log(msg: any): void; }; //// [/src/src/hello.json] { - "hello": "world" + "hello": "world" } //// [/src/src/index.ts] @@ -27,21 +27,21 @@ export default hello.hello //// [/src/tsconfig.json] { - "compilerOptions": { - "moduleResolution": "node", - "module": "commonjs", - "resolveJsonModule": true, - "esModuleInterop": true, - "allowSyntheticDefaultImports": true, - "outDir": "dist", - "skipDefaultLibCheck": true - }, - "files": [ - "src/hello.json" - ], - "include": [ - "src/**/*" - ] + "compilerOptions": { + "moduleResolution": "node", + "module": "commonjs", + "resolveJsonModule": true, + "esModuleInterop": true, + "allowSyntheticDefaultImports": true, + "outDir": "dist", + "skipDefaultLibCheck": true + }, + "files": [ + "src/hello.json" + ], + "include": [ + "src/**/*" + ] } diff --git a/tests/baselines/reference/tsbuild/resolveJsonModule/include-and-files.js b/tests/baselines/reference/tsbuild/resolveJsonModule/include-and-files.js index fd7898bd1d32b..12d2be187d9bb 100644 --- a/tests/baselines/reference/tsbuild/resolveJsonModule/include-and-files.js +++ b/tests/baselines/reference/tsbuild/resolveJsonModule/include-and-files.js @@ -17,7 +17,7 @@ declare const console: { log(msg: any): void; }; //// [/src/src/hello.json] { - "hello": "world" + "hello": "world" } //// [/src/src/index.ts] @@ -27,22 +27,22 @@ export default hello.hello //// [/src/tsconfig.json] { - "compilerOptions": { - "composite": true, - "moduleResolution": "node", - "module": "commonjs", - "resolveJsonModule": true, - "esModuleInterop": true, - "allowSyntheticDefaultImports": true, - "outDir": "dist", - "skipDefaultLibCheck": true - }, - "files": [ - "src/hello.json" - ], - "include": [ - "src/**/*" - ] + "compilerOptions": { + "composite": true, + "moduleResolution": "node", + "module": "commonjs", + "resolveJsonModule": true, + "esModuleInterop": true, + "allowSyntheticDefaultImports": true, + "outDir": "dist", + "skipDefaultLibCheck": true + }, + "files": [ + "src/hello.json" + ], + "include": [ + "src/**/*" + ] } @@ -92,7 +92,7 @@ exports.default = hello_json_1.default.hello; //// [/src/dist/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../src/hello.json","../src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"7507174767-{\n \"hello\": \"world\"\n}",{"version":"-6443385642-import hello from \"./hello.json\"\nexport default hello.hello\n","signature":"6785192742-declare const _default: string;\nexport default _default;\n"}],"root":[2,3],"options":{"allowSyntheticDefaultImports":true,"composite":true,"esModuleInterop":true,"module":1,"outDir":"./","skipDefaultLibCheck":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./src/index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../src/hello.json","../src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"6651571919-{\n \"hello\": \"world\"\n}",{"version":"-6443385642-import hello from \"./hello.json\"\nexport default hello.hello\n","signature":"6785192742-declare const _default: string;\nexport default _default;\n"}],"root":[2,3],"options":{"allowSyntheticDefaultImports":true,"composite":true,"esModuleInterop":true,"module":1,"outDir":"./","skipDefaultLibCheck":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./src/index.d.ts"},"version":"FakeTSVersion"} //// [/src/dist/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -118,8 +118,8 @@ exports.default = hello_json_1.default.hello; "affectsGlobalScope": true }, "../src/hello.json": { - "version": "7507174767-{\n \"hello\": \"world\"\n}", - "signature": "7507174767-{\n \"hello\": \"world\"\n}" + "version": "6651571919-{\n \"hello\": \"world\"\n}", + "signature": "6651571919-{\n \"hello\": \"world\"\n}" }, "../src/index.ts": { "original": { @@ -162,6 +162,6 @@ exports.default = hello_json_1.default.hello; "latestChangedDtsFile": "./src/index.d.ts" }, "version": "FakeTSVersion", - "size": 1122 + "size": 1123 } diff --git a/tests/baselines/reference/tsbuild/resolveJsonModule/include-of-json-along-with-other-include-and-file-name-matches-ts-file-non-composite.js b/tests/baselines/reference/tsbuild/resolveJsonModule/include-of-json-along-with-other-include-and-file-name-matches-ts-file-non-composite.js index 141fdd0a23e1e..11024873616ce 100644 --- a/tests/baselines/reference/tsbuild/resolveJsonModule/include-of-json-along-with-other-include-and-file-name-matches-ts-file-non-composite.js +++ b/tests/baselines/reference/tsbuild/resolveJsonModule/include-of-json-along-with-other-include-and-file-name-matches-ts-file-non-composite.js @@ -17,7 +17,7 @@ declare const console: { log(msg: any): void; }; //// [/src/src/index.json] { - "hello": "world" + "hello": "world" } //// [/src/src/index.ts] @@ -27,19 +27,19 @@ export default hello.hello //// [/src/tsconfig.json] { - "compilerOptions": { - "moduleResolution": "node", - "module": "commonjs", - "resolveJsonModule": true, - "esModuleInterop": true, - "allowSyntheticDefaultImports": true, - "outDir": "dist", - "skipDefaultLibCheck": true - }, - "include": [ - "src/**/*", - "src/**/*.json" - ] + "compilerOptions": { + "moduleResolution": "node", + "module": "commonjs", + "resolveJsonModule": true, + "esModuleInterop": true, + "allowSyntheticDefaultImports": true, + "outDir": "dist", + "skipDefaultLibCheck": true + }, + "include": [ + "src/**/*", + "src/**/*.json" + ] } diff --git a/tests/baselines/reference/tsbuild/resolveJsonModule/include-of-json-along-with-other-include-and-file-name-matches-ts-file.js b/tests/baselines/reference/tsbuild/resolveJsonModule/include-of-json-along-with-other-include-and-file-name-matches-ts-file.js index 54837b6d57624..9c45855f4c325 100644 --- a/tests/baselines/reference/tsbuild/resolveJsonModule/include-of-json-along-with-other-include-and-file-name-matches-ts-file.js +++ b/tests/baselines/reference/tsbuild/resolveJsonModule/include-of-json-along-with-other-include-and-file-name-matches-ts-file.js @@ -17,7 +17,7 @@ declare const console: { log(msg: any): void; }; //// [/src/src/index.json] { - "hello": "world" + "hello": "world" } //// [/src/src/index.ts] @@ -27,20 +27,20 @@ export default hello.hello //// [/src/tsconfig.json] { - "compilerOptions": { - "composite": true, - "moduleResolution": "node", - "module": "commonjs", - "resolveJsonModule": true, - "esModuleInterop": true, - "allowSyntheticDefaultImports": true, - "outDir": "dist", - "skipDefaultLibCheck": true - }, - "include": [ - "src/**/*", - "src/**/*.json" - ] + "compilerOptions": { + "composite": true, + "moduleResolution": "node", + "module": "commonjs", + "resolveJsonModule": true, + "esModuleInterop": true, + "allowSyntheticDefaultImports": true, + "outDir": "dist", + "skipDefaultLibCheck": true + }, + "include": [ + "src/**/*", + "src/**/*.json" + ] } @@ -90,7 +90,7 @@ exports.default = index_json_1.default.hello; //// [/src/dist/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../src/index.json","../src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"7507174767-{\n \"hello\": \"world\"\n}",{"version":"-19435552038-import hello from \"./index.json\"\nexport default hello.hello\n","signature":"6785192742-declare const _default: string;\nexport default _default;\n"}],"root":[2,3],"options":{"allowSyntheticDefaultImports":true,"composite":true,"esModuleInterop":true,"module":1,"outDir":"./","skipDefaultLibCheck":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./src/index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../src/index.json","../src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"6651571919-{\n \"hello\": \"world\"\n}",{"version":"-19435552038-import hello from \"./index.json\"\nexport default hello.hello\n","signature":"6785192742-declare const _default: string;\nexport default _default;\n"}],"root":[2,3],"options":{"allowSyntheticDefaultImports":true,"composite":true,"esModuleInterop":true,"module":1,"outDir":"./","skipDefaultLibCheck":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./src/index.d.ts"},"version":"FakeTSVersion"} //// [/src/dist/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -116,8 +116,8 @@ exports.default = index_json_1.default.hello; "affectsGlobalScope": true }, "../src/index.json": { - "version": "7507174767-{\n \"hello\": \"world\"\n}", - "signature": "7507174767-{\n \"hello\": \"world\"\n}" + "version": "6651571919-{\n \"hello\": \"world\"\n}", + "signature": "6651571919-{\n \"hello\": \"world\"\n}" }, "../src/index.ts": { "original": { @@ -160,6 +160,6 @@ exports.default = index_json_1.default.hello; "latestChangedDtsFile": "./src/index.d.ts" }, "version": "FakeTSVersion", - "size": 1123 + "size": 1124 } diff --git a/tests/baselines/reference/tsbuild/resolveJsonModule/include-of-json-along-with-other-include-non-composite.js b/tests/baselines/reference/tsbuild/resolveJsonModule/include-of-json-along-with-other-include-non-composite.js index 309cf5a7e6fb6..52bbbb9f24ea9 100644 --- a/tests/baselines/reference/tsbuild/resolveJsonModule/include-of-json-along-with-other-include-non-composite.js +++ b/tests/baselines/reference/tsbuild/resolveJsonModule/include-of-json-along-with-other-include-non-composite.js @@ -17,7 +17,7 @@ declare const console: { log(msg: any): void; }; //// [/src/src/hello.json] { - "hello": "world" + "hello": "world" } //// [/src/src/index.ts] @@ -27,19 +27,19 @@ export default hello.hello //// [/src/tsconfig.json] { - "compilerOptions": { - "moduleResolution": "node", - "module": "commonjs", - "resolveJsonModule": true, - "esModuleInterop": true, - "allowSyntheticDefaultImports": true, - "outDir": "dist", - "skipDefaultLibCheck": true - }, - "include": [ - "src/**/*", - "src/**/*.json" - ] + "compilerOptions": { + "moduleResolution": "node", + "module": "commonjs", + "resolveJsonModule": true, + "esModuleInterop": true, + "allowSyntheticDefaultImports": true, + "outDir": "dist", + "skipDefaultLibCheck": true + }, + "include": [ + "src/**/*", + "src/**/*.json" + ] } diff --git a/tests/baselines/reference/tsbuild/resolveJsonModule/include-of-json-along-with-other-include.js b/tests/baselines/reference/tsbuild/resolveJsonModule/include-of-json-along-with-other-include.js index 92dc7d0ebddaf..c02705c73c7d8 100644 --- a/tests/baselines/reference/tsbuild/resolveJsonModule/include-of-json-along-with-other-include.js +++ b/tests/baselines/reference/tsbuild/resolveJsonModule/include-of-json-along-with-other-include.js @@ -17,7 +17,7 @@ declare const console: { log(msg: any): void; }; //// [/src/src/hello.json] { - "hello": "world" + "hello": "world" } //// [/src/src/index.ts] @@ -27,20 +27,20 @@ export default hello.hello //// [/src/tsconfig.json] { - "compilerOptions": { - "composite": true, - "moduleResolution": "node", - "module": "commonjs", - "resolveJsonModule": true, - "esModuleInterop": true, - "allowSyntheticDefaultImports": true, - "outDir": "dist", - "skipDefaultLibCheck": true - }, - "include": [ - "src/**/*", - "src/**/*.json" - ] + "compilerOptions": { + "composite": true, + "moduleResolution": "node", + "module": "commonjs", + "resolveJsonModule": true, + "esModuleInterop": true, + "allowSyntheticDefaultImports": true, + "outDir": "dist", + "skipDefaultLibCheck": true + }, + "include": [ + "src/**/*", + "src/**/*.json" + ] } @@ -90,7 +90,7 @@ exports.default = hello_json_1.default.hello; //// [/src/dist/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../src/hello.json","../src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"7507174767-{\n \"hello\": \"world\"\n}",{"version":"-6443385642-import hello from \"./hello.json\"\nexport default hello.hello\n","signature":"6785192742-declare const _default: string;\nexport default _default;\n"}],"root":[2,3],"options":{"allowSyntheticDefaultImports":true,"composite":true,"esModuleInterop":true,"module":1,"outDir":"./","skipDefaultLibCheck":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./src/index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../src/hello.json","../src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"6651571919-{\n \"hello\": \"world\"\n}",{"version":"-6443385642-import hello from \"./hello.json\"\nexport default hello.hello\n","signature":"6785192742-declare const _default: string;\nexport default _default;\n"}],"root":[2,3],"options":{"allowSyntheticDefaultImports":true,"composite":true,"esModuleInterop":true,"module":1,"outDir":"./","skipDefaultLibCheck":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./src/index.d.ts"},"version":"FakeTSVersion"} //// [/src/dist/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -116,8 +116,8 @@ exports.default = hello_json_1.default.hello; "affectsGlobalScope": true }, "../src/hello.json": { - "version": "7507174767-{\n \"hello\": \"world\"\n}", - "signature": "7507174767-{\n \"hello\": \"world\"\n}" + "version": "6651571919-{\n \"hello\": \"world\"\n}", + "signature": "6651571919-{\n \"hello\": \"world\"\n}" }, "../src/index.ts": { "original": { @@ -160,6 +160,6 @@ exports.default = hello_json_1.default.hello; "latestChangedDtsFile": "./src/index.d.ts" }, "version": "FakeTSVersion", - "size": 1122 + "size": 1123 } diff --git a/tests/baselines/reference/tsbuild/resolveJsonModule/include-only-non-composite.js b/tests/baselines/reference/tsbuild/resolveJsonModule/include-only-non-composite.js index c095c98cd2d59..ec6f120870125 100644 --- a/tests/baselines/reference/tsbuild/resolveJsonModule/include-only-non-composite.js +++ b/tests/baselines/reference/tsbuild/resolveJsonModule/include-only-non-composite.js @@ -17,7 +17,7 @@ declare const console: { log(msg: any): void; }; //// [/src/src/hello.json] { - "hello": "world" + "hello": "world" } //// [/src/src/index.ts] @@ -27,18 +27,18 @@ export default hello.hello //// [/src/tsconfig.json] { - "compilerOptions": { - "moduleResolution": "node", - "module": "commonjs", - "resolveJsonModule": true, - "esModuleInterop": true, - "allowSyntheticDefaultImports": true, - "outDir": "dist", - "skipDefaultLibCheck": true - }, - "include": [ - "src/**/*" - ] + "compilerOptions": { + "moduleResolution": "node", + "module": "commonjs", + "resolveJsonModule": true, + "esModuleInterop": true, + "allowSyntheticDefaultImports": true, + "outDir": "dist", + "skipDefaultLibCheck": true + }, + "include": [ + "src/**/*" + ] } diff --git a/tests/baselines/reference/tsbuild/resolveJsonModule/include-only-with-json-not-in-rootDir-non-composite.js b/tests/baselines/reference/tsbuild/resolveJsonModule/include-only-with-json-not-in-rootDir-non-composite.js index 9e0d244c4bc94..3a62386d72b66 100644 --- a/tests/baselines/reference/tsbuild/resolveJsonModule/include-only-with-json-not-in-rootDir-non-composite.js +++ b/tests/baselines/reference/tsbuild/resolveJsonModule/include-only-with-json-not-in-rootDir-non-composite.js @@ -17,7 +17,7 @@ declare const console: { log(msg: any): void; }; //// [/src/hello.json] { - "hello": "world" + "hello": "world" } //// [/src/src/index.ts] @@ -27,19 +27,19 @@ export default hello.hello //// [/src/tsconfig.json] { - "compilerOptions": { - "moduleResolution": "node", - "module": "commonjs", - "resolveJsonModule": true, - "esModuleInterop": true, - "allowSyntheticDefaultImports": true, - "outDir": "dist", - "skipDefaultLibCheck": true, - "rootDir": "src" - }, - "include": [ - "src/**/*" - ] + "compilerOptions": { + "moduleResolution": "node", + "module": "commonjs", + "resolveJsonModule": true, + "esModuleInterop": true, + "allowSyntheticDefaultImports": true, + "outDir": "dist", + "skipDefaultLibCheck": true, + "rootDir": "src" + }, + "include": [ + "src/**/*" + ] } diff --git a/tests/baselines/reference/tsbuild/resolveJsonModule/include-only-with-json-not-in-rootDir.js b/tests/baselines/reference/tsbuild/resolveJsonModule/include-only-with-json-not-in-rootDir.js index 84471735a90a5..d56af724d3df5 100644 --- a/tests/baselines/reference/tsbuild/resolveJsonModule/include-only-with-json-not-in-rootDir.js +++ b/tests/baselines/reference/tsbuild/resolveJsonModule/include-only-with-json-not-in-rootDir.js @@ -17,7 +17,7 @@ declare const console: { log(msg: any): void; }; //// [/src/hello.json] { - "hello": "world" + "hello": "world" } //// [/src/src/index.ts] @@ -27,20 +27,20 @@ export default hello.hello //// [/src/tsconfig.json] { - "compilerOptions": { - "composite": true, - "moduleResolution": "node", - "module": "commonjs", - "resolveJsonModule": true, - "esModuleInterop": true, - "allowSyntheticDefaultImports": true, - "outDir": "dist", - "skipDefaultLibCheck": true, - "rootDir": "src" - }, - "include": [ - "src/**/*" - ] + "compilerOptions": { + "composite": true, + "moduleResolution": "node", + "module": "commonjs", + "resolveJsonModule": true, + "esModuleInterop": true, + "allowSyntheticDefaultImports": true, + "outDir": "dist", + "skipDefaultLibCheck": true, + "rootDir": "src" + }, + "include": [ + "src/**/*" + ] } @@ -82,7 +82,7 @@ exports.default = hello_json_1.default.hello; //// [/src/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../lib/lib.d.ts","./hello.json","./src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"7507174767-{\n \"hello\": \"world\"\n}",{"version":"-17927595516-import hello from \"../hello.json\"\nexport default hello.hello\n","signature":"6785192742-declare const _default: string;\nexport default _default;\n"}],"root":[3],"options":{"allowSyntheticDefaultImports":true,"composite":true,"esModuleInterop":true,"module":1,"outDir":"./dist","rootDir":"./src","skipDefaultLibCheck":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./dist/index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../lib/lib.d.ts","./hello.json","./src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"6651571919-{\n \"hello\": \"world\"\n}",{"version":"-17927595516-import hello from \"../hello.json\"\nexport default hello.hello\n","signature":"6785192742-declare const _default: string;\nexport default _default;\n"}],"root":[3],"options":{"allowSyntheticDefaultImports":true,"composite":true,"esModuleInterop":true,"module":1,"outDir":"./dist","rootDir":"./src","skipDefaultLibCheck":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./dist/index.d.ts"},"version":"FakeTSVersion"} //// [/src/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -108,8 +108,8 @@ exports.default = hello_json_1.default.hello; "affectsGlobalScope": true }, "./hello.json": { - "version": "7507174767-{\n \"hello\": \"world\"\n}", - "signature": "7507174767-{\n \"hello\": \"world\"\n}" + "version": "6651571919-{\n \"hello\": \"world\"\n}", + "signature": "6651571919-{\n \"hello\": \"world\"\n}" }, "./src/index.ts": { "original": { @@ -149,6 +149,6 @@ exports.default = hello_json_1.default.hello; "latestChangedDtsFile": "./dist/index.d.ts" }, "version": "FakeTSVersion", - "size": 1136 + "size": 1137 } diff --git a/tests/baselines/reference/tsbuild/resolveJsonModule/include-only-with-json-without-rootDir-but-outside-configDirectory-non-composite.js b/tests/baselines/reference/tsbuild/resolveJsonModule/include-only-with-json-without-rootDir-but-outside-configDirectory-non-composite.js index 7d6cef6f56c7c..51e4c91fada2c 100644 --- a/tests/baselines/reference/tsbuild/resolveJsonModule/include-only-with-json-without-rootDir-but-outside-configDirectory-non-composite.js +++ b/tests/baselines/reference/tsbuild/resolveJsonModule/include-only-with-json-without-rootDir-but-outside-configDirectory-non-composite.js @@ -2,7 +2,7 @@ currentDirectory:: / useCaseSensitiveFileNames: false Input:: //// [/hello.json] { - "hello": "world" + "hello": "world" } //// [/lib/lib.d.ts] @@ -27,18 +27,18 @@ export default hello.hello //// [/src/tsconfig.json] { - "compilerOptions": { - "moduleResolution": "node", - "module": "commonjs", - "resolveJsonModule": true, - "esModuleInterop": true, - "allowSyntheticDefaultImports": true, - "outDir": "dist", - "skipDefaultLibCheck": true - }, - "include": [ - "src/**/*" - ] + "compilerOptions": { + "moduleResolution": "node", + "module": "commonjs", + "resolveJsonModule": true, + "esModuleInterop": true, + "allowSyntheticDefaultImports": true, + "outDir": "dist", + "skipDefaultLibCheck": true + }, + "include": [ + "src/**/*" + ] } diff --git a/tests/baselines/reference/tsbuild/resolveJsonModule/include-only-with-json-without-rootDir-but-outside-configDirectory.js b/tests/baselines/reference/tsbuild/resolveJsonModule/include-only-with-json-without-rootDir-but-outside-configDirectory.js index 951aaca3be9c8..45ecde39328f4 100644 --- a/tests/baselines/reference/tsbuild/resolveJsonModule/include-only-with-json-without-rootDir-but-outside-configDirectory.js +++ b/tests/baselines/reference/tsbuild/resolveJsonModule/include-only-with-json-without-rootDir-but-outside-configDirectory.js @@ -2,7 +2,7 @@ currentDirectory:: / useCaseSensitiveFileNames: false Input:: //// [/hello.json] { - "hello": "world" + "hello": "world" } //// [/lib/lib.d.ts] @@ -27,19 +27,19 @@ export default hello.hello //// [/src/tsconfig.json] { - "compilerOptions": { - "composite": true, - "moduleResolution": "node", - "module": "commonjs", - "resolveJsonModule": true, - "esModuleInterop": true, - "allowSyntheticDefaultImports": true, - "outDir": "dist", - "skipDefaultLibCheck": true - }, - "include": [ - "src/**/*" - ] + "compilerOptions": { + "composite": true, + "moduleResolution": "node", + "module": "commonjs", + "resolveJsonModule": true, + "esModuleInterop": true, + "allowSyntheticDefaultImports": true, + "outDir": "dist", + "skipDefaultLibCheck": true + }, + "include": [ + "src/**/*" + ] } @@ -81,7 +81,7 @@ exports.default = hello_json_1.default.hello; //// [/src/dist/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../../hello.json","../src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"7507174767-{\n \"hello\": \"world\"\n}",{"version":"-19695506097-import hello from \"../../hello.json\"\nexport default hello.hello\n","signature":"6785192742-declare const _default: string;\nexport default _default;\n"}],"root":[3],"options":{"allowSyntheticDefaultImports":true,"composite":true,"esModuleInterop":true,"module":1,"outDir":"./","skipDefaultLibCheck":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[2,1,3],"latestChangedDtsFile":"./src/index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../../hello.json","../src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"6651571919-{\n \"hello\": \"world\"\n}",{"version":"-19695506097-import hello from \"../../hello.json\"\nexport default hello.hello\n","signature":"6785192742-declare const _default: string;\nexport default _default;\n"}],"root":[3],"options":{"allowSyntheticDefaultImports":true,"composite":true,"esModuleInterop":true,"module":1,"outDir":"./","skipDefaultLibCheck":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[2,1,3],"latestChangedDtsFile":"./src/index.d.ts"},"version":"FakeTSVersion"} //// [/src/dist/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -107,8 +107,8 @@ exports.default = hello_json_1.default.hello; "affectsGlobalScope": true }, "../../hello.json": { - "version": "7507174767-{\n \"hello\": \"world\"\n}", - "signature": "7507174767-{\n \"hello\": \"world\"\n}" + "version": "6651571919-{\n \"hello\": \"world\"\n}", + "signature": "6651571919-{\n \"hello\": \"world\"\n}" }, "../src/index.ts": { "original": { @@ -147,6 +147,6 @@ exports.default = hello_json_1.default.hello; "latestChangedDtsFile": "./src/index.d.ts" }, "version": "FakeTSVersion", - "size": 1124 + "size": 1125 } diff --git a/tests/baselines/reference/tsbuild/resolveJsonModule/include-only-without-outDir-non-composite.js b/tests/baselines/reference/tsbuild/resolveJsonModule/include-only-without-outDir-non-composite.js index 2508e3a441178..1f06e58f574bc 100644 --- a/tests/baselines/reference/tsbuild/resolveJsonModule/include-only-without-outDir-non-composite.js +++ b/tests/baselines/reference/tsbuild/resolveJsonModule/include-only-without-outDir-non-composite.js @@ -17,7 +17,7 @@ declare const console: { log(msg: any): void; }; //// [/src/src/hello.json] { - "hello": "world" + "hello": "world" } //// [/src/src/index.ts] @@ -27,17 +27,17 @@ export default hello.hello //// [/src/tsconfig.json] { - "compilerOptions": { - "moduleResolution": "node", - "module": "commonjs", - "resolveJsonModule": true, - "esModuleInterop": true, - "allowSyntheticDefaultImports": true, - "skipDefaultLibCheck": true - }, - "include": [ - "src/**/*" - ] + "compilerOptions": { + "moduleResolution": "node", + "module": "commonjs", + "resolveJsonModule": true, + "esModuleInterop": true, + "allowSyntheticDefaultImports": true, + "skipDefaultLibCheck": true + }, + "include": [ + "src/**/*" + ] } diff --git a/tests/baselines/reference/tsbuild/resolveJsonModule/include-only-without-outDir.js b/tests/baselines/reference/tsbuild/resolveJsonModule/include-only-without-outDir.js index 7a4b6eb25e451..64149bb85246a 100644 --- a/tests/baselines/reference/tsbuild/resolveJsonModule/include-only-without-outDir.js +++ b/tests/baselines/reference/tsbuild/resolveJsonModule/include-only-without-outDir.js @@ -17,7 +17,7 @@ declare const console: { log(msg: any): void; }; //// [/src/src/hello.json] { - "hello": "world" + "hello": "world" } //// [/src/src/index.ts] @@ -27,18 +27,18 @@ export default hello.hello //// [/src/tsconfig.json] { - "compilerOptions": { - "composite": true, - "moduleResolution": "node", - "module": "commonjs", - "resolveJsonModule": true, - "esModuleInterop": true, - "allowSyntheticDefaultImports": true, - "skipDefaultLibCheck": true - }, - "include": [ - "src/**/*" - ] + "compilerOptions": { + "composite": true, + "moduleResolution": "node", + "module": "commonjs", + "resolveJsonModule": true, + "esModuleInterop": true, + "allowSyntheticDefaultImports": true, + "skipDefaultLibCheck": true + }, + "include": [ + "src/**/*" + ] } @@ -80,7 +80,7 @@ exports.default = hello_json_1.default.hello; //// [/src/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../lib/lib.d.ts","./src/hello.json","./src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"7507174767-{\n \"hello\": \"world\"\n}",{"version":"-6443385642-import hello from \"./hello.json\"\nexport default hello.hello\n","signature":"6785192742-declare const _default: string;\nexport default _default;\n"}],"root":[3],"options":{"allowSyntheticDefaultImports":true,"composite":true,"esModuleInterop":true,"module":1,"skipDefaultLibCheck":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./src/index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../lib/lib.d.ts","./src/hello.json","./src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"6651571919-{\n \"hello\": \"world\"\n}",{"version":"-6443385642-import hello from \"./hello.json\"\nexport default hello.hello\n","signature":"6785192742-declare const _default: string;\nexport default _default;\n"}],"root":[3],"options":{"allowSyntheticDefaultImports":true,"composite":true,"esModuleInterop":true,"module":1,"skipDefaultLibCheck":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./src/index.d.ts"},"version":"FakeTSVersion"} //// [/src/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -106,8 +106,8 @@ exports.default = hello_json_1.default.hello; "affectsGlobalScope": true }, "./src/hello.json": { - "version": "7507174767-{\n \"hello\": \"world\"\n}", - "signature": "7507174767-{\n \"hello\": \"world\"\n}" + "version": "6651571919-{\n \"hello\": \"world\"\n}", + "signature": "6651571919-{\n \"hello\": \"world\"\n}" }, "./src/index.ts": { "original": { @@ -145,6 +145,6 @@ exports.default = hello_json_1.default.hello; "latestChangedDtsFile": "./src/index.d.ts" }, "version": "FakeTSVersion", - "size": 1101 + "size": 1102 } diff --git a/tests/baselines/reference/tsbuild/resolveJsonModule/include-only.js b/tests/baselines/reference/tsbuild/resolveJsonModule/include-only.js index adedac4ecd148..cd9f6ecf0ad93 100644 --- a/tests/baselines/reference/tsbuild/resolveJsonModule/include-only.js +++ b/tests/baselines/reference/tsbuild/resolveJsonModule/include-only.js @@ -17,7 +17,7 @@ declare const console: { log(msg: any): void; }; //// [/src/src/hello.json] { - "hello": "world" + "hello": "world" } //// [/src/src/index.ts] @@ -27,19 +27,19 @@ export default hello.hello //// [/src/tsconfig.json] { - "compilerOptions": { - "composite": true, - "moduleResolution": "node", - "module": "commonjs", - "resolveJsonModule": true, - "esModuleInterop": true, - "allowSyntheticDefaultImports": true, - "outDir": "dist", - "skipDefaultLibCheck": true - }, - "include": [ - "src/**/*" - ] + "compilerOptions": { + "composite": true, + "moduleResolution": "node", + "module": "commonjs", + "resolveJsonModule": true, + "esModuleInterop": true, + "allowSyntheticDefaultImports": true, + "outDir": "dist", + "skipDefaultLibCheck": true + }, + "include": [ + "src/**/*" + ] } @@ -72,7 +72,7 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped //// [/src/dist/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../src/hello.json","../src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"7507174767-{\n \"hello\": \"world\"\n}","-6443385642-import hello from \"./hello.json\"\nexport default hello.hello\n"],"root":[3],"options":{"allowSyntheticDefaultImports":true,"composite":true,"esModuleInterop":true,"module":1,"outDir":"./","skipDefaultLibCheck":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"affectedFilesPendingEmit":[2,3],"emitSignatures":[3]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../src/hello.json","../src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"6651571919-{\n \"hello\": \"world\"\n}","-6443385642-import hello from \"./hello.json\"\nexport default hello.hello\n"],"root":[3],"options":{"allowSyntheticDefaultImports":true,"composite":true,"esModuleInterop":true,"module":1,"outDir":"./","skipDefaultLibCheck":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"affectedFilesPendingEmit":[2,3],"emitSignatures":[3]},"version":"FakeTSVersion"} //// [/src/dist/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -98,8 +98,8 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped "affectsGlobalScope": true }, "../src/hello.json": { - "version": "7507174767-{\n \"hello\": \"world\"\n}", - "signature": "7507174767-{\n \"hello\": \"world\"\n}" + "version": "6651571919-{\n \"hello\": \"world\"\n}", + "signature": "6651571919-{\n \"hello\": \"world\"\n}" }, "../src/index.ts": { "version": "-6443385642-import hello from \"./hello.json\"\nexport default hello.hello\n", @@ -150,6 +150,6 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped ] }, "version": "FakeTSVersion", - "size": 1040 + "size": 1041 } diff --git a/tests/baselines/reference/tsbuild/resolveJsonModule/sourcemap-non-composite.js b/tests/baselines/reference/tsbuild/resolveJsonModule/sourcemap-non-composite.js index 514c4e98685d8..bcbf17acf2685 100644 --- a/tests/baselines/reference/tsbuild/resolveJsonModule/sourcemap-non-composite.js +++ b/tests/baselines/reference/tsbuild/resolveJsonModule/sourcemap-non-composite.js @@ -17,7 +17,7 @@ declare const console: { log(msg: any): void; }; //// [/src/src/hello.json] { - "hello": "world" + "hello": "world" } //// [/src/src/index.ts] @@ -27,20 +27,20 @@ export default hello.hello //// [/src/tsconfig.json] { - "compilerOptions": { - "moduleResolution": "node", - "module": "commonjs", - "resolveJsonModule": true, - "esModuleInterop": true, - "allowSyntheticDefaultImports": true, - "outDir": "dist", - "skipDefaultLibCheck": true, - "sourceMap": true - }, - "files": [ - "src/index.ts", - "src/hello.json" - ] + "compilerOptions": { + "moduleResolution": "node", + "module": "commonjs", + "resolveJsonModule": true, + "esModuleInterop": true, + "allowSyntheticDefaultImports": true, + "outDir": "dist", + "skipDefaultLibCheck": true, + "sourceMap": true + }, + "files": [ + "src/index.ts", + "src/hello.json" + ] } diff --git a/tests/baselines/reference/tsbuild/resolveJsonModule/sourcemap.js b/tests/baselines/reference/tsbuild/resolveJsonModule/sourcemap.js index 56f5710b96c26..999d5e70fd7fc 100644 --- a/tests/baselines/reference/tsbuild/resolveJsonModule/sourcemap.js +++ b/tests/baselines/reference/tsbuild/resolveJsonModule/sourcemap.js @@ -17,7 +17,7 @@ declare const console: { log(msg: any): void; }; //// [/src/src/hello.json] { - "hello": "world" + "hello": "world" } //// [/src/src/index.ts] @@ -27,21 +27,21 @@ export default hello.hello //// [/src/tsconfig.json] { - "compilerOptions": { - "composite": true, - "moduleResolution": "node", - "module": "commonjs", - "resolveJsonModule": true, - "esModuleInterop": true, - "allowSyntheticDefaultImports": true, - "outDir": "dist", - "skipDefaultLibCheck": true, - "sourceMap": true - }, - "files": [ - "src/index.ts", - "src/hello.json" - ] + "compilerOptions": { + "composite": true, + "moduleResolution": "node", + "module": "commonjs", + "resolveJsonModule": true, + "esModuleInterop": true, + "allowSyntheticDefaultImports": true, + "outDir": "dist", + "skipDefaultLibCheck": true, + "sourceMap": true + }, + "files": [ + "src/index.ts", + "src/hello.json" + ] } @@ -95,7 +95,7 @@ exports.default = hello_json_1.default.hello; {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;AAAA,4DAAgC;AAChC,kBAAe,oBAAK,CAAC,KAAK,CAAA"} //// [/src/dist/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../src/hello.json","../src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"7507174767-{\n \"hello\": \"world\"\n}",{"version":"-6443385642-import hello from \"./hello.json\"\nexport default hello.hello\n","signature":"6785192742-declare const _default: string;\nexport default _default;\n"}],"root":[2,3],"options":{"allowSyntheticDefaultImports":true,"composite":true,"esModuleInterop":true,"module":1,"outDir":"./","skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./src/index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../src/hello.json","../src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"6651571919-{\n \"hello\": \"world\"\n}",{"version":"-6443385642-import hello from \"./hello.json\"\nexport default hello.hello\n","signature":"6785192742-declare const _default: string;\nexport default _default;\n"}],"root":[2,3],"options":{"allowSyntheticDefaultImports":true,"composite":true,"esModuleInterop":true,"module":1,"outDir":"./","skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./src/index.d.ts"},"version":"FakeTSVersion"} //// [/src/dist/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -121,8 +121,8 @@ exports.default = hello_json_1.default.hello; "affectsGlobalScope": true }, "../src/hello.json": { - "version": "7507174767-{\n \"hello\": \"world\"\n}", - "signature": "7507174767-{\n \"hello\": \"world\"\n}" + "version": "6651571919-{\n \"hello\": \"world\"\n}", + "signature": "6651571919-{\n \"hello\": \"world\"\n}" }, "../src/index.ts": { "original": { @@ -166,7 +166,7 @@ exports.default = hello_json_1.default.hello; "latestChangedDtsFile": "./src/index.d.ts" }, "version": "FakeTSVersion", - "size": 1139 + "size": 1140 } diff --git a/tests/baselines/reference/tsbuild/resolveJsonModule/without-outDir-non-composite.js b/tests/baselines/reference/tsbuild/resolveJsonModule/without-outDir-non-composite.js index a483868dcc27b..38be4f67bbcfc 100644 --- a/tests/baselines/reference/tsbuild/resolveJsonModule/without-outDir-non-composite.js +++ b/tests/baselines/reference/tsbuild/resolveJsonModule/without-outDir-non-composite.js @@ -17,7 +17,7 @@ declare const console: { log(msg: any): void; }; //// [/src/src/hello.json] { - "hello": "world" + "hello": "world" } //// [/src/src/index.ts] @@ -27,18 +27,18 @@ export default hello.hello //// [/src/tsconfig.json] { - "compilerOptions": { - "moduleResolution": "node", - "module": "commonjs", - "resolveJsonModule": true, - "esModuleInterop": true, - "allowSyntheticDefaultImports": true, - "skipDefaultLibCheck": true - }, - "files": [ - "src/index.ts", - "src/hello.json" - ] + "compilerOptions": { + "moduleResolution": "node", + "module": "commonjs", + "resolveJsonModule": true, + "esModuleInterop": true, + "allowSyntheticDefaultImports": true, + "skipDefaultLibCheck": true + }, + "files": [ + "src/index.ts", + "src/hello.json" + ] } diff --git a/tests/baselines/reference/tsbuild/resolveJsonModule/without-outDir.js b/tests/baselines/reference/tsbuild/resolveJsonModule/without-outDir.js index db28d784ee026..f457e09ff941b 100644 --- a/tests/baselines/reference/tsbuild/resolveJsonModule/without-outDir.js +++ b/tests/baselines/reference/tsbuild/resolveJsonModule/without-outDir.js @@ -17,7 +17,7 @@ declare const console: { log(msg: any): void; }; //// [/src/src/hello.json] { - "hello": "world" + "hello": "world" } //// [/src/src/index.ts] @@ -27,19 +27,19 @@ export default hello.hello //// [/src/tsconfig.json] { - "compilerOptions": { - "composite": true, - "moduleResolution": "node", - "module": "commonjs", - "resolveJsonModule": true, - "esModuleInterop": true, - "allowSyntheticDefaultImports": true, - "skipDefaultLibCheck": true - }, - "files": [ - "src/index.ts", - "src/hello.json" - ] + "compilerOptions": { + "composite": true, + "moduleResolution": "node", + "module": "commonjs", + "resolveJsonModule": true, + "esModuleInterop": true, + "allowSyntheticDefaultImports": true, + "skipDefaultLibCheck": true + }, + "files": [ + "src/index.ts", + "src/hello.json" + ] } @@ -82,7 +82,7 @@ exports.default = hello_json_1.default.hello; //// [/src/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../lib/lib.d.ts","./src/hello.json","./src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"7507174767-{\n \"hello\": \"world\"\n}",{"version":"-6443385642-import hello from \"./hello.json\"\nexport default hello.hello\n","signature":"6785192742-declare const _default: string;\nexport default _default;\n"}],"root":[2,3],"options":{"allowSyntheticDefaultImports":true,"composite":true,"esModuleInterop":true,"module":1,"skipDefaultLibCheck":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./src/index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../lib/lib.d.ts","./src/hello.json","./src/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"6651571919-{\n \"hello\": \"world\"\n}",{"version":"-6443385642-import hello from \"./hello.json\"\nexport default hello.hello\n","signature":"6785192742-declare const _default: string;\nexport default _default;\n"}],"root":[2,3],"options":{"allowSyntheticDefaultImports":true,"composite":true,"esModuleInterop":true,"module":1,"skipDefaultLibCheck":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./src/index.d.ts"},"version":"FakeTSVersion"} //// [/src/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -108,8 +108,8 @@ exports.default = hello_json_1.default.hello; "affectsGlobalScope": true }, "./src/hello.json": { - "version": "7507174767-{\n \"hello\": \"world\"\n}", - "signature": "7507174767-{\n \"hello\": \"world\"\n}" + "version": "6651571919-{\n \"hello\": \"world\"\n}", + "signature": "6651571919-{\n \"hello\": \"world\"\n}" }, "./src/index.ts": { "original": { @@ -151,7 +151,7 @@ exports.default = hello_json_1.default.hello; "latestChangedDtsFile": "./src/index.d.ts" }, "version": "FakeTSVersion", - "size": 1103 + "size": 1104 } diff --git a/tests/baselines/reference/tsbuild/roots/when-consecutive-and-non-consecutive-are-mixed.js b/tests/baselines/reference/tsbuild/roots/when-consecutive-and-non-consecutive-are-mixed.js index 9187f6ec22139..68e417f6b3767 100644 --- a/tests/baselines/reference/tsbuild/roots/when-consecutive-and-non-consecutive-are-mixed.js +++ b/tests/baselines/reference/tsbuild/roots/when-consecutive-and-non-consecutive-are-mixed.js @@ -52,7 +52,17 @@ export const random = "hello"; export const random = "hello"; //// [/src/tsconfig.json] -{"compilerOptions":{"composite":true},"include":["file*.ts","nonconsecutive*.ts","asArray*.ts","anotherNonConsecutive.ts"]} +{ + "compilerOptions": { + "composite": true + }, + "include": [ + "file*.ts", + "nonconsecutive*.ts", + "asArray*.ts", + "anotherNonConsecutive.ts" + ] +} diff --git a/tests/baselines/reference/tsbuild/roots/when-files-are-not-consecutive.js b/tests/baselines/reference/tsbuild/roots/when-files-are-not-consecutive.js index f23344c653b63..8aa2b16ebb5b3 100644 --- a/tests/baselines/reference/tsbuild/roots/when-files-are-not-consecutive.js +++ b/tests/baselines/reference/tsbuild/roots/when-files-are-not-consecutive.js @@ -27,7 +27,14 @@ export const y = "world"; export const random = "world"; //// [/src/tsconfig.json] -{"compilerOptions":{"composite":true},"include":["file*.ts"]} +{ + "compilerOptions": { + "composite": true + }, + "include": [ + "file*.ts" + ] +} diff --git a/tests/baselines/reference/tsbuild/roots/when-multiple-root-files-are-consecutive.js b/tests/baselines/reference/tsbuild/roots/when-multiple-root-files-are-consecutive.js index 0bb551467ba32..f2ad83d386664 100644 --- a/tests/baselines/reference/tsbuild/roots/when-multiple-root-files-are-consecutive.js +++ b/tests/baselines/reference/tsbuild/roots/when-multiple-root-files-are-consecutive.js @@ -28,7 +28,14 @@ export const y = "world"; export const y = "world"; //// [/src/tsconfig.json] -{"compilerOptions":{"composite":true},"include":["*.ts"]} +{ + "compilerOptions": { + "composite": true + }, + "include": [ + "*.ts" + ] +} diff --git a/tests/baselines/reference/tsbuild/roots/when-two-root-files-are-consecutive.js b/tests/baselines/reference/tsbuild/roots/when-two-root-files-are-consecutive.js index f1c8511fb3f0b..adf865e099568 100644 --- a/tests/baselines/reference/tsbuild/roots/when-two-root-files-are-consecutive.js +++ b/tests/baselines/reference/tsbuild/roots/when-two-root-files-are-consecutive.js @@ -22,7 +22,14 @@ export const x = "hello"; export const y = "world"; //// [/src/tsconfig.json] -{"compilerOptions":{"composite":true},"include":["*.ts"]} +{ + "compilerOptions": { + "composite": true + }, + "include": [ + "*.ts" + ] +} diff --git a/tests/baselines/reference/tsbuild/sample1/always-builds-under-with-force-option.js b/tests/baselines/reference/tsbuild/sample1/always-builds-under-with-force-option.js index 03edee9a7891e..6461b247c629c 100644 --- a/tests/baselines/reference/tsbuild/sample1/always-builds-under-with-force-option.js +++ b/tests/baselines/reference/tsbuild/sample1/always-builds-under-with-force-option.js @@ -1,6 +1,6 @@ -currentDirectory:: / useCaseSensitiveFileNames: false +currentDirectory:: /user/username/projects/sample1 useCaseSensitiveFileNames: false Input:: -//// [/lib/lib.d.ts] +//// [/a/lib/lib.d.ts] /// interface Boolean {} interface Function {} @@ -15,130 +15,116 @@ interface Array { length: number; [n: number]: T; } interface ReadonlyArray {} declare const console: { log(msg: any): void; }; -//// [/src/core/anotherModule.ts] +//// [/user/username/projects/sample1/core/anotherModule.ts] export const World = "hello"; +//// [/user/username/projects/sample1/core/index.ts] +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } -//// [/src/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } - -//// [/src/core/some_decl.d.ts] +//// [/user/username/projects/sample1/core/some_decl.d.ts] declare const dts: any; - -//// [/src/core/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - } -} - -//// [/src/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; - - -//// [/src/logic/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../core" } - ] +//// [/user/username/projects/sample1/core/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + } } - -//// [/src/tests/index.ts] -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; +//// [/user/username/projects/sample1/logic/index.ts] +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; -//// [/src/tests/tsconfig.json] -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" } - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - } +//// [/user/username/projects/sample1/logic/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + }, + "references": [ + { + "path": "../core" + } + ] } -//// [/src/ui/index.ts] -import * as logic from '../logic'; - -export function run() { - console.log(logic.getSecondsInDay()); -} +//// [/user/username/projects/sample1/tests/index.ts] +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; -//// [/src/ui/tsconfig.json] -{ - "compilerOptions": { - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../logic/index" } - ] +//// [/user/username/projects/sample1/tests/tsconfig.json] +{ + "references": [ + { + "path": "../core" + }, + { + "path": "../logic" + } + ], + "files": [ + "index.ts" + ], + "compilerOptions": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + } } - Output:: -/lib/tsc --b /src/tests --force +/a/lib/tsc --b tests --force exitCode:: ExitStatus.Success -//// [/src/core/anotherModule.d.ts] +//// [/user/username/projects/sample1/core/anotherModule.d.ts] export declare const World = "hello"; //# sourceMappingURL=anotherModule.d.ts.map -//// [/src/core/anotherModule.d.ts.map] +//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] {"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} -//// [/src/core/anotherModule.js] +//// [/user/username/projects/sample1/core/anotherModule.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.World = void 0; exports.World = "hello"; -//// [/src/core/index.d.ts] +//// [/user/username/projects/sample1/core/index.d.ts] export declare const someString: string; export declare function leftPad(s: string, n: number): string; export declare function multiply(a: number, b: number): number; //# sourceMappingURL=index.d.ts.map -//// [/src/core/index.d.ts.map] +//// [/user/username/projects/sample1/core/index.d.ts.map] {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} -//// [/src/core/index.js] +//// [/user/username/projects/sample1/core/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.multiply = exports.leftPad = exports.someString = void 0; @@ -149,20 +135,20 @@ function multiply(a, b) { return a * b; } exports.multiply = multiply; -//// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\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"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -173,27 +159,27 @@ exports.multiply = multiply; }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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" }, - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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" }, "./some_decl.d.ts": { "original": { - "version": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", "affectsGlobalScope": true }, - "version": "-9253692965-declare const dts: any;\r\n", - "signature": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", "affectsGlobalScope": true } }, @@ -219,7 +205,7 @@ exports.multiply = multiply; "referencedMap": {}, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" @@ -227,16 +213,16 @@ exports.multiply = multiply; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1477 + "size": 1474 } -//// [/src/logic/index.d.ts] +//// [/user/username/projects/sample1/logic/index.d.ts] export declare function getSecondsInDay(): number; import * as mod from '../core/anotherModule'; export declare const m: typeof mod; -//// [/src/logic/index.js] +//// [/user/username/projects/sample1/logic/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.m = exports.getSecondsInDay = void 0; @@ -249,17 +235,17 @@ var mod = require("../core/anotherModule"); exports.m = mod; //# sourceMappingURL=index.js.map -//// [/src/logic/index.js.map] +//// [/user/username/projects/sample1/logic/index.js.map] {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAA,iCAAmC;AACnC,SAAgB,eAAe;IAC3B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC9B,CAAC;AAFD,0CAEC;AACD,2CAA6C;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} -//// [/src/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/logic/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "./index.ts" @@ -274,7 +260,7 @@ exports.m = mod; ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -293,10 +279,10 @@ exports.m = mod; }, "./index.ts": { "original": { - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -324,7 +310,7 @@ exports.m = mod; ] }, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "./index.ts" @@ -332,15 +318,15 @@ exports.m = mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1512 + "size": 1511 } -//// [/src/tests/index.d.ts] +//// [/user/username/projects/sample1/tests/index.d.ts] import * as mod from '../core/anotherModule'; export declare const m: typeof mod; -//// [/src/tests/index.js] +//// [/user/username/projects/sample1/tests/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.m = void 0; @@ -352,14 +338,14 @@ var mod = require("../core/anotherModule"); exports.m = mod; -//// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "../logic/index.d.ts", @@ -376,7 +362,7 @@ exports.m = mod; ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -399,10 +385,10 @@ exports.m = mod; }, "./index.ts": { "original": { - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -436,7 +422,7 @@ exports.m = mod; ] }, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "../logic/index.d.ts", @@ -445,7 +431,7 @@ exports.m = mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1657 + "size": 1653 } @@ -455,24 +441,24 @@ Input:: Output:: -/lib/tsc --b /src/tests --force +/a/lib/tsc --b tests --force exitCode:: ExitStatus.Success -//// [/src/core/anotherModule.d.ts] file written with same contents -//// [/src/core/anotherModule.d.ts.map] file written with same contents -//// [/src/core/anotherModule.js] file written with same contents -//// [/src/core/index.d.ts] file written with same contents -//// [/src/core/index.d.ts.map] file written with same contents -//// [/src/core/index.js] file written with same contents -//// [/src/core/tsconfig.tsbuildinfo] file written with same contents -//// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] file written with same contents -//// [/src/logic/index.d.ts] file written with same contents -//// [/src/logic/index.js] file written with same contents -//// [/src/logic/index.js.map] file written with same contents -//// [/src/logic/tsconfig.tsbuildinfo] file written with same contents -//// [/src/logic/tsconfig.tsbuildinfo.readable.baseline.txt] file written with same contents -//// [/src/tests/index.d.ts] file written with same contents -//// [/src/tests/index.js] file written with same contents -//// [/src/tests/tsconfig.tsbuildinfo] file written with same contents -//// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] file written with same contents +//// [/user/username/projects/sample1/core/anotherModule.d.ts] file written with same contents +//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] file written with same contents +//// [/user/username/projects/sample1/core/anotherModule.js] file written with same contents +//// [/user/username/projects/sample1/core/index.d.ts] file written with same contents +//// [/user/username/projects/sample1/core/index.d.ts.map] file written with same contents +//// [/user/username/projects/sample1/core/index.js] file written with same contents +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] file written with same contents +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] file written with same contents +//// [/user/username/projects/sample1/logic/index.d.ts] file written with same contents +//// [/user/username/projects/sample1/logic/index.js] file written with same contents +//// [/user/username/projects/sample1/logic/index.js.map] file written with same contents +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] file written with same contents +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] file written with same contents +//// [/user/username/projects/sample1/tests/index.d.ts] file written with same contents +//// [/user/username/projects/sample1/tests/index.js] file written with same contents +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] file written with same contents +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] file written with same contents diff --git a/tests/baselines/reference/tsbuild/sample1/building-project-in-not-build-order-doesnt-throw-error.js b/tests/baselines/reference/tsbuild/sample1/building-project-in-not-build-order-doesnt-throw-error.js index fdab2843fa1a7..8de489d0a435c 100644 --- a/tests/baselines/reference/tsbuild/sample1/building-project-in-not-build-order-doesnt-throw-error.js +++ b/tests/baselines/reference/tsbuild/sample1/building-project-in-not-build-order-doesnt-throw-error.js @@ -1,5 +1,5 @@ Input:: -//// [/lib/lib.d.ts] +//// [/a/lib/lib.d.ts] /// interface Boolean {} interface Function {} @@ -14,103 +14,89 @@ interface Array { length: number; [n: number]: T; } interface ReadonlyArray {} declare const console: { log(msg: any): void; }; -//// [/src/core/anotherModule.ts] +//// [/user/username/projects/sample1/core/anotherModule.ts] export const World = "hello"; +//// [/user/username/projects/sample1/core/index.ts] +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } -//// [/src/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } - -//// [/src/core/some_decl.d.ts] +//// [/user/username/projects/sample1/core/some_decl.d.ts] declare const dts: any; - -//// [/src/core/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - } +//// [/user/username/projects/sample1/core/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + } } -//// [/src/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; - - -//// [/src/logic/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../core" } - ] +//// [/user/username/projects/sample1/logic/index.ts] +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; + + +//// [/user/username/projects/sample1/logic/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + }, + "references": [ + { + "path": "../core" + } + ] } - -//// [/src/tests/index.ts] -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; - - -//// [/src/tests/tsconfig.json] -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" } - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - } -} - -//// [/src/ui/index.ts] -import * as logic from '../logic'; - -export function run() { - console.log(logic.getSecondsInDay()); -} - - -//// [/src/ui/tsconfig.json] -{ - "compilerOptions": { - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../logic/index" } - ] +//// [/user/username/projects/sample1/tests/index.ts] +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; + + +//// [/user/username/projects/sample1/tests/tsconfig.json] +{ + "references": [ + { + "path": "../core" + }, + { + "path": "../logic" + } + ], + "files": [ + "index.ts" + ], + "compilerOptions": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + } } - Output:: -/lib/tsc --build /src/logic2/tsconfig.json +/a/lib/tsc --build logic2/tsconfig.json exitCode:: ExitStatus.InvalidProject_OutputsSkipped diff --git a/tests/baselines/reference/tsbuild/sample1/building-using-buildReferencedProject.js b/tests/baselines/reference/tsbuild/sample1/building-using-buildReferencedProject.js index c23f728c6db4f..fc81771090052 100644 --- a/tests/baselines/reference/tsbuild/sample1/building-using-buildReferencedProject.js +++ b/tests/baselines/reference/tsbuild/sample1/building-using-buildReferencedProject.js @@ -1,5 +1,5 @@ Input:: -//// [/lib/lib.d.ts] +//// [/a/lib/lib.d.ts] /// interface Boolean {} interface Function {} @@ -14,142 +14,128 @@ interface Array { length: number; [n: number]: T; } interface ReadonlyArray {} declare const console: { log(msg: any): void; }; -//// [/src/core/anotherModule.ts] +//// [/user/username/projects/sample1/core/anotherModule.ts] export const World = "hello"; +//// [/user/username/projects/sample1/core/index.ts] +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } -//// [/src/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } - -//// [/src/core/some_decl.d.ts] +//// [/user/username/projects/sample1/core/some_decl.d.ts] declare const dts: any; - -//// [/src/core/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - } -} - -//// [/src/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; - - -//// [/src/logic/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../core" } - ] +//// [/user/username/projects/sample1/core/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + } } - -//// [/src/tests/index.ts] -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; +//// [/user/username/projects/sample1/logic/index.ts] +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; -//// [/src/tests/tsconfig.json] -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" } - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - } +//// [/user/username/projects/sample1/logic/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + }, + "references": [ + { + "path": "../core" + } + ] } -//// [/src/ui/index.ts] -import * as logic from '../logic'; - -export function run() { - console.log(logic.getSecondsInDay()); -} +//// [/user/username/projects/sample1/tests/index.ts] +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; -//// [/src/ui/tsconfig.json] -{ - "compilerOptions": { - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../logic/index" } - ] +//// [/user/username/projects/sample1/tests/tsconfig.json] +{ + "references": [ + { + "path": "../core" + }, + { + "path": "../logic" + } + ], + "files": [ + "index.ts" + ], + "compilerOptions": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + } } - Output:: -/lib/tsc --build /src/logic2/tsconfig.json -[12:00:06 AM] Projects in this build: - * src/core/tsconfig.json - * src/logic/tsconfig.json +/a/lib/tsc --build logic2/tsconfig.json +[12:00:22 AM] Projects in this build: + * core/tsconfig.json + * logic/tsconfig.json -[12:00:07 AM] Project 'src/core/tsconfig.json' is out of date because output file 'src/core/tsconfig.tsbuildinfo' does not exist +[12:00:23 AM] Project 'core/tsconfig.json' is out of date because output file 'core/tsconfig.tsbuildinfo' does not exist -[12:00:08 AM] Building project '/src/core/tsconfig.json'... +[12:00:24 AM] Building project '/user/username/projects/sample1/core/tsconfig.json'... -[12:00:18 AM] Project 'src/logic/tsconfig.json' is out of date because output file 'src/logic/tsconfig.tsbuildinfo' does not exist +[12:00:34 AM] Project 'logic/tsconfig.json' is out of date because output file 'logic/tsconfig.tsbuildinfo' does not exist -[12:00:19 AM] Building project '/src/logic/tsconfig.json'... +[12:00:35 AM] Building project '/user/username/projects/sample1/logic/tsconfig.json'... exitCode:: ExitStatus.Success -//// [/src/core/anotherModule.d.ts] +//// [/user/username/projects/sample1/core/anotherModule.d.ts] export declare const World = "hello"; //# sourceMappingURL=anotherModule.d.ts.map -//// [/src/core/anotherModule.d.ts.map] +//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] {"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} -//// [/src/core/anotherModule.js] +//// [/user/username/projects/sample1/core/anotherModule.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.World = void 0; exports.World = "hello"; -//// [/src/core/index.d.ts] +//// [/user/username/projects/sample1/core/index.d.ts] export declare const someString: string; export declare function leftPad(s: string, n: number): string; export declare function multiply(a: number, b: number): number; //# sourceMappingURL=index.d.ts.map -//// [/src/core/index.d.ts.map] +//// [/user/username/projects/sample1/core/index.d.ts.map] {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} -//// [/src/core/index.js] +//// [/user/username/projects/sample1/core/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.multiply = exports.leftPad = exports.someString = void 0; @@ -160,20 +146,20 @@ function multiply(a, b) { return a * b; } exports.multiply = multiply; -//// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\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"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -184,27 +170,27 @@ exports.multiply = multiply; }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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" }, - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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" }, "./some_decl.d.ts": { "original": { - "version": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", "affectsGlobalScope": true }, - "version": "-9253692965-declare const dts: any;\r\n", - "signature": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", "affectsGlobalScope": true } }, @@ -230,7 +216,7 @@ exports.multiply = multiply; "referencedMap": {}, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" @@ -238,16 +224,16 @@ exports.multiply = multiply; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1477 + "size": 1474 } -//// [/src/logic/index.d.ts] +//// [/user/username/projects/sample1/logic/index.d.ts] export declare function getSecondsInDay(): number; import * as mod from '../core/anotherModule'; export declare const m: typeof mod; -//// [/src/logic/index.js] +//// [/user/username/projects/sample1/logic/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.m = exports.getSecondsInDay = void 0; @@ -260,17 +246,17 @@ var mod = require("../core/anotherModule"); exports.m = mod; //# sourceMappingURL=index.js.map -//// [/src/logic/index.js.map] +//// [/user/username/projects/sample1/logic/index.js.map] {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAA,iCAAmC;AACnC,SAAgB,eAAe;IAC3B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC9B,CAAC;AAFD,0CAEC;AACD,2CAA6C;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} -//// [/src/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/logic/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "./index.ts" @@ -285,7 +271,7 @@ exports.m = mod; ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -304,10 +290,10 @@ exports.m = mod; }, "./index.ts": { "original": { - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -335,7 +321,7 @@ exports.m = mod; ] }, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "./index.ts" @@ -343,6 +329,6 @@ exports.m = mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1512 + "size": 1511 } diff --git a/tests/baselines/reference/tsbuild/sample1/building-using-getNextInvalidatedProject.js b/tests/baselines/reference/tsbuild/sample1/building-using-getNextInvalidatedProject.js index 252801aebf1e0..8ce0ee338444c 100644 --- a/tests/baselines/reference/tsbuild/sample1/building-using-getNextInvalidatedProject.js +++ b/tests/baselines/reference/tsbuild/sample1/building-using-getNextInvalidatedProject.js @@ -1,112 +1,120 @@ Input:: Output:: -//// [/user/username/projects/core/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - } +//// [/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; } + +//// [/user/username/projects/sample1/core/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + } } -//// [/user/username/projects/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/index.ts] +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } -//// [/user/username/projects/core/some_decl.d.ts] +//// [/user/username/projects/sample1/core/some_decl.d.ts] declare const dts: any; - -//// [/user/username/projects/core/anotherModule.ts] +//// [/user/username/projects/sample1/core/anotherModule.ts] export const World = "hello"; - -//// [/user/username/projects/logic/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../core" } - ] -} - - -//// [/user/username/projects/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; - - -//// [/user/username/projects/tests/tsconfig.json] -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" } - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - } +//// [/user/username/projects/sample1/logic/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + }, + "references": [ + { + "path": "../core" + } + ] } -//// [/user/username/projects/tests/index.ts] -import * as c from '../core/index'; -import * as logic from '../logic/index'; +//// [/user/username/projects/sample1/logic/index.ts] +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; -c.leftPad("", 10); -logic.getSecondsInDay(); -import * as mod from '../core/anotherModule'; -export const m = mod; +//// [/user/username/projects/sample1/tests/tsconfig.json] +{ + "references": [ + { + "path": "../core" + }, + { + "path": "../logic" + } + ], + "files": [ + "index.ts" + ], + "compilerOptions": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + } +} +//// [/user/username/projects/sample1/tests/index.ts] +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; -//// [/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; } -Project Result:: {"project":"/user/username/projects/core/tsconfig.json","result":0} +Project Result:: { + "project": "/user/username/projects/sample1/core/tsconfig.json", + "result": 0 +} Output:: -//// [/user/username/projects/core/anotherModule.js] +//// [/user/username/projects/sample1/core/anotherModule.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.World = void 0; exports.World = "hello"; -//// [/user/username/projects/core/anotherModule.d.ts.map] +//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] {"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} -//// [/user/username/projects/core/anotherModule.d.ts] +//// [/user/username/projects/sample1/core/anotherModule.d.ts] export declare const World = "hello"; //# sourceMappingURL=anotherModule.d.ts.map -//// [/user/username/projects/core/index.js] +//// [/user/username/projects/sample1/core/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.multiply = exports.leftPad = exports.someString = void 0; @@ -117,29 +125,29 @@ function multiply(a, b) { return a * b; } exports.multiply = multiply; -//// [/user/username/projects/core/index.d.ts.map] +//// [/user/username/projects/sample1/core/index.d.ts.map] {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} -//// [/user/username/projects/core/index.d.ts] +//// [/user/username/projects/sample1/core/index.d.ts] export declare const someString: string; export declare function leftPad(s: string, n: number): string; export declare function multiply(a: number, b: number): number; //# sourceMappingURL=index.d.ts.map -//// [/user/username/projects/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\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"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/user/username/projects/core/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../../../a/lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" ], "fileInfos": { - "../../../../a/lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "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; }", "affectsGlobalScope": true @@ -150,27 +158,27 @@ export declare function multiply(a: number, b: number): number; }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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" }, - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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" }, "./some_decl.d.ts": { "original": { - "version": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", "affectsGlobalScope": true }, - "version": "-9253692965-declare const dts: any;\r\n", - "signature": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", "affectsGlobalScope": true } }, @@ -196,7 +204,7 @@ export declare function multiply(a: number, b: number): number; "referencedMap": {}, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "../../../../a/lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" @@ -204,17 +212,20 @@ export declare function multiply(a: number, b: number): number; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1405 + "size": 1394 } -Project Result:: {"project":"/user/username/projects/logic/tsconfig.json","result":0} +Project Result:: { + "project": "/user/username/projects/sample1/logic/tsconfig.json", + "result": 0 +} Output:: -//// [/user/username/projects/logic/index.js.map] +//// [/user/username/projects/sample1/logic/index.js.map] {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAA,iCAAmC;AACnC,SAAgB,eAAe;IAC3B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC9B,CAAC;AAFD,0CAEC;AACD,2CAA6C;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} -//// [/user/username/projects/logic/index.js] +//// [/user/username/projects/sample1/logic/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.m = exports.getSecondsInDay = void 0; @@ -227,20 +238,20 @@ var mod = require("../core/anotherModule"); exports.m = mod; //# sourceMappingURL=index.js.map -//// [/user/username/projects/logic/index.d.ts] +//// [/user/username/projects/sample1/logic/index.d.ts] export declare function getSecondsInDay(): number; import * as mod from '../core/anotherModule'; export declare const m: typeof mod; -//// [/user/username/projects/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/user/username/projects/logic/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../../../a/lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "./index.ts" @@ -255,7 +266,7 @@ export declare const m: typeof mod; ] ], "fileInfos": { - "../../../../a/lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "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; }", "affectsGlobalScope": true @@ -274,10 +285,10 @@ export declare const m: typeof mod; }, "./index.ts": { "original": { - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -305,7 +316,7 @@ export declare const m: typeof mod; ] }, "semanticDiagnosticsPerFile": [ - "../../../../a/lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "./index.ts" @@ -313,14 +324,17 @@ export declare const m: typeof mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1440 + "size": 1431 } -Project Result:: {"project":"/user/username/projects/tests/tsconfig.json","result":0} +Project Result:: { + "project": "/user/username/projects/sample1/tests/tsconfig.json", + "result": 0 +} Output:: -//// [/user/username/projects/tests/index.js] +//// [/user/username/projects/sample1/tests/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.m = void 0; @@ -332,19 +346,19 @@ var mod = require("../core/anotherModule"); exports.m = mod; -//// [/user/username/projects/tests/index.d.ts] +//// [/user/username/projects/sample1/tests/index.d.ts] import * as mod from '../core/anotherModule'; export declare const m: typeof mod; -//// [/user/username/projects/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/user/username/projects/tests/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../../../a/lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "../logic/index.d.ts", @@ -361,7 +375,7 @@ export declare const m: typeof mod; ] ], "fileInfos": { - "../../../../a/lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "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; }", "affectsGlobalScope": true @@ -384,10 +398,10 @@ export declare const m: typeof mod; }, "./index.ts": { "original": { - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -421,7 +435,7 @@ export declare const m: typeof mod; ] }, "semanticDiagnosticsPerFile": [ - "../../../../a/lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "../logic/index.d.ts", @@ -430,7 +444,7 @@ export declare const m: typeof mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1585 + "size": 1573 } diff --git a/tests/baselines/reference/tsbuild/sample1/builds-correctly-when-declarationDir-is-specified.js b/tests/baselines/reference/tsbuild/sample1/builds-correctly-when-declarationDir-is-specified.js index 692c34f8651ec..6c48bbda69c8d 100644 --- a/tests/baselines/reference/tsbuild/sample1/builds-correctly-when-declarationDir-is-specified.js +++ b/tests/baselines/reference/tsbuild/sample1/builds-correctly-when-declarationDir-is-specified.js @@ -1,6 +1,6 @@ -currentDirectory:: / useCaseSensitiveFileNames: false +currentDirectory:: /user/username/projects/sample1 useCaseSensitiveFileNames: false Input:: -//// [/lib/lib.d.ts] +//// [/a/lib/lib.d.ts] /// interface Boolean {} interface Function {} @@ -15,118 +15,115 @@ interface Array { length: number; [n: number]: T; } interface ReadonlyArray {} declare const console: { log(msg: any): void; }; -//// [/src/core/anotherModule.ts] +//// [/user/username/projects/sample1/core/anotherModule.ts] export const World = "hello"; +//// [/user/username/projects/sample1/core/index.ts] +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } -//// [/src/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } - -//// [/src/core/some_decl.d.ts] +//// [/user/username/projects/sample1/core/some_decl.d.ts] declare const dts: any; - -//// [/src/core/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - } -} - -//// [/src/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); +//// [/user/username/projects/sample1/core/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + } } -import * as mod from '../core/anotherModule'; -export const m = mod; - -//// [/src/logic/tsconfig.json] -{"compilerOptions":{"composite":true,"declaration":true,"sourceMap":true,"declarationDir":"out/decls"},"references":[{"path":"../core"}]} - -//// [/src/tests/index.ts] -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; +//// [/user/username/projects/sample1/logic/index.ts] +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; -//// [/src/tests/tsconfig.json] -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" } - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - } +//// [/user/username/projects/sample1/logic/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "declarationDir": "out/decls" + }, + "references": [ + { + "path": "../core" + } + ] } -//// [/src/ui/index.ts] -import * as logic from '../logic'; - -export function run() { - console.log(logic.getSecondsInDay()); -} +//// [/user/username/projects/sample1/tests/index.ts] +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; -//// [/src/ui/tsconfig.json] -{ - "compilerOptions": { - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../logic/index" } - ] +//// [/user/username/projects/sample1/tests/tsconfig.json] +{ + "references": [ + { + "path": "../core" + }, + { + "path": "../logic" + } + ], + "files": [ + "index.ts" + ], + "compilerOptions": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + } } - Output:: -/lib/tsc --b /src/tests +/a/lib/tsc --b tests exitCode:: ExitStatus.Success -//// [/src/core/anotherModule.d.ts] +//// [/user/username/projects/sample1/core/anotherModule.d.ts] export declare const World = "hello"; //# sourceMappingURL=anotherModule.d.ts.map -//// [/src/core/anotherModule.d.ts.map] +//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] {"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} -//// [/src/core/anotherModule.js] +//// [/user/username/projects/sample1/core/anotherModule.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.World = void 0; exports.World = "hello"; -//// [/src/core/index.d.ts] +//// [/user/username/projects/sample1/core/index.d.ts] export declare const someString: string; export declare function leftPad(s: string, n: number): string; export declare function multiply(a: number, b: number): number; //# sourceMappingURL=index.d.ts.map -//// [/src/core/index.d.ts.map] +//// [/user/username/projects/sample1/core/index.d.ts.map] {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} -//// [/src/core/index.js] +//// [/user/username/projects/sample1/core/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.multiply = exports.leftPad = exports.someString = void 0; @@ -137,20 +134,20 @@ function multiply(a, b) { return a * b; } exports.multiply = multiply; -//// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\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"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -161,27 +158,27 @@ exports.multiply = multiply; }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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" }, - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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" }, "./some_decl.d.ts": { "original": { - "version": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", "affectsGlobalScope": true }, - "version": "-9253692965-declare const dts: any;\r\n", - "signature": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", "affectsGlobalScope": true } }, @@ -207,7 +204,7 @@ exports.multiply = multiply; "referencedMap": {}, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" @@ -215,10 +212,10 @@ exports.multiply = multiply; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1477 + "size": 1474 } -//// [/src/logic/index.js] +//// [/user/username/projects/sample1/logic/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.m = exports.getSecondsInDay = void 0; @@ -231,23 +228,23 @@ var mod = require("../core/anotherModule"); exports.m = mod; //# sourceMappingURL=index.js.map -//// [/src/logic/index.js.map] +//// [/user/username/projects/sample1/logic/index.js.map] {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAA,iCAAmC;AACnC,SAAgB,eAAe;IAC3B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC9B,CAAC;AAFD,0CAEC;AACD,2CAA6C;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} -//// [/src/logic/out/decls/index.d.ts] +//// [/user/username/projects/sample1/logic/out/decls/index.d.ts] export declare function getSecondsInDay(): number; import * as mod from '../core/anotherModule'; export declare const m: typeof mod; -//// [/src/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"declarationDir":"./out/decls","sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./out/decls/index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"declarationDir":"./out/decls","sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./out/decls/index.d.ts"},"version":"FakeTSVersion"} -//// [/src/logic/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "./index.ts" @@ -262,7 +259,7 @@ export declare const m: typeof mod; ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -281,10 +278,10 @@ export declare const m: typeof mod; }, "./index.ts": { "original": { - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -312,7 +309,7 @@ export declare const m: typeof mod; ] }, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "./index.ts" @@ -320,15 +317,15 @@ export declare const m: typeof mod; "latestChangedDtsFile": "./out/decls/index.d.ts" }, "version": "FakeTSVersion", - "size": 1526 + "size": 1525 } -//// [/src/tests/index.d.ts] +//// [/user/username/projects/sample1/tests/index.d.ts] import * as mod from '../core/anotherModule'; export declare const m: typeof mod; -//// [/src/tests/index.js] +//// [/user/username/projects/sample1/tests/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.m = void 0; @@ -340,14 +337,14 @@ var mod = require("../core/anotherModule"); exports.m = mod; -//// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/out/decls/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/out/decls/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "../logic/out/decls/index.d.ts", @@ -364,7 +361,7 @@ exports.m = mod; ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -387,10 +384,10 @@ exports.m = mod; }, "./index.ts": { "original": { - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -424,7 +421,7 @@ exports.m = mod; ] }, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "../logic/out/decls/index.d.ts", @@ -433,6 +430,6 @@ exports.m = mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1667 + "size": 1663 } diff --git a/tests/baselines/reference/tsbuild/sample1/builds-correctly-when-outDir-is-specified.js b/tests/baselines/reference/tsbuild/sample1/builds-correctly-when-outDir-is-specified.js index b1b46f9d16eb8..96b4578700c5e 100644 --- a/tests/baselines/reference/tsbuild/sample1/builds-correctly-when-outDir-is-specified.js +++ b/tests/baselines/reference/tsbuild/sample1/builds-correctly-when-outDir-is-specified.js @@ -1,6 +1,6 @@ -currentDirectory:: / useCaseSensitiveFileNames: false +currentDirectory:: /user/username/projects/sample1 useCaseSensitiveFileNames: false Input:: -//// [/lib/lib.d.ts] +//// [/a/lib/lib.d.ts] /// interface Boolean {} interface Function {} @@ -15,118 +15,115 @@ interface Array { length: number; [n: number]: T; } interface ReadonlyArray {} declare const console: { log(msg: any): void; }; -//// [/src/core/anotherModule.ts] +//// [/user/username/projects/sample1/core/anotherModule.ts] export const World = "hello"; +//// [/user/username/projects/sample1/core/index.ts] +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } -//// [/src/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } - -//// [/src/core/some_decl.d.ts] +//// [/user/username/projects/sample1/core/some_decl.d.ts] declare const dts: any; - -//// [/src/core/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - } -} - -//// [/src/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); +//// [/user/username/projects/sample1/core/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + } } -import * as mod from '../core/anotherModule'; -export const m = mod; - -//// [/src/logic/tsconfig.json] -{"compilerOptions":{"composite":true,"declaration":true,"sourceMap":true,"outDir":"outDir"},"references":[{"path":"../core"}]} - -//// [/src/tests/index.ts] -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; +//// [/user/username/projects/sample1/logic/index.ts] +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; -//// [/src/tests/tsconfig.json] -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" } - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - } +//// [/user/username/projects/sample1/logic/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "outDir": "outDir" + }, + "references": [ + { + "path": "../core" + } + ] } -//// [/src/ui/index.ts] -import * as logic from '../logic'; - -export function run() { - console.log(logic.getSecondsInDay()); -} +//// [/user/username/projects/sample1/tests/index.ts] +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; -//// [/src/ui/tsconfig.json] -{ - "compilerOptions": { - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../logic/index" } - ] +//// [/user/username/projects/sample1/tests/tsconfig.json] +{ + "references": [ + { + "path": "../core" + }, + { + "path": "../logic" + } + ], + "files": [ + "index.ts" + ], + "compilerOptions": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + } } - Output:: -/lib/tsc --b /src/tests +/a/lib/tsc --b tests exitCode:: ExitStatus.Success -//// [/src/core/anotherModule.d.ts] +//// [/user/username/projects/sample1/core/anotherModule.d.ts] export declare const World = "hello"; //# sourceMappingURL=anotherModule.d.ts.map -//// [/src/core/anotherModule.d.ts.map] +//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] {"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} -//// [/src/core/anotherModule.js] +//// [/user/username/projects/sample1/core/anotherModule.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.World = void 0; exports.World = "hello"; -//// [/src/core/index.d.ts] +//// [/user/username/projects/sample1/core/index.d.ts] export declare const someString: string; export declare function leftPad(s: string, n: number): string; export declare function multiply(a: number, b: number): number; //# sourceMappingURL=index.d.ts.map -//// [/src/core/index.d.ts.map] +//// [/user/username/projects/sample1/core/index.d.ts.map] {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} -//// [/src/core/index.js] +//// [/user/username/projects/sample1/core/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.multiply = exports.leftPad = exports.someString = void 0; @@ -137,20 +134,20 @@ function multiply(a, b) { return a * b; } exports.multiply = multiply; -//// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\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"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -161,27 +158,27 @@ exports.multiply = multiply; }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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" }, - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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" }, "./some_decl.d.ts": { "original": { - "version": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", "affectsGlobalScope": true }, - "version": "-9253692965-declare const dts: any;\r\n", - "signature": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", "affectsGlobalScope": true } }, @@ -207,7 +204,7 @@ exports.multiply = multiply; "referencedMap": {}, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" @@ -215,16 +212,16 @@ exports.multiply = multiply; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1477 + "size": 1474 } -//// [/src/logic/outDir/index.d.ts] +//// [/user/username/projects/sample1/logic/outDir/index.d.ts] export declare function getSecondsInDay(): number; import * as mod from '../core/anotherModule'; export declare const m: typeof mod; -//// [/src/logic/outDir/index.js] +//// [/user/username/projects/sample1/logic/outDir/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.m = exports.getSecondsInDay = void 0; @@ -237,17 +234,17 @@ var mod = require("../core/anotherModule"); exports.m = mod; //# sourceMappingURL=index.js.map -//// [/src/logic/outDir/index.js.map] +//// [/user/username/projects/sample1/logic/outDir/index.js.map] {"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;AAAA,iCAAmC;AACnC,SAAgB,eAAe;IAC3B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC9B,CAAC;AAFD,0CAEC;AACD,2CAA6C;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} -//// [/src/logic/outDir/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../lib/lib.d.ts","../../core/index.d.ts","../../core/anothermodule.d.ts","../index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"outDir":"./","sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/logic/outDir/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../core/index.d.ts","../../core/anothermodule.d.ts","../index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"outDir":"./","sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/logic/outDir/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/logic/outDir/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../../lib/lib.d.ts", + "../../../../../../a/lib/lib.d.ts", "../../core/index.d.ts", "../../core/anothermodule.d.ts", "../index.ts" @@ -262,7 +259,7 @@ exports.m = mod; ] ], "fileInfos": { - "../../../lib/lib.d.ts": { + "../../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -281,10 +278,10 @@ exports.m = mod; }, "../index.ts": { "original": { - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -312,7 +309,7 @@ exports.m = mod; ] }, "semanticDiagnosticsPerFile": [ - "../../../lib/lib.d.ts", + "../../../../../../a/lib/lib.d.ts", "../../core/anothermodule.d.ts", "../../core/index.d.ts", "../index.ts" @@ -320,15 +317,15 @@ exports.m = mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1509 + "size": 1508 } -//// [/src/tests/index.d.ts] +//// [/user/username/projects/sample1/tests/index.d.ts] import * as mod from '../core/anotherModule'; export declare const m: typeof mod; -//// [/src/tests/index.js] +//// [/user/username/projects/sample1/tests/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.m = void 0; @@ -340,14 +337,14 @@ var mod = require("../core/anotherModule"); exports.m = mod; -//// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/outdir/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/outdir/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "../logic/outdir/index.d.ts", @@ -364,7 +361,7 @@ exports.m = mod; ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -387,10 +384,10 @@ exports.m = mod; }, "./index.ts": { "original": { - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -424,7 +421,7 @@ exports.m = mod; ] }, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "../logic/outdir/index.d.ts", @@ -433,6 +430,6 @@ exports.m = mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1664 + "size": 1660 } diff --git a/tests/baselines/reference/tsbuild/sample1/builds-correctly-when-project-is-not-composite-or-doesnt-have-any-references.js b/tests/baselines/reference/tsbuild/sample1/builds-correctly-when-project-is-not-composite-or-doesnt-have-any-references.js index 4c9cb99f33784..63073d2ab2c71 100644 --- a/tests/baselines/reference/tsbuild/sample1/builds-correctly-when-project-is-not-composite-or-doesnt-have-any-references.js +++ b/tests/baselines/reference/tsbuild/sample1/builds-correctly-when-project-is-not-composite-or-doesnt-have-any-references.js @@ -1,6 +1,6 @@ -currentDirectory:: / useCaseSensitiveFileNames: false +currentDirectory:: /user/username/projects/sample1 useCaseSensitiveFileNames: false Input:: -//// [/lib/lib.d.ts] +//// [/a/lib/lib.d.ts] /// interface Boolean {} interface Function {} @@ -15,137 +15,123 @@ interface Array { length: number; [n: number]: T; } interface ReadonlyArray {} declare const console: { log(msg: any): void; }; -//// [/src/core/anotherModule.ts] +//// [/user/username/projects/sample1/core/anotherModule.ts] export const World = "hello"; +//// [/user/username/projects/sample1/core/index.ts] +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } -//// [/src/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } - -//// [/src/core/some_decl.d.ts] +//// [/user/username/projects/sample1/core/some_decl.d.ts] declare const dts: any; - -//// [/src/core/tsconfig.json] -{ - "compilerOptions": { - - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - } +//// [/user/username/projects/sample1/core/tsconfig.json] +{ + "compilerOptions": { + + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + } } -//// [/src/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; - - -//// [/src/logic/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../core" } - ] +//// [/user/username/projects/sample1/logic/index.ts] +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; + + +//// [/user/username/projects/sample1/logic/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + }, + "references": [ + { + "path": "../core" + } + ] } - -//// [/src/tests/index.ts] -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; - - -//// [/src/tests/tsconfig.json] -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" } - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - } -} - -//// [/src/ui/index.ts] -import * as logic from '../logic'; - -export function run() { - console.log(logic.getSecondsInDay()); -} - - -//// [/src/ui/tsconfig.json] -{ - "compilerOptions": { - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../logic/index" } - ] +//// [/user/username/projects/sample1/tests/index.ts] +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; + + +//// [/user/username/projects/sample1/tests/tsconfig.json] +{ + "references": [ + { + "path": "../core" + }, + { + "path": "../logic" + } + ], + "files": [ + "index.ts" + ], + "compilerOptions": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + } } - Output:: -/lib/tsc --b /src/core --verbose -[12:00:07 AM] Projects in this build: - * src/core/tsconfig.json +/a/lib/tsc --b core --verbose +[12:00:23 AM] Projects in this build: + * core/tsconfig.json -[12:00:08 AM] Project 'src/core/tsconfig.json' is out of date because output file 'src/core/anotherModule.js' does not exist +[12:00:24 AM] Project 'core/tsconfig.json' is out of date because output file 'core/anotherModule.js' does not exist -[12:00:09 AM] Building project '/src/core/tsconfig.json'... +[12:00:25 AM] Building project '/user/username/projects/sample1/core/tsconfig.json'... exitCode:: ExitStatus.Success -//// [/src/core/anotherModule.d.ts] +//// [/user/username/projects/sample1/core/anotherModule.d.ts] export declare const World = "hello"; //# sourceMappingURL=anotherModule.d.ts.map -//// [/src/core/anotherModule.d.ts.map] +//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] {"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} -//// [/src/core/anotherModule.js] +//// [/user/username/projects/sample1/core/anotherModule.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.World = void 0; exports.World = "hello"; -//// [/src/core/index.d.ts] +//// [/user/username/projects/sample1/core/index.d.ts] export declare const someString: string; export declare function leftPad(s: string, n: number): string; export declare function multiply(a: number, b: number): number; //# sourceMappingURL=index.d.ts.map -//// [/src/core/index.d.ts.map] +//// [/user/username/projects/sample1/core/index.d.ts.map] {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} -//// [/src/core/index.js] +//// [/user/username/projects/sample1/core/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.multiply = exports.leftPad = exports.someString = void 0; diff --git a/tests/baselines/reference/tsbuild/sample1/builds-till-project-specified.js b/tests/baselines/reference/tsbuild/sample1/builds-till-project-specified.js index df145d93c3cc9..643ebad67f13c 100644 --- a/tests/baselines/reference/tsbuild/sample1/builds-till-project-specified.js +++ b/tests/baselines/reference/tsbuild/sample1/builds-till-project-specified.js @@ -1,5 +1,5 @@ Input:: -//// [/lib/lib.d.ts] +//// [/a/lib/lib.d.ts] /// interface Boolean {} interface Function {} @@ -14,130 +14,116 @@ interface Array { length: number; [n: number]: T; } interface ReadonlyArray {} declare const console: { log(msg: any): void; }; -//// [/src/core/anotherModule.ts] +//// [/user/username/projects/sample1/core/anotherModule.ts] export const World = "hello"; +//// [/user/username/projects/sample1/core/index.ts] +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } -//// [/src/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } - -//// [/src/core/some_decl.d.ts] +//// [/user/username/projects/sample1/core/some_decl.d.ts] declare const dts: any; - -//// [/src/core/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - } -} - -//// [/src/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; - - -//// [/src/logic/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../core" } - ] +//// [/user/username/projects/sample1/core/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + } } - -//// [/src/tests/index.ts] -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; +//// [/user/username/projects/sample1/logic/index.ts] +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; -//// [/src/tests/tsconfig.json] -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" } - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - } +//// [/user/username/projects/sample1/logic/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + }, + "references": [ + { + "path": "../core" + } + ] } -//// [/src/ui/index.ts] -import * as logic from '../logic'; - -export function run() { - console.log(logic.getSecondsInDay()); -} +//// [/user/username/projects/sample1/tests/index.ts] +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; -//// [/src/ui/tsconfig.json] -{ - "compilerOptions": { - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../logic/index" } - ] +//// [/user/username/projects/sample1/tests/tsconfig.json] +{ + "references": [ + { + "path": "../core" + }, + { + "path": "../logic" + } + ], + "files": [ + "index.ts" + ], + "compilerOptions": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + } } - Output:: -/lib/tsc --build /src/logic/tsconfig.json +/a/lib/tsc --build logic/tsconfig.json exitCode:: ExitStatus.Success -//// [/src/core/anotherModule.d.ts] +//// [/user/username/projects/sample1/core/anotherModule.d.ts] export declare const World = "hello"; //# sourceMappingURL=anotherModule.d.ts.map -//// [/src/core/anotherModule.d.ts.map] +//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] {"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} -//// [/src/core/anotherModule.js] +//// [/user/username/projects/sample1/core/anotherModule.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.World = void 0; exports.World = "hello"; -//// [/src/core/index.d.ts] +//// [/user/username/projects/sample1/core/index.d.ts] export declare const someString: string; export declare function leftPad(s: string, n: number): string; export declare function multiply(a: number, b: number): number; //# sourceMappingURL=index.d.ts.map -//// [/src/core/index.d.ts.map] +//// [/user/username/projects/sample1/core/index.d.ts.map] {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} -//// [/src/core/index.js] +//// [/user/username/projects/sample1/core/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.multiply = exports.leftPad = exports.someString = void 0; @@ -148,20 +134,20 @@ function multiply(a, b) { return a * b; } exports.multiply = multiply; -//// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\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"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -172,27 +158,27 @@ exports.multiply = multiply; }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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" }, - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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" }, "./some_decl.d.ts": { "original": { - "version": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", "affectsGlobalScope": true }, - "version": "-9253692965-declare const dts: any;\r\n", - "signature": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", "affectsGlobalScope": true } }, @@ -218,7 +204,7 @@ exports.multiply = multiply; "referencedMap": {}, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" @@ -226,16 +212,16 @@ exports.multiply = multiply; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1477 + "size": 1474 } -//// [/src/logic/index.d.ts] +//// [/user/username/projects/sample1/logic/index.d.ts] export declare function getSecondsInDay(): number; import * as mod from '../core/anotherModule'; export declare const m: typeof mod; -//// [/src/logic/index.js] +//// [/user/username/projects/sample1/logic/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.m = exports.getSecondsInDay = void 0; @@ -248,17 +234,17 @@ var mod = require("../core/anotherModule"); exports.m = mod; //# sourceMappingURL=index.js.map -//// [/src/logic/index.js.map] +//// [/user/username/projects/sample1/logic/index.js.map] {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAA,iCAAmC;AACnC,SAAgB,eAAe;IAC3B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC9B,CAAC;AAFD,0CAEC;AACD,2CAA6C;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} -//// [/src/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/logic/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "./index.ts" @@ -273,7 +259,7 @@ exports.m = mod; ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -292,10 +278,10 @@ exports.m = mod; }, "./index.ts": { "original": { - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -323,7 +309,7 @@ exports.m = mod; ] }, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "./index.ts" @@ -331,6 +317,6 @@ exports.m = mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1512 + "size": 1511 } diff --git a/tests/baselines/reference/tsbuild/sample1/can-detect-when-and-what-to-rebuild.js b/tests/baselines/reference/tsbuild/sample1/can-detect-when-and-what-to-rebuild.js index 3125fcae76bd0..de845ec774306 100644 --- a/tests/baselines/reference/tsbuild/sample1/can-detect-when-and-what-to-rebuild.js +++ b/tests/baselines/reference/tsbuild/sample1/can-detect-when-and-what-to-rebuild.js @@ -1,6 +1,6 @@ -currentDirectory:: / useCaseSensitiveFileNames: false +currentDirectory:: /user/username/projects/sample1 useCaseSensitiveFileNames: false Input:: -//// [/lib/lib.d.ts] +//// [/a/lib/lib.d.ts] /// interface Boolean {} interface Function {} @@ -15,34 +15,33 @@ interface Array { length: number; [n: number]: T; } interface ReadonlyArray {} declare const console: { log(msg: any): void; }; -//// [/src/core/anotherModule.d.ts] +//// [/user/username/projects/sample1/core/anotherModule.d.ts] export declare const World = "hello"; //# sourceMappingURL=anotherModule.d.ts.map -//// [/src/core/anotherModule.d.ts.map] +//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] {"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} -//// [/src/core/anotherModule.js] +//// [/user/username/projects/sample1/core/anotherModule.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.World = void 0; exports.World = "hello"; -//// [/src/core/anotherModule.ts] +//// [/user/username/projects/sample1/core/anotherModule.ts] export const World = "hello"; - -//// [/src/core/index.d.ts] +//// [/user/username/projects/sample1/core/index.d.ts] export declare const someString: string; export declare function leftPad(s: string, n: number): string; export declare function multiply(a: number, b: number): number; //# sourceMappingURL=index.d.ts.map -//// [/src/core/index.d.ts.map] +//// [/user/username/projects/sample1/core/index.d.ts.map] {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} -//// [/src/core/index.js] +//// [/user/username/projects/sample1/core/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.multiply = exports.leftPad = exports.someString = void 0; @@ -53,40 +52,39 @@ function multiply(a, b) { return a * b; } exports.multiply = multiply; -//// [/src/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/index.ts] +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } -//// [/src/core/some_decl.d.ts] +//// [/user/username/projects/sample1/core/some_decl.d.ts] declare const dts: any; - -//// [/src/core/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - } +//// [/user/username/projects/sample1/core/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + } } -//// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\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"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -97,27 +95,27 @@ declare const dts: any; }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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" }, - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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" }, "./some_decl.d.ts": { "original": { - "version": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", "affectsGlobalScope": true }, - "version": "-9253692965-declare const dts: any;\r\n", - "signature": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", "affectsGlobalScope": true } }, @@ -143,7 +141,7 @@ declare const dts: any; "referencedMap": {}, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" @@ -151,16 +149,16 @@ declare const dts: any; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1477 + "size": 1474 } -//// [/src/logic/index.d.ts] +//// [/user/username/projects/sample1/logic/index.d.ts] export declare function getSecondsInDay(): number; import * as mod from '../core/anotherModule'; export declare const m: typeof mod; -//// [/src/logic/index.js] +//// [/user/username/projects/sample1/logic/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.m = exports.getSecondsInDay = void 0; @@ -173,41 +171,42 @@ var mod = require("../core/anotherModule"); exports.m = mod; //# sourceMappingURL=index.js.map -//// [/src/logic/index.js.map] +//// [/user/username/projects/sample1/logic/index.js.map] {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAA,iCAAmC;AACnC,SAAgB,eAAe;IAC3B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC9B,CAAC;AAFD,0CAEC;AACD,2CAA6C;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} -//// [/src/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; - - -//// [/src/logic/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../core" } - ] -} +//// [/user/username/projects/sample1/logic/index.ts] +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; -//// [/src/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/logic/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + }, + "references": [ + { + "path": "../core" + } + ] +} + +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/logic/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "./index.ts" @@ -222,7 +221,7 @@ export const m = mod; ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -241,10 +240,10 @@ export const m = mod; }, "./index.ts": { "original": { - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -272,7 +271,7 @@ export const m = mod; ] }, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "./index.ts" @@ -280,15 +279,15 @@ export const m = mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1512 + "size": 1511 } -//// [/src/tests/index.d.ts] +//// [/user/username/projects/sample1/tests/index.d.ts] import * as mod from '../core/anotherModule'; export declare const m: typeof mod; -//// [/src/tests/index.js] +//// [/user/username/projects/sample1/tests/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.m = void 0; @@ -300,40 +299,46 @@ var mod = require("../core/anotherModule"); exports.m = mod; -//// [/src/tests/index.ts] -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; +//// [/user/username/projects/sample1/tests/index.ts] +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; -//// [/src/tests/tsconfig.json] -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" } - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - } +//// [/user/username/projects/sample1/tests/tsconfig.json] +{ + "references": [ + { + "path": "../core" + }, + { + "path": "../logic" + } + ], + "files": [ + "index.ts" + ], + "compilerOptions": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + } } -//// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "../logic/index.d.ts", @@ -350,7 +355,7 @@ export const m = mod; ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -373,10 +378,10 @@ export const m = mod; }, "./index.ts": { "original": { - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -410,7 +415,7 @@ export const m = mod; ] }, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "../logic/index.d.ts", @@ -419,42 +424,23 @@ export const m = mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1657 + "size": 1653 } -//// [/src/ui/index.ts] -import * as logic from '../logic'; - -export function run() { - console.log(logic.getSecondsInDay()); -} - - -//// [/src/ui/tsconfig.json] -{ - "compilerOptions": { - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../logic/index" } - ] -} - - Output:: -/lib/tsc --b /src/tests --verbose -[12:00:26 AM] Projects in this build: - * src/core/tsconfig.json - * src/logic/tsconfig.json - * src/tests/tsconfig.json +/a/lib/tsc --b tests --verbose +[12:00:42 AM] Projects in this build: + * core/tsconfig.json + * logic/tsconfig.json + * tests/tsconfig.json -[12:00:27 AM] Project 'src/core/tsconfig.json' is up to date because newest input 'src/core/anotherModule.ts' is older than output 'src/core/tsconfig.tsbuildinfo' +[12:00:43 AM] Project 'core/tsconfig.json' is up to date because newest input 'core/anotherModule.ts' is older than output 'core/tsconfig.tsbuildinfo' -[12:00:28 AM] Project 'src/logic/tsconfig.json' is up to date because newest input 'src/logic/index.ts' is older than output 'src/logic/tsconfig.tsbuildinfo' +[12:00:44 AM] Project 'logic/tsconfig.json' is up to date because newest input 'logic/index.ts' is older than output 'logic/tsconfig.tsbuildinfo' -[12:00:29 AM] Project 'src/tests/tsconfig.json' is up to date because newest input 'src/tests/index.ts' is older than output 'src/tests/tsconfig.tsbuildinfo' +[12:00:45 AM] Project 'tests/tsconfig.json' is up to date because newest input 'tests/index.ts' is older than output 'tests/tsconfig.tsbuildinfo' exitCode:: ExitStatus.Success @@ -463,49 +449,49 @@ exitCode:: ExitStatus.Success Change:: Only builds the leaf node project Input:: -//// [/src/tests/index.ts] +//// [/user/username/projects/sample1/tests/index.ts] const m = 10; Output:: -/lib/tsc --b /src/tests --verbose -[12:00:31 AM] Projects in this build: - * src/core/tsconfig.json - * src/logic/tsconfig.json - * src/tests/tsconfig.json +/a/lib/tsc --b tests --verbose +[12:00:47 AM] Projects in this build: + * core/tsconfig.json + * logic/tsconfig.json + * tests/tsconfig.json -[12:00:32 AM] Project 'src/core/tsconfig.json' is up to date because newest input 'src/core/anotherModule.ts' is older than output 'src/core/tsconfig.tsbuildinfo' +[12:00:48 AM] Project 'core/tsconfig.json' is up to date because newest input 'core/anotherModule.ts' is older than output 'core/tsconfig.tsbuildinfo' -[12:00:33 AM] Project 'src/logic/tsconfig.json' is up to date because newest input 'src/logic/index.ts' is older than output 'src/logic/tsconfig.tsbuildinfo' +[12:00:49 AM] Project 'logic/tsconfig.json' is up to date because newest input 'logic/index.ts' is older than output 'logic/tsconfig.tsbuildinfo' -[12:00:34 AM] Project 'src/tests/tsconfig.json' is out of date because output 'src/tests/tsconfig.tsbuildinfo' is older than input 'src/tests/index.ts' +[12:00:50 AM] Project 'tests/tsconfig.json' is out of date because output 'tests/tsconfig.tsbuildinfo' is older than input 'tests/index.ts' -[12:00:35 AM] Building project '/src/tests/tsconfig.json'... +[12:00:51 AM] Building project '/user/username/projects/sample1/tests/tsconfig.json'... exitCode:: ExitStatus.Success -//// [/src/tests/index.d.ts] +//// [/user/username/projects/sample1/tests/index.d.ts] declare const m = 10; -//// [/src/tests/index.js] +//// [/user/username/projects/sample1/tests/index.js] var m = 10; -//// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"3708260210-const m = 10;","signature":"-357908916-declare const m = 10;\n","affectsGlobalScope":true}],"root":[2],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"3708260210-const m = 10;","signature":"-357908916-declare const m = 10;\n","affectsGlobalScope":true}],"root":[2],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./index.ts" ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -539,53 +525,53 @@ var m = 10; "referencedMap": {}, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./index.ts" ], "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 896 + "size": 907 } Change:: Detects type-only changes in upstream projects Input:: -//// [/src/core/index.ts] -export const someString: string = "WELCOME PLANET"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/index.ts] +export const someString: string = "WELCOME PLANET"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } Output:: -/lib/tsc --b /src/tests --verbose -[12:00:42 AM] Projects in this build: - * src/core/tsconfig.json - * src/logic/tsconfig.json - * src/tests/tsconfig.json +/a/lib/tsc --b tests --verbose +[12:00:58 AM] Projects in this build: + * core/tsconfig.json + * logic/tsconfig.json + * tests/tsconfig.json -[12:00:43 AM] Project 'src/core/tsconfig.json' is out of date because output 'src/core/tsconfig.tsbuildinfo' is older than input 'src/core/index.ts' +[12:00:59 AM] Project 'core/tsconfig.json' is out of date because output 'core/tsconfig.tsbuildinfo' is older than input 'core/index.ts' -[12:00:44 AM] Building project '/src/core/tsconfig.json'... +[12:01:00 AM] Building project '/user/username/projects/sample1/core/tsconfig.json'... -[12:00:50 AM] Project 'src/logic/tsconfig.json' is up to date with .d.ts files from its dependencies +[12:01:06 AM] Project 'logic/tsconfig.json' is up to date with .d.ts files from its dependencies -[12:00:51 AM] Updating output timestamps of project '/src/logic/tsconfig.json'... +[12:01:07 AM] Updating output timestamps of project '/user/username/projects/sample1/logic/tsconfig.json'... -[12:00:54 AM] Project 'src/tests/tsconfig.json' is up to date with .d.ts files from its dependencies +[12:01:10 AM] Project 'tests/tsconfig.json' is up to date with .d.ts files from its dependencies -[12:00:55 AM] Updating output timestamps of project '/src/tests/tsconfig.json'... +[12:01:11 AM] Updating output timestamps of project '/user/username/projects/sample1/tests/tsconfig.json'... exitCode:: ExitStatus.Success -//// [/src/core/index.d.ts.map] +//// [/user/username/projects/sample1/core/index.d.ts.map] {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAyB,CAAC;AACnD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} -//// [/src/core/index.js] +//// [/user/username/projects/sample1/core/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.multiply = exports.leftPad = exports.someString = void 0; @@ -596,20 +582,20 @@ function multiply(a, b) { return a * b; } exports.multiply = multiply; -//// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-2157245566-export const someString: string = \"WELCOME PLANET\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\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"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-17153345957-export const someString: string = \"WELCOME PLANET\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -620,27 +606,27 @@ exports.multiply = multiply; }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-2157245566-export const someString: string = \"WELCOME PLANET\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-17153345957-export const someString: string = \"WELCOME PLANET\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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" }, - "version": "-2157245566-export const someString: string = \"WELCOME PLANET\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-17153345957-export const someString: string = \"WELCOME PLANET\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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" }, "./some_decl.d.ts": { "original": { - "version": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", "affectsGlobalScope": true }, - "version": "-9253692965-declare const dts: any;\r\n", - "signature": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", "affectsGlobalScope": true } }, @@ -666,7 +652,7 @@ exports.multiply = multiply; "referencedMap": {}, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" @@ -674,16 +660,16 @@ exports.multiply = multiply; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1479 + "size": 1477 } -//// [/src/logic/tsconfig.tsbuildinfo] file changed its modified time -//// [/src/tests/tsconfig.tsbuildinfo] file changed its modified time +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] file changed its modified time +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] file changed its modified time Change:: rebuilds when tsconfig changes Input:: -//// [/lib/lib.es2020.full.d.ts] +//// [/a/lib/lib.es2020.full.d.ts] /// interface Boolean {} interface Function {} @@ -698,57 +684,63 @@ interface Array { length: number; [n: number]: T; } interface ReadonlyArray {} declare const console: { log(msg: any): void; }; -//// [/src/tests/tsconfig.json] -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" } - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, "target": "es2020", - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - } +//// [/user/username/projects/sample1/tests/tsconfig.json] +{ + "references": [ + { + "path": "../core" + }, + { + "path": "../logic" + } + ], + "files": [ + "index.ts" + ], + "compilerOptions": { + "composite": true, "target": "es2020", + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + } } Output:: -/lib/tsc --b /src/tests --verbose -[12:01:00 AM] Projects in this build: - * src/core/tsconfig.json - * src/logic/tsconfig.json - * src/tests/tsconfig.json +/a/lib/tsc --b tests --verbose +[12:01:16 AM] Projects in this build: + * core/tsconfig.json + * logic/tsconfig.json + * tests/tsconfig.json -[12:01:01 AM] Project 'src/core/tsconfig.json' is up to date because newest input 'src/core/index.ts' is older than output 'src/core/tsconfig.tsbuildinfo' +[12:01:17 AM] Project 'core/tsconfig.json' is up to date because newest input 'core/index.ts' is older than output 'core/tsconfig.tsbuildinfo' -[12:01:02 AM] Project 'src/logic/tsconfig.json' is up to date because newest input 'src/logic/index.ts' is older than output 'src/logic/tsconfig.tsbuildinfo' +[12:01:18 AM] Project 'logic/tsconfig.json' is up to date because newest input 'logic/index.ts' is older than output 'logic/tsconfig.tsbuildinfo' -[12:01:03 AM] Project 'src/tests/tsconfig.json' is out of date because output 'src/tests/tsconfig.tsbuildinfo' is older than input 'src/tests/tsconfig.json' +[12:01:19 AM] Project 'tests/tsconfig.json' is out of date because output 'tests/tsconfig.tsbuildinfo' is older than input 'tests/tsconfig.json' -[12:01:04 AM] Building project '/src/tests/tsconfig.json'... +[12:01:20 AM] Building project '/user/username/projects/sample1/tests/tsconfig.json'... exitCode:: ExitStatus.Success -//// [/src/tests/index.js] +//// [/user/username/projects/sample1/tests/index.js] const m = 10; -//// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.es2020.full.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"3708260210-const m = 10;","signature":"-357908916-declare const m = 10;\n","affectsGlobalScope":true}],"root":[2],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"target":7},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.es2020.full.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"3708260210-const m = 10;","signature":"-357908916-declare const m = 10;\n","affectsGlobalScope":true}],"root":[2],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"target":7},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.es2020.full.d.ts", + "../../../../../a/lib/lib.es2020.full.d.ts", "./index.ts" ], "fileInfos": { - "../../lib/lib.es2020.full.d.ts": { + "../../../../../a/lib/lib.es2020.full.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -783,12 +775,12 @@ const m = 10; "referencedMap": {}, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "../../lib/lib.es2020.full.d.ts", + "../../../../../a/lib/lib.es2020.full.d.ts", "./index.ts" ], "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 919 + "size": 930 } diff --git a/tests/baselines/reference/tsbuild/sample1/cleaning-project-in-not-build-order-doesnt-throw-error.js b/tests/baselines/reference/tsbuild/sample1/cleaning-project-in-not-build-order-doesnt-throw-error.js index e6c90a30f05b7..ec897ec69b1c2 100644 --- a/tests/baselines/reference/tsbuild/sample1/cleaning-project-in-not-build-order-doesnt-throw-error.js +++ b/tests/baselines/reference/tsbuild/sample1/cleaning-project-in-not-build-order-doesnt-throw-error.js @@ -1,5 +1,5 @@ Input:: -//// [/lib/lib.d.ts] +//// [/a/lib/lib.d.ts] /// interface Boolean {} interface Function {} @@ -14,34 +14,33 @@ interface Array { length: number; [n: number]: T; } interface ReadonlyArray {} declare const console: { log(msg: any): void; }; -//// [/src/core/anotherModule.d.ts] +//// [/user/username/projects/sample1/core/anotherModule.d.ts] export declare const World = "hello"; //# sourceMappingURL=anotherModule.d.ts.map -//// [/src/core/anotherModule.d.ts.map] +//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] {"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} -//// [/src/core/anotherModule.js] +//// [/user/username/projects/sample1/core/anotherModule.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.World = void 0; exports.World = "hello"; -//// [/src/core/anotherModule.ts] +//// [/user/username/projects/sample1/core/anotherModule.ts] export const World = "hello"; - -//// [/src/core/index.d.ts] +//// [/user/username/projects/sample1/core/index.d.ts] export declare const someString: string; export declare function leftPad(s: string, n: number): string; export declare function multiply(a: number, b: number): number; //# sourceMappingURL=index.d.ts.map -//// [/src/core/index.d.ts.map] +//// [/user/username/projects/sample1/core/index.d.ts.map] {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} -//// [/src/core/index.js] +//// [/user/username/projects/sample1/core/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.multiply = exports.leftPad = exports.someString = void 0; @@ -52,40 +51,39 @@ function multiply(a, b) { return a * b; } exports.multiply = multiply; -//// [/src/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/index.ts] +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } -//// [/src/core/some_decl.d.ts] +//// [/user/username/projects/sample1/core/some_decl.d.ts] declare const dts: any; - -//// [/src/core/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - } +//// [/user/username/projects/sample1/core/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + } } -//// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\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"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -96,27 +94,27 @@ declare const dts: any; }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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" }, - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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" }, "./some_decl.d.ts": { "original": { - "version": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", "affectsGlobalScope": true }, - "version": "-9253692965-declare const dts: any;\r\n", - "signature": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", "affectsGlobalScope": true } }, @@ -142,7 +140,7 @@ declare const dts: any; "referencedMap": {}, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" @@ -150,16 +148,16 @@ declare const dts: any; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1477 + "size": 1474 } -//// [/src/logic/index.d.ts] +//// [/user/username/projects/sample1/logic/index.d.ts] export declare function getSecondsInDay(): number; import * as mod from '../core/anotherModule'; export declare const m: typeof mod; -//// [/src/logic/index.js] +//// [/user/username/projects/sample1/logic/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.m = exports.getSecondsInDay = void 0; @@ -172,41 +170,42 @@ var mod = require("../core/anotherModule"); exports.m = mod; //# sourceMappingURL=index.js.map -//// [/src/logic/index.js.map] +//// [/user/username/projects/sample1/logic/index.js.map] {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAA,iCAAmC;AACnC,SAAgB,eAAe;IAC3B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC9B,CAAC;AAFD,0CAEC;AACD,2CAA6C;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} -//// [/src/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; - - -//// [/src/logic/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../core" } - ] -} +//// [/user/username/projects/sample1/logic/index.ts] +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; -//// [/src/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/logic/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + }, + "references": [ + { + "path": "../core" + } + ] +} -//// [/src/logic/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} + +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "./index.ts" @@ -221,7 +220,7 @@ export const m = mod; ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -240,10 +239,10 @@ export const m = mod; }, "./index.ts": { "original": { - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -271,7 +270,7 @@ export const m = mod; ] }, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "./index.ts" @@ -279,15 +278,15 @@ export const m = mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1512 + "size": 1511 } -//// [/src/tests/index.d.ts] +//// [/user/username/projects/sample1/tests/index.d.ts] import * as mod from '../core/anotherModule'; export declare const m: typeof mod; -//// [/src/tests/index.js] +//// [/user/username/projects/sample1/tests/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.m = void 0; @@ -299,40 +298,46 @@ var mod = require("../core/anotherModule"); exports.m = mod; -//// [/src/tests/index.ts] -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; +//// [/user/username/projects/sample1/tests/index.ts] +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; -//// [/src/tests/tsconfig.json] -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" } - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - } +//// [/user/username/projects/sample1/tests/tsconfig.json] +{ + "references": [ + { + "path": "../core" + }, + { + "path": "../logic" + } + ], + "files": [ + "index.ts" + ], + "compilerOptions": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + } } -//// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "../logic/index.d.ts", @@ -349,7 +354,7 @@ export const m = mod; ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -372,10 +377,10 @@ export const m = mod; }, "./index.ts": { "original": { - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -409,7 +414,7 @@ export const m = mod; ] }, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "../logic/index.d.ts", @@ -418,32 +423,13 @@ export const m = mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1657 + "size": 1653 } -//// [/src/ui/index.ts] -import * as logic from '../logic'; - -export function run() { - console.log(logic.getSecondsInDay()); -} - - -//// [/src/ui/tsconfig.json] -{ - "compilerOptions": { - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../logic/index" } - ] -} - - Output:: -/lib/tsc --b /src/logic2 --clean +/a/lib/tsc --b logic2 --clean exitCode:: ExitStatus.InvalidProject_OutputsSkipped diff --git a/tests/baselines/reference/tsbuild/sample1/cleans-till-project-specified.js b/tests/baselines/reference/tsbuild/sample1/cleans-till-project-specified.js index b667a0dbe5670..5f477fd04564b 100644 --- a/tests/baselines/reference/tsbuild/sample1/cleans-till-project-specified.js +++ b/tests/baselines/reference/tsbuild/sample1/cleans-till-project-specified.js @@ -1,5 +1,5 @@ Input:: -//// [/lib/lib.d.ts] +//// [/a/lib/lib.d.ts] /// interface Boolean {} interface Function {} @@ -14,34 +14,33 @@ interface Array { length: number; [n: number]: T; } interface ReadonlyArray {} declare const console: { log(msg: any): void; }; -//// [/src/core/anotherModule.d.ts] +//// [/user/username/projects/sample1/core/anotherModule.d.ts] export declare const World = "hello"; //# sourceMappingURL=anotherModule.d.ts.map -//// [/src/core/anotherModule.d.ts.map] +//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] {"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} -//// [/src/core/anotherModule.js] +//// [/user/username/projects/sample1/core/anotherModule.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.World = void 0; exports.World = "hello"; -//// [/src/core/anotherModule.ts] +//// [/user/username/projects/sample1/core/anotherModule.ts] export const World = "hello"; - -//// [/src/core/index.d.ts] +//// [/user/username/projects/sample1/core/index.d.ts] export declare const someString: string; export declare function leftPad(s: string, n: number): string; export declare function multiply(a: number, b: number): number; //# sourceMappingURL=index.d.ts.map -//// [/src/core/index.d.ts.map] +//// [/user/username/projects/sample1/core/index.d.ts.map] {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} -//// [/src/core/index.js] +//// [/user/username/projects/sample1/core/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.multiply = exports.leftPad = exports.someString = void 0; @@ -52,40 +51,39 @@ function multiply(a, b) { return a * b; } exports.multiply = multiply; -//// [/src/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/index.ts] +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } -//// [/src/core/some_decl.d.ts] +//// [/user/username/projects/sample1/core/some_decl.d.ts] declare const dts: any; - -//// [/src/core/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - } +//// [/user/username/projects/sample1/core/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + } } -//// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\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"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -96,27 +94,27 @@ declare const dts: any; }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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" }, - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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" }, "./some_decl.d.ts": { "original": { - "version": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", "affectsGlobalScope": true }, - "version": "-9253692965-declare const dts: any;\r\n", - "signature": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", "affectsGlobalScope": true } }, @@ -142,7 +140,7 @@ declare const dts: any; "referencedMap": {}, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" @@ -150,16 +148,16 @@ declare const dts: any; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1477 + "size": 1474 } -//// [/src/logic/index.d.ts] +//// [/user/username/projects/sample1/logic/index.d.ts] export declare function getSecondsInDay(): number; import * as mod from '../core/anotherModule'; export declare const m: typeof mod; -//// [/src/logic/index.js] +//// [/user/username/projects/sample1/logic/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.m = exports.getSecondsInDay = void 0; @@ -172,41 +170,42 @@ var mod = require("../core/anotherModule"); exports.m = mod; //# sourceMappingURL=index.js.map -//// [/src/logic/index.js.map] +//// [/user/username/projects/sample1/logic/index.js.map] {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAA,iCAAmC;AACnC,SAAgB,eAAe;IAC3B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC9B,CAAC;AAFD,0CAEC;AACD,2CAA6C;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} -//// [/src/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; - - -//// [/src/logic/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../core" } - ] -} +//// [/user/username/projects/sample1/logic/index.ts] +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; -//// [/src/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/logic/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + }, + "references": [ + { + "path": "../core" + } + ] +} -//// [/src/logic/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} + +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "./index.ts" @@ -221,7 +220,7 @@ export const m = mod; ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -240,10 +239,10 @@ export const m = mod; }, "./index.ts": { "original": { - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -271,7 +270,7 @@ export const m = mod; ] }, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "./index.ts" @@ -279,15 +278,15 @@ export const m = mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1512 + "size": 1511 } -//// [/src/tests/index.d.ts] +//// [/user/username/projects/sample1/tests/index.d.ts] import * as mod from '../core/anotherModule'; export declare const m: typeof mod; -//// [/src/tests/index.js] +//// [/user/username/projects/sample1/tests/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.m = void 0; @@ -299,40 +298,46 @@ var mod = require("../core/anotherModule"); exports.m = mod; -//// [/src/tests/index.ts] -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; +//// [/user/username/projects/sample1/tests/index.ts] +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; -//// [/src/tests/tsconfig.json] -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" } - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - } +//// [/user/username/projects/sample1/tests/tsconfig.json] +{ + "references": [ + { + "path": "../core" + }, + { + "path": "../logic" + } + ], + "files": [ + "index.ts" + ], + "compilerOptions": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + } } -//// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "../logic/index.d.ts", @@ -349,7 +354,7 @@ export const m = mod; ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -372,10 +377,10 @@ export const m = mod; }, "./index.ts": { "original": { - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -409,7 +414,7 @@ export const m = mod; ] }, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "../logic/index.d.ts", @@ -418,32 +423,13 @@ export const m = mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1657 + "size": 1653 } -//// [/src/ui/index.ts] -import * as logic from '../logic'; - -export function run() { - console.log(logic.getSecondsInDay()); -} - - -//// [/src/ui/tsconfig.json] -{ - "compilerOptions": { - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../logic/index" } - ] -} - - Output:: -/lib/tsc --b /src/logic --clean +/a/lib/tsc --b logic --clean exitCode:: ExitStatus.InvalidProject_OutputsSkipped diff --git a/tests/baselines/reference/tsbuild/sample1/does-not-build-downstream-projects-if-upstream-projects-have-errors.js b/tests/baselines/reference/tsbuild/sample1/does-not-build-downstream-projects-if-upstream-projects-have-errors.js index 0cfcde24865a8..ec5944b41a6f1 100644 --- a/tests/baselines/reference/tsbuild/sample1/does-not-build-downstream-projects-if-upstream-projects-have-errors.js +++ b/tests/baselines/reference/tsbuild/sample1/does-not-build-downstream-projects-if-upstream-projects-have-errors.js @@ -1,6 +1,6 @@ -currentDirectory:: / useCaseSensitiveFileNames: false +currentDirectory:: /user/username/projects/sample1 useCaseSensitiveFileNames: false Input:: -//// [/lib/lib.d.ts] +//// [/a/lib/lib.d.ts] /// interface Boolean {} interface Function {} @@ -15,124 +15,110 @@ interface Array { length: number; [n: number]: T; } interface ReadonlyArray {} declare const console: { log(msg: any): void; }; -//// [/src/core/anotherModule.ts] +//// [/user/username/projects/sample1/core/anotherModule.ts] export const World = "hello"; +//// [/user/username/projects/sample1/core/index.ts] +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } -//// [/src/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } - -//// [/src/core/some_decl.d.ts] +//// [/user/username/projects/sample1/core/some_decl.d.ts] declare const dts: any; - -//// [/src/core/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - } -} - -//// [/src/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.muitply(); -} -import * as mod from '../core/anotherModule'; -export const m = mod; - - -//// [/src/logic/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../core" } - ] +//// [/user/username/projects/sample1/core/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + } } - -//// [/src/tests/index.ts] -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; +//// [/user/username/projects/sample1/logic/index.ts] +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.muitply(); +} +import * as mod from '../core/anotherModule'; +export const m = mod; -//// [/src/tests/tsconfig.json] -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" } - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - } +//// [/user/username/projects/sample1/logic/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + }, + "references": [ + { + "path": "../core" + } + ] } -//// [/src/ui/index.ts] -import * as logic from '../logic'; - -export function run() { - console.log(logic.getSecondsInDay()); -} +//// [/user/username/projects/sample1/tests/index.ts] +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; -//// [/src/ui/tsconfig.json] -{ - "compilerOptions": { - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../logic/index" } - ] +//// [/user/username/projects/sample1/tests/tsconfig.json] +{ + "references": [ + { + "path": "../core" + }, + { + "path": "../logic" + } + ], + "files": [ + "index.ts" + ], + "compilerOptions": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + } } - Output:: -/lib/tsc --b /src/tests --verbose -[12:00:07 AM] Projects in this build: - * src/core/tsconfig.json - * src/logic/tsconfig.json - * src/tests/tsconfig.json +/a/lib/tsc --b tests --verbose +[12:00:23 AM] Projects in this build: + * core/tsconfig.json + * logic/tsconfig.json + * tests/tsconfig.json -[12:00:08 AM] Project 'src/core/tsconfig.json' is out of date because output file 'src/core/tsconfig.tsbuildinfo' does not exist +[12:00:24 AM] Project 'core/tsconfig.json' is out of date because output file 'core/tsconfig.tsbuildinfo' does not exist -[12:00:09 AM] Building project '/src/core/tsconfig.json'... +[12:00:25 AM] Building project '/user/username/projects/sample1/core/tsconfig.json'... -[12:00:19 AM] Project 'src/logic/tsconfig.json' is out of date because output file 'src/logic/tsconfig.tsbuildinfo' does not exist +[12:00:35 AM] Project 'logic/tsconfig.json' is out of date because output file 'logic/tsconfig.tsbuildinfo' does not exist -[12:00:20 AM] Building project '/src/logic/tsconfig.json'... +[12:00:36 AM] Building project '/user/username/projects/sample1/logic/tsconfig.json'... -src/logic/index.ts:3:14 - error TS2339: Property 'muitply' does not exist on type 'typeof import("/src/core/index")'. +logic/index.ts:3:14 - error TS2339: Property 'muitply' does not exist on type 'typeof import("/user/username/projects/sample1/core/index")'. 3 return c.muitply();    ~~~~~~~ -[12:00:24 AM] Project 'src/tests/tsconfig.json' can't be built because its dependency 'src/logic' has errors +[12:00:40 AM] Project 'tests/tsconfig.json' can't be built because its dependency 'logic' has errors -[12:00:25 AM] Skipping build of project '/src/tests/tsconfig.json' because its dependency '/src/logic' has errors +[12:00:41 AM] Skipping build of project '/user/username/projects/sample1/tests/tsconfig.json' because its dependency '/user/username/projects/sample1/logic' has errors Found 1 error. @@ -140,30 +126,30 @@ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -//// [/src/core/anotherModule.d.ts] +//// [/user/username/projects/sample1/core/anotherModule.d.ts] export declare const World = "hello"; //# sourceMappingURL=anotherModule.d.ts.map -//// [/src/core/anotherModule.d.ts.map] +//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] {"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} -//// [/src/core/anotherModule.js] +//// [/user/username/projects/sample1/core/anotherModule.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.World = void 0; exports.World = "hello"; -//// [/src/core/index.d.ts] +//// [/user/username/projects/sample1/core/index.d.ts] export declare const someString: string; export declare function leftPad(s: string, n: number): string; export declare function multiply(a: number, b: number): number; //# sourceMappingURL=index.d.ts.map -//// [/src/core/index.d.ts.map] +//// [/user/username/projects/sample1/core/index.d.ts.map] {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} -//// [/src/core/index.js] +//// [/user/username/projects/sample1/core/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.multiply = exports.leftPad = exports.someString = void 0; @@ -174,20 +160,20 @@ function multiply(a, b) { return a * b; } exports.multiply = multiply; -//// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\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"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -198,27 +184,27 @@ exports.multiply = multiply; }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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" }, - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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" }, "./some_decl.d.ts": { "original": { - "version": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", "affectsGlobalScope": true }, - "version": "-9253692965-declare const dts: any;\r\n", - "signature": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", "affectsGlobalScope": true } }, @@ -244,7 +230,7 @@ exports.multiply = multiply; "referencedMap": {}, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" @@ -252,17 +238,17 @@ exports.multiply = multiply; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1477 + "size": 1474 } -//// [/src/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n","-6409874073-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.muitply();\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n"],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,[4,[{"file":"./index.ts","start":87,"length":7,"code":2339,"category":1,"messageText":"Property 'muitply' does not exist on type 'typeof import(\"/src/core/index\")'."}]]],"affectedFilesPendingEmit":[4],"emitSignatures":[4]},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n","-11192027815-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.muitply();\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n"],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,[4,[{"file":"./index.ts","start":85,"length":7,"code":2339,"category":1,"messageText":"Property 'muitply' does not exist on type 'typeof import(\"/user/username/projects/sample1/core/index\")'."}]]],"affectedFilesPendingEmit":[4],"emitSignatures":[4]},"version":"FakeTSVersion"} -//// [/src/logic/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "./index.ts" @@ -274,7 +260,7 @@ exports.multiply = multiply; ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -292,8 +278,8 @@ exports.multiply = multiply; "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { - "version": "-6409874073-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.muitply();\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", - "signature": "-6409874073-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.muitply();\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n" + "version": "-11192027815-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.muitply();\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", + "signature": "-11192027815-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.muitply();\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n" } }, "root": [ @@ -321,7 +307,7 @@ exports.multiply = multiply; ] }, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", [ @@ -329,11 +315,11 @@ exports.multiply = multiply; [ { "file": "./index.ts", - "start": 87, + "start": 85, "length": 7, "code": 2339, "category": 1, - "messageText": "Property 'muitply' does not exist on type 'typeof import(\"/src/core/index\")'." + "messageText": "Property 'muitply' does not exist on type 'typeof import(\"/user/username/projects/sample1/core/index\")'." } ] ] @@ -349,7 +335,7 @@ exports.multiply = multiply; ] }, "version": "FakeTSVersion", - "size": 1509 + "size": 1536 } @@ -359,26 +345,26 @@ Input:: Output:: -/lib/tsc --b /src/tests --verbose -[12:00:26 AM] Projects in this build: - * src/core/tsconfig.json - * src/logic/tsconfig.json - * src/tests/tsconfig.json +/a/lib/tsc --b tests --verbose +[12:00:42 AM] Projects in this build: + * core/tsconfig.json + * logic/tsconfig.json + * tests/tsconfig.json -[12:00:27 AM] Project 'src/core/tsconfig.json' is up to date because newest input 'src/core/anotherModule.ts' is older than output 'src/core/tsconfig.tsbuildinfo' +[12:00:43 AM] Project 'core/tsconfig.json' is up to date because newest input 'core/anotherModule.ts' is older than output 'core/tsconfig.tsbuildinfo' -[12:00:28 AM] Project 'src/logic/tsconfig.json' is out of date because buildinfo file 'src/logic/tsconfig.tsbuildinfo' indicates that some of the changes were not emitted +[12:00:44 AM] Project 'logic/tsconfig.json' is out of date because buildinfo file 'logic/tsconfig.tsbuildinfo' indicates that some of the changes were not emitted -[12:00:29 AM] Building project '/src/logic/tsconfig.json'... +[12:00:45 AM] Building project '/user/username/projects/sample1/logic/tsconfig.json'... -src/logic/index.ts:3:14 - error TS2339: Property 'muitply' does not exist on type 'typeof import("/src/core/index")'. +logic/index.ts:3:14 - error TS2339: Property 'muitply' does not exist on type 'typeof import("/user/username/projects/sample1/core/index")'. 3 return c.muitply();    ~~~~~~~ -[12:00:30 AM] Project 'src/tests/tsconfig.json' can't be built because its dependency 'src/logic' has errors +[12:00:46 AM] Project 'tests/tsconfig.json' can't be built because its dependency 'logic' has errors -[12:00:31 AM] Skipping build of project '/src/tests/tsconfig.json' because its dependency '/src/logic' has errors +[12:00:47 AM] Skipping build of project '/user/username/projects/sample1/tests/tsconfig.json' because its dependency '/user/username/projects/sample1/logic' has errors Found 1 error. diff --git a/tests/baselines/reference/tsbuild/sample1/does-not-rebuild-if-there-is-no-program-and-bundle-in-the-ts-build-info-event-if-version-doesnt-match-ts-version.js b/tests/baselines/reference/tsbuild/sample1/does-not-rebuild-if-there-is-no-program-and-bundle-in-the-ts-build-info-event-if-version-doesnt-match-ts-version.js index ca9c7c40b8840..d9d2c36e34de1 100644 --- a/tests/baselines/reference/tsbuild/sample1/does-not-rebuild-if-there-is-no-program-and-bundle-in-the-ts-build-info-event-if-version-doesnt-match-ts-version.js +++ b/tests/baselines/reference/tsbuild/sample1/does-not-rebuild-if-there-is-no-program-and-bundle-in-the-ts-build-info-event-if-version-doesnt-match-ts-version.js @@ -1,5 +1,5 @@ Input:: -//// [/lib/lib.d.ts] +//// [/a/lib/lib.d.ts] /// interface Boolean {} interface Function {} @@ -14,34 +14,33 @@ interface Array { length: number; [n: number]: T; } interface ReadonlyArray {} declare const console: { log(msg: any): void; }; -//// [/src/core/anotherModule.d.ts] +//// [/user/username/projects/sample1/core/anotherModule.d.ts] export declare const World = "hello"; //# sourceMappingURL=anotherModule.d.ts.map -//// [/src/core/anotherModule.d.ts.map] +//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] {"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} -//// [/src/core/anotherModule.js] +//// [/user/username/projects/sample1/core/anotherModule.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.World = void 0; exports.World = "hello"; -//// [/src/core/anotherModule.ts] +//// [/user/username/projects/sample1/core/anotherModule.ts] export const World = "hello"; - -//// [/src/core/index.d.ts] +//// [/user/username/projects/sample1/core/index.d.ts] export declare const someString: string; export declare function leftPad(s: string, n: number): string; export declare function multiply(a: number, b: number): number; //# sourceMappingURL=index.d.ts.map -//// [/src/core/index.d.ts.map] +//// [/user/username/projects/sample1/core/index.d.ts.map] {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} -//// [/src/core/index.js] +//// [/user/username/projects/sample1/core/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.multiply = exports.leftPad = exports.someString = void 0; @@ -52,36 +51,35 @@ function multiply(a, b) { return a * b; } exports.multiply = multiply; -//// [/src/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/index.ts] +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } -//// [/src/core/some_decl.d.ts] +//// [/user/username/projects/sample1/core/some_decl.d.ts] declare const dts: any; - -//// [/src/core/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - } +//// [/user/username/projects/sample1/core/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + } } -//// [/src/core/tsconfig.tsbuildinfo] +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] {"version":"FakeTSVersion"} -//// [/src/logic/index.d.ts] +//// [/user/username/projects/sample1/logic/index.d.ts] export declare function getSecondsInDay(): number; import * as mod from '../core/anotherModule'; export declare const m: typeof mod; -//// [/src/logic/index.js] +//// [/user/username/projects/sample1/logic/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.m = exports.getSecondsInDay = void 0; @@ -94,42 +92,43 @@ var mod = require("../core/anotherModule"); exports.m = mod; //# sourceMappingURL=index.js.map -//// [/src/logic/index.js.map] +//// [/user/username/projects/sample1/logic/index.js.map] {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAA,iCAAmC;AACnC,SAAgB,eAAe;IAC3B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC9B,CAAC;AAFD,0CAEC;AACD,2CAA6C;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} -//// [/src/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; - - -//// [/src/logic/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../core" } - ] +//// [/user/username/projects/sample1/logic/index.ts] +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; + + +//// [/user/username/projects/sample1/logic/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + }, + "references": [ + { + "path": "../core" + } + ] } - -//// [/src/logic/tsconfig.tsbuildinfo] +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] {"version":"FakeTSVersion"} -//// [/src/tests/index.d.ts] +//// [/user/username/projects/sample1/tests/index.d.ts] import * as mod from '../core/anotherModule'; export declare const m: typeof mod; -//// [/src/tests/index.js] +//// [/user/username/projects/sample1/tests/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.m = void 0; @@ -141,68 +140,55 @@ var mod = require("../core/anotherModule"); exports.m = mod; -//// [/src/tests/index.ts] -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; - - -//// [/src/tests/tsconfig.json] -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" } - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - } +//// [/user/username/projects/sample1/tests/index.ts] +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; + + +//// [/user/username/projects/sample1/tests/tsconfig.json] +{ + "references": [ + { + "path": "../core" + }, + { + "path": "../logic" + } + ], + "files": [ + "index.ts" + ], + "compilerOptions": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + } } -//// [/src/tests/tsconfig.tsbuildinfo] +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] {"version":"FakeTSVersion"} -//// [/src/ui/index.ts] -import * as logic from '../logic'; - -export function run() { - console.log(logic.getSecondsInDay()); -} - - -//// [/src/ui/tsconfig.json] -{ - "compilerOptions": { - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../logic/index" } - ] -} - - Output:: -/lib/tsc --b /src/tests --verbose -[12:00:23 AM] Projects in this build: - * src/core/tsconfig.json - * src/logic/tsconfig.json - * src/tests/tsconfig.json +/a/lib/tsc --b tests --verbose +[12:00:39 AM] Projects in this build: + * core/tsconfig.json + * logic/tsconfig.json + * tests/tsconfig.json -[12:00:24 AM] Project 'src/core/tsconfig.json' is up to date because newest input 'src/core/anotherModule.ts' is older than output 'src/core/tsconfig.tsbuildinfo' +[12:00:40 AM] Project 'core/tsconfig.json' is up to date because newest input 'core/anotherModule.ts' is older than output 'core/tsconfig.tsbuildinfo' -[12:00:25 AM] Project 'src/logic/tsconfig.json' is up to date because newest input 'src/logic/index.ts' is older than output 'src/logic/tsconfig.tsbuildinfo' +[12:00:41 AM] Project 'logic/tsconfig.json' is up to date because newest input 'logic/index.ts' is older than output 'logic/tsconfig.tsbuildinfo' -[12:00:26 AM] Project 'src/tests/tsconfig.json' is up to date because newest input 'src/tests/index.ts' is older than output 'src/tests/tsconfig.tsbuildinfo' +[12:00:42 AM] Project 'tests/tsconfig.json' is up to date because newest input 'tests/index.ts' is older than output 'tests/tsconfig.tsbuildinfo' exitCode:: ExitStatus.Success diff --git a/tests/baselines/reference/tsbuild/sample1/does-not-write-any-files-in-a-dry-build.js b/tests/baselines/reference/tsbuild/sample1/does-not-write-any-files-in-a-dry-build.js index 433d32c590c39..c88ea5a2c25ac 100644 --- a/tests/baselines/reference/tsbuild/sample1/does-not-write-any-files-in-a-dry-build.js +++ b/tests/baselines/reference/tsbuild/sample1/does-not-write-any-files-in-a-dry-build.js @@ -1,6 +1,6 @@ -currentDirectory:: / useCaseSensitiveFileNames: false +currentDirectory:: /user/username/projects/sample1 useCaseSensitiveFileNames: false Input:: -//// [/lib/lib.d.ts] +//// [/a/lib/lib.d.ts] /// interface Boolean {} interface Function {} @@ -15,108 +15,94 @@ interface Array { length: number; [n: number]: T; } interface ReadonlyArray {} declare const console: { log(msg: any): void; }; -//// [/src/core/anotherModule.ts] +//// [/user/username/projects/sample1/core/anotherModule.ts] export const World = "hello"; +//// [/user/username/projects/sample1/core/index.ts] +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } -//// [/src/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } - -//// [/src/core/some_decl.d.ts] +//// [/user/username/projects/sample1/core/some_decl.d.ts] declare const dts: any; - -//// [/src/core/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - } +//// [/user/username/projects/sample1/core/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + } } -//// [/src/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; - - -//// [/src/logic/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../core" } - ] +//// [/user/username/projects/sample1/logic/index.ts] +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; + + +//// [/user/username/projects/sample1/logic/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + }, + "references": [ + { + "path": "../core" + } + ] } - -//// [/src/tests/index.ts] -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; - - -//// [/src/tests/tsconfig.json] -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" } - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - } -} - -//// [/src/ui/index.ts] -import * as logic from '../logic'; - -export function run() { - console.log(logic.getSecondsInDay()); -} - - -//// [/src/ui/tsconfig.json] -{ - "compilerOptions": { - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../logic/index" } - ] +//// [/user/username/projects/sample1/tests/index.ts] +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; + + +//// [/user/username/projects/sample1/tests/tsconfig.json] +{ + "references": [ + { + "path": "../core" + }, + { + "path": "../logic" + } + ], + "files": [ + "index.ts" + ], + "compilerOptions": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + } } - Output:: -/lib/tsc --b /src/tests --dry -[12:00:06 AM] A non-dry build would build project '/src/core/tsconfig.json' +/a/lib/tsc --b tests --dry +[12:00:22 AM] A non-dry build would build project '/user/username/projects/sample1/core/tsconfig.json' -[12:00:07 AM] A non-dry build would build project '/src/logic/tsconfig.json' +[12:00:23 AM] A non-dry build would build project '/user/username/projects/sample1/logic/tsconfig.json' -[12:00:08 AM] A non-dry build would build project '/src/tests/tsconfig.json' +[12:00:24 AM] A non-dry build would build project '/user/username/projects/sample1/tests/tsconfig.json' exitCode:: ExitStatus.Success diff --git a/tests/baselines/reference/tsbuild/sample1/explainFiles.js b/tests/baselines/reference/tsbuild/sample1/explainFiles.js index e11b524bd7d5a..382887156c501 100644 --- a/tests/baselines/reference/tsbuild/sample1/explainFiles.js +++ b/tests/baselines/reference/tsbuild/sample1/explainFiles.js @@ -1,6 +1,6 @@ -currentDirectory:: / useCaseSensitiveFileNames: false +currentDirectory:: /user/username/projects/sample1 useCaseSensitiveFileNames: false Input:: -//// [/lib/lib.d.ts] +//// [/a/lib/lib.d.ts] /// interface Boolean {} interface Function {} @@ -15,179 +15,165 @@ interface Array { length: number; [n: number]: T; } interface ReadonlyArray {} declare const console: { log(msg: any): void; }; -//// [/src/core/anotherModule.ts] +//// [/user/username/projects/sample1/core/anotherModule.ts] export const World = "hello"; +//// [/user/username/projects/sample1/core/index.ts] +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } -//// [/src/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } - -//// [/src/core/some_decl.d.ts] +//// [/user/username/projects/sample1/core/some_decl.d.ts] declare const dts: any; - -//// [/src/core/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - } -} - -//// [/src/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; - - -//// [/src/logic/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../core" } - ] +//// [/user/username/projects/sample1/core/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + } } - -//// [/src/tests/index.ts] -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; +//// [/user/username/projects/sample1/logic/index.ts] +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; -//// [/src/tests/tsconfig.json] -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" } - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - } +//// [/user/username/projects/sample1/logic/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + }, + "references": [ + { + "path": "../core" + } + ] } -//// [/src/ui/index.ts] -import * as logic from '../logic'; - -export function run() { - console.log(logic.getSecondsInDay()); -} +//// [/user/username/projects/sample1/tests/index.ts] +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; -//// [/src/ui/tsconfig.json] -{ - "compilerOptions": { - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../logic/index" } - ] +//// [/user/username/projects/sample1/tests/tsconfig.json] +{ + "references": [ + { + "path": "../core" + }, + { + "path": "../logic" + } + ], + "files": [ + "index.ts" + ], + "compilerOptions": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + } } - Output:: -/lib/tsc --b /src/tests --explainFiles --v -[12:00:06 AM] Projects in this build: - * src/core/tsconfig.json - * src/logic/tsconfig.json - * src/tests/tsconfig.json +/a/lib/tsc --b tests --explainFiles --v +[12:00:22 AM] Projects in this build: + * core/tsconfig.json + * logic/tsconfig.json + * tests/tsconfig.json -[12:00:07 AM] Project 'src/core/tsconfig.json' is out of date because output file 'src/core/tsconfig.tsbuildinfo' does not exist +[12:00:23 AM] Project 'core/tsconfig.json' is out of date because output file 'core/tsconfig.tsbuildinfo' does not exist -[12:00:08 AM] Building project '/src/core/tsconfig.json'... +[12:00:24 AM] Building project '/user/username/projects/sample1/core/tsconfig.json'... -lib/lib.d.ts +../../../../a/lib/lib.d.ts Default library for target 'es5' -src/core/anotherModule.ts +core/anotherModule.ts Matched by default include pattern '**/*' -src/core/index.ts +core/index.ts Matched by default include pattern '**/*' -src/core/some_decl.d.ts +core/some_decl.d.ts Matched by default include pattern '**/*' -[12:00:18 AM] Project 'src/logic/tsconfig.json' is out of date because output file 'src/logic/tsconfig.tsbuildinfo' does not exist +[12:00:34 AM] Project 'logic/tsconfig.json' is out of date because output file 'logic/tsconfig.tsbuildinfo' does not exist -[12:00:19 AM] Building project '/src/logic/tsconfig.json'... +[12:00:35 AM] Building project '/user/username/projects/sample1/logic/tsconfig.json'... -lib/lib.d.ts +../../../../a/lib/lib.d.ts Default library for target 'es5' -src/core/index.d.ts - Imported via '../core/index' from file 'src/logic/index.ts' - File is output of project reference source 'src/core/index.ts' -src/core/anotherModule.d.ts - Imported via '../core/anotherModule' from file 'src/logic/index.ts' - File is output of project reference source 'src/core/anotherModule.ts' -src/logic/index.ts +core/index.d.ts + Imported via '../core/index' from file 'logic/index.ts' + File is output of project reference source 'core/index.ts' +core/anotherModule.d.ts + Imported via '../core/anotherModule' from file 'logic/index.ts' + File is output of project reference source 'core/anotherModule.ts' +logic/index.ts Matched by default include pattern '**/*' -[12:00:26 AM] Project 'src/tests/tsconfig.json' is out of date because output file 'src/tests/tsconfig.tsbuildinfo' does not exist +[12:00:42 AM] Project 'tests/tsconfig.json' is out of date because output file 'tests/tsconfig.tsbuildinfo' does not exist -[12:00:27 AM] Building project '/src/tests/tsconfig.json'... +[12:00:43 AM] Building project '/user/username/projects/sample1/tests/tsconfig.json'... -lib/lib.d.ts +../../../../a/lib/lib.d.ts Default library for target 'es5' -src/core/index.d.ts - Imported via '../core/index' from file 'src/tests/index.ts' - File is output of project reference source 'src/core/index.ts' -src/core/anotherModule.d.ts - Imported via '../core/anotherModule' from file 'src/logic/index.d.ts' - Imported via '../core/anotherModule' from file 'src/tests/index.ts' - File is output of project reference source 'src/core/anotherModule.ts' -src/logic/index.d.ts - Imported via '../logic/index' from file 'src/tests/index.ts' - File is output of project reference source 'src/logic/index.ts' -src/tests/index.ts +core/index.d.ts + Imported via '../core/index' from file 'tests/index.ts' + File is output of project reference source 'core/index.ts' +core/anotherModule.d.ts + Imported via '../core/anotherModule' from file 'logic/index.d.ts' + Imported via '../core/anotherModule' from file 'tests/index.ts' + File is output of project reference source 'core/anotherModule.ts' +logic/index.d.ts + Imported via '../logic/index' from file 'tests/index.ts' + File is output of project reference source 'logic/index.ts' +tests/index.ts Part of 'files' list in tsconfig.json exitCode:: ExitStatus.Success -//// [/src/core/anotherModule.d.ts] +//// [/user/username/projects/sample1/core/anotherModule.d.ts] export declare const World = "hello"; //# sourceMappingURL=anotherModule.d.ts.map -//// [/src/core/anotherModule.d.ts.map] +//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] {"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} -//// [/src/core/anotherModule.js] +//// [/user/username/projects/sample1/core/anotherModule.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.World = void 0; exports.World = "hello"; -//// [/src/core/index.d.ts] +//// [/user/username/projects/sample1/core/index.d.ts] export declare const someString: string; export declare function leftPad(s: string, n: number): string; export declare function multiply(a: number, b: number): number; //# sourceMappingURL=index.d.ts.map -//// [/src/core/index.d.ts.map] +//// [/user/username/projects/sample1/core/index.d.ts.map] {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} -//// [/src/core/index.js] +//// [/user/username/projects/sample1/core/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.multiply = exports.leftPad = exports.someString = void 0; @@ -198,20 +184,20 @@ function multiply(a, b) { return a * b; } exports.multiply = multiply; -//// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\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"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -222,27 +208,27 @@ exports.multiply = multiply; }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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" }, - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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" }, "./some_decl.d.ts": { "original": { - "version": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", "affectsGlobalScope": true }, - "version": "-9253692965-declare const dts: any;\r\n", - "signature": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", "affectsGlobalScope": true } }, @@ -268,7 +254,7 @@ exports.multiply = multiply; "referencedMap": {}, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" @@ -276,16 +262,16 @@ exports.multiply = multiply; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1477 + "size": 1474 } -//// [/src/logic/index.d.ts] +//// [/user/username/projects/sample1/logic/index.d.ts] export declare function getSecondsInDay(): number; import * as mod from '../core/anotherModule'; export declare const m: typeof mod; -//// [/src/logic/index.js] +//// [/user/username/projects/sample1/logic/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.m = exports.getSecondsInDay = void 0; @@ -298,17 +284,17 @@ var mod = require("../core/anotherModule"); exports.m = mod; //# sourceMappingURL=index.js.map -//// [/src/logic/index.js.map] +//// [/user/username/projects/sample1/logic/index.js.map] {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAA,iCAAmC;AACnC,SAAgB,eAAe;IAC3B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC9B,CAAC;AAFD,0CAEC;AACD,2CAA6C;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} -//// [/src/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/logic/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "./index.ts" @@ -323,7 +309,7 @@ exports.m = mod; ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -342,10 +328,10 @@ exports.m = mod; }, "./index.ts": { "original": { - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -373,7 +359,7 @@ exports.m = mod; ] }, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "./index.ts" @@ -381,15 +367,15 @@ exports.m = mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1512 + "size": 1511 } -//// [/src/tests/index.d.ts] +//// [/user/username/projects/sample1/tests/index.d.ts] import * as mod from '../core/anotherModule'; export declare const m: typeof mod; -//// [/src/tests/index.js] +//// [/user/username/projects/sample1/tests/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.m = void 0; @@ -401,14 +387,14 @@ var mod = require("../core/anotherModule"); exports.m = mod; -//// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "../logic/index.d.ts", @@ -425,7 +411,7 @@ exports.m = mod; ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -448,10 +434,10 @@ exports.m = mod; }, "./index.ts": { "original": { - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -485,7 +471,7 @@ exports.m = mod; ] }, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "../logic/index.d.ts", @@ -494,77 +480,77 @@ exports.m = mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1657 + "size": 1653 } Change:: incremental-declaration-changes Input:: -//// [/src/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/index.ts] +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } export class someClass { } Output:: -/lib/tsc --b /src/tests --explainFiles --v -[12:00:34 AM] Projects in this build: - * src/core/tsconfig.json - * src/logic/tsconfig.json - * src/tests/tsconfig.json +/a/lib/tsc --b tests --explainFiles --v +[12:00:50 AM] Projects in this build: + * core/tsconfig.json + * logic/tsconfig.json + * tests/tsconfig.json -[12:00:35 AM] Project 'src/core/tsconfig.json' is out of date because output 'src/core/tsconfig.tsbuildinfo' is older than input 'src/core/index.ts' +[12:00:51 AM] Project 'core/tsconfig.json' is out of date because output 'core/tsconfig.tsbuildinfo' is older than input 'core/index.ts' -[12:00:36 AM] Building project '/src/core/tsconfig.json'... +[12:00:52 AM] Building project '/user/username/projects/sample1/core/tsconfig.json'... -lib/lib.d.ts +../../../../a/lib/lib.d.ts Default library for target 'es5' -src/core/anotherModule.ts +core/anotherModule.ts Matched by default include pattern '**/*' -src/core/index.ts +core/index.ts Matched by default include pattern '**/*' -src/core/some_decl.d.ts +core/some_decl.d.ts Matched by default include pattern '**/*' -[12:00:43 AM] Project 'src/logic/tsconfig.json' is out of date because output 'src/logic/tsconfig.tsbuildinfo' is older than input 'src/core' +[12:00:59 AM] Project 'logic/tsconfig.json' is out of date because output 'logic/tsconfig.tsbuildinfo' is older than input 'core' -[12:00:44 AM] Building project '/src/logic/tsconfig.json'... +[12:01:00 AM] Building project '/user/username/projects/sample1/logic/tsconfig.json'... -lib/lib.d.ts +../../../../a/lib/lib.d.ts Default library for target 'es5' -src/core/index.d.ts - Imported via '../core/index' from file 'src/logic/index.ts' - File is output of project reference source 'src/core/index.ts' -src/core/anotherModule.d.ts - Imported via '../core/anotherModule' from file 'src/logic/index.ts' - File is output of project reference source 'src/core/anotherModule.ts' -src/logic/index.ts +core/index.d.ts + Imported via '../core/index' from file 'logic/index.ts' + File is output of project reference source 'core/index.ts' +core/anotherModule.d.ts + Imported via '../core/anotherModule' from file 'logic/index.ts' + File is output of project reference source 'core/anotherModule.ts' +logic/index.ts Matched by default include pattern '**/*' -[12:00:50 AM] Project 'src/tests/tsconfig.json' is out of date because output 'src/tests/tsconfig.tsbuildinfo' is older than input 'src/core' +[12:01:06 AM] Project 'tests/tsconfig.json' is out of date because output 'tests/tsconfig.tsbuildinfo' is older than input 'core' -[12:00:51 AM] Building project '/src/tests/tsconfig.json'... +[12:01:07 AM] Building project '/user/username/projects/sample1/tests/tsconfig.json'... -lib/lib.d.ts +../../../../a/lib/lib.d.ts Default library for target 'es5' -src/core/index.d.ts - Imported via '../core/index' from file 'src/tests/index.ts' - File is output of project reference source 'src/core/index.ts' -src/core/anotherModule.d.ts - Imported via '../core/anotherModule' from file 'src/logic/index.d.ts' - Imported via '../core/anotherModule' from file 'src/tests/index.ts' - File is output of project reference source 'src/core/anotherModule.ts' -src/logic/index.d.ts - Imported via '../logic/index' from file 'src/tests/index.ts' - File is output of project reference source 'src/logic/index.ts' -src/tests/index.ts +core/index.d.ts + Imported via '../core/index' from file 'tests/index.ts' + File is output of project reference source 'core/index.ts' +core/anotherModule.d.ts + Imported via '../core/anotherModule' from file 'logic/index.d.ts' + Imported via '../core/anotherModule' from file 'tests/index.ts' + File is output of project reference source 'core/anotherModule.ts' +logic/index.d.ts + Imported via '../logic/index' from file 'tests/index.ts' + File is output of project reference source 'logic/index.ts' +tests/index.ts Part of 'files' list in tsconfig.json exitCode:: ExitStatus.Success -//// [/src/core/index.d.ts] +//// [/user/username/projects/sample1/core/index.d.ts] export declare const someString: string; export declare function leftPad(s: string, n: number): string; export declare function multiply(a: number, b: number): number; @@ -572,10 +558,10 @@ export declare class someClass { } //# sourceMappingURL=index.d.ts.map -//// [/src/core/index.d.ts.map] +//// [/user/username/projects/sample1/core/index.d.ts.map] {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAEhE,qBAAa,SAAS;CAAI"} -//// [/src/core/index.js] +//// [/user/username/projects/sample1/core/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.someClass = exports.multiply = exports.leftPad = exports.someString = void 0; @@ -592,20 +578,20 @@ var someClass = /** @class */ (function () { exports.someClass = someClass; -//// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-13387000654-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }","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"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-14927048853-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }","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"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -616,27 +602,27 @@ exports.someClass = someClass; }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-13387000654-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }", + "version": "-14927048853-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }", "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" }, - "version": "-13387000654-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }", + "version": "-14927048853-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }", "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" }, "./some_decl.d.ts": { "original": { - "version": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", "affectsGlobalScope": true }, - "version": "-9253692965-declare const dts: any;\r\n", - "signature": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", "affectsGlobalScope": true } }, @@ -662,7 +648,7 @@ exports.someClass = someClass; "referencedMap": {}, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" @@ -670,19 +656,19 @@ exports.someClass = someClass; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1542 + "size": 1539 } -//// [/src/logic/index.js] file written with same contents -//// [/src/logic/index.js.map] file written with same contents -//// [/src/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/logic/index.js] file written with same contents +//// [/user/username/projects/sample1/logic/index.js.map] file written with same contents +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/logic/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "./index.ts" @@ -697,7 +683,7 @@ exports.someClass = someClass; ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -716,10 +702,10 @@ exports.someClass = someClass; }, "./index.ts": { "original": { - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -747,7 +733,7 @@ exports.someClass = someClass; ] }, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "./index.ts" @@ -755,18 +741,18 @@ exports.someClass = someClass; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1549 + "size": 1548 } -//// [/src/tests/index.js] file written with same contents -//// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/tests/index.js] file written with same contents +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "../logic/index.d.ts", @@ -783,7 +769,7 @@ exports.someClass = someClass; ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -806,10 +792,10 @@ exports.someClass = someClass; }, "./index.ts": { "original": { - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -843,7 +829,7 @@ exports.someClass = someClass; ] }, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "../logic/index.d.ts", @@ -852,17 +838,17 @@ exports.someClass = someClass; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1694 + "size": 1690 } Change:: incremental-declaration-doesnt-change Input:: -//// [/src/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/index.ts] +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } export class someClass { } class someClass2 { } @@ -870,37 +856,37 @@ class someClass2 { } Output:: -/lib/tsc --b /src/tests --explainFiles --v -[12:00:57 AM] Projects in this build: - * src/core/tsconfig.json - * src/logic/tsconfig.json - * src/tests/tsconfig.json +/a/lib/tsc --b tests --explainFiles --v +[12:01:13 AM] Projects in this build: + * core/tsconfig.json + * logic/tsconfig.json + * tests/tsconfig.json -[12:00:58 AM] Project 'src/core/tsconfig.json' is out of date because output 'src/core/tsconfig.tsbuildinfo' is older than input 'src/core/index.ts' +[12:01:14 AM] Project 'core/tsconfig.json' is out of date because output 'core/tsconfig.tsbuildinfo' is older than input 'core/index.ts' -[12:00:59 AM] Building project '/src/core/tsconfig.json'... +[12:01:15 AM] Building project '/user/username/projects/sample1/core/tsconfig.json'... -lib/lib.d.ts +../../../../a/lib/lib.d.ts Default library for target 'es5' -src/core/anotherModule.ts +core/anotherModule.ts Matched by default include pattern '**/*' -src/core/index.ts +core/index.ts Matched by default include pattern '**/*' -src/core/some_decl.d.ts +core/some_decl.d.ts Matched by default include pattern '**/*' -[12:01:05 AM] Project 'src/logic/tsconfig.json' is up to date with .d.ts files from its dependencies +[12:01:21 AM] Project 'logic/tsconfig.json' is up to date with .d.ts files from its dependencies -[12:01:06 AM] Updating output timestamps of project '/src/logic/tsconfig.json'... +[12:01:22 AM] Updating output timestamps of project '/user/username/projects/sample1/logic/tsconfig.json'... -[12:01:09 AM] Project 'src/tests/tsconfig.json' is up to date with .d.ts files from its dependencies +[12:01:25 AM] Project 'tests/tsconfig.json' is up to date with .d.ts files from its dependencies -[12:01:10 AM] Updating output timestamps of project '/src/tests/tsconfig.json'... +[12:01:26 AM] Updating output timestamps of project '/user/username/projects/sample1/tests/tsconfig.json'... exitCode:: ExitStatus.Success -//// [/src/core/index.d.ts.map] file written with same contents -//// [/src/core/index.js] +//// [/user/username/projects/sample1/core/index.d.ts.map] file written with same contents +//// [/user/username/projects/sample1/core/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.someClass = exports.multiply = exports.leftPad = exports.someString = void 0; @@ -922,20 +908,20 @@ var someClass2 = /** @class */ (function () { }()); -//// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-11293323834-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }\nclass someClass2 { }","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"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18382817761-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }\nclass someClass2 { }","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"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -946,27 +932,27 @@ var someClass2 = /** @class */ (function () { }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-11293323834-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }\nclass someClass2 { }", + "version": "-18382817761-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }\nclass someClass2 { }", "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" }, - "version": "-11293323834-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }\nclass someClass2 { }", + "version": "-18382817761-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }\nclass someClass2 { }", "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" }, "./some_decl.d.ts": { "original": { - "version": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", "affectsGlobalScope": true }, - "version": "-9253692965-declare const dts: any;\r\n", - "signature": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", "affectsGlobalScope": true } }, @@ -992,7 +978,7 @@ var someClass2 = /** @class */ (function () { "referencedMap": {}, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" @@ -1000,11 +986,11 @@ var someClass2 = /** @class */ (function () { "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1564 + "size": 1561 } -//// [/src/logic/tsconfig.tsbuildinfo] file changed its modified time -//// [/src/tests/tsconfig.tsbuildinfo] file changed its modified time +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] file changed its modified time +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] file changed its modified time Change:: no-change-run @@ -1012,17 +998,17 @@ Input:: Output:: -/lib/tsc --b /src/tests --explainFiles --v -[12:01:13 AM] Projects in this build: - * src/core/tsconfig.json - * src/logic/tsconfig.json - * src/tests/tsconfig.json +/a/lib/tsc --b tests --explainFiles --v +[12:01:29 AM] Projects in this build: + * core/tsconfig.json + * logic/tsconfig.json + * tests/tsconfig.json -[12:01:14 AM] Project 'src/core/tsconfig.json' is up to date because newest input 'src/core/index.ts' is older than output 'src/core/tsconfig.tsbuildinfo' +[12:01:30 AM] Project 'core/tsconfig.json' is up to date because newest input 'core/index.ts' is older than output 'core/tsconfig.tsbuildinfo' -[12:01:15 AM] Project 'src/logic/tsconfig.json' is up to date because newest input 'src/logic/index.ts' is older than output 'src/logic/tsconfig.tsbuildinfo' +[12:01:31 AM] Project 'logic/tsconfig.json' is up to date because newest input 'logic/index.ts' is older than output 'logic/tsconfig.tsbuildinfo' -[12:01:16 AM] Project 'src/tests/tsconfig.json' is up to date because newest input 'src/tests/index.ts' is older than output 'src/tests/tsconfig.tsbuildinfo' +[12:01:32 AM] Project 'tests/tsconfig.json' is up to date because newest input 'tests/index.ts' is older than output 'tests/tsconfig.tsbuildinfo' exitCode:: ExitStatus.Success diff --git a/tests/baselines/reference/tsbuild/sample1/indicates-that-it-would-skip-builds-during-a-dry-build.js b/tests/baselines/reference/tsbuild/sample1/indicates-that-it-would-skip-builds-during-a-dry-build.js index f533a28026ad4..28a924969a0c0 100644 --- a/tests/baselines/reference/tsbuild/sample1/indicates-that-it-would-skip-builds-during-a-dry-build.js +++ b/tests/baselines/reference/tsbuild/sample1/indicates-that-it-would-skip-builds-during-a-dry-build.js @@ -1,6 +1,6 @@ -currentDirectory:: / useCaseSensitiveFileNames: false +currentDirectory:: /user/username/projects/sample1 useCaseSensitiveFileNames: false Input:: -//// [/lib/lib.d.ts] +//// [/a/lib/lib.d.ts] /// interface Boolean {} interface Function {} @@ -15,34 +15,33 @@ interface Array { length: number; [n: number]: T; } interface ReadonlyArray {} declare const console: { log(msg: any): void; }; -//// [/src/core/anotherModule.d.ts] +//// [/user/username/projects/sample1/core/anotherModule.d.ts] export declare const World = "hello"; //# sourceMappingURL=anotherModule.d.ts.map -//// [/src/core/anotherModule.d.ts.map] +//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] {"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} -//// [/src/core/anotherModule.js] +//// [/user/username/projects/sample1/core/anotherModule.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.World = void 0; exports.World = "hello"; -//// [/src/core/anotherModule.ts] +//// [/user/username/projects/sample1/core/anotherModule.ts] export const World = "hello"; - -//// [/src/core/index.d.ts] +//// [/user/username/projects/sample1/core/index.d.ts] export declare const someString: string; export declare function leftPad(s: string, n: number): string; export declare function multiply(a: number, b: number): number; //# sourceMappingURL=index.d.ts.map -//// [/src/core/index.d.ts.map] +//// [/user/username/projects/sample1/core/index.d.ts.map] {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} -//// [/src/core/index.js] +//// [/user/username/projects/sample1/core/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.multiply = exports.leftPad = exports.someString = void 0; @@ -53,40 +52,39 @@ function multiply(a, b) { return a * b; } exports.multiply = multiply; -//// [/src/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/index.ts] +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } -//// [/src/core/some_decl.d.ts] +//// [/user/username/projects/sample1/core/some_decl.d.ts] declare const dts: any; - -//// [/src/core/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - } +//// [/user/username/projects/sample1/core/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + } } -//// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\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"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -97,27 +95,27 @@ declare const dts: any; }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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" }, - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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" }, "./some_decl.d.ts": { "original": { - "version": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", "affectsGlobalScope": true }, - "version": "-9253692965-declare const dts: any;\r\n", - "signature": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", "affectsGlobalScope": true } }, @@ -143,7 +141,7 @@ declare const dts: any; "referencedMap": {}, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" @@ -151,16 +149,16 @@ declare const dts: any; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1477 + "size": 1474 } -//// [/src/logic/index.d.ts] +//// [/user/username/projects/sample1/logic/index.d.ts] export declare function getSecondsInDay(): number; import * as mod from '../core/anotherModule'; export declare const m: typeof mod; -//// [/src/logic/index.js] +//// [/user/username/projects/sample1/logic/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.m = exports.getSecondsInDay = void 0; @@ -173,41 +171,42 @@ var mod = require("../core/anotherModule"); exports.m = mod; //# sourceMappingURL=index.js.map -//// [/src/logic/index.js.map] +//// [/user/username/projects/sample1/logic/index.js.map] {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAA,iCAAmC;AACnC,SAAgB,eAAe;IAC3B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC9B,CAAC;AAFD,0CAEC;AACD,2CAA6C;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} -//// [/src/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; - - -//// [/src/logic/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../core" } - ] -} +//// [/user/username/projects/sample1/logic/index.ts] +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; -//// [/src/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/logic/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + }, + "references": [ + { + "path": "../core" + } + ] +} -//// [/src/logic/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} + +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "./index.ts" @@ -222,7 +221,7 @@ export const m = mod; ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -241,10 +240,10 @@ export const m = mod; }, "./index.ts": { "original": { - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -272,7 +271,7 @@ export const m = mod; ] }, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "./index.ts" @@ -280,15 +279,15 @@ export const m = mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1512 + "size": 1511 } -//// [/src/tests/index.d.ts] +//// [/user/username/projects/sample1/tests/index.d.ts] import * as mod from '../core/anotherModule'; export declare const m: typeof mod; -//// [/src/tests/index.js] +//// [/user/username/projects/sample1/tests/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.m = void 0; @@ -300,40 +299,46 @@ var mod = require("../core/anotherModule"); exports.m = mod; -//// [/src/tests/index.ts] -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; +//// [/user/username/projects/sample1/tests/index.ts] +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; -//// [/src/tests/tsconfig.json] -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" } - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - } +//// [/user/username/projects/sample1/tests/tsconfig.json] +{ + "references": [ + { + "path": "../core" + }, + { + "path": "../logic" + } + ], + "files": [ + "index.ts" + ], + "compilerOptions": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + } } -//// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "../logic/index.d.ts", @@ -350,7 +355,7 @@ export const m = mod; ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -373,10 +378,10 @@ export const m = mod; }, "./index.ts": { "original": { - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -410,7 +415,7 @@ export const m = mod; ] }, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "../logic/index.d.ts", @@ -419,37 +424,18 @@ export const m = mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1657 + "size": 1653 } -//// [/src/ui/index.ts] -import * as logic from '../logic'; - -export function run() { - console.log(logic.getSecondsInDay()); -} - - -//// [/src/ui/tsconfig.json] -{ - "compilerOptions": { - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../logic/index" } - ] -} - - Output:: -/lib/tsc --b /src/tests --dry -[12:00:26 AM] Project '/src/core/tsconfig.json' is up to date +/a/lib/tsc --b tests --dry +[12:00:42 AM] Project '/user/username/projects/sample1/core/tsconfig.json' is up to date -[12:00:27 AM] Project '/src/logic/tsconfig.json' is up to date +[12:00:43 AM] Project '/user/username/projects/sample1/logic/tsconfig.json' is up to date -[12:00:28 AM] Project '/src/tests/tsconfig.json' is up to date +[12:00:44 AM] Project '/user/username/projects/sample1/tests/tsconfig.json' is up to date exitCode:: ExitStatus.Success diff --git a/tests/baselines/reference/tsbuild/sample1/invalidates-projects-correctly.js b/tests/baselines/reference/tsbuild/sample1/invalidates-projects-correctly.js index e65986f9f5320..a3ed2405df339 100644 --- a/tests/baselines/reference/tsbuild/sample1/invalidates-projects-correctly.js +++ b/tests/baselines/reference/tsbuild/sample1/invalidates-projects-correctly.js @@ -1,108 +1,113 @@ Build of project Output:: -//// [/user/username/projects/core/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - } +//// [/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; } + +//// [/user/username/projects/sample1/core/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + } } -//// [/user/username/projects/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/index.ts] +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } -//// [/user/username/projects/core/some_decl.d.ts] +//// [/user/username/projects/sample1/core/some_decl.d.ts] declare const dts: any; - -//// [/user/username/projects/core/anotherModule.ts] +//// [/user/username/projects/sample1/core/anotherModule.ts] export const World = "hello"; - -//// [/user/username/projects/logic/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../core" } - ] -} - - -//// [/user/username/projects/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; - - -//// [/user/username/projects/tests/tsconfig.json] -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" } - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - } +//// [/user/username/projects/sample1/logic/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + }, + "references": [ + { + "path": "../core" + } + ] } -//// [/user/username/projects/tests/index.ts] -import * as c from '../core/index'; -import * as logic from '../logic/index'; +//// [/user/username/projects/sample1/logic/index.ts] +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; -c.leftPad("", 10); -logic.getSecondsInDay(); -import * as mod from '../core/anotherModule'; -export const m = mod; +//// [/user/username/projects/sample1/tests/tsconfig.json] +{ + "references": [ + { + "path": "../core" + }, + { + "path": "../logic" + } + ], + "files": [ + "index.ts" + ], + "compilerOptions": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + } +} +//// [/user/username/projects/sample1/tests/index.ts] +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; -//// [/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; } -//// [/user/username/projects/core/anotherModule.js] +//// [/user/username/projects/sample1/core/anotherModule.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.World = void 0; exports.World = "hello"; -//// [/user/username/projects/core/anotherModule.d.ts.map] +//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] {"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} -//// [/user/username/projects/core/anotherModule.d.ts] +//// [/user/username/projects/sample1/core/anotherModule.d.ts] export declare const World = "hello"; //# sourceMappingURL=anotherModule.d.ts.map -//// [/user/username/projects/core/index.js] +//// [/user/username/projects/sample1/core/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.multiply = exports.leftPad = exports.someString = void 0; @@ -113,29 +118,29 @@ function multiply(a, b) { return a * b; } exports.multiply = multiply; -//// [/user/username/projects/core/index.d.ts.map] +//// [/user/username/projects/sample1/core/index.d.ts.map] {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} -//// [/user/username/projects/core/index.d.ts] +//// [/user/username/projects/sample1/core/index.d.ts] export declare const someString: string; export declare function leftPad(s: string, n: number): string; export declare function multiply(a: number, b: number): number; //# sourceMappingURL=index.d.ts.map -//// [/user/username/projects/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\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"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/user/username/projects/core/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../../../a/lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" ], "fileInfos": { - "../../../../a/lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "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; }", "affectsGlobalScope": true @@ -146,27 +151,27 @@ export declare function multiply(a: number, b: number): number; }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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" }, - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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" }, "./some_decl.d.ts": { "original": { - "version": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", "affectsGlobalScope": true }, - "version": "-9253692965-declare const dts: any;\r\n", - "signature": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", "affectsGlobalScope": true } }, @@ -192,7 +197,7 @@ export declare function multiply(a: number, b: number): number; "referencedMap": {}, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "../../../../a/lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" @@ -200,13 +205,13 @@ export declare function multiply(a: number, b: number): number; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1405 + "size": 1394 } -//// [/user/username/projects/logic/index.js.map] +//// [/user/username/projects/sample1/logic/index.js.map] {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAA,iCAAmC;AACnC,SAAgB,eAAe;IAC3B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC9B,CAAC;AAFD,0CAEC;AACD,2CAA6C;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} -//// [/user/username/projects/logic/index.js] +//// [/user/username/projects/sample1/logic/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.m = exports.getSecondsInDay = void 0; @@ -219,20 +224,20 @@ var mod = require("../core/anotherModule"); exports.m = mod; //# sourceMappingURL=index.js.map -//// [/user/username/projects/logic/index.d.ts] +//// [/user/username/projects/sample1/logic/index.d.ts] export declare function getSecondsInDay(): number; import * as mod from '../core/anotherModule'; export declare const m: typeof mod; -//// [/user/username/projects/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/user/username/projects/logic/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../../../a/lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "./index.ts" @@ -247,7 +252,7 @@ export declare const m: typeof mod; ] ], "fileInfos": { - "../../../../a/lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "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; }", "affectsGlobalScope": true @@ -266,10 +271,10 @@ export declare const m: typeof mod; }, "./index.ts": { "original": { - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -297,7 +302,7 @@ export declare const m: typeof mod; ] }, "semanticDiagnosticsPerFile": [ - "../../../../a/lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "./index.ts" @@ -305,10 +310,10 @@ export declare const m: typeof mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1440 + "size": 1431 } -//// [/user/username/projects/tests/index.js] +//// [/user/username/projects/sample1/tests/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.m = void 0; @@ -320,19 +325,19 @@ var mod = require("../core/anotherModule"); exports.m = mod; -//// [/user/username/projects/tests/index.d.ts] +//// [/user/username/projects/sample1/tests/index.d.ts] import * as mod from '../core/anotherModule'; export declare const m: typeof mod; -//// [/user/username/projects/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/user/username/projects/tests/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../../../a/lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "../logic/index.d.ts", @@ -349,7 +354,7 @@ export declare const m: typeof mod; ] ], "fileInfos": { - "../../../../a/lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "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; }", "affectsGlobalScope": true @@ -372,10 +377,10 @@ export declare const m: typeof mod; }, "./index.ts": { "original": { - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -409,7 +414,7 @@ export declare const m: typeof mod; ] }, "semanticDiagnosticsPerFile": [ - "../../../../a/lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "../logic/index.d.ts", @@ -418,7 +423,7 @@ export declare const m: typeof mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1585 + "size": 1573 } @@ -426,19 +431,19 @@ Project should still be upto date: UpToDate non Dts change to logic:: After rebuilding logicConfig Output:: -//// [/user/username/projects/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; +//// [/user/username/projects/sample1/logic/index.ts] +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; function foo() {} -//// [/user/username/projects/logic/index.js.map] +//// [/user/username/projects/sample1/logic/index.js.map] {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAA,iCAAmC;AACnC,SAAgB,eAAe;IAC3B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC9B,CAAC;AAFD,0CAEC;AACD,2CAA6C;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC;AACrB,SAAS,GAAG,KAAI,CAAC"} -//// [/user/username/projects/logic/index.js] +//// [/user/username/projects/sample1/logic/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.m = exports.getSecondsInDay = void 0; @@ -452,14 +457,14 @@ exports.m = mod; function foo() { } //# sourceMappingURL=index.js.map -//// [/user/username/projects/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"-2207004071-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\nfunction foo() {}","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"-6834574773-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\nfunction foo() {}","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/user/username/projects/logic/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../../../a/lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "./index.ts" @@ -474,7 +479,7 @@ function foo() { } ] ], "fileInfos": { - "../../../../a/lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "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; }", "affectsGlobalScope": true @@ -493,10 +498,10 @@ function foo() { } }, "./index.ts": { "original": { - "version": "-2207004071-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\nfunction foo() {}", + "version": "-6834574773-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\nfunction foo() {}", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "-2207004071-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\nfunction foo() {}", + "version": "-6834574773-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\nfunction foo() {}", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -524,7 +529,7 @@ function foo() { } ] }, "semanticDiagnosticsPerFile": [ - "../../../../a/lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "./index.ts" @@ -532,31 +537,31 @@ function foo() { } "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1457 + "size": 1448 } non Dts change to logic:: After building next project Output:: -//// [/user/username/projects/tests/tsconfig.tsbuildinfo] file changed its modified time +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] file changed its modified time Dts change to Logic:: After rebuilding logicConfig Output:: -//// [/user/username/projects/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; +//// [/user/username/projects/sample1/logic/index.ts] +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; function foo() {}export class cNew {} -//// [/user/username/projects/logic/index.js.map] +//// [/user/username/projects/sample1/logic/index.js.map] {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAA,iCAAmC;AACnC,SAAgB,eAAe;IAC3B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC9B,CAAC;AAFD,0CAEC;AACD,2CAA6C;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC;AACrB,SAAS,GAAG,KAAI,CAAC;AAAA;IAAA;IAAmB,CAAC;IAAD,WAAC;AAAD,CAAC,AAApB,IAAoB;AAAP,oBAAI"} -//// [/user/username/projects/logic/index.js] +//// [/user/username/projects/sample1/logic/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.cNew = exports.m = exports.getSecondsInDay = void 0; @@ -576,7 +581,7 @@ var cNew = /** @class */ (function () { exports.cNew = cNew; //# sourceMappingURL=index.js.map -//// [/user/username/projects/logic/index.d.ts] +//// [/user/username/projects/sample1/logic/index.d.ts] export declare function getSecondsInDay(): number; import * as mod from '../core/anotherModule'; export declare const m: typeof mod; @@ -584,14 +589,14 @@ export declare class cNew { } -//// [/user/username/projects/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"-5994214602-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\nfunction foo() {}export class cNew {}","signature":"-10890883855-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\nexport declare class cNew {\n}\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"-6419466200-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\nfunction foo() {}export class cNew {}","signature":"-10890883855-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\nexport declare class cNew {\n}\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/user/username/projects/logic/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../../../a/lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "./index.ts" @@ -606,7 +611,7 @@ export declare class cNew { ] ], "fileInfos": { - "../../../../a/lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "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; }", "affectsGlobalScope": true @@ -625,10 +630,10 @@ export declare class cNew { }, "./index.ts": { "original": { - "version": "-5994214602-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\nfunction foo() {}export class cNew {}", + "version": "-6419466200-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\nfunction foo() {}export class cNew {}", "signature": "-10890883855-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\nexport declare class cNew {\n}\n" }, - "version": "-5994214602-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\nfunction foo() {}export class cNew {}", + "version": "-6419466200-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\nfunction foo() {}export class cNew {}", "signature": "-10890883855-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\nexport declare class cNew {\n}\n" } }, @@ -656,7 +661,7 @@ export declare class cNew { ] }, "semanticDiagnosticsPerFile": [ - "../../../../a/lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "./index.ts" @@ -664,22 +669,22 @@ export declare class cNew { "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1510 + "size": 1501 } Dts change to Logic:: After building next project Output:: -//// [/user/username/projects/tests/index.js] file written with same contents -//// [/user/username/projects/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n","-10890883855-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\nexport declare class cNew {\n}\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/tests/index.js] file written with same contents +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n","-10890883855-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\nexport declare class cNew {\n}\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/user/username/projects/tests/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../../../a/lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "../logic/index.d.ts", @@ -696,7 +701,7 @@ Output:: ] ], "fileInfos": { - "../../../../a/lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "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; }", "affectsGlobalScope": true @@ -719,10 +724,10 @@ Output:: }, "./index.ts": { "original": { - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -756,7 +761,7 @@ Output:: ] }, "semanticDiagnosticsPerFile": [ - "../../../../a/lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "../logic/index.d.ts", @@ -765,6 +770,6 @@ Output:: "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1618 + "size": 1606 } diff --git a/tests/baselines/reference/tsbuild/sample1/listEmittedFiles.js b/tests/baselines/reference/tsbuild/sample1/listEmittedFiles.js index b68f64249d3e0..9641ce257ff2a 100644 --- a/tests/baselines/reference/tsbuild/sample1/listEmittedFiles.js +++ b/tests/baselines/reference/tsbuild/sample1/listEmittedFiles.js @@ -1,6 +1,6 @@ -currentDirectory:: / useCaseSensitiveFileNames: false +currentDirectory:: /user/username/projects/sample1 useCaseSensitiveFileNames: false Input:: -//// [/lib/lib.d.ts] +//// [/a/lib/lib.d.ts] /// interface Boolean {} interface Function {} @@ -15,144 +15,130 @@ interface Array { length: number; [n: number]: T; } interface ReadonlyArray {} declare const console: { log(msg: any): void; }; -//// [/src/core/anotherModule.ts] +//// [/user/username/projects/sample1/core/anotherModule.ts] export const World = "hello"; +//// [/user/username/projects/sample1/core/index.ts] +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } -//// [/src/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } - -//// [/src/core/some_decl.d.ts] +//// [/user/username/projects/sample1/core/some_decl.d.ts] declare const dts: any; - -//// [/src/core/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - } -} - -//// [/src/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; - - -//// [/src/logic/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../core" } - ] +//// [/user/username/projects/sample1/core/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + } } - -//// [/src/tests/index.ts] -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; +//// [/user/username/projects/sample1/logic/index.ts] +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; -//// [/src/tests/tsconfig.json] -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" } - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - } +//// [/user/username/projects/sample1/logic/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + }, + "references": [ + { + "path": "../core" + } + ] } -//// [/src/ui/index.ts] -import * as logic from '../logic'; - -export function run() { - console.log(logic.getSecondsInDay()); -} +//// [/user/username/projects/sample1/tests/index.ts] +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; -//// [/src/ui/tsconfig.json] -{ - "compilerOptions": { - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../logic/index" } - ] +//// [/user/username/projects/sample1/tests/tsconfig.json] +{ + "references": [ + { + "path": "../core" + }, + { + "path": "../logic" + } + ], + "files": [ + "index.ts" + ], + "compilerOptions": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + } } - Output:: -/lib/tsc --b /src/tests --listEmittedFiles -TSFILE: /src/core/anotherModule.js -TSFILE: /src/core/anotherModule.d.ts.map -TSFILE: /src/core/anotherModule.d.ts -TSFILE: /src/core/index.js -TSFILE: /src/core/index.d.ts.map -TSFILE: /src/core/index.d.ts -TSFILE: /src/core/tsconfig.tsbuildinfo -TSFILE: /src/logic/index.js.map -TSFILE: /src/logic/index.js -TSFILE: /src/logic/index.d.ts -TSFILE: /src/logic/tsconfig.tsbuildinfo -TSFILE: /src/tests/index.js -TSFILE: /src/tests/index.d.ts -TSFILE: /src/tests/tsconfig.tsbuildinfo +/a/lib/tsc --b tests --listEmittedFiles +TSFILE: /user/username/projects/sample1/core/anotherModule.js +TSFILE: /user/username/projects/sample1/core/anotherModule.d.ts.map +TSFILE: /user/username/projects/sample1/core/anotherModule.d.ts +TSFILE: /user/username/projects/sample1/core/index.js +TSFILE: /user/username/projects/sample1/core/index.d.ts.map +TSFILE: /user/username/projects/sample1/core/index.d.ts +TSFILE: /user/username/projects/sample1/core/tsconfig.tsbuildinfo +TSFILE: /user/username/projects/sample1/logic/index.js.map +TSFILE: /user/username/projects/sample1/logic/index.js +TSFILE: /user/username/projects/sample1/logic/index.d.ts +TSFILE: /user/username/projects/sample1/logic/tsconfig.tsbuildinfo +TSFILE: /user/username/projects/sample1/tests/index.js +TSFILE: /user/username/projects/sample1/tests/index.d.ts +TSFILE: /user/username/projects/sample1/tests/tsconfig.tsbuildinfo exitCode:: ExitStatus.Success -//// [/src/core/anotherModule.d.ts] +//// [/user/username/projects/sample1/core/anotherModule.d.ts] export declare const World = "hello"; //# sourceMappingURL=anotherModule.d.ts.map -//// [/src/core/anotherModule.d.ts.map] +//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] {"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} -//// [/src/core/anotherModule.js] +//// [/user/username/projects/sample1/core/anotherModule.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.World = void 0; exports.World = "hello"; -//// [/src/core/index.d.ts] +//// [/user/username/projects/sample1/core/index.d.ts] export declare const someString: string; export declare function leftPad(s: string, n: number): string; export declare function multiply(a: number, b: number): number; //# sourceMappingURL=index.d.ts.map -//// [/src/core/index.d.ts.map] +//// [/user/username/projects/sample1/core/index.d.ts.map] {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} -//// [/src/core/index.js] +//// [/user/username/projects/sample1/core/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.multiply = exports.leftPad = exports.someString = void 0; @@ -163,20 +149,20 @@ function multiply(a, b) { return a * b; } exports.multiply = multiply; -//// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\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"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -187,27 +173,27 @@ exports.multiply = multiply; }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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" }, - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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" }, "./some_decl.d.ts": { "original": { - "version": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", "affectsGlobalScope": true }, - "version": "-9253692965-declare const dts: any;\r\n", - "signature": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", "affectsGlobalScope": true } }, @@ -233,7 +219,7 @@ exports.multiply = multiply; "referencedMap": {}, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" @@ -241,16 +227,16 @@ exports.multiply = multiply; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1477 + "size": 1474 } -//// [/src/logic/index.d.ts] +//// [/user/username/projects/sample1/logic/index.d.ts] export declare function getSecondsInDay(): number; import * as mod from '../core/anotherModule'; export declare const m: typeof mod; -//// [/src/logic/index.js] +//// [/user/username/projects/sample1/logic/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.m = exports.getSecondsInDay = void 0; @@ -263,17 +249,17 @@ var mod = require("../core/anotherModule"); exports.m = mod; //# sourceMappingURL=index.js.map -//// [/src/logic/index.js.map] +//// [/user/username/projects/sample1/logic/index.js.map] {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAA,iCAAmC;AACnC,SAAgB,eAAe;IAC3B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC9B,CAAC;AAFD,0CAEC;AACD,2CAA6C;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} -//// [/src/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/logic/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "./index.ts" @@ -288,7 +274,7 @@ exports.m = mod; ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -307,10 +293,10 @@ exports.m = mod; }, "./index.ts": { "original": { - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -338,7 +324,7 @@ exports.m = mod; ] }, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "./index.ts" @@ -346,15 +332,15 @@ exports.m = mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1512 + "size": 1511 } -//// [/src/tests/index.d.ts] +//// [/user/username/projects/sample1/tests/index.d.ts] import * as mod from '../core/anotherModule'; export declare const m: typeof mod; -//// [/src/tests/index.js] +//// [/user/username/projects/sample1/tests/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.m = void 0; @@ -366,14 +352,14 @@ var mod = require("../core/anotherModule"); exports.m = mod; -//// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "../logic/index.d.ts", @@ -390,7 +376,7 @@ exports.m = mod; ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -413,10 +399,10 @@ exports.m = mod; }, "./index.ts": { "original": { - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -450,7 +436,7 @@ exports.m = mod; ] }, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "../logic/index.d.ts", @@ -459,37 +445,37 @@ exports.m = mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1657 + "size": 1653 } Change:: incremental-declaration-changes Input:: -//// [/src/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/index.ts] +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } export class someClass { } Output:: -/lib/tsc --b /src/tests --listEmittedFiles -TSFILE: /src/core/index.js -TSFILE: /src/core/index.d.ts.map -TSFILE: /src/core/index.d.ts -TSFILE: /src/core/tsconfig.tsbuildinfo -TSFILE: /src/logic/index.js.map -TSFILE: /src/logic/index.js -TSFILE: /src/logic/tsconfig.tsbuildinfo -TSFILE: /src/tests/index.js -TSFILE: /src/tests/tsconfig.tsbuildinfo +/a/lib/tsc --b tests --listEmittedFiles +TSFILE: /user/username/projects/sample1/core/index.js +TSFILE: /user/username/projects/sample1/core/index.d.ts.map +TSFILE: /user/username/projects/sample1/core/index.d.ts +TSFILE: /user/username/projects/sample1/core/tsconfig.tsbuildinfo +TSFILE: /user/username/projects/sample1/logic/index.js.map +TSFILE: /user/username/projects/sample1/logic/index.js +TSFILE: /user/username/projects/sample1/logic/tsconfig.tsbuildinfo +TSFILE: /user/username/projects/sample1/tests/index.js +TSFILE: /user/username/projects/sample1/tests/tsconfig.tsbuildinfo exitCode:: ExitStatus.Success -//// [/src/core/index.d.ts] +//// [/user/username/projects/sample1/core/index.d.ts] export declare const someString: string; export declare function leftPad(s: string, n: number): string; export declare function multiply(a: number, b: number): number; @@ -497,10 +483,10 @@ export declare class someClass { } //# sourceMappingURL=index.d.ts.map -//// [/src/core/index.d.ts.map] +//// [/user/username/projects/sample1/core/index.d.ts.map] {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAEhE,qBAAa,SAAS;CAAI"} -//// [/src/core/index.js] +//// [/user/username/projects/sample1/core/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.someClass = exports.multiply = exports.leftPad = exports.someString = void 0; @@ -517,20 +503,20 @@ var someClass = /** @class */ (function () { exports.someClass = someClass; -//// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-13387000654-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }","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"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-14927048853-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }","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"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -541,27 +527,27 @@ exports.someClass = someClass; }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-13387000654-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }", + "version": "-14927048853-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }", "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" }, - "version": "-13387000654-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }", + "version": "-14927048853-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }", "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" }, "./some_decl.d.ts": { "original": { - "version": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", "affectsGlobalScope": true }, - "version": "-9253692965-declare const dts: any;\r\n", - "signature": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", "affectsGlobalScope": true } }, @@ -587,7 +573,7 @@ exports.someClass = someClass; "referencedMap": {}, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" @@ -595,19 +581,19 @@ exports.someClass = someClass; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1542 + "size": 1539 } -//// [/src/logic/index.js] file written with same contents -//// [/src/logic/index.js.map] file written with same contents -//// [/src/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/logic/index.js] file written with same contents +//// [/user/username/projects/sample1/logic/index.js.map] file written with same contents +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/logic/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "./index.ts" @@ -622,7 +608,7 @@ exports.someClass = someClass; ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -641,10 +627,10 @@ exports.someClass = someClass; }, "./index.ts": { "original": { - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -672,7 +658,7 @@ exports.someClass = someClass; ] }, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "./index.ts" @@ -680,18 +666,18 @@ exports.someClass = someClass; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1549 + "size": 1548 } -//// [/src/tests/index.js] file written with same contents -//// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/tests/index.js] file written with same contents +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "../logic/index.d.ts", @@ -708,7 +694,7 @@ exports.someClass = someClass; ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -731,10 +717,10 @@ exports.someClass = someClass; }, "./index.ts": { "original": { - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -768,7 +754,7 @@ exports.someClass = someClass; ] }, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "../logic/index.d.ts", @@ -777,17 +763,17 @@ exports.someClass = someClass; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1694 + "size": 1690 } Change:: incremental-declaration-doesnt-change Input:: -//// [/src/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/index.ts] +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } export class someClass { } class someClass2 { } @@ -795,15 +781,15 @@ class someClass2 { } Output:: -/lib/tsc --b /src/tests --listEmittedFiles -TSFILE: /src/core/index.js -TSFILE: /src/core/index.d.ts.map -TSFILE: /src/core/tsconfig.tsbuildinfo +/a/lib/tsc --b tests --listEmittedFiles +TSFILE: /user/username/projects/sample1/core/index.js +TSFILE: /user/username/projects/sample1/core/index.d.ts.map +TSFILE: /user/username/projects/sample1/core/tsconfig.tsbuildinfo exitCode:: ExitStatus.Success -//// [/src/core/index.d.ts.map] file written with same contents -//// [/src/core/index.js] +//// [/user/username/projects/sample1/core/index.d.ts.map] file written with same contents +//// [/user/username/projects/sample1/core/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.someClass = exports.multiply = exports.leftPad = exports.someString = void 0; @@ -825,20 +811,20 @@ var someClass2 = /** @class */ (function () { }()); -//// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-11293323834-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }\nclass someClass2 { }","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"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18382817761-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }\nclass someClass2 { }","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"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -849,27 +835,27 @@ var someClass2 = /** @class */ (function () { }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-11293323834-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }\nclass someClass2 { }", + "version": "-18382817761-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }\nclass someClass2 { }", "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" }, - "version": "-11293323834-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }\nclass someClass2 { }", + "version": "-18382817761-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }\nclass someClass2 { }", "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" }, "./some_decl.d.ts": { "original": { - "version": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", "affectsGlobalScope": true }, - "version": "-9253692965-declare const dts: any;\r\n", - "signature": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", "affectsGlobalScope": true } }, @@ -895,7 +881,7 @@ var someClass2 = /** @class */ (function () { "referencedMap": {}, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" @@ -903,11 +889,11 @@ var someClass2 = /** @class */ (function () { "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1564 + "size": 1561 } -//// [/src/logic/tsconfig.tsbuildinfo] file changed its modified time -//// [/src/tests/tsconfig.tsbuildinfo] file changed its modified time +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] file changed its modified time +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] file changed its modified time Change:: no-change-run @@ -915,7 +901,7 @@ Input:: Output:: -/lib/tsc --b /src/tests --listEmittedFiles +/a/lib/tsc --b tests --listEmittedFiles exitCode:: ExitStatus.Success diff --git a/tests/baselines/reference/tsbuild/sample1/listFiles.js b/tests/baselines/reference/tsbuild/sample1/listFiles.js index a2a5ac8e029de..32d9c18b2a5c0 100644 --- a/tests/baselines/reference/tsbuild/sample1/listFiles.js +++ b/tests/baselines/reference/tsbuild/sample1/listFiles.js @@ -1,6 +1,6 @@ -currentDirectory:: / useCaseSensitiveFileNames: false +currentDirectory:: /user/username/projects/sample1 useCaseSensitiveFileNames: false Input:: -//// [/lib/lib.d.ts] +//// [/a/lib/lib.d.ts] /// interface Boolean {} interface Function {} @@ -15,143 +15,129 @@ interface Array { length: number; [n: number]: T; } interface ReadonlyArray {} declare const console: { log(msg: any): void; }; -//// [/src/core/anotherModule.ts] +//// [/user/username/projects/sample1/core/anotherModule.ts] export const World = "hello"; +//// [/user/username/projects/sample1/core/index.ts] +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } -//// [/src/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } - -//// [/src/core/some_decl.d.ts] +//// [/user/username/projects/sample1/core/some_decl.d.ts] declare const dts: any; - -//// [/src/core/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - } -} - -//// [/src/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; - - -//// [/src/logic/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../core" } - ] +//// [/user/username/projects/sample1/core/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + } } - -//// [/src/tests/index.ts] -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; +//// [/user/username/projects/sample1/logic/index.ts] +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; -//// [/src/tests/tsconfig.json] -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" } - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - } +//// [/user/username/projects/sample1/logic/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + }, + "references": [ + { + "path": "../core" + } + ] } -//// [/src/ui/index.ts] -import * as logic from '../logic'; - -export function run() { - console.log(logic.getSecondsInDay()); -} +//// [/user/username/projects/sample1/tests/index.ts] +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; -//// [/src/ui/tsconfig.json] -{ - "compilerOptions": { - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../logic/index" } - ] +//// [/user/username/projects/sample1/tests/tsconfig.json] +{ + "references": [ + { + "path": "../core" + }, + { + "path": "../logic" + } + ], + "files": [ + "index.ts" + ], + "compilerOptions": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + } } - Output:: -/lib/tsc --b /src/tests --listFiles -/lib/lib.d.ts -/src/core/anotherModule.ts -/src/core/index.ts -/src/core/some_decl.d.ts -/lib/lib.d.ts -/src/core/index.d.ts -/src/core/anotherModule.d.ts -/src/logic/index.ts -/lib/lib.d.ts -/src/core/index.d.ts -/src/core/anotherModule.d.ts -/src/logic/index.d.ts -/src/tests/index.ts +/a/lib/tsc --b tests --listFiles +/a/lib/lib.d.ts +/user/username/projects/sample1/core/anotherModule.ts +/user/username/projects/sample1/core/index.ts +/user/username/projects/sample1/core/some_decl.d.ts +/a/lib/lib.d.ts +/user/username/projects/sample1/core/index.d.ts +/user/username/projects/sample1/core/anotherModule.d.ts +/user/username/projects/sample1/logic/index.ts +/a/lib/lib.d.ts +/user/username/projects/sample1/core/index.d.ts +/user/username/projects/sample1/core/anotherModule.d.ts +/user/username/projects/sample1/logic/index.d.ts +/user/username/projects/sample1/tests/index.ts exitCode:: ExitStatus.Success -//// [/src/core/anotherModule.d.ts] +//// [/user/username/projects/sample1/core/anotherModule.d.ts] export declare const World = "hello"; //# sourceMappingURL=anotherModule.d.ts.map -//// [/src/core/anotherModule.d.ts.map] +//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] {"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} -//// [/src/core/anotherModule.js] +//// [/user/username/projects/sample1/core/anotherModule.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.World = void 0; exports.World = "hello"; -//// [/src/core/index.d.ts] +//// [/user/username/projects/sample1/core/index.d.ts] export declare const someString: string; export declare function leftPad(s: string, n: number): string; export declare function multiply(a: number, b: number): number; //# sourceMappingURL=index.d.ts.map -//// [/src/core/index.d.ts.map] +//// [/user/username/projects/sample1/core/index.d.ts.map] {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} -//// [/src/core/index.js] +//// [/user/username/projects/sample1/core/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.multiply = exports.leftPad = exports.someString = void 0; @@ -162,20 +148,20 @@ function multiply(a, b) { return a * b; } exports.multiply = multiply; -//// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\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"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -186,27 +172,27 @@ exports.multiply = multiply; }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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" }, - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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" }, "./some_decl.d.ts": { "original": { - "version": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", "affectsGlobalScope": true }, - "version": "-9253692965-declare const dts: any;\r\n", - "signature": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", "affectsGlobalScope": true } }, @@ -232,7 +218,7 @@ exports.multiply = multiply; "referencedMap": {}, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" @@ -240,16 +226,16 @@ exports.multiply = multiply; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1477 + "size": 1474 } -//// [/src/logic/index.d.ts] +//// [/user/username/projects/sample1/logic/index.d.ts] export declare function getSecondsInDay(): number; import * as mod from '../core/anotherModule'; export declare const m: typeof mod; -//// [/src/logic/index.js] +//// [/user/username/projects/sample1/logic/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.m = exports.getSecondsInDay = void 0; @@ -262,17 +248,17 @@ var mod = require("../core/anotherModule"); exports.m = mod; //# sourceMappingURL=index.js.map -//// [/src/logic/index.js.map] +//// [/user/username/projects/sample1/logic/index.js.map] {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAA,iCAAmC;AACnC,SAAgB,eAAe;IAC3B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC9B,CAAC;AAFD,0CAEC;AACD,2CAA6C;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} -//// [/src/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/logic/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "./index.ts" @@ -287,7 +273,7 @@ exports.m = mod; ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -306,10 +292,10 @@ exports.m = mod; }, "./index.ts": { "original": { - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -337,7 +323,7 @@ exports.m = mod; ] }, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "./index.ts" @@ -345,15 +331,15 @@ exports.m = mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1512 + "size": 1511 } -//// [/src/tests/index.d.ts] +//// [/user/username/projects/sample1/tests/index.d.ts] import * as mod from '../core/anotherModule'; export declare const m: typeof mod; -//// [/src/tests/index.js] +//// [/user/username/projects/sample1/tests/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.m = void 0; @@ -365,14 +351,14 @@ var mod = require("../core/anotherModule"); exports.m = mod; -//// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "../logic/index.d.ts", @@ -389,7 +375,7 @@ exports.m = mod; ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -412,10 +398,10 @@ exports.m = mod; }, "./index.ts": { "original": { - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -449,7 +435,7 @@ exports.m = mod; ] }, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "../logic/index.d.ts", @@ -458,41 +444,41 @@ exports.m = mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1657 + "size": 1653 } Change:: incremental-declaration-changes Input:: -//// [/src/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/index.ts] +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } export class someClass { } Output:: -/lib/tsc --b /src/tests --listFiles -/lib/lib.d.ts -/src/core/anotherModule.ts -/src/core/index.ts -/src/core/some_decl.d.ts -/lib/lib.d.ts -/src/core/index.d.ts -/src/core/anotherModule.d.ts -/src/logic/index.ts -/lib/lib.d.ts -/src/core/index.d.ts -/src/core/anotherModule.d.ts -/src/logic/index.d.ts -/src/tests/index.ts +/a/lib/tsc --b tests --listFiles +/a/lib/lib.d.ts +/user/username/projects/sample1/core/anotherModule.ts +/user/username/projects/sample1/core/index.ts +/user/username/projects/sample1/core/some_decl.d.ts +/a/lib/lib.d.ts +/user/username/projects/sample1/core/index.d.ts +/user/username/projects/sample1/core/anotherModule.d.ts +/user/username/projects/sample1/logic/index.ts +/a/lib/lib.d.ts +/user/username/projects/sample1/core/index.d.ts +/user/username/projects/sample1/core/anotherModule.d.ts +/user/username/projects/sample1/logic/index.d.ts +/user/username/projects/sample1/tests/index.ts exitCode:: ExitStatus.Success -//// [/src/core/index.d.ts] +//// [/user/username/projects/sample1/core/index.d.ts] export declare const someString: string; export declare function leftPad(s: string, n: number): string; export declare function multiply(a: number, b: number): number; @@ -500,10 +486,10 @@ export declare class someClass { } //# sourceMappingURL=index.d.ts.map -//// [/src/core/index.d.ts.map] +//// [/user/username/projects/sample1/core/index.d.ts.map] {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAEhE,qBAAa,SAAS;CAAI"} -//// [/src/core/index.js] +//// [/user/username/projects/sample1/core/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.someClass = exports.multiply = exports.leftPad = exports.someString = void 0; @@ -520,20 +506,20 @@ var someClass = /** @class */ (function () { exports.someClass = someClass; -//// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-13387000654-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }","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"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-14927048853-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }","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"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -544,27 +530,27 @@ exports.someClass = someClass; }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-13387000654-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }", + "version": "-14927048853-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }", "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" }, - "version": "-13387000654-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }", + "version": "-14927048853-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }", "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" }, "./some_decl.d.ts": { "original": { - "version": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", "affectsGlobalScope": true }, - "version": "-9253692965-declare const dts: any;\r\n", - "signature": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", "affectsGlobalScope": true } }, @@ -590,7 +576,7 @@ exports.someClass = someClass; "referencedMap": {}, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" @@ -598,19 +584,19 @@ exports.someClass = someClass; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1542 + "size": 1539 } -//// [/src/logic/index.js] file written with same contents -//// [/src/logic/index.js.map] file written with same contents -//// [/src/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/logic/index.js] file written with same contents +//// [/user/username/projects/sample1/logic/index.js.map] file written with same contents +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/logic/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "./index.ts" @@ -625,7 +611,7 @@ exports.someClass = someClass; ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -644,10 +630,10 @@ exports.someClass = someClass; }, "./index.ts": { "original": { - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -675,7 +661,7 @@ exports.someClass = someClass; ] }, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "./index.ts" @@ -683,18 +669,18 @@ exports.someClass = someClass; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1549 + "size": 1548 } -//// [/src/tests/index.js] file written with same contents -//// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/tests/index.js] file written with same contents +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "../logic/index.d.ts", @@ -711,7 +697,7 @@ exports.someClass = someClass; ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -734,10 +720,10 @@ exports.someClass = someClass; }, "./index.ts": { "original": { - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -771,7 +757,7 @@ exports.someClass = someClass; ] }, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "../logic/index.d.ts", @@ -780,17 +766,17 @@ exports.someClass = someClass; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1694 + "size": 1690 } Change:: incremental-declaration-doesnt-change Input:: -//// [/src/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/index.ts] +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } export class someClass { } class someClass2 { } @@ -798,16 +784,16 @@ class someClass2 { } Output:: -/lib/tsc --b /src/tests --listFiles -/lib/lib.d.ts -/src/core/anotherModule.ts -/src/core/index.ts -/src/core/some_decl.d.ts +/a/lib/tsc --b tests --listFiles +/a/lib/lib.d.ts +/user/username/projects/sample1/core/anotherModule.ts +/user/username/projects/sample1/core/index.ts +/user/username/projects/sample1/core/some_decl.d.ts exitCode:: ExitStatus.Success -//// [/src/core/index.d.ts.map] file written with same contents -//// [/src/core/index.js] +//// [/user/username/projects/sample1/core/index.d.ts.map] file written with same contents +//// [/user/username/projects/sample1/core/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.someClass = exports.multiply = exports.leftPad = exports.someString = void 0; @@ -829,20 +815,20 @@ var someClass2 = /** @class */ (function () { }()); -//// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-11293323834-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }\nclass someClass2 { }","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"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18382817761-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }\nclass someClass2 { }","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"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -853,27 +839,27 @@ var someClass2 = /** @class */ (function () { }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-11293323834-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }\nclass someClass2 { }", + "version": "-18382817761-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }\nclass someClass2 { }", "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" }, - "version": "-11293323834-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }\nclass someClass2 { }", + "version": "-18382817761-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }\nclass someClass2 { }", "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" }, "./some_decl.d.ts": { "original": { - "version": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", "affectsGlobalScope": true }, - "version": "-9253692965-declare const dts: any;\r\n", - "signature": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", "affectsGlobalScope": true } }, @@ -899,7 +885,7 @@ var someClass2 = /** @class */ (function () { "referencedMap": {}, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" @@ -907,11 +893,11 @@ var someClass2 = /** @class */ (function () { "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1564 + "size": 1561 } -//// [/src/logic/tsconfig.tsbuildinfo] file changed its modified time -//// [/src/tests/tsconfig.tsbuildinfo] file changed its modified time +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] file changed its modified time +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] file changed its modified time Change:: no-change-run @@ -919,7 +905,7 @@ Input:: Output:: -/lib/tsc --b /src/tests --listFiles +/a/lib/tsc --b tests --listFiles exitCode:: ExitStatus.Success diff --git a/tests/baselines/reference/tsbuild/sample1/rebuilds-completely-when-version-in-tsbuildinfo-doesnt-match-ts-version.js b/tests/baselines/reference/tsbuild/sample1/rebuilds-completely-when-version-in-tsbuildinfo-doesnt-match-ts-version.js index b693203fb361f..88d19c550fc02 100644 --- a/tests/baselines/reference/tsbuild/sample1/rebuilds-completely-when-version-in-tsbuildinfo-doesnt-match-ts-version.js +++ b/tests/baselines/reference/tsbuild/sample1/rebuilds-completely-when-version-in-tsbuildinfo-doesnt-match-ts-version.js @@ -1,5 +1,5 @@ Input:: -//// [/lib/lib.d.ts] +//// [/a/lib/lib.d.ts] /// interface Boolean {} interface Function {} @@ -14,34 +14,33 @@ interface Array { length: number; [n: number]: T; } interface ReadonlyArray {} declare const console: { log(msg: any): void; }; -//// [/src/core/anotherModule.d.ts] +//// [/user/username/projects/sample1/core/anotherModule.d.ts] export declare const World = "hello"; //# sourceMappingURL=anotherModule.d.ts.map -//// [/src/core/anotherModule.d.ts.map] +//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] {"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} -//// [/src/core/anotherModule.js] +//// [/user/username/projects/sample1/core/anotherModule.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.World = void 0; exports.World = "hello"; -//// [/src/core/anotherModule.ts] +//// [/user/username/projects/sample1/core/anotherModule.ts] export const World = "hello"; - -//// [/src/core/index.d.ts] +//// [/user/username/projects/sample1/core/index.d.ts] export declare const someString: string; export declare function leftPad(s: string, n: number): string; export declare function multiply(a: number, b: number): number; //# sourceMappingURL=index.d.ts.map -//// [/src/core/index.d.ts.map] +//// [/user/username/projects/sample1/core/index.d.ts.map] {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} -//// [/src/core/index.js] +//// [/user/username/projects/sample1/core/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.multiply = exports.leftPad = exports.someString = void 0; @@ -52,40 +51,39 @@ function multiply(a, b) { return a * b; } exports.multiply = multiply; -//// [/src/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/index.ts] +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } -//// [/src/core/some_decl.d.ts] +//// [/user/username/projects/sample1/core/some_decl.d.ts] declare const dts: any; - -//// [/src/core/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - } +//// [/user/username/projects/sample1/core/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + } } -//// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\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"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -96,27 +94,27 @@ declare const dts: any; }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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" }, - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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" }, "./some_decl.d.ts": { "original": { - "version": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", "affectsGlobalScope": true }, - "version": "-9253692965-declare const dts: any;\r\n", - "signature": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", "affectsGlobalScope": true } }, @@ -142,7 +140,7 @@ declare const dts: any; "referencedMap": {}, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" @@ -150,16 +148,16 @@ declare const dts: any; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1477 + "size": 1474 } -//// [/src/logic/index.d.ts] +//// [/user/username/projects/sample1/logic/index.d.ts] export declare function getSecondsInDay(): number; import * as mod from '../core/anotherModule'; export declare const m: typeof mod; -//// [/src/logic/index.js] +//// [/user/username/projects/sample1/logic/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.m = exports.getSecondsInDay = void 0; @@ -172,41 +170,42 @@ var mod = require("../core/anotherModule"); exports.m = mod; //# sourceMappingURL=index.js.map -//// [/src/logic/index.js.map] +//// [/user/username/projects/sample1/logic/index.js.map] {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAA,iCAAmC;AACnC,SAAgB,eAAe;IAC3B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC9B,CAAC;AAFD,0CAEC;AACD,2CAA6C;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} -//// [/src/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; - - -//// [/src/logic/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../core" } - ] -} +//// [/user/username/projects/sample1/logic/index.ts] +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; -//// [/src/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/logic/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + }, + "references": [ + { + "path": "../core" + } + ] +} -//// [/src/logic/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} + +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "./index.ts" @@ -221,7 +220,7 @@ export const m = mod; ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -240,10 +239,10 @@ export const m = mod; }, "./index.ts": { "original": { - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -271,7 +270,7 @@ export const m = mod; ] }, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "./index.ts" @@ -279,15 +278,15 @@ export const m = mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1512 + "size": 1511 } -//// [/src/tests/index.d.ts] +//// [/user/username/projects/sample1/tests/index.d.ts] import * as mod from '../core/anotherModule'; export declare const m: typeof mod; -//// [/src/tests/index.js] +//// [/user/username/projects/sample1/tests/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.m = void 0; @@ -299,40 +298,46 @@ var mod = require("../core/anotherModule"); exports.m = mod; -//// [/src/tests/index.ts] -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; +//// [/user/username/projects/sample1/tests/index.ts] +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; -//// [/src/tests/tsconfig.json] -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" } - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - } +//// [/user/username/projects/sample1/tests/tsconfig.json] +{ + "references": [ + { + "path": "../core" + }, + { + "path": "../logic" + } + ], + "files": [ + "index.ts" + ], + "compilerOptions": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + } } -//// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "../logic/index.d.ts", @@ -349,7 +354,7 @@ export const m = mod; ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -372,10 +377,10 @@ export const m = mod; }, "./index.ts": { "original": { - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -409,7 +414,7 @@ export const m = mod; ] }, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "../logic/index.d.ts", @@ -418,72 +423,53 @@ export const m = mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1657 + "size": 1653 } -//// [/src/ui/index.ts] -import * as logic from '../logic'; - -export function run() { - console.log(logic.getSecondsInDay()); -} - - -//// [/src/ui/tsconfig.json] -{ - "compilerOptions": { - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../logic/index" } - ] -} - - Output:: -/lib/tsc --b /src/tests --verbose -[12:00:26 AM] Projects in this build: - * src/core/tsconfig.json - * src/logic/tsconfig.json - * src/tests/tsconfig.json +/a/lib/tsc --b tests --verbose +[12:00:42 AM] Projects in this build: + * core/tsconfig.json + * logic/tsconfig.json + * tests/tsconfig.json -[12:00:27 AM] Project 'src/core/tsconfig.json' is out of date because output for it was generated with version 'FakeTSVersion' that differs with current version 'FakeTSCurrentVersion' +[12:00:43 AM] Project 'core/tsconfig.json' is out of date because output for it was generated with version 'FakeTSVersion' that differs with current version 'FakeTSCurrentVersion' -[12:00:28 AM] Building project '/src/core/tsconfig.json'... +[12:00:44 AM] Building project '/user/username/projects/sample1/core/tsconfig.json'... -[12:00:38 AM] Project 'src/logic/tsconfig.json' is out of date because output for it was generated with version 'FakeTSVersion' that differs with current version 'FakeTSCurrentVersion' +[12:00:54 AM] Project 'logic/tsconfig.json' is out of date because output for it was generated with version 'FakeTSVersion' that differs with current version 'FakeTSCurrentVersion' -[12:00:39 AM] Building project '/src/logic/tsconfig.json'... +[12:00:55 AM] Building project '/user/username/projects/sample1/logic/tsconfig.json'... -[12:00:46 AM] Project 'src/tests/tsconfig.json' is out of date because output for it was generated with version 'FakeTSVersion' that differs with current version 'FakeTSCurrentVersion' +[12:01:02 AM] Project 'tests/tsconfig.json' is out of date because output for it was generated with version 'FakeTSVersion' that differs with current version 'FakeTSCurrentVersion' -[12:00:47 AM] Building project '/src/tests/tsconfig.json'... +[12:01:03 AM] Building project '/user/username/projects/sample1/tests/tsconfig.json'... exitCode:: ExitStatus.Success -//// [/src/core/anotherModule.d.ts] file written with same contents -//// [/src/core/anotherModule.d.ts.map] file written with same contents -//// [/src/core/anotherModule.js] file written with same contents -//// [/src/core/index.d.ts] file written with same contents -//// [/src/core/index.d.ts.map] file written with same contents -//// [/src/core/index.js] file written with same contents -//// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\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"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSCurrentVersion"} - -//// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/core/anotherModule.d.ts] file written with same contents +//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] file written with same contents +//// [/user/username/projects/sample1/core/anotherModule.js] file written with same contents +//// [/user/username/projects/sample1/core/index.d.ts] file written with same contents +//// [/user/username/projects/sample1/core/index.d.ts.map] file written with same contents +//// [/user/username/projects/sample1/core/index.js] file written with same contents +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSCurrentVersion"} + +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -494,27 +480,27 @@ exitCode:: ExitStatus.Success }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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" }, - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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" }, "./some_decl.d.ts": { "original": { - "version": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", "affectsGlobalScope": true }, - "version": "-9253692965-declare const dts: any;\r\n", - "signature": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", "affectsGlobalScope": true } }, @@ -540,7 +526,7 @@ exitCode:: ExitStatus.Success "referencedMap": {}, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" @@ -548,20 +534,20 @@ exitCode:: ExitStatus.Success "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSCurrentVersion", - "size": 1484 + "size": 1481 } -//// [/src/logic/index.d.ts] file written with same contents -//// [/src/logic/index.js] file written with same contents -//// [/src/logic/index.js.map] file written with same contents -//// [/src/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSCurrentVersion"} +//// [/user/username/projects/sample1/logic/index.d.ts] file written with same contents +//// [/user/username/projects/sample1/logic/index.js] file written with same contents +//// [/user/username/projects/sample1/logic/index.js.map] file written with same contents +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSCurrentVersion"} -//// [/src/logic/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "./index.ts" @@ -576,7 +562,7 @@ exitCode:: ExitStatus.Success ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -595,10 +581,10 @@ exitCode:: ExitStatus.Success }, "./index.ts": { "original": { - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -626,7 +612,7 @@ exitCode:: ExitStatus.Success ] }, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "./index.ts" @@ -634,19 +620,19 @@ exitCode:: ExitStatus.Success "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSCurrentVersion", - "size": 1519 + "size": 1518 } -//// [/src/tests/index.d.ts] file written with same contents -//// [/src/tests/index.js] file written with same contents -//// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSCurrentVersion"} +//// [/user/username/projects/sample1/tests/index.d.ts] file written with same contents +//// [/user/username/projects/sample1/tests/index.js] file written with same contents +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSCurrentVersion"} -//// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "../logic/index.d.ts", @@ -663,7 +649,7 @@ exitCode:: ExitStatus.Success ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -686,10 +672,10 @@ exitCode:: ExitStatus.Success }, "./index.ts": { "original": { - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -723,7 +709,7 @@ exitCode:: ExitStatus.Success ] }, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "../logic/index.d.ts", @@ -732,6 +718,6 @@ exitCode:: ExitStatus.Success "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSCurrentVersion", - "size": 1664 + "size": 1660 } diff --git a/tests/baselines/reference/tsbuild/sample1/rebuilds-from-start-if-force-option-is-set.js b/tests/baselines/reference/tsbuild/sample1/rebuilds-from-start-if-force-option-is-set.js index 7213157551956..add090c23fcc9 100644 --- a/tests/baselines/reference/tsbuild/sample1/rebuilds-from-start-if-force-option-is-set.js +++ b/tests/baselines/reference/tsbuild/sample1/rebuilds-from-start-if-force-option-is-set.js @@ -1,6 +1,6 @@ -currentDirectory:: / useCaseSensitiveFileNames: false +currentDirectory:: /user/username/projects/sample1 useCaseSensitiveFileNames: false Input:: -//// [/lib/lib.d.ts] +//// [/a/lib/lib.d.ts] /// interface Boolean {} interface Function {} @@ -15,34 +15,33 @@ interface Array { length: number; [n: number]: T; } interface ReadonlyArray {} declare const console: { log(msg: any): void; }; -//// [/src/core/anotherModule.d.ts] +//// [/user/username/projects/sample1/core/anotherModule.d.ts] export declare const World = "hello"; //# sourceMappingURL=anotherModule.d.ts.map -//// [/src/core/anotherModule.d.ts.map] +//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] {"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} -//// [/src/core/anotherModule.js] +//// [/user/username/projects/sample1/core/anotherModule.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.World = void 0; exports.World = "hello"; -//// [/src/core/anotherModule.ts] +//// [/user/username/projects/sample1/core/anotherModule.ts] export const World = "hello"; - -//// [/src/core/index.d.ts] +//// [/user/username/projects/sample1/core/index.d.ts] export declare const someString: string; export declare function leftPad(s: string, n: number): string; export declare function multiply(a: number, b: number): number; //# sourceMappingURL=index.d.ts.map -//// [/src/core/index.d.ts.map] +//// [/user/username/projects/sample1/core/index.d.ts.map] {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} -//// [/src/core/index.js] +//// [/user/username/projects/sample1/core/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.multiply = exports.leftPad = exports.someString = void 0; @@ -53,40 +52,39 @@ function multiply(a, b) { return a * b; } exports.multiply = multiply; -//// [/src/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/index.ts] +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } -//// [/src/core/some_decl.d.ts] +//// [/user/username/projects/sample1/core/some_decl.d.ts] declare const dts: any; - -//// [/src/core/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - } +//// [/user/username/projects/sample1/core/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + } } -//// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\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"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -97,27 +95,27 @@ declare const dts: any; }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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" }, - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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" }, "./some_decl.d.ts": { "original": { - "version": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", "affectsGlobalScope": true }, - "version": "-9253692965-declare const dts: any;\r\n", - "signature": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", "affectsGlobalScope": true } }, @@ -143,7 +141,7 @@ declare const dts: any; "referencedMap": {}, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" @@ -151,16 +149,16 @@ declare const dts: any; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1477 + "size": 1474 } -//// [/src/logic/index.d.ts] +//// [/user/username/projects/sample1/logic/index.d.ts] export declare function getSecondsInDay(): number; import * as mod from '../core/anotherModule'; export declare const m: typeof mod; -//// [/src/logic/index.js] +//// [/user/username/projects/sample1/logic/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.m = exports.getSecondsInDay = void 0; @@ -173,41 +171,42 @@ var mod = require("../core/anotherModule"); exports.m = mod; //# sourceMappingURL=index.js.map -//// [/src/logic/index.js.map] +//// [/user/username/projects/sample1/logic/index.js.map] {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAA,iCAAmC;AACnC,SAAgB,eAAe;IAC3B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC9B,CAAC;AAFD,0CAEC;AACD,2CAA6C;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} -//// [/src/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; - - -//// [/src/logic/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../core" } - ] -} +//// [/user/username/projects/sample1/logic/index.ts] +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; -//// [/src/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/logic/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + }, + "references": [ + { + "path": "../core" + } + ] +} -//// [/src/logic/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} + +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "./index.ts" @@ -222,7 +221,7 @@ export const m = mod; ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -241,10 +240,10 @@ export const m = mod; }, "./index.ts": { "original": { - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -272,7 +271,7 @@ export const m = mod; ] }, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "./index.ts" @@ -280,15 +279,15 @@ export const m = mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1512 + "size": 1511 } -//// [/src/tests/index.d.ts] +//// [/user/username/projects/sample1/tests/index.d.ts] import * as mod from '../core/anotherModule'; export declare const m: typeof mod; -//// [/src/tests/index.js] +//// [/user/username/projects/sample1/tests/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.m = void 0; @@ -300,40 +299,46 @@ var mod = require("../core/anotherModule"); exports.m = mod; -//// [/src/tests/index.ts] -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; +//// [/user/username/projects/sample1/tests/index.ts] +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; -//// [/src/tests/tsconfig.json] -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" } - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - } +//// [/user/username/projects/sample1/tests/tsconfig.json] +{ + "references": [ + { + "path": "../core" + }, + { + "path": "../logic" + } + ], + "files": [ + "index.ts" + ], + "compilerOptions": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + } } -//// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "../logic/index.d.ts", @@ -350,7 +355,7 @@ export const m = mod; ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -373,10 +378,10 @@ export const m = mod; }, "./index.ts": { "original": { - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -410,7 +415,7 @@ export const m = mod; ] }, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "../logic/index.d.ts", @@ -419,66 +424,47 @@ export const m = mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1657 + "size": 1653 } -//// [/src/ui/index.ts] -import * as logic from '../logic'; - -export function run() { - console.log(logic.getSecondsInDay()); -} - - -//// [/src/ui/tsconfig.json] -{ - "compilerOptions": { - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../logic/index" } - ] -} - - Output:: -/lib/tsc --b /src/tests --verbose --force -[12:00:26 AM] Projects in this build: - * src/core/tsconfig.json - * src/logic/tsconfig.json - * src/tests/tsconfig.json +/a/lib/tsc --b tests --verbose --force +[12:00:42 AM] Projects in this build: + * core/tsconfig.json + * logic/tsconfig.json + * tests/tsconfig.json -[12:00:27 AM] Project 'src/core/tsconfig.json' is being forcibly rebuilt +[12:00:43 AM] Project 'core/tsconfig.json' is being forcibly rebuilt -[12:00:28 AM] Building project '/src/core/tsconfig.json'... +[12:00:44 AM] Building project '/user/username/projects/sample1/core/tsconfig.json'... -[12:00:38 AM] Project 'src/logic/tsconfig.json' is being forcibly rebuilt +[12:00:54 AM] Project 'logic/tsconfig.json' is being forcibly rebuilt -[12:00:39 AM] Building project '/src/logic/tsconfig.json'... +[12:00:55 AM] Building project '/user/username/projects/sample1/logic/tsconfig.json'... -[12:00:46 AM] Project 'src/tests/tsconfig.json' is being forcibly rebuilt +[12:01:02 AM] Project 'tests/tsconfig.json' is being forcibly rebuilt -[12:00:47 AM] Building project '/src/tests/tsconfig.json'... +[12:01:03 AM] Building project '/user/username/projects/sample1/tests/tsconfig.json'... exitCode:: ExitStatus.Success -//// [/src/core/anotherModule.d.ts] file written with same contents -//// [/src/core/anotherModule.d.ts.map] file written with same contents -//// [/src/core/anotherModule.js] file written with same contents -//// [/src/core/index.d.ts] file written with same contents -//// [/src/core/index.d.ts.map] file written with same contents -//// [/src/core/index.js] file written with same contents -//// [/src/core/tsconfig.tsbuildinfo] file written with same contents -//// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] file written with same contents -//// [/src/logic/index.d.ts] file written with same contents -//// [/src/logic/index.js] file written with same contents -//// [/src/logic/index.js.map] file written with same contents -//// [/src/logic/tsconfig.tsbuildinfo] file written with same contents -//// [/src/logic/tsconfig.tsbuildinfo.readable.baseline.txt] file written with same contents -//// [/src/tests/index.d.ts] file written with same contents -//// [/src/tests/index.js] file written with same contents -//// [/src/tests/tsconfig.tsbuildinfo] file written with same contents -//// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] file written with same contents +//// [/user/username/projects/sample1/core/anotherModule.d.ts] file written with same contents +//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] file written with same contents +//// [/user/username/projects/sample1/core/anotherModule.js] file written with same contents +//// [/user/username/projects/sample1/core/index.d.ts] file written with same contents +//// [/user/username/projects/sample1/core/index.d.ts.map] file written with same contents +//// [/user/username/projects/sample1/core/index.js] file written with same contents +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] file written with same contents +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] file written with same contents +//// [/user/username/projects/sample1/logic/index.d.ts] file written with same contents +//// [/user/username/projects/sample1/logic/index.js] file written with same contents +//// [/user/username/projects/sample1/logic/index.js.map] file written with same contents +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] file written with same contents +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] file written with same contents +//// [/user/username/projects/sample1/tests/index.d.ts] file written with same contents +//// [/user/username/projects/sample1/tests/index.js] file written with same contents +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] file written with same contents +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] file written with same contents diff --git a/tests/baselines/reference/tsbuild/sample1/rebuilds-when-extended-config-file-changes.js b/tests/baselines/reference/tsbuild/sample1/rebuilds-when-extended-config-file-changes.js index 104f3b7f8b27a..f0cfff440e2da 100644 --- a/tests/baselines/reference/tsbuild/sample1/rebuilds-when-extended-config-file-changes.js +++ b/tests/baselines/reference/tsbuild/sample1/rebuilds-when-extended-config-file-changes.js @@ -1,6 +1,6 @@ -currentDirectory:: / useCaseSensitiveFileNames: false +currentDirectory:: /user/username/projects/sample1 useCaseSensitiveFileNames: false Input:: -//// [/lib/lib.d.ts] +//// [/a/lib/lib.d.ts] /// interface Boolean {} interface Function {} @@ -15,122 +15,112 @@ interface Array { length: number; [n: number]: T; } interface ReadonlyArray {} declare const console: { log(msg: any): void; }; -//// [/src/core/anotherModule.ts] +//// [/user/username/projects/sample1/core/anotherModule.ts] export const World = "hello"; +//// [/user/username/projects/sample1/core/index.ts] +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } -//// [/src/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } - -//// [/src/core/some_decl.d.ts] +//// [/user/username/projects/sample1/core/some_decl.d.ts] declare const dts: any; - -//// [/src/core/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - } -} - -//// [/src/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; - - -//// [/src/logic/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../core" } - ] +//// [/user/username/projects/sample1/core/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + } } +//// [/user/username/projects/sample1/logic/index.ts] +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; -//// [/src/tests/index.ts] -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; - - -//// [/src/tests/tsconfig.base.json] -{"compilerOptions":{"target":"es3"}} -//// [/src/tests/tsconfig.json] -{ - "extends": "./tsconfig.base.json", "references": [ - { "path": "../core" }, - { "path": "../logic" } - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - } +//// [/user/username/projects/sample1/logic/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + }, + "references": [ + { + "path": "../core" + } + ] } -//// [/src/ui/index.ts] -import * as logic from '../logic'; - -export function run() { - console.log(logic.getSecondsInDay()); -} +//// [/user/username/projects/sample1/tests/index.ts] +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; -//// [/src/ui/tsconfig.json] -{ - "compilerOptions": { - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../logic/index" } - ] +//// [/user/username/projects/sample1/tests/tsconfig.base.json] +{ + "compilerOptions": { + "target": "es3" + } } +//// [/user/username/projects/sample1/tests/tsconfig.json] +{ + "extends": "./tsconfig.base.json", "references": [ + { + "path": "../core" + }, + { + "path": "../logic" + } + ], + "files": [ + "index.ts" + ], + "compilerOptions": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + } +} Output:: -/lib/tsc --b /src/tests --verbose -[12:00:08 AM] Projects in this build: - * src/core/tsconfig.json - * src/logic/tsconfig.json - * src/tests/tsconfig.json +/a/lib/tsc --b tests --verbose +[12:00:24 AM] Projects in this build: + * core/tsconfig.json + * logic/tsconfig.json + * tests/tsconfig.json -[12:00:09 AM] Project 'src/core/tsconfig.json' is out of date because output file 'src/core/tsconfig.tsbuildinfo' does not exist +[12:00:25 AM] Project 'core/tsconfig.json' is out of date because output file 'core/tsconfig.tsbuildinfo' does not exist -[12:00:10 AM] Building project '/src/core/tsconfig.json'... +[12:00:26 AM] Building project '/user/username/projects/sample1/core/tsconfig.json'... -[12:00:20 AM] Project 'src/logic/tsconfig.json' is out of date because output file 'src/logic/tsconfig.tsbuildinfo' does not exist +[12:00:36 AM] Project 'logic/tsconfig.json' is out of date because output file 'logic/tsconfig.tsbuildinfo' does not exist -[12:00:21 AM] Building project '/src/logic/tsconfig.json'... +[12:00:37 AM] Building project '/user/username/projects/sample1/logic/tsconfig.json'... -[12:00:28 AM] Project 'src/tests/tsconfig.json' is out of date because output file 'src/tests/tsconfig.tsbuildinfo' does not exist +[12:00:44 AM] Project 'tests/tsconfig.json' is out of date because output file 'tests/tsconfig.tsbuildinfo' does not exist -[12:00:29 AM] Building project '/src/tests/tsconfig.json'... +[12:00:45 AM] Building project '/user/username/projects/sample1/tests/tsconfig.json'... error TS5107: Option 'target=ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '"ignoreDeprecations": "5.0"' to silence this error. @@ -140,30 +130,30 @@ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -//// [/src/core/anotherModule.d.ts] +//// [/user/username/projects/sample1/core/anotherModule.d.ts] export declare const World = "hello"; //# sourceMappingURL=anotherModule.d.ts.map -//// [/src/core/anotherModule.d.ts.map] +//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] {"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} -//// [/src/core/anotherModule.js] +//// [/user/username/projects/sample1/core/anotherModule.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.World = void 0; exports.World = "hello"; -//// [/src/core/index.d.ts] +//// [/user/username/projects/sample1/core/index.d.ts] export declare const someString: string; export declare function leftPad(s: string, n: number): string; export declare function multiply(a: number, b: number): number; //# sourceMappingURL=index.d.ts.map -//// [/src/core/index.d.ts.map] +//// [/user/username/projects/sample1/core/index.d.ts.map] {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} -//// [/src/core/index.js] +//// [/user/username/projects/sample1/core/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.multiply = exports.leftPad = exports.someString = void 0; @@ -174,20 +164,20 @@ function multiply(a, b) { return a * b; } exports.multiply = multiply; -//// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\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"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -198,27 +188,27 @@ exports.multiply = multiply; }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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" }, - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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" }, "./some_decl.d.ts": { "original": { - "version": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", "affectsGlobalScope": true }, - "version": "-9253692965-declare const dts: any;\r\n", - "signature": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", "affectsGlobalScope": true } }, @@ -244,7 +234,7 @@ exports.multiply = multiply; "referencedMap": {}, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" @@ -252,16 +242,16 @@ exports.multiply = multiply; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1477 + "size": 1474 } -//// [/src/logic/index.d.ts] +//// [/user/username/projects/sample1/logic/index.d.ts] export declare function getSecondsInDay(): number; import * as mod from '../core/anotherModule'; export declare const m: typeof mod; -//// [/src/logic/index.js] +//// [/user/username/projects/sample1/logic/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.m = exports.getSecondsInDay = void 0; @@ -274,17 +264,17 @@ var mod = require("../core/anotherModule"); exports.m = mod; //# sourceMappingURL=index.js.map -//// [/src/logic/index.js.map] +//// [/user/username/projects/sample1/logic/index.js.map] {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAA,iCAAmC;AACnC,SAAgB,eAAe;IAC3B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC9B,CAAC;AAFD,0CAEC;AACD,2CAA6C;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} -//// [/src/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/logic/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "./index.ts" @@ -299,7 +289,7 @@ exports.m = mod; ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -318,10 +308,10 @@ exports.m = mod; }, "./index.ts": { "original": { - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -349,7 +339,7 @@ exports.m = mod; ] }, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "./index.ts" @@ -357,17 +347,17 @@ exports.m = mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1512 + "size": 1511 } -//// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"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":false},{"version":"-9234818176-export declare const World = \"hello\";\n","signature":false},{"version":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","signature":false},{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":false}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"target":0},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[],"changeFileSet":[1,3,2,4,5]},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"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":false},{"version":"-9234818176-export declare const World = \"hello\";\n","signature":false},{"version":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n","signature":false},{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":false}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"target":0},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[],"changeFileSet":[1,3,2,4,5]},"version":"FakeTSVersion"} -//// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "../logic/index.d.ts", @@ -384,7 +374,7 @@ exports.m = mod; ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "signature": false, @@ -416,10 +406,10 @@ exports.m = mod; }, "./index.ts": { "original": { - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": false }, - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n" + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n" } }, "root": [ @@ -446,7 +436,7 @@ exports.m = mod; }, "exportedModulesMap": {}, "changeFileSet": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "../logic/index.d.ts", @@ -454,42 +444,44 @@ exports.m = mod; ] }, "version": "FakeTSVersion", - "size": 1622 + "size": 1618 } Change:: incremental-declaration-changes Input:: -//// [/src/tests/tsconfig.base.json] -{"compilerOptions":{}} +//// [/user/username/projects/sample1/tests/tsconfig.base.json] +{ + "compilerOptions": {} +} Output:: -/lib/tsc --b /src/tests --verbose -[12:00:34 AM] Projects in this build: - * src/core/tsconfig.json - * src/logic/tsconfig.json - * src/tests/tsconfig.json +/a/lib/tsc --b tests --verbose +[12:00:50 AM] Projects in this build: + * core/tsconfig.json + * logic/tsconfig.json + * tests/tsconfig.json -[12:00:35 AM] Project 'src/core/tsconfig.json' is up to date because newest input 'src/core/anotherModule.ts' is older than output 'src/core/tsconfig.tsbuildinfo' +[12:00:51 AM] Project 'core/tsconfig.json' is up to date because newest input 'core/anotherModule.ts' is older than output 'core/tsconfig.tsbuildinfo' -[12:00:36 AM] Project 'src/logic/tsconfig.json' is up to date because newest input 'src/logic/index.ts' is older than output 'src/logic/tsconfig.tsbuildinfo' +[12:00:52 AM] Project 'logic/tsconfig.json' is up to date because newest input 'logic/index.ts' is older than output 'logic/tsconfig.tsbuildinfo' -[12:00:37 AM] Project 'src/tests/tsconfig.json' is out of date because buildinfo file 'src/tests/tsconfig.tsbuildinfo' indicates that some of the changes were not emitted +[12:00:53 AM] Project 'tests/tsconfig.json' is out of date because buildinfo file 'tests/tsconfig.tsbuildinfo' indicates that some of the changes were not emitted -[12:00:38 AM] Building project '/src/tests/tsconfig.json'... +[12:00:54 AM] Building project '/user/username/projects/sample1/tests/tsconfig.json'... exitCode:: ExitStatus.Success -//// [/src/tests/index.d.ts] +//// [/user/username/projects/sample1/tests/index.d.ts] import * as mod from '../core/anotherModule'; export declare const m: typeof mod; -//// [/src/tests/index.js] +//// [/user/username/projects/sample1/tests/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.m = void 0; @@ -501,14 +493,14 @@ var mod = require("../core/anotherModule"); exports.m = mod; -//// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "../logic/index.d.ts", @@ -525,7 +517,7 @@ exports.m = mod; ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -548,10 +540,10 @@ exports.m = mod; }, "./index.ts": { "original": { - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -585,7 +577,7 @@ exports.m = mod; ] }, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "../logic/index.d.ts", @@ -594,6 +586,6 @@ exports.m = mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1657 + "size": 1653 } diff --git a/tests/baselines/reference/tsbuild/sample1/removes-all-files-it-built.js b/tests/baselines/reference/tsbuild/sample1/removes-all-files-it-built.js index 114e7a9f0af13..5b98e0d671ccf 100644 --- a/tests/baselines/reference/tsbuild/sample1/removes-all-files-it-built.js +++ b/tests/baselines/reference/tsbuild/sample1/removes-all-files-it-built.js @@ -1,6 +1,6 @@ -currentDirectory:: / useCaseSensitiveFileNames: false +currentDirectory:: /user/username/projects/sample1 useCaseSensitiveFileNames: false Input:: -//// [/lib/lib.d.ts] +//// [/a/lib/lib.d.ts] /// interface Boolean {} interface Function {} @@ -15,34 +15,33 @@ interface Array { length: number; [n: number]: T; } interface ReadonlyArray {} declare const console: { log(msg: any): void; }; -//// [/src/core/anotherModule.d.ts] +//// [/user/username/projects/sample1/core/anotherModule.d.ts] export declare const World = "hello"; //# sourceMappingURL=anotherModule.d.ts.map -//// [/src/core/anotherModule.d.ts.map] +//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] {"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} -//// [/src/core/anotherModule.js] +//// [/user/username/projects/sample1/core/anotherModule.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.World = void 0; exports.World = "hello"; -//// [/src/core/anotherModule.ts] +//// [/user/username/projects/sample1/core/anotherModule.ts] export const World = "hello"; - -//// [/src/core/index.d.ts] +//// [/user/username/projects/sample1/core/index.d.ts] export declare const someString: string; export declare function leftPad(s: string, n: number): string; export declare function multiply(a: number, b: number): number; //# sourceMappingURL=index.d.ts.map -//// [/src/core/index.d.ts.map] +//// [/user/username/projects/sample1/core/index.d.ts.map] {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} -//// [/src/core/index.js] +//// [/user/username/projects/sample1/core/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.multiply = exports.leftPad = exports.someString = void 0; @@ -53,40 +52,39 @@ function multiply(a, b) { return a * b; } exports.multiply = multiply; -//// [/src/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/index.ts] +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } -//// [/src/core/some_decl.d.ts] +//// [/user/username/projects/sample1/core/some_decl.d.ts] declare const dts: any; - -//// [/src/core/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - } +//// [/user/username/projects/sample1/core/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + } } -//// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\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"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -97,27 +95,27 @@ declare const dts: any; }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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" }, - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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" }, "./some_decl.d.ts": { "original": { - "version": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", "affectsGlobalScope": true }, - "version": "-9253692965-declare const dts: any;\r\n", - "signature": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", "affectsGlobalScope": true } }, @@ -143,7 +141,7 @@ declare const dts: any; "referencedMap": {}, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" @@ -151,16 +149,16 @@ declare const dts: any; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1477 + "size": 1474 } -//// [/src/logic/index.d.ts] +//// [/user/username/projects/sample1/logic/index.d.ts] export declare function getSecondsInDay(): number; import * as mod from '../core/anotherModule'; export declare const m: typeof mod; -//// [/src/logic/index.js] +//// [/user/username/projects/sample1/logic/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.m = exports.getSecondsInDay = void 0; @@ -173,41 +171,42 @@ var mod = require("../core/anotherModule"); exports.m = mod; //# sourceMappingURL=index.js.map -//// [/src/logic/index.js.map] +//// [/user/username/projects/sample1/logic/index.js.map] {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAA,iCAAmC;AACnC,SAAgB,eAAe;IAC3B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC9B,CAAC;AAFD,0CAEC;AACD,2CAA6C;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} -//// [/src/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; - - -//// [/src/logic/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../core" } - ] -} +//// [/user/username/projects/sample1/logic/index.ts] +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; -//// [/src/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/logic/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + }, + "references": [ + { + "path": "../core" + } + ] +} -//// [/src/logic/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} + +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "./index.ts" @@ -222,7 +221,7 @@ export const m = mod; ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -241,10 +240,10 @@ export const m = mod; }, "./index.ts": { "original": { - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -272,7 +271,7 @@ export const m = mod; ] }, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "./index.ts" @@ -280,15 +279,15 @@ export const m = mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1512 + "size": 1511 } -//// [/src/tests/index.d.ts] +//// [/user/username/projects/sample1/tests/index.d.ts] import * as mod from '../core/anotherModule'; export declare const m: typeof mod; -//// [/src/tests/index.js] +//// [/user/username/projects/sample1/tests/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.m = void 0; @@ -300,40 +299,46 @@ var mod = require("../core/anotherModule"); exports.m = mod; -//// [/src/tests/index.ts] -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; +//// [/user/username/projects/sample1/tests/index.ts] +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; -//// [/src/tests/tsconfig.json] -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" } - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - } +//// [/user/username/projects/sample1/tests/tsconfig.json] +{ + "references": [ + { + "path": "../core" + }, + { + "path": "../logic" + } + ], + "files": [ + "index.ts" + ], + "compilerOptions": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + } } -//// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "../logic/index.d.ts", @@ -350,7 +355,7 @@ export const m = mod; ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -373,10 +378,10 @@ export const m = mod; }, "./index.ts": { "original": { - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -410,7 +415,7 @@ export const m = mod; ] }, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "../logic/index.d.ts", @@ -419,49 +424,30 @@ export const m = mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1657 + "size": 1653 } -//// [/src/ui/index.ts] -import * as logic from '../logic'; - -export function run() { - console.log(logic.getSecondsInDay()); -} - - -//// [/src/ui/tsconfig.json] -{ - "compilerOptions": { - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../logic/index" } - ] -} - - Output:: -/lib/tsc --b /src/tests --clean +/a/lib/tsc --b tests --clean exitCode:: ExitStatus.Success -//// [/src/core/anotherModule.d.ts] unlink -//// [/src/core/anotherModule.d.ts.map] unlink -//// [/src/core/anotherModule.js] unlink -//// [/src/core/index.d.ts] unlink -//// [/src/core/index.d.ts.map] unlink -//// [/src/core/index.js] unlink -//// [/src/core/tsconfig.tsbuildinfo] unlink -//// [/src/logic/index.d.ts] unlink -//// [/src/logic/index.js] unlink -//// [/src/logic/index.js.map] unlink -//// [/src/logic/tsconfig.tsbuildinfo] unlink -//// [/src/tests/index.d.ts] unlink -//// [/src/tests/index.js] unlink -//// [/src/tests/tsconfig.tsbuildinfo] unlink +//// [/user/username/projects/sample1/core/anotherModule.d.ts] unlink +//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] unlink +//// [/user/username/projects/sample1/core/anotherModule.js] unlink +//// [/user/username/projects/sample1/core/index.d.ts] unlink +//// [/user/username/projects/sample1/core/index.d.ts.map] unlink +//// [/user/username/projects/sample1/core/index.js] unlink +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] unlink +//// [/user/username/projects/sample1/logic/index.d.ts] unlink +//// [/user/username/projects/sample1/logic/index.js] unlink +//// [/user/username/projects/sample1/logic/index.js.map] unlink +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] unlink +//// [/user/username/projects/sample1/tests/index.d.ts] unlink +//// [/user/username/projects/sample1/tests/index.js] unlink +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] unlink Change:: no-change-run @@ -469,7 +455,7 @@ Input:: Output:: -/lib/tsc --b /src/tests --clean +/a/lib/tsc --b tests --clean exitCode:: ExitStatus.Success diff --git a/tests/baselines/reference/tsbuild/sample1/reports-error-if-input-file-is-missing-with-force.js b/tests/baselines/reference/tsbuild/sample1/reports-error-if-input-file-is-missing-with-force.js index e0619e1b6e902..e7bfd0f39b608 100644 --- a/tests/baselines/reference/tsbuild/sample1/reports-error-if-input-file-is-missing-with-force.js +++ b/tests/baselines/reference/tsbuild/sample1/reports-error-if-input-file-is-missing-with-force.js @@ -1,6 +1,6 @@ -currentDirectory:: / useCaseSensitiveFileNames: false +currentDirectory:: /user/username/projects/sample1 useCaseSensitiveFileNames: false Input:: -//// [/lib/lib.d.ts] +//// [/a/lib/lib.d.ts] /// interface Boolean {} interface Function {} @@ -15,117 +15,113 @@ interface Array { length: number; [n: number]: T; } interface ReadonlyArray {} declare const console: { log(msg: any): void; }; -//// [/src/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/index.ts] +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } -//// [/src/core/some_decl.d.ts] +//// [/user/username/projects/sample1/core/some_decl.d.ts] declare const dts: any; - -//// [/src/core/tsconfig.json] -{"compilerOptions":{"composite":true},"files":["anotherModule.ts","index.ts","some_decl.d.ts"]} - -//// [/src/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; - - -//// [/src/logic/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../core" } - ] +//// [/user/username/projects/sample1/core/tsconfig.json] +{ + "compilerOptions": { + "composite": true + }, + "files": [ + "anotherModule.ts", + "index.ts", + "some_decl.d.ts" + ] } +//// [/user/username/projects/sample1/logic/index.ts] +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; -//// [/src/tests/index.ts] -import * as c from '../core/index'; -import * as logic from '../logic/index'; -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; - - -//// [/src/tests/tsconfig.json] -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" } - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - } +//// [/user/username/projects/sample1/logic/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + }, + "references": [ + { + "path": "../core" + } + ] } -//// [/src/ui/index.ts] -import * as logic from '../logic'; - -export function run() { - console.log(logic.getSecondsInDay()); -} +//// [/user/username/projects/sample1/tests/index.ts] +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; -//// [/src/ui/tsconfig.json] -{ - "compilerOptions": { - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../logic/index" } - ] +//// [/user/username/projects/sample1/tests/tsconfig.json] +{ + "references": [ + { + "path": "../core" + }, + { + "path": "../logic" + } + ], + "files": [ + "index.ts" + ], + "compilerOptions": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + } } - Output:: -/lib/tsc --b /src/tests --v --f -[12:00:08 AM] Projects in this build: - * src/core/tsconfig.json - * src/logic/tsconfig.json - * src/tests/tsconfig.json +/a/lib/tsc --b tests --v --f +[12:00:24 AM] Projects in this build: + * core/tsconfig.json + * logic/tsconfig.json + * tests/tsconfig.json -[12:00:09 AM] Project 'src/core/tsconfig.json' is being forcibly rebuilt +[12:00:25 AM] Project 'core/tsconfig.json' is being forcibly rebuilt -[12:00:10 AM] Building project '/src/core/tsconfig.json'... +[12:00:26 AM] Building project '/user/username/projects/sample1/core/tsconfig.json'... -error TS6053: File '/src/core/anotherModule.ts' not found. +error TS6053: File '/user/username/projects/sample1/core/anotherModule.ts' not found. The file is in the program because: Part of 'files' list in tsconfig.json - src/core/tsconfig.json:1:48 - 1 {"compilerOptions":{"composite":true},"files":["anotherModule.ts","index.ts","some_decl.d.ts"]} -    ~~~~~~~~~~~~~~~~~~ + core/tsconfig.json:6:5 + 6 "anotherModule.ts", +    ~~~~~~~~~~~~~~~~~~ File is matched by 'files' list specified here. -[12:00:14 AM] Project 'src/logic/tsconfig.json' can't be built because its dependency 'src/core' has errors +[12:00:30 AM] Project 'logic/tsconfig.json' can't be built because its dependency 'core' has errors -[12:00:15 AM] Skipping build of project '/src/logic/tsconfig.json' because its dependency '/src/core' has errors +[12:00:31 AM] Skipping build of project '/user/username/projects/sample1/logic/tsconfig.json' because its dependency '/user/username/projects/sample1/core' has errors -[12:00:16 AM] Project 'src/tests/tsconfig.json' can't be built because its dependency 'src/core' has errors +[12:00:32 AM] Project 'tests/tsconfig.json' can't be built because its dependency 'core' has errors -[12:00:17 AM] Skipping build of project '/src/tests/tsconfig.json' because its dependency '/src/core' has errors +[12:00:33 AM] Skipping build of project '/user/username/projects/sample1/tests/tsconfig.json' because its dependency '/user/username/projects/sample1/core' has errors Found 1 error. @@ -133,19 +129,19 @@ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -//// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":false},{"version":"-9253692965-declare const dts: any;\r\n","signature":false,"affectsGlobalScope":true}],"root":[2,3],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"changeFileSet":[1,2,3]},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":false},{"version":"-7959511260-declare const dts: any;","signature":false,"affectsGlobalScope":true}],"root":[2,3],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"changeFileSet":[1,2,3]},"version":"FakeTSVersion"} -//// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./index.ts", "./some_decl.d.ts" ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "signature": false, @@ -156,18 +152,18 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped }, "./index.ts": { "original": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", "signature": false }, - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n" + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n" }, "./some_decl.d.ts": { "original": { - "version": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", "signature": false, "affectsGlobalScope": true }, - "version": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", "affectsGlobalScope": true } }, @@ -187,12 +183,12 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped "referencedMap": {}, "exportedModulesMap": {}, "changeFileSet": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./index.ts", "./some_decl.d.ts" ] }, "version": "FakeTSVersion", - "size": 1059 + "size": 1060 } diff --git a/tests/baselines/reference/tsbuild/sample1/reports-error-if-input-file-is-missing.js b/tests/baselines/reference/tsbuild/sample1/reports-error-if-input-file-is-missing.js index 9e08dd73f0349..fcb3fbcbdf2a6 100644 --- a/tests/baselines/reference/tsbuild/sample1/reports-error-if-input-file-is-missing.js +++ b/tests/baselines/reference/tsbuild/sample1/reports-error-if-input-file-is-missing.js @@ -1,6 +1,6 @@ -currentDirectory:: / useCaseSensitiveFileNames: false +currentDirectory:: /user/username/projects/sample1 useCaseSensitiveFileNames: false Input:: -//// [/lib/lib.d.ts] +//// [/a/lib/lib.d.ts] /// interface Boolean {} interface Function {} @@ -15,117 +15,113 @@ interface Array { length: number; [n: number]: T; } interface ReadonlyArray {} declare const console: { log(msg: any): void; }; -//// [/src/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/index.ts] +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } -//// [/src/core/some_decl.d.ts] +//// [/user/username/projects/sample1/core/some_decl.d.ts] declare const dts: any; - -//// [/src/core/tsconfig.json] -{"compilerOptions":{"composite":true},"files":["anotherModule.ts","index.ts","some_decl.d.ts"]} - -//// [/src/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; - - -//// [/src/logic/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../core" } - ] +//// [/user/username/projects/sample1/core/tsconfig.json] +{ + "compilerOptions": { + "composite": true + }, + "files": [ + "anotherModule.ts", + "index.ts", + "some_decl.d.ts" + ] } +//// [/user/username/projects/sample1/logic/index.ts] +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; -//// [/src/tests/index.ts] -import * as c from '../core/index'; -import * as logic from '../logic/index'; -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; - - -//// [/src/tests/tsconfig.json] -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" } - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - } +//// [/user/username/projects/sample1/logic/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + }, + "references": [ + { + "path": "../core" + } + ] } -//// [/src/ui/index.ts] -import * as logic from '../logic'; - -export function run() { - console.log(logic.getSecondsInDay()); -} +//// [/user/username/projects/sample1/tests/index.ts] +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; -//// [/src/ui/tsconfig.json] -{ - "compilerOptions": { - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../logic/index" } - ] +//// [/user/username/projects/sample1/tests/tsconfig.json] +{ + "references": [ + { + "path": "../core" + }, + { + "path": "../logic" + } + ], + "files": [ + "index.ts" + ], + "compilerOptions": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + } } - Output:: -/lib/tsc --b /src/tests --v -[12:00:08 AM] Projects in this build: - * src/core/tsconfig.json - * src/logic/tsconfig.json - * src/tests/tsconfig.json +/a/lib/tsc --b tests --v +[12:00:24 AM] Projects in this build: + * core/tsconfig.json + * logic/tsconfig.json + * tests/tsconfig.json -[12:00:09 AM] Project 'src/core/tsconfig.json' is out of date because output file 'src/core/tsconfig.tsbuildinfo' does not exist +[12:00:25 AM] Project 'core/tsconfig.json' is out of date because output file 'core/tsconfig.tsbuildinfo' does not exist -[12:00:10 AM] Building project '/src/core/tsconfig.json'... +[12:00:26 AM] Building project '/user/username/projects/sample1/core/tsconfig.json'... -error TS6053: File '/src/core/anotherModule.ts' not found. +error TS6053: File '/user/username/projects/sample1/core/anotherModule.ts' not found. The file is in the program because: Part of 'files' list in tsconfig.json - src/core/tsconfig.json:1:48 - 1 {"compilerOptions":{"composite":true},"files":["anotherModule.ts","index.ts","some_decl.d.ts"]} -    ~~~~~~~~~~~~~~~~~~ + core/tsconfig.json:6:5 + 6 "anotherModule.ts", +    ~~~~~~~~~~~~~~~~~~ File is matched by 'files' list specified here. -[12:00:14 AM] Project 'src/logic/tsconfig.json' can't be built because its dependency 'src/core' has errors +[12:00:30 AM] Project 'logic/tsconfig.json' can't be built because its dependency 'core' has errors -[12:00:15 AM] Skipping build of project '/src/logic/tsconfig.json' because its dependency '/src/core' has errors +[12:00:31 AM] Skipping build of project '/user/username/projects/sample1/logic/tsconfig.json' because its dependency '/user/username/projects/sample1/core' has errors -[12:00:16 AM] Project 'src/tests/tsconfig.json' can't be built because its dependency 'src/core' has errors +[12:00:32 AM] Project 'tests/tsconfig.json' can't be built because its dependency 'core' has errors -[12:00:17 AM] Skipping build of project '/src/tests/tsconfig.json' because its dependency '/src/core' has errors +[12:00:33 AM] Skipping build of project '/user/username/projects/sample1/tests/tsconfig.json' because its dependency '/user/username/projects/sample1/core' has errors Found 1 error. @@ -133,19 +129,19 @@ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -//// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":false},{"version":"-9253692965-declare const dts: any;\r\n","signature":false,"affectsGlobalScope":true}],"root":[2,3],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"changeFileSet":[1,2,3]},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n","signature":false},{"version":"-7959511260-declare const dts: any;","signature":false,"affectsGlobalScope":true}],"root":[2,3],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"changeFileSet":[1,2,3]},"version":"FakeTSVersion"} -//// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./index.ts", "./some_decl.d.ts" ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "signature": false, @@ -156,18 +152,18 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped }, "./index.ts": { "original": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", "signature": false }, - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n" + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n" }, "./some_decl.d.ts": { "original": { - "version": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", "signature": false, "affectsGlobalScope": true }, - "version": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", "affectsGlobalScope": true } }, @@ -187,12 +183,12 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped "referencedMap": {}, "exportedModulesMap": {}, "changeFileSet": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./index.ts", "./some_decl.d.ts" ] }, "version": "FakeTSVersion", - "size": 1059 + "size": 1060 } diff --git a/tests/baselines/reference/tsbuild/sample1/sample.js b/tests/baselines/reference/tsbuild/sample1/sample.js index 8200126e84895..5cad9a80f7763 100644 --- a/tests/baselines/reference/tsbuild/sample1/sample.js +++ b/tests/baselines/reference/tsbuild/sample1/sample.js @@ -1,6 +1,6 @@ -currentDirectory:: / useCaseSensitiveFileNames: false +currentDirectory:: /user/username/projects/sample1 useCaseSensitiveFileNames: false Input:: -//// [/lib/lib.d.ts] +//// [/a/lib/lib.d.ts] /// interface Boolean {} interface Function {} @@ -15,143 +15,129 @@ interface Array { length: number; [n: number]: T; } interface ReadonlyArray {} declare const console: { log(msg: any): void; }; -//// [/src/core/anotherModule.ts] +//// [/user/username/projects/sample1/core/anotherModule.ts] export const World = "hello"; +//// [/user/username/projects/sample1/core/index.ts] +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } -//// [/src/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } - -//// [/src/core/some_decl.d.ts] +//// [/user/username/projects/sample1/core/some_decl.d.ts] declare const dts: any; - -//// [/src/core/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - } -} - -//// [/src/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; - - -//// [/src/logic/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../core" } - ] +//// [/user/username/projects/sample1/core/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + } } - -//// [/src/tests/index.ts] -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; +//// [/user/username/projects/sample1/logic/index.ts] +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; -//// [/src/tests/tsconfig.json] -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" } - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - } +//// [/user/username/projects/sample1/logic/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + }, + "references": [ + { + "path": "../core" + } + ] } -//// [/src/ui/index.ts] -import * as logic from '../logic'; - -export function run() { - console.log(logic.getSecondsInDay()); -} +//// [/user/username/projects/sample1/tests/index.ts] +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; -//// [/src/ui/tsconfig.json] -{ - "compilerOptions": { - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../logic/index" } - ] +//// [/user/username/projects/sample1/tests/tsconfig.json] +{ + "references": [ + { + "path": "../core" + }, + { + "path": "../logic" + } + ], + "files": [ + "index.ts" + ], + "compilerOptions": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + } } - Output:: -/lib/tsc --b /src/tests --verbose -[12:00:06 AM] Projects in this build: - * src/core/tsconfig.json - * src/logic/tsconfig.json - * src/tests/tsconfig.json +/a/lib/tsc --b tests --verbose +[12:00:22 AM] Projects in this build: + * core/tsconfig.json + * logic/tsconfig.json + * tests/tsconfig.json -[12:00:07 AM] Project 'src/core/tsconfig.json' is out of date because output file 'src/core/tsconfig.tsbuildinfo' does not exist +[12:00:23 AM] Project 'core/tsconfig.json' is out of date because output file 'core/tsconfig.tsbuildinfo' does not exist -[12:00:08 AM] Building project '/src/core/tsconfig.json'... +[12:00:24 AM] Building project '/user/username/projects/sample1/core/tsconfig.json'... -[12:00:18 AM] Project 'src/logic/tsconfig.json' is out of date because output file 'src/logic/tsconfig.tsbuildinfo' does not exist +[12:00:34 AM] Project 'logic/tsconfig.json' is out of date because output file 'logic/tsconfig.tsbuildinfo' does not exist -[12:00:19 AM] Building project '/src/logic/tsconfig.json'... +[12:00:35 AM] Building project '/user/username/projects/sample1/logic/tsconfig.json'... -[12:00:26 AM] Project 'src/tests/tsconfig.json' is out of date because output file 'src/tests/tsconfig.tsbuildinfo' does not exist +[12:00:42 AM] Project 'tests/tsconfig.json' is out of date because output file 'tests/tsconfig.tsbuildinfo' does not exist -[12:00:27 AM] Building project '/src/tests/tsconfig.json'... +[12:00:43 AM] Building project '/user/username/projects/sample1/tests/tsconfig.json'... exitCode:: ExitStatus.Success readFiles:: { - "/src/tests/tsconfig.json": 1, - "/src/core/tsconfig.json": 1, - "/src/logic/tsconfig.json": 1, - "/src/core/anotherModule.ts": 1, - "/src/core/index.ts": 1, - "/src/core/some_decl.d.ts": 1, - "/src/logic/index.ts": 1, - "/src/core/index.d.ts": 1, - "/src/core/anotherModule.d.ts": 1, - "/src/tests/index.ts": 1, - "/src/logic/index.d.ts": 1 + "/user/username/projects/sample1/tests/tsconfig.json": 1, + "/user/username/projects/sample1/core/tsconfig.json": 1, + "/user/username/projects/sample1/logic/tsconfig.json": 1, + "/user/username/projects/sample1/core/anotherModule.ts": 1, + "/user/username/projects/sample1/core/index.ts": 1, + "/user/username/projects/sample1/core/some_decl.d.ts": 1, + "/user/username/projects/sample1/logic/index.ts": 1, + "/user/username/projects/sample1/core/index.d.ts": 1, + "/user/username/projects/sample1/core/anotherModule.d.ts": 1, + "/user/username/projects/sample1/tests/index.ts": 1, + "/user/username/projects/sample1/logic/index.d.ts": 1 } -//// [/src/core/anotherModule.d.ts] +//// [/user/username/projects/sample1/core/anotherModule.d.ts] export declare const World = "hello"; //# sourceMappingURL=anotherModule.d.ts.map -//// [/src/core/anotherModule.d.ts.map] +//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] {"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} -//// [/src/core/anothermodule.d.ts.map.baseline.txt] +//// [/user/username/projects/sample1/core/anothermodule.d.ts.map.baseline.txt] =================================================================== JsFile: anotherModule.d.ts mapUrl: anotherModule.d.ts.map @@ -159,7 +145,7 @@ sourceRoot: sources: anotherModule.ts =================================================================== ------------------------------------------------------------------- -emittedFile:/src/core/anotherModule.d.ts +emittedFile:/user/username/projects/sample1/core/anotherModule.d.ts sourceFile:anotherModule.ts ------------------------------------------------------------------- >>>export declare const World = "hello"; @@ -185,23 +171,23 @@ sourceFile:anotherModule.ts --- >>>//# sourceMappingURL=anotherModule.d.ts.map -//// [/src/core/anotherModule.js] +//// [/user/username/projects/sample1/core/anotherModule.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.World = void 0; exports.World = "hello"; -//// [/src/core/index.d.ts] +//// [/user/username/projects/sample1/core/index.d.ts] export declare const someString: string; export declare function leftPad(s: string, n: number): string; export declare function multiply(a: number, b: number): number; //# sourceMappingURL=index.d.ts.map -//// [/src/core/index.d.ts.map] +//// [/user/username/projects/sample1/core/index.d.ts.map] {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} -//// [/src/core/index.d.ts.map.baseline.txt] +//// [/user/username/projects/sample1/core/index.d.ts.map.baseline.txt] =================================================================== JsFile: index.d.ts mapUrl: index.d.ts.map @@ -209,7 +195,7 @@ sourceRoot: sources: index.ts =================================================================== ------------------------------------------------------------------- -emittedFile:/src/core/index.d.ts +emittedFile:/user/username/projects/sample1/core/index.d.ts sourceFile:index.ts ------------------------------------------------------------------- >>>export declare const someString: string; @@ -250,7 +236,7 @@ sourceFile:index.ts 11> ^^^^^^ 12> ^^^^^^^^^^ 13> ^-> -1-> +1-> > 2 >export function 3 > leftPad @@ -289,7 +275,7 @@ sourceFile:index.ts 10> ^^ 11> ^^^^^^ 12> ^^^^^^^^^^ -1-> +1-> > 2 >export function 3 > multiply @@ -317,7 +303,7 @@ sourceFile:index.ts --- >>>//# sourceMappingURL=index.d.ts.map -//// [/src/core/index.js] +//// [/user/username/projects/sample1/core/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.multiply = exports.leftPad = exports.someString = void 0; @@ -328,20 +314,20 @@ function multiply(a, b) { return a * b; } exports.multiply = multiply; -//// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\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"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -352,27 +338,27 @@ exports.multiply = multiply; }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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" }, - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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" }, "./some_decl.d.ts": { "original": { - "version": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", "affectsGlobalScope": true }, - "version": "-9253692965-declare const dts: any;\r\n", - "signature": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", "affectsGlobalScope": true } }, @@ -398,7 +384,7 @@ exports.multiply = multiply; "referencedMap": {}, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" @@ -406,16 +392,16 @@ exports.multiply = multiply; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1477 + "size": 1474 } -//// [/src/logic/index.d.ts] +//// [/user/username/projects/sample1/logic/index.d.ts] export declare function getSecondsInDay(): number; import * as mod from '../core/anotherModule'; export declare const m: typeof mod; -//// [/src/logic/index.js] +//// [/user/username/projects/sample1/logic/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.m = exports.getSecondsInDay = void 0; @@ -428,10 +414,10 @@ var mod = require("../core/anotherModule"); exports.m = mod; //# sourceMappingURL=index.js.map -//// [/src/logic/index.js.map] +//// [/user/username/projects/sample1/logic/index.js.map] {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAA,iCAAmC;AACnC,SAAgB,eAAe;IAC3B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC9B,CAAC;AAFD,0CAEC;AACD,2CAA6C;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} -//// [/src/logic/index.js.map.baseline.txt] +//// [/user/username/projects/sample1/logic/index.js.map.baseline.txt] =================================================================== JsFile: index.js mapUrl: index.js.map @@ -439,7 +425,7 @@ sourceRoot: sources: index.ts =================================================================== ------------------------------------------------------------------- -emittedFile:/src/logic/index.js +emittedFile:/user/username/projects/sample1/logic/index.js sourceFile:index.ts ------------------------------------------------------------------- >>>"use strict"; @@ -458,7 +444,7 @@ sourceFile:index.ts 2 >^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^ 4 > ^^^^^^-> -1 > +1 > > 2 >export function 3 > getSecondsInDay @@ -478,7 +464,7 @@ sourceFile:index.ts 9 > ^^ 10> ^ 11> ^ -1->() { +1->() { > 2 > return 3 > c @@ -506,7 +492,7 @@ sourceFile:index.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) @@ -517,8 +503,8 @@ sourceFile:index.ts 2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 3 > ^-> 1-> -2 >export function getSecondsInDay() { - > return c.multiply(10, 15); +2 >export function getSecondsInDay() { + > return c.multiply(10, 15); >} 1->Emitted(8, 1) Source(2, 1) + SourceIndex(0) 2 >Emitted(8, 43) Source(4, 2) + SourceIndex(0) @@ -526,7 +512,7 @@ sourceFile:index.ts >>>var mod = require("../core/anotherModule"); 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -1-> +1-> > 2 >import * as mod from '../core/anotherModule'; 1->Emitted(9, 1) Source(5, 1) + SourceIndex(0) @@ -540,7 +526,7 @@ sourceFile:index.ts 5 > ^^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^-> -1 > +1 > >export const 2 > 3 > m @@ -556,14 +542,14 @@ sourceFile:index.ts --- >>>//# sourceMappingURL=index.js.map -//// [/src/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/logic/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "./index.ts" @@ -578,7 +564,7 @@ sourceFile:index.ts ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -597,10 +583,10 @@ sourceFile:index.ts }, "./index.ts": { "original": { - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -628,7 +614,7 @@ sourceFile:index.ts ] }, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "./index.ts" @@ -636,15 +622,15 @@ sourceFile:index.ts "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1512 + "size": 1511 } -//// [/src/tests/index.d.ts] +//// [/user/username/projects/sample1/tests/index.d.ts] import * as mod from '../core/anotherModule'; export declare const m: typeof mod; -//// [/src/tests/index.js] +//// [/user/username/projects/sample1/tests/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.m = void 0; @@ -656,14 +642,14 @@ var mod = require("../core/anotherModule"); exports.m = mod; -//// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "../logic/index.d.ts", @@ -680,7 +666,7 @@ exports.m = mod; ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -703,10 +689,10 @@ exports.m = mod; }, "./index.ts": { "original": { - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -740,7 +726,7 @@ exports.m = mod; ] }, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "../logic/index.d.ts", @@ -749,60 +735,60 @@ exports.m = mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1657 + "size": 1653 } Change:: incremental-declaration-changes Input:: -//// [/src/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/index.ts] +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } export class someClass { } Output:: -/lib/tsc --b /src/tests --verbose -[12:00:37 AM] Projects in this build: - * src/core/tsconfig.json - * src/logic/tsconfig.json - * src/tests/tsconfig.json +/a/lib/tsc --b tests --verbose +[12:00:53 AM] Projects in this build: + * core/tsconfig.json + * logic/tsconfig.json + * tests/tsconfig.json -[12:00:38 AM] Project 'src/core/tsconfig.json' is out of date because output 'src/core/tsconfig.tsbuildinfo' is older than input 'src/core/index.ts' +[12:00:54 AM] Project 'core/tsconfig.json' is out of date because output 'core/tsconfig.tsbuildinfo' is older than input 'core/index.ts' -[12:00:39 AM] Building project '/src/core/tsconfig.json'... +[12:00:55 AM] Building project '/user/username/projects/sample1/core/tsconfig.json'... -[12:00:46 AM] Project 'src/logic/tsconfig.json' is out of date because output 'src/logic/tsconfig.tsbuildinfo' is older than input 'src/core' +[12:01:02 AM] Project 'logic/tsconfig.json' is out of date because output 'logic/tsconfig.tsbuildinfo' is older than input 'core' -[12:00:47 AM] Building project '/src/logic/tsconfig.json'... +[12:01:03 AM] Building project '/user/username/projects/sample1/logic/tsconfig.json'... -[12:00:53 AM] Project 'src/tests/tsconfig.json' is out of date because output 'src/tests/tsconfig.tsbuildinfo' is older than input 'src/core' +[12:01:09 AM] Project 'tests/tsconfig.json' is out of date because output 'tests/tsconfig.tsbuildinfo' is older than input 'core' -[12:00:54 AM] Building project '/src/tests/tsconfig.json'... +[12:01:10 AM] Building project '/user/username/projects/sample1/tests/tsconfig.json'... exitCode:: ExitStatus.Success readFiles:: { - "/src/tests/tsconfig.json": 1, - "/src/core/tsconfig.json": 1, - "/src/logic/tsconfig.json": 1, - "/src/core/tsconfig.tsbuildinfo": 1, - "/src/core/index.ts": 1, - "/src/core/anotherModule.ts": 1, - "/src/core/some_decl.d.ts": 1, - "/src/logic/tsconfig.tsbuildinfo": 1, - "/src/logic/index.ts": 1, - "/src/core/index.d.ts": 1, - "/src/core/anotherModule.d.ts": 1, - "/src/tests/tsconfig.tsbuildinfo": 1, - "/src/tests/index.ts": 1, - "/src/logic/index.d.ts": 1 + "/user/username/projects/sample1/tests/tsconfig.json": 1, + "/user/username/projects/sample1/core/tsconfig.json": 1, + "/user/username/projects/sample1/logic/tsconfig.json": 1, + "/user/username/projects/sample1/core/tsconfig.tsbuildinfo": 1, + "/user/username/projects/sample1/core/index.ts": 1, + "/user/username/projects/sample1/core/anotherModule.ts": 1, + "/user/username/projects/sample1/core/some_decl.d.ts": 1, + "/user/username/projects/sample1/logic/tsconfig.tsbuildinfo": 1, + "/user/username/projects/sample1/logic/index.ts": 1, + "/user/username/projects/sample1/core/index.d.ts": 1, + "/user/username/projects/sample1/core/anotherModule.d.ts": 1, + "/user/username/projects/sample1/tests/tsconfig.tsbuildinfo": 1, + "/user/username/projects/sample1/tests/index.ts": 1, + "/user/username/projects/sample1/logic/index.d.ts": 1 } -//// [/src/core/index.d.ts] +//// [/user/username/projects/sample1/core/index.d.ts] export declare const someString: string; export declare function leftPad(s: string, n: number): string; export declare function multiply(a: number, b: number): number; @@ -810,10 +796,10 @@ export declare class someClass { } //# sourceMappingURL=index.d.ts.map -//// [/src/core/index.d.ts.map] +//// [/user/username/projects/sample1/core/index.d.ts.map] {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAEhE,qBAAa,SAAS;CAAI"} -//// [/src/core/index.d.ts.map.baseline.txt] +//// [/user/username/projects/sample1/core/index.d.ts.map.baseline.txt] =================================================================== JsFile: index.d.ts mapUrl: index.d.ts.map @@ -821,7 +807,7 @@ sourceRoot: sources: index.ts =================================================================== ------------------------------------------------------------------- -emittedFile:/src/core/index.d.ts +emittedFile:/user/username/projects/sample1/core/index.d.ts sourceFile:index.ts ------------------------------------------------------------------- >>>export declare const someString: string; @@ -862,7 +848,7 @@ sourceFile:index.ts 11> ^^^^^^ 12> ^^^^^^^^^^ 13> ^-> -1-> +1-> > 2 >export function 3 > leftPad @@ -901,7 +887,7 @@ sourceFile:index.ts 10> ^^ 11> ^^^^^^ 12> ^^^^^^^^^^ -1-> +1-> > 2 >export function 3 > multiply @@ -931,7 +917,7 @@ sourceFile:index.ts 1 > 2 >^^^^^^^^^^^^^^^^^^^^^ 3 > ^^^^^^^^^ -1 > +1 > > > 2 >export class @@ -948,7 +934,7 @@ sourceFile:index.ts --- >>>//# sourceMappingURL=index.d.ts.map -//// [/src/core/index.js] +//// [/user/username/projects/sample1/core/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.someClass = exports.multiply = exports.leftPad = exports.someString = void 0; @@ -965,20 +951,20 @@ var someClass = /** @class */ (function () { exports.someClass = someClass; -//// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-13387000654-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }","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"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-14927048853-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }","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"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -989,27 +975,27 @@ exports.someClass = someClass; }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-13387000654-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }", + "version": "-14927048853-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }", "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" }, - "version": "-13387000654-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }", + "version": "-14927048853-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }", "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" }, "./some_decl.d.ts": { "original": { - "version": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", "affectsGlobalScope": true }, - "version": "-9253692965-declare const dts: any;\r\n", - "signature": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", "affectsGlobalScope": true } }, @@ -1035,7 +1021,7 @@ exports.someClass = someClass; "referencedMap": {}, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" @@ -1043,20 +1029,20 @@ exports.someClass = someClass; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1542 + "size": 1539 } -//// [/src/logic/index.js] file written with same contents -//// [/src/logic/index.js.map] file written with same contents -//// [/src/logic/index.js.map.baseline.txt] file written with same contents -//// [/src/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/logic/index.js] file written with same contents +//// [/user/username/projects/sample1/logic/index.js.map] file written with same contents +//// [/user/username/projects/sample1/logic/index.js.map.baseline.txt] file written with same contents +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/logic/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "./index.ts" @@ -1071,7 +1057,7 @@ exports.someClass = someClass; ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -1090,10 +1076,10 @@ exports.someClass = someClass; }, "./index.ts": { "original": { - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -1121,7 +1107,7 @@ exports.someClass = someClass; ] }, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "./index.ts" @@ -1129,18 +1115,18 @@ exports.someClass = someClass; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1549 + "size": 1548 } -//// [/src/tests/index.js] file written with same contents -//// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/tests/index.js] file written with same contents +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "../logic/index.d.ts", @@ -1157,7 +1143,7 @@ exports.someClass = someClass; ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -1180,10 +1166,10 @@ exports.someClass = someClass; }, "./index.ts": { "original": { - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -1217,7 +1203,7 @@ exports.someClass = someClass; ] }, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "../logic/index.d.ts", @@ -1226,17 +1212,17 @@ exports.someClass = someClass; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1694 + "size": 1690 } Change:: incremental-declaration-doesnt-change Input:: -//// [/src/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/index.ts] +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } export class someClass { } class someClass2 { } @@ -1244,40 +1230,40 @@ class someClass2 { } Output:: -/lib/tsc --b /src/tests --verbose -[12:01:02 AM] Projects in this build: - * src/core/tsconfig.json - * src/logic/tsconfig.json - * src/tests/tsconfig.json +/a/lib/tsc --b tests --verbose +[12:01:18 AM] Projects in this build: + * core/tsconfig.json + * logic/tsconfig.json + * tests/tsconfig.json -[12:01:03 AM] Project 'src/core/tsconfig.json' is out of date because output 'src/core/tsconfig.tsbuildinfo' is older than input 'src/core/index.ts' +[12:01:19 AM] Project 'core/tsconfig.json' is out of date because output 'core/tsconfig.tsbuildinfo' is older than input 'core/index.ts' -[12:01:04 AM] Building project '/src/core/tsconfig.json'... +[12:01:20 AM] Building project '/user/username/projects/sample1/core/tsconfig.json'... -[12:01:10 AM] Project 'src/logic/tsconfig.json' is up to date with .d.ts files from its dependencies +[12:01:26 AM] Project 'logic/tsconfig.json' is up to date with .d.ts files from its dependencies -[12:01:11 AM] Updating output timestamps of project '/src/logic/tsconfig.json'... +[12:01:27 AM] Updating output timestamps of project '/user/username/projects/sample1/logic/tsconfig.json'... -[12:01:14 AM] Project 'src/tests/tsconfig.json' is up to date with .d.ts files from its dependencies +[12:01:30 AM] Project 'tests/tsconfig.json' is up to date with .d.ts files from its dependencies -[12:01:15 AM] Updating output timestamps of project '/src/tests/tsconfig.json'... +[12:01:31 AM] Updating output timestamps of project '/user/username/projects/sample1/tests/tsconfig.json'... exitCode:: ExitStatus.Success readFiles:: { - "/src/tests/tsconfig.json": 1, - "/src/core/tsconfig.json": 1, - "/src/logic/tsconfig.json": 1, - "/src/core/tsconfig.tsbuildinfo": 1, - "/src/core/index.ts": 1, - "/src/core/anotherModule.ts": 1, - "/src/core/some_decl.d.ts": 1, - "/src/logic/tsconfig.tsbuildinfo": 1, - "/src/tests/tsconfig.tsbuildinfo": 1 + "/user/username/projects/sample1/tests/tsconfig.json": 1, + "/user/username/projects/sample1/core/tsconfig.json": 1, + "/user/username/projects/sample1/logic/tsconfig.json": 1, + "/user/username/projects/sample1/core/tsconfig.tsbuildinfo": 1, + "/user/username/projects/sample1/core/index.ts": 1, + "/user/username/projects/sample1/core/anotherModule.ts": 1, + "/user/username/projects/sample1/core/some_decl.d.ts": 1, + "/user/username/projects/sample1/logic/tsconfig.tsbuildinfo": 1, + "/user/username/projects/sample1/tests/tsconfig.tsbuildinfo": 1 } -//// [/src/core/index.d.ts.map] file written with same contents -//// [/src/core/index.d.ts.map.baseline.txt] file written with same contents -//// [/src/core/index.js] +//// [/user/username/projects/sample1/core/index.d.ts.map] file written with same contents +//// [/user/username/projects/sample1/core/index.d.ts.map.baseline.txt] file written with same contents +//// [/user/username/projects/sample1/core/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.someClass = exports.multiply = exports.leftPad = exports.someString = void 0; @@ -1299,20 +1285,20 @@ var someClass2 = /** @class */ (function () { }()); -//// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-11293323834-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }\nclass someClass2 { }","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"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18382817761-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }\nclass someClass2 { }","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"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -1323,27 +1309,27 @@ var someClass2 = /** @class */ (function () { }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-11293323834-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }\nclass someClass2 { }", + "version": "-18382817761-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }\nclass someClass2 { }", "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" }, - "version": "-11293323834-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }\nclass someClass2 { }", + "version": "-18382817761-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }\nclass someClass2 { }", "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" }, "./some_decl.d.ts": { "original": { - "version": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", "affectsGlobalScope": true }, - "version": "-9253692965-declare const dts: any;\r\n", - "signature": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", "affectsGlobalScope": true } }, @@ -1369,7 +1355,7 @@ var someClass2 = /** @class */ (function () { "referencedMap": {}, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" @@ -1377,11 +1363,11 @@ var someClass2 = /** @class */ (function () { "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1564 + "size": 1561 } -//// [/src/logic/tsconfig.tsbuildinfo] file changed its modified time -//// [/src/tests/tsconfig.tsbuildinfo] file changed its modified time +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] file changed its modified time +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] file changed its modified time Change:: no-change-run @@ -1389,99 +1375,100 @@ Input:: Output:: -/lib/tsc --b /src/tests --verbose -[12:01:19 AM] Projects in this build: - * src/core/tsconfig.json - * src/logic/tsconfig.json - * src/tests/tsconfig.json +/a/lib/tsc --b tests --verbose +[12:01:35 AM] Projects in this build: + * core/tsconfig.json + * logic/tsconfig.json + * tests/tsconfig.json -[12:01:20 AM] Project 'src/core/tsconfig.json' is up to date because newest input 'src/core/index.ts' is older than output 'src/core/tsconfig.tsbuildinfo' +[12:01:36 AM] Project 'core/tsconfig.json' is up to date because newest input 'core/index.ts' is older than output 'core/tsconfig.tsbuildinfo' -[12:01:21 AM] Project 'src/logic/tsconfig.json' is up to date because newest input 'src/logic/index.ts' is older than output 'src/logic/tsconfig.tsbuildinfo' +[12:01:37 AM] Project 'logic/tsconfig.json' is up to date because newest input 'logic/index.ts' is older than output 'logic/tsconfig.tsbuildinfo' -[12:01:22 AM] Project 'src/tests/tsconfig.json' is up to date because newest input 'src/tests/index.ts' is older than output 'src/tests/tsconfig.tsbuildinfo' +[12:01:38 AM] Project 'tests/tsconfig.json' is up to date because newest input 'tests/index.ts' is older than output 'tests/tsconfig.tsbuildinfo' exitCode:: ExitStatus.Success readFiles:: { - "/src/tests/tsconfig.json": 1, - "/src/core/tsconfig.json": 1, - "/src/logic/tsconfig.json": 1, - "/src/core/tsconfig.tsbuildinfo": 1, - "/src/logic/tsconfig.tsbuildinfo": 1, - "/src/tests/tsconfig.tsbuildinfo": 1 + "/user/username/projects/sample1/tests/tsconfig.json": 1, + "/user/username/projects/sample1/core/tsconfig.json": 1, + "/user/username/projects/sample1/logic/tsconfig.json": 1, + "/user/username/projects/sample1/core/tsconfig.tsbuildinfo": 1, + "/user/username/projects/sample1/logic/tsconfig.tsbuildinfo": 1, + "/user/username/projects/sample1/tests/tsconfig.tsbuildinfo": 1 } Change:: when logic config changes declaration dir Input:: -//// [/src/logic/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationDir": "decls", - "sourceMap": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../core" } - ] +//// [/user/username/projects/sample1/logic/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationDir": "decls", + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + }, + "references": [ + { + "path": "../core" + } + ] } - Output:: -/lib/tsc --b /src/tests --verbose -[12:01:24 AM] Projects in this build: - * src/core/tsconfig.json - * src/logic/tsconfig.json - * src/tests/tsconfig.json +/a/lib/tsc --b tests --verbose +[12:01:40 AM] Projects in this build: + * core/tsconfig.json + * logic/tsconfig.json + * tests/tsconfig.json -[12:01:25 AM] Project 'src/core/tsconfig.json' is up to date because newest input 'src/core/index.ts' is older than output 'src/core/tsconfig.tsbuildinfo' +[12:01:41 AM] Project 'core/tsconfig.json' is up to date because newest input 'core/index.ts' is older than output 'core/tsconfig.tsbuildinfo' -[12:01:26 AM] Project 'src/logic/tsconfig.json' is out of date because output 'src/logic/tsconfig.tsbuildinfo' is older than input 'src/logic/tsconfig.json' +[12:01:42 AM] Project 'logic/tsconfig.json' is out of date because output 'logic/tsconfig.tsbuildinfo' is older than input 'logic/tsconfig.json' -[12:01:27 AM] Building project '/src/logic/tsconfig.json'... +[12:01:43 AM] Building project '/user/username/projects/sample1/logic/tsconfig.json'... -[12:01:35 AM] Project 'src/tests/tsconfig.json' is out of date because output 'src/tests/tsconfig.tsbuildinfo' is older than input 'src/logic' +[12:01:51 AM] Project 'tests/tsconfig.json' is out of date because output 'tests/tsconfig.tsbuildinfo' is older than input 'logic' -[12:01:36 AM] Building project '/src/tests/tsconfig.json'... +[12:01:52 AM] Building project '/user/username/projects/sample1/tests/tsconfig.json'... exitCode:: ExitStatus.Success readFiles:: { - "/src/tests/tsconfig.json": 1, - "/src/core/tsconfig.json": 1, - "/src/logic/tsconfig.json": 1, - "/src/core/tsconfig.tsbuildinfo": 1, - "/src/logic/tsconfig.tsbuildinfo": 1, - "/src/logic/index.ts": 1, - "/src/core/index.d.ts": 1, - "/src/core/anotherModule.d.ts": 1, - "/src/tests/tsconfig.tsbuildinfo": 1, - "/src/tests/index.ts": 1, - "/src/logic/decls/index.d.ts": 1 + "/user/username/projects/sample1/tests/tsconfig.json": 1, + "/user/username/projects/sample1/core/tsconfig.json": 1, + "/user/username/projects/sample1/logic/tsconfig.json": 1, + "/user/username/projects/sample1/core/tsconfig.tsbuildinfo": 1, + "/user/username/projects/sample1/logic/tsconfig.tsbuildinfo": 1, + "/user/username/projects/sample1/logic/index.ts": 1, + "/user/username/projects/sample1/core/index.d.ts": 1, + "/user/username/projects/sample1/core/anotherModule.d.ts": 1, + "/user/username/projects/sample1/tests/tsconfig.tsbuildinfo": 1, + "/user/username/projects/sample1/tests/index.ts": 1, + "/user/username/projects/sample1/logic/decls/index.d.ts": 1 } -//// [/src/logic/decls/index.d.ts] +//// [/user/username/projects/sample1/logic/decls/index.d.ts] export declare function getSecondsInDay(): number; import * as mod from '../core/anotherModule'; export declare const m: typeof mod; -//// [/src/logic/index.js] file written with same contents -//// [/src/logic/index.js.map] file written with same contents -//// [/src/logic/index.js.map.baseline.txt] file written with same contents -//// [/src/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"declarationDir":"./decls","skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./decls/index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/logic/index.js] file written with same contents +//// [/user/username/projects/sample1/logic/index.js.map] file written with same contents +//// [/user/username/projects/sample1/logic/index.js.map.baseline.txt] file written with same contents +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"declarationDir":"./decls","skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./decls/index.d.ts"},"version":"FakeTSVersion"} -//// [/src/logic/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "./index.ts" @@ -1496,7 +1483,7 @@ export declare const m: typeof mod; ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -1515,10 +1502,10 @@ export declare const m: typeof mod; }, "./index.ts": { "original": { - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -1547,7 +1534,7 @@ export declare const m: typeof mod; ] }, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "./index.ts" @@ -1555,18 +1542,18 @@ export declare const m: typeof mod; "latestChangedDtsFile": "./decls/index.d.ts" }, "version": "FakeTSVersion", - "size": 1582 + "size": 1581 } -//// [/src/tests/index.js] file written with same contents -//// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/decls/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/tests/index.js] file written with same contents +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/decls/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "../logic/decls/index.d.ts", @@ -1583,7 +1570,7 @@ export declare const m: typeof mod; ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -1606,10 +1593,10 @@ export declare const m: typeof mod; }, "./index.ts": { "original": { - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -1643,7 +1630,7 @@ export declare const m: typeof mod; ] }, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "../logic/decls/index.d.ts", @@ -1652,7 +1639,7 @@ export declare const m: typeof mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1700 + "size": 1696 } @@ -1662,25 +1649,25 @@ Input:: Output:: -/lib/tsc --b /src/tests --verbose -[12:01:42 AM] Projects in this build: - * src/core/tsconfig.json - * src/logic/tsconfig.json - * src/tests/tsconfig.json +/a/lib/tsc --b tests --verbose +[12:01:58 AM] Projects in this build: + * core/tsconfig.json + * logic/tsconfig.json + * tests/tsconfig.json -[12:01:43 AM] Project 'src/core/tsconfig.json' is up to date because newest input 'src/core/index.ts' is older than output 'src/core/tsconfig.tsbuildinfo' +[12:01:59 AM] Project 'core/tsconfig.json' is up to date because newest input 'core/index.ts' is older than output 'core/tsconfig.tsbuildinfo' -[12:01:44 AM] Project 'src/logic/tsconfig.json' is up to date because newest input 'src/logic/index.ts' is older than output 'src/logic/tsconfig.tsbuildinfo' +[12:02:00 AM] Project 'logic/tsconfig.json' is up to date because newest input 'logic/index.ts' is older than output 'logic/tsconfig.tsbuildinfo' -[12:01:45 AM] Project 'src/tests/tsconfig.json' is up to date because newest input 'src/tests/index.ts' is older than output 'src/tests/tsconfig.tsbuildinfo' +[12:02:01 AM] Project 'tests/tsconfig.json' is up to date because newest input 'tests/index.ts' is older than output 'tests/tsconfig.tsbuildinfo' exitCode:: ExitStatus.Success readFiles:: { - "/src/tests/tsconfig.json": 1, - "/src/core/tsconfig.json": 1, - "/src/logic/tsconfig.json": 1, - "/src/core/tsconfig.tsbuildinfo": 1, - "/src/logic/tsconfig.tsbuildinfo": 1, - "/src/tests/tsconfig.tsbuildinfo": 1 + "/user/username/projects/sample1/tests/tsconfig.json": 1, + "/user/username/projects/sample1/core/tsconfig.json": 1, + "/user/username/projects/sample1/logic/tsconfig.json": 1, + "/user/username/projects/sample1/core/tsconfig.tsbuildinfo": 1, + "/user/username/projects/sample1/logic/tsconfig.tsbuildinfo": 1, + "/user/username/projects/sample1/tests/tsconfig.tsbuildinfo": 1 } diff --git a/tests/baselines/reference/tsbuild/sample1/when-declaration-option-changes.js b/tests/baselines/reference/tsbuild/sample1/when-declaration-option-changes.js index b7bf9289d85f0..12174a04c32b8 100644 --- a/tests/baselines/reference/tsbuild/sample1/when-declaration-option-changes.js +++ b/tests/baselines/reference/tsbuild/sample1/when-declaration-option-changes.js @@ -1,6 +1,6 @@ -currentDirectory:: / useCaseSensitiveFileNames: false +currentDirectory:: /user/username/projects/sample1 useCaseSensitiveFileNames: false Input:: -//// [/lib/lib.d.ts] +//// [/a/lib/lib.d.ts] /// interface Boolean {} interface Function {} @@ -15,119 +15,105 @@ interface Array { length: number; [n: number]: T; } interface ReadonlyArray {} declare const console: { log(msg: any): void; }; -//// [/src/core/anotherModule.ts] +//// [/user/username/projects/sample1/core/anotherModule.ts] export const World = "hello"; +//// [/user/username/projects/sample1/core/index.ts] +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } -//// [/src/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } - -//// [/src/core/some_decl.d.ts] +//// [/user/username/projects/sample1/core/some_decl.d.ts] declare const dts: any; - -//// [/src/core/tsconfig.json] +//// [/user/username/projects/sample1/core/tsconfig.json] { - "compilerOptions": { - "incremental": true, - "skipDefaultLibCheck": true - } -} - -//// [/src/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; - - -//// [/src/logic/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../core" } - ] + "compilerOptions": { + "incremental": true, + "skipDefaultLibCheck": true + } } +//// [/user/username/projects/sample1/logic/index.ts] +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; -//// [/src/tests/index.ts] -import * as c from '../core/index'; -import * as logic from '../logic/index'; -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; - - -//// [/src/tests/tsconfig.json] -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" } - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - } +//// [/user/username/projects/sample1/logic/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + }, + "references": [ + { + "path": "../core" + } + ] } -//// [/src/ui/index.ts] -import * as logic from '../logic'; - -export function run() { - console.log(logic.getSecondsInDay()); -} +//// [/user/username/projects/sample1/tests/index.ts] +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; -//// [/src/ui/tsconfig.json] -{ - "compilerOptions": { - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../logic/index" } - ] +//// [/user/username/projects/sample1/tests/tsconfig.json] +{ + "references": [ + { + "path": "../core" + }, + { + "path": "../logic" + } + ], + "files": [ + "index.ts" + ], + "compilerOptions": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + } } - Output:: -/lib/tsc --b /src/core --verbose -[12:00:07 AM] Projects in this build: - * src/core/tsconfig.json +/a/lib/tsc --b core --verbose +[12:00:23 AM] Projects in this build: + * core/tsconfig.json -[12:00:08 AM] Project 'src/core/tsconfig.json' is out of date because output file 'src/core/tsconfig.tsbuildinfo' does not exist +[12:00:24 AM] Project 'core/tsconfig.json' is out of date because output file 'core/tsconfig.tsbuildinfo' does not exist -[12:00:09 AM] Building project '/src/core/tsconfig.json'... +[12:00:25 AM] Building project '/user/username/projects/sample1/core/tsconfig.json'... exitCode:: ExitStatus.Success -//// [/src/core/anotherModule.js] +//// [/user/username/projects/sample1/core/anotherModule.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.World = void 0; exports.World = "hello"; -//// [/src/core/index.js] +//// [/user/username/projects/sample1/core/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.multiply = exports.leftPad = exports.someString = void 0; @@ -138,20 +124,20 @@ function multiply(a, b) { return a * b; } exports.multiply = multiply; -//// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2676574883-export const World = \"hello\";\r\n","-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n",{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"root":[[2,4]],"options":{"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-3090574810-export const World = \"hello\";","-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n",{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} -//// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -161,20 +147,20 @@ exports.multiply = multiply; "affectsGlobalScope": true }, "./anothermodule.ts": { - "version": "-2676574883-export const World = \"hello\";\r\n", - "signature": "-2676574883-export const World = \"hello\";\r\n" + "version": "-3090574810-export const World = \"hello\";", + "signature": "-3090574810-export const World = \"hello\";" }, "./index.ts": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", - "signature": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n" + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", + "signature": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n" }, "./some_decl.d.ts": { "original": { - "version": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", "affectsGlobalScope": true }, - "version": "-9253692965-declare const dts: any;\r\n", - "signature": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", "affectsGlobalScope": true } }, @@ -197,66 +183,66 @@ exports.multiply = multiply; "referencedMap": {}, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" ] }, "version": "FakeTSVersion", - "size": 1091 + "size": 1088 } Change:: incremental-declaration-changes Input:: -//// [/src/core/tsconfig.json] +//// [/user/username/projects/sample1/core/tsconfig.json] { - "compilerOptions": { - "incremental": true, "declaration": true, - "skipDefaultLibCheck": true - } + "compilerOptions": { + "incremental": true, "declaration": true, + "skipDefaultLibCheck": true + } } Output:: -/lib/tsc --b /src/core --verbose -[12:00:16 AM] Projects in this build: - * src/core/tsconfig.json +/a/lib/tsc --b core --verbose +[12:00:32 AM] Projects in this build: + * core/tsconfig.json -[12:00:17 AM] Project 'src/core/tsconfig.json' is out of date because buildinfo file 'src/core/tsconfig.tsbuildinfo' indicates there is change in compilerOptions +[12:00:33 AM] Project 'core/tsconfig.json' is out of date because buildinfo file 'core/tsconfig.tsbuildinfo' indicates there is change in compilerOptions -[12:00:18 AM] Building project '/src/core/tsconfig.json'... +[12:00:34 AM] Building project '/user/username/projects/sample1/core/tsconfig.json'... exitCode:: ExitStatus.Success -//// [/src/core/anotherModule.d.ts] +//// [/user/username/projects/sample1/core/anotherModule.d.ts] export declare const World = "hello"; -//// [/src/core/index.d.ts] +//// [/user/username/projects/sample1/core/index.d.ts] export declare const someString: string; export declare function leftPad(s: string, n: number): string; export declare function multiply(a: number, b: number): number; -//// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\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"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"root":[[2,4]],"options":{"declaration":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"declaration":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} -//// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -267,27 +253,27 @@ export declare function multiply(a: number, b: number): number; }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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" }, - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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" }, "./some_decl.d.ts": { "original": { - "version": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", "affectsGlobalScope": true }, - "version": "-9253692965-declare const dts: any;\r\n", - "signature": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", "affectsGlobalScope": true } }, @@ -311,13 +297,13 @@ export declare function multiply(a: number, b: number): number; "referencedMap": {}, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" ] }, "version": "FakeTSVersion", - "size": 1400 + "size": 1397 } diff --git a/tests/baselines/reference/tsbuild/sample1/when-declarationMap-changes.js b/tests/baselines/reference/tsbuild/sample1/when-declarationMap-changes.js index 43da1519f682f..6b5e88a376049 100644 --- a/tests/baselines/reference/tsbuild/sample1/when-declarationMap-changes.js +++ b/tests/baselines/reference/tsbuild/sample1/when-declarationMap-changes.js @@ -1,6 +1,6 @@ -currentDirectory:: / useCaseSensitiveFileNames: false +currentDirectory:: /user/username/projects/sample1 useCaseSensitiveFileNames: false Input:: -//// [/lib/lib.d.ts] +//// [/a/lib/lib.d.ts] /// interface Boolean {} interface Function {} @@ -15,147 +15,133 @@ interface Array { length: number; [n: number]: T; } interface ReadonlyArray {} declare const console: { log(msg: any): void; }; -//// [/src/core/anotherModule.ts] +//// [/user/username/projects/sample1/core/anotherModule.ts] export const World = "hello"; +//// [/user/username/projects/sample1/core/index.ts] +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } -//// [/src/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } - -//// [/src/core/some_decl.d.ts] +//// [/user/username/projects/sample1/core/some_decl.d.ts] declare const dts: any; - -//// [/src/core/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - } -} - -//// [/src/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; - - -//// [/src/logic/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../core" } - ] +//// [/user/username/projects/sample1/core/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + } } - -//// [/src/tests/index.ts] -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; +//// [/user/username/projects/sample1/logic/index.ts] +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; -//// [/src/tests/tsconfig.json] -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" } - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - } +//// [/user/username/projects/sample1/logic/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + }, + "references": [ + { + "path": "../core" + } + ] } -//// [/src/ui/index.ts] -import * as logic from '../logic'; - -export function run() { - console.log(logic.getSecondsInDay()); -} +//// [/user/username/projects/sample1/tests/index.ts] +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; -//// [/src/ui/tsconfig.json] -{ - "compilerOptions": { - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../logic/index" } - ] +//// [/user/username/projects/sample1/tests/tsconfig.json] +{ + "references": [ + { + "path": "../core" + }, + { + "path": "../logic" + } + ], + "files": [ + "index.ts" + ], + "compilerOptions": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + } } - Output:: -/lib/tsc --b /src/tests --verbose -[12:00:06 AM] Projects in this build: - * src/core/tsconfig.json - * src/logic/tsconfig.json - * src/tests/tsconfig.json +/a/lib/tsc --b tests --verbose +[12:00:22 AM] Projects in this build: + * core/tsconfig.json + * logic/tsconfig.json + * tests/tsconfig.json -[12:00:07 AM] Project 'src/core/tsconfig.json' is out of date because output file 'src/core/tsconfig.tsbuildinfo' does not exist +[12:00:23 AM] Project 'core/tsconfig.json' is out of date because output file 'core/tsconfig.tsbuildinfo' does not exist -[12:00:08 AM] Building project '/src/core/tsconfig.json'... +[12:00:24 AM] Building project '/user/username/projects/sample1/core/tsconfig.json'... -[12:00:18 AM] Project 'src/logic/tsconfig.json' is out of date because output file 'src/logic/tsconfig.tsbuildinfo' does not exist +[12:00:34 AM] Project 'logic/tsconfig.json' is out of date because output file 'logic/tsconfig.tsbuildinfo' does not exist -[12:00:19 AM] Building project '/src/logic/tsconfig.json'... +[12:00:35 AM] Building project '/user/username/projects/sample1/logic/tsconfig.json'... -[12:00:26 AM] Project 'src/tests/tsconfig.json' is out of date because output file 'src/tests/tsconfig.tsbuildinfo' does not exist +[12:00:42 AM] Project 'tests/tsconfig.json' is out of date because output file 'tests/tsconfig.tsbuildinfo' does not exist -[12:00:27 AM] Building project '/src/tests/tsconfig.json'... +[12:00:43 AM] Building project '/user/username/projects/sample1/tests/tsconfig.json'... exitCode:: ExitStatus.Success -//// [/src/core/anotherModule.d.ts] +//// [/user/username/projects/sample1/core/anotherModule.d.ts] export declare const World = "hello"; //# sourceMappingURL=anotherModule.d.ts.map -//// [/src/core/anotherModule.d.ts.map] +//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] {"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} -//// [/src/core/anotherModule.js] +//// [/user/username/projects/sample1/core/anotherModule.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.World = void 0; exports.World = "hello"; -//// [/src/core/index.d.ts] +//// [/user/username/projects/sample1/core/index.d.ts] export declare const someString: string; export declare function leftPad(s: string, n: number): string; export declare function multiply(a: number, b: number): number; //# sourceMappingURL=index.d.ts.map -//// [/src/core/index.d.ts.map] +//// [/user/username/projects/sample1/core/index.d.ts.map] {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} -//// [/src/core/index.js] +//// [/user/username/projects/sample1/core/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.multiply = exports.leftPad = exports.someString = void 0; @@ -166,20 +152,20 @@ function multiply(a, b) { return a * b; } exports.multiply = multiply; -//// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\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"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -190,27 +176,27 @@ exports.multiply = multiply; }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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" }, - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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" }, "./some_decl.d.ts": { "original": { - "version": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", "affectsGlobalScope": true }, - "version": "-9253692965-declare const dts: any;\r\n", - "signature": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", "affectsGlobalScope": true } }, @@ -236,7 +222,7 @@ exports.multiply = multiply; "referencedMap": {}, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" @@ -244,16 +230,16 @@ exports.multiply = multiply; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1477 + "size": 1474 } -//// [/src/logic/index.d.ts] +//// [/user/username/projects/sample1/logic/index.d.ts] export declare function getSecondsInDay(): number; import * as mod from '../core/anotherModule'; export declare const m: typeof mod; -//// [/src/logic/index.js] +//// [/user/username/projects/sample1/logic/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.m = exports.getSecondsInDay = void 0; @@ -266,17 +252,17 @@ var mod = require("../core/anotherModule"); exports.m = mod; //# sourceMappingURL=index.js.map -//// [/src/logic/index.js.map] +//// [/user/username/projects/sample1/logic/index.js.map] {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAA,iCAAmC;AACnC,SAAgB,eAAe;IAC3B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC9B,CAAC;AAFD,0CAEC;AACD,2CAA6C;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} -//// [/src/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/logic/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "./index.ts" @@ -291,7 +277,7 @@ exports.m = mod; ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -310,10 +296,10 @@ exports.m = mod; }, "./index.ts": { "original": { - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -341,7 +327,7 @@ exports.m = mod; ] }, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "./index.ts" @@ -349,15 +335,15 @@ exports.m = mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1512 + "size": 1511 } -//// [/src/tests/index.d.ts] +//// [/user/username/projects/sample1/tests/index.d.ts] import * as mod from '../core/anotherModule'; export declare const m: typeof mod; -//// [/src/tests/index.js] +//// [/user/username/projects/sample1/tests/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.m = void 0; @@ -369,14 +355,14 @@ var mod = require("../core/anotherModule"); exports.m = mod; -//// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "../logic/index.d.ts", @@ -393,7 +379,7 @@ exports.m = mod; ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -416,10 +402,10 @@ exports.m = mod; }, "./index.ts": { "original": { - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -453,7 +439,7 @@ exports.m = mod; ] }, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "../logic/index.d.ts", @@ -462,71 +448,71 @@ exports.m = mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1657 + "size": 1653 } Change:: Disable declarationMap Input:: -//// [/src/core/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": false, - "skipDefaultLibCheck": true - } +//// [/user/username/projects/sample1/core/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": false, + "skipDefaultLibCheck": true + } } Output:: -/lib/tsc --b /src/tests --verbose -[12:00:34 AM] Projects in this build: - * src/core/tsconfig.json - * src/logic/tsconfig.json - * src/tests/tsconfig.json +/a/lib/tsc --b tests --verbose +[12:00:50 AM] Projects in this build: + * core/tsconfig.json + * logic/tsconfig.json + * tests/tsconfig.json -[12:00:35 AM] Project 'src/core/tsconfig.json' is out of date because buildinfo file 'src/core/tsconfig.tsbuildinfo' indicates there is change in compilerOptions +[12:00:51 AM] Project 'core/tsconfig.json' is out of date because buildinfo file 'core/tsconfig.tsbuildinfo' indicates there is change in compilerOptions -[12:00:36 AM] Building project '/src/core/tsconfig.json'... +[12:00:52 AM] Building project '/user/username/projects/sample1/core/tsconfig.json'... -[12:00:44 AM] Project 'src/logic/tsconfig.json' is up to date with .d.ts files from its dependencies +[12:01:00 AM] Project 'logic/tsconfig.json' is up to date with .d.ts files from its dependencies -[12:00:45 AM] Updating output timestamps of project '/src/logic/tsconfig.json'... +[12:01:01 AM] Updating output timestamps of project '/user/username/projects/sample1/logic/tsconfig.json'... -[12:00:48 AM] Project 'src/tests/tsconfig.json' is up to date with .d.ts files from its dependencies +[12:01:04 AM] Project 'tests/tsconfig.json' is up to date with .d.ts files from its dependencies -[12:00:49 AM] Updating output timestamps of project '/src/tests/tsconfig.json'... +[12:01:05 AM] Updating output timestamps of project '/user/username/projects/sample1/tests/tsconfig.json'... exitCode:: ExitStatus.Success -//// [/src/core/anotherModule.d.ts] +//// [/user/username/projects/sample1/core/anotherModule.d.ts] export declare const World = "hello"; -//// [/src/core/index.d.ts] +//// [/user/username/projects/sample1/core/index.d.ts] export declare const someString: string; export declare function leftPad(s: string, n: number): string; export declare function multiply(a: number, b: number): number; -//// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\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"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":false,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":false,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -537,27 +523,27 @@ export declare function multiply(a: number, b: number): number; }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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" }, - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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" }, "./some_decl.d.ts": { "original": { - "version": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", "affectsGlobalScope": true }, - "version": "-9253692965-declare const dts: any;\r\n", - "signature": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", "affectsGlobalScope": true } }, @@ -583,7 +569,7 @@ export declare function multiply(a: number, b: number): number; "referencedMap": {}, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" @@ -591,75 +577,75 @@ export declare function multiply(a: number, b: number): number; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1478 + "size": 1475 } -//// [/src/logic/tsconfig.tsbuildinfo] file changed its modified time -//// [/src/tests/tsconfig.tsbuildinfo] file changed its modified time +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] file changed its modified time +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] file changed its modified time Change:: Enable declarationMap Input:: -//// [/src/core/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - } +//// [/user/username/projects/sample1/core/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + } } Output:: -/lib/tsc --b /src/tests --verbose -[12:00:53 AM] Projects in this build: - * src/core/tsconfig.json - * src/logic/tsconfig.json - * src/tests/tsconfig.json +/a/lib/tsc --b tests --verbose +[12:01:09 AM] Projects in this build: + * core/tsconfig.json + * logic/tsconfig.json + * tests/tsconfig.json -[12:00:54 AM] Project 'src/core/tsconfig.json' is out of date because buildinfo file 'src/core/tsconfig.tsbuildinfo' indicates there is change in compilerOptions +[12:01:10 AM] Project 'core/tsconfig.json' is out of date because buildinfo file 'core/tsconfig.tsbuildinfo' indicates there is change in compilerOptions -[12:00:55 AM] Building project '/src/core/tsconfig.json'... +[12:01:11 AM] Building project '/user/username/projects/sample1/core/tsconfig.json'... -[12:01:05 AM] Project 'src/logic/tsconfig.json' is up to date with .d.ts files from its dependencies +[12:01:21 AM] Project 'logic/tsconfig.json' is up to date with .d.ts files from its dependencies -[12:01:06 AM] Updating output timestamps of project '/src/logic/tsconfig.json'... +[12:01:22 AM] Updating output timestamps of project '/user/username/projects/sample1/logic/tsconfig.json'... -[12:01:09 AM] Project 'src/tests/tsconfig.json' is up to date with .d.ts files from its dependencies +[12:01:25 AM] Project 'tests/tsconfig.json' is up to date with .d.ts files from its dependencies -[12:01:10 AM] Updating output timestamps of project '/src/tests/tsconfig.json'... +[12:01:26 AM] Updating output timestamps of project '/user/username/projects/sample1/tests/tsconfig.json'... exitCode:: ExitStatus.Success -//// [/src/core/anotherModule.d.ts] +//// [/user/username/projects/sample1/core/anotherModule.d.ts] export declare const World = "hello"; //# sourceMappingURL=anotherModule.d.ts.map -//// [/src/core/anotherModule.d.ts.map] file written with same contents -//// [/src/core/index.d.ts] +//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] file written with same contents +//// [/user/username/projects/sample1/core/index.d.ts] export declare const someString: string; export declare function leftPad(s: string, n: number): string; export declare function multiply(a: number, b: number): number; //# sourceMappingURL=index.d.ts.map -//// [/src/core/index.d.ts.map] file written with same contents -//// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\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"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/core/index.d.ts.map] file written with same contents +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -670,27 +656,27 @@ export declare function multiply(a: number, b: number): number; }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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" }, - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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" }, "./some_decl.d.ts": { "original": { - "version": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", "affectsGlobalScope": true }, - "version": "-9253692965-declare const dts: any;\r\n", - "signature": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", "affectsGlobalScope": true } }, @@ -716,7 +702,7 @@ export declare function multiply(a: number, b: number): number; "referencedMap": {}, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" @@ -724,8 +710,8 @@ export declare function multiply(a: number, b: number): number; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1477 + "size": 1474 } -//// [/src/logic/tsconfig.tsbuildinfo] file changed its modified time -//// [/src/tests/tsconfig.tsbuildinfo] file changed its modified time +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] file changed its modified time +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] file changed its modified time diff --git a/tests/baselines/reference/tsbuild/sample1/when-esModuleInterop-option-changes.js b/tests/baselines/reference/tsbuild/sample1/when-esModuleInterop-option-changes.js index 25de6a48068b5..87ac7cd32b669 100644 --- a/tests/baselines/reference/tsbuild/sample1/when-esModuleInterop-option-changes.js +++ b/tests/baselines/reference/tsbuild/sample1/when-esModuleInterop-option-changes.js @@ -1,6 +1,6 @@ -currentDirectory:: / useCaseSensitiveFileNames: false +currentDirectory:: /user/username/projects/sample1 useCaseSensitiveFileNames: false Input:: -//// [/lib/lib.d.ts] +//// [/a/lib/lib.d.ts] /// interface Boolean {} interface Function {} @@ -15,148 +15,134 @@ interface Array { length: number; [n: number]: T; } interface ReadonlyArray {} declare const console: { log(msg: any): void; }; -//// [/src/core/anotherModule.ts] +//// [/user/username/projects/sample1/core/anotherModule.ts] export const World = "hello"; +//// [/user/username/projects/sample1/core/index.ts] +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } -//// [/src/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } - -//// [/src/core/some_decl.d.ts] +//// [/user/username/projects/sample1/core/some_decl.d.ts] declare const dts: any; - -//// [/src/core/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - } -} - -//// [/src/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; - - -//// [/src/logic/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../core" } - ] +//// [/user/username/projects/sample1/core/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + } } - -//// [/src/tests/index.ts] -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; +//// [/user/username/projects/sample1/logic/index.ts] +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; -//// [/src/tests/tsconfig.json] +//// [/user/username/projects/sample1/logic/tsconfig.json] { - "references": [ - { "path": "../core" }, - { "path": "../logic" } - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true, - "esModuleInterop": false + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + }, + "references": [ + { + "path": "../core" } + ] } -//// [/src/ui/index.ts] -import * as logic from '../logic'; - -export function run() { - console.log(logic.getSecondsInDay()); -} +//// [/user/username/projects/sample1/tests/index.ts] +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; -//// [/src/ui/tsconfig.json] -{ - "compilerOptions": { - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../logic/index" } - ] +//// [/user/username/projects/sample1/tests/tsconfig.json] +{ + "references": [ + { + "path": "../core" + }, + { + "path": "../logic" + } + ], + "files": [ + "index.ts" + ], + "compilerOptions": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "esModuleInterop": false + } } - Output:: -/lib/tsc --b /src/tests --verbose -[12:00:07 AM] Projects in this build: - * src/core/tsconfig.json - * src/logic/tsconfig.json - * src/tests/tsconfig.json +/a/lib/tsc --b tests --verbose +[12:00:23 AM] Projects in this build: + * core/tsconfig.json + * logic/tsconfig.json + * tests/tsconfig.json -[12:00:08 AM] Project 'src/core/tsconfig.json' is out of date because output file 'src/core/tsconfig.tsbuildinfo' does not exist +[12:00:24 AM] Project 'core/tsconfig.json' is out of date because output file 'core/tsconfig.tsbuildinfo' does not exist -[12:00:09 AM] Building project '/src/core/tsconfig.json'... +[12:00:25 AM] Building project '/user/username/projects/sample1/core/tsconfig.json'... -[12:00:19 AM] Project 'src/logic/tsconfig.json' is out of date because output file 'src/logic/tsconfig.tsbuildinfo' does not exist +[12:00:35 AM] Project 'logic/tsconfig.json' is out of date because output file 'logic/tsconfig.tsbuildinfo' does not exist -[12:00:20 AM] Building project '/src/logic/tsconfig.json'... +[12:00:36 AM] Building project '/user/username/projects/sample1/logic/tsconfig.json'... -[12:00:27 AM] Project 'src/tests/tsconfig.json' is out of date because output file 'src/tests/tsconfig.tsbuildinfo' does not exist +[12:00:43 AM] Project 'tests/tsconfig.json' is out of date because output file 'tests/tsconfig.tsbuildinfo' does not exist -[12:00:28 AM] Building project '/src/tests/tsconfig.json'... +[12:00:44 AM] Building project '/user/username/projects/sample1/tests/tsconfig.json'... exitCode:: ExitStatus.Success -//// [/src/core/anotherModule.d.ts] +//// [/user/username/projects/sample1/core/anotherModule.d.ts] export declare const World = "hello"; //# sourceMappingURL=anotherModule.d.ts.map -//// [/src/core/anotherModule.d.ts.map] +//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] {"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} -//// [/src/core/anotherModule.js] +//// [/user/username/projects/sample1/core/anotherModule.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.World = void 0; exports.World = "hello"; -//// [/src/core/index.d.ts] +//// [/user/username/projects/sample1/core/index.d.ts] export declare const someString: string; export declare function leftPad(s: string, n: number): string; export declare function multiply(a: number, b: number): number; //# sourceMappingURL=index.d.ts.map -//// [/src/core/index.d.ts.map] +//// [/user/username/projects/sample1/core/index.d.ts.map] {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} -//// [/src/core/index.js] +//// [/user/username/projects/sample1/core/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.multiply = exports.leftPad = exports.someString = void 0; @@ -167,20 +153,20 @@ function multiply(a, b) { return a * b; } exports.multiply = multiply; -//// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\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"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -191,27 +177,27 @@ exports.multiply = multiply; }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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" }, - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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" }, "./some_decl.d.ts": { "original": { - "version": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", "affectsGlobalScope": true }, - "version": "-9253692965-declare const dts: any;\r\n", - "signature": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", "affectsGlobalScope": true } }, @@ -237,7 +223,7 @@ exports.multiply = multiply; "referencedMap": {}, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" @@ -245,16 +231,16 @@ exports.multiply = multiply; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1477 + "size": 1474 } -//// [/src/logic/index.d.ts] +//// [/user/username/projects/sample1/logic/index.d.ts] export declare function getSecondsInDay(): number; import * as mod from '../core/anotherModule'; export declare const m: typeof mod; -//// [/src/logic/index.js] +//// [/user/username/projects/sample1/logic/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.m = exports.getSecondsInDay = void 0; @@ -267,17 +253,17 @@ var mod = require("../core/anotherModule"); exports.m = mod; //# sourceMappingURL=index.js.map -//// [/src/logic/index.js.map] +//// [/user/username/projects/sample1/logic/index.js.map] {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAA,iCAAmC;AACnC,SAAgB,eAAe;IAC3B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC9B,CAAC;AAFD,0CAEC;AACD,2CAA6C;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} -//// [/src/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/logic/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "./index.ts" @@ -292,7 +278,7 @@ exports.m = mod; ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -311,10 +297,10 @@ exports.m = mod; }, "./index.ts": { "original": { - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -342,7 +328,7 @@ exports.m = mod; ] }, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "./index.ts" @@ -350,15 +336,15 @@ exports.m = mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1512 + "size": 1511 } -//// [/src/tests/index.d.ts] +//// [/user/username/projects/sample1/tests/index.d.ts] import * as mod from '../core/anotherModule'; export declare const m: typeof mod; -//// [/src/tests/index.js] +//// [/user/username/projects/sample1/tests/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.m = void 0; @@ -370,14 +356,14 @@ var mod = require("../core/anotherModule"); exports.m = mod; -//// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"esModuleInterop":false,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"esModuleInterop":false,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "../logic/index.d.ts", @@ -394,7 +380,7 @@ exports.m = mod; ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -417,10 +403,10 @@ exports.m = mod; }, "./index.ts": { "original": { - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -455,7 +441,7 @@ exports.m = mod; ] }, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "../logic/index.d.ts", @@ -464,50 +450,56 @@ exports.m = mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1681 + "size": 1677 } Change:: incremental-declaration-changes Input:: -//// [/src/tests/tsconfig.json] +//// [/user/username/projects/sample1/tests/tsconfig.json] { - "references": [ - { "path": "../core" }, - { "path": "../logic" } - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true, - "esModuleInterop": true + "references": [ + { + "path": "../core" + }, + { + "path": "../logic" } + ], + "files": [ + "index.ts" + ], + "compilerOptions": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "esModuleInterop": true + } } Output:: -/lib/tsc --b /src/tests --verbose -[12:00:35 AM] Projects in this build: - * src/core/tsconfig.json - * src/logic/tsconfig.json - * src/tests/tsconfig.json +/a/lib/tsc --b tests --verbose +[12:00:51 AM] Projects in this build: + * core/tsconfig.json + * logic/tsconfig.json + * tests/tsconfig.json -[12:00:36 AM] Project 'src/core/tsconfig.json' is up to date because newest input 'src/core/anotherModule.ts' is older than output 'src/core/tsconfig.tsbuildinfo' +[12:00:52 AM] Project 'core/tsconfig.json' is up to date because newest input 'core/anotherModule.ts' is older than output 'core/tsconfig.tsbuildinfo' -[12:00:37 AM] Project 'src/logic/tsconfig.json' is up to date because newest input 'src/logic/index.ts' is older than output 'src/logic/tsconfig.tsbuildinfo' +[12:00:53 AM] Project 'logic/tsconfig.json' is up to date because newest input 'logic/index.ts' is older than output 'logic/tsconfig.tsbuildinfo' -[12:00:38 AM] Project 'src/tests/tsconfig.json' is out of date because output 'src/tests/tsconfig.tsbuildinfo' is older than input 'src/tests/tsconfig.json' +[12:00:54 AM] Project 'tests/tsconfig.json' is out of date because output 'tests/tsconfig.tsbuildinfo' is older than input 'tests/tsconfig.json' -[12:00:39 AM] Building project '/src/tests/tsconfig.json'... +[12:00:55 AM] Building project '/user/username/projects/sample1/tests/tsconfig.json'... exitCode:: ExitStatus.Success -//// [/src/tests/index.js] +//// [/user/username/projects/sample1/tests/index.js] "use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; @@ -542,14 +534,14 @@ var mod = __importStar(require("../core/anotherModule")); exports.m = mod; -//// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"esModuleInterop":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"esModuleInterop":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "../logic/index.d.ts", @@ -566,7 +558,7 @@ exports.m = mod; ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -589,10 +581,10 @@ exports.m = mod; }, "./index.ts": { "original": { - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -627,7 +619,7 @@ exports.m = mod; ] }, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "../logic/index.d.ts", @@ -636,6 +628,6 @@ exports.m = mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1680 + "size": 1676 } diff --git a/tests/baselines/reference/tsbuild/sample1/when-input-file-text-does-not-change-but-its-modified-time-changes.js b/tests/baselines/reference/tsbuild/sample1/when-input-file-text-does-not-change-but-its-modified-time-changes.js index ffba3f1d3d3aa..00d862b3252a1 100644 --- a/tests/baselines/reference/tsbuild/sample1/when-input-file-text-does-not-change-but-its-modified-time-changes.js +++ b/tests/baselines/reference/tsbuild/sample1/when-input-file-text-does-not-change-but-its-modified-time-changes.js @@ -1,6 +1,6 @@ -currentDirectory:: / useCaseSensitiveFileNames: false +currentDirectory:: /user/username/projects/sample1 useCaseSensitiveFileNames: false Input:: -//// [/lib/lib.d.ts] +//// [/a/lib/lib.d.ts] /// interface Boolean {} interface Function {} @@ -15,147 +15,133 @@ interface Array { length: number; [n: number]: T; } interface ReadonlyArray {} declare const console: { log(msg: any): void; }; -//// [/src/core/anotherModule.ts] +//// [/user/username/projects/sample1/core/anotherModule.ts] export const World = "hello"; +//// [/user/username/projects/sample1/core/index.ts] +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } -//// [/src/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } - -//// [/src/core/some_decl.d.ts] +//// [/user/username/projects/sample1/core/some_decl.d.ts] declare const dts: any; - -//// [/src/core/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - } -} - -//// [/src/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; - - -//// [/src/logic/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../core" } - ] +//// [/user/username/projects/sample1/core/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + } } - -//// [/src/tests/index.ts] -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; +//// [/user/username/projects/sample1/logic/index.ts] +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; -//// [/src/tests/tsconfig.json] -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" } - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - } +//// [/user/username/projects/sample1/logic/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + }, + "references": [ + { + "path": "../core" + } + ] } -//// [/src/ui/index.ts] -import * as logic from '../logic'; - -export function run() { - console.log(logic.getSecondsInDay()); -} +//// [/user/username/projects/sample1/tests/index.ts] +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; -//// [/src/ui/tsconfig.json] -{ - "compilerOptions": { - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../logic/index" } - ] +//// [/user/username/projects/sample1/tests/tsconfig.json] +{ + "references": [ + { + "path": "../core" + }, + { + "path": "../logic" + } + ], + "files": [ + "index.ts" + ], + "compilerOptions": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + } } - Output:: -/lib/tsc --b /src/tests --verbose -[12:00:06 AM] Projects in this build: - * src/core/tsconfig.json - * src/logic/tsconfig.json - * src/tests/tsconfig.json +/a/lib/tsc --b tests --verbose +[12:00:22 AM] Projects in this build: + * core/tsconfig.json + * logic/tsconfig.json + * tests/tsconfig.json -[12:00:07 AM] Project 'src/core/tsconfig.json' is out of date because output file 'src/core/tsconfig.tsbuildinfo' does not exist +[12:00:23 AM] Project 'core/tsconfig.json' is out of date because output file 'core/tsconfig.tsbuildinfo' does not exist -[12:00:08 AM] Building project '/src/core/tsconfig.json'... +[12:00:24 AM] Building project '/user/username/projects/sample1/core/tsconfig.json'... -[12:00:18 AM] Project 'src/logic/tsconfig.json' is out of date because output file 'src/logic/tsconfig.tsbuildinfo' does not exist +[12:00:34 AM] Project 'logic/tsconfig.json' is out of date because output file 'logic/tsconfig.tsbuildinfo' does not exist -[12:00:19 AM] Building project '/src/logic/tsconfig.json'... +[12:00:35 AM] Building project '/user/username/projects/sample1/logic/tsconfig.json'... -[12:00:26 AM] Project 'src/tests/tsconfig.json' is out of date because output file 'src/tests/tsconfig.tsbuildinfo' does not exist +[12:00:42 AM] Project 'tests/tsconfig.json' is out of date because output file 'tests/tsconfig.tsbuildinfo' does not exist -[12:00:27 AM] Building project '/src/tests/tsconfig.json'... +[12:00:43 AM] Building project '/user/username/projects/sample1/tests/tsconfig.json'... exitCode:: ExitStatus.Success -//// [/src/core/anotherModule.d.ts] +//// [/user/username/projects/sample1/core/anotherModule.d.ts] export declare const World = "hello"; //# sourceMappingURL=anotherModule.d.ts.map -//// [/src/core/anotherModule.d.ts.map] +//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] {"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} -//// [/src/core/anotherModule.js] +//// [/user/username/projects/sample1/core/anotherModule.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.World = void 0; exports.World = "hello"; -//// [/src/core/index.d.ts] +//// [/user/username/projects/sample1/core/index.d.ts] export declare const someString: string; export declare function leftPad(s: string, n: number): string; export declare function multiply(a: number, b: number): number; //# sourceMappingURL=index.d.ts.map -//// [/src/core/index.d.ts.map] +//// [/user/username/projects/sample1/core/index.d.ts.map] {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} -//// [/src/core/index.js] +//// [/user/username/projects/sample1/core/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.multiply = exports.leftPad = exports.someString = void 0; @@ -166,20 +152,20 @@ function multiply(a, b) { return a * b; } exports.multiply = multiply; -//// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\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"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -190,27 +176,27 @@ exports.multiply = multiply; }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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" }, - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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" }, "./some_decl.d.ts": { "original": { - "version": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", "affectsGlobalScope": true }, - "version": "-9253692965-declare const dts: any;\r\n", - "signature": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", "affectsGlobalScope": true } }, @@ -236,7 +222,7 @@ exports.multiply = multiply; "referencedMap": {}, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" @@ -244,16 +230,16 @@ exports.multiply = multiply; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1477 + "size": 1474 } -//// [/src/logic/index.d.ts] +//// [/user/username/projects/sample1/logic/index.d.ts] export declare function getSecondsInDay(): number; import * as mod from '../core/anotherModule'; export declare const m: typeof mod; -//// [/src/logic/index.js] +//// [/user/username/projects/sample1/logic/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.m = exports.getSecondsInDay = void 0; @@ -266,17 +252,17 @@ var mod = require("../core/anotherModule"); exports.m = mod; //# sourceMappingURL=index.js.map -//// [/src/logic/index.js.map] +//// [/user/username/projects/sample1/logic/index.js.map] {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAA,iCAAmC;AACnC,SAAgB,eAAe;IAC3B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC9B,CAAC;AAFD,0CAEC;AACD,2CAA6C;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} -//// [/src/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/logic/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "./index.ts" @@ -291,7 +277,7 @@ exports.m = mod; ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -310,10 +296,10 @@ exports.m = mod; }, "./index.ts": { "original": { - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -341,7 +327,7 @@ exports.m = mod; ] }, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "./index.ts" @@ -349,15 +335,15 @@ exports.m = mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1512 + "size": 1511 } -//// [/src/tests/index.d.ts] +//// [/user/username/projects/sample1/tests/index.d.ts] import * as mod from '../core/anotherModule'; export declare const m: typeof mod; -//// [/src/tests/index.js] +//// [/user/username/projects/sample1/tests/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.m = void 0; @@ -369,14 +355,14 @@ var mod = require("../core/anotherModule"); exports.m = mod; -//// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "../logic/index.d.ts", @@ -393,7 +379,7 @@ exports.m = mod; ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -416,10 +402,10 @@ exports.m = mod; }, "./index.ts": { "original": { - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -453,7 +439,7 @@ exports.m = mod; ] }, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "../logic/index.d.ts", @@ -462,38 +448,38 @@ exports.m = mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1657 + "size": 1653 } Change:: upstream project changes without changing file text Input:: -//// [/src/core/index.ts] file changed its modified time +//// [/user/username/projects/sample1/core/index.ts] file changed its modified time Output:: -/lib/tsc --b /src/tests --verbose -[12:00:35 AM] Projects in this build: - * src/core/tsconfig.json - * src/logic/tsconfig.json - * src/tests/tsconfig.json +/a/lib/tsc --b tests --verbose +[12:00:51 AM] Projects in this build: + * core/tsconfig.json + * logic/tsconfig.json + * tests/tsconfig.json -[12:00:36 AM] Project 'src/core/tsconfig.json' is up to date but needs to update timestamps of output files that are older than input files +[12:00:52 AM] Project 'core/tsconfig.json' is up to date but needs to update timestamps of output files that are older than input files -[12:00:37 AM] Updating output timestamps of project '/src/core/tsconfig.json'... +[12:00:53 AM] Updating output timestamps of project '/user/username/projects/sample1/core/tsconfig.json'... -[12:00:40 AM] Project 'src/logic/tsconfig.json' is up to date with .d.ts files from its dependencies +[12:00:56 AM] Project 'logic/tsconfig.json' is up to date with .d.ts files from its dependencies -[12:00:41 AM] Updating output timestamps of project '/src/logic/tsconfig.json'... +[12:00:57 AM] Updating output timestamps of project '/user/username/projects/sample1/logic/tsconfig.json'... -[12:00:44 AM] Project 'src/tests/tsconfig.json' is up to date with .d.ts files from its dependencies +[12:01:00 AM] Project 'tests/tsconfig.json' is up to date with .d.ts files from its dependencies -[12:00:45 AM] Updating output timestamps of project '/src/tests/tsconfig.json'... +[12:01:01 AM] Updating output timestamps of project '/user/username/projects/sample1/tests/tsconfig.json'... exitCode:: ExitStatus.Success -//// [/src/core/tsconfig.tsbuildinfo] file changed its modified time -//// [/src/logic/tsconfig.tsbuildinfo] file changed its modified time -//// [/src/tests/tsconfig.tsbuildinfo] file changed its modified time +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] file changed its modified time +//// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] file changed its modified time +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] file changed its modified time diff --git a/tests/baselines/reference/tsbuild/sample1/when-logic-specifies-tsBuildInfoFile.js b/tests/baselines/reference/tsbuild/sample1/when-logic-specifies-tsBuildInfoFile.js index 25892d334dc17..f7526630116c0 100644 --- a/tests/baselines/reference/tsbuild/sample1/when-logic-specifies-tsBuildInfoFile.js +++ b/tests/baselines/reference/tsbuild/sample1/when-logic-specifies-tsBuildInfoFile.js @@ -1,6 +1,6 @@ -currentDirectory:: / useCaseSensitiveFileNames: false +currentDirectory:: /user/username/projects/sample1 useCaseSensitiveFileNames: false Input:: -//// [/lib/lib.d.ts] +//// [/a/lib/lib.d.ts] /// interface Boolean {} interface Function {} @@ -15,144 +15,130 @@ interface Array { length: number; [n: number]: T; } interface ReadonlyArray {} declare const console: { log(msg: any): void; }; -//// [/src/core/anotherModule.ts] +//// [/user/username/projects/sample1/core/anotherModule.ts] export const World = "hello"; +//// [/user/username/projects/sample1/core/index.ts] +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } -//// [/src/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } - -//// [/src/core/some_decl.d.ts] +//// [/user/username/projects/sample1/core/some_decl.d.ts] declare const dts: any; - -//// [/src/core/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - } -} - -//// [/src/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; - - -//// [/src/logic/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "tsBuildInfoFile": "ownFile.tsbuildinfo", - "declaration": true, - "sourceMap": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../core" } - ] +//// [/user/username/projects/sample1/core/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + } } - -//// [/src/tests/index.ts] -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; +//// [/user/username/projects/sample1/logic/index.ts] +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; -//// [/src/tests/tsconfig.json] -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" } - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - } +//// [/user/username/projects/sample1/logic/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "tsBuildInfoFile": "ownFile.tsbuildinfo", + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + }, + "references": [ + { + "path": "../core" + } + ] } -//// [/src/ui/index.ts] -import * as logic from '../logic'; - -export function run() { - console.log(logic.getSecondsInDay()); -} +//// [/user/username/projects/sample1/tests/index.ts] +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; -//// [/src/ui/tsconfig.json] -{ - "compilerOptions": { - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../logic/index" } - ] +//// [/user/username/projects/sample1/tests/tsconfig.json] +{ + "references": [ + { + "path": "../core" + }, + { + "path": "../logic" + } + ], + "files": [ + "index.ts" + ], + "compilerOptions": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + } } - Output:: -/lib/tsc --b /src/tests --verbose -[12:00:07 AM] Projects in this build: - * src/core/tsconfig.json - * src/logic/tsconfig.json - * src/tests/tsconfig.json +/a/lib/tsc --b tests --verbose +[12:00:23 AM] Projects in this build: + * core/tsconfig.json + * logic/tsconfig.json + * tests/tsconfig.json -[12:00:08 AM] Project 'src/core/tsconfig.json' is out of date because output file 'src/core/tsconfig.tsbuildinfo' does not exist +[12:00:24 AM] Project 'core/tsconfig.json' is out of date because output file 'core/tsconfig.tsbuildinfo' does not exist -[12:00:09 AM] Building project '/src/core/tsconfig.json'... +[12:00:25 AM] Building project '/user/username/projects/sample1/core/tsconfig.json'... -[12:00:19 AM] Project 'src/logic/tsconfig.json' is out of date because output file 'src/logic/ownFile.tsbuildinfo' does not exist +[12:00:35 AM] Project 'logic/tsconfig.json' is out of date because output file 'logic/ownFile.tsbuildinfo' does not exist -[12:00:20 AM] Building project '/src/logic/tsconfig.json'... +[12:00:36 AM] Building project '/user/username/projects/sample1/logic/tsconfig.json'... -[12:00:27 AM] Project 'src/tests/tsconfig.json' is out of date because output file 'src/tests/tsconfig.tsbuildinfo' does not exist +[12:00:43 AM] Project 'tests/tsconfig.json' is out of date because output file 'tests/tsconfig.tsbuildinfo' does not exist -[12:00:28 AM] Building project '/src/tests/tsconfig.json'... +[12:00:44 AM] Building project '/user/username/projects/sample1/tests/tsconfig.json'... exitCode:: ExitStatus.Success readFiles:: { - "/src/tests/tsconfig.json": 1, - "/src/core/tsconfig.json": 1, - "/src/logic/tsconfig.json": 1, - "/src/core/anotherModule.ts": 1, - "/src/core/index.ts": 1, - "/src/core/some_decl.d.ts": 1, - "/src/logic/index.ts": 1, - "/src/core/index.d.ts": 1, - "/src/core/anotherModule.d.ts": 1, - "/src/tests/index.ts": 1, - "/src/logic/index.d.ts": 1 + "/user/username/projects/sample1/tests/tsconfig.json": 1, + "/user/username/projects/sample1/core/tsconfig.json": 1, + "/user/username/projects/sample1/logic/tsconfig.json": 1, + "/user/username/projects/sample1/core/anotherModule.ts": 1, + "/user/username/projects/sample1/core/index.ts": 1, + "/user/username/projects/sample1/core/some_decl.d.ts": 1, + "/user/username/projects/sample1/logic/index.ts": 1, + "/user/username/projects/sample1/core/index.d.ts": 1, + "/user/username/projects/sample1/core/anotherModule.d.ts": 1, + "/user/username/projects/sample1/tests/index.ts": 1, + "/user/username/projects/sample1/logic/index.d.ts": 1 } -//// [/src/core/anotherModule.d.ts] +//// [/user/username/projects/sample1/core/anotherModule.d.ts] export declare const World = "hello"; //# sourceMappingURL=anotherModule.d.ts.map -//// [/src/core/anotherModule.d.ts.map] +//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] {"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} -//// [/src/core/anothermodule.d.ts.map.baseline.txt] +//// [/user/username/projects/sample1/core/anothermodule.d.ts.map.baseline.txt] =================================================================== JsFile: anotherModule.d.ts mapUrl: anotherModule.d.ts.map @@ -160,7 +146,7 @@ sourceRoot: sources: anotherModule.ts =================================================================== ------------------------------------------------------------------- -emittedFile:/src/core/anotherModule.d.ts +emittedFile:/user/username/projects/sample1/core/anotherModule.d.ts sourceFile:anotherModule.ts ------------------------------------------------------------------- >>>export declare const World = "hello"; @@ -186,23 +172,23 @@ sourceFile:anotherModule.ts --- >>>//# sourceMappingURL=anotherModule.d.ts.map -//// [/src/core/anotherModule.js] +//// [/user/username/projects/sample1/core/anotherModule.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.World = void 0; exports.World = "hello"; -//// [/src/core/index.d.ts] +//// [/user/username/projects/sample1/core/index.d.ts] export declare const someString: string; export declare function leftPad(s: string, n: number): string; export declare function multiply(a: number, b: number): number; //# sourceMappingURL=index.d.ts.map -//// [/src/core/index.d.ts.map] +//// [/user/username/projects/sample1/core/index.d.ts.map] {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} -//// [/src/core/index.d.ts.map.baseline.txt] +//// [/user/username/projects/sample1/core/index.d.ts.map.baseline.txt] =================================================================== JsFile: index.d.ts mapUrl: index.d.ts.map @@ -210,7 +196,7 @@ sourceRoot: sources: index.ts =================================================================== ------------------------------------------------------------------- -emittedFile:/src/core/index.d.ts +emittedFile:/user/username/projects/sample1/core/index.d.ts sourceFile:index.ts ------------------------------------------------------------------- >>>export declare const someString: string; @@ -251,7 +237,7 @@ sourceFile:index.ts 11> ^^^^^^ 12> ^^^^^^^^^^ 13> ^-> -1-> +1-> > 2 >export function 3 > leftPad @@ -290,7 +276,7 @@ sourceFile:index.ts 10> ^^ 11> ^^^^^^ 12> ^^^^^^^^^^ -1-> +1-> > 2 >export function 3 > multiply @@ -318,7 +304,7 @@ sourceFile:index.ts --- >>>//# sourceMappingURL=index.d.ts.map -//// [/src/core/index.js] +//// [/user/username/projects/sample1/core/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.multiply = exports.leftPad = exports.someString = void 0; @@ -329,20 +315,20 @@ function multiply(a, b) { return a * b; } exports.multiply = multiply; -//// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\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"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -353,27 +339,27 @@ exports.multiply = multiply; }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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" }, - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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" }, "./some_decl.d.ts": { "original": { - "version": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", "affectsGlobalScope": true }, - "version": "-9253692965-declare const dts: any;\r\n", - "signature": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", "affectsGlobalScope": true } }, @@ -399,7 +385,7 @@ exports.multiply = multiply; "referencedMap": {}, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" @@ -407,16 +393,16 @@ exports.multiply = multiply; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1477 + "size": 1474 } -//// [/src/logic/index.d.ts] +//// [/user/username/projects/sample1/logic/index.d.ts] export declare function getSecondsInDay(): number; import * as mod from '../core/anotherModule'; export declare const m: typeof mod; -//// [/src/logic/index.js] +//// [/user/username/projects/sample1/logic/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.m = exports.getSecondsInDay = void 0; @@ -429,10 +415,10 @@ var mod = require("../core/anotherModule"); exports.m = mod; //# sourceMappingURL=index.js.map -//// [/src/logic/index.js.map] +//// [/user/username/projects/sample1/logic/index.js.map] {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAA,iCAAmC;AACnC,SAAgB,eAAe;IAC3B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC9B,CAAC;AAFD,0CAEC;AACD,2CAA6C;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} -//// [/src/logic/index.js.map.baseline.txt] +//// [/user/username/projects/sample1/logic/index.js.map.baseline.txt] =================================================================== JsFile: index.js mapUrl: index.js.map @@ -440,7 +426,7 @@ sourceRoot: sources: index.ts =================================================================== ------------------------------------------------------------------- -emittedFile:/src/logic/index.js +emittedFile:/user/username/projects/sample1/logic/index.js sourceFile:index.ts ------------------------------------------------------------------- >>>"use strict"; @@ -459,7 +445,7 @@ sourceFile:index.ts 2 >^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^ 4 > ^^^^^^-> -1 > +1 > > 2 >export function 3 > getSecondsInDay @@ -479,7 +465,7 @@ sourceFile:index.ts 9 > ^^ 10> ^ 11> ^ -1->() { +1->() { > 2 > return 3 > c @@ -507,7 +493,7 @@ sourceFile:index.ts 1 > 2 >^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > > 2 >} 1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) @@ -518,8 +504,8 @@ sourceFile:index.ts 2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 3 > ^-> 1-> -2 >export function getSecondsInDay() { - > return c.multiply(10, 15); +2 >export function getSecondsInDay() { + > return c.multiply(10, 15); >} 1->Emitted(8, 1) Source(2, 1) + SourceIndex(0) 2 >Emitted(8, 43) Source(4, 2) + SourceIndex(0) @@ -527,7 +513,7 @@ sourceFile:index.ts >>>var mod = require("../core/anotherModule"); 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -1-> +1-> > 2 >import * as mod from '../core/anotherModule'; 1->Emitted(9, 1) Source(5, 1) + SourceIndex(0) @@ -541,7 +527,7 @@ sourceFile:index.ts 5 > ^^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^-> -1 > +1 > >export const 2 > 3 > m @@ -557,14 +543,14 @@ sourceFile:index.ts --- >>>//# sourceMappingURL=index.js.map -//// [/src/logic/ownFile.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true,"tsBuildInfoFile":"./ownFile.tsbuildinfo"},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/logic/ownFile.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true,"tsBuildInfoFile":"./ownFile.tsbuildinfo"},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/logic/ownFile.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/logic/ownFile.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "./index.ts" @@ -579,7 +565,7 @@ sourceFile:index.ts ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -598,10 +584,10 @@ sourceFile:index.ts }, "./index.ts": { "original": { - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -630,7 +616,7 @@ sourceFile:index.ts ] }, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "./index.ts" @@ -638,15 +624,15 @@ sourceFile:index.ts "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1554 + "size": 1553 } -//// [/src/tests/index.d.ts] +//// [/user/username/projects/sample1/tests/index.d.ts] import * as mod from '../core/anotherModule'; export declare const m: typeof mod; -//// [/src/tests/index.js] +//// [/user/username/projects/sample1/tests/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.m = void 0; @@ -658,14 +644,14 @@ var mod = require("../core/anotherModule"); exports.m = mod; -//// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -//// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/index.d.ts", "../core/anothermodule.d.ts", "../logic/index.d.ts", @@ -682,7 +668,7 @@ exports.m = mod; ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -705,10 +691,10 @@ exports.m = mod; }, "./index.ts": { "original": { - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -742,7 +728,7 @@ exports.m = mod; ] }, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "../logic/index.d.ts", @@ -751,6 +737,6 @@ exports.m = mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1657 + "size": 1653 } diff --git a/tests/baselines/reference/tsbuild/sample1/when-module-option-changes.js b/tests/baselines/reference/tsbuild/sample1/when-module-option-changes.js index f02b179669a1a..aac876f3c6269 100644 --- a/tests/baselines/reference/tsbuild/sample1/when-module-option-changes.js +++ b/tests/baselines/reference/tsbuild/sample1/when-module-option-changes.js @@ -1,6 +1,6 @@ -currentDirectory:: / useCaseSensitiveFileNames: false +currentDirectory:: /user/username/projects/sample1 useCaseSensitiveFileNames: false Input:: -//// [/lib/lib.d.ts] +//// [/a/lib/lib.d.ts] /// interface Boolean {} interface Function {} @@ -15,119 +15,105 @@ interface Array { length: number; [n: number]: T; } interface ReadonlyArray {} declare const console: { log(msg: any): void; }; -//// [/src/core/anotherModule.ts] +//// [/user/username/projects/sample1/core/anotherModule.ts] export const World = "hello"; +//// [/user/username/projects/sample1/core/index.ts] +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } -//// [/src/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } - -//// [/src/core/some_decl.d.ts] +//// [/user/username/projects/sample1/core/some_decl.d.ts] declare const dts: any; - -//// [/src/core/tsconfig.json] +//// [/user/username/projects/sample1/core/tsconfig.json] { - "compilerOptions": { - "incremental": true, - "module": "commonjs" - } -} - -//// [/src/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; - - -//// [/src/logic/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../core" } - ] + "compilerOptions": { + "incremental": true, + "module": "commonjs" + } } +//// [/user/username/projects/sample1/logic/index.ts] +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; -//// [/src/tests/index.ts] -import * as c from '../core/index'; -import * as logic from '../logic/index'; -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; - - -//// [/src/tests/tsconfig.json] -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" } - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - } +//// [/user/username/projects/sample1/logic/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + }, + "references": [ + { + "path": "../core" + } + ] } -//// [/src/ui/index.ts] -import * as logic from '../logic'; - -export function run() { - console.log(logic.getSecondsInDay()); -} +//// [/user/username/projects/sample1/tests/index.ts] +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; -//// [/src/ui/tsconfig.json] -{ - "compilerOptions": { - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../logic/index" } - ] +//// [/user/username/projects/sample1/tests/tsconfig.json] +{ + "references": [ + { + "path": "../core" + }, + { + "path": "../logic" + } + ], + "files": [ + "index.ts" + ], + "compilerOptions": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + } } - Output:: -/lib/tsc --b /src/core --verbose -[12:00:07 AM] Projects in this build: - * src/core/tsconfig.json +/a/lib/tsc --b core --verbose +[12:00:23 AM] Projects in this build: + * core/tsconfig.json -[12:00:08 AM] Project 'src/core/tsconfig.json' is out of date because output file 'src/core/tsconfig.tsbuildinfo' does not exist +[12:00:24 AM] Project 'core/tsconfig.json' is out of date because output file 'core/tsconfig.tsbuildinfo' does not exist -[12:00:09 AM] Building project '/src/core/tsconfig.json'... +[12:00:25 AM] Building project '/user/username/projects/sample1/core/tsconfig.json'... exitCode:: ExitStatus.Success -//// [/src/core/anotherModule.js] +//// [/user/username/projects/sample1/core/anotherModule.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.World = void 0; exports.World = "hello"; -//// [/src/core/index.js] +//// [/user/username/projects/sample1/core/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.multiply = exports.leftPad = exports.someString = void 0; @@ -138,20 +124,20 @@ function multiply(a, b) { return a * b; } exports.multiply = multiply; -//// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2676574883-export const World = \"hello\";\r\n","-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n",{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"root":[[2,4]],"options":{"module":1},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-3090574810-export const World = \"hello\";","-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n",{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"module":1},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} -//// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -161,20 +147,20 @@ exports.multiply = multiply; "affectsGlobalScope": true }, "./anothermodule.ts": { - "version": "-2676574883-export const World = \"hello\";\r\n", - "signature": "-2676574883-export const World = \"hello\";\r\n" + "version": "-3090574810-export const World = \"hello\";", + "signature": "-3090574810-export const World = \"hello\";" }, "./index.ts": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", - "signature": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n" + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", + "signature": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n" }, "./some_decl.d.ts": { "original": { - "version": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", "affectsGlobalScope": true }, - "version": "-9253692965-declare const dts: any;\r\n", - "signature": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", "affectsGlobalScope": true } }, @@ -197,43 +183,43 @@ exports.multiply = multiply; "referencedMap": {}, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" ] }, "version": "FakeTSVersion", - "size": 1075 + "size": 1072 } Change:: incremental-declaration-changes Input:: -//// [/src/core/tsconfig.json] +//// [/user/username/projects/sample1/core/tsconfig.json] { - "compilerOptions": { - "incremental": true, - "module": "amd" - } + "compilerOptions": { + "incremental": true, + "module": "amd" + } } Output:: -/lib/tsc --b /src/core --verbose -[12:00:16 AM] Projects in this build: - * src/core/tsconfig.json +/a/lib/tsc --b core --verbose +[12:00:32 AM] Projects in this build: + * core/tsconfig.json -[12:00:17 AM] Project 'src/core/tsconfig.json' is out of date because output 'src/core/tsconfig.tsbuildinfo' is older than input 'src/core/tsconfig.json' +[12:00:33 AM] Project 'core/tsconfig.json' is out of date because output 'core/tsconfig.tsbuildinfo' is older than input 'core/tsconfig.json' -[12:00:18 AM] Building project '/src/core/tsconfig.json'... +[12:00:34 AM] Building project '/user/username/projects/sample1/core/tsconfig.json'... exitCode:: ExitStatus.Success -//// [/src/core/anotherModule.js] +//// [/user/username/projects/sample1/core/anotherModule.js] define(["require", "exports"], function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); @@ -242,7 +228,7 @@ define(["require", "exports"], function (require, exports) { }); -//// [/src/core/index.js] +//// [/user/username/projects/sample1/core/index.js] define(["require", "exports"], function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); @@ -255,20 +241,20 @@ define(["require", "exports"], function (require, exports) { }); -//// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2676574883-export const World = \"hello\";\r\n","-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n",{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"root":[[2,4]],"options":{"module":2},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-3090574810-export const World = \"hello\";","-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n",{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"module":2},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} -//// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -278,20 +264,20 @@ define(["require", "exports"], function (require, exports) { "affectsGlobalScope": true }, "./anothermodule.ts": { - "version": "-2676574883-export const World = \"hello\";\r\n", - "signature": "-2676574883-export const World = \"hello\";\r\n" + "version": "-3090574810-export const World = \"hello\";", + "signature": "-3090574810-export const World = \"hello\";" }, "./index.ts": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", - "signature": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n" + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", + "signature": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n" }, "./some_decl.d.ts": { "original": { - "version": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", "affectsGlobalScope": true }, - "version": "-9253692965-declare const dts: any;\r\n", - "signature": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", "affectsGlobalScope": true } }, @@ -314,13 +300,13 @@ define(["require", "exports"], function (require, exports) { "referencedMap": {}, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" ] }, "version": "FakeTSVersion", - "size": 1075 + "size": 1072 } diff --git a/tests/baselines/reference/tsbuild/sample1/when-target-option-changes.js b/tests/baselines/reference/tsbuild/sample1/when-target-option-changes.js index 6c052d0c8d2d0..f29aca1dbe92d 100644 --- a/tests/baselines/reference/tsbuild/sample1/when-target-option-changes.js +++ b/tests/baselines/reference/tsbuild/sample1/when-target-option-changes.js @@ -1,10 +1,10 @@ -currentDirectory:: / useCaseSensitiveFileNames: false +currentDirectory:: /user/username/projects/sample1 useCaseSensitiveFileNames: false Input:: -//// [/lib/lib.d.ts] +//// [/a/lib/lib.d.ts] /// /// -//// [/lib/lib.esnext.d.ts] +//// [/a/lib/lib.esnext.d.ts] /// interface Boolean {} interface Function {} @@ -19,150 +19,136 @@ interface Array { length: number; [n: number]: T; } interface ReadonlyArray {} declare const console: { log(msg: any): void; }; -//// [/lib/lib.esnext.full.d.ts] +//// [/a/lib/lib.esnext.full.d.ts] /// /// -//// [/src/core/anotherModule.ts] +//// [/user/username/projects/sample1/core/anotherModule.ts] export const World = "hello"; +//// [/user/username/projects/sample1/core/index.ts] +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } -//// [/src/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } - -//// [/src/core/some_decl.d.ts] +//// [/user/username/projects/sample1/core/some_decl.d.ts] declare const dts: any; - -//// [/src/core/tsconfig.json] +//// [/user/username/projects/sample1/core/tsconfig.json] { - "compilerOptions": { - "incremental": true, -"listFiles": true, -"listEmittedFiles": true, - "target": "esnext", - } -} - -//// [/src/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; - - -//// [/src/logic/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../core" } - ] + "compilerOptions": { + "incremental": true, + "listFiles": true, + "listEmittedFiles": true, + "target": "esnext" + } } +//// [/user/username/projects/sample1/logic/index.ts] +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; -//// [/src/tests/index.ts] -import * as c from '../core/index'; -import * as logic from '../logic/index'; -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; - - -//// [/src/tests/tsconfig.json] -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" } - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - } +//// [/user/username/projects/sample1/logic/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + }, + "references": [ + { + "path": "../core" + } + ] } -//// [/src/ui/index.ts] -import * as logic from '../logic'; - -export function run() { - console.log(logic.getSecondsInDay()); -} +//// [/user/username/projects/sample1/tests/index.ts] +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; -//// [/src/ui/tsconfig.json] -{ - "compilerOptions": { - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../logic/index" } - ] +//// [/user/username/projects/sample1/tests/tsconfig.json] +{ + "references": [ + { + "path": "../core" + }, + { + "path": "../logic" + } + ], + "files": [ + "index.ts" + ], + "compilerOptions": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + } } - Output:: -/lib/tsc --b /src/core --verbose -[12:00:10 AM] Projects in this build: - * src/core/tsconfig.json - -[12:00:11 AM] Project 'src/core/tsconfig.json' is out of date because output file 'src/core/tsconfig.tsbuildinfo' does not exist - -[12:00:12 AM] Building project '/src/core/tsconfig.json'... - -TSFILE: /src/core/anotherModule.js -TSFILE: /src/core/index.js -TSFILE: /src/core/tsconfig.tsbuildinfo -/lib/lib.esnext.d.ts -/lib/lib.esnext.full.d.ts -/src/core/anotherModule.ts -/src/core/index.ts -/src/core/some_decl.d.ts +/a/lib/tsc --b core --verbose +[12:00:26 AM] Projects in this build: + * core/tsconfig.json + +[12:00:27 AM] Project 'core/tsconfig.json' is out of date because output file 'core/tsconfig.tsbuildinfo' does not exist + +[12:00:28 AM] Building project '/user/username/projects/sample1/core/tsconfig.json'... + +TSFILE: /user/username/projects/sample1/core/anotherModule.js +TSFILE: /user/username/projects/sample1/core/index.js +TSFILE: /user/username/projects/sample1/core/tsconfig.tsbuildinfo +/a/lib/lib.esnext.d.ts +/a/lib/lib.esnext.full.d.ts +/user/username/projects/sample1/core/anotherModule.ts +/user/username/projects/sample1/core/index.ts +/user/username/projects/sample1/core/some_decl.d.ts exitCode:: ExitStatus.Success -//// [/src/core/anotherModule.js] +//// [/user/username/projects/sample1/core/anotherModule.js] export const World = "hello"; -//// [/src/core/index.js] +//// [/user/username/projects/sample1/core/index.js] export const someString = "HELLO WORLD"; export function leftPad(s, n) { return s + n; } export function multiply(a, b) { return a * b; } -//// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.esnext.d.ts","../../lib/lib.esnext.full.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"8926001564-/// \n/// ","-2676574883-export const World = \"hello\";\r\n","-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n",{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"root":[[3,5]],"options":{"target":99},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4,5]},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.esnext.d.ts","../../../../../a/lib/lib.esnext.full.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"8926001564-/// \n/// ","-3090574810-export const World = \"hello\";","-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n",{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[3,5]],"options":{"target":99},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4,5]},"version":"FakeTSVersion"} -//// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.esnext.d.ts", - "../../lib/lib.esnext.full.d.ts", + "../../../../../a/lib/lib.esnext.d.ts", + "../../../../../a/lib/lib.esnext.full.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" ], "fileInfos": { - "../../lib/lib.esnext.d.ts": { + "../../../../../a/lib/lib.esnext.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -171,25 +157,25 @@ export function multiply(a, b) { return a * b; } "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true }, - "../../lib/lib.esnext.full.d.ts": { + "../../../../../a/lib/lib.esnext.full.d.ts": { "version": "8926001564-/// \n/// ", "signature": "8926001564-/// \n/// " }, "./anothermodule.ts": { - "version": "-2676574883-export const World = \"hello\";\r\n", - "signature": "-2676574883-export const World = \"hello\";\r\n" + "version": "-3090574810-export const World = \"hello\";", + "signature": "-3090574810-export const World = \"hello\";" }, "./index.ts": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", - "signature": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n" + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", + "signature": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n" }, "./some_decl.d.ts": { "original": { - "version": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", "affectsGlobalScope": true }, - "version": "-9253692965-declare const dts: any;\r\n", - "signature": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", "affectsGlobalScope": true } }, @@ -212,61 +198,61 @@ export function multiply(a, b) { return a * b; } "referencedMap": {}, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "../../lib/lib.esnext.d.ts", - "../../lib/lib.esnext.full.d.ts", + "../../../../../a/lib/lib.esnext.d.ts", + "../../../../../a/lib/lib.esnext.full.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" ] }, "version": "FakeTSVersion", - "size": 1206 + "size": 1214 } Change:: incremental-declaration-changes Input:: -//// [/src/core/tsconfig.json] +//// [/user/username/projects/sample1/core/tsconfig.json] { - "compilerOptions": { - "incremental": true, -"listFiles": true, -"listEmittedFiles": true, - "target": "es5", - } + "compilerOptions": { + "incremental": true, + "listFiles": true, + "listEmittedFiles": true, + "target": "es5" + } } Output:: -/lib/tsc --b /src/core --verbose -[12:00:19 AM] Projects in this build: - * src/core/tsconfig.json - -[12:00:20 AM] Project 'src/core/tsconfig.json' is out of date because output 'src/core/tsconfig.tsbuildinfo' is older than input 'src/core/tsconfig.json' - -[12:00:21 AM] Building project '/src/core/tsconfig.json'... - -TSFILE: /src/core/anotherModule.js -TSFILE: /src/core/index.js -TSFILE: /src/core/tsconfig.tsbuildinfo -/lib/lib.d.ts -/lib/lib.esnext.d.ts -/src/core/anotherModule.ts -/src/core/index.ts -/src/core/some_decl.d.ts +/a/lib/tsc --b core --verbose +[12:00:35 AM] Projects in this build: + * core/tsconfig.json + +[12:00:36 AM] Project 'core/tsconfig.json' is out of date because output 'core/tsconfig.tsbuildinfo' is older than input 'core/tsconfig.json' + +[12:00:37 AM] Building project '/user/username/projects/sample1/core/tsconfig.json'... + +TSFILE: /user/username/projects/sample1/core/anotherModule.js +TSFILE: /user/username/projects/sample1/core/index.js +TSFILE: /user/username/projects/sample1/core/tsconfig.tsbuildinfo +/a/lib/lib.d.ts +/a/lib/lib.esnext.d.ts +/user/username/projects/sample1/core/anotherModule.ts +/user/username/projects/sample1/core/index.ts +/user/username/projects/sample1/core/some_decl.d.ts exitCode:: ExitStatus.Success -//// [/src/core/anotherModule.js] +//// [/user/username/projects/sample1/core/anotherModule.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.World = void 0; exports.World = "hello"; -//// [/src/core/index.js] +//// [/user/username/projects/sample1/core/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.multiply = exports.leftPad = exports.someString = void 0; @@ -277,25 +263,25 @@ function multiply(a, b) { return a * b; } exports.multiply = multiply; -//// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../../lib/lib.esnext.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":["8926001564-/// \n/// ",{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2676574883-export const World = \"hello\";\r\n","-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n",{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"root":[[3,5]],"options":{"target":1},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4,5]},"version":"FakeTSVersion"} +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../../../../../a/lib/lib.esnext.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":["8926001564-/// \n/// ",{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-3090574810-export const World = \"hello\";","-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n",{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[3,5]],"options":{"target":1},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4,5]},"version":"FakeTSVersion"} -//// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", - "../../lib/lib.esnext.d.ts", + "../../../../../a/lib/lib.d.ts", + "../../../../../a/lib/lib.esnext.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "version": "8926001564-/// \n/// ", "signature": "8926001564-/// \n/// " }, - "../../lib/lib.esnext.d.ts": { + "../../../../../a/lib/lib.esnext.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -305,20 +291,20 @@ exports.multiply = multiply; "affectsGlobalScope": true }, "./anothermodule.ts": { - "version": "-2676574883-export const World = \"hello\";\r\n", - "signature": "-2676574883-export const World = \"hello\";\r\n" + "version": "-3090574810-export const World = \"hello\";", + "signature": "-3090574810-export const World = \"hello\";" }, "./index.ts": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", - "signature": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n" + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n", + "signature": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n" }, "./some_decl.d.ts": { "original": { - "version": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", "affectsGlobalScope": true }, - "version": "-9253692965-declare const dts: any;\r\n", - "signature": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", "affectsGlobalScope": true } }, @@ -341,14 +327,14 @@ exports.multiply = multiply; "referencedMap": {}, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", - "../../lib/lib.esnext.d.ts", + "../../../../../a/lib/lib.d.ts", + "../../../../../a/lib/lib.esnext.d.ts", "./anothermodule.ts", "./index.ts", "./some_decl.d.ts" ] }, "version": "FakeTSVersion", - "size": 1193 + "size": 1201 } diff --git a/tests/baselines/reference/tsbuild/transitiveReferences/builds-correctly-when-the-referenced-project-uses-different-module-resolution.js b/tests/baselines/reference/tsbuild/transitiveReferences/builds-correctly-when-the-referenced-project-uses-different-module-resolution.js index 2795012b376e4..7fd69a51adf55 100644 --- a/tests/baselines/reference/tsbuild/transitiveReferences/builds-correctly-when-the-referenced-project-uses-different-module-resolution.js +++ b/tests/baselines/reference/tsbuild/transitiveReferences/builds-correctly-when-the-referenced-project-uses-different-module-resolution.js @@ -1,6 +1,6 @@ -currentDirectory:: / useCaseSensitiveFileNames: false +currentDirectory:: /user/username/projects/transitiveReferences useCaseSensitiveFileNames: false Input:: -//// [/lib/lib.d.ts] +//// [/a/lib/lib.d.ts] /// interface Boolean {} interface Function {} @@ -15,68 +15,95 @@ interface Array { length: number; [n: number]: T; } interface ReadonlyArray {} declare const console: { log(msg: any): void; }; -//// [/src/a.ts] -export class A {} +//// [/user/username/projects/transitiveReferences/a.ts] +export class A {} -//// [/src/b.ts] +//// [/user/username/projects/transitiveReferences/b.ts] import {A} from 'a'; export const b = new A(); -//// [/src/c.ts] -import {b} from './b'; -import {X} from "@ref/a"; -b; -X; +//// [/user/username/projects/transitiveReferences/c.ts] +import {b} from './b'; +import {X} from "@ref/a"; +b; +X; -//// [/src/refs/a.d.ts] -export class X {} -export class A {} +//// [/user/username/projects/transitiveReferences/refs/a.d.ts] +export class X {} +export class A {} -//// [/src/tsconfig.a.json] -{"compilerOptions": {"composite": true}, "files": ["a.ts"]} +//// [/user/username/projects/transitiveReferences/tsconfig.a.json] +{ + "compilerOptions": { + "composite": true + }, + "files": [ + "a.ts" + ] +} -//// [/src/tsconfig.b.json] -{"compilerOptions":{"composite":true,"moduleResolution":"classic"},"files":["b.ts"],"references":[{"path":"tsconfig.a.json"}]} - -//// [/src/tsconfig.c.json] -{ - "files": [ "c.ts" ], - "compilerOptions": { - "baseUrl": "./", - "paths": { - "@ref/*": [ "./refs/*" ] - } - }, - "references": [ { "path": "tsconfig.b.json" } ] +//// [/user/username/projects/transitiveReferences/tsconfig.b.json] +{ + "compilerOptions": { + "composite": true, + "moduleResolution": "classic" + }, + "files": [ + "b.ts" + ], + "references": [ + { + "path": "tsconfig.a.json" + } + ] } +//// [/user/username/projects/transitiveReferences/tsconfig.c.json] +{ + "files": [ + "c.ts" + ], + "compilerOptions": { + "baseUrl": "./", + "paths": { + "@ref/*": [ + "./refs/*" + ] + } + }, + "references": [ + { + "path": "tsconfig.b.json" + } + ] +} Output:: -/lib/tsc --b /src/tsconfig.c.json --listFiles -/lib/lib.d.ts -/src/a.ts -/lib/lib.d.ts -/src/a.d.ts -/src/b.ts -/lib/lib.d.ts -/src/a.d.ts -/src/b.d.ts -/src/refs/a.d.ts -/src/c.ts +/a/lib/tsc --b tsconfig.c.json --listFiles +/a/lib/lib.d.ts +/user/username/projects/transitiveReferences/a.ts +/a/lib/lib.d.ts +/user/username/projects/transitiveReferences/a.d.ts +/user/username/projects/transitiveReferences/b.ts +/a/lib/lib.d.ts +/user/username/projects/transitiveReferences/a.d.ts +/user/username/projects/transitiveReferences/b.d.ts +/user/username/projects/transitiveReferences/refs/a.d.ts +/user/username/projects/transitiveReferences/c.ts exitCode:: ExitStatus.Success -//// [/src/a.d.ts] +//// [/user/username/projects/transitiveReferences/a.d.ts] export declare class A { } -//// [/src/a.js] +//// [/user/username/projects/transitiveReferences/a.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.A = void 0; @@ -88,12 +115,12 @@ var A = /** @class */ (function () { exports.A = A; -//// [/src/b.d.ts] +//// [/user/username/projects/transitiveReferences/b.d.ts] import { A } from 'a'; export declare const b: A; -//// [/src/b.js] +//// [/user/username/projects/transitiveReferences/b.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.b = void 0; @@ -101,7 +128,7 @@ var a_1 = require("a"); exports.b = new a_1.A(); -//// [/src/c.js] +//// [/user/username/projects/transitiveReferences/c.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var b_1 = require("./b"); @@ -110,18 +137,18 @@ b_1.b; a_1.X; -//// [/src/tsconfig.a.tsbuildinfo] -{"program":{"fileNames":["../lib/lib.d.ts","./a.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-8566332115-export class A {}\r\n","signature":"-8728835846-export declare class A {\n}\n"}],"root":[2],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./a.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/transitiveReferences/tsconfig.a.tsbuildinfo] +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-7808316224-export class A {}\n","signature":"-8728835846-export declare class A {\n}\n"}],"root":[2],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./a.d.ts"},"version":"FakeTSVersion"} -//// [/src/tsconfig.a.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/transitiveReferences/tsconfig.a.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../lib/lib.d.ts", + "../../../../a/lib/lib.d.ts", "./a.ts" ], "fileInfos": { - "../lib/lib.d.ts": { + "../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -132,10 +159,10 @@ a_1.X; }, "./a.ts": { "original": { - "version": "-8566332115-export class A {}\r\n", + "version": "-7808316224-export class A {}\n", "signature": "-8728835846-export declare class A {\n}\n" }, - "version": "-8566332115-export class A {}\r\n", + "version": "-7808316224-export class A {}\n", "signature": "-8728835846-export declare class A {\n}\n" } }, @@ -151,23 +178,23 @@ a_1.X; "referencedMap": {}, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "../lib/lib.d.ts", + "../../../../a/lib/lib.d.ts", "./a.ts" ], "latestChangedDtsFile": "./a.d.ts" }, "version": "FakeTSVersion", - "size": 829 + "size": 838 } -//// [/src/tsconfig.b.tsbuildinfo] -{"program":{"fileNames":["../lib/lib.d.ts","./a.d.ts","./b.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-8728835846-export declare class A {\n}\n",{"version":"-17186364832-import {A} from 'a';\nexport const b = new A();","signature":"6078874460-import { A } from 'a';\nexport declare const b: A;\n"}],"root":[3],"options":{"composite":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./b.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/transitiveReferences/tsconfig.b.tsbuildinfo] +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.d.ts","./b.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-8728835846-export declare class A {\n}\n",{"version":"-17186364832-import {A} from 'a';\nexport const b = new A();","signature":"6078874460-import { A } from 'a';\nexport declare const b: A;\n"}],"root":[3],"options":{"composite":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./b.d.ts"},"version":"FakeTSVersion"} -//// [/src/tsconfig.b.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/transitiveReferences/tsconfig.b.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../lib/lib.d.ts", + "../../../../a/lib/lib.d.ts", "./a.d.ts", "./b.ts" ], @@ -177,7 +204,7 @@ a_1.X; ] ], "fileInfos": { - "../lib/lib.d.ts": { + "../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -219,13 +246,13 @@ a_1.X; ] }, "semanticDiagnosticsPerFile": [ - "../lib/lib.d.ts", + "../../../../a/lib/lib.d.ts", "./a.d.ts", "./b.ts" ], "latestChangedDtsFile": "./b.d.ts" }, "version": "FakeTSVersion", - "size": 965 + "size": 976 } diff --git a/tests/baselines/reference/tsbuild/transitiveReferences/builds-correctly.js b/tests/baselines/reference/tsbuild/transitiveReferences/builds-correctly.js index eacfc1541799a..609b442af96d9 100644 --- a/tests/baselines/reference/tsbuild/transitiveReferences/builds-correctly.js +++ b/tests/baselines/reference/tsbuild/transitiveReferences/builds-correctly.js @@ -1,6 +1,6 @@ -currentDirectory:: / useCaseSensitiveFileNames: false +currentDirectory:: /user/username/projects/transitiveReferences useCaseSensitiveFileNames: false Input:: -//// [/lib/lib.d.ts] +//// [/a/lib/lib.d.ts] /// interface Boolean {} interface Function {} @@ -15,80 +15,101 @@ interface Array { length: number; [n: number]: T; } interface ReadonlyArray {} declare const console: { log(msg: any): void; }; -//// [/src/a.ts] -export class A {} +//// [/user/username/projects/transitiveReferences/a.ts] +export class A {} -//// [/src/b.ts] -import {A} from '@ref/a'; -export const b = new A(); +//// [/user/username/projects/transitiveReferences/b.ts] +import {A} from '@ref/a'; +export const b = new A(); -//// [/src/c.ts] -import {b} from './b'; -import {X} from "@ref/a"; -b; -X; +//// [/user/username/projects/transitiveReferences/c.ts] +import {b} from './b'; +import {X} from "@ref/a"; +b; +X; -//// [/src/refs/a.d.ts] -export class X {} -export class A {} +//// [/user/username/projects/transitiveReferences/refs/a.d.ts] +export class X {} +export class A {} -//// [/src/tsconfig.a.json] -{"compilerOptions": {"composite": true}, "files": ["a.ts"]} - -//// [/src/tsconfig.b.json] -{ - "compilerOptions": { - "composite": true, - "baseUrl": "./", - "paths": { - "@ref/*": [ "./*" ] - } - }, - "files": [ "b.ts" ], - "references": [ { "path": "tsconfig.a.json" } ] +//// [/user/username/projects/transitiveReferences/tsconfig.a.json] +{ + "compilerOptions": { + "composite": true + }, + "files": [ + "a.ts" + ] } - -//// [/src/tsconfig.c.json] -{ - "files": [ "c.ts" ], - "compilerOptions": { - "baseUrl": "./", - "paths": { - "@ref/*": [ "./refs/*" ] - } - }, - "references": [ { "path": "tsconfig.b.json" } ] +//// [/user/username/projects/transitiveReferences/tsconfig.b.json] +{ + "compilerOptions": { + "composite": true, + "baseUrl": "./", + "paths": { + "@ref/*": [ + "./*" + ] + } + }, + "files": [ + "b.ts" + ], + "references": [ + { + "path": "tsconfig.a.json" + } + ] } +//// [/user/username/projects/transitiveReferences/tsconfig.c.json] +{ + "files": [ + "c.ts" + ], + "compilerOptions": { + "baseUrl": "./", + "paths": { + "@ref/*": [ + "./refs/*" + ] + } + }, + "references": [ + { + "path": "tsconfig.b.json" + } + ] +} Output:: -/lib/tsc --b /src/tsconfig.c.json --listFiles -/lib/lib.d.ts -/src/a.ts -/lib/lib.d.ts -/src/a.d.ts -/src/b.ts -/lib/lib.d.ts -/src/a.d.ts -/src/b.d.ts -/src/refs/a.d.ts -/src/c.ts +/a/lib/tsc --b tsconfig.c.json --listFiles +/a/lib/lib.d.ts +/user/username/projects/transitiveReferences/a.ts +/a/lib/lib.d.ts +/user/username/projects/transitiveReferences/a.d.ts +/user/username/projects/transitiveReferences/b.ts +/a/lib/lib.d.ts +/user/username/projects/transitiveReferences/a.d.ts +/user/username/projects/transitiveReferences/b.d.ts +/user/username/projects/transitiveReferences/refs/a.d.ts +/user/username/projects/transitiveReferences/c.ts exitCode:: ExitStatus.Success -//// [/src/a.d.ts] +//// [/user/username/projects/transitiveReferences/a.d.ts] export declare class A { } -//// [/src/a.js] +//// [/user/username/projects/transitiveReferences/a.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.A = void 0; @@ -100,12 +121,12 @@ var A = /** @class */ (function () { exports.A = A; -//// [/src/b.d.ts] +//// [/user/username/projects/transitiveReferences/b.d.ts] import { A } from '@ref/a'; export declare const b: A; -//// [/src/b.js] +//// [/user/username/projects/transitiveReferences/b.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.b = void 0; @@ -113,7 +134,7 @@ var a_1 = require("@ref/a"); exports.b = new a_1.A(); -//// [/src/c.js] +//// [/user/username/projects/transitiveReferences/c.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var b_1 = require("./b"); @@ -122,18 +143,18 @@ b_1.b; a_1.X; -//// [/src/tsconfig.a.tsbuildinfo] -{"program":{"fileNames":["../lib/lib.d.ts","./a.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-8566332115-export class A {}\r\n","signature":"-8728835846-export declare class A {\n}\n"}],"root":[2],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./a.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/transitiveReferences/tsconfig.a.tsbuildinfo] +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-7808316224-export class A {}\n","signature":"-8728835846-export declare class A {\n}\n"}],"root":[2],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./a.d.ts"},"version":"FakeTSVersion"} -//// [/src/tsconfig.a.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/transitiveReferences/tsconfig.a.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../lib/lib.d.ts", + "../../../../a/lib/lib.d.ts", "./a.ts" ], "fileInfos": { - "../lib/lib.d.ts": { + "../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -144,10 +165,10 @@ a_1.X; }, "./a.ts": { "original": { - "version": "-8566332115-export class A {}\r\n", + "version": "-7808316224-export class A {}\n", "signature": "-8728835846-export declare class A {\n}\n" }, - "version": "-8566332115-export class A {}\r\n", + "version": "-7808316224-export class A {}\n", "signature": "-8728835846-export declare class A {\n}\n" } }, @@ -163,23 +184,23 @@ a_1.X; "referencedMap": {}, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "../lib/lib.d.ts", + "../../../../a/lib/lib.d.ts", "./a.ts" ], "latestChangedDtsFile": "./a.d.ts" }, "version": "FakeTSVersion", - "size": 829 + "size": 838 } -//// [/src/tsconfig.b.tsbuildinfo] -{"program":{"fileNames":["../lib/lib.d.ts","./a.d.ts","./b.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-8728835846-export declare class A {\n}\n",{"version":"-13104686224-import {A} from '@ref/a';\r\nexport const b = new A();\r\n","signature":"-9732944696-import { A } from '@ref/a';\nexport declare const b: A;\n"}],"root":[3],"options":{"composite":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./b.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/transitiveReferences/tsconfig.b.tsbuildinfo] +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.d.ts","./b.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-8728835846-export declare class A {\n}\n",{"version":"-3899816362-import {A} from '@ref/a';\nexport const b = new A();\n","signature":"-9732944696-import { A } from '@ref/a';\nexport declare const b: A;\n"}],"root":[3],"options":{"composite":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./b.d.ts"},"version":"FakeTSVersion"} -//// [/src/tsconfig.b.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/transitiveReferences/tsconfig.b.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../lib/lib.d.ts", + "../../../../a/lib/lib.d.ts", "./a.d.ts", "./b.ts" ], @@ -189,7 +210,7 @@ a_1.X; ] ], "fileInfos": { - "../lib/lib.d.ts": { + "../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -204,10 +225,10 @@ a_1.X; }, "./b.ts": { "original": { - "version": "-13104686224-import {A} from '@ref/a';\r\nexport const b = new A();\r\n", + "version": "-3899816362-import {A} from '@ref/a';\nexport const b = new A();\n", "signature": "-9732944696-import { A } from '@ref/a';\nexport declare const b: A;\n" }, - "version": "-13104686224-import {A} from '@ref/a';\r\nexport const b = new A();\r\n", + "version": "-3899816362-import {A} from '@ref/a';\nexport const b = new A();\n", "signature": "-9732944696-import { A } from '@ref/a';\nexport declare const b: A;\n" } }, @@ -231,13 +252,13 @@ a_1.X; ] }, "semanticDiagnosticsPerFile": [ - "../lib/lib.d.ts", + "../../../../a/lib/lib.d.ts", "./a.d.ts", "./b.ts" ], "latestChangedDtsFile": "./b.d.ts" }, "version": "FakeTSVersion", - "size": 982 + "size": 988 } diff --git a/tests/baselines/reference/tsbuild/transitiveReferences/reports-error-about-module-not-found-with-node-resolution-with-external-module-name.js b/tests/baselines/reference/tsbuild/transitiveReferences/reports-error-about-module-not-found-with-node-resolution-with-external-module-name.js index c5ed96229148c..a0d8ca0adf074 100644 --- a/tests/baselines/reference/tsbuild/transitiveReferences/reports-error-about-module-not-found-with-node-resolution-with-external-module-name.js +++ b/tests/baselines/reference/tsbuild/transitiveReferences/reports-error-about-module-not-found-with-node-resolution-with-external-module-name.js @@ -1,6 +1,6 @@ -currentDirectory:: / useCaseSensitiveFileNames: false +currentDirectory:: /user/username/projects/transitiveReferences useCaseSensitiveFileNames: false Input:: -//// [/lib/lib.d.ts] +//// [/a/lib/lib.d.ts] /// interface Boolean {} interface Function {} @@ -15,70 +15,97 @@ interface Array { length: number; [n: number]: T; } interface ReadonlyArray {} declare const console: { log(msg: any): void; }; -//// [/src/a.ts] -export class A {} +//// [/user/username/projects/transitiveReferences/a.ts] +export class A {} -//// [/src/b.ts] +//// [/user/username/projects/transitiveReferences/b.ts] import {A} from 'a'; export const b = new A(); -//// [/src/c.ts] -import {b} from './b'; -import {X} from "@ref/a"; -b; -X; +//// [/user/username/projects/transitiveReferences/c.ts] +import {b} from './b'; +import {X} from "@ref/a"; +b; +X; -//// [/src/refs/a.d.ts] -export class X {} -export class A {} +//// [/user/username/projects/transitiveReferences/refs/a.d.ts] +export class X {} +export class A {} -//// [/src/tsconfig.a.json] -{"compilerOptions": {"composite": true}, "files": ["a.ts"]} +//// [/user/username/projects/transitiveReferences/tsconfig.a.json] +{ + "compilerOptions": { + "composite": true + }, + "files": [ + "a.ts" + ] +} -//// [/src/tsconfig.b.json] -{"compilerOptions":{"composite":true,"moduleResolution":"node"},"files":["b.ts"],"references":[{"path":"tsconfig.a.json"}]} - -//// [/src/tsconfig.c.json] -{ - "files": [ "c.ts" ], - "compilerOptions": { - "baseUrl": "./", - "paths": { - "@ref/*": [ "./refs/*" ] - } - }, - "references": [ { "path": "tsconfig.b.json" } ] +//// [/user/username/projects/transitiveReferences/tsconfig.b.json] +{ + "compilerOptions": { + "composite": true, + "moduleResolution": "node" + }, + "files": [ + "b.ts" + ], + "references": [ + { + "path": "tsconfig.a.json" + } + ] } +//// [/user/username/projects/transitiveReferences/tsconfig.c.json] +{ + "files": [ + "c.ts" + ], + "compilerOptions": { + "baseUrl": "./", + "paths": { + "@ref/*": [ + "./refs/*" + ] + } + }, + "references": [ + { + "path": "tsconfig.b.json" + } + ] +} Output:: -/lib/tsc --b /src/tsconfig.c.json --listFiles -/lib/lib.d.ts -/src/a.ts -src/b.ts:1:17 - error TS2307: Cannot find module 'a' or its corresponding type declarations. +/a/lib/tsc --b tsconfig.c.json --listFiles +/a/lib/lib.d.ts +/user/username/projects/transitiveReferences/a.ts +b.ts:1:17 - error TS2307: Cannot find module 'a' or its corresponding type declarations. 1 import {A} from 'a';    ~~~ -/lib/lib.d.ts -/src/b.ts +/a/lib/lib.d.ts +/user/username/projects/transitiveReferences/b.ts Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -//// [/src/a.d.ts] +//// [/user/username/projects/transitiveReferences/a.d.ts] export declare class A { } -//// [/src/a.js] +//// [/user/username/projects/transitiveReferences/a.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.A = void 0; @@ -90,18 +117,18 @@ var A = /** @class */ (function () { exports.A = A; -//// [/src/tsconfig.a.tsbuildinfo] -{"program":{"fileNames":["../lib/lib.d.ts","./a.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-8566332115-export class A {}\r\n","signature":"-8728835846-export declare class A {\n}\n"}],"root":[2],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./a.d.ts"},"version":"FakeTSVersion"} +//// [/user/username/projects/transitiveReferences/tsconfig.a.tsbuildinfo] +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-7808316224-export class A {}\n","signature":"-8728835846-export declare class A {\n}\n"}],"root":[2],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./a.d.ts"},"version":"FakeTSVersion"} -//// [/src/tsconfig.a.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/transitiveReferences/tsconfig.a.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../lib/lib.d.ts", + "../../../../a/lib/lib.d.ts", "./a.ts" ], "fileInfos": { - "../lib/lib.d.ts": { + "../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -112,10 +139,10 @@ exports.A = A; }, "./a.ts": { "original": { - "version": "-8566332115-export class A {}\r\n", + "version": "-7808316224-export class A {}\n", "signature": "-8728835846-export declare class A {\n}\n" }, - "version": "-8566332115-export class A {}\r\n", + "version": "-7808316224-export class A {}\n", "signature": "-8728835846-export declare class A {\n}\n" } }, @@ -131,27 +158,27 @@ exports.A = A; "referencedMap": {}, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "../lib/lib.d.ts", + "../../../../a/lib/lib.d.ts", "./a.ts" ], "latestChangedDtsFile": "./a.d.ts" }, "version": "FakeTSVersion", - "size": 829 + "size": 838 } -//// [/src/tsconfig.b.tsbuildinfo] -{"program":{"fileNames":["../lib/lib.d.ts","./b.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-17186364832-import {A} from 'a';\nexport const b = new A();"],"root":[2],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[2,[{"file":"./b.ts","start":16,"length":3,"messageText":"Cannot find module 'a' or its corresponding type declarations.","category":1,"code":2307}]]],"affectedFilesPendingEmit":[2],"emitSignatures":[2]},"version":"FakeTSVersion"} +//// [/user/username/projects/transitiveReferences/tsconfig.b.tsbuildinfo] +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./b.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-17186364832-import {A} from 'a';\nexport const b = new A();"],"root":[2],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[2,[{"file":"./b.ts","start":16,"length":3,"messageText":"Cannot find module 'a' or its corresponding type declarations.","category":1,"code":2307}]]],"affectedFilesPendingEmit":[2],"emitSignatures":[2]},"version":"FakeTSVersion"} -//// [/src/tsconfig.b.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/transitiveReferences/tsconfig.b.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../lib/lib.d.ts", + "../../../../a/lib/lib.d.ts", "./b.ts" ], "fileInfos": { - "../lib/lib.d.ts": { + "../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -177,7 +204,7 @@ exports.A = A; "referencedMap": {}, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "../lib/lib.d.ts", + "../../../../a/lib/lib.d.ts", [ "./b.ts", [ @@ -203,6 +230,6 @@ exports.A = A; ] }, "version": "FakeTSVersion", - "size": 954 + "size": 965 } diff --git a/tests/baselines/reference/tsbuildWatch/configFileErrors/reports-syntax-errors-in-config-file.js b/tests/baselines/reference/tsbuildWatch/configFileErrors/reports-syntax-errors-in-config-file.js index 2033ad375a394..d63bc50c891fb 100644 --- a/tests/baselines/reference/tsbuildWatch/configFileErrors/reports-syntax-errors-in-config-file.js +++ b/tests/baselines/reference/tsbuildWatch/configFileErrors/reports-syntax-errors-in-config-file.js @@ -45,8 +45,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -161,8 +168,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts"] -Program options: {"composite":true,"declaration":true,"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts" +] +Program options: { + "composite": true, + "declaration": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -199,8 +214,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts"] -Program options: {"composite":true,"declaration":true,"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts" +] +Program options: { + "composite": true, + "declaration": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -297,8 +320,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts"] -Program options: {"composite":true,"declaration":true,"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts" +] +Program options: { + "composite": true, + "declaration": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -316,7 +347,16 @@ Change:: builds after fixing config file errors Input:: //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"composite":true,"declaration":true},"files":["a.ts","b.ts"]} +{ + "compilerOptions": { + "composite": true, + "declaration": true + }, + "files": [ + "a.ts", + "b.ts" + ] +} Before running Timeout callback:: count: 1 @@ -330,8 +370,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts"] -Program options: {"composite":true,"declaration":true,"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts" +] +Program options: { + "composite": true, + "declaration": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tsbuildWatch/demo/updates-with-bad-reference.js b/tests/baselines/reference/tsbuildWatch/demo/updates-with-bad-reference.js index cace102678161..6ddb4a7571038 100644 --- a/tests/baselines/reference/tsbuildWatch/demo/updates-with-bad-reference.js +++ b/tests/baselines/reference/tsbuildWatch/demo/updates-with-bad-reference.js @@ -1,131 +1,128 @@ currentDirectory:: /user/username/projects/demo useCaseSensitiveFileNames: false Input:: -//// [/user/username/projects/demo/core/tsconfig.json] -{ - "extends": "../tsconfig-base.json", - "compilerOptions": { - "outDir": "../lib/core", - "rootDir": "." - } -} +//// [/user/username/projects/demo/animals/animal.ts] +export type Size = "small" | "medium" | "large"; +export default interface Animal { + size: Size; +} -//// [/user/username/projects/demo/core/utilities.ts] -import * as A from '../animals'; -export function makeRandomName() { - return "Bob!?! "; -} +//// [/user/username/projects/demo/animals/dog.ts] +import Animal from '.'; +import { makeRandomName } from '../core/utilities'; + +export interface Dog extends Animal { + woof(): void; + name: string; +} + +export function createDog(): Dog { + return ({ + size: "medium", + woof: function(this: Dog) { + console.log(`${ this.name } says "Woof"!`); + }, + name: makeRandomName() + }); +} -export function lastElementOf(arr: T[]): T | undefined { - if (arr.length === 0) return undefined; - return arr[arr.length - 1]; -} +//// [/user/username/projects/demo/animals/index.ts] +import Animal from './animal'; + +export default Animal; +import { createDog, Dog } from './dog'; +export { createDog, Dog }; //// [/user/username/projects/demo/animals/tsconfig.json] -{ - "extends": "../tsconfig-base.json", - "compilerOptions": { - "outDir": "../lib/animals", - "rootDir": ".", - }, - "references": [ - { "path": "../core" } - ] -} - - -//// [/user/username/projects/demo/animals/animal.ts] -export type Size = "small" | "medium" | "large"; -export default interface Animal { - size: Size; +{ + "extends": "../tsconfig-base.json", + "compilerOptions": { + "outDir": "../lib/animals", + "rootDir": "." + }, + "references": [ + { + "path": "../core" + } + ] } +//// [/user/username/projects/demo/core/utilities.ts] +import * as A from '../animals'; +export function makeRandomName() { + return "Bob!?! "; +} + +export function lastElementOf(arr: T[]): T | undefined { + if (arr.length === 0) return undefined; + return arr[arr.length - 1]; +} -//// [/user/username/projects/demo/animals/dog.ts] -import Animal from '.'; -import { makeRandomName } from '../core/utilities'; - -export interface Dog extends Animal { - woof(): void; - name: string; -} -export function createDog(): Dog { - return ({ - size: "medium", - woof: function(this: Dog) { - console.log(`${this.name} says "Woof"!`); - }, - name: makeRandomName() - }); +//// [/user/username/projects/demo/core/tsconfig.json] +{ + "extends": "../tsconfig-base.json", + "compilerOptions": { + "outDir": "../lib/core", + "rootDir": "." + } } - - -//// [/user/username/projects/demo/animals/index.ts] -import Animal from './animal'; - -export default Animal; -import { createDog, Dog } from './dog'; -export { createDog, Dog }; +//// [/user/username/projects/demo/zoo/zoo.ts] +import { Dog, createDog } from '../animals/index'; + +export function createZoo(): Array { + return [ + createDog() + ]; +} //// [/user/username/projects/demo/zoo/tsconfig.json] -{ - "extends": "../tsconfig-base.json", - "compilerOptions": { - "outDir": "../lib/zoo", - "rootDir": "." - }, - "references": [ - { - "path": "../animals" - } - ] +{ + "extends": "../tsconfig-base.json", + "compilerOptions": { + "outDir": "../lib/zoo", + "rootDir": "." + }, + "references": [ + { + "path": "../animals" + } + ] } -//// [/user/username/projects/demo/zoo/zoo.ts] -import { Dog, createDog } from '../animals/index'; - -export function createZoo(): Array { - return [ - createDog() - ]; +//// [/user/username/projects/demo/tsconfig-base.json] +{ + "compilerOptions": { + "declaration": true, + "target": "es5", + "module": "commonjs", + "strict": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "noImplicitReturns": true, + "noFallthroughCasesInSwitch": true, + "composite": true + } } - - //// [/user/username/projects/demo/tsconfig.json] -{ - "files": [], - "references": [ - { - "path": "./core" - }, - { - "path": "./animals" - }, - { - "path": "./zoo" - } - ] -} - -//// [/user/username/projects/demo/tsconfig-base.json] -{ - "compilerOptions": { - "declaration": true, - "target": "es5", - "module": "commonjs", - "strict": true, - "noUnusedLocals": true, - "noUnusedParameters": true, - "noImplicitReturns": true, - "noFallthroughCasesInSwitch": true, - "composite": true - } +{ + "files": [], + "references": [ + { + "path": "./core" + }, + { + "path": "./animals" + }, + { + "path": "./zoo" + } + ] } //// [/a/lib/lib.d.ts] @@ -147,17 +144,17 @@ declare const console: { log(msg: any): void; }; /a/lib/tsc.js -b -w -verbose Output:: >> Screen clear -[12:00:46 AM] Starting compilation in watch mode... +[12:00:45 AM] Starting compilation in watch mode... -[12:00:47 AM] Projects in this build: +[12:00:46 AM] Projects in this build: * core/tsconfig.json * animals/tsconfig.json * zoo/tsconfig.json * tsconfig.json -[12:00:48 AM] Project 'core/tsconfig.json' is out of date because output file 'lib/core/tsconfig.tsbuildinfo' does not exist +[12:00:47 AM] Project 'core/tsconfig.json' is out of date because output file 'lib/core/tsconfig.tsbuildinfo' does not exist -[12:00:49 AM] Building project '/user/username/projects/demo/core/tsconfig.json'... +[12:00:48 AM] Building project '/user/username/projects/demo/core/tsconfig.json'... animals/index.ts:1:20 - error TS6059: File '/user/username/projects/demo/animals/animal.ts' is not under 'rootDir' '/user/username/projects/demo/core'. 'rootDir' is expected to contain all source files. @@ -210,20 +207,36 @@ Output::    ~~~ File is included via import here. -[12:01:00 AM] Project 'animals/tsconfig.json' can't be built because its dependency 'core' has errors +[12:00:59 AM] Project 'animals/tsconfig.json' can't be built because its dependency 'core' has errors -[12:01:01 AM] Skipping build of project '/user/username/projects/demo/animals/tsconfig.json' because its dependency '/user/username/projects/demo/core' has errors +[12:01:00 AM] Skipping build of project '/user/username/projects/demo/animals/tsconfig.json' because its dependency '/user/username/projects/demo/core' has errors -[12:01:02 AM] Project 'zoo/tsconfig.json' can't be built because its dependency 'animals' was not built +[12:01:01 AM] Project 'zoo/tsconfig.json' can't be built because its dependency 'animals' was not built -[12:01:03 AM] Skipping build of project '/user/username/projects/demo/zoo/tsconfig.json' because its dependency '/user/username/projects/demo/animals' was not built +[12:01:02 AM] Skipping build of project '/user/username/projects/demo/zoo/tsconfig.json' because its dependency '/user/username/projects/demo/animals' was not built -[12:01:04 AM] Found 7 errors. Watching for file changes. +[12:01:03 AM] Found 7 errors. Watching for file changes. -Program root files: ["/user/username/projects/demo/core/utilities.ts"] -Program options: {"declaration":true,"target":1,"module":1,"strict":true,"noUnusedLocals":true,"noUnusedParameters":true,"noImplicitReturns":true,"noFallthroughCasesInSwitch":true,"composite":true,"outDir":"/user/username/projects/demo/lib/core","rootDir":"/user/username/projects/demo/core","watch":true,"configFilePath":"/user/username/projects/demo/core/tsconfig.json"} +Program root files: [ + "/user/username/projects/demo/core/utilities.ts" +] +Program options: { + "declaration": true, + "target": 1, + "module": 1, + "strict": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "noImplicitReturns": true, + "noFallthroughCasesInSwitch": true, + "composite": true, + "outDir": "/user/username/projects/demo/lib/core", + "rootDir": "/user/username/projects/demo/core", + "watch": true, + "configFilePath": "/user/username/projects/demo/core/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -283,7 +296,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/demo/lib/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../animals/animal.ts","../../animals/dog.ts","../../animals/index.ts","../../core/utilities.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-14984181202-export type Size = \"small\" | \"medium\" | \"large\";\r\nexport default interface Animal {\r\n size: Size;\r\n}\r\n","-10991948013-import Animal from '.';\r\nimport { makeRandomName } from '../core/utilities';\r\n\r\nexport interface Dog extends Animal {\r\n woof(): void;\r\n name: string;\r\n}\r\n\r\nexport function createDog(): Dog {\r\n return ({\r\n size: \"medium\",\r\n woof: function(this: Dog) {\r\n console.log(`${this.name} says \"Woof\"!`);\r\n },\r\n name: makeRandomName()\r\n });\r\n}\r\n\r\n","-5382672599-import Animal from './animal';\r\n\r\nexport default Animal;\r\nimport { createDog, Dog } from './dog';\r\nexport { createDog, Dog };\r\n","-15713992787-import * as A from '../animals';\n\r\nexport function makeRandomName() {\r\n return \"Bob!?! \";\r\n}\r\n\r\nexport function lastElementOf(arr: T[]): T | undefined {\r\n if (arr.length === 0) return undefined;\r\n return arr[arr.length - 1];\r\n}\r\n\r\n"],"root":[5],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../core","strict":true,"target":1},"fileIdsList":[[4,5],[2,3],[4]],"referencedMap":[[3,1],[4,2],[5,3]],"exportedModulesMap":[[3,1],[4,2],[5,3]],"semanticDiagnosticsPerFile":[1,2,3,4,[5,[{"file":"../../core/utilities.ts","start":0,"length":32,"messageText":"'A' is declared but its value is never read.","category":1,"code":6133,"reportsUnnecessary":true}]]],"affectedFilesPendingEmit":[2,3,4,5],"emitSignatures":[2,3,4,5]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../animals/animal.ts","../../animals/dog.ts","../../animals/index.ts","../../core/utilities.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n","-18870194049-import Animal from '.';\nimport { makeRandomName } from '../core/utilities';\n\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\n\nexport function createDog(): Dog {\n return ({\n size: \"medium\",\n woof: function(this: Dog) {\n console.log(`${ this.name } says \"Woof\"!`);\n },\n name: makeRandomName()\n });\n}\n","-7220553464-import Animal from './animal';\n\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n","-22163106409-import * as A from '../animals';\nexport function makeRandomName() {\n return \"Bob!?! \";\n}\n\nexport function lastElementOf(arr: T[]): T | undefined {\n if (arr.length === 0) return undefined;\n return arr[arr.length - 1];\n}\n"],"root":[5],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../core","strict":true,"target":1},"fileIdsList":[[4,5],[2,3],[4]],"referencedMap":[[3,1],[4,2],[5,3]],"exportedModulesMap":[[3,1],[4,2],[5,3]],"semanticDiagnosticsPerFile":[1,2,3,4,[5,[{"file":"../../core/utilities.ts","start":0,"length":32,"messageText":"'A' is declared but its value is never read.","category":1,"code":6133,"reportsUnnecessary":true}]]],"affectedFilesPendingEmit":[2,3,4,5],"emitSignatures":[2,3,4,5]},"version":"FakeTSVersion"} //// [/user/username/projects/demo/lib/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -319,20 +332,20 @@ exitCode:: ExitStatus.undefined "affectsGlobalScope": true }, "../../animals/animal.ts": { - "version": "-14984181202-export type Size = \"small\" | \"medium\" | \"large\";\r\nexport default interface Animal {\r\n size: Size;\r\n}\r\n", - "signature": "-14984181202-export type Size = \"small\" | \"medium\" | \"large\";\r\nexport default interface Animal {\r\n size: Size;\r\n}\r\n" + "version": "-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n", + "signature": "-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n" }, "../../animals/dog.ts": { - "version": "-10991948013-import Animal from '.';\r\nimport { makeRandomName } from '../core/utilities';\r\n\r\nexport interface Dog extends Animal {\r\n woof(): void;\r\n name: string;\r\n}\r\n\r\nexport function createDog(): Dog {\r\n return ({\r\n size: \"medium\",\r\n woof: function(this: Dog) {\r\n console.log(`${this.name} says \"Woof\"!`);\r\n },\r\n name: makeRandomName()\r\n });\r\n}\r\n\r\n", - "signature": "-10991948013-import Animal from '.';\r\nimport { makeRandomName } from '../core/utilities';\r\n\r\nexport interface Dog extends Animal {\r\n woof(): void;\r\n name: string;\r\n}\r\n\r\nexport function createDog(): Dog {\r\n return ({\r\n size: \"medium\",\r\n woof: function(this: Dog) {\r\n console.log(`${this.name} says \"Woof\"!`);\r\n },\r\n name: makeRandomName()\r\n });\r\n}\r\n\r\n" + "version": "-18870194049-import Animal from '.';\nimport { makeRandomName } from '../core/utilities';\n\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\n\nexport function createDog(): Dog {\n return ({\n size: \"medium\",\n woof: function(this: Dog) {\n console.log(`${ this.name } says \"Woof\"!`);\n },\n name: makeRandomName()\n });\n}\n", + "signature": "-18870194049-import Animal from '.';\nimport { makeRandomName } from '../core/utilities';\n\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\n\nexport function createDog(): Dog {\n return ({\n size: \"medium\",\n woof: function(this: Dog) {\n console.log(`${ this.name } says \"Woof\"!`);\n },\n name: makeRandomName()\n });\n}\n" }, "../../animals/index.ts": { - "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": "-5382672599-import Animal from './animal';\r\n\r\nexport default Animal;\r\nimport { createDog, Dog } from './dog';\r\nexport { createDog, Dog };\r\n" + "version": "-7220553464-import Animal from './animal';\n\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n", + "signature": "-7220553464-import Animal from './animal';\n\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n" }, "../../core/utilities.ts": { - "version": "-15713992787-import * as A from '../animals';\n\r\nexport function makeRandomName() {\r\n return \"Bob!?! \";\r\n}\r\n\r\nexport function lastElementOf(arr: T[]): T | undefined {\r\n if (arr.length === 0) return undefined;\r\n return arr[arr.length - 1];\r\n}\r\n\r\n", - "signature": "-15713992787-import * as A from '../animals';\n\r\nexport function makeRandomName() {\r\n return \"Bob!?! \";\r\n}\r\n\r\nexport function lastElementOf(arr: T[]): T | undefined {\r\n if (arr.length === 0) return undefined;\r\n return arr[arr.length - 1];\r\n}\r\n\r\n" + "version": "-22163106409-import * as A from '../animals';\nexport function makeRandomName() {\n return \"Bob!?! \";\n}\n\nexport function lastElementOf(arr: T[]): T | undefined {\n if (arr.length === 0) return undefined;\n return arr[arr.length - 1];\n}\n", + "signature": "-22163106409-import * as A from '../animals';\nexport function makeRandomName() {\n return \"Bob!?! \";\n}\n\nexport function lastElementOf(arr: T[]): T | undefined {\n if (arr.length === 0) return undefined;\n return arr[arr.length - 1];\n}\n" } }, "root": [ @@ -426,7 +439,7 @@ exitCode:: ExitStatus.undefined ] }, "version": "FakeTSVersion", - "size": 2320 + "size": 2241 } @@ -436,16 +449,14 @@ Input:: //// [/user/username/projects/demo/core/utilities.ts] import * as A from '../animals'; - -export function makeRandomName() { - return "Bob!?! "; -} - -export function lastElementOf(arr: T[]): T | undefined { - if (arr.length === 0) return undefined; - return arr[arr.length - 1]; -} - +export function makeRandomName() { + return "Bob!?! "; +} + +export function lastElementOf(arr: T[]): T | undefined { + if (arr.length === 0) return undefined; + return arr[arr.length - 1]; +} @@ -454,11 +465,11 @@ Before running Timeout callback:: count: 1 After running Timeout callback:: count: 0 Output:: >> Screen clear -[12:01:08 AM] File change detected. Starting incremental compilation... +[12:01:06 AM] File change detected. Starting incremental compilation... -[12:01:09 AM] Project 'core/tsconfig.json' is out of date because buildinfo file 'lib/core/tsconfig.tsbuildinfo' indicates that some of the changes were not emitted +[12:01:07 AM] Project 'core/tsconfig.json' is out of date because buildinfo file 'lib/core/tsconfig.tsbuildinfo' indicates that some of the changes were not emitted -[12:01:10 AM] Building project '/user/username/projects/demo/core/tsconfig.json'... +[12:01:08 AM] Building project '/user/username/projects/demo/core/tsconfig.json'... animals/index.ts:1:20 - error TS6059: File '/user/username/projects/demo/animals/animal.ts' is not under 'rootDir' '/user/username/projects/demo/core'. 'rootDir' is expected to contain all source files. @@ -511,12 +522,28 @@ Output::    ~~~ File is included via import here. -[12:01:18 AM] Found 7 errors. Watching for file changes. - - - -Program root files: ["/user/username/projects/demo/core/utilities.ts"] -Program options: {"declaration":true,"target":1,"module":1,"strict":true,"noUnusedLocals":true,"noUnusedParameters":true,"noImplicitReturns":true,"noFallthroughCasesInSwitch":true,"composite":true,"outDir":"/user/username/projects/demo/lib/core","rootDir":"/user/username/projects/demo/core","watch":true,"configFilePath":"/user/username/projects/demo/core/tsconfig.json"} +[12:01:16 AM] Found 7 errors. Watching for file changes. + + + +Program root files: [ + "/user/username/projects/demo/core/utilities.ts" +] +Program options: { + "declaration": true, + "target": 1, + "module": 1, + "strict": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "noImplicitReturns": true, + "noFallthroughCasesInSwitch": true, + "composite": true, + "outDir": "/user/username/projects/demo/lib/core", + "rootDir": "/user/username/projects/demo/core", + "watch": true, + "configFilePath": "/user/username/projects/demo/core/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -538,7 +565,7 @@ Shape signatures in builder refreshed for:: exitCode:: ExitStatus.undefined //// [/user/username/projects/demo/lib/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../animals/animal.ts","../../animals/dog.ts","../../animals/index.ts","../../core/utilities.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-14984181202-export type Size = \"small\" | \"medium\" | \"large\";\r\nexport default interface Animal {\r\n size: Size;\r\n}\r\n",{"version":"-10991948013-import Animal from '.';\r\nimport { makeRandomName } from '../core/utilities';\r\n\r\nexport interface Dog extends Animal {\r\n woof(): void;\r\n name: string;\r\n}\r\n\r\nexport function createDog(): Dog {\r\n return ({\r\n size: \"medium\",\r\n woof: function(this: Dog) {\r\n console.log(`${this.name} says \"Woof\"!`);\r\n },\r\n name: makeRandomName()\r\n });\r\n}\r\n\r\n","signature":"6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n"},{"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"},{"version":"-10926881769-\nimport * as A from '../animals';\n\r\nexport function makeRandomName() {\r\n return \"Bob!?! \";\r\n}\r\n\r\nexport function lastElementOf(arr: T[]): T | undefined {\r\n if (arr.length === 0) return undefined;\r\n return arr[arr.length - 1];\r\n}\r\n\r\n","signature":"-11345568166-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../core","strict":true,"target":1},"fileIdsList":[[4,5],[2,3],[4]],"referencedMap":[[3,1],[4,2],[5,3]],"exportedModulesMap":[[3,3],[4,2]],"semanticDiagnosticsPerFile":[1,2,3,4,[5,[{"file":"../../core/utilities.ts","start":1,"length":32,"messageText":"'A' is declared but its value is never read.","category":1,"code":6133,"reportsUnnecessary":true}]]],"affectedFilesPendingEmit":[2,3,4,5],"emitSignatures":[2,3,4,5]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../animals/animal.ts","../../animals/dog.ts","../../animals/index.ts","../../core/utilities.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n",{"version":"-18870194049-import Animal from '.';\nimport { makeRandomName } from '../core/utilities';\n\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\n\nexport function createDog(): Dog {\n return ({\n size: \"medium\",\n woof: function(this: Dog) {\n console.log(`${ this.name } says \"Woof\"!`);\n },\n name: makeRandomName()\n });\n}\n","signature":"6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n"},{"version":"-7220553464-import Animal from './animal';\n\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"},{"version":"-11321611519-\nimport * as A from '../animals';\nexport function makeRandomName() {\n return \"Bob!?! \";\n}\n\nexport function lastElementOf(arr: T[]): T | undefined {\n if (arr.length === 0) return undefined;\n return arr[arr.length - 1];\n}\n","signature":"-11345568166-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../core","strict":true,"target":1},"fileIdsList":[[4,5],[2,3],[4]],"referencedMap":[[3,1],[4,2],[5,3]],"exportedModulesMap":[[3,3],[4,2]],"semanticDiagnosticsPerFile":[1,2,3,4,[5,[{"file":"../../core/utilities.ts","start":1,"length":32,"messageText":"'A' is declared but its value is never read.","category":1,"code":6133,"reportsUnnecessary":true}]]],"affectedFilesPendingEmit":[2,3,4,5],"emitSignatures":[2,3,4,5]},"version":"FakeTSVersion"} //// [/user/username/projects/demo/lib/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -574,31 +601,31 @@ exitCode:: ExitStatus.undefined "affectsGlobalScope": true }, "../../animals/animal.ts": { - "version": "-14984181202-export type Size = \"small\" | \"medium\" | \"large\";\r\nexport default interface Animal {\r\n size: Size;\r\n}\r\n", - "signature": "-14984181202-export type Size = \"small\" | \"medium\" | \"large\";\r\nexport default interface Animal {\r\n size: Size;\r\n}\r\n" + "version": "-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n", + "signature": "-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n" }, "../../animals/dog.ts": { "original": { - "version": "-10991948013-import Animal from '.';\r\nimport { makeRandomName } from '../core/utilities';\r\n\r\nexport interface Dog extends Animal {\r\n woof(): void;\r\n name: string;\r\n}\r\n\r\nexport function createDog(): Dog {\r\n return ({\r\n size: \"medium\",\r\n woof: function(this: Dog) {\r\n console.log(`${this.name} says \"Woof\"!`);\r\n },\r\n name: makeRandomName()\r\n });\r\n}\r\n\r\n", + "version": "-18870194049-import Animal from '.';\nimport { makeRandomName } from '../core/utilities';\n\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\n\nexport function createDog(): Dog {\n return ({\n size: \"medium\",\n woof: function(this: Dog) {\n console.log(`${ this.name } says \"Woof\"!`);\n },\n name: makeRandomName()\n });\n}\n", "signature": "6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n" }, - "version": "-10991948013-import Animal from '.';\r\nimport { makeRandomName } from '../core/utilities';\r\n\r\nexport interface Dog extends Animal {\r\n woof(): void;\r\n name: string;\r\n}\r\n\r\nexport function createDog(): Dog {\r\n return ({\r\n size: \"medium\",\r\n woof: function(this: Dog) {\r\n console.log(`${this.name} says \"Woof\"!`);\r\n },\r\n name: makeRandomName()\r\n });\r\n}\r\n\r\n", + "version": "-18870194049-import Animal from '.';\nimport { makeRandomName } from '../core/utilities';\n\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\n\nexport function createDog(): Dog {\n return ({\n size: \"medium\",\n woof: function(this: Dog) {\n console.log(`${ this.name } says \"Woof\"!`);\n },\n name: makeRandomName()\n });\n}\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": { "original": { - "version": "-5382672599-import Animal from './animal';\r\n\r\nexport default Animal;\r\nimport { createDog, Dog } from './dog';\r\nexport { createDog, Dog };\r\n", + "version": "-7220553464-import Animal from './animal';\n\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" }, - "version": "-5382672599-import Animal from './animal';\r\n\r\nexport default Animal;\r\nimport { createDog, Dog } from './dog';\r\nexport { createDog, Dog };\r\n", + "version": "-7220553464-import Animal from './animal';\n\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" }, "../../core/utilities.ts": { "original": { - "version": "-10926881769-\nimport * as A from '../animals';\n\r\nexport function makeRandomName() {\r\n return \"Bob!?! \";\r\n}\r\n\r\nexport function lastElementOf(arr: T[]): T | undefined {\r\n if (arr.length === 0) return undefined;\r\n return arr[arr.length - 1];\r\n}\r\n\r\n", + "version": "-11321611519-\nimport * as A from '../animals';\nexport function makeRandomName() {\n return \"Bob!?! \";\n}\n\nexport function lastElementOf(arr: T[]): T | undefined {\n if (arr.length === 0) return undefined;\n return arr[arr.length - 1];\n}\n", "signature": "-11345568166-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n" }, - "version": "-10926881769-\nimport * as A from '../animals';\n\r\nexport function makeRandomName() {\r\n return \"Bob!?! \";\r\n}\r\n\r\nexport function lastElementOf(arr: T[]): T | undefined {\r\n if (arr.length === 0) return undefined;\r\n return arr[arr.length - 1];\r\n}\r\n\r\n", + "version": "-11321611519-\nimport * as A from '../animals';\nexport function makeRandomName() {\n return \"Bob!?! \";\n}\n\nexport function lastElementOf(arr: T[]): T | undefined {\n if (arr.length === 0) return undefined;\n return arr[arr.length - 1];\n}\n", "signature": "-11345568166-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n" } }, @@ -689,6 +716,6 @@ exitCode:: ExitStatus.undefined ] }, "version": "FakeTSVersion", - "size": 2824 + "size": 2745 } diff --git a/tests/baselines/reference/tsbuildWatch/demo/updates-with-circular-reference.js b/tests/baselines/reference/tsbuildWatch/demo/updates-with-circular-reference.js index dd4811c434195..23b5373f534cf 100644 --- a/tests/baselines/reference/tsbuildWatch/demo/updates-with-circular-reference.js +++ b/tests/baselines/reference/tsbuildWatch/demo/updates-with-circular-reference.js @@ -1,135 +1,132 @@ currentDirectory:: /user/username/projects/demo useCaseSensitiveFileNames: false Input:: -//// [/user/username/projects/demo/core/tsconfig.json] -{ - "extends": "../tsconfig-base.json", - "compilerOptions": { - "outDir": "../lib/core", - "rootDir": "." - }, - "references": [ - { - "path": "../zoo" - } - ] -} +//// [/user/username/projects/demo/animals/animal.ts] +export type Size = "small" | "medium" | "large"; +export default interface Animal { + size: Size; +} -//// [/user/username/projects/demo/core/utilities.ts] -export function makeRandomName() { - return "Bob!?! "; -} +//// [/user/username/projects/demo/animals/dog.ts] +import Animal from '.'; +import { makeRandomName } from '../core/utilities'; + +export interface Dog extends Animal { + woof(): void; + name: string; +} + +export function createDog(): Dog { + return ({ + size: "medium", + woof: function(this: Dog) { + console.log(`${ this.name } says "Woof"!`); + }, + name: makeRandomName() + }); +} -export function lastElementOf(arr: T[]): T | undefined { - if (arr.length === 0) return undefined; - return arr[arr.length - 1]; -} +//// [/user/username/projects/demo/animals/index.ts] +import Animal from './animal'; + +export default Animal; +import { createDog, Dog } from './dog'; +export { createDog, Dog }; //// [/user/username/projects/demo/animals/tsconfig.json] -{ - "extends": "../tsconfig-base.json", - "compilerOptions": { - "outDir": "../lib/animals", - "rootDir": ".", - }, - "references": [ - { "path": "../core" } - ] -} - - -//// [/user/username/projects/demo/animals/animal.ts] -export type Size = "small" | "medium" | "large"; -export default interface Animal { - size: Size; +{ + "extends": "../tsconfig-base.json", + "compilerOptions": { + "outDir": "../lib/animals", + "rootDir": "." + }, + "references": [ + { + "path": "../core" + } + ] } +//// [/user/username/projects/demo/core/utilities.ts] +export function makeRandomName() { + return "Bob!?! "; +} + +export function lastElementOf(arr: T[]): T | undefined { + if (arr.length === 0) return undefined; + return arr[arr.length - 1]; +} -//// [/user/username/projects/demo/animals/dog.ts] -import Animal from '.'; -import { makeRandomName } from '../core/utilities'; - -export interface Dog extends Animal { - woof(): void; - name: string; -} -export function createDog(): Dog { - return ({ - size: "medium", - woof: function(this: Dog) { - console.log(`${this.name} says "Woof"!`); - }, - name: makeRandomName() - }); +//// [/user/username/projects/demo/core/tsconfig.json] +{ + "extends": "../tsconfig-base.json", + "compilerOptions": { + "outDir": "../lib/core", + "rootDir": "." + }, + "references": [ + { + "path": "../zoo" + } + ] } - - -//// [/user/username/projects/demo/animals/index.ts] -import Animal from './animal'; - -export default Animal; -import { createDog, Dog } from './dog'; -export { createDog, Dog }; +//// [/user/username/projects/demo/zoo/zoo.ts] +import { Dog, createDog } from '../animals/index'; + +export function createZoo(): Array { + return [ + createDog() + ]; +} //// [/user/username/projects/demo/zoo/tsconfig.json] -{ - "extends": "../tsconfig-base.json", - "compilerOptions": { - "outDir": "../lib/zoo", - "rootDir": "." - }, - "references": [ - { - "path": "../animals" - } - ] +{ + "extends": "../tsconfig-base.json", + "compilerOptions": { + "outDir": "../lib/zoo", + "rootDir": "." + }, + "references": [ + { + "path": "../animals" + } + ] } -//// [/user/username/projects/demo/zoo/zoo.ts] -import { Dog, createDog } from '../animals/index'; - -export function createZoo(): Array { - return [ - createDog() - ]; +//// [/user/username/projects/demo/tsconfig-base.json] +{ + "compilerOptions": { + "declaration": true, + "target": "es5", + "module": "commonjs", + "strict": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "noImplicitReturns": true, + "noFallthroughCasesInSwitch": true, + "composite": true + } } - - //// [/user/username/projects/demo/tsconfig.json] -{ - "files": [], - "references": [ - { - "path": "./core" - }, - { - "path": "./animals" - }, - { - "path": "./zoo" - } - ] -} - -//// [/user/username/projects/demo/tsconfig-base.json] -{ - "compilerOptions": { - "declaration": true, - "target": "es5", - "module": "commonjs", - "strict": true, - "noUnusedLocals": true, - "noUnusedParameters": true, - "noImplicitReturns": true, - "noFallthroughCasesInSwitch": true, - "composite": true - } +{ + "files": [], + "references": [ + { + "path": "./core" + }, + { + "path": "./animals" + }, + { + "path": "./zoo" + } + ] } //// [/a/lib/lib.d.ts] @@ -205,12 +202,12 @@ Change:: Fix error Input:: //// [/user/username/projects/demo/core/tsconfig.json] -{ - "extends": "../tsconfig-base.json", - "compilerOptions": { - "outDir": "../lib/core", - "rootDir": "." - } +{ + "extends": "../tsconfig-base.json", + "compilerOptions": { + "outDir": "../lib/core", + "rootDir": "." + } } @@ -241,8 +238,24 @@ Output:: -Program root files: ["/user/username/projects/demo/core/utilities.ts"] -Program options: {"declaration":true,"target":1,"module":1,"strict":true,"noUnusedLocals":true,"noUnusedParameters":true,"noImplicitReturns":true,"noFallthroughCasesInSwitch":true,"composite":true,"outDir":"/user/username/projects/demo/lib/core","rootDir":"/user/username/projects/demo/core","watch":true,"configFilePath":"/user/username/projects/demo/core/tsconfig.json"} +Program root files: [ + "/user/username/projects/demo/core/utilities.ts" +] +Program options: { + "declaration": true, + "target": 1, + "module": 1, + "strict": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "noImplicitReturns": true, + "noFallthroughCasesInSwitch": true, + "composite": true, + "outDir": "/user/username/projects/demo/lib/core", + "rootDir": "/user/username/projects/demo/core", + "watch": true, + "configFilePath": "/user/username/projects/demo/core/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -256,8 +269,26 @@ Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) /user/username/projects/demo/core/utilities.ts (computed .d.ts during emit) -Program root files: ["/user/username/projects/demo/animals/animal.ts","/user/username/projects/demo/animals/dog.ts","/user/username/projects/demo/animals/index.ts"] -Program options: {"declaration":true,"target":1,"module":1,"strict":true,"noUnusedLocals":true,"noUnusedParameters":true,"noImplicitReturns":true,"noFallthroughCasesInSwitch":true,"composite":true,"outDir":"/user/username/projects/demo/lib/animals","rootDir":"/user/username/projects/demo/animals","watch":true,"configFilePath":"/user/username/projects/demo/animals/tsconfig.json"} +Program root files: [ + "/user/username/projects/demo/animals/animal.ts", + "/user/username/projects/demo/animals/dog.ts", + "/user/username/projects/demo/animals/index.ts" +] +Program options: { + "declaration": true, + "target": 1, + "module": 1, + "strict": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "noImplicitReturns": true, + "noFallthroughCasesInSwitch": true, + "composite": true, + "outDir": "/user/username/projects/demo/lib/animals", + "rootDir": "/user/username/projects/demo/animals", + "watch": true, + "configFilePath": "/user/username/projects/demo/animals/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -275,13 +306,29 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) -/user/username/projects/demo/animals/animal.ts (computed .d.ts during emit) +/user/username/projects/demo/animals/animal.ts (used version) /user/username/projects/demo/animals/index.ts (computed .d.ts during emit) /user/username/projects/demo/lib/core/utilities.d.ts (used version) /user/username/projects/demo/animals/dog.ts (computed .d.ts during emit) -Program root files: ["/user/username/projects/demo/zoo/zoo.ts"] -Program options: {"declaration":true,"target":1,"module":1,"strict":true,"noUnusedLocals":true,"noUnusedParameters":true,"noImplicitReturns":true,"noFallthroughCasesInSwitch":true,"composite":true,"outDir":"/user/username/projects/demo/lib/zoo","rootDir":"/user/username/projects/demo/zoo","watch":true,"configFilePath":"/user/username/projects/demo/zoo/tsconfig.json"} +Program root files: [ + "/user/username/projects/demo/zoo/zoo.ts" +] +Program options: { + "declaration": true, + "target": 1, + "module": 1, + "strict": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "noImplicitReturns": true, + "noFallthroughCasesInSwitch": true, + "composite": true, + "outDir": "/user/username/projects/demo/lib/zoo", + "rootDir": "/user/username/projects/demo/zoo", + "watch": true, + "configFilePath": "/user/username/projects/demo/zoo/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -328,7 +375,7 @@ export declare function lastElementOf(arr: T[]): T | undefined; //// [/user/username/projects/demo/lib/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../core/utilities.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"25274411612-\r\nexport function makeRandomName() {\r\n return \"Bob!?! \";\r\n}\r\n\r\nexport function lastElementOf(arr: T[]): T | undefined {\r\n if (arr.length === 0) return undefined;\r\n return arr[arr.length - 1];\r\n}\r\n\r\n","signature":"-11345568166-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n"}],"root":[2],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../core","strict":true,"target":1},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./utilities.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../core/utilities.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-6723567162-export function makeRandomName() {\n return \"Bob!?! \";\n}\n\nexport function lastElementOf(arr: T[]): T | undefined {\n if (arr.length === 0) return undefined;\n return arr[arr.length - 1];\n}\n","signature":"-11345568166-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n"}],"root":[2],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../core","strict":true,"target":1},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./utilities.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/demo/lib/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -349,10 +396,10 @@ export declare function lastElementOf(arr: T[]): T | undefined; }, "../../core/utilities.ts": { "original": { - "version": "25274411612-\r\nexport function makeRandomName() {\r\n return \"Bob!?! \";\r\n}\r\n\r\nexport function lastElementOf(arr: T[]): T | undefined {\r\n if (arr.length === 0) return undefined;\r\n return arr[arr.length - 1];\r\n}\r\n\r\n", + "version": "-6723567162-export function makeRandomName() {\n return \"Bob!?! \";\n}\n\nexport function lastElementOf(arr: T[]): T | undefined {\n if (arr.length === 0) return undefined;\n return arr[arr.length - 1];\n}\n", "signature": "-11345568166-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n" }, - "version": "25274411612-\r\nexport function makeRandomName() {\r\n return \"Bob!?! \";\r\n}\r\n\r\nexport function lastElementOf(arr: T[]): T | undefined {\r\n if (arr.length === 0) return undefined;\r\n return arr[arr.length - 1];\r\n}\r\n\r\n", + "version": "-6723567162-export function makeRandomName() {\n return \"Bob!?! \";\n}\n\nexport function lastElementOf(arr: T[]): T | undefined {\n if (arr.length === 0) return undefined;\n return arr[arr.length - 1];\n}\n", "signature": "-11345568166-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n" } }, @@ -384,7 +431,7 @@ export declare function lastElementOf(arr: T[]): T | undefined; "latestChangedDtsFile": "./utilities.d.ts" }, "version": "FakeTSVersion", - "size": 1372 + "size": 1348 } //// [/user/username/projects/demo/lib/animals/animal.js] @@ -441,7 +488,7 @@ export declare function createDog(): Dog; //// [/user/username/projects/demo/lib/animals/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../animals/animal.ts","../../animals/index.ts","../core/utilities.d.ts","../../animals/dog.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-14984181202-export type Size = \"small\" | \"medium\" | \"large\";\r\nexport default interface Animal {\r\n size: Size;\r\n}\r\n","signature":"-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n"},{"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"},"-11345568166-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n",{"version":"-10991948013-import Animal from '.';\r\nimport { makeRandomName } from '../core/utilities';\r\n\r\nexport interface Dog extends Animal {\r\n woof(): void;\r\n name: string;\r\n}\r\n\r\nexport function createDog(): Dog {\r\n return ({\r\n size: \"medium\",\r\n woof: function(this: Dog) {\r\n console.log(`${this.name} says \"Woof\"!`);\r\n },\r\n name: makeRandomName()\r\n });\r\n}\r\n\r\n","signature":"6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n"}],"root":[2,3,5],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../animals","strict":true,"target":1},"fileIdsList":[[3,4],[2,5],[3]],"referencedMap":[[5,1],[3,2]],"exportedModulesMap":[[5,3],[3,2]],"semanticDiagnosticsPerFile":[1,2,5,3,4],"latestChangedDtsFile":"./dog.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../animals/animal.ts","../../animals/index.ts","../core/utilities.d.ts","../../animals/dog.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n",{"version":"-7220553464-import Animal from './animal';\n\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"},"-11345568166-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n",{"version":"-18870194049-import Animal from '.';\nimport { makeRandomName } from '../core/utilities';\n\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\n\nexport function createDog(): Dog {\n return ({\n size: \"medium\",\n woof: function(this: Dog) {\n console.log(`${ this.name } says \"Woof\"!`);\n },\n name: makeRandomName()\n });\n}\n","signature":"6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n"}],"root":[2,3,5],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../animals","strict":true,"target":1},"fileIdsList":[[3,4],[2,5],[3]],"referencedMap":[[5,1],[3,2]],"exportedModulesMap":[[5,3],[3,2]],"semanticDiagnosticsPerFile":[1,2,5,3,4],"latestChangedDtsFile":"./dog.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/demo/lib/animals/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -477,19 +524,15 @@ export declare function createDog(): Dog; "affectsGlobalScope": true }, "../../animals/animal.ts": { - "original": { - "version": "-14984181202-export type Size = \"small\" | \"medium\" | \"large\";\r\nexport default interface Animal {\r\n size: Size;\r\n}\r\n", - "signature": "-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n" - }, - "version": "-14984181202-export type Size = \"small\" | \"medium\" | \"large\";\r\nexport default interface Animal {\r\n size: Size;\r\n}\r\n", + "version": "-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n", "signature": "-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n" }, "../../animals/index.ts": { "original": { - "version": "-5382672599-import Animal from './animal';\r\n\r\nexport default Animal;\r\nimport { createDog, Dog } from './dog';\r\nexport { createDog, Dog };\r\n", + "version": "-7220553464-import Animal from './animal';\n\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" }, - "version": "-5382672599-import Animal from './animal';\r\n\r\nexport default Animal;\r\nimport { createDog, Dog } from './dog';\r\nexport { createDog, Dog };\r\n", + "version": "-7220553464-import Animal from './animal';\n\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" }, "../core/utilities.d.ts": { @@ -498,10 +541,10 @@ export declare function createDog(): Dog; }, "../../animals/dog.ts": { "original": { - "version": "-10991948013-import Animal from '.';\r\nimport { makeRandomName } from '../core/utilities';\r\n\r\nexport interface Dog extends Animal {\r\n woof(): void;\r\n name: string;\r\n}\r\n\r\nexport function createDog(): Dog {\r\n return ({\r\n size: \"medium\",\r\n woof: function(this: Dog) {\r\n console.log(`${this.name} says \"Woof\"!`);\r\n },\r\n name: makeRandomName()\r\n });\r\n}\r\n\r\n", + "version": "-18870194049-import Animal from '.';\nimport { makeRandomName } from '../core/utilities';\n\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\n\nexport function createDog(): Dog {\n return ({\n size: \"medium\",\n woof: function(this: Dog) {\n console.log(`${ this.name } says \"Woof\"!`);\n },\n name: makeRandomName()\n });\n}\n", "signature": "6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n" }, - "version": "-10991948013-import Animal from '.';\r\nimport { makeRandomName } from '../core/utilities';\r\n\r\nexport interface Dog extends Animal {\r\n woof(): void;\r\n name: string;\r\n}\r\n\r\nexport function createDog(): Dog {\r\n return ({\r\n size: \"medium\",\r\n woof: function(this: Dog) {\r\n console.log(`${this.name} says \"Woof\"!`);\r\n },\r\n name: makeRandomName()\r\n });\r\n}\r\n\r\n", + "version": "-18870194049-import Animal from '.';\nimport { makeRandomName } from '../core/utilities';\n\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\n\nexport function createDog(): Dog {\n return ({\n size: \"medium\",\n woof: function(this: Dog) {\n console.log(`${ this.name } says \"Woof\"!`);\n },\n name: makeRandomName()\n });\n}\n", "signature": "6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n" } }, @@ -561,7 +604,7 @@ export declare function createDog(): Dog; "latestChangedDtsFile": "./dog.d.ts" }, "version": "FakeTSVersion", - "size": 2465 + "size": 2260 } //// [/user/username/projects/demo/lib/zoo/zoo.js] @@ -583,7 +626,7 @@ export declare function createZoo(): Array; //// [/user/username/projects/demo/lib/zoo/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../animals/animal.d.ts","../animals/dog.d.ts","../animals/index.d.ts","../../zoo/zoo.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n","6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n","1096904574-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n",{"version":"8797123924-import { Dog, createDog } from '../animals/index';\r\n\r\nexport function createZoo(): Array {\r\n return [\r\n createDog()\r\n ];\r\n}\r\n\r\n","signature":"10305066551-import { Dog } from '../animals/index';\nexport declare function createZoo(): Array;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../zoo","strict":true,"target":1},"fileIdsList":[[4],[2,3]],"referencedMap":[[3,1],[4,2],[5,1]],"exportedModulesMap":[[3,1],[4,2],[5,1]],"semanticDiagnosticsPerFile":[1,2,3,4,5],"latestChangedDtsFile":"./zoo.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../animals/animal.d.ts","../animals/dog.d.ts","../animals/index.d.ts","../../zoo/zoo.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n","6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n","1096904574-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n",{"version":"13034796418-import { Dog, createDog } from '../animals/index';\n\nexport function createZoo(): Array {\n return [\n createDog()\n ];\n}\n","signature":"10305066551-import { Dog } from '../animals/index';\nexport declare function createZoo(): Array;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../zoo","strict":true,"target":1},"fileIdsList":[[4],[2,3]],"referencedMap":[[3,1],[4,2],[5,1]],"exportedModulesMap":[[3,1],[4,2],[5,1]],"semanticDiagnosticsPerFile":[1,2,3,4,5],"latestChangedDtsFile":"./zoo.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/demo/lib/zoo/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -628,10 +671,10 @@ export declare function createZoo(): Array; }, "../../zoo/zoo.ts": { "original": { - "version": "8797123924-import { Dog, createDog } from '../animals/index';\r\n\r\nexport function createZoo(): Array {\r\n return [\r\n createDog()\r\n ];\r\n}\r\n\r\n", + "version": "13034796418-import { Dog, createDog } from '../animals/index';\n\nexport function createZoo(): Array {\n return [\n createDog()\n ];\n}\n", "signature": "10305066551-import { Dog } from '../animals/index';\nexport declare function createZoo(): Array;\n" }, - "version": "8797123924-import { Dog, createDog } from '../animals/index';\r\n\r\nexport function createZoo(): Array {\r\n return [\r\n createDog()\r\n ];\r\n}\r\n\r\n", + "version": "13034796418-import { Dog, createDog } from '../animals/index';\n\nexport function createZoo(): Array {\n return [\n createDog()\n ];\n}\n", "signature": "10305066551-import { Dog } from '../animals/index';\nexport declare function createZoo(): Array;\n" } }, @@ -688,6 +731,6 @@ export declare function createZoo(): Array; "latestChangedDtsFile": "./zoo.d.ts" }, "version": "FakeTSVersion", - "size": 1821 + "size": 1804 } diff --git a/tests/baselines/reference/tsbuildWatch/libraryResolution/with-config-with-redirection.js b/tests/baselines/reference/tsbuildWatch/libraryResolution/with-config-with-redirection.js index 39e31209e3806..0f7a477ef766a 100644 --- a/tests/baselines/reference/tsbuildWatch/libraryResolution/with-config-with-redirection.js +++ b/tests/baselines/reference/tsbuildWatch/libraryResolution/with-config-with-redirection.js @@ -19,7 +19,19 @@ export const x = "type1"; //// [/home/src/projects/project1/tsconfig.json] -{"compilerOptions":{"composite":true,"typeRoots":["./typeroot1"],"lib":["es5","dom"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "typeRoots": [ + "./typeroot1" + ], + "lib": [ + "es5", + "dom" + ], + "traceResolution": true + } +} //// [/home/src/projects/project1/typeroot1/sometype/index.d.ts] export type TheNum = "type1"; @@ -31,7 +43,16 @@ export const y = 10; export const y = 10 //// [/home/src/projects/project2/tsconfig.json] -{"compilerOptions":{"composite":true,"lib":["es5","dom"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "lib": [ + "es5", + "dom" + ], + "traceResolution": true + } +} //// [/home/src/projects/project3/utils.d.ts] export const y = 10; @@ -40,7 +61,16 @@ export const y = 10; export const z = 10 //// [/home/src/projects/project3/tsconfig.json] -{"compilerOptions":{"composite":true,"lib":["es5","dom"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "lib": [ + "es5", + "dom" + ], + "traceResolution": true + } +} //// [/home/src/projects/project4/utils.d.ts] export const y = 10; @@ -49,7 +79,17 @@ export const y = 10; export const z = 10 //// [/home/src/projects/project4/tsconfig.json] -{"compilerOptions":{"composite":true,"lib":["esnext","dom","webworker"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "lib": [ + "esnext", + "dom", + "webworker" + ], + "traceResolution": true + } +} //// [/home/src/lib/lib.es5.d.ts] /// @@ -371,8 +411,29 @@ FileWatcher:: Added:: WatchInfo: /home/src/projects/project4/utils.d.ts 250 unde FileWatcher:: Added:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-esnext/package.json 2000 undefined package.json file /home/src/projects/project4/tsconfig.json -Program root files: ["/home/src/projects/project1/core.d.ts","/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] -Program options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +Program root files: [ + "/home/src/projects/project1/core.d.ts", + "/home/src/projects/project1/file.ts", + "/home/src/projects/project1/file2.ts", + "/home/src/projects/project1/index.ts", + "/home/src/projects/project1/utils.d.ts", + "/home/src/projects/project1/typeroot1/sometype/index.d.ts" +] +Program options: { + "composite": true, + "typeRoots": [ + "/home/src/projects/project1/typeroot1" + ], + "lib": [ + "lib.es5.d.ts", + "lib.dom.d.ts" + ], + "traceResolution": true, + "watch": true, + "explainFiles": true, + "extendedDiagnostics": true, + "configFilePath": "/home/src/projects/project1/tsconfig.json" +} Program structureReused: Not Program files:: /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts @@ -410,8 +471,22 @@ Shape signatures in builder refreshed for:: /home/src/projects/project1/typeroot1/sometype/index.d.ts (used version) /home/src/projects/node_modules/@typescript/lib-es5/index.d.ts (used version) -Program root files: ["/home/src/projects/project2/index.ts","/home/src/projects/project2/utils.d.ts"] -Program options: {"composite":true,"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project2/tsconfig.json"} +Program root files: [ + "/home/src/projects/project2/index.ts", + "/home/src/projects/project2/utils.d.ts" +] +Program options: { + "composite": true, + "lib": [ + "lib.es5.d.ts", + "lib.dom.d.ts" + ], + "traceResolution": true, + "watch": true, + "explainFiles": true, + "extendedDiagnostics": true, + "configFilePath": "/home/src/projects/project2/tsconfig.json" +} Program structureReused: Not Program files:: /home/src/projects/node_modules/@typescript/lib-es5/index.d.ts @@ -431,8 +506,22 @@ Shape signatures in builder refreshed for:: /home/src/projects/project2/index.ts (computed .d.ts during emit) /home/src/projects/project2/utils.d.ts (used version) -Program root files: ["/home/src/projects/project3/index.ts","/home/src/projects/project3/utils.d.ts"] -Program options: {"composite":true,"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project3/tsconfig.json"} +Program root files: [ + "/home/src/projects/project3/index.ts", + "/home/src/projects/project3/utils.d.ts" +] +Program options: { + "composite": true, + "lib": [ + "lib.es5.d.ts", + "lib.dom.d.ts" + ], + "traceResolution": true, + "watch": true, + "explainFiles": true, + "extendedDiagnostics": true, + "configFilePath": "/home/src/projects/project3/tsconfig.json" +} Program structureReused: Not Program files:: /home/src/projects/node_modules/@typescript/lib-es5/index.d.ts @@ -452,8 +541,23 @@ Shape signatures in builder refreshed for:: /home/src/projects/project3/index.ts (computed .d.ts during emit) /home/src/projects/project3/utils.d.ts (used version) -Program root files: ["/home/src/projects/project4/index.ts","/home/src/projects/project4/utils.d.ts"] -Program options: {"composite":true,"lib":["lib.esnext.d.ts","lib.dom.d.ts","lib.webworker.d.ts"],"traceResolution":true,"watch":true,"explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project4/tsconfig.json"} +Program root files: [ + "/home/src/projects/project4/index.ts", + "/home/src/projects/project4/utils.d.ts" +] +Program options: { + "composite": true, + "lib": [ + "lib.esnext.d.ts", + "lib.dom.d.ts", + "lib.webworker.d.ts" + ], + "traceResolution": true, + "watch": true, + "explainFiles": true, + "extendedDiagnostics": true, + "configFilePath": "/home/src/projects/project4/tsconfig.json" +} Program structureReused: Not Program files:: /home/src/projects/node_modules/@typescript/lib-esnext/index.d.ts diff --git a/tests/baselines/reference/tsbuildWatch/libraryResolution/with-config.js b/tests/baselines/reference/tsbuildWatch/libraryResolution/with-config.js index 32e7b7a889262..d019fc54c4d32 100644 --- a/tests/baselines/reference/tsbuildWatch/libraryResolution/with-config.js +++ b/tests/baselines/reference/tsbuildWatch/libraryResolution/with-config.js @@ -19,7 +19,19 @@ export const x = "type1"; //// [/home/src/projects/project1/tsconfig.json] -{"compilerOptions":{"composite":true,"typeRoots":["./typeroot1"],"lib":["es5","dom"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "typeRoots": [ + "./typeroot1" + ], + "lib": [ + "es5", + "dom" + ], + "traceResolution": true + } +} //// [/home/src/projects/project1/typeroot1/sometype/index.d.ts] export type TheNum = "type1"; @@ -31,7 +43,16 @@ export const y = 10; export const y = 10 //// [/home/src/projects/project2/tsconfig.json] -{"compilerOptions":{"composite":true,"lib":["es5","dom"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "lib": [ + "es5", + "dom" + ], + "traceResolution": true + } +} //// [/home/src/projects/project3/utils.d.ts] export const y = 10; @@ -40,7 +61,16 @@ export const y = 10; export const z = 10 //// [/home/src/projects/project3/tsconfig.json] -{"compilerOptions":{"composite":true,"lib":["es5","dom"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "lib": [ + "es5", + "dom" + ], + "traceResolution": true + } +} //// [/home/src/projects/project4/utils.d.ts] export const y = 10; @@ -49,7 +79,17 @@ export const y = 10; export const z = 10 //// [/home/src/projects/project4/tsconfig.json] -{"compilerOptions":{"composite":true,"lib":["esnext","dom","webworker"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "lib": [ + "esnext", + "dom", + "webworker" + ], + "traceResolution": true + } +} //// [/home/src/lib/lib.es5.d.ts] /// @@ -387,8 +427,29 @@ FileWatcher:: Added:: WatchInfo: /home/src/projects/project4/utils.d.ts 250 unde FileWatcher:: Added:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-esnext/package.json 2000 undefined package.json file /home/src/projects/project4/tsconfig.json -Program root files: ["/home/src/projects/project1/core.d.ts","/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] -Program options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +Program root files: [ + "/home/src/projects/project1/core.d.ts", + "/home/src/projects/project1/file.ts", + "/home/src/projects/project1/file2.ts", + "/home/src/projects/project1/index.ts", + "/home/src/projects/project1/utils.d.ts", + "/home/src/projects/project1/typeroot1/sometype/index.d.ts" +] +Program options: { + "composite": true, + "typeRoots": [ + "/home/src/projects/project1/typeroot1" + ], + "lib": [ + "lib.es5.d.ts", + "lib.dom.d.ts" + ], + "traceResolution": true, + "watch": true, + "explainFiles": true, + "extendedDiagnostics": true, + "configFilePath": "/home/src/projects/project1/tsconfig.json" +} Program structureReused: Not Program files:: /home/src/lib/lib.es5.d.ts @@ -426,8 +487,22 @@ Shape signatures in builder refreshed for:: /home/src/projects/project1/utils.d.ts (used version) /home/src/projects/project1/typeroot1/sometype/index.d.ts (used version) -Program root files: ["/home/src/projects/project2/index.ts","/home/src/projects/project2/utils.d.ts"] -Program options: {"composite":true,"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project2/tsconfig.json"} +Program root files: [ + "/home/src/projects/project2/index.ts", + "/home/src/projects/project2/utils.d.ts" +] +Program options: { + "composite": true, + "lib": [ + "lib.es5.d.ts", + "lib.dom.d.ts" + ], + "traceResolution": true, + "watch": true, + "explainFiles": true, + "extendedDiagnostics": true, + "configFilePath": "/home/src/projects/project2/tsconfig.json" +} Program structureReused: Not Program files:: /home/src/lib/lib.es5.d.ts @@ -447,8 +522,22 @@ Shape signatures in builder refreshed for:: /home/src/projects/project2/index.ts (computed .d.ts during emit) /home/src/projects/project2/utils.d.ts (used version) -Program root files: ["/home/src/projects/project3/index.ts","/home/src/projects/project3/utils.d.ts"] -Program options: {"composite":true,"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project3/tsconfig.json"} +Program root files: [ + "/home/src/projects/project3/index.ts", + "/home/src/projects/project3/utils.d.ts" +] +Program options: { + "composite": true, + "lib": [ + "lib.es5.d.ts", + "lib.dom.d.ts" + ], + "traceResolution": true, + "watch": true, + "explainFiles": true, + "extendedDiagnostics": true, + "configFilePath": "/home/src/projects/project3/tsconfig.json" +} Program structureReused: Not Program files:: /home/src/lib/lib.es5.d.ts @@ -468,8 +557,23 @@ Shape signatures in builder refreshed for:: /home/src/projects/project3/index.ts (computed .d.ts during emit) /home/src/projects/project3/utils.d.ts (used version) -Program root files: ["/home/src/projects/project4/index.ts","/home/src/projects/project4/utils.d.ts"] -Program options: {"composite":true,"lib":["lib.esnext.d.ts","lib.dom.d.ts","lib.webworker.d.ts"],"traceResolution":true,"watch":true,"explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project4/tsconfig.json"} +Program root files: [ + "/home/src/projects/project4/index.ts", + "/home/src/projects/project4/utils.d.ts" +] +Program options: { + "composite": true, + "lib": [ + "lib.esnext.d.ts", + "lib.dom.d.ts", + "lib.webworker.d.ts" + ], + "traceResolution": true, + "watch": true, + "explainFiles": true, + "extendedDiagnostics": true, + "configFilePath": "/home/src/projects/project4/tsconfig.json" +} Program structureReused: Not Program files:: /home/src/lib/lib.esnext.d.ts diff --git a/tests/baselines/reference/tsbuildWatch/moduleResolution/build-mode-watches-for-changes-to-package-json-main-fields.js b/tests/baselines/reference/tsbuildWatch/moduleResolution/build-mode-watches-for-changes-to-package-json-main-fields.js index 5ca6208d83673..e510b2fa185e8 100644 --- a/tests/baselines/reference/tsbuildWatch/moduleResolution/build-mode-watches-for-changes-to-package-json-main-fields.js +++ b/tests/baselines/reference/tsbuildWatch/moduleResolution/build-mode-watches-for-changes-to-package-json-main-fields.js @@ -1,17 +1,36 @@ currentDirectory:: /user/username/projects/myproject useCaseSensitiveFileNames: false Input:: //// [/user/username/projects/myproject/packages/pkg1/package.json] -{"name":"pkg1","version":"1.0.0","main":"build/index.js"} +{ + "name": "pkg1", + "version": "1.0.0", + "main": "build/index.js" +} //// [/user/username/projects/myproject/packages/pkg1/index.ts] import type { TheNum } from 'pkg2' export const theNum: TheNum = 42; //// [/user/username/projects/myproject/packages/pkg1/tsconfig.json] -{"compilerOptions":{"outDir":"build"},"references":[{"path":"../pkg2"}]} +{ + "compilerOptions": { + "outDir": "build" + }, + "references": [ + { + "path": "../pkg2" + } + ] +} //// [/user/username/projects/myproject/packages/pkg2/tsconfig.json] -{"compilerOptions":{"composite":true,"outDir":"build","baseUrl":"."}} +{ + "compilerOptions": { + "composite": true, + "outDir": "build", + "baseUrl": "." + } +} //// [/user/username/projects/myproject/packages/pkg2/const.ts] export type TheNum = 42; @@ -23,7 +42,11 @@ export type { TheNum } from './const.js'; export type TheStr = string; //// [/user/username/projects/myproject/packages/pkg2/package.json] -{"name":"pkg2","version":"1.0.0","main":"build/index.js"} +{ + "name": "pkg2", + "version": "1.0.0", + "main": "build/index.js" +} //// [/user/username/projects/myproject/node_modules/pkg2] symlink(/user/username/projects/myproject/packages/pkg2) //// [/a/lib/lib.d.ts] @@ -99,8 +122,19 @@ File '/user/username/projects/myproject/packages/pkg2/build/const.d.ts' exists - -Program root files: ["/user/username/projects/myproject/packages/pkg2/const.ts","/user/username/projects/myproject/packages/pkg2/index.ts","/user/username/projects/myproject/packages/pkg2/other.ts"] -Program options: {"composite":true,"outDir":"/user/username/projects/myproject/packages/pkg2/build","baseUrl":"/user/username/projects/myproject/packages/pkg2","watch":true,"traceResolution":true,"configFilePath":"/user/username/projects/myproject/packages/pkg2/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/packages/pkg2/const.ts", + "/user/username/projects/myproject/packages/pkg2/index.ts", + "/user/username/projects/myproject/packages/pkg2/other.ts" +] +Program options: { + "composite": true, + "outDir": "/user/username/projects/myproject/packages/pkg2/build", + "baseUrl": "/user/username/projects/myproject/packages/pkg2", + "watch": true, + "traceResolution": true, + "configFilePath": "/user/username/projects/myproject/packages/pkg2/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -120,8 +154,15 @@ Shape signatures in builder refreshed for:: /user/username/projects/myproject/packages/pkg2/index.ts (computed .d.ts during emit) /user/username/projects/myproject/packages/pkg2/other.ts (computed .d.ts during emit) -Program root files: ["/user/username/projects/myproject/packages/pkg1/index.ts"] -Program options: {"outDir":"/user/username/projects/myproject/packages/pkg1/build","watch":true,"traceResolution":true,"configFilePath":"/user/username/projects/myproject/packages/pkg1/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/packages/pkg1/index.ts" +] +Program options: { + "outDir": "/user/username/projects/myproject/packages/pkg1/build", + "watch": true, + "traceResolution": true, + "configFilePath": "/user/username/projects/myproject/packages/pkg1/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -295,7 +336,11 @@ Change:: reports import errors after change to package file Input:: //// [/user/username/projects/myproject/packages/pkg2/package.json] -{"name":"pkg2","version":"1.0.0","main":"build/other.js"} +{ + "name": "pkg2", + "version": "1.0.0", + "main": "build/other.js" +} Before running Timeout callback:: count: 1 @@ -341,8 +386,15 @@ Resolving real path for '/user/username/projects/myproject/node_modules/pkg2/bui -Program root files: ["/user/username/projects/myproject/packages/pkg1/index.ts"] -Program options: {"outDir":"/user/username/projects/myproject/packages/pkg1/build","watch":true,"traceResolution":true,"configFilePath":"/user/username/projects/myproject/packages/pkg1/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/packages/pkg1/index.ts" +] +Program options: { + "outDir": "/user/username/projects/myproject/packages/pkg1/build", + "watch": true, + "traceResolution": true, + "configFilePath": "/user/username/projects/myproject/packages/pkg1/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -364,7 +416,11 @@ Change:: removes those errors when a package file is changed back Input:: //// [/user/username/projects/myproject/packages/pkg2/package.json] -{"name":"pkg2","version":"1.0.0","main":"build/index.js"} +{ + "name": "pkg2", + "version": "1.0.0", + "main": "build/index.js" +} Before running Timeout callback:: count: 1 @@ -414,8 +470,15 @@ File '/user/username/projects/myproject/packages/pkg2/build/const.d.ts' exists - -Program root files: ["/user/username/projects/myproject/packages/pkg1/index.ts"] -Program options: {"outDir":"/user/username/projects/myproject/packages/pkg1/build","watch":true,"traceResolution":true,"configFilePath":"/user/username/projects/myproject/packages/pkg1/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/packages/pkg1/index.ts" +] +Program options: { + "outDir": "/user/username/projects/myproject/packages/pkg1/build", + "watch": true, + "traceResolution": true, + "configFilePath": "/user/username/projects/myproject/packages/pkg1/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tsbuildWatch/moduleResolution/resolves-specifier-in-output-declaration-file-from-referenced-project-correctly-with-cts-and-mts-extensions.js b/tests/baselines/reference/tsbuildWatch/moduleResolution/resolves-specifier-in-output-declaration-file-from-referenced-project-correctly-with-cts-and-mts-extensions.js index ac054a64b4938..1c26d43613b1c 100644 --- a/tests/baselines/reference/tsbuildWatch/moduleResolution/resolves-specifier-in-output-declaration-file-from-referenced-project-correctly-with-cts-and-mts-extensions.js +++ b/tests/baselines/reference/tsbuildWatch/moduleResolution/resolves-specifier-in-output-declaration-file-from-referenced-project-correctly-with-cts-and-mts-extensions.js @@ -1,14 +1,29 @@ currentDirectory:: /user/username/projects/myproject useCaseSensitiveFileNames: false Input:: //// [/user/username/projects/myproject/packages/pkg1/package.json] -{"name":"pkg1","version":"1.0.0","main":"build/index.js","type":"module"} +{ + "name": "pkg1", + "version": "1.0.0", + "main": "build/index.js", + "type": "module" +} //// [/user/username/projects/myproject/packages/pkg1/index.ts] import type { TheNum } from 'pkg2' export const theNum: TheNum = 42; //// [/user/username/projects/myproject/packages/pkg1/tsconfig.json] -{"compilerOptions":{"outDir":"build","module":"node16"},"references":[{"path":"../pkg2"}]} +{ + "compilerOptions": { + "outDir": "build", + "module": "node16" + }, + "references": [ + { + "path": "../pkg2" + } + ] +} //// [/user/username/projects/myproject/packages/pkg2/const.cts] export type TheNum = 42; @@ -17,10 +32,21 @@ export type TheNum = 42; export type { TheNum } from './const.cjs'; //// [/user/username/projects/myproject/packages/pkg2/tsconfig.json] -{"compilerOptions":{"composite":true,"outDir":"build","module":"node16"}} +{ + "compilerOptions": { + "composite": true, + "outDir": "build", + "module": "node16" + } +} //// [/user/username/projects/myproject/packages/pkg2/package.json] -{"name":"pkg2","version":"1.0.0","main":"build/index.js","type":"module"} +{ + "name": "pkg2", + "version": "1.0.0", + "main": "build/index.js", + "type": "module" +} //// [/user/username/projects/myproject/node_modules/pkg2] symlink(/user/username/projects/myproject/packages/pkg2) //// [/a/lib/lib.es2022.full.d.ts] @@ -106,8 +132,18 @@ File '/package.json' does not exist according to earlier cached lookups. -Program root files: ["/user/username/projects/myproject/packages/pkg2/const.cts","/user/username/projects/myproject/packages/pkg2/index.ts"] -Program options: {"composite":true,"outDir":"/user/username/projects/myproject/packages/pkg2/build","module":100,"watch":true,"traceResolution":true,"configFilePath":"/user/username/projects/myproject/packages/pkg2/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/packages/pkg2/const.cts", + "/user/username/projects/myproject/packages/pkg2/index.ts" +] +Program options: { + "composite": true, + "outDir": "/user/username/projects/myproject/packages/pkg2/build", + "module": 100, + "watch": true, + "traceResolution": true, + "configFilePath": "/user/username/projects/myproject/packages/pkg2/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.es2022.full.d.ts @@ -124,8 +160,16 @@ Shape signatures in builder refreshed for:: /user/username/projects/myproject/packages/pkg2/const.cts (computed .d.ts during emit) /user/username/projects/myproject/packages/pkg2/index.ts (computed .d.ts during emit) -Program root files: ["/user/username/projects/myproject/packages/pkg1/index.ts"] -Program options: {"outDir":"/user/username/projects/myproject/packages/pkg1/build","module":100,"watch":true,"traceResolution":true,"configFilePath":"/user/username/projects/myproject/packages/pkg1/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/packages/pkg1/index.ts" +] +Program options: { + "outDir": "/user/username/projects/myproject/packages/pkg1/build", + "module": 100, + "watch": true, + "traceResolution": true, + "configFilePath": "/user/username/projects/myproject/packages/pkg1/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.es2022.full.d.ts @@ -290,7 +334,12 @@ Change:: reports import errors after change to package file Input:: //// [/user/username/projects/myproject/packages/pkg1/package.json] -{"name":"pkg1","version":"1.0.0","main":"build/index.js","type":"commonjs"} +{ + "name": "pkg1", + "version": "1.0.0", + "main": "build/index.js", + "type": "commonjs" +} Before running Timeout callback:: count: 1 @@ -354,8 +403,16 @@ File '/package.json' does not exist. -Program root files: ["/user/username/projects/myproject/packages/pkg1/index.ts"] -Program options: {"outDir":"/user/username/projects/myproject/packages/pkg1/build","module":100,"watch":true,"traceResolution":true,"configFilePath":"/user/username/projects/myproject/packages/pkg1/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/packages/pkg1/index.ts" +] +Program options: { + "outDir": "/user/username/projects/myproject/packages/pkg1/build", + "module": 100, + "watch": true, + "traceResolution": true, + "configFilePath": "/user/username/projects/myproject/packages/pkg1/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.es2022.full.d.ts @@ -376,7 +433,12 @@ Change:: removes those errors when a package file is changed back Input:: //// [/user/username/projects/myproject/packages/pkg1/package.json] -{"name":"pkg1","version":"1.0.0","main":"build/index.js","type":"module"} +{ + "name": "pkg1", + "version": "1.0.0", + "main": "build/index.js", + "type": "module" +} Before running Timeout callback:: count: 1 @@ -431,8 +493,16 @@ File '/package.json' does not exist. -Program root files: ["/user/username/projects/myproject/packages/pkg1/index.ts"] -Program options: {"outDir":"/user/username/projects/myproject/packages/pkg1/build","module":100,"watch":true,"traceResolution":true,"configFilePath":"/user/username/projects/myproject/packages/pkg1/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/packages/pkg1/index.ts" +] +Program options: { + "outDir": "/user/username/projects/myproject/packages/pkg1/build", + "module": 100, + "watch": true, + "traceResolution": true, + "configFilePath": "/user/username/projects/myproject/packages/pkg1/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.es2022.full.d.ts @@ -454,7 +524,12 @@ Change:: reports import errors after change to package file Input:: //// [/user/username/projects/myproject/packages/pkg1/package.json] -{"name":"pkg1","version":"1.0.0","main":"build/index.js","type":"commonjs"} +{ + "name": "pkg1", + "version": "1.0.0", + "main": "build/index.js", + "type": "commonjs" +} Before running Timeout callback:: count: 1 @@ -518,8 +593,16 @@ File '/package.json' does not exist. -Program root files: ["/user/username/projects/myproject/packages/pkg1/index.ts"] -Program options: {"outDir":"/user/username/projects/myproject/packages/pkg1/build","module":100,"watch":true,"traceResolution":true,"configFilePath":"/user/username/projects/myproject/packages/pkg1/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/packages/pkg1/index.ts" +] +Program options: { + "outDir": "/user/username/projects/myproject/packages/pkg1/build", + "module": 100, + "watch": true, + "traceResolution": true, + "configFilePath": "/user/username/projects/myproject/packages/pkg1/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.es2022.full.d.ts @@ -540,7 +623,12 @@ Change:: removes those errors when a package file is changed to cjs extensions Input:: //// [/user/username/projects/myproject/packages/pkg2/package.json] -{"name":"pkg2","version":"1.0.0","main":"build/index.cjs","type":"module"} +{ + "name": "pkg2", + "version": "1.0.0", + "main": "build/index.cjs", + "type": "module" +} //// [/user/username/projects/myproject/packages/pkg2/index.cts] export type { TheNum } from './const.cjs'; @@ -617,8 +705,18 @@ File '/package.json' does not exist according to earlier cached lookups. -Program root files: ["/user/username/projects/myproject/packages/pkg2/const.cts","/user/username/projects/myproject/packages/pkg2/index.cts"] -Program options: {"composite":true,"outDir":"/user/username/projects/myproject/packages/pkg2/build","module":100,"watch":true,"traceResolution":true,"configFilePath":"/user/username/projects/myproject/packages/pkg2/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/packages/pkg2/const.cts", + "/user/username/projects/myproject/packages/pkg2/index.cts" +] +Program options: { + "composite": true, + "outDir": "/user/username/projects/myproject/packages/pkg2/build", + "module": 100, + "watch": true, + "traceResolution": true, + "configFilePath": "/user/username/projects/myproject/packages/pkg2/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.es2022.full.d.ts @@ -631,8 +729,16 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /user/username/projects/myproject/packages/pkg2/index.cts (computed .d.ts) -Program root files: ["/user/username/projects/myproject/packages/pkg1/index.ts"] -Program options: {"outDir":"/user/username/projects/myproject/packages/pkg1/build","module":100,"watch":true,"traceResolution":true,"configFilePath":"/user/username/projects/myproject/packages/pkg1/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/packages/pkg1/index.ts" +] +Program options: { + "outDir": "/user/username/projects/myproject/packages/pkg1/build", + "module": 100, + "watch": true, + "traceResolution": true, + "configFilePath": "/user/username/projects/myproject/packages/pkg1/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.es2022.full.d.ts diff --git a/tests/baselines/reference/tsbuildWatch/moduleResolutionCache/handles-the-cache-correctly-when-two-projects-use-different-module-resolution-settings.js b/tests/baselines/reference/tsbuildWatch/moduleResolutionCache/handles-the-cache-correctly-when-two-projects-use-different-module-resolution-settings.js index c3b4340d50e92..059a265542a94 100644 --- a/tests/baselines/reference/tsbuildWatch/moduleResolutionCache/handles-the-cache-correctly-when-two-projects-use-different-module-resolution-settings.js +++ b/tests/baselines/reference/tsbuildWatch/moduleResolutionCache/handles-the-cache-correctly-when-two-projects-use-different-module-resolution-settings.js @@ -7,7 +7,18 @@ import { foo } from "file"; export const foo = 10; //// [/user/username/projects/myproject/project1/tsconfig.json] -{"compilerOptions":{"composite":true,"types":["foo","bar"]},"files":["index.ts"]} +{ + "compilerOptions": { + "composite": true, + "types": [ + "foo", + "bar" + ] + }, + "files": [ + "index.ts" + ] +} //// [/user/username/projects/myproject/project2/index.ts] import { foo } from "file"; @@ -16,7 +27,18 @@ import { foo } from "file"; export const foo = 10; //// [/user/username/projects/myproject/project2/tsconfig.json] -{"compilerOptions":{"composite":true,"types":["foo"],"moduleResolution":"classic"},"files":["index.ts"]} +{ + "compilerOptions": { + "composite": true, + "types": [ + "foo" + ], + "moduleResolution": "classic" + }, + "files": [ + "index.ts" + ] +} //// [/user/username/projects/myproject/node_modules/@types/foo/index.d.ts] export const foo = 10; @@ -25,7 +47,17 @@ export const foo = 10; export const bar = 10; //// [/user/username/projects/myproject/tsconfig.json] -{"files":[],"references":[{"path":"./project1"},{"path":"./project2"}]} +{ + "files": [], + "references": [ + { + "path": "./project1" + }, + { + "path": "./project2" + } + ] +} //// [/a/lib/lib.d.ts] /// @@ -63,8 +95,18 @@ Output:: -Program root files: ["/user/username/projects/myproject/project1/index.ts"] -Program options: {"composite":true,"types":["foo","bar"],"watch":true,"configFilePath":"/user/username/projects/myproject/project1/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/project1/index.ts" +] +Program options: { + "composite": true, + "types": [ + "foo", + "bar" + ], + "watch": true, + "configFilePath": "/user/username/projects/myproject/project1/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -87,8 +129,18 @@ Shape signatures in builder refreshed for:: /user/username/projects/myproject/node_modules/@types/foo/index.d.ts (used version) /user/username/projects/myproject/node_modules/@types/bar/index.d.ts (used version) -Program root files: ["/user/username/projects/myproject/project2/index.ts"] -Program options: {"composite":true,"types":["foo"],"moduleResolution":1,"watch":true,"configFilePath":"/user/username/projects/myproject/project2/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/project2/index.ts" +] +Program options: { + "composite": true, + "types": [ + "foo" + ], + "moduleResolution": 1, + "watch": true, + "configFilePath": "/user/username/projects/myproject/project2/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -319,8 +371,18 @@ Output:: -Program root files: ["/user/username/projects/myproject/project1/index.ts"] -Program options: {"composite":true,"types":["foo","bar"],"watch":true,"configFilePath":"/user/username/projects/myproject/project1/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/project1/index.ts" +] +Program options: { + "composite": true, + "types": [ + "foo", + "bar" + ], + "watch": true, + "configFilePath": "/user/username/projects/myproject/project1/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tsbuildWatch/noEmit/does-not-go-in-loop-when-watching-when-no-files-are-emitted-with-incremental.js b/tests/baselines/reference/tsbuildWatch/noEmit/does-not-go-in-loop-when-watching-when-no-files-are-emitted-with-incremental.js index e9c1e45eeaf31..e0ca11d165e67 100644 --- a/tests/baselines/reference/tsbuildWatch/noEmit/does-not-go-in-loop-when-watching-when-no-files-are-emitted-with-incremental.js +++ b/tests/baselines/reference/tsbuildWatch/noEmit/does-not-go-in-loop-when-watching-when-no-files-are-emitted-with-incremental.js @@ -22,7 +22,12 @@ declare const console: { log(msg: any): void; }; //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"allowJs":true,"noEmit":true}} +{ + "compilerOptions": { + "allowJs": true, + "noEmit": true + } +} /a/lib/tsc.js -b -w -verbose --incremental @@ -41,8 +46,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.js","/user/username/projects/myproject/b.ts"] -Program options: {"allowJs":true,"noEmit":true,"watch":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.js", + "/user/username/projects/myproject/b.ts" +] +Program options: { + "allowJs": true, + "noEmit": true, + "watch": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -182,8 +196,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.js","/user/username/projects/myproject/b.ts"] -Program options: {"allowJs":true,"noEmit":true,"watch":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.js", + "/user/username/projects/myproject/b.ts" +] +Program options: { + "allowJs": true, + "noEmit": true, + "watch": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tsbuildWatch/noEmit/does-not-go-in-loop-when-watching-when-no-files-are-emitted.js b/tests/baselines/reference/tsbuildWatch/noEmit/does-not-go-in-loop-when-watching-when-no-files-are-emitted.js index b08eeea752152..19ec6c5a9a879 100644 --- a/tests/baselines/reference/tsbuildWatch/noEmit/does-not-go-in-loop-when-watching-when-no-files-are-emitted.js +++ b/tests/baselines/reference/tsbuildWatch/noEmit/does-not-go-in-loop-when-watching-when-no-files-are-emitted.js @@ -22,7 +22,12 @@ declare const console: { log(msg: any): void; }; //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"allowJs":true,"noEmit":true}} +{ + "compilerOptions": { + "allowJs": true, + "noEmit": true + } +} /a/lib/tsc.js -b -w -verbose @@ -41,8 +46,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.js","/user/username/projects/myproject/b.ts"] -Program options: {"allowJs":true,"noEmit":true,"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.js", + "/user/username/projects/myproject/b.ts" +] +Program options: { + "allowJs": true, + "noEmit": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -94,8 +107,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.js","/user/username/projects/myproject/b.ts"] -Program options: {"allowJs":true,"noEmit":true,"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.js", + "/user/username/projects/myproject/b.ts" +] +Program options: { + "allowJs": true, + "noEmit": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -131,8 +152,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.js","/user/username/projects/myproject/b.ts"] -Program options: {"allowJs":true,"noEmit":true,"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.js", + "/user/username/projects/myproject/b.ts" +] +Program options: { + "allowJs": true, + "noEmit": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tsbuildWatch/noEmitOnError/does-not-emit-any-files-on-error-with-incremental.js b/tests/baselines/reference/tsbuildWatch/noEmitOnError/does-not-emit-any-files-on-error-with-incremental.js index bb7f4ac6efaca..bbb3b6464dd58 100644 --- a/tests/baselines/reference/tsbuildWatch/noEmitOnError/does-not-emit-any-files-on-error-with-incremental.js +++ b/tests/baselines/reference/tsbuildWatch/noEmitOnError/does-not-emit-any-files-on-error-with-incremental.js @@ -1,28 +1,30 @@ currentDirectory:: /user/username/projects/noEmitOnError useCaseSensitiveFileNames: false Input:: //// [/user/username/projects/noEmitOnError/tsconfig.json] -{ - "compilerOptions": { - "outDir": "./dev-build", - "noEmitOnError": true - } +{ + "compilerOptions": { + "outDir": "./dev-build", + "noEmitOnError": true + } } - //// [/user/username/projects/noEmitOnError/shared/types/db.ts] -export interface A { - name: string; -} +export interface A { + name: string; +} + //// [/user/username/projects/noEmitOnError/src/main.ts] -import { A } from "../shared/types/db"; -const a = { - lastName: 'sdsd' -; +import { A } from "../shared/types/db"; +const a = { + lastName: 'sdsd' +; + //// [/user/username/projects/noEmitOnError/src/other.ts] -console.log("hi"); -export { } +console.log("hi"); +export { } + //// [/a/lib/lib.d.ts] /// @@ -61,8 +63,18 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"incremental":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "incremental": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -91,7 +103,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"-9621097780-export interface A {\r\n name: string;\r\n}","signature":false},{"version":"2626879346-import { A } from \"../shared/types/db\";\r\nconst a = {\r\n lastName: 'sdsd'\r\n;","signature":false},{"version":"11373096570-console.log(\"hi\");\r\nexport { }","signature":false}],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"changeFileSet":[1,2,3,4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"-5014788164-export interface A {\n name: string;\n}\n","signature":false},{"version":"-2574607723-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;\n","signature":false},{"version":"9084524823-console.log(\"hi\");\nexport { }\n","signature":false}],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"changeFileSet":[1,2,3,4]},"version":"FakeTSVersion"} //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -119,24 +131,24 @@ exitCode:: ExitStatus.undefined }, "../shared/types/db.ts": { "original": { - "version": "-9621097780-export interface A {\r\n name: string;\r\n}", + "version": "-5014788164-export interface A {\n name: string;\n}\n", "signature": false }, - "version": "-9621097780-export interface A {\r\n name: string;\r\n}" + "version": "-5014788164-export interface A {\n name: string;\n}\n" }, "../src/main.ts": { "original": { - "version": "2626879346-import { A } from \"../shared/types/db\";\r\nconst a = {\r\n lastName: 'sdsd'\r\n;", + "version": "-2574607723-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;\n", "signature": false }, - "version": "2626879346-import { A } from \"../shared/types/db\";\r\nconst a = {\r\n lastName: 'sdsd'\r\n;" + "version": "-2574607723-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;\n" }, "../src/other.ts": { "original": { - "version": "11373096570-console.log(\"hi\");\r\nexport { }", + "version": "9084524823-console.log(\"hi\");\nexport { }\n", "signature": false }, - "version": "11373096570-console.log(\"hi\");\r\nexport { }" + "version": "9084524823-console.log(\"hi\");\nexport { }\n" } }, "root": [ @@ -170,7 +182,7 @@ exitCode:: ExitStatus.undefined ] }, "version": "FakeTSVersion", - "size": 1110 + "size": 1104 } @@ -199,8 +211,18 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"incremental":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "incremental": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -240,8 +262,18 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"incremental":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "incremental": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -257,14 +289,14 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) -/user/username/projects/noemitonerror/shared/types/db.ts (computed .d.ts) +/user/username/projects/noemitonerror/shared/types/db.ts (used version) /user/username/projects/noemitonerror/src/main.ts (computed .d.ts) /user/username/projects/noemitonerror/src/other.ts (computed .d.ts) exitCode:: ExitStatus.undefined //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-9621097780-export interface A {\r\n name: string;\r\n}","signature":"-5014788164-export interface A {\n name: string;\n}\n"},{"version":"-2574605496-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};","signature":"-3531856636-export {};\n"},{"version":"11373096570-console.log(\"hi\");\r\nexport { }","signature":"-3531856636-export {};\n"}],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-5014788164-export interface A {\n name: string;\n}\n",{"version":"-2574605496-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};","signature":"-3531856636-export {};\n"},{"version":"9084524823-console.log(\"hi\");\nexport { }\n","signature":"-3531856636-export {};\n"}],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -291,11 +323,7 @@ exitCode:: ExitStatus.undefined "affectsGlobalScope": true }, "../shared/types/db.ts": { - "original": { - "version": "-9621097780-export interface A {\r\n name: string;\r\n}", - "signature": "-5014788164-export interface A {\n name: string;\n}\n" - }, - "version": "-9621097780-export interface A {\r\n name: string;\r\n}", + "version": "-5014788164-export interface A {\n name: string;\n}\n", "signature": "-5014788164-export interface A {\n name: string;\n}\n" }, "../src/main.ts": { @@ -308,10 +336,10 @@ exitCode:: ExitStatus.undefined }, "../src/other.ts": { "original": { - "version": "11373096570-console.log(\"hi\");\r\nexport { }", + "version": "9084524823-console.log(\"hi\");\nexport { }\n", "signature": "-3531856636-export {};\n" }, - "version": "11373096570-console.log(\"hi\");\r\nexport { }", + "version": "9084524823-console.log(\"hi\");\nexport { }\n", "signature": "-3531856636-export {};\n" } }, @@ -346,7 +374,7 @@ exitCode:: ExitStatus.undefined ] }, "version": "FakeTSVersion", - "size": 1196 + "size": 1110 } //// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] @@ -397,8 +425,18 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"incremental":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "incremental": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -415,7 +453,7 @@ Shape signatures in builder refreshed for:: exitCode:: ExitStatus.undefined //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-9621097780-export interface A {\r\n name: string;\r\n}","signature":"-5014788164-export interface A {\n name: string;\n}\n"},{"version":"-11111345725-import { A } from \"../shared/types/db\";\nconst a: string = 10;","signature":"-3531856636-export {};\n"},{"version":"11373096570-console.log(\"hi\");\r\nexport { }","signature":"-3531856636-export {};\n"}],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"../src/main.ts","start":46,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]],4],"affectedFilesPendingEmit":[3]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-5014788164-export interface A {\n name: string;\n}\n",{"version":"-11111345725-import { A } from \"../shared/types/db\";\nconst a: string = 10;","signature":"-3531856636-export {};\n"},{"version":"9084524823-console.log(\"hi\");\nexport { }\n","signature":"-3531856636-export {};\n"}],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"../src/main.ts","start":46,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]],4],"affectedFilesPendingEmit":[3]},"version":"FakeTSVersion"} //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -442,11 +480,7 @@ exitCode:: ExitStatus.undefined "affectsGlobalScope": true }, "../shared/types/db.ts": { - "original": { - "version": "-9621097780-export interface A {\r\n name: string;\r\n}", - "signature": "-5014788164-export interface A {\n name: string;\n}\n" - }, - "version": "-9621097780-export interface A {\r\n name: string;\r\n}", + "version": "-5014788164-export interface A {\n name: string;\n}\n", "signature": "-5014788164-export interface A {\n name: string;\n}\n" }, "../src/main.ts": { @@ -459,10 +493,10 @@ exitCode:: ExitStatus.undefined }, "../src/other.ts": { "original": { - "version": "11373096570-console.log(\"hi\");\r\nexport { }", + "version": "9084524823-console.log(\"hi\");\nexport { }\n", "signature": "-3531856636-export {};\n" }, - "version": "11373096570-console.log(\"hi\");\r\nexport { }", + "version": "9084524823-console.log(\"hi\");\nexport { }\n", "signature": "-3531856636-export {};\n" } }, @@ -515,7 +549,7 @@ exitCode:: ExitStatus.undefined ] }, "version": "FakeTSVersion", - "size": 1355 + "size": 1269 } @@ -544,8 +578,18 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"incremental":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "incremental": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -583,8 +627,18 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"incremental":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "incremental": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -601,7 +655,7 @@ Shape signatures in builder refreshed for:: exitCode:: ExitStatus.undefined //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-9621097780-export interface A {\r\n name: string;\r\n}","signature":"-5014788164-export interface A {\n name: string;\n}\n"},{"version":"-8373351622-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";","signature":"-3531856636-export {};\n"},{"version":"11373096570-console.log(\"hi\");\r\nexport { }","signature":"-3531856636-export {};\n"}],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-5014788164-export interface A {\n name: string;\n}\n",{"version":"-8373351622-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";","signature":"-3531856636-export {};\n"},{"version":"9084524823-console.log(\"hi\");\nexport { }\n","signature":"-3531856636-export {};\n"}],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -628,11 +682,7 @@ exitCode:: ExitStatus.undefined "affectsGlobalScope": true }, "../shared/types/db.ts": { - "original": { - "version": "-9621097780-export interface A {\r\n name: string;\r\n}", - "signature": "-5014788164-export interface A {\n name: string;\n}\n" - }, - "version": "-9621097780-export interface A {\r\n name: string;\r\n}", + "version": "-5014788164-export interface A {\n name: string;\n}\n", "signature": "-5014788164-export interface A {\n name: string;\n}\n" }, "../src/main.ts": { @@ -645,10 +695,10 @@ exitCode:: ExitStatus.undefined }, "../src/other.ts": { "original": { - "version": "11373096570-console.log(\"hi\");\r\nexport { }", + "version": "9084524823-console.log(\"hi\");\nexport { }\n", "signature": "-3531856636-export {};\n" }, - "version": "11373096570-console.log(\"hi\");\r\nexport { }", + "version": "9084524823-console.log(\"hi\");\nexport { }\n", "signature": "-3531856636-export {};\n" } }, @@ -683,7 +733,7 @@ exitCode:: ExitStatus.undefined ] }, "version": "FakeTSVersion", - "size": 1187 + "size": 1101 } //// [/user/username/projects/noEmitOnError/dev-build/src/main.js] diff --git a/tests/baselines/reference/tsbuildWatch/noEmitOnError/does-not-emit-any-files-on-error.js b/tests/baselines/reference/tsbuildWatch/noEmitOnError/does-not-emit-any-files-on-error.js index 27913569a1785..1c5273472efbb 100644 --- a/tests/baselines/reference/tsbuildWatch/noEmitOnError/does-not-emit-any-files-on-error.js +++ b/tests/baselines/reference/tsbuildWatch/noEmitOnError/does-not-emit-any-files-on-error.js @@ -1,28 +1,30 @@ currentDirectory:: /user/username/projects/noEmitOnError useCaseSensitiveFileNames: false Input:: //// [/user/username/projects/noEmitOnError/tsconfig.json] -{ - "compilerOptions": { - "outDir": "./dev-build", - "noEmitOnError": true - } +{ + "compilerOptions": { + "outDir": "./dev-build", + "noEmitOnError": true + } } - //// [/user/username/projects/noEmitOnError/shared/types/db.ts] -export interface A { - name: string; -} +export interface A { + name: string; +} + //// [/user/username/projects/noEmitOnError/src/main.ts] -import { A } from "../shared/types/db"; -const a = { - lastName: 'sdsd' -; +import { A } from "../shared/types/db"; +const a = { + lastName: 'sdsd' +; + //// [/user/username/projects/noEmitOnError/src/other.ts] -console.log("hi"); -export { } +console.log("hi"); +export { } + //// [/a/lib/lib.d.ts] /// @@ -61,8 +63,17 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -116,8 +127,17 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -157,8 +177,17 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -174,7 +203,7 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) -/user/username/projects/noemitonerror/shared/types/db.ts (computed .d.ts) +/user/username/projects/noemitonerror/shared/types/db.ts (used version) /user/username/projects/noemitonerror/src/main.ts (computed .d.ts) /user/username/projects/noemitonerror/src/other.ts (computed .d.ts) @@ -228,8 +257,17 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -271,8 +309,17 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -312,8 +359,17 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -360,8 +416,17 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/creates-solution-in-watch-mode.js b/tests/baselines/reference/tsbuildWatch/programUpdates/creates-solution-in-watch-mode.js index acc1c92039985..0c517989aea80 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/creates-solution-in-watch-mode.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/creates-solution-in-watch-mode.js @@ -1,4 +1,4 @@ -currentDirectory:: /user/username/projects useCaseSensitiveFileNames: false +currentDirectory:: /user/username/projects/sample1 useCaseSensitiveFileNames: false Input:: //// [/a/lib/lib.d.ts] /// @@ -14,124 +14,138 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/sample1/core/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - } +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + } } //// [/user/username/projects/sample1/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } + +//// [/user/username/projects/sample1/core/some_decl.d.ts] +declare const dts: any; //// [/user/username/projects/sample1/core/anotherModule.ts] export const World = "hello"; - //// [/user/username/projects/sample1/logic/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../core" } - ] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + }, + "references": [ + { + "path": "../core" + } + ] } - //// [/user/username/projects/sample1/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; //// [/user/username/projects/sample1/tests/tsconfig.json] -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" } - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - } +{ + "references": [ + { + "path": "../core" + }, + { + "path": "../logic" + } + ], + "files": [ + "index.ts" + ], + "compilerOptions": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + } } //// [/user/username/projects/sample1/tests/index.ts] -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; - - -//// [/user/username/projects/sample1/ui/tsconfig.json] -{ - "compilerOptions": { - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../logic/index" } - ] -} - - -//// [/user/username/projects/sample1/ui/index.ts] -import * as logic from '../logic'; - -export function run() { - console.log(logic.getSecondsInDay()); -} +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; -/a/lib/tsc.js -b -w sample1/tests +/a/lib/tsc.js -b -w tests Output:: >> Screen clear -[12:00:45 AM] Starting compilation in watch mode... +[12:00:39 AM] Starting compilation in watch mode... -[12:01:23 AM] Found 0 errors. Watching for file changes. +[12:01:17 AM] Found 0 errors. Watching for file changes. -Program root files: ["/user/username/projects/sample1/core/anotherModule.ts","/user/username/projects/sample1/core/index.ts"] -Program options: {"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/core/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/core/anotherModule.ts", + "/user/username/projects/sample1/core/index.ts", + "/user/username/projects/sample1/core/some_decl.d.ts" +] +Program options: { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/core/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts /user/username/projects/sample1/core/anotherModule.ts /user/username/projects/sample1/core/index.ts +/user/username/projects/sample1/core/some_decl.d.ts Semantic diagnostics in builder refreshed for:: /a/lib/lib.d.ts /user/username/projects/sample1/core/anotherModule.ts /user/username/projects/sample1/core/index.ts +/user/username/projects/sample1/core/some_decl.d.ts Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) /user/username/projects/sample1/core/anothermodule.ts (computed .d.ts during emit) /user/username/projects/sample1/core/index.ts (computed .d.ts during emit) - -Program root files: ["/user/username/projects/sample1/logic/index.ts"] -Program options: {"composite":true,"declaration":true,"sourceMap":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/logic/tsconfig.json"} +/user/username/projects/sample1/core/some_decl.d.ts (used version) + +Program root files: [ + "/user/username/projects/sample1/logic/index.ts" +] +Program options: { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/logic/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -151,8 +165,17 @@ Shape signatures in builder refreshed for:: /user/username/projects/sample1/core/anothermodule.d.ts (used version) /user/username/projects/sample1/logic/index.ts (computed .d.ts during emit) -Program root files: ["/user/username/projects/sample1/tests/index.ts"] -Program options: {"composite":true,"declaration":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/tests/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/tests/index.ts" +] +Program options: { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/tests/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -180,6 +203,8 @@ FsWatches:: {} /user/username/projects/sample1/core/index.ts: *new* {} +/user/username/projects/sample1/core/some_decl.d.ts: *new* + {} /user/username/projects/sample1/core/tsconfig.json: *new* {} /user/username/projects/sample1/logic/index.ts: *new* @@ -234,7 +259,7 @@ export declare function multiply(a: number, b: number): number; //# sourceMappingURL=index.d.ts.map //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\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"}],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -242,7 +267,8 @@ export declare function multiply(a: number, b: number): number; "fileNames": [ "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", - "./index.ts" + "./index.ts", + "./some_decl.d.ts" ], "fileInfos": { "../../../../../a/lib/lib.d.ts": { @@ -256,29 +282,41 @@ export declare function multiply(a: number, b: number): number; }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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" }, - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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" + }, + "./some_decl.d.ts": { + "original": { + "version": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true + }, + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true } }, "root": [ [ - 2, - "./anothermodule.ts" - ], - [ - 3, - "./index.ts" + [ + 2, + 4 + ], + [ + "./anothermodule.ts", + "./index.ts", + "./some_decl.d.ts" + ] ] ], "options": { @@ -292,12 +330,13 @@ export declare function multiply(a: number, b: number): number; "semanticDiagnosticsPerFile": [ "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", - "./index.ts" + "./index.ts", + "./some_decl.d.ts" ], "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1305 + "size": 1394 } //// [/user/username/projects/sample1/logic/index.js.map] @@ -323,7 +362,7 @@ export declare const m: typeof mod; //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -363,10 +402,10 @@ export declare const m: typeof mod; }, "./index.ts": { "original": { - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -402,7 +441,7 @@ export declare const m: typeof mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1443 + "size": 1431 } //// [/user/username/projects/sample1/tests/index.js] @@ -423,7 +462,7 @@ export declare const m: typeof mod; //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -469,10 +508,10 @@ export declare const m: typeof mod; }, "./index.ts": { "original": { - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -515,6 +554,6 @@ export declare const m: typeof mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1588 + "size": 1573 } diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/incremental-updates-in-verbose-mode.js b/tests/baselines/reference/tsbuildWatch/programUpdates/incremental-updates-in-verbose-mode.js index 3e0324a1a8e95..4f5ec40ff8613 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/incremental-updates-in-verbose-mode.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/incremental-updates-in-verbose-mode.js @@ -1,4 +1,4 @@ -currentDirectory:: /user/username/projects useCaseSensitiveFileNames: false +currentDirectory:: /user/username/projects/sample1 useCaseSensitiveFileNames: false Input:: //// [/a/lib/lib.d.ts] /// @@ -14,141 +14,155 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/sample1/core/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - } +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + } } //// [/user/username/projects/sample1/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } + +//// [/user/username/projects/sample1/core/some_decl.d.ts] +declare const dts: any; //// [/user/username/projects/sample1/core/anotherModule.ts] export const World = "hello"; - //// [/user/username/projects/sample1/logic/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../core" } - ] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + }, + "references": [ + { + "path": "../core" + } + ] } - //// [/user/username/projects/sample1/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; //// [/user/username/projects/sample1/tests/tsconfig.json] -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" } - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - } +{ + "references": [ + { + "path": "../core" + }, + { + "path": "../logic" + } + ], + "files": [ + "index.ts" + ], + "compilerOptions": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + } } //// [/user/username/projects/sample1/tests/index.ts] -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; - - -//// [/user/username/projects/sample1/ui/tsconfig.json] -{ - "compilerOptions": { - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../logic/index" } - ] -} - - -//// [/user/username/projects/sample1/ui/index.ts] -import * as logic from '../logic'; - -export function run() { - console.log(logic.getSecondsInDay()); -} +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; -/a/lib/tsc.js -b -w sample1/tests -verbose +/a/lib/tsc.js -b -w tests -verbose Output:: >> Screen clear -[12:00:45 AM] Starting compilation in watch mode... +[12:00:39 AM] Starting compilation in watch mode... -[12:00:46 AM] Projects in this build: - * sample1/core/tsconfig.json - * sample1/logic/tsconfig.json - * sample1/tests/tsconfig.json +[12:00:40 AM] Projects in this build: + * core/tsconfig.json + * logic/tsconfig.json + * tests/tsconfig.json -[12:00:47 AM] Project 'sample1/core/tsconfig.json' is out of date because output file 'sample1/core/tsconfig.tsbuildinfo' does not exist +[12:00:41 AM] Project 'core/tsconfig.json' is out of date because output file 'core/tsconfig.tsbuildinfo' does not exist -[12:00:48 AM] Building project '/user/username/projects/sample1/core/tsconfig.json'... +[12:00:42 AM] Building project '/user/username/projects/sample1/core/tsconfig.json'... -[12:01:06 AM] Project 'sample1/logic/tsconfig.json' is out of date because output file 'sample1/logic/tsconfig.tsbuildinfo' does not exist +[12:01:00 AM] Project 'logic/tsconfig.json' is out of date because output file 'logic/tsconfig.tsbuildinfo' does not exist -[12:01:07 AM] Building project '/user/username/projects/sample1/logic/tsconfig.json'... +[12:01:01 AM] Building project '/user/username/projects/sample1/logic/tsconfig.json'... -[12:01:19 AM] Project 'sample1/tests/tsconfig.json' is out of date because output file 'sample1/tests/tsconfig.tsbuildinfo' does not exist +[12:01:13 AM] Project 'tests/tsconfig.json' is out of date because output file 'tests/tsconfig.tsbuildinfo' does not exist -[12:01:20 AM] Building project '/user/username/projects/sample1/tests/tsconfig.json'... +[12:01:14 AM] Building project '/user/username/projects/sample1/tests/tsconfig.json'... -[12:01:30 AM] Found 0 errors. Watching for file changes. +[12:01:24 AM] Found 0 errors. Watching for file changes. -Program root files: ["/user/username/projects/sample1/core/anotherModule.ts","/user/username/projects/sample1/core/index.ts"] -Program options: {"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/core/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/core/anotherModule.ts", + "/user/username/projects/sample1/core/index.ts", + "/user/username/projects/sample1/core/some_decl.d.ts" +] +Program options: { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/core/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts /user/username/projects/sample1/core/anotherModule.ts /user/username/projects/sample1/core/index.ts +/user/username/projects/sample1/core/some_decl.d.ts Semantic diagnostics in builder refreshed for:: /a/lib/lib.d.ts /user/username/projects/sample1/core/anotherModule.ts /user/username/projects/sample1/core/index.ts +/user/username/projects/sample1/core/some_decl.d.ts Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) /user/username/projects/sample1/core/anothermodule.ts (computed .d.ts during emit) /user/username/projects/sample1/core/index.ts (computed .d.ts during emit) - -Program root files: ["/user/username/projects/sample1/logic/index.ts"] -Program options: {"composite":true,"declaration":true,"sourceMap":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/logic/tsconfig.json"} +/user/username/projects/sample1/core/some_decl.d.ts (used version) + +Program root files: [ + "/user/username/projects/sample1/logic/index.ts" +] +Program options: { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/logic/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -168,8 +182,17 @@ Shape signatures in builder refreshed for:: /user/username/projects/sample1/core/anothermodule.d.ts (used version) /user/username/projects/sample1/logic/index.ts (computed .d.ts during emit) -Program root files: ["/user/username/projects/sample1/tests/index.ts"] -Program options: {"composite":true,"declaration":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/tests/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/tests/index.ts" +] +Program options: { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/tests/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -197,6 +220,8 @@ FsWatches:: {} /user/username/projects/sample1/core/index.ts: *new* {} +/user/username/projects/sample1/core/some_decl.d.ts: *new* + {} /user/username/projects/sample1/core/tsconfig.json: *new* {} /user/username/projects/sample1/logic/index.ts: *new* @@ -251,7 +276,7 @@ export declare function multiply(a: number, b: number): number; //# sourceMappingURL=index.d.ts.map //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\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"}],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -259,7 +284,8 @@ export declare function multiply(a: number, b: number): number; "fileNames": [ "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", - "./index.ts" + "./index.ts", + "./some_decl.d.ts" ], "fileInfos": { "../../../../../a/lib/lib.d.ts": { @@ -273,29 +299,41 @@ export declare function multiply(a: number, b: number): number; }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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" }, - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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" + }, + "./some_decl.d.ts": { + "original": { + "version": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true + }, + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true } }, "root": [ [ - 2, - "./anothermodule.ts" - ], - [ - 3, - "./index.ts" + [ + 2, + 4 + ], + [ + "./anothermodule.ts", + "./index.ts", + "./some_decl.d.ts" + ] ] ], "options": { @@ -309,12 +347,13 @@ export declare function multiply(a: number, b: number): number; "semanticDiagnosticsPerFile": [ "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", - "./index.ts" + "./index.ts", + "./some_decl.d.ts" ], "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1305 + "size": 1394 } //// [/user/username/projects/sample1/logic/index.js.map] @@ -340,7 +379,7 @@ export declare const m: typeof mod; //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -380,10 +419,10 @@ export declare const m: typeof mod; }, "./index.ts": { "original": { - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -419,7 +458,7 @@ export declare const m: typeof mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1443 + "size": 1431 } //// [/user/username/projects/sample1/tests/index.js] @@ -440,7 +479,7 @@ export declare const m: typeof mod; //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -486,10 +525,10 @@ export declare const m: typeof mod; }, "./index.ts": { "original": { - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -532,7 +571,7 @@ export declare const m: typeof mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1588 + "size": 1573 } @@ -540,12 +579,12 @@ Change:: Make non dts change Input:: //// [/user/username/projects/sample1/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; function someFn() { } @@ -555,22 +594,32 @@ Before running Timeout callback:: count: 1 After running Timeout callback:: count: 0 Output:: >> Screen clear -[12:01:34 AM] File change detected. Starting incremental compilation... +[12:01:27 AM] File change detected. Starting incremental compilation... -[12:01:35 AM] Project 'sample1/logic/tsconfig.json' is out of date because output 'sample1/logic/tsconfig.tsbuildinfo' is older than input 'sample1/logic/index.ts' +[12:01:28 AM] Project 'logic/tsconfig.json' is out of date because output 'logic/tsconfig.tsbuildinfo' is older than input 'logic/index.ts' -[12:01:36 AM] Building project '/user/username/projects/sample1/logic/tsconfig.json'... +[12:01:29 AM] Building project '/user/username/projects/sample1/logic/tsconfig.json'... -[12:01:50 AM] Project 'sample1/tests/tsconfig.json' is up to date with .d.ts files from its dependencies +[12:01:43 AM] Project 'tests/tsconfig.json' is up to date with .d.ts files from its dependencies -[12:01:51 AM] Updating output timestamps of project '/user/username/projects/sample1/tests/tsconfig.json'... +[12:01:44 AM] Updating output timestamps of project '/user/username/projects/sample1/tests/tsconfig.json'... -[12:01:53 AM] Found 0 errors. Watching for file changes. +[12:01:46 AM] Found 0 errors. Watching for file changes. -Program root files: ["/user/username/projects/sample1/logic/index.ts"] -Program options: {"composite":true,"declaration":true,"sourceMap":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/logic/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/logic/index.ts" +] +Program options: { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/logic/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -604,7 +653,7 @@ function someFn() { } //# sourceMappingURL=index.js.map //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"937092231-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n\nfunction someFn() { }","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"-12844299335-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n\nfunction someFn() { }","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -644,10 +693,10 @@ function someFn() { } }, "./index.ts": { "original": { - "version": "937092231-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n\nfunction someFn() { }", + "version": "-12844299335-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n\nfunction someFn() { }", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "937092231-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n\nfunction someFn() { }", + "version": "-12844299335-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n\nfunction someFn() { }", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -683,7 +732,7 @@ function someFn() { } "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1464 + "size": 1455 } //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] file changed its modified time @@ -692,12 +741,12 @@ Change:: Make dts change Input:: //// [/user/username/projects/sample1/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; export function someFn() { } @@ -711,22 +760,32 @@ Before running Timeout callback:: count: 1 After running Timeout callback:: count: 0 Output:: >> Screen clear -[12:01:57 AM] File change detected. Starting incremental compilation... +[12:01:50 AM] File change detected. Starting incremental compilation... -[12:01:58 AM] Project 'sample1/logic/tsconfig.json' is out of date because output 'sample1/logic/tsconfig.tsbuildinfo' is older than input 'sample1/logic/index.ts' +[12:01:51 AM] Project 'logic/tsconfig.json' is out of date because output 'logic/tsconfig.tsbuildinfo' is older than input 'logic/index.ts' -[12:01:59 AM] Building project '/user/username/projects/sample1/logic/tsconfig.json'... +[12:01:52 AM] Building project '/user/username/projects/sample1/logic/tsconfig.json'... -[12:02:16 AM] Project 'sample1/tests/tsconfig.json' is out of date because output 'sample1/tests/index.js' is older than input 'sample1/logic/tsconfig.json' +[12:02:09 AM] Project 'tests/tsconfig.json' is out of date because output 'tests/index.js' is older than input 'logic/tsconfig.json' -[12:02:17 AM] Building project '/user/username/projects/sample1/tests/tsconfig.json'... +[12:02:10 AM] Building project '/user/username/projects/sample1/tests/tsconfig.json'... -[12:02:28 AM] Found 0 errors. Watching for file changes. +[12:02:21 AM] Found 0 errors. Watching for file changes. -Program root files: ["/user/username/projects/sample1/logic/index.ts"] -Program options: {"composite":true,"declaration":true,"sourceMap":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/logic/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/logic/index.ts" +] +Program options: { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/logic/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -740,8 +799,17 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /user/username/projects/sample1/logic/index.ts (computed .d.ts) -Program root files: ["/user/username/projects/sample1/tests/index.ts"] -Program options: {"composite":true,"declaration":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/tests/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/tests/index.ts" +] +Program options: { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/tests/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -786,7 +854,7 @@ export declare function someFn(): void; //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"-3093967383-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n\nexport function someFn() { }","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"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"-5790226213-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n\nexport function someFn() { }","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"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -826,10 +894,10 @@ export declare function someFn(): void; }, "./index.ts": { "original": { - "version": "-3093967383-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n\nexport function someFn() { }", + "version": "-5790226213-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n\nexport function someFn() { }", "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" }, - "version": "-3093967383-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n\nexport function someFn() { }", + "version": "-5790226213-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n\nexport function someFn() { }", "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" } }, @@ -865,12 +933,12 @@ export declare function someFn(): void; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1514 + "size": 1502 } //// [/user/username/projects/sample1/tests/index.js] file written with same contents //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n","-8742548750-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\nexport declare function someFn(): void;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n","-8742548750-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\nexport declare function someFn(): void;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -916,10 +984,10 @@ export declare function someFn(): void; }, "./index.ts": { "original": { - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -962,6 +1030,6 @@ export declare function someFn(): void; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1629 + "size": 1614 } diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/declarationEmitErrors/introduceError/when-file-with-no-error-changes.js b/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/declarationEmitErrors/introduceError/when-file-with-no-error-changes.js index 0a35b7d29b73d..cbc5a5ea500b7 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/declarationEmitErrors/introduceError/when-file-with-no-error-changes.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/declarationEmitErrors/introduceError/when-file-with-no-error-changes.js @@ -23,7 +23,11 @@ export var myClassWithError = class { export class myClass { } //// [/user/username/projects/solution/app/tsconfig.json] -{"compilerOptions":{"composite":true}} +{ + "compilerOptions": { + "composite": true + } +} /a/lib/tsc.js -b -w app @@ -35,8 +39,15 @@ Output:: -Program root files: ["/user/username/projects/solution/app/fileWithError.ts","/user/username/projects/solution/app/fileWithoutError.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/solution/app/tsconfig.json"} +Program root files: [ + "/user/username/projects/solution/app/fileWithError.ts", + "/user/username/projects/solution/app/fileWithoutError.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/solution/app/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -195,8 +206,15 @@ Output:: -Program root files: ["/user/username/projects/solution/app/fileWithError.ts","/user/username/projects/solution/app/fileWithoutError.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/solution/app/tsconfig.json"} +Program root files: [ + "/user/username/projects/solution/app/fileWithError.ts", + "/user/username/projects/solution/app/fileWithoutError.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/solution/app/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -235,8 +253,15 @@ Output:: -Program root files: ["/user/username/projects/solution/app/fileWithError.ts","/user/username/projects/solution/app/fileWithoutError.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/solution/app/tsconfig.json"} +Program root files: [ + "/user/username/projects/solution/app/fileWithError.ts", + "/user/username/projects/solution/app/fileWithoutError.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/solution/app/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/declarationEmitErrors/introduceError/when-fixing-errors-only-changed-file-is-emitted.js b/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/declarationEmitErrors/introduceError/when-fixing-errors-only-changed-file-is-emitted.js index f14b57255b5a8..7539568179b6a 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/declarationEmitErrors/introduceError/when-fixing-errors-only-changed-file-is-emitted.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/declarationEmitErrors/introduceError/when-fixing-errors-only-changed-file-is-emitted.js @@ -23,7 +23,11 @@ export var myClassWithError = class { export class myClass { } //// [/user/username/projects/solution/app/tsconfig.json] -{"compilerOptions":{"composite":true}} +{ + "compilerOptions": { + "composite": true + } +} /a/lib/tsc.js -b -w app @@ -35,8 +39,15 @@ Output:: -Program root files: ["/user/username/projects/solution/app/fileWithError.ts","/user/username/projects/solution/app/fileWithoutError.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/solution/app/tsconfig.json"} +Program root files: [ + "/user/username/projects/solution/app/fileWithError.ts", + "/user/username/projects/solution/app/fileWithoutError.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/solution/app/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -195,8 +206,15 @@ Output:: -Program root files: ["/user/username/projects/solution/app/fileWithError.ts","/user/username/projects/solution/app/fileWithoutError.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/solution/app/tsconfig.json"} +Program root files: [ + "/user/username/projects/solution/app/fileWithError.ts", + "/user/username/projects/solution/app/fileWithoutError.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/solution/app/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/declarationEmitErrors/when-file-with-no-error-changes.js b/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/declarationEmitErrors/when-file-with-no-error-changes.js index 165f283b17e1d..5357990871b1a 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/declarationEmitErrors/when-file-with-no-error-changes.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/declarationEmitErrors/when-file-with-no-error-changes.js @@ -23,7 +23,11 @@ export var myClassWithError = class { export class myClass { } //// [/user/username/projects/solution/app/tsconfig.json] -{"compilerOptions":{"composite":true}} +{ + "compilerOptions": { + "composite": true + } +} /a/lib/tsc.js -b -w app @@ -40,8 +44,15 @@ Output:: -Program root files: ["/user/username/projects/solution/app/fileWithError.ts","/user/username/projects/solution/app/fileWithoutError.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/solution/app/tsconfig.json"} +Program root files: [ + "/user/username/projects/solution/app/fileWithError.ts", + "/user/username/projects/solution/app/fileWithoutError.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/solution/app/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -96,8 +107,15 @@ Output:: -Program root files: ["/user/username/projects/solution/app/fileWithError.ts","/user/username/projects/solution/app/fileWithoutError.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/solution/app/tsconfig.json"} +Program root files: [ + "/user/username/projects/solution/app/fileWithError.ts", + "/user/username/projects/solution/app/fileWithoutError.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/solution/app/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/declarationEmitErrors/when-fixing-error-files-all-files-are-emitted.js b/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/declarationEmitErrors/when-fixing-error-files-all-files-are-emitted.js index 6f02ffe700901..b0e73e19f5497 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/declarationEmitErrors/when-fixing-error-files-all-files-are-emitted.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/declarationEmitErrors/when-fixing-error-files-all-files-are-emitted.js @@ -23,7 +23,11 @@ export var myClassWithError = class { export class myClass { } //// [/user/username/projects/solution/app/tsconfig.json] -{"compilerOptions":{"composite":true}} +{ + "compilerOptions": { + "composite": true + } +} /a/lib/tsc.js -b -w app @@ -40,8 +44,15 @@ Output:: -Program root files: ["/user/username/projects/solution/app/fileWithError.ts","/user/username/projects/solution/app/fileWithoutError.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/solution/app/tsconfig.json"} +Program root files: [ + "/user/username/projects/solution/app/fileWithError.ts", + "/user/username/projects/solution/app/fileWithoutError.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/solution/app/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -94,8 +105,15 @@ Output:: -Program root files: ["/user/username/projects/solution/app/fileWithError.ts","/user/username/projects/solution/app/fileWithoutError.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/solution/app/tsconfig.json"} +Program root files: [ + "/user/username/projects/solution/app/fileWithError.ts", + "/user/username/projects/solution/app/fileWithoutError.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/solution/app/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/when-preserveWatchOutput-is-not-used.js b/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/when-preserveWatchOutput-is-not-used.js index c6edeff33bf87..cb4ba6ae4dc40 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/when-preserveWatchOutput-is-not-used.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/when-preserveWatchOutput-is-not-used.js @@ -1,4 +1,4 @@ -currentDirectory:: /user/username/projects useCaseSensitiveFileNames: false +currentDirectory:: /user/username/projects/sample1 useCaseSensitiveFileNames: false Input:: //// [/a/lib/lib.d.ts] /// @@ -14,124 +14,138 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/sample1/core/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - } +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + } } //// [/user/username/projects/sample1/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } + +//// [/user/username/projects/sample1/core/some_decl.d.ts] +declare const dts: any; //// [/user/username/projects/sample1/core/anotherModule.ts] export const World = "hello"; - //// [/user/username/projects/sample1/logic/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../core" } - ] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + }, + "references": [ + { + "path": "../core" + } + ] } - //// [/user/username/projects/sample1/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; //// [/user/username/projects/sample1/tests/tsconfig.json] -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" } - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - } +{ + "references": [ + { + "path": "../core" + }, + { + "path": "../logic" + } + ], + "files": [ + "index.ts" + ], + "compilerOptions": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + } } //// [/user/username/projects/sample1/tests/index.ts] -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; - - -//// [/user/username/projects/sample1/ui/tsconfig.json] -{ - "compilerOptions": { - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../logic/index" } - ] -} - - -//// [/user/username/projects/sample1/ui/index.ts] -import * as logic from '../logic'; - -export function run() { - console.log(logic.getSecondsInDay()); -} +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; -/a/lib/tsc.js -b -w sample1/tests +/a/lib/tsc.js -b -w tests Output:: >> Screen clear -[12:00:45 AM] Starting compilation in watch mode... +[12:00:39 AM] Starting compilation in watch mode... -[12:01:23 AM] Found 0 errors. Watching for file changes. +[12:01:17 AM] Found 0 errors. Watching for file changes. -Program root files: ["/user/username/projects/sample1/core/anotherModule.ts","/user/username/projects/sample1/core/index.ts"] -Program options: {"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/core/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/core/anotherModule.ts", + "/user/username/projects/sample1/core/index.ts", + "/user/username/projects/sample1/core/some_decl.d.ts" +] +Program options: { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/core/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts /user/username/projects/sample1/core/anotherModule.ts /user/username/projects/sample1/core/index.ts +/user/username/projects/sample1/core/some_decl.d.ts Semantic diagnostics in builder refreshed for:: /a/lib/lib.d.ts /user/username/projects/sample1/core/anotherModule.ts /user/username/projects/sample1/core/index.ts +/user/username/projects/sample1/core/some_decl.d.ts Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) /user/username/projects/sample1/core/anothermodule.ts (computed .d.ts during emit) /user/username/projects/sample1/core/index.ts (computed .d.ts during emit) - -Program root files: ["/user/username/projects/sample1/logic/index.ts"] -Program options: {"composite":true,"declaration":true,"sourceMap":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/logic/tsconfig.json"} +/user/username/projects/sample1/core/some_decl.d.ts (used version) + +Program root files: [ + "/user/username/projects/sample1/logic/index.ts" +] +Program options: { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/logic/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -151,8 +165,17 @@ Shape signatures in builder refreshed for:: /user/username/projects/sample1/core/anothermodule.d.ts (used version) /user/username/projects/sample1/logic/index.ts (computed .d.ts during emit) -Program root files: ["/user/username/projects/sample1/tests/index.ts"] -Program options: {"composite":true,"declaration":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/tests/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/tests/index.ts" +] +Program options: { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/tests/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -180,6 +203,8 @@ FsWatches:: {} /user/username/projects/sample1/core/index.ts: *new* {} +/user/username/projects/sample1/core/some_decl.d.ts: *new* + {} /user/username/projects/sample1/core/tsconfig.json: *new* {} /user/username/projects/sample1/logic/index.ts: *new* @@ -234,7 +259,7 @@ export declare function multiply(a: number, b: number): number; //# sourceMappingURL=index.d.ts.map //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\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"}],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -242,7 +267,8 @@ export declare function multiply(a: number, b: number): number; "fileNames": [ "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", - "./index.ts" + "./index.ts", + "./some_decl.d.ts" ], "fileInfos": { "../../../../../a/lib/lib.d.ts": { @@ -256,29 +282,41 @@ export declare function multiply(a: number, b: number): number; }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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" }, - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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" + }, + "./some_decl.d.ts": { + "original": { + "version": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true + }, + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true } }, "root": [ [ - 2, - "./anothermodule.ts" - ], - [ - 3, - "./index.ts" + [ + 2, + 4 + ], + [ + "./anothermodule.ts", + "./index.ts", + "./some_decl.d.ts" + ] ] ], "options": { @@ -292,12 +330,13 @@ export declare function multiply(a: number, b: number): number; "semanticDiagnosticsPerFile": [ "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", - "./index.ts" + "./index.ts", + "./some_decl.d.ts" ], "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1305 + "size": 1394 } //// [/user/username/projects/sample1/logic/index.js.map] @@ -323,7 +362,7 @@ export declare const m: typeof mod; //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -363,10 +402,10 @@ export declare const m: typeof mod; }, "./index.ts": { "original": { - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -402,7 +441,7 @@ export declare const m: typeof mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1443 + "size": 1431 } //// [/user/username/projects/sample1/tests/index.js] @@ -423,7 +462,7 @@ export declare const m: typeof mod; //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -469,10 +508,10 @@ export declare const m: typeof mod; }, "./index.ts": { "original": { - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -515,7 +554,7 @@ export declare const m: typeof mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1588 + "size": 1573 } @@ -523,12 +562,12 @@ Change:: change logic Input:: //// [/user/username/projects/sample1/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; let y: string = 10; @@ -538,19 +577,29 @@ Before running Timeout callback:: count: 1 After running Timeout callback:: count: 0 Output:: >> Screen clear -[12:01:27 AM] File change detected. Starting incremental compilation... +[12:01:20 AM] File change detected. Starting incremental compilation... -sample1/logic/index.ts:8:5 - error TS2322: Type 'number' is not assignable to type 'string'. +logic/index.ts:8:5 - error TS2322: Type 'number' is not assignable to type 'string'. 8 let y: string = 10;    ~ -[12:01:35 AM] Found 1 error. Watching for file changes. +[12:01:28 AM] Found 1 error. Watching for file changes. -Program root files: ["/user/username/projects/sample1/logic/index.ts"] -Program options: {"composite":true,"declaration":true,"sourceMap":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/logic/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/logic/index.ts" +] +Program options: { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/logic/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -567,7 +616,7 @@ Shape signatures in builder refreshed for:: exitCode:: ExitStatus.undefined //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"-5445152744-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n\nlet y: string = 10;","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,[4,[{"file":"./index.ts","start":184,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]]],"affectedFilesPendingEmit":[4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"-5319769398-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n\nlet y: string = 10;","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,[4,[{"file":"./index.ts","start":178,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]]],"affectedFilesPendingEmit":[4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -607,10 +656,10 @@ exitCode:: ExitStatus.undefined }, "./index.ts": { "original": { - "version": "-5445152744-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n\nlet y: string = 10;", + "version": "-5319769398-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n\nlet y: string = 10;", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "-5445152744-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n\nlet y: string = 10;", + "version": "-5319769398-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n\nlet y: string = 10;", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -646,7 +695,7 @@ exitCode:: ExitStatus.undefined [ { "file": "./index.ts", - "start": 184, + "start": 178, "length": 1, "code": 2322, "category": 1, @@ -664,7 +713,7 @@ exitCode:: ExitStatus.undefined "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1635 + "size": 1623 } @@ -672,9 +721,9 @@ Change:: change core Input:: //// [/user/username/projects/sample1/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } let x: string = 10; @@ -684,29 +733,41 @@ Before running Timeout callback:: count: 1 After running Timeout callback:: count: 0 Output:: >> Screen clear -[12:01:39 AM] File change detected. Starting incremental compilation... +[12:01:31 AM] File change detected. Starting incremental compilation... -sample1/core/index.ts:5:5 - error TS2322: Type 'number' is not assignable to type 'string'. +core/index.ts:5:5 - error TS2322: Type 'number' is not assignable to type 'string'. 5 let x: string = 10;    ~ -sample1/logic/index.ts:8:5 - error TS2322: Type 'number' is not assignable to type 'string'. +logic/index.ts:8:5 - error TS2322: Type 'number' is not assignable to type 'string'. 8 let y: string = 10;    ~ -[12:01:47 AM] Found 2 errors. Watching for file changes. +[12:01:39 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/sample1/core/anotherModule.ts","/user/username/projects/sample1/core/index.ts"] -Program options: {"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/core/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/core/anotherModule.ts", + "/user/username/projects/sample1/core/index.ts", + "/user/username/projects/sample1/core/some_decl.d.ts" +] +Program options: { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/core/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts /user/username/projects/sample1/core/anotherModule.ts /user/username/projects/sample1/core/index.ts +/user/username/projects/sample1/core/some_decl.d.ts Semantic diagnostics in builder refreshed for:: /user/username/projects/sample1/core/index.ts @@ -717,7 +778,7 @@ Shape signatures in builder refreshed for:: exitCode:: ExitStatus.undefined //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-17094159457-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nlet x: string = 10;","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"}],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"./index.ts","start":186,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]]],"affectedFilesPendingEmit":[3],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15390729096-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nlet x: string = 10;","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"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"./index.ts","start":183,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]],4],"affectedFilesPendingEmit":[3],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -725,7 +786,8 @@ exitCode:: ExitStatus.undefined "fileNames": [ "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", - "./index.ts" + "./index.ts", + "./some_decl.d.ts" ], "fileInfos": { "../../../../../a/lib/lib.d.ts": { @@ -739,29 +801,41 @@ exitCode:: ExitStatus.undefined }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-17094159457-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nlet x: string = 10;", + "version": "-15390729096-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nlet x: string = 10;", "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" }, - "version": "-17094159457-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nlet x: string = 10;", + "version": "-15390729096-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nlet x: string = 10;", "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" + }, + "./some_decl.d.ts": { + "original": { + "version": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true + }, + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true } }, "root": [ [ - 2, - "./anothermodule.ts" - ], - [ - 3, - "./index.ts" + [ + 2, + 4 + ], + [ + "./anothermodule.ts", + "./index.ts", + "./some_decl.d.ts" + ] ] ], "options": { @@ -780,14 +854,15 @@ exitCode:: ExitStatus.undefined [ { "file": "./index.ts", - "start": 186, + "start": 183, "length": 1, "code": 2322, "category": 1, "messageText": "Type 'number' is not assignable to type 'string'." } ] - ] + ], + "./some_decl.d.ts" ], "affectedFilesPendingEmit": [ [ @@ -798,6 +873,6 @@ exitCode:: ExitStatus.undefined "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1497 + "size": 1586 } diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/when-preserveWatchOutput-is-passed-on-command-line.js b/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/when-preserveWatchOutput-is-passed-on-command-line.js index 49741378f06f5..a1b021207d413 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/when-preserveWatchOutput-is-passed-on-command-line.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/when-preserveWatchOutput-is-passed-on-command-line.js @@ -1,4 +1,4 @@ -currentDirectory:: /user/username/projects useCaseSensitiveFileNames: false +currentDirectory:: /user/username/projects/sample1 useCaseSensitiveFileNames: false Input:: //// [/a/lib/lib.d.ts] /// @@ -14,123 +14,139 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/sample1/core/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - } +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + } } //// [/user/username/projects/sample1/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } + +//// [/user/username/projects/sample1/core/some_decl.d.ts] +declare const dts: any; //// [/user/username/projects/sample1/core/anotherModule.ts] export const World = "hello"; - //// [/user/username/projects/sample1/logic/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../core" } - ] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + }, + "references": [ + { + "path": "../core" + } + ] } - //// [/user/username/projects/sample1/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; //// [/user/username/projects/sample1/tests/tsconfig.json] -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" } - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - } +{ + "references": [ + { + "path": "../core" + }, + { + "path": "../logic" + } + ], + "files": [ + "index.ts" + ], + "compilerOptions": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + } } //// [/user/username/projects/sample1/tests/index.ts] -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; - - -//// [/user/username/projects/sample1/ui/tsconfig.json] -{ - "compilerOptions": { - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../logic/index" } - ] -} - - -//// [/user/username/projects/sample1/ui/index.ts] -import * as logic from '../logic'; - -export function run() { - console.log(logic.getSecondsInDay()); -} +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; -/a/lib/tsc.js -b -w sample1/tests --preserveWatchOutput +/a/lib/tsc.js -b -w tests --preserveWatchOutput Output:: -[12:00:45 AM] Starting compilation in watch mode... +[12:00:39 AM] Starting compilation in watch mode... -[12:01:23 AM] Found 0 errors. Watching for file changes. +[12:01:17 AM] Found 0 errors. Watching for file changes. -Program root files: ["/user/username/projects/sample1/core/anotherModule.ts","/user/username/projects/sample1/core/index.ts"] -Program options: {"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true,"watch":true,"preserveWatchOutput":true,"configFilePath":"/user/username/projects/sample1/core/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/core/anotherModule.ts", + "/user/username/projects/sample1/core/index.ts", + "/user/username/projects/sample1/core/some_decl.d.ts" +] +Program options: { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true, + "watch": true, + "preserveWatchOutput": true, + "configFilePath": "/user/username/projects/sample1/core/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts /user/username/projects/sample1/core/anotherModule.ts /user/username/projects/sample1/core/index.ts +/user/username/projects/sample1/core/some_decl.d.ts Semantic diagnostics in builder refreshed for:: /a/lib/lib.d.ts /user/username/projects/sample1/core/anotherModule.ts /user/username/projects/sample1/core/index.ts +/user/username/projects/sample1/core/some_decl.d.ts Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) /user/username/projects/sample1/core/anothermodule.ts (computed .d.ts during emit) /user/username/projects/sample1/core/index.ts (computed .d.ts during emit) - -Program root files: ["/user/username/projects/sample1/logic/index.ts"] -Program options: {"composite":true,"declaration":true,"sourceMap":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"watch":true,"preserveWatchOutput":true,"configFilePath":"/user/username/projects/sample1/logic/tsconfig.json"} +/user/username/projects/sample1/core/some_decl.d.ts (used version) + +Program root files: [ + "/user/username/projects/sample1/logic/index.ts" +] +Program options: { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "watch": true, + "preserveWatchOutput": true, + "configFilePath": "/user/username/projects/sample1/logic/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -150,8 +166,18 @@ Shape signatures in builder refreshed for:: /user/username/projects/sample1/core/anothermodule.d.ts (used version) /user/username/projects/sample1/logic/index.ts (computed .d.ts during emit) -Program root files: ["/user/username/projects/sample1/tests/index.ts"] -Program options: {"composite":true,"declaration":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"watch":true,"preserveWatchOutput":true,"configFilePath":"/user/username/projects/sample1/tests/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/tests/index.ts" +] +Program options: { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "watch": true, + "preserveWatchOutput": true, + "configFilePath": "/user/username/projects/sample1/tests/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -179,6 +205,8 @@ FsWatches:: {} /user/username/projects/sample1/core/index.ts: *new* {} +/user/username/projects/sample1/core/some_decl.d.ts: *new* + {} /user/username/projects/sample1/core/tsconfig.json: *new* {} /user/username/projects/sample1/logic/index.ts: *new* @@ -233,7 +261,7 @@ export declare function multiply(a: number, b: number): number; //# sourceMappingURL=index.d.ts.map //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\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"}],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -241,7 +269,8 @@ export declare function multiply(a: number, b: number): number; "fileNames": [ "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", - "./index.ts" + "./index.ts", + "./some_decl.d.ts" ], "fileInfos": { "../../../../../a/lib/lib.d.ts": { @@ -255,29 +284,41 @@ export declare function multiply(a: number, b: number): number; }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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" }, - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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" + }, + "./some_decl.d.ts": { + "original": { + "version": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true + }, + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true } }, "root": [ [ - 2, - "./anothermodule.ts" - ], - [ - 3, - "./index.ts" + [ + 2, + 4 + ], + [ + "./anothermodule.ts", + "./index.ts", + "./some_decl.d.ts" + ] ] ], "options": { @@ -291,12 +332,13 @@ export declare function multiply(a: number, b: number): number; "semanticDiagnosticsPerFile": [ "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", - "./index.ts" + "./index.ts", + "./some_decl.d.ts" ], "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1305 + "size": 1394 } //// [/user/username/projects/sample1/logic/index.js.map] @@ -322,7 +364,7 @@ export declare const m: typeof mod; //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -362,10 +404,10 @@ export declare const m: typeof mod; }, "./index.ts": { "original": { - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -401,7 +443,7 @@ export declare const m: typeof mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1443 + "size": 1431 } //// [/user/username/projects/sample1/tests/index.js] @@ -422,7 +464,7 @@ export declare const m: typeof mod; //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -468,10 +510,10 @@ export declare const m: typeof mod; }, "./index.ts": { "original": { - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -514,7 +556,7 @@ export declare const m: typeof mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1588 + "size": 1573 } @@ -522,12 +564,12 @@ Change:: change logic Input:: //// [/user/username/projects/sample1/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; let y: string = 10; @@ -536,19 +578,30 @@ Before running Timeout callback:: count: 1 1: timerToBuildInvalidatedProject After running Timeout callback:: count: 0 Output:: -[12:01:27 AM] File change detected. Starting incremental compilation... +[12:01:20 AM] File change detected. Starting incremental compilation... -sample1/logic/index.ts:8:5 - error TS2322: Type 'number' is not assignable to type 'string'. +logic/index.ts:8:5 - error TS2322: Type 'number' is not assignable to type 'string'. 8 let y: string = 10;    ~ -[12:01:35 AM] Found 1 error. Watching for file changes. +[12:01:28 AM] Found 1 error. Watching for file changes. -Program root files: ["/user/username/projects/sample1/logic/index.ts"] -Program options: {"composite":true,"declaration":true,"sourceMap":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"watch":true,"preserveWatchOutput":true,"configFilePath":"/user/username/projects/sample1/logic/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/logic/index.ts" +] +Program options: { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "watch": true, + "preserveWatchOutput": true, + "configFilePath": "/user/username/projects/sample1/logic/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -565,7 +618,7 @@ Shape signatures in builder refreshed for:: exitCode:: ExitStatus.undefined //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"-5445152744-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n\nlet y: string = 10;","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,[4,[{"file":"./index.ts","start":184,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]]],"affectedFilesPendingEmit":[4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"-5319769398-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n\nlet y: string = 10;","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,[4,[{"file":"./index.ts","start":178,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]]],"affectedFilesPendingEmit":[4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -605,10 +658,10 @@ exitCode:: ExitStatus.undefined }, "./index.ts": { "original": { - "version": "-5445152744-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n\nlet y: string = 10;", + "version": "-5319769398-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n\nlet y: string = 10;", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "-5445152744-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n\nlet y: string = 10;", + "version": "-5319769398-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n\nlet y: string = 10;", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -644,7 +697,7 @@ exitCode:: ExitStatus.undefined [ { "file": "./index.ts", - "start": 184, + "start": 178, "length": 1, "code": 2322, "category": 1, @@ -662,7 +715,7 @@ exitCode:: ExitStatus.undefined "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1635 + "size": 1623 } @@ -670,9 +723,9 @@ Change:: change core Input:: //// [/user/username/projects/sample1/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } let x: string = 10; @@ -681,29 +734,42 @@ Before running Timeout callback:: count: 1 2: timerToBuildInvalidatedProject After running Timeout callback:: count: 0 Output:: -[12:01:39 AM] File change detected. Starting incremental compilation... +[12:01:31 AM] File change detected. Starting incremental compilation... -sample1/core/index.ts:5:5 - error TS2322: Type 'number' is not assignable to type 'string'. +core/index.ts:5:5 - error TS2322: Type 'number' is not assignable to type 'string'. 5 let x: string = 10;    ~ -sample1/logic/index.ts:8:5 - error TS2322: Type 'number' is not assignable to type 'string'. +logic/index.ts:8:5 - error TS2322: Type 'number' is not assignable to type 'string'. 8 let y: string = 10;    ~ -[12:01:47 AM] Found 2 errors. Watching for file changes. +[12:01:39 AM] Found 2 errors. Watching for file changes. -Program root files: ["/user/username/projects/sample1/core/anotherModule.ts","/user/username/projects/sample1/core/index.ts"] -Program options: {"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true,"watch":true,"preserveWatchOutput":true,"configFilePath":"/user/username/projects/sample1/core/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/core/anotherModule.ts", + "/user/username/projects/sample1/core/index.ts", + "/user/username/projects/sample1/core/some_decl.d.ts" +] +Program options: { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true, + "watch": true, + "preserveWatchOutput": true, + "configFilePath": "/user/username/projects/sample1/core/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts /user/username/projects/sample1/core/anotherModule.ts /user/username/projects/sample1/core/index.ts +/user/username/projects/sample1/core/some_decl.d.ts Semantic diagnostics in builder refreshed for:: /user/username/projects/sample1/core/index.ts @@ -714,7 +780,7 @@ Shape signatures in builder refreshed for:: exitCode:: ExitStatus.undefined //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-17094159457-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nlet x: string = 10;","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"}],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"./index.ts","start":186,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]]],"affectedFilesPendingEmit":[3],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15390729096-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nlet x: string = 10;","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"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"./index.ts","start":183,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]],4],"affectedFilesPendingEmit":[3],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -722,7 +788,8 @@ exitCode:: ExitStatus.undefined "fileNames": [ "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", - "./index.ts" + "./index.ts", + "./some_decl.d.ts" ], "fileInfos": { "../../../../../a/lib/lib.d.ts": { @@ -736,29 +803,41 @@ exitCode:: ExitStatus.undefined }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-17094159457-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nlet x: string = 10;", + "version": "-15390729096-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nlet x: string = 10;", "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" }, - "version": "-17094159457-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nlet x: string = 10;", + "version": "-15390729096-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nlet x: string = 10;", "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" + }, + "./some_decl.d.ts": { + "original": { + "version": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true + }, + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true } }, "root": [ [ - 2, - "./anothermodule.ts" - ], - [ - 3, - "./index.ts" + [ + 2, + 4 + ], + [ + "./anothermodule.ts", + "./index.ts", + "./some_decl.d.ts" + ] ] ], "options": { @@ -777,14 +856,15 @@ exitCode:: ExitStatus.undefined [ { "file": "./index.ts", - "start": 186, + "start": 183, "length": 1, "code": 2322, "category": 1, "messageText": "Type 'number' is not assignable to type 'string'." } ] - ] + ], + "./some_decl.d.ts" ], "affectedFilesPendingEmit": [ [ @@ -795,6 +875,6 @@ exitCode:: ExitStatus.undefined "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1497 + "size": 1586 } diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit-with-outDir-specified.js b/tests/baselines/reference/tsbuildWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit-with-outDir-specified.js index e64847ff5a27d..28945f4c70ec2 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit-with-outDir-specified.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit-with-outDir-specified.js @@ -14,58 +14,136 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/sample1/core/tsconfig.json] -{"compilerOptions":{"composite":true,"outDir":"outDir"}} +{ + "compilerOptions": { + "composite": true, + "outDir": "outDir" + } +} //// [/user/username/projects/sample1/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } + +//// [/user/username/projects/sample1/core/some_decl.d.ts] +declare const dts: any; //// [/user/username/projects/sample1/core/anotherModule.ts] export const World = "hello"; +//// [/user/username/projects/sample1/logic/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + }, + "references": [ + { + "path": "../core" + } + ] +} + +//// [/user/username/projects/sample1/logic/index.ts] +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; + + +//// [/user/username/projects/sample1/tests/tsconfig.json] +{ + "references": [ + { + "path": "../core" + }, + { + "path": "../logic" + } + ], + "files": [ + "index.ts" + ], + "compilerOptions": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + } +} + +//// [/user/username/projects/sample1/tests/index.ts] +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; + /a/lib/tsc.js -b -w sample1/core -verbose Output:: >> Screen clear -[12:00:27 AM] Starting compilation in watch mode... +[12:00:39 AM] Starting compilation in watch mode... -[12:00:28 AM] Projects in this build: +[12:00:40 AM] Projects in this build: * sample1/core/tsconfig.json -[12:00:29 AM] Project 'sample1/core/tsconfig.json' is out of date because output file 'sample1/core/outDir/tsconfig.tsbuildinfo' does not exist +[12:00:41 AM] Project 'sample1/core/tsconfig.json' is out of date because output file 'sample1/core/outDir/tsconfig.tsbuildinfo' does not exist -[12:00:30 AM] Building project '/user/username/projects/sample1/core/tsconfig.json'... +[12:00:42 AM] Building project '/user/username/projects/sample1/core/tsconfig.json'... -[12:00:47 AM] Found 0 errors. Watching for file changes. +[12:00:59 AM] Found 0 errors. Watching for file changes. -Program root files: ["/user/username/projects/sample1/core/anotherModule.ts","/user/username/projects/sample1/core/index.ts"] -Program options: {"composite":true,"outDir":"/user/username/projects/sample1/core/outDir","watch":true,"configFilePath":"/user/username/projects/sample1/core/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/core/anotherModule.ts", + "/user/username/projects/sample1/core/index.ts", + "/user/username/projects/sample1/core/some_decl.d.ts" +] +Program options: { + "composite": true, + "outDir": "/user/username/projects/sample1/core/outDir", + "watch": true, + "configFilePath": "/user/username/projects/sample1/core/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts /user/username/projects/sample1/core/anotherModule.ts /user/username/projects/sample1/core/index.ts +/user/username/projects/sample1/core/some_decl.d.ts Semantic diagnostics in builder refreshed for:: /a/lib/lib.d.ts /user/username/projects/sample1/core/anotherModule.ts /user/username/projects/sample1/core/index.ts +/user/username/projects/sample1/core/some_decl.d.ts Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) /user/username/projects/sample1/core/anothermodule.ts (computed .d.ts during emit) /user/username/projects/sample1/core/index.ts (computed .d.ts during emit) +/user/username/projects/sample1/core/some_decl.d.ts (used version) FsWatches:: /user/username/projects/sample1/core/anothermodule.ts: *new* {} /user/username/projects/sample1/core/index.ts: *new* {} +/user/username/projects/sample1/core/some_decl.d.ts: *new* + {} /user/username/projects/sample1/core/tsconfig.json: *new* {} @@ -104,7 +182,7 @@ export declare function multiply(a: number, b: number): number; //// [/user/username/projects/sample1/core/outDir/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../anothermodule.ts","../index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\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"}],"root":[2,3],"options":{"composite":true,"outDir":"./"},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../anothermodule.ts","../index.ts","../some_decl.d.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"outDir":"./"},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/outDir/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -112,7 +190,8 @@ export declare function multiply(a: number, b: number): number; "fileNames": [ "../../../../../../a/lib/lib.d.ts", "../anothermodule.ts", - "../index.ts" + "../index.ts", + "../some_decl.d.ts" ], "fileInfos": { "../../../../../../a/lib/lib.d.ts": { @@ -126,29 +205,41 @@ export declare function multiply(a: number, b: number): number; }, "../anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "../index.ts": { "original": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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" }, - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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" + }, + "../some_decl.d.ts": { + "original": { + "version": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true + }, + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true } }, "root": [ [ - 2, - "../anothermodule.ts" - ], - [ - 3, - "../index.ts" + [ + 2, + 4 + ], + [ + "../anothermodule.ts", + "../index.ts", + "../some_decl.d.ts" + ] ] ], "options": { @@ -160,12 +251,13 @@ export declare function multiply(a: number, b: number): number; "semanticDiagnosticsPerFile": [ "../../../../../../a/lib/lib.d.ts", "../anothermodule.ts", - "../index.ts" + "../index.ts", + "../some_decl.d.ts" ], "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1256 + "size": 1346 } @@ -192,24 +284,35 @@ Before running Timeout callback:: count: 1 After running Timeout callback:: count: 0 Output:: >> Screen clear -[12:00:50 AM] File change detected. Starting incremental compilation... +[12:01:02 AM] File change detected. Starting incremental compilation... -[12:00:51 AM] Project 'sample1/core/tsconfig.json' is out of date because output 'sample1/core/outDir/tsconfig.tsbuildinfo' is older than input 'sample1/core/file3.ts' +[12:01:03 AM] Project 'sample1/core/tsconfig.json' is out of date because output 'sample1/core/outDir/tsconfig.tsbuildinfo' is older than input 'sample1/core/file3.ts' -[12:00:52 AM] Building project '/user/username/projects/sample1/core/tsconfig.json'... +[12:01:04 AM] Building project '/user/username/projects/sample1/core/tsconfig.json'... -[12:01:04 AM] Found 0 errors. Watching for file changes. +[12:01:16 AM] Found 0 errors. Watching for file changes. -Program root files: ["/user/username/projects/sample1/core/anotherModule.ts","/user/username/projects/sample1/core/file3.ts","/user/username/projects/sample1/core/index.ts"] -Program options: {"composite":true,"outDir":"/user/username/projects/sample1/core/outDir","watch":true,"configFilePath":"/user/username/projects/sample1/core/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/core/anotherModule.ts", + "/user/username/projects/sample1/core/file3.ts", + "/user/username/projects/sample1/core/index.ts", + "/user/username/projects/sample1/core/some_decl.d.ts" +] +Program options: { + "composite": true, + "outDir": "/user/username/projects/sample1/core/outDir", + "watch": true, + "configFilePath": "/user/username/projects/sample1/core/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts /user/username/projects/sample1/core/anotherModule.ts /user/username/projects/sample1/core/file3.ts /user/username/projects/sample1/core/index.ts +/user/username/projects/sample1/core/some_decl.d.ts Semantic diagnostics in builder refreshed for:: /user/username/projects/sample1/core/file3.ts @@ -224,6 +327,8 @@ FsWatches:: {} /user/username/projects/sample1/core/index.ts: {} +/user/username/projects/sample1/core/some_decl.d.ts: + {} /user/username/projects/sample1/core/tsconfig.json: {} @@ -234,7 +339,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/sample1/core/outDir/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../anothermodule.ts","../file3.ts","../index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-13729955264-export const y = 10;","signature":"-7152472870-export declare const y = 10;\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\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"}],"root":[[2,4]],"options":{"composite":true,"outDir":"./"},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./file3.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../anothermodule.ts","../file3.ts","../index.ts","../some_decl.d.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-13729955264-export const y = 10;","signature":"-7152472870-export declare const y = 10;\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,5]],"options":{"composite":true,"outDir":"./"},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4,5],"latestChangedDtsFile":"./file3.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/outDir/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -243,7 +348,8 @@ exitCode:: ExitStatus.undefined "../../../../../../a/lib/lib.d.ts", "../anothermodule.ts", "../file3.ts", - "../index.ts" + "../index.ts", + "../some_decl.d.ts" ], "fileInfos": { "../../../../../../a/lib/lib.d.ts": { @@ -257,10 +363,10 @@ exitCode:: ExitStatus.undefined }, "../anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "../file3.ts": { @@ -273,23 +379,33 @@ exitCode:: ExitStatus.undefined }, "../index.ts": { "original": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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" }, - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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" + }, + "../some_decl.d.ts": { + "original": { + "version": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true + }, + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true } }, "root": [ [ [ 2, - 4 + 5 ], [ "../anothermodule.ts", "../file3.ts", - "../index.ts" + "../index.ts", + "../some_decl.d.ts" ] ] ], @@ -303,12 +419,13 @@ exitCode:: ExitStatus.undefined "../../../../../../a/lib/lib.d.ts", "../anothermodule.ts", "../file3.ts", - "../index.ts" + "../index.ts", + "../some_decl.d.ts" ], "latestChangedDtsFile": "./file3.d.ts" }, "version": "FakeTSVersion", - "size": 1379 + "size": 1467 } //// [/user/username/projects/sample1/core/outDir/file3.js] diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit.js b/tests/baselines/reference/tsbuildWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit.js index 96be899153cab..4bdc8a4c4483d 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit.js @@ -1,4 +1,4 @@ -currentDirectory:: /user/username/projects useCaseSensitiveFileNames: false +currentDirectory:: /user/username/projects/sample1 useCaseSensitiveFileNames: false Input:: //// [/a/lib/lib.d.ts] /// @@ -14,65 +14,140 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/sample1/core/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - } +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + } } //// [/user/username/projects/sample1/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } + +//// [/user/username/projects/sample1/core/some_decl.d.ts] +declare const dts: any; //// [/user/username/projects/sample1/core/anotherModule.ts] export const World = "hello"; +//// [/user/username/projects/sample1/logic/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + }, + "references": [ + { + "path": "../core" + } + ] +} + +//// [/user/username/projects/sample1/logic/index.ts] +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; + +//// [/user/username/projects/sample1/tests/tsconfig.json] +{ + "references": [ + { + "path": "../core" + }, + { + "path": "../logic" + } + ], + "files": [ + "index.ts" + ], + "compilerOptions": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + } +} -/a/lib/tsc.js -b -w sample1/core -verbose +//// [/user/username/projects/sample1/tests/index.ts] +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; + + + +/a/lib/tsc.js -b -w core -verbose Output:: >> Screen clear -[12:00:27 AM] Starting compilation in watch mode... +[12:00:39 AM] Starting compilation in watch mode... -[12:00:28 AM] Projects in this build: - * sample1/core/tsconfig.json +[12:00:40 AM] Projects in this build: + * core/tsconfig.json -[12:00:29 AM] Project 'sample1/core/tsconfig.json' is out of date because output file 'sample1/core/tsconfig.tsbuildinfo' does not exist +[12:00:41 AM] Project 'core/tsconfig.json' is out of date because output file 'core/tsconfig.tsbuildinfo' does not exist -[12:00:30 AM] Building project '/user/username/projects/sample1/core/tsconfig.json'... +[12:00:42 AM] Building project '/user/username/projects/sample1/core/tsconfig.json'... -[12:00:48 AM] Found 0 errors. Watching for file changes. +[12:01:00 AM] Found 0 errors. Watching for file changes. -Program root files: ["/user/username/projects/sample1/core/anotherModule.ts","/user/username/projects/sample1/core/index.ts"] -Program options: {"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/core/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/core/anotherModule.ts", + "/user/username/projects/sample1/core/index.ts", + "/user/username/projects/sample1/core/some_decl.d.ts" +] +Program options: { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/core/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts /user/username/projects/sample1/core/anotherModule.ts /user/username/projects/sample1/core/index.ts +/user/username/projects/sample1/core/some_decl.d.ts Semantic diagnostics in builder refreshed for:: /a/lib/lib.d.ts /user/username/projects/sample1/core/anotherModule.ts /user/username/projects/sample1/core/index.ts +/user/username/projects/sample1/core/some_decl.d.ts Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) /user/username/projects/sample1/core/anothermodule.ts (computed .d.ts during emit) /user/username/projects/sample1/core/index.ts (computed .d.ts during emit) +/user/username/projects/sample1/core/some_decl.d.ts (used version) FsWatches:: /user/username/projects/sample1/core/anothermodule.ts: *new* {} /user/username/projects/sample1/core/index.ts: *new* {} +/user/username/projects/sample1/core/some_decl.d.ts: *new* + {} /user/username/projects/sample1/core/tsconfig.json: *new* {} @@ -117,7 +192,7 @@ export declare function multiply(a: number, b: number): number; //# sourceMappingURL=index.d.ts.map //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\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"}],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -125,7 +200,8 @@ export declare function multiply(a: number, b: number): number; "fileNames": [ "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", - "./index.ts" + "./index.ts", + "./some_decl.d.ts" ], "fileInfos": { "../../../../../a/lib/lib.d.ts": { @@ -139,29 +215,41 @@ export declare function multiply(a: number, b: number): number; }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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" }, - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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" + }, + "./some_decl.d.ts": { + "original": { + "version": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true + }, + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true } }, "root": [ [ - 2, - "./anothermodule.ts" - ], - [ - 3, - "./index.ts" + [ + 2, + 4 + ], + [ + "./anothermodule.ts", + "./index.ts", + "./some_decl.d.ts" + ] ] ], "options": { @@ -175,12 +263,13 @@ export declare function multiply(a: number, b: number): number; "semanticDiagnosticsPerFile": [ "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", - "./index.ts" + "./index.ts", + "./some_decl.d.ts" ], "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1305 + "size": 1394 } @@ -207,24 +296,37 @@ Before running Timeout callback:: count: 1 After running Timeout callback:: count: 0 Output:: >> Screen clear -[12:00:51 AM] File change detected. Starting incremental compilation... +[12:01:03 AM] File change detected. Starting incremental compilation... -[12:00:52 AM] Project 'sample1/core/tsconfig.json' is out of date because output 'sample1/core/tsconfig.tsbuildinfo' is older than input 'sample1/core/file3.ts' +[12:01:04 AM] Project 'core/tsconfig.json' is out of date because output 'core/tsconfig.tsbuildinfo' is older than input 'core/file3.ts' -[12:00:53 AM] Building project '/user/username/projects/sample1/core/tsconfig.json'... +[12:01:05 AM] Building project '/user/username/projects/sample1/core/tsconfig.json'... -[12:01:07 AM] Found 0 errors. Watching for file changes. +[12:01:19 AM] Found 0 errors. Watching for file changes. -Program root files: ["/user/username/projects/sample1/core/anotherModule.ts","/user/username/projects/sample1/core/file3.ts","/user/username/projects/sample1/core/index.ts"] -Program options: {"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/core/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/core/anotherModule.ts", + "/user/username/projects/sample1/core/file3.ts", + "/user/username/projects/sample1/core/index.ts", + "/user/username/projects/sample1/core/some_decl.d.ts" +] +Program options: { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/core/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts /user/username/projects/sample1/core/anotherModule.ts /user/username/projects/sample1/core/file3.ts /user/username/projects/sample1/core/index.ts +/user/username/projects/sample1/core/some_decl.d.ts Semantic diagnostics in builder refreshed for:: /user/username/projects/sample1/core/file3.ts @@ -239,6 +341,8 @@ FsWatches:: {} /user/username/projects/sample1/core/index.ts: {} +/user/username/projects/sample1/core/some_decl.d.ts: + {} /user/username/projects/sample1/core/tsconfig.json: {} @@ -249,7 +353,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./file3.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-13729955264-export const y = 10;","signature":"-7152472870-export declare const y = 10;\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\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"}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./file3.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./file3.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-13729955264-export const y = 10;","signature":"-7152472870-export declare const y = 10;\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,5]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4,5],"latestChangedDtsFile":"./file3.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -258,7 +362,8 @@ exitCode:: ExitStatus.undefined "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./file3.ts", - "./index.ts" + "./index.ts", + "./some_decl.d.ts" ], "fileInfos": { "../../../../../a/lib/lib.d.ts": { @@ -272,10 +377,10 @@ exitCode:: ExitStatus.undefined }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./file3.ts": { @@ -288,23 +393,33 @@ exitCode:: ExitStatus.undefined }, "./index.ts": { "original": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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" }, - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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" + }, + "./some_decl.d.ts": { + "original": { + "version": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true + }, + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true } }, "root": [ [ [ 2, - 4 + 5 ], [ "./anothermodule.ts", "./file3.ts", - "./index.ts" + "./index.ts", + "./some_decl.d.ts" ] ] ], @@ -320,12 +435,13 @@ exitCode:: ExitStatus.undefined "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./file3.ts", - "./index.ts" + "./index.ts", + "./some_decl.d.ts" ], "latestChangedDtsFile": "./file3.d.ts" }, "version": "FakeTSVersion", - "size": 1427 + "size": 1514 } //// [/user/username/projects/sample1/core/file3.js] diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/tsbuildinfo-has-error.js b/tests/baselines/reference/tsbuildWatch/programUpdates/tsbuildinfo-has-error.js index 8f22231258ff0..ff697c60eef80 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/tsbuildinfo-has-error.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/tsbuildinfo-has-error.js @@ -32,8 +32,14 @@ Output:: -Program root files: ["/src/project/main.ts"] -Program options: {"watch":true,"incremental":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/main.ts" +] +Program options: { + "watch": true, + "incremental": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/verify-building-references-watches-only-those-projects.js b/tests/baselines/reference/tsbuildWatch/programUpdates/verify-building-references-watches-only-those-projects.js index 3b4c73808d7da..de813f3787815 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/verify-building-references-watches-only-those-projects.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/verify-building-references-watches-only-those-projects.js @@ -1,4 +1,4 @@ -currentDirectory:: /user/username/projects useCaseSensitiveFileNames: false +currentDirectory:: /user/username/projects/sample1 useCaseSensitiveFileNames: false Input:: //// [/a/lib/lib.d.ts] /// @@ -14,124 +14,138 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/sample1/core/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - } +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + } } //// [/user/username/projects/sample1/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } + +//// [/user/username/projects/sample1/core/some_decl.d.ts] +declare const dts: any; //// [/user/username/projects/sample1/core/anotherModule.ts] export const World = "hello"; - //// [/user/username/projects/sample1/logic/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../core" } - ] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + }, + "references": [ + { + "path": "../core" + } + ] } - //// [/user/username/projects/sample1/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; //// [/user/username/projects/sample1/tests/tsconfig.json] -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" } - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - } +{ + "references": [ + { + "path": "../core" + }, + { + "path": "../logic" + } + ], + "files": [ + "index.ts" + ], + "compilerOptions": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + } } //// [/user/username/projects/sample1/tests/index.ts] -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; - - -//// [/user/username/projects/sample1/ui/tsconfig.json] -{ - "compilerOptions": { - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../logic/index" } - ] -} - - -//// [/user/username/projects/sample1/ui/index.ts] -import * as logic from '../logic'; - -export function run() { - console.log(logic.getSecondsInDay()); -} +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; /a/lib/tsc.js --b --w Output:: >> Screen clear -[12:00:45 AM] Starting compilation in watch mode... +[12:00:39 AM] Starting compilation in watch mode... -[12:01:14 AM] Found 0 errors. Watching for file changes. +[12:01:08 AM] Found 0 errors. Watching for file changes. -Program root files: ["/user/username/projects/sample1/core/anotherModule.ts","/user/username/projects/sample1/core/index.ts"] -Program options: {"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/core/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/core/anotherModule.ts", + "/user/username/projects/sample1/core/index.ts", + "/user/username/projects/sample1/core/some_decl.d.ts" +] +Program options: { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/core/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts /user/username/projects/sample1/core/anotherModule.ts /user/username/projects/sample1/core/index.ts +/user/username/projects/sample1/core/some_decl.d.ts Semantic diagnostics in builder refreshed for:: /a/lib/lib.d.ts /user/username/projects/sample1/core/anotherModule.ts /user/username/projects/sample1/core/index.ts +/user/username/projects/sample1/core/some_decl.d.ts Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) /user/username/projects/sample1/core/anothermodule.ts (computed .d.ts during emit) /user/username/projects/sample1/core/index.ts (computed .d.ts during emit) - -Program root files: ["/user/username/projects/sample1/logic/index.ts"] -Program options: {"composite":true,"declaration":true,"sourceMap":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/logic/tsconfig.json"} +/user/username/projects/sample1/core/some_decl.d.ts (used version) + +Program root files: [ + "/user/username/projects/sample1/logic/index.ts" +] +Program options: { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/logic/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -156,6 +170,8 @@ FsWatches:: {} /user/username/projects/sample1/core/index.ts: *new* {} +/user/username/projects/sample1/core/some_decl.d.ts: *new* + {} /user/username/projects/sample1/core/tsconfig.json: *new* {} /user/username/projects/sample1/logic/index.ts: *new* @@ -206,7 +222,7 @@ export declare function multiply(a: number, b: number): number; //# sourceMappingURL=index.d.ts.map //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\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"}],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -214,7 +230,8 @@ export declare function multiply(a: number, b: number): number; "fileNames": [ "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", - "./index.ts" + "./index.ts", + "./some_decl.d.ts" ], "fileInfos": { "../../../../../a/lib/lib.d.ts": { @@ -228,29 +245,41 @@ export declare function multiply(a: number, b: number): number; }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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" }, - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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" + }, + "./some_decl.d.ts": { + "original": { + "version": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true + }, + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true } }, "root": [ [ - 2, - "./anothermodule.ts" - ], - [ - 3, - "./index.ts" + [ + 2, + 4 + ], + [ + "./anothermodule.ts", + "./index.ts", + "./some_decl.d.ts" + ] ] ], "options": { @@ -264,12 +293,13 @@ export declare function multiply(a: number, b: number): number; "semanticDiagnosticsPerFile": [ "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", - "./index.ts" + "./index.ts", + "./some_decl.d.ts" ], "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1305 + "size": 1394 } //// [/user/username/projects/sample1/logic/index.js.map] @@ -295,7 +325,7 @@ export declare const m: typeof mod; //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -335,10 +365,10 @@ export declare const m: typeof mod; }, "./index.ts": { "original": { - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -374,6 +404,6 @@ export declare const m: typeof mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1443 + "size": 1431 } diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/watches-config-files-that-are-not-present.js b/tests/baselines/reference/tsbuildWatch/programUpdates/watches-config-files-that-are-not-present.js index 8297a7ab7d08f..387d8c6ecbddd 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/watches-config-files-that-are-not-present.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/watches-config-files-that-are-not-present.js @@ -1,4 +1,4 @@ -currentDirectory:: /user/username/projects useCaseSensitiveFileNames: false +currentDirectory:: /user/username/projects/sample1 useCaseSensitiveFileNames: false Input:: //// [/a/lib/lib.d.ts] /// @@ -14,89 +14,111 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/sample1/core/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - } +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + } } //// [/user/username/projects/sample1/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } + +//// [/user/username/projects/sample1/core/some_decl.d.ts] +declare const dts: any; //// [/user/username/projects/sample1/core/anotherModule.ts] export const World = "hello"; - //// [/user/username/projects/sample1/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; //// [/user/username/projects/sample1/tests/tsconfig.json] -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" } - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - } +{ + "references": [ + { + "path": "../core" + }, + { + "path": "../logic" + } + ], + "files": [ + "index.ts" + ], + "compilerOptions": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + } } //// [/user/username/projects/sample1/tests/index.ts] -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; -/a/lib/tsc.js -b -w sample1/tests +/a/lib/tsc.js -b -w tests Output:: >> Screen clear -[12:00:37 AM] Starting compilation in watch mode... +[12:00:40 AM] Starting compilation in watch mode... error TS5083: Cannot read file '/user/username/projects/sample1/logic/tsconfig.json'. -[12:00:55 AM] Found 1 error. Watching for file changes. +[12:00:58 AM] Found 1 error. Watching for file changes. -Program root files: ["/user/username/projects/sample1/core/anotherModule.ts","/user/username/projects/sample1/core/index.ts"] -Program options: {"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/core/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/core/anotherModule.ts", + "/user/username/projects/sample1/core/index.ts", + "/user/username/projects/sample1/core/some_decl.d.ts" +] +Program options: { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/core/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts /user/username/projects/sample1/core/anotherModule.ts /user/username/projects/sample1/core/index.ts +/user/username/projects/sample1/core/some_decl.d.ts Semantic diagnostics in builder refreshed for:: /a/lib/lib.d.ts /user/username/projects/sample1/core/anotherModule.ts /user/username/projects/sample1/core/index.ts +/user/username/projects/sample1/core/some_decl.d.ts Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) /user/username/projects/sample1/core/anothermodule.ts (computed .d.ts during emit) /user/username/projects/sample1/core/index.ts (computed .d.ts during emit) +/user/username/projects/sample1/core/some_decl.d.ts (used version) PolledWatches:: /user/username/projects/sample1/logic/tsconfig.json: *new* @@ -107,6 +129,8 @@ FsWatches:: {} /user/username/projects/sample1/core/index.ts: *new* {} +/user/username/projects/sample1/core/some_decl.d.ts: *new* + {} /user/username/projects/sample1/core/tsconfig.json: *new* {} /user/username/projects/sample1/tests/index.ts: *new* @@ -155,7 +179,7 @@ export declare function multiply(a: number, b: number): number; //# sourceMappingURL=index.d.ts.map //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\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"}],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -163,7 +187,8 @@ export declare function multiply(a: number, b: number): number; "fileNames": [ "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", - "./index.ts" + "./index.ts", + "./some_decl.d.ts" ], "fileInfos": { "../../../../../a/lib/lib.d.ts": { @@ -177,29 +202,41 @@ export declare function multiply(a: number, b: number): number; }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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" }, - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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" + }, + "./some_decl.d.ts": { + "original": { + "version": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true + }, + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true } }, "root": [ [ - 2, - "./anothermodule.ts" - ], - [ - 3, - "./index.ts" + [ + 2, + 4 + ], + [ + "./anothermodule.ts", + "./index.ts", + "./some_decl.d.ts" + ] ] ], "options": { @@ -213,12 +250,13 @@ export declare function multiply(a: number, b: number): number; "semanticDiagnosticsPerFile": [ "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", - "./index.ts" + "./index.ts", + "./some_decl.d.ts" ], "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1305 + "size": 1394 } @@ -226,21 +264,22 @@ Change:: Write logic tsconfig and build logic Input:: //// [/user/username/projects/sample1/logic/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../core" } - ] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + }, + "references": [ + { + "path": "../core" + } + ] } - PolledWatches *deleted*:: /user/username/projects/sample1/logic/tsconfig.json: {"pollingInterval":2000} @@ -250,6 +289,8 @@ FsWatches:: {} /user/username/projects/sample1/core/index.ts: {} +/user/username/projects/sample1/core/some_decl.d.ts: + {} /user/username/projects/sample1/core/tsconfig.json: {} /user/username/projects/sample1/logic/tsconfig.json: *new* @@ -271,12 +312,22 @@ Output:: sysLog:: /user/username/projects/sample1/logic/tsconfig.json:: Changing watcher to PresentFileSystemEntryWatcher >> Screen clear -[12:00:58 AM] File change detected. Starting incremental compilation... +[12:01:01 AM] File change detected. Starting incremental compilation... -Program root files: ["/user/username/projects/sample1/logic/index.ts"] -Program options: {"composite":true,"declaration":true,"sourceMap":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/logic/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/logic/index.ts" +] +Program options: { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/logic/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -301,6 +352,8 @@ FsWatches:: {} /user/username/projects/sample1/core/index.ts: {} +/user/username/projects/sample1/core/some_decl.d.ts: + {} /user/username/projects/sample1/core/tsconfig.json: {} /user/username/projects/sample1/logic/index.ts: *new* @@ -343,7 +396,7 @@ export declare const m: typeof mod; //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -383,10 +436,10 @@ export declare const m: typeof mod; }, "./index.ts": { "original": { - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -422,7 +475,7 @@ export declare const m: typeof mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1443 + "size": 1431 } @@ -434,12 +487,21 @@ Before running Timeout callback:: count: 1 3: timerToBuildInvalidatedProject After running Timeout callback:: count: 0 Output:: -[12:01:19 AM] Found 0 errors. Watching for file changes. +[12:01:22 AM] Found 0 errors. Watching for file changes. -Program root files: ["/user/username/projects/sample1/tests/index.ts"] -Program options: {"composite":true,"declaration":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/tests/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/tests/index.ts" +] +Program options: { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/tests/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -482,7 +544,7 @@ export declare const m: typeof mod; //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -528,10 +590,10 @@ export declare const m: typeof mod; }, "./index.ts": { "original": { - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -574,6 +636,6 @@ export declare const m: typeof mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1588 + "size": 1573 } diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/when-referenced-project-change-introduces-error-in-the-down-stream-project-and-then-fixes-it.js b/tests/baselines/reference/tsbuildWatch/programUpdates/when-referenced-project-change-introduces-error-in-the-down-stream-project-and-then-fixes-it.js index 492034a2f85a0..eb19276fbb298 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/when-referenced-project-change-introduces-error-in-the-down-stream-project-and-then-fixes-it.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/when-referenced-project-change-introduces-error-in-the-down-stream-project-and-then-fixes-it.js @@ -28,14 +28,24 @@ export function createSomeObject(): SomeObject } //// [/user/username/projects/sample1/Library/tsconfig.json] -{"compilerOptions":{"composite":true}} +{ + "compilerOptions": { + "composite": true + } +} //// [/user/username/projects/sample1/App/app.ts] import { createSomeObject } from "../Library/library"; createSomeObject().message; //// [/user/username/projects/sample1/App/tsconfig.json] -{"references":[{"path":"../Library"}]} +{ + "references": [ + { + "path": "../Library" + } + ] +} /a/lib/tsc.js -b -w App @@ -47,8 +57,14 @@ Output:: -Program root files: ["/user/username/projects/sample1/Library/library.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/sample1/Library/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/Library/library.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/Library/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -62,8 +78,13 @@ Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) /user/username/projects/sample1/library/library.ts (computed .d.ts during emit) -Program root files: ["/user/username/projects/sample1/App/app.ts"] -Program options: {"watch":true,"configFilePath":"/user/username/projects/sample1/App/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/App/app.ts" +] +Program options: { + "watch": true, + "configFilePath": "/user/username/projects/sample1/App/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -219,8 +240,14 @@ Output:: -Program root files: ["/user/username/projects/sample1/Library/library.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/sample1/Library/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/Library/library.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/Library/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -232,8 +259,13 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /user/username/projects/sample1/library/library.ts (computed .d.ts) -Program root files: ["/user/username/projects/sample1/App/app.ts"] -Program options: {"watch":true,"configFilePath":"/user/username/projects/sample1/App/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/App/app.ts" +] +Program options: { + "watch": true, + "configFilePath": "/user/username/projects/sample1/App/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -354,8 +386,14 @@ Output:: -Program root files: ["/user/username/projects/sample1/Library/library.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/sample1/Library/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/Library/library.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/Library/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -367,8 +405,13 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /user/username/projects/sample1/library/library.ts (computed .d.ts) -Program root files: ["/user/username/projects/sample1/App/app.ts"] -Program options: {"watch":true,"configFilePath":"/user/username/projects/sample1/App/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/App/app.ts" +] +Program options: { + "watch": true, + "configFilePath": "/user/username/projects/sample1/App/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/when-referenced-using-prepend-builds-referencing-project-even-for-non-local-change.js b/tests/baselines/reference/tsbuildWatch/programUpdates/when-referenced-using-prepend-builds-referencing-project-even-for-non-local-change.js index 1e64d87542a0a..72462e5ad307e 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/when-referenced-using-prepend-builds-referencing-project-even-for-non-local-change.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/when-referenced-using-prepend-builds-referencing-project-even-for-non-local-change.js @@ -14,13 +14,32 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/sample1/core/tsconfig.json] -{"compilerOptions":{"composite":true,"declaration":true,"outFile":"index.js"}} +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "outFile": "index.js" + } +} //// [/user/username/projects/sample1/core/index.ts] function foo() { return 10; } //// [/user/username/projects/sample1/logic/tsconfig.json] -{"compilerOptions":{"ignoreDeprecations":"5.0","composite":true,"declaration":true,"outFile":"index.js"},"references":[{"path":"../core","prepend":true}]} +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "composite": true, + "declaration": true, + "outFile": "index.js" + }, + "references": [ + { + "path": "../core", + "prepend": true + } + ] +} //// [/user/username/projects/sample1/logic/index.ts] function bar() { return foo() + 1 }; @@ -35,8 +54,16 @@ Output:: -Program root files: ["/user/username/projects/sample1/core/index.ts"] -Program options: {"composite":true,"declaration":true,"outFile":"/user/username/projects/sample1/core/index.js","watch":true,"configFilePath":"/user/username/projects/sample1/core/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/core/index.ts" +] +Program options: { + "composite": true, + "declaration": true, + "outFile": "/user/username/projects/sample1/core/index.js", + "watch": true, + "configFilePath": "/user/username/projects/sample1/core/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -46,8 +73,17 @@ No cached semantic diagnostics in the builder:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/sample1/logic/index.ts"] -Program options: {"ignoreDeprecations":"5.0","composite":true,"declaration":true,"outFile":"/user/username/projects/sample1/logic/index.js","watch":true,"configFilePath":"/user/username/projects/sample1/logic/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/logic/index.ts" +] +Program options: { + "ignoreDeprecations": "5.0", + "composite": true, + "declaration": true, + "outFile": "/user/username/projects/sample1/logic/index.js", + "watch": true, + "configFilePath": "/user/username/projects/sample1/logic/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -299,12 +335,20 @@ After running Timeout callback:: count: 1 2: timerToBuildInvalidatedProject Output:: >> Screen clear -[12:00:56 AM] File change detected. Starting incremental compilation... +[12:00:55 AM] File change detected. Starting incremental compilation... -Program root files: ["/user/username/projects/sample1/core/index.ts"] -Program options: {"composite":true,"declaration":true,"outFile":"/user/username/projects/sample1/core/index.js","watch":true,"configFilePath":"/user/username/projects/sample1/core/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/core/index.ts" +] +Program options: { + "composite": true, + "declaration": true, + "outFile": "/user/username/projects/sample1/core/index.js", + "watch": true, + "configFilePath": "/user/username/projects/sample1/core/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -411,12 +455,21 @@ Before running Timeout callback:: count: 1 2: timerToBuildInvalidatedProject After running Timeout callback:: count: 0 Output:: -[12:01:29 AM] Found 0 errors. Watching for file changes. +[12:01:28 AM] Found 0 errors. Watching for file changes. -Program root files: ["/user/username/projects/sample1/logic/index.ts"] -Program options: {"ignoreDeprecations":"5.0","composite":true,"declaration":true,"outFile":"/user/username/projects/sample1/logic/index.js","watch":true,"configFilePath":"/user/username/projects/sample1/logic/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/logic/index.ts" +] +Program options: { + "ignoreDeprecations": "5.0", + "composite": true, + "declaration": true, + "outFile": "/user/username/projects/sample1/logic/index.js", + "watch": true, + "configFilePath": "/user/username/projects/sample1/logic/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -574,12 +627,20 @@ After running Timeout callback:: count: 1 4: timerToBuildInvalidatedProject Output:: >> Screen clear -[12:01:33 AM] File change detected. Starting incremental compilation... +[12:01:32 AM] File change detected. Starting incremental compilation... -Program root files: ["/user/username/projects/sample1/core/index.ts"] -Program options: {"composite":true,"declaration":true,"outFile":"/user/username/projects/sample1/core/index.js","watch":true,"configFilePath":"/user/username/projects/sample1/core/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/core/index.ts" +] +Program options: { + "composite": true, + "declaration": true, + "outFile": "/user/username/projects/sample1/core/index.js", + "watch": true, + "configFilePath": "/user/username/projects/sample1/core/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -681,7 +742,7 @@ Before running Timeout callback:: count: 1 4: timerToBuildInvalidatedProject After running Timeout callback:: count: 0 Output:: -[12:02:00 AM] Found 0 errors. Watching for file changes. +[12:01:59 AM] Found 0 errors. Watching for file changes. diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/with-circular-project-reference/builds-when-new-file-is-added,-and-its-subsequent-updates.js b/tests/baselines/reference/tsbuildWatch/programUpdates/with-circular-project-reference/builds-when-new-file-is-added,-and-its-subsequent-updates.js index ab2a0b4a37480..543829ff3fe74 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/with-circular-project-reference/builds-when-new-file-is-added,-and-its-subsequent-updates.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/with-circular-project-reference/builds-when-new-file-is-added,-and-its-subsequent-updates.js @@ -14,66 +14,86 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/sample1/core/tsconfig.json] -{"compilerOptions":{"composite":true,"declaration":true},"references":[{"path":"../tests","circular":true}]} +{ + "compilerOptions": { + "composite": true, + "declaration": true + }, + "references": [ + { + "path": "../tests", + "circular": true + } + ] +} //// [/user/username/projects/sample1/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } + +//// [/user/username/projects/sample1/core/some_decl.d.ts] +declare const dts: any; //// [/user/username/projects/sample1/core/anotherModule.ts] export const World = "hello"; - //// [/user/username/projects/sample1/logic/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../core" } - ] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + }, + "references": [ + { + "path": "../core" + } + ] } - //// [/user/username/projects/sample1/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; //// [/user/username/projects/sample1/tests/tsconfig.json] -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" } - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - } +{ + "references": [ + { + "path": "../core" + }, + { + "path": "../logic" + } + ], + "files": [ + "index.ts" + ], + "compilerOptions": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + } } //// [/user/username/projects/sample1/tests/index.ts] -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; @@ -86,26 +106,48 @@ Output:: -Program root files: ["/user/username/projects/sample1/core/anotherModule.ts","/user/username/projects/sample1/core/index.ts"] -Program options: {"composite":true,"declaration":true,"watch":true,"configFilePath":"/user/username/projects/sample1/core/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/core/anotherModule.ts", + "/user/username/projects/sample1/core/index.ts", + "/user/username/projects/sample1/core/some_decl.d.ts" +] +Program options: { + "composite": true, + "declaration": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/core/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts /user/username/projects/sample1/core/anotherModule.ts /user/username/projects/sample1/core/index.ts +/user/username/projects/sample1/core/some_decl.d.ts Semantic diagnostics in builder refreshed for:: /a/lib/lib.d.ts /user/username/projects/sample1/core/anotherModule.ts /user/username/projects/sample1/core/index.ts +/user/username/projects/sample1/core/some_decl.d.ts Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) /user/username/projects/sample1/core/anothermodule.ts (computed .d.ts during emit) /user/username/projects/sample1/core/index.ts (computed .d.ts during emit) - -Program root files: ["/user/username/projects/sample1/logic/index.ts"] -Program options: {"composite":true,"declaration":true,"sourceMap":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/logic/tsconfig.json"} +/user/username/projects/sample1/core/some_decl.d.ts (used version) + +Program root files: [ + "/user/username/projects/sample1/logic/index.ts" +] +Program options: { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/logic/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -125,8 +167,17 @@ Shape signatures in builder refreshed for:: /user/username/projects/sample1/core/anothermodule.d.ts (used version) /user/username/projects/sample1/logic/index.ts (computed .d.ts during emit) -Program root files: ["/user/username/projects/sample1/tests/index.ts"] -Program options: {"composite":true,"declaration":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/tests/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/tests/index.ts" +] +Program options: { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/tests/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -154,6 +205,8 @@ FsWatches:: {} /user/username/projects/sample1/core/index.ts: *new* {} +/user/username/projects/sample1/core/some_decl.d.ts: *new* + {} /user/username/projects/sample1/core/tsconfig.json: *new* {} /user/username/projects/sample1/logic/index.ts: *new* @@ -202,7 +255,7 @@ export declare function multiply(a: number, b: number): number; //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\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"}],"root":[2,3],"options":{"composite":true,"declaration":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -210,7 +263,8 @@ export declare function multiply(a: number, b: number): number; "fileNames": [ "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", - "./index.ts" + "./index.ts", + "./some_decl.d.ts" ], "fileInfos": { "../../../../../a/lib/lib.d.ts": { @@ -224,29 +278,41 @@ export declare function multiply(a: number, b: number): number; }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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" }, - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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" + }, + "./some_decl.d.ts": { + "original": { + "version": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true + }, + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true } }, "root": [ [ - 2, - "./anothermodule.ts" - ], - [ - 3, - "./index.ts" + [ + 2, + 4 + ], + [ + "./anothermodule.ts", + "./index.ts", + "./some_decl.d.ts" + ] ] ], "options": { @@ -258,12 +324,13 @@ export declare function multiply(a: number, b: number): number; "semanticDiagnosticsPerFile": [ "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", - "./index.ts" + "./index.ts", + "./some_decl.d.ts" ], "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1256 + "size": 1345 } //// [/user/username/projects/sample1/logic/index.js.map] @@ -289,7 +356,7 @@ export declare const m: typeof mod; //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -329,10 +396,10 @@ export declare const m: typeof mod; }, "./index.ts": { "original": { - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -368,7 +435,7 @@ export declare const m: typeof mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1443 + "size": 1431 } //// [/user/username/projects/sample1/tests/index.js] @@ -389,7 +456,7 @@ export declare const m: typeof mod; //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -435,10 +502,10 @@ export declare const m: typeof mod; }, "./index.ts": { "original": { - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -481,7 +548,7 @@ export declare const m: typeof mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1588 + "size": 1573 } @@ -502,14 +569,25 @@ Output:: -Program root files: ["/user/username/projects/sample1/core/anotherModule.ts","/user/username/projects/sample1/core/index.ts","/user/username/projects/sample1/core/newfile.ts"] -Program options: {"composite":true,"declaration":true,"watch":true,"configFilePath":"/user/username/projects/sample1/core/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/core/anotherModule.ts", + "/user/username/projects/sample1/core/index.ts", + "/user/username/projects/sample1/core/newfile.ts", + "/user/username/projects/sample1/core/some_decl.d.ts" +] +Program options: { + "composite": true, + "declaration": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/core/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts /user/username/projects/sample1/core/anotherModule.ts /user/username/projects/sample1/core/index.ts /user/username/projects/sample1/core/newfile.ts +/user/username/projects/sample1/core/some_decl.d.ts Semantic diagnostics in builder refreshed for:: /user/username/projects/sample1/core/newfile.ts @@ -524,6 +602,8 @@ FsWatches:: {} /user/username/projects/sample1/core/newfile.ts: *new* {} +/user/username/projects/sample1/core/some_decl.d.ts: + {} /user/username/projects/sample1/core/tsconfig.json: {} /user/username/projects/sample1/logic/index.ts: @@ -544,7 +624,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./newfile.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\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"},{"version":"-16320201030-export const newFileConst = 30;","signature":"-22941483372-export declare const newFileConst = 30;\n"}],"root":[[2,4]],"options":{"composite":true,"declaration":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./newfile.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./newfile.ts","./some_decl.d.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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"},{"version":"-16320201030-export const newFileConst = 30;","signature":"-22941483372-export declare const newFileConst = 30;\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,5]],"options":{"composite":true,"declaration":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4,5],"latestChangedDtsFile":"./newfile.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -553,7 +633,8 @@ exitCode:: ExitStatus.undefined "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", - "./newfile.ts" + "./newfile.ts", + "./some_decl.d.ts" ], "fileInfos": { "../../../../../a/lib/lib.d.ts": { @@ -567,18 +648,18 @@ exitCode:: ExitStatus.undefined }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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" }, - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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" }, "./newfile.ts": { @@ -588,18 +669,28 @@ exitCode:: ExitStatus.undefined }, "version": "-16320201030-export const newFileConst = 30;", "signature": "-22941483372-export declare const newFileConst = 30;\n" + }, + "./some_decl.d.ts": { + "original": { + "version": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true + }, + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true } }, "root": [ [ [ 2, - 4 + 5 ], [ "./anothermodule.ts", "./index.ts", - "./newfile.ts" + "./newfile.ts", + "./some_decl.d.ts" ] ] ], @@ -613,12 +704,13 @@ exitCode:: ExitStatus.undefined "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", - "./newfile.ts" + "./newfile.ts", + "./some_decl.d.ts" ], "latestChangedDtsFile": "./newfile.d.ts" }, "version": "FakeTSVersion", - "size": 1405 + "size": 1492 } //// [/user/username/projects/sample1/core/newfile.js] @@ -645,8 +737,18 @@ Output:: -Program root files: ["/user/username/projects/sample1/logic/index.ts"] -Program options: {"composite":true,"declaration":true,"sourceMap":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/logic/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/logic/index.ts" +] +Program options: { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/logic/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -658,8 +760,17 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/sample1/tests/index.ts"] -Program options: {"composite":true,"declaration":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/tests/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/tests/index.ts" +] +Program options: { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/tests/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -691,18 +802,29 @@ After running Timeout callback:: count: 1 4: timerToBuildInvalidatedProject Output:: >> Screen clear -[12:01:34 AM] File change detected. Starting incremental compilation... +[12:01:33 AM] File change detected. Starting incremental compilation... -Program root files: ["/user/username/projects/sample1/core/anotherModule.ts","/user/username/projects/sample1/core/index.ts","/user/username/projects/sample1/core/newfile.ts"] -Program options: {"composite":true,"declaration":true,"watch":true,"configFilePath":"/user/username/projects/sample1/core/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/core/anotherModule.ts", + "/user/username/projects/sample1/core/index.ts", + "/user/username/projects/sample1/core/newfile.ts", + "/user/username/projects/sample1/core/some_decl.d.ts" +] +Program options: { + "composite": true, + "declaration": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/core/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts /user/username/projects/sample1/core/anotherModule.ts /user/username/projects/sample1/core/index.ts /user/username/projects/sample1/core/newfile.ts +/user/username/projects/sample1/core/some_decl.d.ts Semantic diagnostics in builder refreshed for:: /user/username/projects/sample1/core/newfile.ts @@ -713,7 +835,7 @@ Shape signatures in builder refreshed for:: exitCode:: ExitStatus.undefined //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./newfile.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\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"},{"version":"-9703836816-export const newFileConst = 30;\nexport class someClass2 { }","signature":"-12384508924-export declare const newFileConst = 30;\nexport declare class someClass2 {\n}\n"}],"root":[[2,4]],"options":{"composite":true,"declaration":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./newfile.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./newfile.ts","./some_decl.d.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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"},{"version":"-9703836816-export const newFileConst = 30;\nexport class someClass2 { }","signature":"-12384508924-export declare const newFileConst = 30;\nexport declare class someClass2 {\n}\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,5]],"options":{"composite":true,"declaration":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4,5],"latestChangedDtsFile":"./newfile.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -722,7 +844,8 @@ exitCode:: ExitStatus.undefined "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", - "./newfile.ts" + "./newfile.ts", + "./some_decl.d.ts" ], "fileInfos": { "../../../../../a/lib/lib.d.ts": { @@ -736,18 +859,18 @@ exitCode:: ExitStatus.undefined }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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" }, - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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" }, "./newfile.ts": { @@ -757,18 +880,28 @@ exitCode:: ExitStatus.undefined }, "version": "-9703836816-export const newFileConst = 30;\nexport class someClass2 { }", "signature": "-12384508924-export declare const newFileConst = 30;\nexport declare class someClass2 {\n}\n" + }, + "./some_decl.d.ts": { + "original": { + "version": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true + }, + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true } }, "root": [ [ [ 2, - 4 + 5 ], [ "./anothermodule.ts", "./index.ts", - "./newfile.ts" + "./newfile.ts", + "./some_decl.d.ts" ] ] ], @@ -782,12 +915,13 @@ exitCode:: ExitStatus.undefined "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", - "./newfile.ts" + "./newfile.ts", + "./some_decl.d.ts" ], "latestChangedDtsFile": "./newfile.d.ts" }, "version": "FakeTSVersion", - "size": 1471 + "size": 1558 } //// [/user/username/projects/sample1/core/newfile.js] @@ -818,12 +952,22 @@ Before running Timeout callback:: count: 1 4: timerToBuildInvalidatedProject After running Timeout callback:: count: 0 Output:: -[12:01:50 AM] Found 0 errors. Watching for file changes. +[12:01:49 AM] Found 0 errors. Watching for file changes. -Program root files: ["/user/username/projects/sample1/logic/index.ts"] -Program options: {"composite":true,"declaration":true,"sourceMap":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/logic/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/logic/index.ts" +] +Program options: { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/logic/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -835,8 +979,17 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/sample1/tests/index.ts"] -Program options: {"composite":true,"declaration":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/tests/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/tests/index.ts" +] +Program options: { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/tests/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/with-circular-project-reference/change-builds-changes-and-reports-found-errors-message.js b/tests/baselines/reference/tsbuildWatch/programUpdates/with-circular-project-reference/change-builds-changes-and-reports-found-errors-message.js index d7b8f2b61924c..3b12d46839f3b 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/with-circular-project-reference/change-builds-changes-and-reports-found-errors-message.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/with-circular-project-reference/change-builds-changes-and-reports-found-errors-message.js @@ -14,66 +14,86 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/sample1/core/tsconfig.json] -{"compilerOptions":{"composite":true,"declaration":true},"references":[{"path":"../tests","circular":true}]} +{ + "compilerOptions": { + "composite": true, + "declaration": true + }, + "references": [ + { + "path": "../tests", + "circular": true + } + ] +} //// [/user/username/projects/sample1/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } + +//// [/user/username/projects/sample1/core/some_decl.d.ts] +declare const dts: any; //// [/user/username/projects/sample1/core/anotherModule.ts] export const World = "hello"; - //// [/user/username/projects/sample1/logic/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../core" } - ] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + }, + "references": [ + { + "path": "../core" + } + ] } - //// [/user/username/projects/sample1/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; //// [/user/username/projects/sample1/tests/tsconfig.json] -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" } - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - } +{ + "references": [ + { + "path": "../core" + }, + { + "path": "../logic" + } + ], + "files": [ + "index.ts" + ], + "compilerOptions": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + } } //// [/user/username/projects/sample1/tests/index.ts] -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; @@ -86,26 +106,48 @@ Output:: -Program root files: ["/user/username/projects/sample1/core/anotherModule.ts","/user/username/projects/sample1/core/index.ts"] -Program options: {"composite":true,"declaration":true,"watch":true,"configFilePath":"/user/username/projects/sample1/core/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/core/anotherModule.ts", + "/user/username/projects/sample1/core/index.ts", + "/user/username/projects/sample1/core/some_decl.d.ts" +] +Program options: { + "composite": true, + "declaration": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/core/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts /user/username/projects/sample1/core/anotherModule.ts /user/username/projects/sample1/core/index.ts +/user/username/projects/sample1/core/some_decl.d.ts Semantic diagnostics in builder refreshed for:: /a/lib/lib.d.ts /user/username/projects/sample1/core/anotherModule.ts /user/username/projects/sample1/core/index.ts +/user/username/projects/sample1/core/some_decl.d.ts Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) /user/username/projects/sample1/core/anothermodule.ts (computed .d.ts during emit) /user/username/projects/sample1/core/index.ts (computed .d.ts during emit) - -Program root files: ["/user/username/projects/sample1/logic/index.ts"] -Program options: {"composite":true,"declaration":true,"sourceMap":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/logic/tsconfig.json"} +/user/username/projects/sample1/core/some_decl.d.ts (used version) + +Program root files: [ + "/user/username/projects/sample1/logic/index.ts" +] +Program options: { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/logic/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -125,8 +167,17 @@ Shape signatures in builder refreshed for:: /user/username/projects/sample1/core/anothermodule.d.ts (used version) /user/username/projects/sample1/logic/index.ts (computed .d.ts during emit) -Program root files: ["/user/username/projects/sample1/tests/index.ts"] -Program options: {"composite":true,"declaration":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/tests/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/tests/index.ts" +] +Program options: { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/tests/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -154,6 +205,8 @@ FsWatches:: {} /user/username/projects/sample1/core/index.ts: *new* {} +/user/username/projects/sample1/core/some_decl.d.ts: *new* + {} /user/username/projects/sample1/core/tsconfig.json: *new* {} /user/username/projects/sample1/logic/index.ts: *new* @@ -202,7 +255,7 @@ export declare function multiply(a: number, b: number): number; //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\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"}],"root":[2,3],"options":{"composite":true,"declaration":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -210,7 +263,8 @@ export declare function multiply(a: number, b: number): number; "fileNames": [ "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", - "./index.ts" + "./index.ts", + "./some_decl.d.ts" ], "fileInfos": { "../../../../../a/lib/lib.d.ts": { @@ -224,29 +278,41 @@ export declare function multiply(a: number, b: number): number; }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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" }, - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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" + }, + "./some_decl.d.ts": { + "original": { + "version": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true + }, + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true } }, "root": [ [ - 2, - "./anothermodule.ts" - ], - [ - 3, - "./index.ts" + [ + 2, + 4 + ], + [ + "./anothermodule.ts", + "./index.ts", + "./some_decl.d.ts" + ] ] ], "options": { @@ -258,12 +324,13 @@ export declare function multiply(a: number, b: number): number; "semanticDiagnosticsPerFile": [ "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", - "./index.ts" + "./index.ts", + "./some_decl.d.ts" ], "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1256 + "size": 1345 } //// [/user/username/projects/sample1/logic/index.js.map] @@ -289,7 +356,7 @@ export declare const m: typeof mod; //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -329,10 +396,10 @@ export declare const m: typeof mod; }, "./index.ts": { "original": { - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -368,7 +435,7 @@ export declare const m: typeof mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1443 + "size": 1431 } //// [/user/username/projects/sample1/tests/index.js] @@ -389,7 +456,7 @@ export declare const m: typeof mod; //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -435,10 +502,10 @@ export declare const m: typeof mod; }, "./index.ts": { "original": { - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -481,7 +548,7 @@ export declare const m: typeof mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1588 + "size": 1573 } @@ -489,9 +556,9 @@ Change:: Make change to core Input:: //// [/user/username/projects/sample1/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } export class someClass { } @@ -502,17 +569,27 @@ After running Timeout callback:: count: 1 2: timerToBuildInvalidatedProject Output:: >> Screen clear -[12:01:17 AM] File change detected. Starting incremental compilation... +[12:01:16 AM] File change detected. Starting incremental compilation... -Program root files: ["/user/username/projects/sample1/core/anotherModule.ts","/user/username/projects/sample1/core/index.ts"] -Program options: {"composite":true,"declaration":true,"watch":true,"configFilePath":"/user/username/projects/sample1/core/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/core/anotherModule.ts", + "/user/username/projects/sample1/core/index.ts", + "/user/username/projects/sample1/core/some_decl.d.ts" +] +Program options: { + "composite": true, + "declaration": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/core/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts /user/username/projects/sample1/core/anotherModule.ts /user/username/projects/sample1/core/index.ts +/user/username/projects/sample1/core/some_decl.d.ts Semantic diagnostics in builder refreshed for:: /user/username/projects/sample1/core/index.ts @@ -548,7 +625,7 @@ export declare class someClass { //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-13387000654-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }","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"}],"root":[2,3],"options":{"composite":true,"declaration":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-14927048853-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }","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"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -556,7 +633,8 @@ export declare class someClass { "fileNames": [ "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", - "./index.ts" + "./index.ts", + "./some_decl.d.ts" ], "fileInfos": { "../../../../../a/lib/lib.d.ts": { @@ -570,29 +648,41 @@ export declare class someClass { }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-13387000654-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }", + "version": "-14927048853-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }", "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" }, - "version": "-13387000654-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }", + "version": "-14927048853-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }", "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" + }, + "./some_decl.d.ts": { + "original": { + "version": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true + }, + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true } }, "root": [ [ - 2, - "./anothermodule.ts" - ], - [ - 3, - "./index.ts" + [ + 2, + 4 + ], + [ + "./anothermodule.ts", + "./index.ts", + "./some_decl.d.ts" + ] ] ], "options": { @@ -604,12 +694,13 @@ export declare class someClass { "semanticDiagnosticsPerFile": [ "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", - "./index.ts" + "./index.ts", + "./some_decl.d.ts" ], "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1321 + "size": 1410 } @@ -621,12 +712,22 @@ Before running Timeout callback:: count: 1 2: timerToBuildInvalidatedProject After running Timeout callback:: count: 0 Output:: -[12:01:54 AM] Found 0 errors. Watching for file changes. +[12:01:53 AM] Found 0 errors. Watching for file changes. -Program root files: ["/user/username/projects/sample1/logic/index.ts"] -Program options: {"composite":true,"declaration":true,"sourceMap":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/logic/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/logic/index.ts" +] +Program options: { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/logic/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -642,8 +743,17 @@ Shape signatures in builder refreshed for:: /user/username/projects/sample1/core/index.d.ts (used version) /user/username/projects/sample1/logic/index.ts (computed .d.ts) -Program root files: ["/user/username/projects/sample1/tests/index.ts"] -Program options: {"composite":true,"declaration":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/tests/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/tests/index.ts" +] +Program options: { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/tests/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -665,7 +775,7 @@ exitCode:: ExitStatus.undefined //// [/user/username/projects/sample1/logic/index.js.map] file written with same contents //// [/user/username/projects/sample1/logic/index.js] file written with same contents //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -705,10 +815,10 @@ exitCode:: ExitStatus.undefined }, "./index.ts": { "original": { - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -744,12 +854,12 @@ exitCode:: ExitStatus.undefined "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1480 + "size": 1468 } //// [/user/username/projects/sample1/tests/index.js] file written with same contents //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -795,10 +905,10 @@ exitCode:: ExitStatus.undefined }, "./index.ts": { "original": { - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -841,7 +951,7 @@ exitCode:: ExitStatus.undefined "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1625 + "size": 1610 } @@ -849,9 +959,9 @@ Change:: Revert core file Input:: //// [/user/username/projects/sample1/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } @@ -861,17 +971,27 @@ After running Timeout callback:: count: 1 4: timerToBuildInvalidatedProject Output:: >> Screen clear -[12:01:58 AM] File change detected. Starting incremental compilation... +[12:01:57 AM] File change detected. Starting incremental compilation... -Program root files: ["/user/username/projects/sample1/core/anotherModule.ts","/user/username/projects/sample1/core/index.ts"] -Program options: {"composite":true,"declaration":true,"watch":true,"configFilePath":"/user/username/projects/sample1/core/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/core/anotherModule.ts", + "/user/username/projects/sample1/core/index.ts", + "/user/username/projects/sample1/core/some_decl.d.ts" +] +Program options: { + "composite": true, + "declaration": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/core/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts /user/username/projects/sample1/core/anotherModule.ts /user/username/projects/sample1/core/index.ts +/user/username/projects/sample1/core/some_decl.d.ts Semantic diagnostics in builder refreshed for:: /user/username/projects/sample1/core/index.ts @@ -899,7 +1019,7 @@ export declare function multiply(a: number, b: number): number; //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\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"}],"root":[2,3],"options":{"composite":true,"declaration":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -907,7 +1027,8 @@ export declare function multiply(a: number, b: number): number; "fileNames": [ "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", - "./index.ts" + "./index.ts", + "./some_decl.d.ts" ], "fileInfos": { "../../../../../a/lib/lib.d.ts": { @@ -921,29 +1042,41 @@ export declare function multiply(a: number, b: number): number; }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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" }, - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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" + }, + "./some_decl.d.ts": { + "original": { + "version": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true + }, + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true } }, "root": [ [ - 2, - "./anothermodule.ts" - ], - [ - 3, - "./index.ts" + [ + 2, + 4 + ], + [ + "./anothermodule.ts", + "./index.ts", + "./some_decl.d.ts" + ] ] ], "options": { @@ -955,12 +1088,13 @@ export declare function multiply(a: number, b: number): number; "semanticDiagnosticsPerFile": [ "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", - "./index.ts" + "./index.ts", + "./some_decl.d.ts" ], "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1256 + "size": 1345 } @@ -972,12 +1106,22 @@ Before running Timeout callback:: count: 1 4: timerToBuildInvalidatedProject After running Timeout callback:: count: 0 Output:: -[12:02:35 AM] Found 0 errors. Watching for file changes. +[12:02:34 AM] Found 0 errors. Watching for file changes. -Program root files: ["/user/username/projects/sample1/logic/index.ts"] -Program options: {"composite":true,"declaration":true,"sourceMap":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/logic/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/logic/index.ts" +] +Program options: { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/logic/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -993,8 +1137,17 @@ Shape signatures in builder refreshed for:: /user/username/projects/sample1/core/index.d.ts (used version) /user/username/projects/sample1/logic/index.ts (computed .d.ts) -Program root files: ["/user/username/projects/sample1/tests/index.ts"] -Program options: {"composite":true,"declaration":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/tests/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/tests/index.ts" +] +Program options: { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/tests/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -1016,7 +1169,7 @@ exitCode:: ExitStatus.undefined //// [/user/username/projects/sample1/logic/index.js.map] file written with same contents //// [/user/username/projects/sample1/logic/index.js] file written with same contents //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1056,10 +1209,10 @@ exitCode:: ExitStatus.undefined }, "./index.ts": { "original": { - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -1095,12 +1248,12 @@ exitCode:: ExitStatus.undefined "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1443 + "size": 1431 } //// [/user/username/projects/sample1/tests/index.js] file written with same contents //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1146,10 +1299,10 @@ exitCode:: ExitStatus.undefined }, "./index.ts": { "original": { - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -1192,7 +1345,7 @@ exitCode:: ExitStatus.undefined "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1588 + "size": 1573 } @@ -1200,9 +1353,9 @@ Change:: Make two changes Input:: //// [/user/username/projects/sample1/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } export class someClass { } export class someClass2 { } @@ -1214,17 +1367,27 @@ After running Timeout callback:: count: 1 7: timerToBuildInvalidatedProject Output:: >> Screen clear -[12:02:42 AM] File change detected. Starting incremental compilation... +[12:02:39 AM] File change detected. Starting incremental compilation... -Program root files: ["/user/username/projects/sample1/core/anotherModule.ts","/user/username/projects/sample1/core/index.ts"] -Program options: {"composite":true,"declaration":true,"watch":true,"configFilePath":"/user/username/projects/sample1/core/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/core/anotherModule.ts", + "/user/username/projects/sample1/core/index.ts", + "/user/username/projects/sample1/core/some_decl.d.ts" +] +Program options: { + "composite": true, + "declaration": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/core/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts /user/username/projects/sample1/core/anotherModule.ts /user/username/projects/sample1/core/index.ts +/user/username/projects/sample1/core/some_decl.d.ts Semantic diagnostics in builder refreshed for:: /user/username/projects/sample1/core/index.ts @@ -1268,7 +1431,7 @@ export declare class someClass2 { //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-8266060440-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }\nexport class someClass2 { }","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"}],"root":[2,3],"options":{"composite":true,"declaration":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-10455689311-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }\nexport class someClass2 { }","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"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1276,7 +1439,8 @@ export declare class someClass2 { "fileNames": [ "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", - "./index.ts" + "./index.ts", + "./some_decl.d.ts" ], "fileInfos": { "../../../../../a/lib/lib.d.ts": { @@ -1290,29 +1454,41 @@ export declare class someClass2 { }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-8266060440-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }\nexport class someClass2 { }", + "version": "-10455689311-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }\nexport class someClass2 { }", "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" }, - "version": "-8266060440-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }\nexport class someClass2 { }", + "version": "-10455689311-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }\nexport class someClass2 { }", "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" + }, + "./some_decl.d.ts": { + "original": { + "version": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true + }, + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true } }, "root": [ [ - 2, - "./anothermodule.ts" - ], - [ - 3, - "./index.ts" + [ + 2, + 4 + ], + [ + "./anothermodule.ts", + "./index.ts", + "./some_decl.d.ts" + ] ] ], "options": { @@ -1324,12 +1500,13 @@ export declare class someClass2 { "semanticDiagnosticsPerFile": [ "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", - "./index.ts" + "./index.ts", + "./some_decl.d.ts" ], "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1387 + "size": 1477 } @@ -1341,12 +1518,22 @@ Before running Timeout callback:: count: 1 7: timerToBuildInvalidatedProject After running Timeout callback:: count: 0 Output:: -[12:03:20 AM] Found 0 errors. Watching for file changes. +[12:03:17 AM] Found 0 errors. Watching for file changes. -Program root files: ["/user/username/projects/sample1/logic/index.ts"] -Program options: {"composite":true,"declaration":true,"sourceMap":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/logic/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/logic/index.ts" +] +Program options: { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/logic/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -1362,8 +1549,17 @@ Shape signatures in builder refreshed for:: /user/username/projects/sample1/core/index.d.ts (used version) /user/username/projects/sample1/logic/index.ts (computed .d.ts) -Program root files: ["/user/username/projects/sample1/tests/index.ts"] -Program options: {"composite":true,"declaration":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/tests/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/tests/index.ts" +] +Program options: { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/tests/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -1385,7 +1581,7 @@ exitCode:: ExitStatus.undefined //// [/user/username/projects/sample1/logic/index.js.map] file written with same contents //// [/user/username/projects/sample1/logic/index.js] file written with same contents //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1425,10 +1621,10 @@ exitCode:: ExitStatus.undefined }, "./index.ts": { "original": { - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -1464,12 +1660,12 @@ exitCode:: ExitStatus.undefined "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1518 + "size": 1506 } //// [/user/username/projects/sample1/tests/index.js] file written with same contents //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1515,10 +1711,10 @@ exitCode:: ExitStatus.undefined }, "./index.ts": { "original": { - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -1561,6 +1757,6 @@ exitCode:: ExitStatus.undefined "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1663 + "size": 1648 } diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/with-circular-project-reference/non-local-change-does-not-start-build-of-referencing-projects.js b/tests/baselines/reference/tsbuildWatch/programUpdates/with-circular-project-reference/non-local-change-does-not-start-build-of-referencing-projects.js index 501febf8aa00a..c271db2fffbba 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/with-circular-project-reference/non-local-change-does-not-start-build-of-referencing-projects.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/with-circular-project-reference/non-local-change-does-not-start-build-of-referencing-projects.js @@ -14,66 +14,86 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/sample1/core/tsconfig.json] -{"compilerOptions":{"composite":true,"declaration":true},"references":[{"path":"../tests","circular":true}]} +{ + "compilerOptions": { + "composite": true, + "declaration": true + }, + "references": [ + { + "path": "../tests", + "circular": true + } + ] +} //// [/user/username/projects/sample1/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } +//// [/user/username/projects/sample1/core/some_decl.d.ts] +declare const dts: any; + //// [/user/username/projects/sample1/core/anotherModule.ts] export const World = "hello"; - //// [/user/username/projects/sample1/logic/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../core" } - ] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + }, + "references": [ + { + "path": "../core" + } + ] } - //// [/user/username/projects/sample1/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; //// [/user/username/projects/sample1/tests/tsconfig.json] -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" } - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - } +{ + "references": [ + { + "path": "../core" + }, + { + "path": "../logic" + } + ], + "files": [ + "index.ts" + ], + "compilerOptions": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + } } //// [/user/username/projects/sample1/tests/index.ts] -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; @@ -86,26 +106,48 @@ Output:: -Program root files: ["/user/username/projects/sample1/core/anotherModule.ts","/user/username/projects/sample1/core/index.ts"] -Program options: {"composite":true,"declaration":true,"watch":true,"configFilePath":"/user/username/projects/sample1/core/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/core/anotherModule.ts", + "/user/username/projects/sample1/core/index.ts", + "/user/username/projects/sample1/core/some_decl.d.ts" +] +Program options: { + "composite": true, + "declaration": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/core/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts /user/username/projects/sample1/core/anotherModule.ts /user/username/projects/sample1/core/index.ts +/user/username/projects/sample1/core/some_decl.d.ts Semantic diagnostics in builder refreshed for:: /a/lib/lib.d.ts /user/username/projects/sample1/core/anotherModule.ts /user/username/projects/sample1/core/index.ts +/user/username/projects/sample1/core/some_decl.d.ts Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) /user/username/projects/sample1/core/anothermodule.ts (computed .d.ts during emit) /user/username/projects/sample1/core/index.ts (computed .d.ts during emit) - -Program root files: ["/user/username/projects/sample1/logic/index.ts"] -Program options: {"composite":true,"declaration":true,"sourceMap":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/logic/tsconfig.json"} +/user/username/projects/sample1/core/some_decl.d.ts (used version) + +Program root files: [ + "/user/username/projects/sample1/logic/index.ts" +] +Program options: { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/logic/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -125,8 +167,17 @@ Shape signatures in builder refreshed for:: /user/username/projects/sample1/core/anothermodule.d.ts (used version) /user/username/projects/sample1/logic/index.ts (computed .d.ts during emit) -Program root files: ["/user/username/projects/sample1/tests/index.ts"] -Program options: {"composite":true,"declaration":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/tests/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/tests/index.ts" +] +Program options: { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/tests/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -154,6 +205,8 @@ FsWatches:: {} /user/username/projects/sample1/core/index.ts: *new* {} +/user/username/projects/sample1/core/some_decl.d.ts: *new* + {} /user/username/projects/sample1/core/tsconfig.json: *new* {} /user/username/projects/sample1/logic/index.ts: *new* @@ -202,7 +255,7 @@ export declare function multiply(a: number, b: number): number; //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\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"}],"root":[2,3],"options":{"composite":true,"declaration":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -210,7 +263,8 @@ export declare function multiply(a: number, b: number): number; "fileNames": [ "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", - "./index.ts" + "./index.ts", + "./some_decl.d.ts" ], "fileInfos": { "../../../../../a/lib/lib.d.ts": { @@ -224,29 +278,41 @@ export declare function multiply(a: number, b: number): number; }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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" }, - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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" + }, + "./some_decl.d.ts": { + "original": { + "version": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true + }, + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true } }, "root": [ [ - 2, - "./anothermodule.ts" - ], - [ - 3, - "./index.ts" + [ + 2, + 4 + ], + [ + "./anothermodule.ts", + "./index.ts", + "./some_decl.d.ts" + ] ] ], "options": { @@ -258,12 +324,13 @@ export declare function multiply(a: number, b: number): number; "semanticDiagnosticsPerFile": [ "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", - "./index.ts" + "./index.ts", + "./some_decl.d.ts" ], "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1256 + "size": 1345 } //// [/user/username/projects/sample1/logic/index.js.map] @@ -289,7 +356,7 @@ export declare const m: typeof mod; //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -329,10 +396,10 @@ export declare const m: typeof mod; }, "./index.ts": { "original": { - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -368,7 +435,7 @@ export declare const m: typeof mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1443 + "size": 1431 } //// [/user/username/projects/sample1/tests/index.js] @@ -389,7 +456,7 @@ export declare const m: typeof mod; //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -435,10 +502,10 @@ export declare const m: typeof mod; }, "./index.ts": { "original": { - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -481,7 +548,7 @@ export declare const m: typeof mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1588 + "size": 1573 } @@ -489,9 +556,9 @@ Change:: Make local change to core Input:: //// [/user/username/projects/sample1/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } function foo() { } @@ -501,19 +568,29 @@ Before running Timeout callback:: count: 1 After running Timeout callback:: count: 0 Output:: >> Screen clear -[12:01:17 AM] File change detected. Starting incremental compilation... +[12:01:16 AM] File change detected. Starting incremental compilation... -[12:01:30 AM] Found 0 errors. Watching for file changes. +[12:01:29 AM] Found 0 errors. Watching for file changes. -Program root files: ["/user/username/projects/sample1/core/anotherModule.ts","/user/username/projects/sample1/core/index.ts"] -Program options: {"composite":true,"declaration":true,"watch":true,"configFilePath":"/user/username/projects/sample1/core/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/core/anotherModule.ts", + "/user/username/projects/sample1/core/index.ts", + "/user/username/projects/sample1/core/some_decl.d.ts" +] +Program options: { + "composite": true, + "declaration": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/core/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts /user/username/projects/sample1/core/anotherModule.ts /user/username/projects/sample1/core/index.ts +/user/username/projects/sample1/core/some_decl.d.ts Semantic diagnostics in builder refreshed for:: /user/username/projects/sample1/core/index.ts @@ -536,7 +613,7 @@ function foo() { } //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-21447768693-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nfunction foo() { }","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"}],"root":[2,3],"options":{"composite":true,"declaration":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-9422301372-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nfunction foo() { }","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"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -544,7 +621,8 @@ function foo() { } "fileNames": [ "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", - "./index.ts" + "./index.ts", + "./some_decl.d.ts" ], "fileInfos": { "../../../../../a/lib/lib.d.ts": { @@ -558,29 +636,41 @@ function foo() { } }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-21447768693-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nfunction foo() { }", + "version": "-9422301372-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nfunction foo() { }", "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" }, - "version": "-21447768693-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nfunction foo() { }", + "version": "-9422301372-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nfunction foo() { }", "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" + }, + "./some_decl.d.ts": { + "original": { + "version": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true + }, + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true } }, "root": [ [ - 2, - "./anothermodule.ts" - ], - [ - 3, - "./index.ts" + [ + 2, + 4 + ], + [ + "./anothermodule.ts", + "./index.ts", + "./some_decl.d.ts" + ] ] ], "options": { @@ -592,12 +682,13 @@ function foo() { } "semanticDiagnosticsPerFile": [ "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", - "./index.ts" + "./index.ts", + "./some_decl.d.ts" ], "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1276 + "size": 1364 } //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] file changed its modified time diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/with-simple-project-reference-graph/builds-when-new-file-is-added,-and-its-subsequent-updates.js b/tests/baselines/reference/tsbuildWatch/programUpdates/with-simple-project-reference-graph/builds-when-new-file-is-added,-and-its-subsequent-updates.js index 62b4f75eb8ee1..b106d40b99374 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/with-simple-project-reference-graph/builds-when-new-file-is-added,-and-its-subsequent-updates.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/with-simple-project-reference-graph/builds-when-new-file-is-added,-and-its-subsequent-updates.js @@ -14,124 +14,138 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/sample1/core/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - } +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + } } //// [/user/username/projects/sample1/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } + +//// [/user/username/projects/sample1/core/some_decl.d.ts] +declare const dts: any; //// [/user/username/projects/sample1/core/anotherModule.ts] export const World = "hello"; - //// [/user/username/projects/sample1/logic/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../core" } - ] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + }, + "references": [ + { + "path": "../core" + } + ] } - //// [/user/username/projects/sample1/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; //// [/user/username/projects/sample1/tests/tsconfig.json] -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" } - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - } +{ + "references": [ + { + "path": "../core" + }, + { + "path": "../logic" + } + ], + "files": [ + "index.ts" + ], + "compilerOptions": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + } } //// [/user/username/projects/sample1/tests/index.ts] -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; - - -//// [/user/username/projects/sample1/ui/tsconfig.json] -{ - "compilerOptions": { - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../logic/index" } - ] -} - - -//// [/user/username/projects/sample1/ui/index.ts] -import * as logic from '../logic'; - -export function run() { - console.log(logic.getSecondsInDay()); -} +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; /a/lib/tsc.js -b -w sample1/tests Output:: >> Screen clear -[12:00:45 AM] Starting compilation in watch mode... +[12:00:39 AM] Starting compilation in watch mode... -[12:01:23 AM] Found 0 errors. Watching for file changes. +[12:01:17 AM] Found 0 errors. Watching for file changes. -Program root files: ["/user/username/projects/sample1/core/anotherModule.ts","/user/username/projects/sample1/core/index.ts"] -Program options: {"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/core/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/core/anotherModule.ts", + "/user/username/projects/sample1/core/index.ts", + "/user/username/projects/sample1/core/some_decl.d.ts" +] +Program options: { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/core/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts /user/username/projects/sample1/core/anotherModule.ts /user/username/projects/sample1/core/index.ts +/user/username/projects/sample1/core/some_decl.d.ts Semantic diagnostics in builder refreshed for:: /a/lib/lib.d.ts /user/username/projects/sample1/core/anotherModule.ts /user/username/projects/sample1/core/index.ts +/user/username/projects/sample1/core/some_decl.d.ts Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) /user/username/projects/sample1/core/anothermodule.ts (computed .d.ts during emit) /user/username/projects/sample1/core/index.ts (computed .d.ts during emit) - -Program root files: ["/user/username/projects/sample1/logic/index.ts"] -Program options: {"composite":true,"declaration":true,"sourceMap":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/logic/tsconfig.json"} +/user/username/projects/sample1/core/some_decl.d.ts (used version) + +Program root files: [ + "/user/username/projects/sample1/logic/index.ts" +] +Program options: { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/logic/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -151,8 +165,17 @@ Shape signatures in builder refreshed for:: /user/username/projects/sample1/core/anothermodule.d.ts (used version) /user/username/projects/sample1/logic/index.ts (computed .d.ts during emit) -Program root files: ["/user/username/projects/sample1/tests/index.ts"] -Program options: {"composite":true,"declaration":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/tests/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/tests/index.ts" +] +Program options: { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/tests/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -180,6 +203,8 @@ FsWatches:: {} /user/username/projects/sample1/core/index.ts: *new* {} +/user/username/projects/sample1/core/some_decl.d.ts: *new* + {} /user/username/projects/sample1/core/tsconfig.json: *new* {} /user/username/projects/sample1/logic/index.ts: *new* @@ -234,7 +259,7 @@ export declare function multiply(a: number, b: number): number; //# sourceMappingURL=index.d.ts.map //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\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"}],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -242,7 +267,8 @@ export declare function multiply(a: number, b: number): number; "fileNames": [ "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", - "./index.ts" + "./index.ts", + "./some_decl.d.ts" ], "fileInfos": { "../../../../../a/lib/lib.d.ts": { @@ -256,29 +282,41 @@ export declare function multiply(a: number, b: number): number; }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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" }, - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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" + }, + "./some_decl.d.ts": { + "original": { + "version": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true + }, + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true } }, "root": [ [ - 2, - "./anothermodule.ts" - ], - [ - 3, - "./index.ts" + [ + 2, + 4 + ], + [ + "./anothermodule.ts", + "./index.ts", + "./some_decl.d.ts" + ] ] ], "options": { @@ -292,12 +330,13 @@ export declare function multiply(a: number, b: number): number; "semanticDiagnosticsPerFile": [ "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", - "./index.ts" + "./index.ts", + "./some_decl.d.ts" ], "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1305 + "size": 1394 } //// [/user/username/projects/sample1/logic/index.js.map] @@ -323,7 +362,7 @@ export declare const m: typeof mod; //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -363,10 +402,10 @@ export declare const m: typeof mod; }, "./index.ts": { "original": { - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -402,7 +441,7 @@ export declare const m: typeof mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1443 + "size": 1431 } //// [/user/username/projects/sample1/tests/index.js] @@ -423,7 +462,7 @@ export declare const m: typeof mod; //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -469,10 +508,10 @@ export declare const m: typeof mod; }, "./index.ts": { "original": { - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -515,7 +554,7 @@ export declare const m: typeof mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1588 + "size": 1573 } @@ -532,18 +571,31 @@ After running Timeout callback:: count: 1 2: timerToBuildInvalidatedProject Output:: >> Screen clear -[12:01:26 AM] File change detected. Starting incremental compilation... +[12:01:20 AM] File change detected. Starting incremental compilation... -Program root files: ["/user/username/projects/sample1/core/anotherModule.ts","/user/username/projects/sample1/core/index.ts","/user/username/projects/sample1/core/newfile.ts"] -Program options: {"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/core/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/core/anotherModule.ts", + "/user/username/projects/sample1/core/index.ts", + "/user/username/projects/sample1/core/newfile.ts", + "/user/username/projects/sample1/core/some_decl.d.ts" +] +Program options: { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/core/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts /user/username/projects/sample1/core/anotherModule.ts /user/username/projects/sample1/core/index.ts /user/username/projects/sample1/core/newfile.ts +/user/username/projects/sample1/core/some_decl.d.ts Semantic diagnostics in builder refreshed for:: /user/username/projects/sample1/core/newfile.ts @@ -558,6 +610,8 @@ FsWatches:: {} /user/username/projects/sample1/core/newfile.ts: *new* {} +/user/username/projects/sample1/core/some_decl.d.ts: + {} /user/username/projects/sample1/core/tsconfig.json: {} /user/username/projects/sample1/logic/index.ts: @@ -578,7 +632,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./newfile.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\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"},{"version":"-16320201030-export const newFileConst = 30;","signature":"-22941483372-export declare const newFileConst = 30;\n"}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./newfile.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./newfile.ts","./some_decl.d.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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"},{"version":"-16320201030-export const newFileConst = 30;","signature":"-22941483372-export declare const newFileConst = 30;\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,5]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4,5],"latestChangedDtsFile":"./newfile.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -587,7 +641,8 @@ exitCode:: ExitStatus.undefined "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", - "./newfile.ts" + "./newfile.ts", + "./some_decl.d.ts" ], "fileInfos": { "../../../../../a/lib/lib.d.ts": { @@ -601,18 +656,18 @@ exitCode:: ExitStatus.undefined }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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" }, - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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" }, "./newfile.ts": { @@ -622,18 +677,28 @@ exitCode:: ExitStatus.undefined }, "version": "-16320201030-export const newFileConst = 30;", "signature": "-22941483372-export declare const newFileConst = 30;\n" + }, + "./some_decl.d.ts": { + "original": { + "version": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true + }, + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true } }, "root": [ [ [ 2, - 4 + 5 ], [ "./anothermodule.ts", "./index.ts", - "./newfile.ts" + "./newfile.ts", + "./some_decl.d.ts" ] ] ], @@ -649,12 +714,13 @@ exitCode:: ExitStatus.undefined "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", - "./newfile.ts" + "./newfile.ts", + "./some_decl.d.ts" ], "latestChangedDtsFile": "./newfile.d.ts" }, "version": "FakeTSVersion", - "size": 1454 + "size": 1541 } //// [/user/username/projects/sample1/core/newfile.js] @@ -680,12 +746,22 @@ Before running Timeout callback:: count: 1 2: timerToBuildInvalidatedProject After running Timeout callback:: count: 0 Output:: -[12:01:42 AM] Found 0 errors. Watching for file changes. +[12:01:36 AM] Found 0 errors. Watching for file changes. -Program root files: ["/user/username/projects/sample1/logic/index.ts"] -Program options: {"composite":true,"declaration":true,"sourceMap":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/logic/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/logic/index.ts" +] +Program options: { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/logic/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -697,8 +773,17 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/sample1/tests/index.ts"] -Program options: {"composite":true,"declaration":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/tests/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/tests/index.ts" +] +Program options: { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/tests/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -730,18 +815,31 @@ After running Timeout callback:: count: 1 4: timerToBuildInvalidatedProject Output:: >> Screen clear -[12:01:46 AM] File change detected. Starting incremental compilation... +[12:01:39 AM] File change detected. Starting incremental compilation... -Program root files: ["/user/username/projects/sample1/core/anotherModule.ts","/user/username/projects/sample1/core/index.ts","/user/username/projects/sample1/core/newfile.ts"] -Program options: {"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/core/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/core/anotherModule.ts", + "/user/username/projects/sample1/core/index.ts", + "/user/username/projects/sample1/core/newfile.ts", + "/user/username/projects/sample1/core/some_decl.d.ts" +] +Program options: { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/core/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts /user/username/projects/sample1/core/anotherModule.ts /user/username/projects/sample1/core/index.ts /user/username/projects/sample1/core/newfile.ts +/user/username/projects/sample1/core/some_decl.d.ts Semantic diagnostics in builder refreshed for:: /user/username/projects/sample1/core/newfile.ts @@ -752,7 +850,7 @@ Shape signatures in builder refreshed for:: exitCode:: ExitStatus.undefined //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./newfile.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\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"},{"version":"-9703836816-export const newFileConst = 30;\nexport class someClass2 { }","signature":"-12384508924-export declare const newFileConst = 30;\nexport declare class someClass2 {\n}\n"}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./newfile.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./newfile.ts","./some_decl.d.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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"},{"version":"-9703836816-export const newFileConst = 30;\nexport class someClass2 { }","signature":"-12384508924-export declare const newFileConst = 30;\nexport declare class someClass2 {\n}\n"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,5]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4,5],"latestChangedDtsFile":"./newfile.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -761,7 +859,8 @@ exitCode:: ExitStatus.undefined "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", - "./newfile.ts" + "./newfile.ts", + "./some_decl.d.ts" ], "fileInfos": { "../../../../../a/lib/lib.d.ts": { @@ -775,18 +874,18 @@ exitCode:: ExitStatus.undefined }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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" }, - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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" }, "./newfile.ts": { @@ -796,18 +895,28 @@ exitCode:: ExitStatus.undefined }, "version": "-9703836816-export const newFileConst = 30;\nexport class someClass2 { }", "signature": "-12384508924-export declare const newFileConst = 30;\nexport declare class someClass2 {\n}\n" + }, + "./some_decl.d.ts": { + "original": { + "version": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true + }, + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true } }, "root": [ [ [ 2, - 4 + 5 ], [ "./anothermodule.ts", "./index.ts", - "./newfile.ts" + "./newfile.ts", + "./some_decl.d.ts" ] ] ], @@ -823,12 +932,13 @@ exitCode:: ExitStatus.undefined "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", "./index.ts", - "./newfile.ts" + "./newfile.ts", + "./some_decl.d.ts" ], "latestChangedDtsFile": "./newfile.d.ts" }, "version": "FakeTSVersion", - "size": 1520 + "size": 1607 } //// [/user/username/projects/sample1/core/newfile.js] @@ -862,12 +972,22 @@ Before running Timeout callback:: count: 1 4: timerToBuildInvalidatedProject After running Timeout callback:: count: 0 Output:: -[12:02:05 AM] Found 0 errors. Watching for file changes. +[12:01:58 AM] Found 0 errors. Watching for file changes. -Program root files: ["/user/username/projects/sample1/logic/index.ts"] -Program options: {"composite":true,"declaration":true,"sourceMap":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/logic/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/logic/index.ts" +] +Program options: { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/logic/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -879,8 +999,17 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/sample1/tests/index.ts"] -Program options: {"composite":true,"declaration":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/tests/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/tests/index.ts" +] +Program options: { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/tests/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/with-simple-project-reference-graph/change-builds-changes-and-reports-found-errors-message.js b/tests/baselines/reference/tsbuildWatch/programUpdates/with-simple-project-reference-graph/change-builds-changes-and-reports-found-errors-message.js index e630fda3c0b21..1f5b384084367 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/with-simple-project-reference-graph/change-builds-changes-and-reports-found-errors-message.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/with-simple-project-reference-graph/change-builds-changes-and-reports-found-errors-message.js @@ -14,124 +14,138 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/sample1/core/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - } +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + } } //// [/user/username/projects/sample1/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } + +//// [/user/username/projects/sample1/core/some_decl.d.ts] +declare const dts: any; //// [/user/username/projects/sample1/core/anotherModule.ts] export const World = "hello"; - //// [/user/username/projects/sample1/logic/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../core" } - ] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + }, + "references": [ + { + "path": "../core" + } + ] } - //// [/user/username/projects/sample1/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; //// [/user/username/projects/sample1/tests/tsconfig.json] -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" } - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - } +{ + "references": [ + { + "path": "../core" + }, + { + "path": "../logic" + } + ], + "files": [ + "index.ts" + ], + "compilerOptions": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + } } //// [/user/username/projects/sample1/tests/index.ts] -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; - - -//// [/user/username/projects/sample1/ui/tsconfig.json] -{ - "compilerOptions": { - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../logic/index" } - ] -} - - -//// [/user/username/projects/sample1/ui/index.ts] -import * as logic from '../logic'; - -export function run() { - console.log(logic.getSecondsInDay()); -} +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; /a/lib/tsc.js -b -w sample1/tests Output:: >> Screen clear -[12:00:45 AM] Starting compilation in watch mode... +[12:00:39 AM] Starting compilation in watch mode... -[12:01:23 AM] Found 0 errors. Watching for file changes. +[12:01:17 AM] Found 0 errors. Watching for file changes. -Program root files: ["/user/username/projects/sample1/core/anotherModule.ts","/user/username/projects/sample1/core/index.ts"] -Program options: {"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/core/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/core/anotherModule.ts", + "/user/username/projects/sample1/core/index.ts", + "/user/username/projects/sample1/core/some_decl.d.ts" +] +Program options: { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/core/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts /user/username/projects/sample1/core/anotherModule.ts /user/username/projects/sample1/core/index.ts +/user/username/projects/sample1/core/some_decl.d.ts Semantic diagnostics in builder refreshed for:: /a/lib/lib.d.ts /user/username/projects/sample1/core/anotherModule.ts /user/username/projects/sample1/core/index.ts +/user/username/projects/sample1/core/some_decl.d.ts Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) /user/username/projects/sample1/core/anothermodule.ts (computed .d.ts during emit) /user/username/projects/sample1/core/index.ts (computed .d.ts during emit) - -Program root files: ["/user/username/projects/sample1/logic/index.ts"] -Program options: {"composite":true,"declaration":true,"sourceMap":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/logic/tsconfig.json"} +/user/username/projects/sample1/core/some_decl.d.ts (used version) + +Program root files: [ + "/user/username/projects/sample1/logic/index.ts" +] +Program options: { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/logic/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -151,8 +165,17 @@ Shape signatures in builder refreshed for:: /user/username/projects/sample1/core/anothermodule.d.ts (used version) /user/username/projects/sample1/logic/index.ts (computed .d.ts during emit) -Program root files: ["/user/username/projects/sample1/tests/index.ts"] -Program options: {"composite":true,"declaration":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/tests/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/tests/index.ts" +] +Program options: { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/tests/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -180,6 +203,8 @@ FsWatches:: {} /user/username/projects/sample1/core/index.ts: *new* {} +/user/username/projects/sample1/core/some_decl.d.ts: *new* + {} /user/username/projects/sample1/core/tsconfig.json: *new* {} /user/username/projects/sample1/logic/index.ts: *new* @@ -234,7 +259,7 @@ export declare function multiply(a: number, b: number): number; //# sourceMappingURL=index.d.ts.map //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\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"}],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -242,7 +267,8 @@ export declare function multiply(a: number, b: number): number; "fileNames": [ "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", - "./index.ts" + "./index.ts", + "./some_decl.d.ts" ], "fileInfos": { "../../../../../a/lib/lib.d.ts": { @@ -256,29 +282,41 @@ export declare function multiply(a: number, b: number): number; }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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" }, - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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" + }, + "./some_decl.d.ts": { + "original": { + "version": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true + }, + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true } }, "root": [ [ - 2, - "./anothermodule.ts" - ], - [ - 3, - "./index.ts" + [ + 2, + 4 + ], + [ + "./anothermodule.ts", + "./index.ts", + "./some_decl.d.ts" + ] ] ], "options": { @@ -292,12 +330,13 @@ export declare function multiply(a: number, b: number): number; "semanticDiagnosticsPerFile": [ "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", - "./index.ts" + "./index.ts", + "./some_decl.d.ts" ], "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1305 + "size": 1394 } //// [/user/username/projects/sample1/logic/index.js.map] @@ -323,7 +362,7 @@ export declare const m: typeof mod; //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -363,10 +402,10 @@ export declare const m: typeof mod; }, "./index.ts": { "original": { - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -402,7 +441,7 @@ export declare const m: typeof mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1443 + "size": 1431 } //// [/user/username/projects/sample1/tests/index.js] @@ -423,7 +462,7 @@ export declare const m: typeof mod; //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -469,10 +508,10 @@ export declare const m: typeof mod; }, "./index.ts": { "original": { - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -515,7 +554,7 @@ export declare const m: typeof mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1588 + "size": 1573 } @@ -523,9 +562,9 @@ Change:: Make change to core Input:: //// [/user/username/projects/sample1/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } export class someClass { } @@ -536,17 +575,29 @@ After running Timeout callback:: count: 1 2: timerToBuildInvalidatedProject Output:: >> Screen clear -[12:01:27 AM] File change detected. Starting incremental compilation... +[12:01:20 AM] File change detected. Starting incremental compilation... -Program root files: ["/user/username/projects/sample1/core/anotherModule.ts","/user/username/projects/sample1/core/index.ts"] -Program options: {"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/core/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/core/anotherModule.ts", + "/user/username/projects/sample1/core/index.ts", + "/user/username/projects/sample1/core/some_decl.d.ts" +] +Program options: { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/core/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts /user/username/projects/sample1/core/anotherModule.ts /user/username/projects/sample1/core/index.ts +/user/username/projects/sample1/core/some_decl.d.ts Semantic diagnostics in builder refreshed for:: /user/username/projects/sample1/core/index.ts @@ -585,7 +636,7 @@ export declare class someClass { //# sourceMappingURL=index.d.ts.map //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-13387000654-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }","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"}],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-14927048853-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }","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"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -593,7 +644,8 @@ export declare class someClass { "fileNames": [ "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", - "./index.ts" + "./index.ts", + "./some_decl.d.ts" ], "fileInfos": { "../../../../../a/lib/lib.d.ts": { @@ -607,29 +659,41 @@ export declare class someClass { }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-13387000654-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }", + "version": "-14927048853-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }", "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" }, - "version": "-13387000654-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }", + "version": "-14927048853-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }", "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" + }, + "./some_decl.d.ts": { + "original": { + "version": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true + }, + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true } }, "root": [ [ - 2, - "./anothermodule.ts" - ], - [ - 3, - "./index.ts" + [ + 2, + 4 + ], + [ + "./anothermodule.ts", + "./index.ts", + "./some_decl.d.ts" + ] ] ], "options": { @@ -643,12 +707,13 @@ export declare class someClass { "semanticDiagnosticsPerFile": [ "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", - "./index.ts" + "./index.ts", + "./some_decl.d.ts" ], "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1370 + "size": 1459 } @@ -660,12 +725,22 @@ Before running Timeout callback:: count: 1 2: timerToBuildInvalidatedProject After running Timeout callback:: count: 0 Output:: -[12:02:07 AM] Found 0 errors. Watching for file changes. +[12:02:00 AM] Found 0 errors. Watching for file changes. -Program root files: ["/user/username/projects/sample1/logic/index.ts"] -Program options: {"composite":true,"declaration":true,"sourceMap":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/logic/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/logic/index.ts" +] +Program options: { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/logic/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -681,8 +756,17 @@ Shape signatures in builder refreshed for:: /user/username/projects/sample1/core/index.d.ts (used version) /user/username/projects/sample1/logic/index.ts (computed .d.ts) -Program root files: ["/user/username/projects/sample1/tests/index.ts"] -Program options: {"composite":true,"declaration":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/tests/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/tests/index.ts" +] +Program options: { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/tests/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -704,7 +788,7 @@ exitCode:: ExitStatus.undefined //// [/user/username/projects/sample1/logic/index.js.map] file written with same contents //// [/user/username/projects/sample1/logic/index.js] file written with same contents //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -744,10 +828,10 @@ exitCode:: ExitStatus.undefined }, "./index.ts": { "original": { - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -783,12 +867,12 @@ exitCode:: ExitStatus.undefined "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1480 + "size": 1468 } //// [/user/username/projects/sample1/tests/index.js] file written with same contents //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -834,10 +918,10 @@ exitCode:: ExitStatus.undefined }, "./index.ts": { "original": { - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -880,7 +964,7 @@ exitCode:: ExitStatus.undefined "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1625 + "size": 1610 } @@ -888,9 +972,9 @@ Change:: Revert core file Input:: //// [/user/username/projects/sample1/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } @@ -900,17 +984,29 @@ After running Timeout callback:: count: 1 4: timerToBuildInvalidatedProject Output:: >> Screen clear -[12:02:11 AM] File change detected. Starting incremental compilation... +[12:02:04 AM] File change detected. Starting incremental compilation... -Program root files: ["/user/username/projects/sample1/core/anotherModule.ts","/user/username/projects/sample1/core/index.ts"] -Program options: {"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/core/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/core/anotherModule.ts", + "/user/username/projects/sample1/core/index.ts", + "/user/username/projects/sample1/core/some_decl.d.ts" +] +Program options: { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/core/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts /user/username/projects/sample1/core/anotherModule.ts /user/username/projects/sample1/core/index.ts +/user/username/projects/sample1/core/some_decl.d.ts Semantic diagnostics in builder refreshed for:: /user/username/projects/sample1/core/index.ts @@ -941,7 +1037,7 @@ export declare function multiply(a: number, b: number): number; //# sourceMappingURL=index.d.ts.map //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\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"}],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -949,7 +1045,8 @@ export declare function multiply(a: number, b: number): number; "fileNames": [ "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", - "./index.ts" + "./index.ts", + "./some_decl.d.ts" ], "fileInfos": { "../../../../../a/lib/lib.d.ts": { @@ -963,29 +1060,41 @@ export declare function multiply(a: number, b: number): number; }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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" }, - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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" + }, + "./some_decl.d.ts": { + "original": { + "version": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true + }, + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true } }, "root": [ [ - 2, - "./anothermodule.ts" - ], - [ - 3, - "./index.ts" + [ + 2, + 4 + ], + [ + "./anothermodule.ts", + "./index.ts", + "./some_decl.d.ts" + ] ] ], "options": { @@ -999,12 +1108,13 @@ export declare function multiply(a: number, b: number): number; "semanticDiagnosticsPerFile": [ "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", - "./index.ts" + "./index.ts", + "./some_decl.d.ts" ], "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1305 + "size": 1394 } @@ -1016,12 +1126,22 @@ Before running Timeout callback:: count: 1 4: timerToBuildInvalidatedProject After running Timeout callback:: count: 0 Output:: -[12:02:51 AM] Found 0 errors. Watching for file changes. +[12:02:44 AM] Found 0 errors. Watching for file changes. -Program root files: ["/user/username/projects/sample1/logic/index.ts"] -Program options: {"composite":true,"declaration":true,"sourceMap":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/logic/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/logic/index.ts" +] +Program options: { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/logic/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -1037,8 +1157,17 @@ Shape signatures in builder refreshed for:: /user/username/projects/sample1/core/index.d.ts (used version) /user/username/projects/sample1/logic/index.ts (computed .d.ts) -Program root files: ["/user/username/projects/sample1/tests/index.ts"] -Program options: {"composite":true,"declaration":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/tests/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/tests/index.ts" +] +Program options: { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/tests/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -1060,7 +1189,7 @@ exitCode:: ExitStatus.undefined //// [/user/username/projects/sample1/logic/index.js.map] file written with same contents //// [/user/username/projects/sample1/logic/index.js] file written with same contents //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1100,10 +1229,10 @@ exitCode:: ExitStatus.undefined }, "./index.ts": { "original": { - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -1139,12 +1268,12 @@ exitCode:: ExitStatus.undefined "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1443 + "size": 1431 } //// [/user/username/projects/sample1/tests/index.js] file written with same contents //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1190,10 +1319,10 @@ exitCode:: ExitStatus.undefined }, "./index.ts": { "original": { - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -1236,7 +1365,7 @@ exitCode:: ExitStatus.undefined "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1588 + "size": 1573 } @@ -1244,9 +1373,9 @@ Change:: Make two changes Input:: //// [/user/username/projects/sample1/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } export class someClass { } export class someClass2 { } @@ -1258,17 +1387,29 @@ After running Timeout callback:: count: 1 7: timerToBuildInvalidatedProject Output:: >> Screen clear -[12:02:58 AM] File change detected. Starting incremental compilation... +[12:02:49 AM] File change detected. Starting incremental compilation... -Program root files: ["/user/username/projects/sample1/core/anotherModule.ts","/user/username/projects/sample1/core/index.ts"] -Program options: {"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/core/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/core/anotherModule.ts", + "/user/username/projects/sample1/core/index.ts", + "/user/username/projects/sample1/core/some_decl.d.ts" +] +Program options: { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/core/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts /user/username/projects/sample1/core/anotherModule.ts /user/username/projects/sample1/core/index.ts +/user/username/projects/sample1/core/some_decl.d.ts Semantic diagnostics in builder refreshed for:: /user/username/projects/sample1/core/index.ts @@ -1315,7 +1456,7 @@ export declare class someClass2 { //# sourceMappingURL=index.d.ts.map //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-8266060440-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }\nexport class someClass2 { }","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"}],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-10455689311-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }\nexport class someClass2 { }","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"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1323,7 +1464,8 @@ export declare class someClass2 { "fileNames": [ "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", - "./index.ts" + "./index.ts", + "./some_decl.d.ts" ], "fileInfos": { "../../../../../a/lib/lib.d.ts": { @@ -1337,29 +1479,41 @@ export declare class someClass2 { }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-8266060440-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }\nexport class someClass2 { }", + "version": "-10455689311-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }\nexport class someClass2 { }", "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" }, - "version": "-8266060440-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }\nexport class someClass2 { }", + "version": "-10455689311-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nexport class someClass { }\nexport class someClass2 { }", "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" + }, + "./some_decl.d.ts": { + "original": { + "version": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true + }, + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true } }, "root": [ [ - 2, - "./anothermodule.ts" - ], - [ - 3, - "./index.ts" + [ + 2, + 4 + ], + [ + "./anothermodule.ts", + "./index.ts", + "./some_decl.d.ts" + ] ] ], "options": { @@ -1373,12 +1527,13 @@ export declare class someClass2 { "semanticDiagnosticsPerFile": [ "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", - "./index.ts" + "./index.ts", + "./some_decl.d.ts" ], "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1436 + "size": 1526 } @@ -1390,12 +1545,22 @@ Before running Timeout callback:: count: 1 7: timerToBuildInvalidatedProject After running Timeout callback:: count: 0 Output:: -[12:03:39 AM] Found 0 errors. Watching for file changes. +[12:03:30 AM] Found 0 errors. Watching for file changes. -Program root files: ["/user/username/projects/sample1/logic/index.ts"] -Program options: {"composite":true,"declaration":true,"sourceMap":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/logic/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/logic/index.ts" +] +Program options: { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/logic/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -1411,8 +1576,17 @@ Shape signatures in builder refreshed for:: /user/username/projects/sample1/core/index.d.ts (used version) /user/username/projects/sample1/logic/index.ts (computed .d.ts) -Program root files: ["/user/username/projects/sample1/tests/index.ts"] -Program options: {"composite":true,"declaration":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/tests/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/tests/index.ts" +] +Program options: { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/tests/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -1434,7 +1608,7 @@ exitCode:: ExitStatus.undefined //// [/user/username/projects/sample1/logic/index.js.map] file written with same contents //// [/user/username/projects/sample1/logic/index.js] file written with same contents //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1474,10 +1648,10 @@ exitCode:: ExitStatus.undefined }, "./index.ts": { "original": { - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -1513,12 +1687,12 @@ exitCode:: ExitStatus.undefined "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1518 + "size": 1506 } //// [/user/username/projects/sample1/tests/index.js] file written with same contents //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1564,10 +1738,10 @@ exitCode:: ExitStatus.undefined }, "./index.ts": { "original": { - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -1610,6 +1784,6 @@ exitCode:: ExitStatus.undefined "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1663 + "size": 1648 } diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/with-simple-project-reference-graph/non-local-change-does-not-start-build-of-referencing-projects.js b/tests/baselines/reference/tsbuildWatch/programUpdates/with-simple-project-reference-graph/non-local-change-does-not-start-build-of-referencing-projects.js index 1b199b9821c99..5c859c10c8ba2 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/with-simple-project-reference-graph/non-local-change-does-not-start-build-of-referencing-projects.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/with-simple-project-reference-graph/non-local-change-does-not-start-build-of-referencing-projects.js @@ -14,124 +14,138 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/sample1/core/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - } +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + } } //// [/user/username/projects/sample1/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } + +//// [/user/username/projects/sample1/core/some_decl.d.ts] +declare const dts: any; //// [/user/username/projects/sample1/core/anotherModule.ts] export const World = "hello"; - //// [/user/username/projects/sample1/logic/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../core" } - ] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + }, + "references": [ + { + "path": "../core" + } + ] } - //// [/user/username/projects/sample1/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; //// [/user/username/projects/sample1/tests/tsconfig.json] -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" } - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - } +{ + "references": [ + { + "path": "../core" + }, + { + "path": "../logic" + } + ], + "files": [ + "index.ts" + ], + "compilerOptions": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + } } //// [/user/username/projects/sample1/tests/index.ts] -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; - - -//// [/user/username/projects/sample1/ui/tsconfig.json] -{ - "compilerOptions": { - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../logic/index" } - ] -} - - -//// [/user/username/projects/sample1/ui/index.ts] -import * as logic from '../logic'; - -export function run() { - console.log(logic.getSecondsInDay()); -} +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; /a/lib/tsc.js -b -w sample1/tests Output:: >> Screen clear -[12:00:45 AM] Starting compilation in watch mode... +[12:00:39 AM] Starting compilation in watch mode... -[12:01:23 AM] Found 0 errors. Watching for file changes. +[12:01:17 AM] Found 0 errors. Watching for file changes. -Program root files: ["/user/username/projects/sample1/core/anotherModule.ts","/user/username/projects/sample1/core/index.ts"] -Program options: {"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/core/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/core/anotherModule.ts", + "/user/username/projects/sample1/core/index.ts", + "/user/username/projects/sample1/core/some_decl.d.ts" +] +Program options: { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/core/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts /user/username/projects/sample1/core/anotherModule.ts /user/username/projects/sample1/core/index.ts +/user/username/projects/sample1/core/some_decl.d.ts Semantic diagnostics in builder refreshed for:: /a/lib/lib.d.ts /user/username/projects/sample1/core/anotherModule.ts /user/username/projects/sample1/core/index.ts +/user/username/projects/sample1/core/some_decl.d.ts Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) /user/username/projects/sample1/core/anothermodule.ts (computed .d.ts during emit) /user/username/projects/sample1/core/index.ts (computed .d.ts during emit) - -Program root files: ["/user/username/projects/sample1/logic/index.ts"] -Program options: {"composite":true,"declaration":true,"sourceMap":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/logic/tsconfig.json"} +/user/username/projects/sample1/core/some_decl.d.ts (used version) + +Program root files: [ + "/user/username/projects/sample1/logic/index.ts" +] +Program options: { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/logic/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -151,8 +165,17 @@ Shape signatures in builder refreshed for:: /user/username/projects/sample1/core/anothermodule.d.ts (used version) /user/username/projects/sample1/logic/index.ts (computed .d.ts during emit) -Program root files: ["/user/username/projects/sample1/tests/index.ts"] -Program options: {"composite":true,"declaration":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/tests/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/tests/index.ts" +] +Program options: { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/tests/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -180,6 +203,8 @@ FsWatches:: {} /user/username/projects/sample1/core/index.ts: *new* {} +/user/username/projects/sample1/core/some_decl.d.ts: *new* + {} /user/username/projects/sample1/core/tsconfig.json: *new* {} /user/username/projects/sample1/logic/index.ts: *new* @@ -234,7 +259,7 @@ export declare function multiply(a: number, b: number): number; //# sourceMappingURL=index.d.ts.map //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\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"}],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -242,7 +267,8 @@ export declare function multiply(a: number, b: number): number; "fileNames": [ "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", - "./index.ts" + "./index.ts", + "./some_decl.d.ts" ], "fileInfos": { "../../../../../a/lib/lib.d.ts": { @@ -256,29 +282,41 @@ export declare function multiply(a: number, b: number): number; }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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" }, - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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" + }, + "./some_decl.d.ts": { + "original": { + "version": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true + }, + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true } }, "root": [ [ - 2, - "./anothermodule.ts" - ], - [ - 3, - "./index.ts" + [ + 2, + 4 + ], + [ + "./anothermodule.ts", + "./index.ts", + "./some_decl.d.ts" + ] ] ], "options": { @@ -292,12 +330,13 @@ export declare function multiply(a: number, b: number): number; "semanticDiagnosticsPerFile": [ "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", - "./index.ts" + "./index.ts", + "./some_decl.d.ts" ], "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1305 + "size": 1394 } //// [/user/username/projects/sample1/logic/index.js.map] @@ -323,7 +362,7 @@ export declare const m: typeof mod; //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -363,10 +402,10 @@ export declare const m: typeof mod; }, "./index.ts": { "original": { - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -402,7 +441,7 @@ export declare const m: typeof mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1443 + "size": 1431 } //// [/user/username/projects/sample1/tests/index.js] @@ -423,7 +462,7 @@ export declare const m: typeof mod; //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -469,10 +508,10 @@ export declare const m: typeof mod; }, "./index.ts": { "original": { - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -515,7 +554,7 @@ export declare const m: typeof mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1588 + "size": 1573 } @@ -523,9 +562,9 @@ Change:: Make local change to core Input:: //// [/user/username/projects/sample1/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } function foo() { } @@ -535,19 +574,31 @@ Before running Timeout callback:: count: 1 After running Timeout callback:: count: 0 Output:: >> Screen clear -[12:01:27 AM] File change detected. Starting incremental compilation... +[12:01:20 AM] File change detected. Starting incremental compilation... -[12:01:43 AM] Found 0 errors. Watching for file changes. +[12:01:36 AM] Found 0 errors. Watching for file changes. -Program root files: ["/user/username/projects/sample1/core/anotherModule.ts","/user/username/projects/sample1/core/index.ts"] -Program options: {"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/core/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/core/anotherModule.ts", + "/user/username/projects/sample1/core/index.ts", + "/user/username/projects/sample1/core/some_decl.d.ts" +] +Program options: { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/sample1/core/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts /user/username/projects/sample1/core/anotherModule.ts /user/username/projects/sample1/core/index.ts +/user/username/projects/sample1/core/some_decl.d.ts Semantic diagnostics in builder refreshed for:: /user/username/projects/sample1/core/index.ts @@ -571,7 +622,7 @@ function foo() { } //// [/user/username/projects/sample1/core/index.d.ts.map] file written with same contents //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-21447768693-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nfunction foo() { }","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"}],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-9422301372-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nfunction foo() { }","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"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -579,7 +630,8 @@ function foo() { } "fileNames": [ "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", - "./index.ts" + "./index.ts", + "./some_decl.d.ts" ], "fileInfos": { "../../../../../a/lib/lib.d.ts": { @@ -593,29 +645,41 @@ function foo() { } }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-21447768693-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nfunction foo() { }", + "version": "-9422301372-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nfunction foo() { }", "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" }, - "version": "-21447768693-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nfunction foo() { }", + "version": "-9422301372-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n\nfunction foo() { }", "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" + }, + "./some_decl.d.ts": { + "original": { + "version": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true + }, + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", + "affectsGlobalScope": true } }, "root": [ [ - 2, - "./anothermodule.ts" - ], - [ - 3, - "./index.ts" + [ + 2, + 4 + ], + [ + "./anothermodule.ts", + "./index.ts", + "./some_decl.d.ts" + ] ] ], "options": { @@ -629,12 +693,13 @@ function foo() { } "semanticDiagnosticsPerFile": [ "../../../../../a/lib/lib.d.ts", "./anothermodule.ts", - "./index.ts" + "./index.ts", + "./some_decl.d.ts" ], "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1325 + "size": 1413 } //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] file changed its modified time diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/works-correctly-when-project-with-extended-config-is-removed.js b/tests/baselines/reference/tsbuildWatch/programUpdates/works-correctly-when-project-with-extended-config-is-removed.js index 76ecf61bb41ba..0e4a06e0e458e 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/works-correctly-when-project-with-extended-config-is-removed.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/works-correctly-when-project-with-extended-config-is-removed.js @@ -14,13 +14,36 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/a/b/tsconfig.json] -{"references":[{"path":"./project1.tsconfig.json"},{"path":"./project2.tsconfig.json"}],"files":[]} +{ + "references": [ + { + "path": "./project1.tsconfig.json" + }, + { + "path": "./project2.tsconfig.json" + } + ], + "files": [] +} //// [/a/b/alpha.tsconfig.json] -{"compilerOptions":{"strict":true}} +{ + "compilerOptions": { + "strict": true + } +} //// [/a/b/project1.tsconfig.json] -{"extends":"./alpha.tsconfig.json","compilerOptions":{"composite":true},"files":["/a/b/commonFile1.ts","/a/b/commonFile2.ts"]} +{ + "extends": "./alpha.tsconfig.json", + "compilerOptions": { + "composite": true + }, + "files": [ + "/a/b/commonFile1.ts", + "/a/b/commonFile2.ts" + ] +} //// [/a/b/commonFile1.ts] let x = 1 @@ -29,10 +52,22 @@ let x = 1 let y = 1 //// [/a/b/bravo.tsconfig.json] -{"compilerOptions":{"strict":true}} +{ + "compilerOptions": { + "strict": true + } +} //// [/a/b/project2.tsconfig.json] -{"extends":"./bravo.tsconfig.json","compilerOptions":{"composite":true},"files":["/a/b/other.ts"]} +{ + "extends": "./bravo.tsconfig.json", + "compilerOptions": { + "composite": true + }, + "files": [ + "/a/b/other.ts" + ] +} //// [/a/b/other.ts] let z = 0; @@ -60,8 +95,16 @@ Output:: -Program root files: ["/a/b/commonFile1.ts","/a/b/commonFile2.ts"] -Program options: {"strict":true,"composite":true,"watch":true,"configFilePath":"/a/b/project1.tsconfig.json"} +Program root files: [ + "/a/b/commonFile1.ts", + "/a/b/commonFile2.ts" +] +Program options: { + "strict": true, + "composite": true, + "watch": true, + "configFilePath": "/a/b/project1.tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -78,8 +121,15 @@ Shape signatures in builder refreshed for:: /a/b/commonfile1.ts (computed .d.ts during emit) /a/b/commonfile2.ts (computed .d.ts during emit) -Program root files: ["/a/b/other.ts"] -Program options: {"strict":true,"composite":true,"watch":true,"configFilePath":"/a/b/project2.tsconfig.json"} +Program root files: [ + "/a/b/other.ts" +] +Program options: { + "strict": true, + "composite": true, + "watch": true, + "configFilePath": "/a/b/project2.tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -267,7 +317,14 @@ Change:: Remove project2 from base config Input:: //// [/a/b/tsconfig.json] -{"references":[{"path":"./project1.tsconfig.json"}],"files":[]} +{ + "references": [ + { + "path": "./project1.tsconfig.json" + } + ], + "files": [] +} Before running Timeout callback:: count: 1 diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/works-when-noUnusedParameters-changes-to-false.js b/tests/baselines/reference/tsbuildWatch/programUpdates/works-when-noUnusedParameters-changes-to-false.js index 273a541da0573..cb4aba0df2e0b 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/works-when-noUnusedParameters-changes-to-false.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/works-when-noUnusedParameters-changes-to-false.js @@ -4,7 +4,11 @@ Input:: const fn = (a: string, b: string) => b; //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"noUnusedParameters":true}} +{ + "compilerOptions": { + "noUnusedParameters": true + } +} //// [/a/lib/lib.d.ts] /// @@ -34,8 +38,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/index.ts"] -Program options: {"noUnusedParameters":true,"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/index.ts" +] +Program options: { + "noUnusedParameters": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -66,7 +76,11 @@ Change:: Change tsconfig to set noUnusedParameters to false Input:: //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"noUnusedParameters":false}} +{ + "compilerOptions": { + "noUnusedParameters": false + } +} Before running Timeout callback:: count: 1 @@ -80,8 +94,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/index.ts"] -Program options: {"noUnusedParameters":false,"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/index.ts" +] +Program options: { + "noUnusedParameters": false, + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/works-with-extended-source-files.js b/tests/baselines/reference/tsbuildWatch/programUpdates/works-with-extended-source-files.js index f5f8b7dc149ea..a75cb6565a33b 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/works-with-extended-source-files.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/works-with-extended-source-files.js @@ -17,7 +17,16 @@ interface Array { length: number; [n: number]: T; } {} //// [/a/b/project1.tsconfig.json] -{"extends":"./alpha.tsconfig.json","compilerOptions":{"composite":true},"files":["/a/b/commonFile1.ts","/a/b/commonFile2.ts"]} +{ + "extends": "./alpha.tsconfig.json", + "compilerOptions": { + "composite": true + }, + "files": [ + "/a/b/commonFile1.ts", + "/a/b/commonFile2.ts" + ] +} //// [/a/b/commonFile1.ts] let x = 1 @@ -26,10 +35,20 @@ let x = 1 let y = 1 //// [/a/b/bravo.tsconfig.json] -{"extends":"./alpha.tsconfig.json"} +{ + "extends": "./alpha.tsconfig.json" +} //// [/a/b/project2.tsconfig.json] -{"extends":"./bravo.tsconfig.json","compilerOptions":{"composite":true},"files":["/a/b/other.ts"]} +{ + "extends": "./bravo.tsconfig.json", + "compilerOptions": { + "composite": true + }, + "files": [ + "/a/b/other.ts" + ] +} //// [/a/b/other.ts] let z = 0; @@ -38,16 +57,40 @@ let z = 0; let k = 0; //// [/a/b/extendsConfig1.tsconfig.json] -{"compilerOptions":{"composite":true}} +{ + "compilerOptions": { + "composite": true + } +} //// [/a/b/extendsConfig2.tsconfig.json] -{"compilerOptions":{"strictNullChecks":false}} +{ + "compilerOptions": { + "strictNullChecks": false + } +} //// [/a/b/extendsConfig3.tsconfig.json] -{"compilerOptions":{"noImplicitAny":true}} +{ + "compilerOptions": { + "noImplicitAny": true + } +} //// [/a/b/project3.tsconfig.json] -{"extends":["./extendsConfig1.tsconfig.json","./extendsConfig2.tsconfig.json","./extendsConfig3.tsconfig.json"],"compilerOptions":{"composite":false},"files":["/a/b/other2.ts"]} +{ + "extends": [ + "./extendsConfig1.tsconfig.json", + "./extendsConfig2.tsconfig.json", + "./extendsConfig3.tsconfig.json" + ], + "compilerOptions": { + "composite": false + }, + "files": [ + "/a/b/other2.ts" + ] +} /a/lib/tsc.js -b -w -v project1.tsconfig.json project2.tsconfig.json project3.tsconfig.json @@ -76,8 +119,15 @@ Output:: -Program root files: ["/a/b/commonFile1.ts","/a/b/commonFile2.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/a/b/project1.tsconfig.json"} +Program root files: [ + "/a/b/commonFile1.ts", + "/a/b/commonFile2.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/a/b/project1.tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -94,8 +144,14 @@ Shape signatures in builder refreshed for:: /a/b/commonfile1.ts (computed .d.ts during emit) /a/b/commonfile2.ts (computed .d.ts during emit) -Program root files: ["/a/b/other.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/a/b/project2.tsconfig.json"} +Program root files: [ + "/a/b/other.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/a/b/project2.tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -109,8 +165,16 @@ Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) /a/b/other.ts (computed .d.ts during emit) -Program root files: ["/a/b/other2.ts"] -Program options: {"composite":false,"strictNullChecks":false,"noImplicitAny":true,"watch":true,"configFilePath":"/a/b/project3.tsconfig.json"} +Program root files: [ + "/a/b/other2.ts" +] +Program options: { + "composite": false, + "strictNullChecks": false, + "noImplicitAny": true, + "watch": true, + "configFilePath": "/a/b/project3.tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -305,7 +369,11 @@ Change:: Modify alpha config Input:: //// [/a/b/alpha.tsconfig.json] -{"compilerOptions":{"strict":true}} +{ + "compilerOptions": { + "strict": true + } +} Before running Timeout callback:: count: 1 @@ -322,8 +390,16 @@ Output:: -Program root files: ["/a/b/commonFile1.ts","/a/b/commonFile2.ts"] -Program options: {"strict":true,"composite":true,"watch":true,"configFilePath":"/a/b/project1.tsconfig.json"} +Program root files: [ + "/a/b/commonFile1.ts", + "/a/b/commonFile2.ts" +] +Program options: { + "strict": true, + "composite": true, + "watch": true, + "configFilePath": "/a/b/project1.tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -435,8 +511,15 @@ Output:: -Program root files: ["/a/b/other.ts"] -Program options: {"strict":true,"composite":true,"watch":true,"configFilePath":"/a/b/project2.tsconfig.json"} +Program root files: [ + "/a/b/other.ts" +] +Program options: { + "strict": true, + "composite": true, + "watch": true, + "configFilePath": "/a/b/project2.tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -513,7 +596,12 @@ Change:: change bravo config Input:: //// [/a/b/bravo.tsconfig.json] -{"extends":"./alpha.tsconfig.json","compilerOptions":{"strict":false}} +{ + "extends": "./alpha.tsconfig.json", + "compilerOptions": { + "strict": false + } +} Before running Timeout callback:: count: 1 @@ -531,8 +619,15 @@ Output:: -Program root files: ["/a/b/other.ts"] -Program options: {"strict":false,"composite":true,"watch":true,"configFilePath":"/a/b/project2.tsconfig.json"} +Program root files: [ + "/a/b/other.ts" +] +Program options: { + "strict": false, + "composite": true, + "watch": true, + "configFilePath": "/a/b/project2.tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -608,7 +703,9 @@ Change:: project 2 extends alpha Input:: //// [/a/b/project2.tsconfig.json] -{"extends":"./alpha.tsconfig.json"} +{ + "extends": "./alpha.tsconfig.json" +} Before running Timeout callback:: count: 1 @@ -626,8 +723,17 @@ Output:: -Program root files: ["/a/b/commonFile1.ts","/a/b/commonFile2.ts","/a/b/other.ts","/a/b/other2.ts"] -Program options: {"strict":true,"watch":true,"configFilePath":"/a/b/project2.tsconfig.json"} +Program root files: [ + "/a/b/commonFile1.ts", + "/a/b/commonFile2.ts", + "/a/b/other.ts", + "/a/b/other2.ts" +] +Program options: { + "strict": true, + "watch": true, + "configFilePath": "/a/b/project2.tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -717,8 +823,15 @@ Output:: -Program root files: ["/a/b/commonFile1.ts","/a/b/commonFile2.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/a/b/project1.tsconfig.json"} +Program root files: [ + "/a/b/commonFile1.ts", + "/a/b/commonFile2.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/a/b/project1.tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -827,8 +940,16 @@ Output:: -Program root files: ["/a/b/commonFile1.ts","/a/b/commonFile2.ts","/a/b/other.ts","/a/b/other2.ts"] -Program options: {"watch":true,"configFilePath":"/a/b/project2.tsconfig.json"} +Program root files: [ + "/a/b/commonFile1.ts", + "/a/b/commonFile2.ts", + "/a/b/other.ts", + "/a/b/other2.ts" +] +Program options: { + "watch": true, + "configFilePath": "/a/b/project2.tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -863,7 +984,11 @@ Change:: Modify extendsConfigFile2 Input:: //// [/a/b/extendsConfig2.tsconfig.json] -{"compilerOptions":{"strictNullChecks":true}} +{ + "compilerOptions": { + "strictNullChecks": true + } +} Before running Timeout callback:: count: 1 @@ -883,8 +1008,16 @@ Output:: -Program root files: ["/a/b/other2.ts"] -Program options: {"composite":false,"strictNullChecks":true,"noImplicitAny":true,"watch":true,"configFilePath":"/a/b/project3.tsconfig.json"} +Program root files: [ + "/a/b/other2.ts" +] +Program options: { + "composite": false, + "strictNullChecks": true, + "noImplicitAny": true, + "watch": true, + "configFilePath": "/a/b/project3.tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -904,7 +1037,18 @@ Change:: Modify project 3 Input:: //// [/a/b/project3.tsconfig.json] -{"extends":["./extendsConfig1.tsconfig.json","./extendsConfig2.tsconfig.json"],"compilerOptions":{"composite":false},"files":["/a/b/other2.ts"]} +{ + "extends": [ + "./extendsConfig1.tsconfig.json", + "./extendsConfig2.tsconfig.json" + ], + "compilerOptions": { + "composite": false + }, + "files": [ + "/a/b/other2.ts" + ] +} Before running Timeout callback:: count: 1 @@ -924,8 +1068,15 @@ Output:: -Program root files: ["/a/b/other2.ts"] -Program options: {"composite":false,"strictNullChecks":true,"watch":true,"configFilePath":"/a/b/project3.tsconfig.json"} +Program root files: [ + "/a/b/other2.ts" +] +Program options: { + "composite": false, + "strictNullChecks": true, + "watch": true, + "configFilePath": "/a/b/project3.tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tsbuildWatch/projectsBuilding/when-there-are-23-projects-in-a-solution.js b/tests/baselines/reference/tsbuildWatch/projectsBuilding/when-there-are-23-projects-in-a-solution.js index 8dd85765c173f..8aefbd7d303bc 100644 --- a/tests/baselines/reference/tsbuildWatch/projectsBuilding/when-there-are-23-projects-in-a-solution.js +++ b/tests/baselines/reference/tsbuildWatch/projectsBuilding/when-there-are-23-projects-in-a-solution.js @@ -17,142 +17,417 @@ interface Array { length: number; [n: number]: T; } export const pkg0 = 0; //// [/user/username/projects/myproject/pkg0/tsconfig.json] -{"compilerOptions":{"composite":true}} +{ + "compilerOptions": { + "composite": true + } +} //// [/user/username/projects/myproject/pkg1/index.ts] export const pkg1 = 1; //// [/user/username/projects/myproject/pkg1/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[{"path":"../pkg0"}]} +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../pkg0" + } + ] +} //// [/user/username/projects/myproject/pkg2/index.ts] export const pkg2 = 2; //// [/user/username/projects/myproject/pkg2/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[{"path":"../pkg0"}]} +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../pkg0" + } + ] +} //// [/user/username/projects/myproject/pkg3/index.ts] export const pkg3 = 3; //// [/user/username/projects/myproject/pkg3/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[{"path":"../pkg0"}]} +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../pkg0" + } + ] +} //// [/user/username/projects/myproject/pkg4/index.ts] export const pkg4 = 4; //// [/user/username/projects/myproject/pkg4/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[{"path":"../pkg0"}]} +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../pkg0" + } + ] +} //// [/user/username/projects/myproject/pkg5/index.ts] export const pkg5 = 5; //// [/user/username/projects/myproject/pkg5/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[{"path":"../pkg0"}]} +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../pkg0" + } + ] +} //// [/user/username/projects/myproject/pkg6/index.ts] export const pkg6 = 6; //// [/user/username/projects/myproject/pkg6/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[{"path":"../pkg0"}]} +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../pkg0" + } + ] +} //// [/user/username/projects/myproject/pkg7/index.ts] export const pkg7 = 7; //// [/user/username/projects/myproject/pkg7/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[{"path":"../pkg0"}]} +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../pkg0" + } + ] +} //// [/user/username/projects/myproject/pkg8/index.ts] export const pkg8 = 8; //// [/user/username/projects/myproject/pkg8/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[{"path":"../pkg0"}]} +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../pkg0" + } + ] +} //// [/user/username/projects/myproject/pkg9/index.ts] export const pkg9 = 9; //// [/user/username/projects/myproject/pkg9/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[{"path":"../pkg0"}]} +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../pkg0" + } + ] +} //// [/user/username/projects/myproject/pkg10/index.ts] export const pkg10 = 10; //// [/user/username/projects/myproject/pkg10/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[{"path":"../pkg0"}]} +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../pkg0" + } + ] +} //// [/user/username/projects/myproject/pkg11/index.ts] export const pkg11 = 11; //// [/user/username/projects/myproject/pkg11/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[{"path":"../pkg0"}]} +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../pkg0" + } + ] +} //// [/user/username/projects/myproject/pkg12/index.ts] export const pkg12 = 12; //// [/user/username/projects/myproject/pkg12/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[{"path":"../pkg0"}]} +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../pkg0" + } + ] +} //// [/user/username/projects/myproject/pkg13/index.ts] export const pkg13 = 13; //// [/user/username/projects/myproject/pkg13/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[{"path":"../pkg0"}]} +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../pkg0" + } + ] +} //// [/user/username/projects/myproject/pkg14/index.ts] export const pkg14 = 14; //// [/user/username/projects/myproject/pkg14/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[{"path":"../pkg0"}]} +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../pkg0" + } + ] +} //// [/user/username/projects/myproject/pkg15/index.ts] export const pkg15 = 15; //// [/user/username/projects/myproject/pkg15/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[{"path":"../pkg0"}]} +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../pkg0" + } + ] +} //// [/user/username/projects/myproject/pkg16/index.ts] export const pkg16 = 16; //// [/user/username/projects/myproject/pkg16/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[{"path":"../pkg0"}]} +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../pkg0" + } + ] +} //// [/user/username/projects/myproject/pkg17/index.ts] export const pkg17 = 17; //// [/user/username/projects/myproject/pkg17/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[{"path":"../pkg0"}]} +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../pkg0" + } + ] +} //// [/user/username/projects/myproject/pkg18/index.ts] export const pkg18 = 18; //// [/user/username/projects/myproject/pkg18/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[{"path":"../pkg0"}]} +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../pkg0" + } + ] +} //// [/user/username/projects/myproject/pkg19/index.ts] export const pkg19 = 19; //// [/user/username/projects/myproject/pkg19/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[{"path":"../pkg0"}]} +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../pkg0" + } + ] +} //// [/user/username/projects/myproject/pkg20/index.ts] export const pkg20 = 20; //// [/user/username/projects/myproject/pkg20/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[{"path":"../pkg0"}]} +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../pkg0" + } + ] +} //// [/user/username/projects/myproject/pkg21/index.ts] export const pkg21 = 21; //// [/user/username/projects/myproject/pkg21/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[{"path":"../pkg0"}]} +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../pkg0" + } + ] +} //// [/user/username/projects/myproject/pkg22/index.ts] export const pkg22 = 22; //// [/user/username/projects/myproject/pkg22/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[{"path":"../pkg0"}]} +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../pkg0" + } + ] +} //// [/user/username/projects/myproject/tsconfig.json] -{"references":[{"path":"./pkg0"},{"path":"./pkg1"},{"path":"./pkg2"},{"path":"./pkg3"},{"path":"./pkg4"},{"path":"./pkg5"},{"path":"./pkg6"},{"path":"./pkg7"},{"path":"./pkg8"},{"path":"./pkg9"},{"path":"./pkg10"},{"path":"./pkg11"},{"path":"./pkg12"},{"path":"./pkg13"},{"path":"./pkg14"},{"path":"./pkg15"},{"path":"./pkg16"},{"path":"./pkg17"},{"path":"./pkg18"},{"path":"./pkg19"},{"path":"./pkg20"},{"path":"./pkg21"},{"path":"./pkg22"}],"files":[]} +{ + "references": [ + { + "path": "./pkg0" + }, + { + "path": "./pkg1" + }, + { + "path": "./pkg2" + }, + { + "path": "./pkg3" + }, + { + "path": "./pkg4" + }, + { + "path": "./pkg5" + }, + { + "path": "./pkg6" + }, + { + "path": "./pkg7" + }, + { + "path": "./pkg8" + }, + { + "path": "./pkg9" + }, + { + "path": "./pkg10" + }, + { + "path": "./pkg11" + }, + { + "path": "./pkg12" + }, + { + "path": "./pkg13" + }, + { + "path": "./pkg14" + }, + { + "path": "./pkg15" + }, + { + "path": "./pkg16" + }, + { + "path": "./pkg17" + }, + { + "path": "./pkg18" + }, + { + "path": "./pkg19" + }, + { + "path": "./pkg20" + }, + { + "path": "./pkg21" + }, + { + "path": "./pkg22" + } + ], + "files": [] +} /a/lib/tsc.js -b -w -v @@ -282,8 +557,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/pkg0/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg0/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg0/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg0/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -297,8 +578,14 @@ Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) /user/username/projects/myproject/pkg0/index.ts (computed .d.ts during emit) -Program root files: ["/user/username/projects/myproject/pkg1/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg1/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg1/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg1/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -312,8 +599,14 @@ Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) /user/username/projects/myproject/pkg1/index.ts (computed .d.ts during emit) -Program root files: ["/user/username/projects/myproject/pkg2/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg2/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg2/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg2/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -327,8 +620,14 @@ Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) /user/username/projects/myproject/pkg2/index.ts (computed .d.ts during emit) -Program root files: ["/user/username/projects/myproject/pkg3/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg3/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg3/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg3/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -342,8 +641,14 @@ Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) /user/username/projects/myproject/pkg3/index.ts (computed .d.ts during emit) -Program root files: ["/user/username/projects/myproject/pkg4/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg4/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg4/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg4/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -357,8 +662,14 @@ Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) /user/username/projects/myproject/pkg4/index.ts (computed .d.ts during emit) -Program root files: ["/user/username/projects/myproject/pkg5/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg5/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg5/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg5/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -372,8 +683,14 @@ Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) /user/username/projects/myproject/pkg5/index.ts (computed .d.ts during emit) -Program root files: ["/user/username/projects/myproject/pkg6/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg6/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg6/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg6/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -387,8 +704,14 @@ Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) /user/username/projects/myproject/pkg6/index.ts (computed .d.ts during emit) -Program root files: ["/user/username/projects/myproject/pkg7/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg7/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg7/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg7/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -402,8 +725,14 @@ Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) /user/username/projects/myproject/pkg7/index.ts (computed .d.ts during emit) -Program root files: ["/user/username/projects/myproject/pkg8/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg8/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg8/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg8/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -417,8 +746,14 @@ Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) /user/username/projects/myproject/pkg8/index.ts (computed .d.ts during emit) -Program root files: ["/user/username/projects/myproject/pkg9/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg9/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg9/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg9/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -432,8 +767,14 @@ Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) /user/username/projects/myproject/pkg9/index.ts (computed .d.ts during emit) -Program root files: ["/user/username/projects/myproject/pkg10/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg10/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg10/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg10/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -447,8 +788,14 @@ Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) /user/username/projects/myproject/pkg10/index.ts (computed .d.ts during emit) -Program root files: ["/user/username/projects/myproject/pkg11/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg11/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg11/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg11/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -462,8 +809,14 @@ Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) /user/username/projects/myproject/pkg11/index.ts (computed .d.ts during emit) -Program root files: ["/user/username/projects/myproject/pkg12/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg12/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg12/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg12/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -477,8 +830,14 @@ Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) /user/username/projects/myproject/pkg12/index.ts (computed .d.ts during emit) -Program root files: ["/user/username/projects/myproject/pkg13/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg13/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg13/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg13/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -492,8 +851,14 @@ Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) /user/username/projects/myproject/pkg13/index.ts (computed .d.ts during emit) -Program root files: ["/user/username/projects/myproject/pkg14/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg14/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg14/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg14/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -507,8 +872,14 @@ Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) /user/username/projects/myproject/pkg14/index.ts (computed .d.ts during emit) -Program root files: ["/user/username/projects/myproject/pkg15/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg15/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg15/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg15/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -522,8 +893,14 @@ Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) /user/username/projects/myproject/pkg15/index.ts (computed .d.ts during emit) -Program root files: ["/user/username/projects/myproject/pkg16/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg16/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg16/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg16/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -537,8 +914,14 @@ Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) /user/username/projects/myproject/pkg16/index.ts (computed .d.ts during emit) -Program root files: ["/user/username/projects/myproject/pkg17/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg17/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg17/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg17/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -552,8 +935,14 @@ Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) /user/username/projects/myproject/pkg17/index.ts (computed .d.ts during emit) -Program root files: ["/user/username/projects/myproject/pkg18/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg18/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg18/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg18/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -567,8 +956,14 @@ Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) /user/username/projects/myproject/pkg18/index.ts (computed .d.ts during emit) -Program root files: ["/user/username/projects/myproject/pkg19/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg19/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg19/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg19/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -582,8 +977,14 @@ Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) /user/username/projects/myproject/pkg19/index.ts (computed .d.ts during emit) -Program root files: ["/user/username/projects/myproject/pkg20/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg20/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg20/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg20/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -597,8 +998,14 @@ Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) /user/username/projects/myproject/pkg20/index.ts (computed .d.ts during emit) -Program root files: ["/user/username/projects/myproject/pkg21/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg21/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg21/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg21/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -612,8 +1019,14 @@ Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) /user/username/projects/myproject/pkg21/index.ts (computed .d.ts during emit) -Program root files: ["/user/username/projects/myproject/pkg22/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg22/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg22/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg22/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -2287,8 +2700,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/pkg0/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg0/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg0/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg0/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -2415,8 +2834,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/pkg0/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg0/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg0/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg0/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -2536,8 +2961,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/pkg1/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg1/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg1/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg1/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -2547,8 +2978,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg2/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg2/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg2/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg2/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -2558,8 +2995,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg3/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg3/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg3/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg3/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -2569,8 +3012,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg4/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg4/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg4/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg4/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -2580,8 +3029,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg5/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg5/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg5/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg5/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -2640,8 +3095,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/pkg6/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg6/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg6/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg6/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -2651,8 +3112,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg7/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg7/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg7/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg7/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -2662,8 +3129,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg8/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg8/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg8/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg8/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -2673,8 +3146,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg9/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg9/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg9/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg9/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -2684,8 +3163,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg10/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg10/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg10/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg10/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -2744,8 +3229,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/pkg11/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg11/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg11/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg11/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -2755,8 +3246,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg12/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg12/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg12/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg12/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -2766,8 +3263,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg13/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg13/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg13/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg13/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -2777,8 +3280,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg14/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg14/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg14/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg14/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -2788,8 +3297,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg15/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg15/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg15/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg15/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -2848,8 +3363,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/pkg16/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg16/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg16/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg16/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -2859,8 +3380,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg17/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg17/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg17/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg17/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -2870,8 +3397,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg18/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg18/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg18/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg18/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -2881,8 +3414,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg19/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg19/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg19/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg19/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -2892,8 +3431,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg20/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg20/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg20/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg20/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -2935,8 +3480,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/pkg21/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg21/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg21/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg21/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -2946,8 +3497,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg22/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg22/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg22/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg22/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -2994,8 +3551,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/pkg0/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg0/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg0/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg0/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -3117,8 +3680,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/pkg1/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg1/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg1/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg1/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -3128,8 +3697,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg2/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg2/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg2/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg2/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -3139,8 +3714,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg3/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg3/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg3/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg3/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -3150,8 +3731,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg4/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg4/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg4/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg4/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -3161,8 +3748,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg5/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg5/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg5/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg5/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -3221,8 +3814,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/pkg6/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg6/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg6/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg6/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -3232,8 +3831,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg7/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg7/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg7/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg7/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -3243,8 +3848,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg8/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg8/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg8/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg8/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -3254,8 +3865,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg9/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg9/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg9/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg9/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -3265,8 +3882,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg10/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg10/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg10/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg10/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -3345,8 +3968,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/pkg0/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg0/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg0/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg0/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -3473,8 +4102,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/pkg11/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg11/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg11/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg11/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -3484,8 +4119,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg12/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg12/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg12/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg12/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -3495,8 +4136,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg13/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg13/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg13/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg13/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -3506,8 +4153,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg14/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg14/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg14/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg14/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -3517,8 +4170,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg15/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg15/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg15/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg15/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -3557,8 +4216,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/pkg0/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg0/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg0/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg0/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -3683,8 +4348,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/pkg1/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg1/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg1/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg1/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -3694,8 +4365,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg2/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg2/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg2/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg2/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -3705,8 +4382,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg3/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg3/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg3/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg3/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -3716,8 +4399,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg4/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg4/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg4/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg4/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -3727,8 +4416,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg5/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg5/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg5/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg5/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -3787,8 +4482,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/pkg6/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg6/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg6/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg6/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -3798,8 +4499,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg7/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg7/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg7/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg7/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -3809,8 +4516,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg8/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg8/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg8/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg8/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -3820,8 +4533,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg9/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg9/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg9/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg9/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -3831,8 +4550,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg10/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg10/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg10/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg10/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -3891,8 +4616,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/pkg11/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg11/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg11/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg11/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -3902,8 +4633,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg12/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg12/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg12/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg12/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -3913,8 +4650,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg13/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg13/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg13/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg13/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -3924,8 +4667,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg14/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg14/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg14/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg14/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -3935,8 +4684,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg15/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg15/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg15/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg15/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -3995,8 +4750,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/pkg16/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg16/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg16/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg16/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -4006,8 +4767,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg17/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg17/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg17/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg17/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -4017,8 +4784,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg18/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg18/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg18/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg18/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -4028,8 +4801,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg19/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg19/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg19/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg19/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -4039,8 +4818,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg20/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg20/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg20/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg20/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -4082,8 +4867,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/pkg21/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg21/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg21/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg21/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -4093,8 +4884,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg22/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg22/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg22/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg22/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tsbuildWatch/projectsBuilding/when-there-are-3-projects-in-a-solution.js b/tests/baselines/reference/tsbuildWatch/projectsBuilding/when-there-are-3-projects-in-a-solution.js index cfe97603debb5..015bc22c91c61 100644 --- a/tests/baselines/reference/tsbuildWatch/projectsBuilding/when-there-are-3-projects-in-a-solution.js +++ b/tests/baselines/reference/tsbuildWatch/projectsBuilding/when-there-are-3-projects-in-a-solution.js @@ -17,22 +17,57 @@ interface Array { length: number; [n: number]: T; } export const pkg0 = 0; //// [/user/username/projects/myproject/pkg0/tsconfig.json] -{"compilerOptions":{"composite":true}} +{ + "compilerOptions": { + "composite": true + } +} //// [/user/username/projects/myproject/pkg1/index.ts] export const pkg1 = 1; //// [/user/username/projects/myproject/pkg1/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[{"path":"../pkg0"}]} +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../pkg0" + } + ] +} //// [/user/username/projects/myproject/pkg2/index.ts] export const pkg2 = 2; //// [/user/username/projects/myproject/pkg2/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[{"path":"../pkg0"}]} +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../pkg0" + } + ] +} //// [/user/username/projects/myproject/tsconfig.json] -{"references":[{"path":"./pkg0"},{"path":"./pkg1"},{"path":"./pkg2"}],"files":[]} +{ + "references": [ + { + "path": "./pkg0" + }, + { + "path": "./pkg1" + }, + { + "path": "./pkg2" + } + ], + "files": [] +} /a/lib/tsc.js -b -w -v @@ -62,8 +97,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/pkg0/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg0/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg0/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg0/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -77,8 +118,14 @@ Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) /user/username/projects/myproject/pkg0/index.ts (computed .d.ts during emit) -Program root files: ["/user/username/projects/myproject/pkg1/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg1/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg1/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg1/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -92,8 +139,14 @@ Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) /user/username/projects/myproject/pkg1/index.ts (computed .d.ts during emit) -Program root files: ["/user/username/projects/myproject/pkg2/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg2/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg2/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg2/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -347,8 +400,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/pkg0/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg0/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg0/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg0/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -455,8 +514,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/pkg0/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg0/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg0/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg0/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -559,8 +624,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/pkg1/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg1/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg1/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg1/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -570,8 +641,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg2/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg2/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg2/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg2/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tsbuildWatch/projectsBuilding/when-there-are-5-projects-in-a-solution.js b/tests/baselines/reference/tsbuildWatch/projectsBuilding/when-there-are-5-projects-in-a-solution.js index 11215e584e63e..c73fd56318cb2 100644 --- a/tests/baselines/reference/tsbuildWatch/projectsBuilding/when-there-are-5-projects-in-a-solution.js +++ b/tests/baselines/reference/tsbuildWatch/projectsBuilding/when-there-are-5-projects-in-a-solution.js @@ -17,34 +17,93 @@ interface Array { length: number; [n: number]: T; } export const pkg0 = 0; //// [/user/username/projects/myproject/pkg0/tsconfig.json] -{"compilerOptions":{"composite":true}} +{ + "compilerOptions": { + "composite": true + } +} //// [/user/username/projects/myproject/pkg1/index.ts] export const pkg1 = 1; //// [/user/username/projects/myproject/pkg1/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[{"path":"../pkg0"}]} +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../pkg0" + } + ] +} //// [/user/username/projects/myproject/pkg2/index.ts] export const pkg2 = 2; //// [/user/username/projects/myproject/pkg2/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[{"path":"../pkg0"}]} +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../pkg0" + } + ] +} //// [/user/username/projects/myproject/pkg3/index.ts] export const pkg3 = 3; //// [/user/username/projects/myproject/pkg3/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[{"path":"../pkg0"}]} +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../pkg0" + } + ] +} //// [/user/username/projects/myproject/pkg4/index.ts] export const pkg4 = 4; //// [/user/username/projects/myproject/pkg4/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[{"path":"../pkg0"}]} +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../pkg0" + } + ] +} //// [/user/username/projects/myproject/tsconfig.json] -{"references":[{"path":"./pkg0"},{"path":"./pkg1"},{"path":"./pkg2"},{"path":"./pkg3"},{"path":"./pkg4"}],"files":[]} +{ + "references": [ + { + "path": "./pkg0" + }, + { + "path": "./pkg1" + }, + { + "path": "./pkg2" + }, + { + "path": "./pkg3" + }, + { + "path": "./pkg4" + } + ], + "files": [] +} /a/lib/tsc.js -b -w -v @@ -84,8 +143,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/pkg0/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg0/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg0/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg0/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -99,8 +164,14 @@ Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) /user/username/projects/myproject/pkg0/index.ts (computed .d.ts during emit) -Program root files: ["/user/username/projects/myproject/pkg1/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg1/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg1/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg1/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -114,8 +185,14 @@ Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) /user/username/projects/myproject/pkg1/index.ts (computed .d.ts during emit) -Program root files: ["/user/username/projects/myproject/pkg2/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg2/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg2/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg2/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -129,8 +206,14 @@ Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) /user/username/projects/myproject/pkg2/index.ts (computed .d.ts during emit) -Program root files: ["/user/username/projects/myproject/pkg3/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg3/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg3/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg3/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -144,8 +227,14 @@ Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) /user/username/projects/myproject/pkg3/index.ts (computed .d.ts during emit) -Program root files: ["/user/username/projects/myproject/pkg4/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg4/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg4/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg4/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -541,8 +630,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/pkg0/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg0/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg0/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg0/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -651,8 +746,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/pkg0/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg0/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg0/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg0/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -767,8 +868,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/pkg1/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg1/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg1/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg1/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -778,8 +885,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg2/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg2/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg2/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg2/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -789,8 +902,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg3/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg3/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg3/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg3/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -800,8 +919,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg4/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg4/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg4/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg4/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tsbuildWatch/projectsBuilding/when-there-are-8-projects-in-a-solution.js b/tests/baselines/reference/tsbuildWatch/projectsBuilding/when-there-are-8-projects-in-a-solution.js index 99d6305dc9e2b..76aed6908bf3d 100644 --- a/tests/baselines/reference/tsbuildWatch/projectsBuilding/when-there-are-8-projects-in-a-solution.js +++ b/tests/baselines/reference/tsbuildWatch/projectsBuilding/when-there-are-8-projects-in-a-solution.js @@ -17,52 +17,147 @@ interface Array { length: number; [n: number]: T; } export const pkg0 = 0; //// [/user/username/projects/myproject/pkg0/tsconfig.json] -{"compilerOptions":{"composite":true}} +{ + "compilerOptions": { + "composite": true + } +} //// [/user/username/projects/myproject/pkg1/index.ts] export const pkg1 = 1; //// [/user/username/projects/myproject/pkg1/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[{"path":"../pkg0"}]} +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../pkg0" + } + ] +} //// [/user/username/projects/myproject/pkg2/index.ts] export const pkg2 = 2; //// [/user/username/projects/myproject/pkg2/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[{"path":"../pkg0"}]} +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../pkg0" + } + ] +} //// [/user/username/projects/myproject/pkg3/index.ts] export const pkg3 = 3; //// [/user/username/projects/myproject/pkg3/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[{"path":"../pkg0"}]} +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../pkg0" + } + ] +} //// [/user/username/projects/myproject/pkg4/index.ts] export const pkg4 = 4; //// [/user/username/projects/myproject/pkg4/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[{"path":"../pkg0"}]} +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../pkg0" + } + ] +} //// [/user/username/projects/myproject/pkg5/index.ts] export const pkg5 = 5; //// [/user/username/projects/myproject/pkg5/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[{"path":"../pkg0"}]} +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../pkg0" + } + ] +} //// [/user/username/projects/myproject/pkg6/index.ts] export const pkg6 = 6; //// [/user/username/projects/myproject/pkg6/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[{"path":"../pkg0"}]} +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../pkg0" + } + ] +} //// [/user/username/projects/myproject/pkg7/index.ts] export const pkg7 = 7; //// [/user/username/projects/myproject/pkg7/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[{"path":"../pkg0"}]} +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../pkg0" + } + ] +} //// [/user/username/projects/myproject/tsconfig.json] -{"references":[{"path":"./pkg0"},{"path":"./pkg1"},{"path":"./pkg2"},{"path":"./pkg3"},{"path":"./pkg4"},{"path":"./pkg5"},{"path":"./pkg6"},{"path":"./pkg7"}],"files":[]} +{ + "references": [ + { + "path": "./pkg0" + }, + { + "path": "./pkg1" + }, + { + "path": "./pkg2" + }, + { + "path": "./pkg3" + }, + { + "path": "./pkg4" + }, + { + "path": "./pkg5" + }, + { + "path": "./pkg6" + }, + { + "path": "./pkg7" + } + ], + "files": [] +} /a/lib/tsc.js -b -w -v @@ -117,8 +212,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/pkg0/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg0/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg0/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg0/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -132,8 +233,14 @@ Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) /user/username/projects/myproject/pkg0/index.ts (computed .d.ts during emit) -Program root files: ["/user/username/projects/myproject/pkg1/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg1/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg1/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg1/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -147,8 +254,14 @@ Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) /user/username/projects/myproject/pkg1/index.ts (computed .d.ts during emit) -Program root files: ["/user/username/projects/myproject/pkg2/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg2/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg2/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg2/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -162,8 +275,14 @@ Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) /user/username/projects/myproject/pkg2/index.ts (computed .d.ts during emit) -Program root files: ["/user/username/projects/myproject/pkg3/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg3/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg3/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg3/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -177,8 +296,14 @@ Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) /user/username/projects/myproject/pkg3/index.ts (computed .d.ts during emit) -Program root files: ["/user/username/projects/myproject/pkg4/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg4/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg4/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg4/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -192,8 +317,14 @@ Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) /user/username/projects/myproject/pkg4/index.ts (computed .d.ts during emit) -Program root files: ["/user/username/projects/myproject/pkg5/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg5/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg5/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg5/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -207,8 +338,14 @@ Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) /user/username/projects/myproject/pkg5/index.ts (computed .d.ts during emit) -Program root files: ["/user/username/projects/myproject/pkg6/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg6/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg6/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg6/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -222,8 +359,14 @@ Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) /user/username/projects/myproject/pkg6/index.ts (computed .d.ts during emit) -Program root files: ["/user/username/projects/myproject/pkg7/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg7/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg7/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg7/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -832,8 +975,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/pkg0/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg0/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg0/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg0/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -945,8 +1094,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/pkg0/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg0/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg0/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg0/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -1066,8 +1221,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/pkg1/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg1/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg1/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg1/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -1077,8 +1238,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg2/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg2/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg2/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg2/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -1088,8 +1255,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg3/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg3/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg3/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg3/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -1099,8 +1272,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg4/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg4/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg4/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg4/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -1110,8 +1289,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg5/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg5/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg5/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg5/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -1153,8 +1338,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/pkg6/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg6/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg6/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg6/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -1164,8 +1355,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg7/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg7/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg7/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg7/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -1212,8 +1409,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/pkg0/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg0/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg0/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg0/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -1335,8 +1538,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/pkg1/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg1/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg1/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg1/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -1346,8 +1555,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg2/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg2/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg2/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg2/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -1357,8 +1572,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg3/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg3/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg3/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg3/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -1368,8 +1589,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg4/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg4/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg4/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg4/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -1379,8 +1606,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg5/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg5/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg5/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg5/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -1439,8 +1672,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/pkg0/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg0/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg0/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg0/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -1545,8 +1784,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/pkg6/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg6/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg6/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg6/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -1556,8 +1801,14 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: -Program root files: ["/user/username/projects/myproject/pkg7/index.ts"] -Program options: {"composite":true,"watch":true,"configFilePath":"/user/username/projects/myproject/pkg7/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg7/index.ts" +] +Program options: { + "composite": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg7/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tsbuildWatch/publicApi/with-custom-transformers.js b/tests/baselines/reference/tsbuildWatch/publicApi/with-custom-transformers.js index e3283af7d6bf4..c350f5c7c2ab1 100644 --- a/tests/baselines/reference/tsbuildWatch/publicApi/with-custom-transformers.js +++ b/tests/baselines/reference/tsbuildWatch/publicApi/with-custom-transformers.js @@ -14,10 +14,24 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/tsconfig.json] -{"references":[{"path":"./shared/tsconfig.json"},{"path":"./webpack/tsconfig.json"}],"files":[]} +{ + "references": [ + { + "path": "./shared/tsconfig.json" + }, + { + "path": "./webpack/tsconfig.json" + } + ], + "files": [] +} //// [/user/username/projects/myproject/shared/tsconfig.json] -{"compilerOptions":{"composite":true}} +{ + "compilerOptions": { + "composite": true + } +} //// [/user/username/projects/myproject/shared/index.ts] export function f1() { } @@ -27,7 +41,16 @@ export enum e { } export function f2() { } // trailing //// [/user/username/projects/myproject/webpack/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[{"path":"../shared/tsconfig.json"}]} +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../shared/tsconfig.json" + } + ] +} //// [/user/username/projects/myproject/webpack/index.ts] export function f2() { } @@ -56,8 +79,13 @@ Output:: -Program root files: ["/user/username/projects/myproject/shared/index.ts"] -Program options: {"composite":true,"configFilePath":"/user/username/projects/myproject/shared/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/shared/index.ts" +] +Program options: { + "composite": true, + "configFilePath": "/user/username/projects/myproject/shared/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -71,8 +99,13 @@ Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) /user/username/projects/myproject/shared/index.ts (used version) -Program root files: ["/user/username/projects/myproject/webpack/index.ts"] -Program options: {"composite":true,"configFilePath":"/user/username/projects/myproject/webpack/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/webpack/index.ts" +] +Program options: { + "composite": true, + "configFilePath": "/user/username/projects/myproject/webpack/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -313,8 +346,13 @@ Output:: -Program root files: ["/user/username/projects/myproject/shared/index.ts"] -Program options: {"composite":true,"configFilePath":"/user/username/projects/myproject/shared/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/shared/index.ts" +] +Program options: { + "composite": true, + "configFilePath": "/user/username/projects/myproject/shared/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -326,8 +364,13 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /user/username/projects/myproject/shared/index.ts (computed .d.ts) -Program root files: ["/user/username/projects/myproject/webpack/index.ts"] -Program options: {"composite":true,"configFilePath":"/user/username/projects/myproject/webpack/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/webpack/index.ts" +] +Program options: { + "composite": true, + "configFilePath": "/user/username/projects/myproject/webpack/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tsbuildWatch/reexport/Reports-errors-correctly.js b/tests/baselines/reference/tsbuildWatch/reexport/Reports-errors-correctly.js index a554d80a2a285..6f41ee4bb4619 100644 --- a/tests/baselines/reference/tsbuildWatch/reexport/Reports-errors-correctly.js +++ b/tests/baselines/reference/tsbuildWatch/reexport/Reports-errors-correctly.js @@ -4,9 +4,15 @@ Input:: { "files": [], "include": [], - "references": [{ "path": "./pure" }, { "path": "./main" }] -} - + "references": [ + { + "path": "./pure" + }, + { + "path": "./main" + } + ] +} //// [/user/username/projects/reexport/src/main/tsconfig.json] { @@ -14,16 +20,21 @@ Input:: "outDir": "../../out", "rootDir": "../" }, - "include": ["**/*.ts"], - "references": [{ "path": "../pure" }] -} - + "include": [ + "**/*.ts" + ], + "references": [ + { + "path": "../pure" + } + ] +} //// [/user/username/projects/reexport/src/main/index.ts] import { Session } from "../pure"; export const session: Session = { - foo: 1 + foo: 1 }; @@ -34,9 +45,10 @@ export const session: Session = { "outDir": "../../out", "rootDir": "../" }, - "include": ["**/*.ts"] -} - + "include": [ + "**/*.ts" + ] +} //// [/user/username/projects/reexport/src/pure/index.ts] export * from "./session"; @@ -44,8 +56,8 @@ export * from "./session"; //// [/user/username/projects/reexport/src/pure/session.ts] export interface Session { - foo: number; - // bar: number; + foo: number; + // bar: number; } @@ -87,8 +99,17 @@ Output:: -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 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 structureReused: Not Program files:: /a/lib/lib.d.ts @@ -105,8 +126,15 @@ Shape signatures in builder refreshed for:: /user/username/projects/reexport/src/pure/session.ts (computed .d.ts during emit) /user/username/projects/reexport/src/pure/index.ts (used version) -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 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 structureReused: Not Program files:: /a/lib/lib.d.ts @@ -188,7 +216,7 @@ export * from "./session"; //// [/user/username/projects/reexport/out/pure/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../src/pure/session.ts","../../src/pure/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"5375279855-export interface Session {\n foo: number;\n // bar: number;\n}\n","signature":"-1218067212-export interface Session {\n foo: number;\n}\n"},"-5356193041-export * from \"./session\";\n"],"root":[2,3],"options":{"composite":true,"outDir":"..","rootDir":"../../src"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,3,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../src/pure/session.ts","../../src/pure/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"1782339311-export interface Session {\n foo: number;\n // bar: number;\n}\n","signature":"-1218067212-export interface Session {\n foo: number;\n}\n"},"-5356193041-export * from \"./session\";\n"],"root":[2,3],"options":{"composite":true,"outDir":"..","rootDir":"../../src"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,3,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/reexport/out/pure/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -215,10 +243,10 @@ export * from "./session"; }, "../../src/pure/session.ts": { "original": { - "version": "5375279855-export interface Session {\n foo: number;\n // bar: number;\n}\n", + "version": "1782339311-export interface Session {\n foo: number;\n // bar: number;\n}\n", "signature": "-1218067212-export interface Session {\n foo: number;\n}\n" }, - "version": "5375279855-export interface Session {\n foo: number;\n // bar: number;\n}\n", + "version": "1782339311-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": { @@ -259,7 +287,7 @@ export * from "./session"; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1074 + "size": 1078 } //// [/user/username/projects/reexport/out/main/index.js] @@ -277,8 +305,8 @@ Change:: Introduce error Input:: //// [/user/username/projects/reexport/src/pure/session.ts] export interface Session { - foo: number; - bar: number; + foo: number; + bar: number; } @@ -316,8 +344,17 @@ Output:: -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 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 structureReused: Not Program files:: /a/lib/lib.d.ts @@ -329,11 +366,18 @@ Semantic diagnostics in builder refreshed for:: /user/username/projects/reexport/src/pure/index.ts Shape signatures in builder refreshed for:: -/user/username/projects/reexport/src/pure/session.ts (computed .d.ts) +/user/username/projects/reexport/src/pure/session.ts (used version) /user/username/projects/reexport/src/pure/index.ts (used version) -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 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 structureReused: Not Program files:: /a/lib/lib.d.ts @@ -363,7 +407,7 @@ export interface Session { //// [/user/username/projects/reexport/out/pure/index.js] file written with same contents //// [/user/username/projects/reexport/out/pure/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../src/pure/session.ts","../../src/pure/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"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"},"-5356193041-export * from \"./session\";\n"],"root":[2,3],"options":{"composite":true,"outDir":"..","rootDir":"../../src"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,3,2],"latestChangedDtsFile":"./session.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../src/pure/session.ts","../../src/pure/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"309257137-export interface Session {\n foo: number;\n bar: number;\n}\n","-5356193041-export * from \"./session\";\n"],"root":[2,3],"options":{"composite":true,"outDir":"..","rootDir":"../../src"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,3,2],"latestChangedDtsFile":"./session.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/reexport/out/pure/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -389,11 +433,7 @@ export interface Session { "affectsGlobalScope": true }, "../../src/pure/session.ts": { - "original": { - "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" - }, - "version": "4223553457-export interface Session {\n foo: number;\n bar: number;\n}\n", + "version": "309257137-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": { @@ -434,7 +474,7 @@ export interface Session { "latestChangedDtsFile": "./session.d.ts" }, "version": "FakeTSVersion", - "size": 1089 + "size": 988 } @@ -443,8 +483,8 @@ Change:: Fix error Input:: //// [/user/username/projects/reexport/src/pure/session.ts] export interface Session { - foo: number; - // bar: number; + foo: number; + // bar: number; } @@ -474,8 +514,17 @@ Output:: -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 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 structureReused: Not Program files:: /a/lib/lib.d.ts @@ -490,8 +539,15 @@ Shape signatures in builder refreshed for:: /user/username/projects/reexport/src/pure/session.ts (computed .d.ts) /user/username/projects/reexport/src/pure/index.ts (used version) -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 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 structureReused: Not Program files:: /a/lib/lib.d.ts @@ -520,7 +576,7 @@ export interface Session { //// [/user/username/projects/reexport/out/pure/index.js] file written with same contents //// [/user/username/projects/reexport/out/pure/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../src/pure/session.ts","../../src/pure/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"5375279855-export interface Session {\n foo: number;\n // bar: number;\n}\n","signature":"-1218067212-export interface Session {\n foo: number;\n}\n"},"-5356193041-export * from \"./session\";\n"],"root":[2,3],"options":{"composite":true,"outDir":"..","rootDir":"../../src"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,3,2],"latestChangedDtsFile":"./session.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../src/pure/session.ts","../../src/pure/index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"1782339311-export interface Session {\n foo: number;\n // bar: number;\n}\n","signature":"-1218067212-export interface Session {\n foo: number;\n}\n"},"-5356193041-export * from \"./session\";\n"],"root":[2,3],"options":{"composite":true,"outDir":"..","rootDir":"../../src"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,3,2],"latestChangedDtsFile":"./session.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/reexport/out/pure/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -547,10 +603,10 @@ export interface Session { }, "../../src/pure/session.ts": { "original": { - "version": "5375279855-export interface Session {\n foo: number;\n // bar: number;\n}\n", + "version": "1782339311-export interface Session {\n foo: number;\n // bar: number;\n}\n", "signature": "-1218067212-export interface Session {\n foo: number;\n}\n" }, - "version": "5375279855-export interface Session {\n foo: number;\n // bar: number;\n}\n", + "version": "1782339311-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": { @@ -591,7 +647,7 @@ export interface Session { "latestChangedDtsFile": "./session.d.ts" }, "version": "FakeTSVersion", - "size": 1076 + "size": 1080 } //// [/user/username/projects/reexport/out/main/index.js] file changed its modified time diff --git a/tests/baselines/reference/tsbuildWatch/watchEnvironment/same-file-in-multiple-projects-with-single-watcher-per-file.js b/tests/baselines/reference/tsbuildWatch/watchEnvironment/same-file-in-multiple-projects-with-single-watcher-per-file.js index 3ef79df1871c4..9331db3f3865a 100644 --- a/tests/baselines/reference/tsbuildWatch/watchEnvironment/same-file-in-multiple-projects-with-single-watcher-per-file.js +++ b/tests/baselines/reference/tsbuildWatch/watchEnvironment/same-file-in-multiple-projects-with-single-watcher-per-file.js @@ -20,28 +20,77 @@ export const typing = 10; export const pkg0 = 0; //// [/user/username/projects/myproject/pkg0/tsconfig.json] -{"complerOptions":{"composite":true},"include":["**/*.ts","../typings/xterm.d.ts"]} +{ + "complerOptions": { + "composite": true + }, + "include": [ + "**/*.ts", + "../typings/xterm.d.ts" + ] +} //// [/user/username/projects/myproject/pkg1/index.ts] export const pkg1 = 1; //// [/user/username/projects/myproject/pkg1/tsconfig.json] -{"complerOptions":{"composite":true},"include":["**/*.ts","../typings/xterm.d.ts"]} +{ + "complerOptions": { + "composite": true + }, + "include": [ + "**/*.ts", + "../typings/xterm.d.ts" + ] +} //// [/user/username/projects/myproject/pkg2/index.ts] export const pkg2 = 2; //// [/user/username/projects/myproject/pkg2/tsconfig.json] -{"complerOptions":{"composite":true},"include":["**/*.ts","../typings/xterm.d.ts"]} +{ + "complerOptions": { + "composite": true + }, + "include": [ + "**/*.ts", + "../typings/xterm.d.ts" + ] +} //// [/user/username/projects/myproject/pkg3/index.ts] export const pkg3 = 3; //// [/user/username/projects/myproject/pkg3/tsconfig.json] -{"complerOptions":{"composite":true},"include":["**/*.ts","../typings/xterm.d.ts"]} +{ + "complerOptions": { + "composite": true + }, + "include": [ + "**/*.ts", + "../typings/xterm.d.ts" + ] +} //// [/user/username/projects/myproject/tsconfig.json] -{"files":[],"include":[],"references":[{"path":"./pkg0"},{"path":"./pkg1"},{"path":"./pkg2"},{"path":"./pkg3"}]} +{ + "files": [], + "include": [], + "references": [ + { + "path": "./pkg0" + }, + { + "path": "./pkg1" + }, + { + "path": "./pkg2" + }, + { + "path": "./pkg3" + } + ] +} /a/lib/tsc.js --b --w @@ -76,8 +125,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/pkg0/index.ts","/user/username/projects/myproject/typings/xterm.d.ts"] -Program options: {"watch":true,"configFilePath":"/user/username/projects/myproject/pkg0/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg0/index.ts", + "/user/username/projects/myproject/typings/xterm.d.ts" +] +Program options: { + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg0/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -94,8 +149,14 @@ Shape signatures in builder refreshed for:: /user/username/projects/myproject/pkg0/index.ts (used version) /user/username/projects/myproject/typings/xterm.d.ts (used version) -Program root files: ["/user/username/projects/myproject/pkg1/index.ts","/user/username/projects/myproject/typings/xterm.d.ts"] -Program options: {"watch":true,"configFilePath":"/user/username/projects/myproject/pkg1/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg1/index.ts", + "/user/username/projects/myproject/typings/xterm.d.ts" +] +Program options: { + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg1/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -112,8 +173,14 @@ Shape signatures in builder refreshed for:: /user/username/projects/myproject/pkg1/index.ts (used version) /user/username/projects/myproject/typings/xterm.d.ts (used version) -Program root files: ["/user/username/projects/myproject/pkg2/index.ts","/user/username/projects/myproject/typings/xterm.d.ts"] -Program options: {"watch":true,"configFilePath":"/user/username/projects/myproject/pkg2/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg2/index.ts", + "/user/username/projects/myproject/typings/xterm.d.ts" +] +Program options: { + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg2/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -130,8 +197,14 @@ Shape signatures in builder refreshed for:: /user/username/projects/myproject/pkg2/index.ts (used version) /user/username/projects/myproject/typings/xterm.d.ts (used version) -Program root files: ["/user/username/projects/myproject/pkg3/index.ts","/user/username/projects/myproject/typings/xterm.d.ts"] -Program options: {"watch":true,"configFilePath":"/user/username/projects/myproject/pkg3/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg3/index.ts", + "/user/username/projects/myproject/typings/xterm.d.ts" +] +Program options: { + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg3/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -257,8 +330,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/pkg0/index.ts","/user/username/projects/myproject/typings/xterm.d.ts"] -Program options: {"watch":true,"configFilePath":"/user/username/projects/myproject/pkg0/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg0/index.ts", + "/user/username/projects/myproject/typings/xterm.d.ts" +] +Program options: { + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg0/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -271,8 +350,14 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /user/username/projects/myproject/typings/xterm.d.ts (used version) -Program root files: ["/user/username/projects/myproject/pkg1/index.ts","/user/username/projects/myproject/typings/xterm.d.ts"] -Program options: {"watch":true,"configFilePath":"/user/username/projects/myproject/pkg1/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg1/index.ts", + "/user/username/projects/myproject/typings/xterm.d.ts" +] +Program options: { + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg1/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -285,8 +370,14 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /user/username/projects/myproject/typings/xterm.d.ts (used version) -Program root files: ["/user/username/projects/myproject/pkg2/index.ts","/user/username/projects/myproject/typings/xterm.d.ts"] -Program options: {"watch":true,"configFilePath":"/user/username/projects/myproject/pkg2/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg2/index.ts", + "/user/username/projects/myproject/typings/xterm.d.ts" +] +Program options: { + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg2/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -299,8 +390,14 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /user/username/projects/myproject/typings/xterm.d.ts (used version) -Program root files: ["/user/username/projects/myproject/pkg3/index.ts","/user/username/projects/myproject/typings/xterm.d.ts"] -Program options: {"watch":true,"configFilePath":"/user/username/projects/myproject/pkg3/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg3/index.ts", + "/user/username/projects/myproject/typings/xterm.d.ts" +] +Program options: { + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg3/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -324,7 +421,21 @@ Change:: change pkg references Input:: //// [/user/username/projects/myproject/tsconfig.json] -{"files":[],"include":[],"references":[{"path":"./pkg0"},{"path":"./pkg1"},{"path":"./pkg2"}]} +{ + "files": [], + "include": [], + "references": [ + { + "path": "./pkg0" + }, + { + "path": "./pkg1" + }, + { + "path": "./pkg2" + } + ] +} Before running Timeout callback:: count: 1 @@ -417,8 +528,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/pkg0/index.ts","/user/username/projects/myproject/typings/xterm.d.ts"] -Program options: {"watch":true,"configFilePath":"/user/username/projects/myproject/pkg0/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg0/index.ts", + "/user/username/projects/myproject/typings/xterm.d.ts" +] +Program options: { + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg0/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -431,8 +548,14 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /user/username/projects/myproject/typings/xterm.d.ts (used version) -Program root files: ["/user/username/projects/myproject/pkg1/index.ts","/user/username/projects/myproject/typings/xterm.d.ts"] -Program options: {"watch":true,"configFilePath":"/user/username/projects/myproject/pkg1/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg1/index.ts", + "/user/username/projects/myproject/typings/xterm.d.ts" +] +Program options: { + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg1/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -445,8 +568,14 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /user/username/projects/myproject/typings/xterm.d.ts (used version) -Program root files: ["/user/username/projects/myproject/pkg2/index.ts","/user/username/projects/myproject/typings/xterm.d.ts"] -Program options: {"watch":true,"configFilePath":"/user/username/projects/myproject/pkg2/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg2/index.ts", + "/user/username/projects/myproject/typings/xterm.d.ts" +] +Program options: { + "watch": true, + "configFilePath": "/user/username/projects/myproject/pkg2/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -469,7 +598,11 @@ Change:: change pkg references to remove all watches Input:: //// [/user/username/projects/myproject/tsconfig.json] -{"files":[],"include":[],"references":[]} +{ + "files": [], + "include": [], + "references": [] +} Before running Timeout callback:: count: 1 @@ -479,10 +612,10 @@ Output:: >> Screen clear [12:01:57 AM] File change detected. Starting incremental compilation... -tsconfig.json:1:10 - error TS18002: The 'files' list in config file '/user/username/projects/myproject/tsconfig.json' is empty. +tsconfig.json:2:12 - error TS18002: The 'files' list in config file '/user/username/projects/myproject/tsconfig.json' is empty. -1 {"files":[],"include":[],"references":[]} -   ~~ +2 "files": [], +   ~~ [12:01:58 AM] Found 1 error. Watching for file changes. diff --git a/tests/baselines/reference/tsc/cancellationToken/when-emitting-buildInfo.js b/tests/baselines/reference/tsc/cancellationToken/when-emitting-buildInfo.js index d91ee62a86ab4..32b457f5ac155 100644 --- a/tests/baselines/reference/tsc/cancellationToken/when-emitting-buildInfo.js +++ b/tests/baselines/reference/tsc/cancellationToken/when-emitting-buildInfo.js @@ -21,7 +21,12 @@ export class C { export class D { } //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"incremental":true,"declaration":true}} +{ + "compilerOptions": { + "incremental": true, + "declaration": true + } +} //// [/a/lib/lib.d.ts] /// @@ -39,8 +44,17 @@ interface Array { length: number; [n: number]: T; } Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts","/user/username/projects/myproject/d.ts"] -Program options: {"incremental":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts", + "/user/username/projects/myproject/d.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -255,8 +269,17 @@ Cancelled!! Operation ws cancelled:: true -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts","/user/username/projects/myproject/d.ts"] -Program options: {"incremental":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts", + "/user/username/projects/myproject/d.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -387,8 +410,17 @@ Input:: Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts","/user/username/projects/myproject/d.ts"] -Program options: {"incremental":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts", + "/user/username/projects/myproject/d.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -547,8 +579,17 @@ Input:: Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts","/user/username/projects/myproject/d.ts"] -Program options: {"incremental":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts", + "/user/username/projects/myproject/d.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tsc/cancellationToken/when-using-state.js b/tests/baselines/reference/tsc/cancellationToken/when-using-state.js index ff114a727e4fe..ed36ff636d39a 100644 --- a/tests/baselines/reference/tsc/cancellationToken/when-using-state.js +++ b/tests/baselines/reference/tsc/cancellationToken/when-using-state.js @@ -21,7 +21,12 @@ export class C { export class D { } //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"incremental":true,"declaration":true}} +{ + "compilerOptions": { + "incremental": true, + "declaration": true + } +} //// [/a/lib/lib.d.ts] /// @@ -39,8 +44,17 @@ interface Array { length: number; [n: number]: T; } Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts","/user/username/projects/myproject/d.ts"] -Program options: {"incremental":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts", + "/user/username/projects/myproject/d.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -255,8 +269,17 @@ Cancelled!! Operation ws cancelled:: true -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts","/user/username/projects/myproject/d.ts"] -Program options: {"incremental":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts", + "/user/username/projects/myproject/d.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -387,8 +410,17 @@ Input:: Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts","/user/username/projects/myproject/d.ts"] -Program options: {"incremental":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts", + "/user/username/projects/myproject/d.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -547,8 +579,17 @@ Input:: Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts","/user/username/projects/myproject/d.ts"] -Program options: {"incremental":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts", + "/user/username/projects/myproject/d.ts" +] +Program options: { + "incremental": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tsc/composite/converting-to-modules.js b/tests/baselines/reference/tsc/composite/converting-to-modules.js index 4fb69fc8fd450..7655ce0fc01ad 100644 --- a/tests/baselines/reference/tsc/composite/converting-to-modules.js +++ b/tests/baselines/reference/tsc/composite/converting-to-modules.js @@ -19,7 +19,12 @@ declare const console: { log(msg: any): void; }; const x = 10; //// [/src/project/tsconfig.json] -{"compilerOptions":{"module":"none","composite":true}} +{ + "compilerOptions": { + "module": "none", + "composite": true + } +} @@ -92,7 +97,12 @@ var x = 10; Change:: convert to modules Input:: //// [/src/project/tsconfig.json] -{"compilerOptions":{"module":"es2015","composite":true}} +{ + "compilerOptions": { + "module": "es2015", + "composite": true + } +} diff --git a/tests/baselines/reference/tsc/declarationEmit/when-pkg-references-sibling-package-through-indirect-symlink-moduleCaseChange.js b/tests/baselines/reference/tsc/declarationEmit/when-pkg-references-sibling-package-through-indirect-symlink-moduleCaseChange.js index 39399b64b331d..6657e101b3e30 100644 --- a/tests/baselines/reference/tsc/declarationEmit/when-pkg-references-sibling-package-through-indirect-symlink-moduleCaseChange.js +++ b/tests/baselines/reference/tsc/declarationEmit/when-pkg-references-sibling-package-through-indirect-symlink-moduleCaseChange.js @@ -19,7 +19,12 @@ export declare class MetadataAccessor { } //// [/user/username/projects/myProject/pkg1/package.json] -{"name":"@raymondfeng/pkg1","version":"1.0.0","main":"dist/index.js","typings":"dist/index.d.ts"} +{ + "name": "@raymondfeng/pkg1", + "version": "1.0.0", + "main": "dist/index.js", + "typings": "dist/index.d.ts" +} //// [/user/username/projects/myproject/pkg2/dist/index.d.ts] export * from './types'; @@ -28,7 +33,12 @@ export * from './types'; export {MetadataAccessor} from '@raymondfeng/pkg1'; //// [/user/username/projects/myproject/pkg2/package.json] -{"name":"@raymondfeng/pkg2","version":"1.0.0","main":"dist/index.js","typings":"dist/index.d.ts"} +{ + "name": "@raymondfeng/pkg2", + "version": "1.0.0", + "main": "dist/index.js", + "typings": "dist/index.d.ts" +} //// [/user/username/projects/myproject/pkg3/src/index.ts] export * from './keys'; @@ -38,7 +48,17 @@ import {MetadataAccessor} from "@raymondfeng/pkg2"; export const ADMIN = MetadataAccessor.create('1'); //// [/user/username/projects/myproject/pkg3/tsconfig.json] -{"compilerOptions":{"outDir":"dist","rootDir":"src","target":"es5","module":"commonjs","strict":true,"esModuleInterop":true,"declaration":true}} +{ + "compilerOptions": { + "outDir": "dist", + "rootDir": "src", + "target": "es5", + "module": "commonjs", + "strict": true, + "esModuleInterop": true, + "declaration": true + } +} //// [/user/username/projects/myProject/pkg2/node_modules/@raymondfeng/pkg1] symlink(/user/username/projects/myProject/pkg1) //// [/user/username/projects/myproject/pkg3/node_modules/@raymondfeng/pkg2] symlink(/user/username/projects/myproject/pkg2) @@ -83,8 +103,22 @@ Found 1 error in pkg3/src/keys.ts:2 -Program root files: ["/user/username/projects/myproject/pkg3/src/index.ts","/user/username/projects/myproject/pkg3/src/keys.ts"] -Program options: {"outDir":"/user/username/projects/myproject/pkg3/dist","rootDir":"/user/username/projects/myproject/pkg3/src","target":1,"module":1,"strict":true,"esModuleInterop":true,"declaration":true,"project":"/user/username/projects/myproject/pkg3","explainFiles":true,"configFilePath":"/user/username/projects/myproject/pkg3/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg3/src/index.ts", + "/user/username/projects/myproject/pkg3/src/keys.ts" +] +Program options: { + "outDir": "/user/username/projects/myproject/pkg3/dist", + "rootDir": "/user/username/projects/myproject/pkg3/src", + "target": 1, + "module": 1, + "strict": true, + "esModuleInterop": true, + "declaration": true, + "project": "/user/username/projects/myproject/pkg3", + "explainFiles": true, + "configFilePath": "/user/username/projects/myproject/pkg3/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tsc/declarationEmit/when-pkg-references-sibling-package-through-indirect-symlink.js b/tests/baselines/reference/tsc/declarationEmit/when-pkg-references-sibling-package-through-indirect-symlink.js index 8f4d46a2e2dfb..a840232be50fc 100644 --- a/tests/baselines/reference/tsc/declarationEmit/when-pkg-references-sibling-package-through-indirect-symlink.js +++ b/tests/baselines/reference/tsc/declarationEmit/when-pkg-references-sibling-package-through-indirect-symlink.js @@ -19,7 +19,12 @@ export declare class MetadataAccessor { } //// [/user/username/projects/myproject/pkg1/package.json] -{"name":"@raymondfeng/pkg1","version":"1.0.0","main":"dist/index.js","typings":"dist/index.d.ts"} +{ + "name": "@raymondfeng/pkg1", + "version": "1.0.0", + "main": "dist/index.js", + "typings": "dist/index.d.ts" +} //// [/user/username/projects/myproject/pkg2/dist/index.d.ts] export * from './types'; @@ -28,7 +33,12 @@ export * from './types'; export {MetadataAccessor} from '@raymondfeng/pkg1'; //// [/user/username/projects/myproject/pkg2/package.json] -{"name":"@raymondfeng/pkg2","version":"1.0.0","main":"dist/index.js","typings":"dist/index.d.ts"} +{ + "name": "@raymondfeng/pkg2", + "version": "1.0.0", + "main": "dist/index.js", + "typings": "dist/index.d.ts" +} //// [/user/username/projects/myproject/pkg3/src/index.ts] export * from './keys'; @@ -38,7 +48,17 @@ import {MetadataAccessor} from "@raymondfeng/pkg2"; export const ADMIN = MetadataAccessor.create('1'); //// [/user/username/projects/myproject/pkg3/tsconfig.json] -{"compilerOptions":{"outDir":"dist","rootDir":"src","target":"es5","module":"commonjs","strict":true,"esModuleInterop":true,"declaration":true}} +{ + "compilerOptions": { + "outDir": "dist", + "rootDir": "src", + "target": "es5", + "module": "commonjs", + "strict": true, + "esModuleInterop": true, + "declaration": true + } +} //// [/user/username/projects/myproject/pkg2/node_modules/@raymondfeng/pkg1] symlink(/user/username/projects/myproject/pkg1) //// [/user/username/projects/myproject/pkg3/node_modules/@raymondfeng/pkg2] symlink(/user/username/projects/myproject/pkg2) @@ -83,8 +103,22 @@ Found 1 error in pkg3/src/keys.ts:2 -Program root files: ["/user/username/projects/myproject/pkg3/src/index.ts","/user/username/projects/myproject/pkg3/src/keys.ts"] -Program options: {"outDir":"/user/username/projects/myproject/pkg3/dist","rootDir":"/user/username/projects/myproject/pkg3/src","target":1,"module":1,"strict":true,"esModuleInterop":true,"declaration":true,"project":"/user/username/projects/myproject/pkg3","explainFiles":true,"configFilePath":"/user/username/projects/myproject/pkg3/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/pkg3/src/index.ts", + "/user/username/projects/myproject/pkg3/src/keys.ts" +] +Program options: { + "outDir": "/user/username/projects/myproject/pkg3/dist", + "rootDir": "/user/username/projects/myproject/pkg3/src", + "target": 1, + "module": 1, + "strict": true, + "esModuleInterop": true, + "declaration": true, + "project": "/user/username/projects/myproject/pkg3", + "explainFiles": true, + "configFilePath": "/user/username/projects/myproject/pkg3/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tsc/declarationEmit/when-same-version-is-referenced-through-source-and-another-symlinked-package-moduleCaseChange.js b/tests/baselines/reference/tsc/declarationEmit/when-same-version-is-referenced-through-source-and-another-symlinked-package-moduleCaseChange.js index bc8ddbff6de29..ee065cbefdc61 100644 --- a/tests/baselines/reference/tsc/declarationEmit/when-same-version-is-referenced-through-source-and-another-symlinked-package-moduleCaseChange.js +++ b/tests/baselines/reference/tsc/declarationEmit/when-same-version-is-referenced-through-source-and-another-symlinked-package-moduleCaseChange.js @@ -24,7 +24,10 @@ declare const _default: { export default _default; //// [/user/username/projects/myProject/plugin-two/node_modules/typescript-fsa/package.json] -{"name":"typescript-fsa","version":"3.0.0-beta-2"} +{ + "name": "typescript-fsa", + "version": "3.0.0-beta-2" +} //// [/user/username/projects/myProject/plugin-two/node_modules/typescript-fsa/index.d.ts] export interface Action { @@ -42,7 +45,13 @@ export declare function actionCreatorFactory(prefix?: string | null): ActionCrea export default actionCreatorFactory; //// [/user/username/projects/myproject/plugin-one/tsconfig.json] -{"compilerOptions":{"target":"es5","declaration":true,"traceResolution":true}} +{ + "compilerOptions": { + "target": "es5", + "declaration": true, + "traceResolution": true + } +} //// [/user/username/projects/myproject/plugin-one/index.ts] import pluginTwo from "plugin-two"; // include this to add reference to symlink @@ -54,7 +63,10 @@ const featureOne = action<{ route: string }>("feature-one"); export const actions = { featureOne }; //// [/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa/package.json] -{"name":"typescript-fsa","version":"3.0.0-beta-2"} +{ + "name": "typescript-fsa", + "version": "3.0.0-beta-2" +} //// [/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa/index.d.ts] export interface Action { @@ -150,8 +162,18 @@ plugin-one/index.ts Matched by default include pattern '**/*' -Program root files: ["/user/username/projects/myproject/plugin-one/action.ts","/user/username/projects/myproject/plugin-one/index.ts"] -Program options: {"target":1,"declaration":true,"traceResolution":true,"project":"/user/username/projects/myproject/plugin-one","explainFiles":true,"configFilePath":"/user/username/projects/myproject/plugin-one/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/plugin-one/action.ts", + "/user/username/projects/myproject/plugin-one/index.ts" +] +Program options: { + "target": 1, + "declaration": true, + "traceResolution": true, + "project": "/user/username/projects/myproject/plugin-one", + "explainFiles": true, + "configFilePath": "/user/username/projects/myproject/plugin-one/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tsc/declarationEmit/when-same-version-is-referenced-through-source-and-another-symlinked-package-with-indirect-link-moduleCaseChange.js b/tests/baselines/reference/tsc/declarationEmit/when-same-version-is-referenced-through-source-and-another-symlinked-package-with-indirect-link-moduleCaseChange.js index bf782256f9cf1..fda2311f2a23c 100644 --- a/tests/baselines/reference/tsc/declarationEmit/when-same-version-is-referenced-through-source-and-another-symlinked-package-with-indirect-link-moduleCaseChange.js +++ b/tests/baselines/reference/tsc/declarationEmit/when-same-version-is-referenced-through-source-and-another-symlinked-package-with-indirect-link-moduleCaseChange.js @@ -1,7 +1,11 @@ currentDirectory:: /user/username/projects/myproject useCaseSensitiveFileNames: false Input:: //// [/user/username/projects/myProject/plugin-two/package.json] -{"name":"plugin-two","version":"0.1.3","main":"dist/commonjs/index.js"} +{ + "name": "plugin-two", + "version": "0.1.3", + "main": "dist/commonjs/index.js" +} //// [/user/username/projects/myProject/plugin-two/dist/commonjs/index.d.ts] declare const _default: { @@ -27,7 +31,10 @@ declare const _default: { export default _default; //// [/user/username/projects/myProject/plugin-two/node_modules/typescript-fsa/package.json] -{"name":"typescript-fsa","version":"3.0.0-beta-2"} +{ + "name": "typescript-fsa", + "version": "3.0.0-beta-2" +} //// [/user/username/projects/myProject/plugin-two/node_modules/typescript-fsa/index.d.ts] export interface Action { @@ -45,7 +52,13 @@ export declare function actionCreatorFactory(prefix?: string | null): ActionCrea export default actionCreatorFactory; //// [/user/username/projects/myproject/plugin-one/tsconfig.json] -{"compilerOptions":{"target":"es5","declaration":true,"traceResolution":true}} +{ + "compilerOptions": { + "target": "es5", + "declaration": true, + "traceResolution": true + } +} //// [/user/username/projects/myproject/plugin-one/index.ts] import pluginTwo from "plugin-two"; // include this to add reference to symlink @@ -55,7 +68,10 @@ const featureOne = action<{ route: string }>("feature-one"); export const actions = { featureOne }; //// [/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa/package.json] -{"name":"typescript-fsa","version":"3.0.0-beta-2"} +{ + "name": "typescript-fsa", + "version": "3.0.0-beta-2" +} //// [/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa/index.d.ts] export interface Action { @@ -159,8 +175,17 @@ plugin-one/index.ts Matched by default include pattern '**/*' -Program root files: ["/user/username/projects/myproject/plugin-one/index.ts"] -Program options: {"target":1,"declaration":true,"traceResolution":true,"project":"/user/username/projects/myproject/plugin-one","explainFiles":true,"configFilePath":"/user/username/projects/myproject/plugin-one/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/plugin-one/index.ts" +] +Program options: { + "target": 1, + "declaration": true, + "traceResolution": true, + "project": "/user/username/projects/myproject/plugin-one", + "explainFiles": true, + "configFilePath": "/user/username/projects/myproject/plugin-one/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tsc/declarationEmit/when-same-version-is-referenced-through-source-and-another-symlinked-package-with-indirect-link.js b/tests/baselines/reference/tsc/declarationEmit/when-same-version-is-referenced-through-source-and-another-symlinked-package-with-indirect-link.js index ab7c6a1cca888..99d6255b5d36f 100644 --- a/tests/baselines/reference/tsc/declarationEmit/when-same-version-is-referenced-through-source-and-another-symlinked-package-with-indirect-link.js +++ b/tests/baselines/reference/tsc/declarationEmit/when-same-version-is-referenced-through-source-and-another-symlinked-package-with-indirect-link.js @@ -1,7 +1,11 @@ currentDirectory:: /user/username/projects/myproject useCaseSensitiveFileNames: false Input:: //// [/user/username/projects/myproject/plugin-two/package.json] -{"name":"plugin-two","version":"0.1.3","main":"dist/commonjs/index.js"} +{ + "name": "plugin-two", + "version": "0.1.3", + "main": "dist/commonjs/index.js" +} //// [/user/username/projects/myproject/plugin-two/dist/commonjs/index.d.ts] declare const _default: { @@ -27,7 +31,10 @@ declare const _default: { export default _default; //// [/user/username/projects/myproject/plugin-two/node_modules/typescript-fsa/package.json] -{"name":"typescript-fsa","version":"3.0.0-beta-2"} +{ + "name": "typescript-fsa", + "version": "3.0.0-beta-2" +} //// [/user/username/projects/myproject/plugin-two/node_modules/typescript-fsa/index.d.ts] export interface Action { @@ -45,7 +52,13 @@ export declare function actionCreatorFactory(prefix?: string | null): ActionCrea export default actionCreatorFactory; //// [/user/username/projects/myproject/plugin-one/tsconfig.json] -{"compilerOptions":{"target":"es5","declaration":true,"traceResolution":true}} +{ + "compilerOptions": { + "target": "es5", + "declaration": true, + "traceResolution": true + } +} //// [/user/username/projects/myproject/plugin-one/index.ts] import pluginTwo from "plugin-two"; // include this to add reference to symlink @@ -55,7 +68,10 @@ const featureOne = action<{ route: string }>("feature-one"); export const actions = { featureOne }; //// [/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa/package.json] -{"name":"typescript-fsa","version":"3.0.0-beta-2"} +{ + "name": "typescript-fsa", + "version": "3.0.0-beta-2" +} //// [/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa/index.d.ts] export interface Action { @@ -159,8 +175,17 @@ plugin-one/index.ts Matched by default include pattern '**/*' -Program root files: ["/user/username/projects/myproject/plugin-one/index.ts"] -Program options: {"target":1,"declaration":true,"traceResolution":true,"project":"/user/username/projects/myproject/plugin-one","explainFiles":true,"configFilePath":"/user/username/projects/myproject/plugin-one/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/plugin-one/index.ts" +] +Program options: { + "target": 1, + "declaration": true, + "traceResolution": true, + "project": "/user/username/projects/myproject/plugin-one", + "explainFiles": true, + "configFilePath": "/user/username/projects/myproject/plugin-one/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tsc/declarationEmit/when-same-version-is-referenced-through-source-and-another-symlinked-package.js b/tests/baselines/reference/tsc/declarationEmit/when-same-version-is-referenced-through-source-and-another-symlinked-package.js index 7a4ccaf37c67b..001d60ca1c00a 100644 --- a/tests/baselines/reference/tsc/declarationEmit/when-same-version-is-referenced-through-source-and-another-symlinked-package.js +++ b/tests/baselines/reference/tsc/declarationEmit/when-same-version-is-referenced-through-source-and-another-symlinked-package.js @@ -24,7 +24,10 @@ declare const _default: { export default _default; //// [/user/username/projects/myproject/plugin-two/node_modules/typescript-fsa/package.json] -{"name":"typescript-fsa","version":"3.0.0-beta-2"} +{ + "name": "typescript-fsa", + "version": "3.0.0-beta-2" +} //// [/user/username/projects/myproject/plugin-two/node_modules/typescript-fsa/index.d.ts] export interface Action { @@ -42,7 +45,13 @@ export declare function actionCreatorFactory(prefix?: string | null): ActionCrea export default actionCreatorFactory; //// [/user/username/projects/myproject/plugin-one/tsconfig.json] -{"compilerOptions":{"target":"es5","declaration":true,"traceResolution":true}} +{ + "compilerOptions": { + "target": "es5", + "declaration": true, + "traceResolution": true + } +} //// [/user/username/projects/myproject/plugin-one/index.ts] import pluginTwo from "plugin-two"; // include this to add reference to symlink @@ -54,7 +63,10 @@ const featureOne = action<{ route: string }>("feature-one"); export const actions = { featureOne }; //// [/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa/package.json] -{"name":"typescript-fsa","version":"3.0.0-beta-2"} +{ + "name": "typescript-fsa", + "version": "3.0.0-beta-2" +} //// [/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa/index.d.ts] export interface Action { @@ -150,8 +162,18 @@ plugin-one/index.ts Matched by default include pattern '**/*' -Program root files: ["/user/username/projects/myproject/plugin-one/action.ts","/user/username/projects/myproject/plugin-one/index.ts"] -Program options: {"target":1,"declaration":true,"traceResolution":true,"project":"/user/username/projects/myproject/plugin-one","explainFiles":true,"configFilePath":"/user/username/projects/myproject/plugin-one/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/plugin-one/action.ts", + "/user/username/projects/myproject/plugin-one/index.ts" +] +Program options: { + "target": 1, + "declaration": true, + "traceResolution": true, + "project": "/user/username/projects/myproject/plugin-one", + "explainFiles": true, + "configFilePath": "/user/username/projects/myproject/plugin-one/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tsc/extends/resolves-the-symlink-path.js b/tests/baselines/reference/tsc/extends/resolves-the-symlink-path.js index fae8f95d25474..477143ea4d5a9 100644 --- a/tests/baselines/reference/tsc/extends/resolves-the-symlink-path.js +++ b/tests/baselines/reference/tsc/extends/resolves-the-symlink-path.js @@ -1,10 +1,19 @@ currentDirectory:: /users/user/projects/myproject useCaseSensitiveFileNames: false Input:: //// [/users/user/projects/myconfigs/node_modules/@something/tsconfig-node/tsconfig.json] -{"extends":"@something/tsconfig-base/tsconfig.json","compilerOptions":{"removeComments":true}} +{ + "extends": "@something/tsconfig-base/tsconfig.json", + "compilerOptions": { + "removeComments": true + } +} //// [/users/user/projects/myconfigs/node_modules/@something/tsconfig-base/tsconfig.json] -{"compilerOptions":{"composite":true}} +{ + "compilerOptions": { + "composite": true + } +} //// [/users/user/projects/myproject/src/index.ts] // some comment @@ -12,7 +21,9 @@ export const x = 10; //// [/users/user/projects/myproject/src/tsconfig.json] -{"extends":"@something/tsconfig-node/tsconfig.json"} +{ + "extends": "@something/tsconfig-node/tsconfig.json" +} //// [/users/user/projects/myproject/node_modules/@something/tsconfig-node] symlink(/users/user/projects/myconfigs/node_modules/@something/tsconfig-node) //// [/a/lib/lib.d.ts] @@ -33,8 +44,16 @@ interface Array { length: number; [n: number]: T; } Output:: -Program root files: ["/users/user/projects/myproject/src/index.ts"] -Program options: {"composite":true,"removeComments":true,"project":"/users/user/projects/myproject/src","extendedDiagnostics":true,"configFilePath":"/users/user/projects/myproject/src/tsconfig.json"} +Program root files: [ + "/users/user/projects/myproject/src/index.ts" +] +Program options: { + "composite": true, + "removeComments": true, + "project": "/users/user/projects/myproject/src", + "extendedDiagnostics": true, + "configFilePath": "/users/user/projects/myproject/src/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tsc/incremental/change-to-modifier-of-class-expression-field-with-declaration-emit-enabled.js b/tests/baselines/reference/tsc/incremental/change-to-modifier-of-class-expression-field-with-declaration-emit-enabled.js index ea3448b9545a7..759557cee8994 100644 --- a/tests/baselines/reference/tsc/incremental/change-to-modifier-of-class-expression-field-with-declaration-emit-enabled.js +++ b/tests/baselines/reference/tsc/incremental/change-to-modifier-of-class-expression-field-with-declaration-emit-enabled.js @@ -33,7 +33,11 @@ type MessageablePerson = InstanceType>; export default MessageablePerson; //// [/src/project/tsconfig.json] -{"compilerOptions":{"declaration":true}} +{ + "compilerOptions": { + "declaration": true + } +} diff --git a/tests/baselines/reference/tsc/incremental/change-to-modifier-of-class-expression-field.js b/tests/baselines/reference/tsc/incremental/change-to-modifier-of-class-expression-field.js index 2664a06471b55..f8c5a77996fd3 100644 --- a/tests/baselines/reference/tsc/incremental/change-to-modifier-of-class-expression-field.js +++ b/tests/baselines/reference/tsc/incremental/change-to-modifier-of-class-expression-field.js @@ -33,7 +33,11 @@ type MessageablePerson = InstanceType>; export default MessageablePerson; //// [/src/project/tsconfig.json] -{"compilerOptions":{"declaration":false}} +{ + "compilerOptions": { + "declaration": false + } +} diff --git a/tests/baselines/reference/tsc/incremental/change-to-type-that-gets-used-as-global-through-export-in-another-file-through-indirect-import.js b/tests/baselines/reference/tsc/incremental/change-to-type-that-gets-used-as-global-through-export-in-another-file-through-indirect-import.js index 8d033d3e02ae6..7d16ecf63b7fa 100644 --- a/tests/baselines/reference/tsc/incremental/change-to-type-that-gets-used-as-global-through-export-in-another-file-through-indirect-import.js +++ b/tests/baselines/reference/tsc/incremental/change-to-type-that-gets-used-as-global-through-export-in-another-file-through-indirect-import.js @@ -26,7 +26,11 @@ export default 1; export { default as ConstantNumber } from "./constants" //// [/src/project/tsconfig.json] -{"compilerOptions":{"composite":true}} +{ + "compilerOptions": { + "composite": true + } +} //// [/src/project/types.d.ts] type MagicNumber = typeof import('./reexport').ConstantNumber diff --git a/tests/baselines/reference/tsc/incremental/change-to-type-that-gets-used-as-global-through-export-in-another-file.js b/tests/baselines/reference/tsc/incremental/change-to-type-that-gets-used-as-global-through-export-in-another-file.js index 6a589d8d11d53..b5eb6f4f775f5 100644 --- a/tests/baselines/reference/tsc/incremental/change-to-type-that-gets-used-as-global-through-export-in-another-file.js +++ b/tests/baselines/reference/tsc/incremental/change-to-type-that-gets-used-as-global-through-export-in-another-file.js @@ -23,7 +23,11 @@ console.log(a); export default 1; //// [/src/project/tsconfig.json] -{"compilerOptions":{"composite":true}} +{ + "compilerOptions": { + "composite": true + } +} //// [/src/project/types.d.ts] type MagicNumber = typeof import('./constants').default diff --git a/tests/baselines/reference/tsc/incremental/different-options-with-incremental-with-outFile.js b/tests/baselines/reference/tsc/incremental/different-options-with-incremental-with-outFile.js index 35290646f0689..5a703bbb32234 100644 --- a/tests/baselines/reference/tsc/incremental/different-options-with-incremental-with-outFile.js +++ b/tests/baselines/reference/tsc/incremental/different-options-with-incremental-with-outFile.js @@ -28,15 +28,32 @@ import { a } from "./a";export const c = a; import { b } from "./b";export const d = b; //// [/src/project/tsconfig.json] -{"compilerOptions":{"incremental":true,"outFile":"../outFile.js","module":"amd"}} +{ + "compilerOptions": { + "incremental": true, + "outFile": "../outFile.js", + "module": "amd" + } +} Output:: /lib/tsc --p /src/project exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"incremental":true,"outFile":"/src/outFile.js","module":2,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "incremental": true, + "outFile": "/src/outFile.js", + "module": 2, + "project": "/src/project", + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -184,8 +201,20 @@ Input:: Output:: /lib/tsc --p /src/project --sourceMap exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"incremental":true,"outFile":"/src/outFile.js","module":2,"project":"/src/project","sourceMap":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "incremental": true, + "outFile": "/src/outFile.js", + "module": 2, + "project": "/src/project", + "sourceMap": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -305,8 +334,19 @@ Input:: Output:: /lib/tsc --p /src/project exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"incremental":true,"outFile":"/src/outFile.js","module":2,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "incremental": true, + "outFile": "/src/outFile.js", + "module": 2, + "project": "/src/project", + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -421,8 +461,20 @@ Input:: Output:: /lib/tsc --p /src/project --declaration exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"incremental":true,"outFile":"/src/outFile.js","module":2,"project":"/src/project","declaration":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "incremental": true, + "outFile": "/src/outFile.js", + "module": 2, + "project": "/src/project", + "declaration": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -585,8 +637,21 @@ Input:: Output:: /lib/tsc --p /src/project --declaration --declarationMap exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"incremental":true,"outFile":"/src/outFile.js","module":2,"project":"/src/project","declaration":true,"declarationMap":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "incremental": true, + "outFile": "/src/outFile.js", + "module": 2, + "project": "/src/project", + "declaration": true, + "declarationMap": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -703,8 +768,19 @@ Input:: Output:: /lib/tsc --p /src/project exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"incremental":true,"outFile":"/src/outFile.js","module":2,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "incremental": true, + "outFile": "/src/outFile.js", + "module": 2, + "project": "/src/project", + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -730,8 +806,19 @@ export const a = 10;const aLocal = 100; Output:: /lib/tsc --p /src/project exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"incremental":true,"outFile":"/src/outFile.js","module":2,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "incremental": true, + "outFile": "/src/outFile.js", + "module": 2, + "project": "/src/project", + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -879,8 +966,21 @@ Input:: Output:: /lib/tsc --p /src/project --declaration --declarationMap exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"incremental":true,"outFile":"/src/outFile.js","module":2,"project":"/src/project","declaration":true,"declarationMap":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "incremental": true, + "outFile": "/src/outFile.js", + "module": 2, + "project": "/src/project", + "declaration": true, + "declarationMap": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1032,8 +1132,19 @@ Input:: Output:: /lib/tsc --p /src/project exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"incremental":true,"outFile":"/src/outFile.js","module":2,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "incremental": true, + "outFile": "/src/outFile.js", + "module": 2, + "project": "/src/project", + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1056,8 +1167,20 @@ Input:: Output:: /lib/tsc --p /src/project --inlineSourceMap exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"incremental":true,"outFile":"/src/outFile.js","module":2,"project":"/src/project","inlineSourceMap":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "incremental": true, + "outFile": "/src/outFile.js", + "module": 2, + "project": "/src/project", + "inlineSourceMap": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1206,8 +1329,20 @@ Input:: Output:: /lib/tsc --p /src/project --sourceMap exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"incremental":true,"outFile":"/src/outFile.js","module":2,"project":"/src/project","sourceMap":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "incremental": true, + "outFile": "/src/outFile.js", + "module": 2, + "project": "/src/project", + "sourceMap": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1327,8 +1462,19 @@ Input:: Output:: /lib/tsc --p /src/project exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"incremental":true,"outFile":"/src/outFile.js","module":2,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "incremental": true, + "outFile": "/src/outFile.js", + "module": 2, + "project": "/src/project", + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1443,8 +1589,21 @@ Input:: Output:: /lib/tsc --p /src/project --declaration --declarationMap exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"incremental":true,"outFile":"/src/outFile.js","module":2,"project":"/src/project","declaration":true,"declarationMap":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "incremental": true, + "outFile": "/src/outFile.js", + "module": 2, + "project": "/src/project", + "declaration": true, + "declarationMap": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1596,8 +1755,21 @@ Input:: Output:: /lib/tsc --p /src/project --declaration --declarationMap exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"incremental":true,"outFile":"/src/outFile.js","module":2,"project":"/src/project","declaration":true,"declarationMap":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "incremental": true, + "outFile": "/src/outFile.js", + "module": 2, + "project": "/src/project", + "declaration": true, + "declarationMap": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts diff --git a/tests/baselines/reference/tsc/incremental/different-options-with-incremental.js b/tests/baselines/reference/tsc/incremental/different-options-with-incremental.js index b5bbf4965fcdc..cdd2c8fe0e335 100644 --- a/tests/baselines/reference/tsc/incremental/different-options-with-incremental.js +++ b/tests/baselines/reference/tsc/incremental/different-options-with-incremental.js @@ -28,15 +28,28 @@ import { a } from "./a";export const c = a; import { b } from "./b";export const d = b; //// [/src/project/tsconfig.json] -{"compilerOptions":{"incremental":true}} +{ + "compilerOptions": { + "incremental": true + } +} Output:: /lib/tsc --p /src/project exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"incremental":true,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "incremental": true, + "project": "/src/project", + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -191,8 +204,18 @@ Input:: Output:: /lib/tsc --p /src/project --sourceMap exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"incremental":true,"project":"/src/project","sourceMap":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "incremental": true, + "project": "/src/project", + "sourceMap": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -352,8 +375,17 @@ Input:: Output:: /lib/tsc --p /src/project exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"incremental":true,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "incremental": true, + "project": "/src/project", + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -498,8 +530,18 @@ Input:: Output:: /lib/tsc --p /src/project --declaration exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"incremental":true,"project":"/src/project","declaration":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "incremental": true, + "project": "/src/project", + "declaration": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -640,8 +682,19 @@ Input:: Output:: /lib/tsc --p /src/project --declaration --declarationMap exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"incremental":true,"project":"/src/project","declaration":true,"declarationMap":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "incremental": true, + "project": "/src/project", + "declaration": true, + "declarationMap": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -795,8 +848,17 @@ Input:: Output:: /lib/tsc --p /src/project exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"incremental":true,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "incremental": true, + "project": "/src/project", + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -822,8 +884,17 @@ export const a = 10;const aLocal = 100; Output:: /lib/tsc --p /src/project exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"incremental":true,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "incremental": true, + "project": "/src/project", + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -955,8 +1026,19 @@ Input:: Output:: /lib/tsc --p /src/project --declaration --declarationMap exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"incremental":true,"project":"/src/project","declaration":true,"declarationMap":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "incremental": true, + "project": "/src/project", + "declaration": true, + "declarationMap": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1090,8 +1172,17 @@ Input:: Output:: /lib/tsc --p /src/project exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"incremental":true,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "incremental": true, + "project": "/src/project", + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1114,8 +1205,18 @@ Input:: Output:: /lib/tsc --p /src/project --inlineSourceMap exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"incremental":true,"project":"/src/project","inlineSourceMap":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "incremental": true, + "project": "/src/project", + "inlineSourceMap": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1272,8 +1373,18 @@ Input:: Output:: /lib/tsc --p /src/project --sourceMap exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"incremental":true,"project":"/src/project","sourceMap":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "incremental": true, + "project": "/src/project", + "sourceMap": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1436,8 +1547,17 @@ Input:: Output:: /lib/tsc --p /src/project exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"incremental":true,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "incremental": true, + "project": "/src/project", + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1591,8 +1711,19 @@ Input:: Output:: /lib/tsc --p /src/project --declaration --declarationMap exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"incremental":true,"project":"/src/project","declaration":true,"declarationMap":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "incremental": true, + "project": "/src/project", + "declaration": true, + "declarationMap": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1726,8 +1857,19 @@ Input:: Output:: /lib/tsc --p /src/project --declaration --declarationMap exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"incremental":true,"project":"/src/project","declaration":true,"declarationMap":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "incremental": true, + "project": "/src/project", + "declaration": true, + "declarationMap": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts diff --git a/tests/baselines/reference/tsc/incremental/different-options-with-outFile.js b/tests/baselines/reference/tsc/incremental/different-options-with-outFile.js index 8c6ce56070ead..ff44dc9b5e58e 100644 --- a/tests/baselines/reference/tsc/incremental/different-options-with-outFile.js +++ b/tests/baselines/reference/tsc/incremental/different-options-with-outFile.js @@ -28,15 +28,32 @@ import { a } from "./a";export const c = a; import { b } from "./b";export const d = b; //// [/src/project/tsconfig.json] -{"compilerOptions":{"composite":true,"outFile":"../outFile.js","module":"amd"}} +{ + "compilerOptions": { + "composite": true, + "outFile": "../outFile.js", + "module": "amd" + } +} Output:: /lib/tsc --p /src/project exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"composite":true,"outFile":"/src/outFile.js","module":2,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "composite": true, + "outFile": "/src/outFile.js", + "module": 2, + "project": "/src/project", + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -230,8 +247,20 @@ Input:: Output:: /lib/tsc --p /src/project --sourceMap exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"composite":true,"outFile":"/src/outFile.js","module":2,"project":"/src/project","sourceMap":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "composite": true, + "outFile": "/src/outFile.js", + "module": 2, + "project": "/src/project", + "sourceMap": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -364,8 +393,19 @@ Input:: Output:: /lib/tsc --p /src/project exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"composite":true,"outFile":"/src/outFile.js","module":2,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "composite": true, + "outFile": "/src/outFile.js", + "module": 2, + "project": "/src/project", + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -493,8 +533,20 @@ Input:: Output:: /lib/tsc --p /src/project --declaration exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"composite":true,"outFile":"/src/outFile.js","module":2,"project":"/src/project","declaration":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "composite": true, + "outFile": "/src/outFile.js", + "module": 2, + "project": "/src/project", + "declaration": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -517,8 +569,19 @@ Input:: Output:: /lib/tsc --p /src/project exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"composite":true,"outFile":"/src/outFile.js","module":2,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "composite": true, + "outFile": "/src/outFile.js", + "module": 2, + "project": "/src/project", + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -541,8 +604,21 @@ Input:: Output:: /lib/tsc --p /src/project --declaration --declarationMap exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"composite":true,"outFile":"/src/outFile.js","module":2,"project":"/src/project","declaration":true,"declarationMap":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "composite": true, + "outFile": "/src/outFile.js", + "module": 2, + "project": "/src/project", + "declaration": true, + "declarationMap": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -662,8 +738,19 @@ Input:: Output:: /lib/tsc --p /src/project exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"composite":true,"outFile":"/src/outFile.js","module":2,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "composite": true, + "outFile": "/src/outFile.js", + "module": 2, + "project": "/src/project", + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -777,8 +864,20 @@ Input:: Output:: /lib/tsc --p /src/project --emitDeclarationOnly exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"composite":true,"outFile":"/src/outFile.js","module":2,"project":"/src/project","emitDeclarationOnly":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "composite": true, + "outFile": "/src/outFile.js", + "module": 2, + "project": "/src/project", + "emitDeclarationOnly": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -801,8 +900,19 @@ Input:: Output:: /lib/tsc --p /src/project exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"composite":true,"outFile":"/src/outFile.js","module":2,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "composite": true, + "outFile": "/src/outFile.js", + "module": 2, + "project": "/src/project", + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -828,8 +938,19 @@ export const a = 10;const aLocal = 100; Output:: /lib/tsc --p /src/project exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"composite":true,"outFile":"/src/outFile.js","module":2,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "composite": true, + "outFile": "/src/outFile.js", + "module": 2, + "project": "/src/project", + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1008,8 +1129,20 @@ Input:: Output:: /lib/tsc --p /src/project --declaration exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"composite":true,"outFile":"/src/outFile.js","module":2,"project":"/src/project","declaration":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "composite": true, + "outFile": "/src/outFile.js", + "module": 2, + "project": "/src/project", + "declaration": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1032,8 +1165,20 @@ Input:: Output:: /lib/tsc --p /src/project --inlineSourceMap exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"composite":true,"outFile":"/src/outFile.js","module":2,"project":"/src/project","inlineSourceMap":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "composite": true, + "outFile": "/src/outFile.js", + "module": 2, + "project": "/src/project", + "inlineSourceMap": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1162,8 +1307,20 @@ Input:: Output:: /lib/tsc --p /src/project --sourceMap exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"composite":true,"outFile":"/src/outFile.js","module":2,"project":"/src/project","sourceMap":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "composite": true, + "outFile": "/src/outFile.js", + "module": 2, + "project": "/src/project", + "sourceMap": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1292,15 +1449,34 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { Change:: declarationMap enabling Input:: //// [/src/project/tsconfig.json] -{"compilerOptions":{"composite":true,"outFile":"../outFile.js","module":"amd","declarationMap":true}} +{ + "compilerOptions": { + "composite": true, + "outFile": "../outFile.js", + "module": "amd", + "declarationMap": true + } +} Output:: /lib/tsc --p /src/project exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"composite":true,"outFile":"/src/outFile.js","module":2,"declarationMap":true,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "composite": true, + "outFile": "/src/outFile.js", + "module": 2, + "declarationMap": true, + "project": "/src/project", + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1446,8 +1622,21 @@ Input:: Output:: /lib/tsc --p /src/project --sourceMap exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"composite":true,"outFile":"/src/outFile.js","module":2,"declarationMap":true,"project":"/src/project","sourceMap":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "composite": true, + "outFile": "/src/outFile.js", + "module": 2, + "declarationMap": true, + "project": "/src/project", + "sourceMap": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts diff --git a/tests/baselines/reference/tsc/incremental/different-options.js b/tests/baselines/reference/tsc/incremental/different-options.js index 7a7274c05ea46..ec8a6948c4850 100644 --- a/tests/baselines/reference/tsc/incremental/different-options.js +++ b/tests/baselines/reference/tsc/incremental/different-options.js @@ -28,15 +28,28 @@ import { a } from "./a";export const c = a; import { b } from "./b";export const d = b; //// [/src/project/tsconfig.json] -{"compilerOptions":{"composite":true}} +{ + "compilerOptions": { + "composite": true + } +} Output:: /lib/tsc --p /src/project exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"composite":true,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "composite": true, + "project": "/src/project", + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -220,8 +233,18 @@ Input:: Output:: /lib/tsc --p /src/project --sourceMap exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"composite":true,"project":"/src/project","sourceMap":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "composite": true, + "project": "/src/project", + "sourceMap": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -392,8 +415,17 @@ Input:: Output:: /lib/tsc --p /src/project exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"composite":true,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "composite": true, + "project": "/src/project", + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -551,8 +583,18 @@ Input:: Output:: /lib/tsc --p /src/project --declaration exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"composite":true,"project":"/src/project","declaration":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "composite": true, + "project": "/src/project", + "declaration": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -575,8 +617,17 @@ Input:: Output:: /lib/tsc --p /src/project exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"composite":true,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "composite": true, + "project": "/src/project", + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -599,8 +650,19 @@ Input:: Output:: /lib/tsc --p /src/project --declaration --declarationMap exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"composite":true,"project":"/src/project","declaration":true,"declarationMap":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "composite": true, + "project": "/src/project", + "declaration": true, + "declarationMap": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -756,8 +818,17 @@ Input:: Output:: /lib/tsc --p /src/project exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"composite":true,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "composite": true, + "project": "/src/project", + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -899,8 +970,18 @@ Input:: Output:: /lib/tsc --p /src/project --emitDeclarationOnly exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"composite":true,"project":"/src/project","emitDeclarationOnly":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "composite": true, + "project": "/src/project", + "emitDeclarationOnly": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -923,8 +1004,17 @@ Input:: Output:: /lib/tsc --p /src/project exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"composite":true,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "composite": true, + "project": "/src/project", + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -950,8 +1040,17 @@ export const a = 10;const aLocal = 100; Output:: /lib/tsc --p /src/project exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"composite":true,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "composite": true, + "project": "/src/project", + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1087,8 +1186,18 @@ Input:: Output:: /lib/tsc --p /src/project --declaration exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"composite":true,"project":"/src/project","declaration":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "composite": true, + "project": "/src/project", + "declaration": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1111,8 +1220,18 @@ Input:: Output:: /lib/tsc --p /src/project --inlineSourceMap exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"composite":true,"project":"/src/project","inlineSourceMap":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "composite": true, + "project": "/src/project", + "inlineSourceMap": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1271,8 +1390,18 @@ Input:: Output:: /lib/tsc --p /src/project --sourceMap exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"composite":true,"project":"/src/project","sourceMap":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "composite": true, + "project": "/src/project", + "sourceMap": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1433,15 +1562,30 @@ exports.d = b_1.b; Change:: declarationMap enabling Input:: //// [/src/project/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + } +} Output:: /lib/tsc --p /src/project exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"composite":true,"declarationMap":true,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "composite": true, + "declarationMap": true, + "project": "/src/project", + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1620,8 +1764,19 @@ Input:: Output:: /lib/tsc --p /src/project --sourceMap exitCode:: ExitStatus.Success -Program root files: ["/src/project/a.ts","/src/project/b.ts","/src/project/c.ts","/src/project/d.ts"] -Program options: {"composite":true,"declarationMap":true,"project":"/src/project","sourceMap":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/a.ts", + "/src/project/b.ts", + "/src/project/c.ts", + "/src/project/d.ts" +] +Program options: { + "composite": true, + "declarationMap": true, + "project": "/src/project", + "sourceMap": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts diff --git a/tests/baselines/reference/tsc/incremental/file-deleted-before-fixing-error-with-noEmitOnError.js b/tests/baselines/reference/tsc/incremental/file-deleted-before-fixing-error-with-noEmitOnError.js index 4d53dba494e6d..aef670b0c5050 100644 --- a/tests/baselines/reference/tsc/incremental/file-deleted-before-fixing-error-with-noEmitOnError.js +++ b/tests/baselines/reference/tsc/incremental/file-deleted-before-fixing-error-with-noEmitOnError.js @@ -22,7 +22,12 @@ export const x: 30 = "hello"; export class D { } //// [/src/project/tsconfig.json] -{"compilerOptions":{"outDir":"outDir","noEmitOnError":true}} +{ + "compilerOptions": { + "outDir": "outDir", + "noEmitOnError": true + } +} @@ -37,8 +42,17 @@ Output:: Found 1 error in src/project/file1.ts:1 exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/project/file1.ts","/src/project/file2.ts"] -Program options: {"outDir":"/src/project/outDir","noEmitOnError":true,"project":"/src/project","incremental":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/file1.ts", + "/src/project/file2.ts" +] +Program options: { + "outDir": "/src/project/outDir", + "noEmitOnError": true, + "project": "/src/project", + "incremental": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -152,8 +166,16 @@ Output:: Found 1 error in src/project/file1.ts:1 exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/project/file1.ts"] -Program options: {"outDir":"/src/project/outDir","noEmitOnError":true,"project":"/src/project","incremental":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/file1.ts" +] +Program options: { + "outDir": "/src/project/outDir", + "noEmitOnError": true, + "project": "/src/project", + "incremental": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts diff --git a/tests/baselines/reference/tsc/incremental/noEmit-changes-composite.js b/tests/baselines/reference/tsc/incremental/noEmit-changes-composite.js index 634efe61c5525..ba44dc8dace38 100644 --- a/tests/baselines/reference/tsc/incremental/noEmit-changes-composite.js +++ b/tests/baselines/reference/tsc/incremental/noEmit-changes-composite.js @@ -43,7 +43,11 @@ function someFunc(arguments: boolean, ...rest: any[]) { } //// [/src/project/tsconfig.json] -{"compilerOptions":{"composite":true}} +{ + "compilerOptions": { + "composite": true + } +} diff --git a/tests/baselines/reference/tsc/incremental/noEmit-changes-incremental-declaration.js b/tests/baselines/reference/tsc/incremental/noEmit-changes-incremental-declaration.js index 844f9b3d869ea..8c29f1b20d22c 100644 --- a/tests/baselines/reference/tsc/incremental/noEmit-changes-incremental-declaration.js +++ b/tests/baselines/reference/tsc/incremental/noEmit-changes-incremental-declaration.js @@ -43,7 +43,12 @@ function someFunc(arguments: boolean, ...rest: any[]) { } //// [/src/project/tsconfig.json] -{"compilerOptions":{"incremental":true,"declaration":true}} +{ + "compilerOptions": { + "incremental": true, + "declaration": true + } +} diff --git a/tests/baselines/reference/tsc/incremental/noEmit-changes-incremental.js b/tests/baselines/reference/tsc/incremental/noEmit-changes-incremental.js index 6ccc2345fa53e..23e61daf86826 100644 --- a/tests/baselines/reference/tsc/incremental/noEmit-changes-incremental.js +++ b/tests/baselines/reference/tsc/incremental/noEmit-changes-incremental.js @@ -43,7 +43,11 @@ function someFunc(arguments: boolean, ...rest: any[]) { } //// [/src/project/tsconfig.json] -{"compilerOptions":{"incremental":true}} +{ + "compilerOptions": { + "incremental": true + } +} diff --git a/tests/baselines/reference/tsc/incremental/noEmit-changes-with-initial-noEmit-composite.js b/tests/baselines/reference/tsc/incremental/noEmit-changes-with-initial-noEmit-composite.js index a5c2fe12bd954..2dd3d68cf4e1c 100644 --- a/tests/baselines/reference/tsc/incremental/noEmit-changes-with-initial-noEmit-composite.js +++ b/tests/baselines/reference/tsc/incremental/noEmit-changes-with-initial-noEmit-composite.js @@ -43,7 +43,11 @@ function someFunc(arguments: boolean, ...rest: any[]) { } //// [/src/project/tsconfig.json] -{"compilerOptions":{"composite":true}} +{ + "compilerOptions": { + "composite": true + } +} diff --git a/tests/baselines/reference/tsc/incremental/noEmit-changes-with-initial-noEmit-incremental-declaration.js b/tests/baselines/reference/tsc/incremental/noEmit-changes-with-initial-noEmit-incremental-declaration.js index aab78ac4827aa..7100fff7458e1 100644 --- a/tests/baselines/reference/tsc/incremental/noEmit-changes-with-initial-noEmit-incremental-declaration.js +++ b/tests/baselines/reference/tsc/incremental/noEmit-changes-with-initial-noEmit-incremental-declaration.js @@ -43,7 +43,12 @@ function someFunc(arguments: boolean, ...rest: any[]) { } //// [/src/project/tsconfig.json] -{"compilerOptions":{"incremental":true,"declaration":true}} +{ + "compilerOptions": { + "incremental": true, + "declaration": true + } +} diff --git a/tests/baselines/reference/tsc/incremental/noEmit-changes-with-initial-noEmit-incremental.js b/tests/baselines/reference/tsc/incremental/noEmit-changes-with-initial-noEmit-incremental.js index e271b29682c39..9c05061518801 100644 --- a/tests/baselines/reference/tsc/incremental/noEmit-changes-with-initial-noEmit-incremental.js +++ b/tests/baselines/reference/tsc/incremental/noEmit-changes-with-initial-noEmit-incremental.js @@ -43,7 +43,11 @@ function someFunc(arguments: boolean, ...rest: any[]) { } //// [/src/project/tsconfig.json] -{"compilerOptions":{"incremental":true}} +{ + "compilerOptions": { + "incremental": true + } +} diff --git a/tests/baselines/reference/tsc/incremental/serializing-error-chains.js b/tests/baselines/reference/tsc/incremental/serializing-error-chains.js index 94b503fcedb38..482eed6921854 100644 --- a/tests/baselines/reference/tsc/incremental/serializing-error-chains.js +++ b/tests/baselines/reference/tsc/incremental/serializing-error-chains.js @@ -32,7 +32,14 @@ declare function Component(props: { children?: number }): any; ) //// [/src/project/tsconfig.json] -{"compilerOptions":{"incremental":true,"strict":true,"jsx":"react","module":"esnext"}} +{ + "compilerOptions": { + "incremental": true, + "strict": true, + "jsx": "react", + "module": "esnext" + } +} diff --git a/tests/baselines/reference/tsc/incremental/when-declarationMap-changes-with-outFile.js b/tests/baselines/reference/tsc/incremental/when-declarationMap-changes-with-outFile.js index 8ec25d1f6fc3b..5733a5abb5bcf 100644 --- a/tests/baselines/reference/tsc/incremental/when-declarationMap-changes-with-outFile.js +++ b/tests/baselines/reference/tsc/incremental/when-declarationMap-changes-with-outFile.js @@ -22,7 +22,14 @@ const x = 10; const y = 10; //// [/src/project/tsconfig.json] -{"compilerOptions":{"noEmitOnError":true,"declaration":true,"composite":true,"outFile":"../outFile.js"}} +{ + "compilerOptions": { + "noEmitOnError": true, + "declaration": true, + "composite": true, + "outFile": "../outFile.js" + } +} diff --git a/tests/baselines/reference/tsc/incremental/when-declarationMap-changes.js b/tests/baselines/reference/tsc/incremental/when-declarationMap-changes.js index 73b8718618165..de2715a3eaf26 100644 --- a/tests/baselines/reference/tsc/incremental/when-declarationMap-changes.js +++ b/tests/baselines/reference/tsc/incremental/when-declarationMap-changes.js @@ -22,7 +22,13 @@ const x = 10; const y = 10; //// [/src/project/tsconfig.json] -{"compilerOptions":{"noEmitOnError":true,"declaration":true,"composite":true}} +{ + "compilerOptions": { + "noEmitOnError": true, + "declaration": true, + "composite": true + } +} diff --git a/tests/baselines/reference/tsc/incremental/when-file-is-deleted.js b/tests/baselines/reference/tsc/incremental/when-file-is-deleted.js index 9d22528fc7b47..b5942760b0530 100644 --- a/tests/baselines/reference/tsc/incremental/when-file-is-deleted.js +++ b/tests/baselines/reference/tsc/incremental/when-file-is-deleted.js @@ -22,7 +22,12 @@ export class C { } export class D { } //// [/src/project/tsconfig.json] -{"compilerOptions":{"composite":true,"outDir":"outDir"}} +{ + "compilerOptions": { + "composite": true, + "outDir": "outDir" + } +} diff --git a/tests/baselines/reference/tsc/incremental/when-global-file-is-added,-the-signatures-are-updated.js b/tests/baselines/reference/tsc/incremental/when-global-file-is-added,-the-signatures-are-updated.js index 7ae8171f5d38d..ec5de18bf2d40 100644 --- a/tests/baselines/reference/tsc/incremental/when-global-file-is-added,-the-signatures-are-updated.js +++ b/tests/baselines/reference/tsc/incremental/when-global-file-is-added,-the-signatures-are-updated.js @@ -31,7 +31,14 @@ function main() { } //// [/src/project/tsconfig.json] -{"compilerOptions":{"composite":true},"include":["src/**/*.ts"]} +{ + "compilerOptions": { + "composite": true + }, + "include": [ + "src/**/*.ts" + ] +} @@ -54,8 +61,16 @@ Errors Files 1 src/project/src/anotherFileWithSameReferenes.ts:2 1 src/project/src/main.ts:2 exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project/src/anotherFileWithSameReferenes.ts","/src/project/src/filePresent.ts","/src/project/src/main.ts"] -Program options: {"composite":true,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/src/anotherFileWithSameReferenes.ts", + "/src/project/src/filePresent.ts", + "/src/project/src/main.ts" +] +Program options: { + "composite": true, + "project": "/src/project", + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -230,8 +245,16 @@ Errors Files 1 src/project/src/anotherFileWithSameReferenes.ts:2 1 src/project/src/main.ts:2 exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project/src/anotherFileWithSameReferenes.ts","/src/project/src/filePresent.ts","/src/project/src/main.ts"] -Program options: {"composite":true,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/src/anotherFileWithSameReferenes.ts", + "/src/project/src/filePresent.ts", + "/src/project/src/main.ts" +] +Program options: { + "composite": true, + "project": "/src/project", + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -275,8 +298,16 @@ Errors Files 1 src/project/src/anotherFileWithSameReferenes.ts:2 1 src/project/src/main.ts:2 exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project/src/anotherFileWithSameReferenes.ts","/src/project/src/filePresent.ts","/src/project/src/main.ts"] -Program options: {"composite":true,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/src/anotherFileWithSameReferenes.ts", + "/src/project/src/filePresent.ts", + "/src/project/src/main.ts" +] +Program options: { + "composite": true, + "project": "/src/project", + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -428,8 +459,16 @@ Errors Files 1 src/project/src/anotherFileWithSameReferenes.ts:2 1 src/project/src/main.ts:2 exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project/src/anotherFileWithSameReferenes.ts","/src/project/src/filePresent.ts","/src/project/src/main.ts"] -Program options: {"composite":true,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/src/anotherFileWithSameReferenes.ts", + "/src/project/src/filePresent.ts", + "/src/project/src/main.ts" +] +Program options: { + "composite": true, + "project": "/src/project", + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -586,8 +625,17 @@ Errors Files 1 src/project/src/anotherFileWithSameReferenes.ts:2 1 src/project/src/main.ts:3 exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/src/project/src/anotherFileWithSameReferenes.ts","/src/project/src/filePresent.ts","/src/project/src/main.ts","/src/project/src/newFile.ts"] -Program options: {"composite":true,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/src/anotherFileWithSameReferenes.ts", + "/src/project/src/filePresent.ts", + "/src/project/src/main.ts", + "/src/project/src/newFile.ts" +] +Program options: { + "composite": true, + "project": "/src/project", + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -766,8 +814,18 @@ function something2() { return 20; } Output:: /lib/tsc --p src/project exitCode:: ExitStatus.Success -Program root files: ["/src/project/src/anotherFileWithSameReferenes.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/main.ts","/src/project/src/newFile.ts"] -Program options: {"composite":true,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/src/anotherFileWithSameReferenes.ts", + "/src/project/src/fileNotFound.ts", + "/src/project/src/filePresent.ts", + "/src/project/src/main.ts", + "/src/project/src/newFile.ts" +] +Program options: { + "composite": true, + "project": "/src/project", + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -964,8 +1022,18 @@ something();something();foo();something(); Output:: /lib/tsc --p src/project exitCode:: ExitStatus.Success -Program root files: ["/src/project/src/anotherFileWithSameReferenes.ts","/src/project/src/fileNotFound.ts","/src/project/src/filePresent.ts","/src/project/src/main.ts","/src/project/src/newFile.ts"] -Program options: {"composite":true,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/src/anotherFileWithSameReferenes.ts", + "/src/project/src/fileNotFound.ts", + "/src/project/src/filePresent.ts", + "/src/project/src/main.ts", + "/src/project/src/newFile.ts" +] +Program options: { + "composite": true, + "project": "/src/project", + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts diff --git a/tests/baselines/reference/tsc/incremental/when-new-file-is-added-to-the-referenced-project.js b/tests/baselines/reference/tsc/incremental/when-new-file-is-added-to-the-referenced-project.js index 37e65f9837378..ac61b62e46bba 100644 --- a/tests/baselines/reference/tsc/incremental/when-new-file-is-added-to-the-referenced-project.js +++ b/tests/baselines/reference/tsc/incremental/when-new-file-is-added-to-the-referenced-project.js @@ -22,13 +22,31 @@ declare class class1 {} class class1 {} //// [/src/projects/project1/tsconfig.json] -{"compilerOptions":{"module":"none","composite":true},"exclude":["temp"]} +{ + "compilerOptions": { + "module": "none", + "composite": true + }, + "exclude": [ + "temp" + ] +} //// [/src/projects/project2/class2.ts] class class2 {} //// [/src/projects/project2/tsconfig.json] -{"compilerOptions":{"module":"none","composite":true},"references":[{"path":"../project1"}]} +{ + "compilerOptions": { + "module": "none", + "composite": true + }, + "references": [ + { + "path": "../project1" + } + ] +} @@ -127,9 +145,13 @@ Output:: The file is in the program because: Output from referenced project '/src/projects/project1/tsconfig.json' included because '--module' is specified as 'none' - src/projects/project2/tsconfig.json:1:69 - 1 {"compilerOptions":{"module":"none","composite":true},"references":[{"path":"../project1"}]} -    ~~~~~~~~~~~~~~~~~~~~~~ + src/projects/project2/tsconfig.json:7:5 + 7 { +    ~ + 8 "path": "../project1" +   ~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 9 } +   ~~~~~ File is output from referenced project specified here. @@ -253,9 +275,13 @@ Output:: The file is in the program because: Output from referenced project '/src/projects/project1/tsconfig.json' included because '--module' is specified as 'none' - src/projects/project2/tsconfig.json:1:69 - 1 {"compilerOptions":{"module":"none","composite":true},"references":[{"path":"../project1"}]} -    ~~~~~~~~~~~~~~~~~~~~~~ + src/projects/project2/tsconfig.json:7:5 + 7 { +    ~ + 8 "path": "../project1" +   ~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 9 } +   ~~~~~ File is output from referenced project specified here. diff --git a/tests/baselines/reference/tsc/incremental/when-project-has-strict-true.js b/tests/baselines/reference/tsc/incremental/when-project-has-strict-true.js index f012dba4d1ef7..a8ba8fc72ab19 100644 --- a/tests/baselines/reference/tsc/incremental/when-project-has-strict-true.js +++ b/tests/baselines/reference/tsc/incremental/when-project-has-strict-true.js @@ -19,15 +19,28 @@ declare const console: { log(msg: any): void; }; export class class1 {} //// [/src/project/tsconfig.json] -{"compilerOptions":{"incremental":true,"strict":true}} +{ + "compilerOptions": { + "incremental": true, + "strict": true + } +} Output:: /lib/tsc -noEmit -p src/project exitCode:: ExitStatus.Success -Program root files: ["/src/project/class1.ts"] -Program options: {"incremental":true,"strict":true,"noEmit":true,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/class1.ts" +] +Program options: { + "incremental": true, + "strict": true, + "noEmit": true, + "project": "/src/project", + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -102,8 +115,16 @@ Input:: Output:: /lib/tsc -noEmit -p src/project exitCode:: ExitStatus.Success -Program root files: ["/src/project/class1.ts"] -Program options: {"incremental":true,"strict":true,"noEmit":true,"project":"/src/project","configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/class1.ts" +] +Program options: { + "incremental": true, + "strict": true, + "noEmit": true, + "project": "/src/project", + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts diff --git a/tests/baselines/reference/tsc/incremental/with-noEmitOnError-semantic-errors.js b/tests/baselines/reference/tsc/incremental/with-noEmitOnError-semantic-errors.js index 5353bd36b6c9b..c362af073a634 100644 --- a/tests/baselines/reference/tsc/incremental/with-noEmitOnError-semantic-errors.js +++ b/tests/baselines/reference/tsc/incremental/with-noEmitOnError-semantic-errors.js @@ -1,6 +1,6 @@ -currentDirectory:: / useCaseSensitiveFileNames: false +currentDirectory:: /user/username/projects/noEmitOnError useCaseSensitiveFileNames: false Input:: -//// [/lib/lib.d.ts] +//// [/a/lib/lib.d.ts] /// interface Boolean {} interface Function {} @@ -15,71 +15,81 @@ interface Array { length: number; [n: number]: T; } interface ReadonlyArray {} declare const console: { log(msg: any): void; }; -//// [/src/shared/types/db.ts] -export interface A { - name: string; -} +//// [/user/username/projects/noEmitOnError/shared/types/db.ts] +export interface A { + name: string; +} + -//// [/src/src/main.ts] +//// [/user/username/projects/noEmitOnError/src/main.ts] import { A } from "../shared/types/db"; const a: string = 10; -//// [/src/src/other.ts] -console.log("hi"); -export { } +//// [/user/username/projects/noEmitOnError/src/other.ts] +console.log("hi"); +export { } + -//// [/src/tsconfig.json] -{ - "compilerOptions": { - "outDir": "./dev-build", - "noEmitOnError": true - } +//// [/user/username/projects/noEmitOnError/tsconfig.json] +{ + "compilerOptions": { + "outDir": "./dev-build", + "noEmitOnError": true + } } - Output:: -/lib/tsc --incremental -p src -src/src/main.ts:2:7 - error TS2322: Type 'number' is not assignable to type 'string'. +/a/lib/tsc --incremental +src/main.ts:2:7 - error TS2322: Type 'number' is not assignable to type 'string'. 2 const a: string = 10;    ~ -Found 1 error in src/src/main.ts:2 +Found 1 error in src/main.ts:2 exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/shared/types/db.ts","/src/src/main.ts","/src/src/other.ts"] -Program options: {"outDir":"/src/dev-build","noEmitOnError":true,"incremental":true,"project":"/src","configFilePath":"/src/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "incremental": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Not Program files:: -/lib/lib.d.ts -/src/shared/types/db.ts -/src/src/main.ts -/src/src/other.ts +/a/lib/lib.d.ts +/user/username/projects/noEmitOnError/shared/types/db.ts +/user/username/projects/noEmitOnError/src/main.ts +/user/username/projects/noEmitOnError/src/other.ts Semantic diagnostics in builder refreshed for:: -/lib/lib.d.ts -/src/shared/types/db.ts -/src/src/main.ts -/src/src/other.ts +/a/lib/lib.d.ts +/user/username/projects/noEmitOnError/shared/types/db.ts +/user/username/projects/noEmitOnError/src/main.ts +/user/username/projects/noEmitOnError/src/other.ts Shape signatures in builder refreshed for:: -/lib/lib.d.ts (used version) -/src/shared/types/db.ts (used version) -/src/src/main.ts (used version) -/src/src/other.ts (used version) +/a/lib/lib.d.ts (used version) +/user/username/projects/noemitonerror/shared/types/db.ts (used version) +/user/username/projects/noemitonerror/src/main.ts (used version) +/user/username/projects/noemitonerror/src/other.ts (used version) -//// [/src/dev-build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-9621097780-export interface A {\r\n name: string;\r\n}","-11111345725-import { A } from \"../shared/types/db\";\nconst a: string = 10;","11373096570-console.log(\"hi\");\r\nexport { }"],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"../src/main.ts","start":46,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]],4],"affectedFilesPendingEmit":[2,3,4]},"version":"FakeTSVersion"} +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-5014788164-export interface A {\n name: string;\n}\n","-11111345725-import { A } from \"../shared/types/db\";\nconst a: string = 10;","9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"../src/main.ts","start":46,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]],4],"affectedFilesPendingEmit":[2,3,4]},"version":"FakeTSVersion"} -//// [/src/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../shared/types/db.ts", "../src/main.ts", "../src/other.ts" @@ -90,7 +100,7 @@ Shape signatures in builder refreshed for:: ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -100,16 +110,16 @@ Shape signatures in builder refreshed for:: "affectsGlobalScope": true }, "../shared/types/db.ts": { - "version": "-9621097780-export interface A {\r\n name: string;\r\n}", - "signature": "-9621097780-export interface A {\r\n name: string;\r\n}" + "version": "-5014788164-export interface A {\n name: string;\n}\n", + "signature": "-5014788164-export interface A {\n name: string;\n}\n" }, "../src/main.ts": { "version": "-11111345725-import { A } from \"../shared/types/db\";\nconst a: string = 10;", "signature": "-11111345725-import { A } from \"../shared/types/db\";\nconst a: string = 10;" }, "../src/other.ts": { - "version": "11373096570-console.log(\"hi\");\r\nexport { }", - "signature": "11373096570-console.log(\"hi\");\r\nexport { }" + "version": "9084524823-console.log(\"hi\");\nexport { }\n", + "signature": "9084524823-console.log(\"hi\");\nexport { }\n" } }, "root": [ @@ -140,7 +150,7 @@ Shape signatures in builder refreshed for:: ] }, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../shared/types/db.ts", [ "../src/main.ts", @@ -173,7 +183,7 @@ Shape signatures in builder refreshed for:: ] }, "version": "FakeTSVersion", - "size": 1168 + "size": 1176 } @@ -183,24 +193,33 @@ Input:: Output:: -/lib/tsc --incremental -p src -src/src/main.ts:2:7 - error TS2322: Type 'number' is not assignable to type 'string'. +/a/lib/tsc --incremental +src/main.ts:2:7 - error TS2322: Type 'number' is not assignable to type 'string'. 2 const a: string = 10;    ~ -Found 1 error in src/src/main.ts:2 +Found 1 error in src/main.ts:2 exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/shared/types/db.ts","/src/src/main.ts","/src/src/other.ts"] -Program options: {"outDir":"/src/dev-build","noEmitOnError":true,"incremental":true,"project":"/src","configFilePath":"/src/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "incremental": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Not Program files:: -/lib/lib.d.ts -/src/shared/types/db.ts -/src/src/main.ts -/src/src/other.ts +/a/lib/lib.d.ts +/user/username/projects/noEmitOnError/shared/types/db.ts +/user/username/projects/noEmitOnError/src/main.ts +/user/username/projects/noEmitOnError/src/other.ts Semantic diagnostics in builder refreshed for:: @@ -211,56 +230,65 @@ No shapes updated in the builder:: Change:: incremental-declaration-doesnt-change Input:: -//// [/src/src/main.ts] +//// [/user/username/projects/noEmitOnError/src/main.ts] import { A } from "../shared/types/db"; const a: string = "hello"; Output:: -/lib/tsc --incremental -p src +/a/lib/tsc --incremental exitCode:: ExitStatus.Success -Program root files: ["/src/shared/types/db.ts","/src/src/main.ts","/src/src/other.ts"] -Program options: {"outDir":"/src/dev-build","noEmitOnError":true,"incremental":true,"project":"/src","configFilePath":"/src/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "incremental": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Not Program files:: -/lib/lib.d.ts -/src/shared/types/db.ts -/src/src/main.ts -/src/src/other.ts +/a/lib/lib.d.ts +/user/username/projects/noEmitOnError/shared/types/db.ts +/user/username/projects/noEmitOnError/src/main.ts +/user/username/projects/noEmitOnError/src/other.ts Semantic diagnostics in builder refreshed for:: -/src/src/main.ts +/user/username/projects/noEmitOnError/src/main.ts Shape signatures in builder refreshed for:: -/src/src/main.ts (computed .d.ts) +/user/username/projects/noemitonerror/src/main.ts (computed .d.ts) -//// [/src/dev-build/shared/types/db.js] +//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -//// [/src/dev-build/src/main.js] +//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var a = "hello"; -//// [/src/dev-build/src/other.js] +//// [/user/username/projects/noEmitOnError/dev-build/src/other.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); console.log("hi"); -//// [/src/dev-build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-9621097780-export interface A {\r\n name: string;\r\n}",{"version":"-8373351622-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";","signature":"-3531856636-export {};\n"},"11373096570-console.log(\"hi\");\r\nexport { }"],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-5014788164-export interface A {\n name: string;\n}\n",{"version":"-8373351622-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";","signature":"-3531856636-export {};\n"},"9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} -//// [/src/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../shared/types/db.ts", "../src/main.ts", "../src/other.ts" @@ -271,7 +299,7 @@ console.log("hi"); ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -281,8 +309,8 @@ console.log("hi"); "affectsGlobalScope": true }, "../shared/types/db.ts": { - "version": "-9621097780-export interface A {\r\n name: string;\r\n}", - "signature": "-9621097780-export interface A {\r\n name: string;\r\n}" + "version": "-5014788164-export interface A {\n name: string;\n}\n", + "signature": "-5014788164-export interface A {\n name: string;\n}\n" }, "../src/main.ts": { "original": { @@ -293,8 +321,8 @@ console.log("hi"); "signature": "-3531856636-export {};\n" }, "../src/other.ts": { - "version": "11373096570-console.log(\"hi\");\r\nexport { }", - "signature": "11373096570-console.log(\"hi\");\r\nexport { }" + "version": "9084524823-console.log(\"hi\");\nexport { }\n", + "signature": "9084524823-console.log(\"hi\");\nexport { }\n" } }, "root": [ @@ -321,14 +349,14 @@ console.log("hi"); }, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../shared/types/db.ts", "../src/main.ts", "../src/other.ts" ] }, "version": "FakeTSVersion", - "size": 1042 + "size": 1050 } @@ -338,16 +366,25 @@ Input:: Output:: -/lib/tsc --incremental -p src +/a/lib/tsc --incremental exitCode:: ExitStatus.Success -Program root files: ["/src/shared/types/db.ts","/src/src/main.ts","/src/src/other.ts"] -Program options: {"outDir":"/src/dev-build","noEmitOnError":true,"incremental":true,"project":"/src","configFilePath":"/src/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "incremental": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Not Program files:: -/lib/lib.d.ts -/src/shared/types/db.ts -/src/src/main.ts -/src/src/other.ts +/a/lib/lib.d.ts +/user/username/projects/noEmitOnError/shared/types/db.ts +/user/username/projects/noEmitOnError/src/main.ts +/user/username/projects/noEmitOnError/src/other.ts Semantic diagnostics in builder refreshed for:: diff --git a/tests/baselines/reference/tsc/incremental/with-noEmitOnError-syntax-errors.js b/tests/baselines/reference/tsc/incremental/with-noEmitOnError-syntax-errors.js index d8754e56f91f6..b4a9a9880ea55 100644 --- a/tests/baselines/reference/tsc/incremental/with-noEmitOnError-syntax-errors.js +++ b/tests/baselines/reference/tsc/incremental/with-noEmitOnError-syntax-errors.js @@ -1,6 +1,6 @@ -currentDirectory:: / useCaseSensitiveFileNames: false +currentDirectory:: /user/username/projects/noEmitOnError useCaseSensitiveFileNames: false Input:: -//// [/lib/lib.d.ts] +//// [/a/lib/lib.d.ts] /// interface Boolean {} interface Function {} @@ -15,73 +15,84 @@ interface Array { length: number; [n: number]: T; } interface ReadonlyArray {} declare const console: { log(msg: any): void; }; -//// [/src/shared/types/db.ts] -export interface A { - name: string; -} +//// [/user/username/projects/noEmitOnError/shared/types/db.ts] +export interface A { + name: string; +} -//// [/src/src/main.ts] -import { A } from "../shared/types/db"; -const a = { - lastName: 'sdsd' -; - -//// [/src/src/other.ts] -console.log("hi"); -export { } - -//// [/src/tsconfig.json] -{ - "compilerOptions": { - "outDir": "./dev-build", - "noEmitOnError": true - } -} +//// [/user/username/projects/noEmitOnError/src/main.ts] +import { A } from "../shared/types/db"; +const a = { + lastName: 'sdsd' +; + + +//// [/user/username/projects/noEmitOnError/src/other.ts] +console.log("hi"); +export { } + + +//// [/user/username/projects/noEmitOnError/tsconfig.json] +{ + "compilerOptions": { + "outDir": "./dev-build", + "noEmitOnError": true + } +} Output:: -/lib/tsc --incremental -p src -src/src/main.ts:4:1 - error TS1005: ',' expected. +/a/lib/tsc --incremental +src/main.ts:4:1 - error TS1005: ',' expected. 4 ;   ~ -Found 1 error in src/src/main.ts:4 +Found 1 error in src/main.ts:4 exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/shared/types/db.ts","/src/src/main.ts","/src/src/other.ts"] -Program options: {"outDir":"/src/dev-build","noEmitOnError":true,"incremental":true,"project":"/src","configFilePath":"/src/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "incremental": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Not Program files:: -/lib/lib.d.ts -/src/shared/types/db.ts -/src/src/main.ts -/src/src/other.ts +/a/lib/lib.d.ts +/user/username/projects/noEmitOnError/shared/types/db.ts +/user/username/projects/noEmitOnError/src/main.ts +/user/username/projects/noEmitOnError/src/other.ts Semantic diagnostics in builder refreshed for:: -/lib/lib.d.ts -/src/shared/types/db.ts -/src/src/main.ts -/src/src/other.ts +/a/lib/lib.d.ts +/user/username/projects/noEmitOnError/shared/types/db.ts +/user/username/projects/noEmitOnError/src/main.ts +/user/username/projects/noEmitOnError/src/other.ts Shape signatures in builder refreshed for:: -/lib/lib.d.ts (used version) -/src/shared/types/db.ts (used version) -/src/src/main.ts (used version) -/src/src/other.ts (used version) +/a/lib/lib.d.ts (used version) +/user/username/projects/noemitonerror/shared/types/db.ts (used version) +/user/username/projects/noemitonerror/src/main.ts (used version) +/user/username/projects/noemitonerror/src/other.ts (used version) -//// [/src/dev-build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-9621097780-export interface A {\r\n name: string;\r\n}","2626879346-import { A } from \"../shared/types/db\";\r\nconst a = {\r\n lastName: 'sdsd'\r\n;","11373096570-console.log(\"hi\");\r\nexport { }"],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3,4],"affectedFilesPendingEmit":[2,3,4]},"version":"FakeTSVersion"} +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-5014788164-export interface A {\n name: string;\n}\n","-2574607723-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;\n","9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3,4],"affectedFilesPendingEmit":[2,3,4]},"version":"FakeTSVersion"} -//// [/src/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../shared/types/db.ts", "../src/main.ts", "../src/other.ts" @@ -92,7 +103,7 @@ Shape signatures in builder refreshed for:: ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -102,16 +113,16 @@ Shape signatures in builder refreshed for:: "affectsGlobalScope": true }, "../shared/types/db.ts": { - "version": "-9621097780-export interface A {\r\n name: string;\r\n}", - "signature": "-9621097780-export interface A {\r\n name: string;\r\n}" + "version": "-5014788164-export interface A {\n name: string;\n}\n", + "signature": "-5014788164-export interface A {\n name: string;\n}\n" }, "../src/main.ts": { - "version": "2626879346-import { A } from \"../shared/types/db\";\r\nconst a = {\r\n lastName: 'sdsd'\r\n;", - "signature": "2626879346-import { A } from \"../shared/types/db\";\r\nconst a = {\r\n lastName: 'sdsd'\r\n;" + "version": "-2574607723-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;\n", + "signature": "-2574607723-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;\n" }, "../src/other.ts": { - "version": "11373096570-console.log(\"hi\");\r\nexport { }", - "signature": "11373096570-console.log(\"hi\");\r\nexport { }" + "version": "9084524823-console.log(\"hi\");\nexport { }\n", + "signature": "9084524823-console.log(\"hi\");\nexport { }\n" } }, "root": [ @@ -142,7 +153,7 @@ Shape signatures in builder refreshed for:: ] }, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../shared/types/db.ts", "../src/main.ts", "../src/other.ts" @@ -163,7 +174,7 @@ Shape signatures in builder refreshed for:: ] }, "version": "FakeTSVersion", - "size": 1044 + "size": 1049 } @@ -173,24 +184,33 @@ Input:: Output:: -/lib/tsc --incremental -p src -src/src/main.ts:4:1 - error TS1005: ',' expected. +/a/lib/tsc --incremental +src/main.ts:4:1 - error TS1005: ',' expected. 4 ;   ~ -Found 1 error in src/src/main.ts:4 +Found 1 error in src/main.ts:4 exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -Program root files: ["/src/shared/types/db.ts","/src/src/main.ts","/src/src/other.ts"] -Program options: {"outDir":"/src/dev-build","noEmitOnError":true,"incremental":true,"project":"/src","configFilePath":"/src/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "incremental": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Not Program files:: -/lib/lib.d.ts -/src/shared/types/db.ts -/src/src/main.ts -/src/src/other.ts +/a/lib/lib.d.ts +/user/username/projects/noEmitOnError/shared/types/db.ts +/user/username/projects/noEmitOnError/src/main.ts +/user/username/projects/noEmitOnError/src/other.ts Semantic diagnostics in builder refreshed for:: @@ -201,7 +221,7 @@ No shapes updated in the builder:: Change:: incremental-declaration-doesnt-change Input:: -//// [/src/src/main.ts] +//// [/user/username/projects/noEmitOnError/src/main.ts] import { A } from "../shared/types/db"; const a = { lastName: 'sdsd' @@ -210,30 +230,39 @@ const a = { Output:: -/lib/tsc --incremental -p src +/a/lib/tsc --incremental exitCode:: ExitStatus.Success -Program root files: ["/src/shared/types/db.ts","/src/src/main.ts","/src/src/other.ts"] -Program options: {"outDir":"/src/dev-build","noEmitOnError":true,"incremental":true,"project":"/src","configFilePath":"/src/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "incremental": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Not Program files:: -/lib/lib.d.ts -/src/shared/types/db.ts -/src/src/main.ts -/src/src/other.ts +/a/lib/lib.d.ts +/user/username/projects/noEmitOnError/shared/types/db.ts +/user/username/projects/noEmitOnError/src/main.ts +/user/username/projects/noEmitOnError/src/other.ts Semantic diagnostics in builder refreshed for:: -/src/src/main.ts +/user/username/projects/noEmitOnError/src/main.ts Shape signatures in builder refreshed for:: -/src/src/main.ts (computed .d.ts) +/user/username/projects/noemitonerror/src/main.ts (computed .d.ts) -//// [/src/dev-build/shared/types/db.js] +//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -//// [/src/dev-build/src/main.js] +//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var a = { @@ -241,20 +270,20 @@ var a = { }; -//// [/src/dev-build/src/other.js] +//// [/user/username/projects/noEmitOnError/dev-build/src/other.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); console.log("hi"); -//// [/src/dev-build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-9621097780-export interface A {\r\n name: string;\r\n}",{"version":"-2574605496-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};","signature":"-3531856636-export {};\n"},"11373096570-console.log(\"hi\");\r\nexport { }"],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-5014788164-export interface A {\n name: string;\n}\n",{"version":"-2574605496-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};","signature":"-3531856636-export {};\n"},"9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} -//// [/src/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../shared/types/db.ts", "../src/main.ts", "../src/other.ts" @@ -265,7 +294,7 @@ console.log("hi"); ] ], "fileInfos": { - "../../lib/lib.d.ts": { + "../../../../../a/lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true @@ -275,8 +304,8 @@ console.log("hi"); "affectsGlobalScope": true }, "../shared/types/db.ts": { - "version": "-9621097780-export interface A {\r\n name: string;\r\n}", - "signature": "-9621097780-export interface A {\r\n name: string;\r\n}" + "version": "-5014788164-export interface A {\n name: string;\n}\n", + "signature": "-5014788164-export interface A {\n name: string;\n}\n" }, "../src/main.ts": { "original": { @@ -287,8 +316,8 @@ console.log("hi"); "signature": "-3531856636-export {};\n" }, "../src/other.ts": { - "version": "11373096570-console.log(\"hi\");\r\nexport { }", - "signature": "11373096570-console.log(\"hi\");\r\nexport { }" + "version": "9084524823-console.log(\"hi\");\nexport { }\n", + "signature": "9084524823-console.log(\"hi\");\nexport { }\n" } }, "root": [ @@ -315,14 +344,14 @@ console.log("hi"); }, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", + "../../../../../a/lib/lib.d.ts", "../shared/types/db.ts", "../src/main.ts", "../src/other.ts" ] }, "version": "FakeTSVersion", - "size": 1051 + "size": 1059 } @@ -332,16 +361,25 @@ Input:: Output:: -/lib/tsc --incremental -p src +/a/lib/tsc --incremental exitCode:: ExitStatus.Success -Program root files: ["/src/shared/types/db.ts","/src/src/main.ts","/src/src/other.ts"] -Program options: {"outDir":"/src/dev-build","noEmitOnError":true,"incremental":true,"project":"/src","configFilePath":"/src/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "incremental": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Not Program files:: -/lib/lib.d.ts -/src/shared/types/db.ts -/src/src/main.ts -/src/src/other.ts +/a/lib/lib.d.ts +/user/username/projects/noEmitOnError/shared/types/db.ts +/user/username/projects/noEmitOnError/src/main.ts +/user/username/projects/noEmitOnError/src/other.ts Semantic diagnostics in builder refreshed for:: diff --git a/tests/baselines/reference/tsc/libraryResolution/with-config-with-redirection.js b/tests/baselines/reference/tsc/libraryResolution/with-config-with-redirection.js index 2b0118775bdca..c2a87dc8b749f 100644 --- a/tests/baselines/reference/tsc/libraryResolution/with-config-with-redirection.js +++ b/tests/baselines/reference/tsc/libraryResolution/with-config-with-redirection.js @@ -112,7 +112,19 @@ export const file = 10; export const x = "type1"; //// [/home/src/projects/project1/tsconfig.json] -{"compilerOptions":{"composite":true,"typeRoots":["./typeroot1"],"lib":["es5","dom"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "typeRoots": [ + "./typeroot1" + ], + "lib": [ + "es5", + "dom" + ], + "traceResolution": true + } +} //// [/home/src/projects/project1/typeroot1/sometype/index.d.ts] export type TheNum = "type1"; @@ -124,7 +136,16 @@ export const y = 10; export const y = 10 //// [/home/src/projects/project2/tsconfig.json] -{"compilerOptions":{"composite":true,"lib":["es5","dom"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "lib": [ + "es5", + "dom" + ], + "traceResolution": true + } +} //// [/home/src/projects/project2/utils.d.ts] export const y = 10; @@ -133,7 +154,16 @@ export const y = 10; export const z = 10 //// [/home/src/projects/project3/tsconfig.json] -{"compilerOptions":{"composite":true,"lib":["es5","dom"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "lib": [ + "es5", + "dom" + ], + "traceResolution": true + } +} //// [/home/src/projects/project3/utils.d.ts] export const y = 10; @@ -142,7 +172,17 @@ export const y = 10; export const z = 10 //// [/home/src/projects/project4/tsconfig.json] -{"compilerOptions":{"composite":true,"lib":["esnext","dom","webworker"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "lib": [ + "esnext", + "dom", + "webworker" + ], + "traceResolution": true + } +} //// [/home/src/projects/project4/utils.d.ts] export const y = 10; @@ -241,8 +281,28 @@ project1/typeroot1/sometype/index.d.ts Matched by default include pattern '**/*' Entry point for implicit type library 'sometype' exitCode:: ExitStatus.Success -Program root files: ["/home/src/projects/project1/core.d.ts","/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] -Program options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"project":"/home/src/projects/project1","explainFiles":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +Program root files: [ + "/home/src/projects/project1/core.d.ts", + "/home/src/projects/project1/file.ts", + "/home/src/projects/project1/file2.ts", + "/home/src/projects/project1/index.ts", + "/home/src/projects/project1/utils.d.ts", + "/home/src/projects/project1/typeroot1/sometype/index.d.ts" +] +Program options: { + "composite": true, + "typeRoots": [ + "/home/src/projects/project1/typeroot1" + ], + "lib": [ + "lib.es5.d.ts", + "lib.dom.d.ts" + ], + "traceResolution": true, + "project": "/home/src/projects/project1", + "explainFiles": true, + "configFilePath": "/home/src/projects/project1/tsconfig.json" +} Program structureReused: Not Program files:: /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts diff --git a/tests/baselines/reference/tsc/libraryResolution/with-config.js b/tests/baselines/reference/tsc/libraryResolution/with-config.js index f8e62ffaf0b35..a04fecd8b7e82 100644 --- a/tests/baselines/reference/tsc/libraryResolution/with-config.js +++ b/tests/baselines/reference/tsc/libraryResolution/with-config.js @@ -73,7 +73,19 @@ export const file = 10; export const x = "type1"; //// [/home/src/projects/project1/tsconfig.json] -{"compilerOptions":{"composite":true,"typeRoots":["./typeroot1"],"lib":["es5","dom"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "typeRoots": [ + "./typeroot1" + ], + "lib": [ + "es5", + "dom" + ], + "traceResolution": true + } +} //// [/home/src/projects/project1/typeroot1/sometype/index.d.ts] export type TheNum = "type1"; @@ -85,7 +97,16 @@ export const y = 10; export const y = 10 //// [/home/src/projects/project2/tsconfig.json] -{"compilerOptions":{"composite":true,"lib":["es5","dom"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "lib": [ + "es5", + "dom" + ], + "traceResolution": true + } +} //// [/home/src/projects/project2/utils.d.ts] export const y = 10; @@ -94,7 +115,16 @@ export const y = 10; export const z = 10 //// [/home/src/projects/project3/tsconfig.json] -{"compilerOptions":{"composite":true,"lib":["es5","dom"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "lib": [ + "es5", + "dom" + ], + "traceResolution": true + } +} //// [/home/src/projects/project3/utils.d.ts] export const y = 10; @@ -103,7 +133,17 @@ export const y = 10; export const z = 10 //// [/home/src/projects/project4/tsconfig.json] -{"compilerOptions":{"composite":true,"lib":["esnext","dom","webworker"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "lib": [ + "esnext", + "dom", + "webworker" + ], + "traceResolution": true + } +} //// [/home/src/projects/project4/utils.d.ts] export const y = 10; @@ -246,8 +286,28 @@ project1/typeroot1/sometype/index.d.ts Matched by default include pattern '**/*' Entry point for implicit type library 'sometype' exitCode:: ExitStatus.Success -Program root files: ["/home/src/projects/project1/core.d.ts","/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] -Program options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"project":"/home/src/projects/project1","explainFiles":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +Program root files: [ + "/home/src/projects/project1/core.d.ts", + "/home/src/projects/project1/file.ts", + "/home/src/projects/project1/file2.ts", + "/home/src/projects/project1/index.ts", + "/home/src/projects/project1/utils.d.ts", + "/home/src/projects/project1/typeroot1/sometype/index.d.ts" +] +Program options: { + "composite": true, + "typeRoots": [ + "/home/src/projects/project1/typeroot1" + ], + "lib": [ + "lib.es5.d.ts", + "lib.dom.d.ts" + ], + "traceResolution": true, + "project": "/home/src/projects/project1", + "explainFiles": true, + "configFilePath": "/home/src/projects/project1/tsconfig.json" +} Program structureReused: Not Program files:: /home/src/lib/lib.es5.d.ts diff --git a/tests/baselines/reference/tsc/libraryResolution/without-config-with-redirection.js b/tests/baselines/reference/tsc/libraryResolution/without-config-with-redirection.js index 148c020fa0d4c..95c948bd17ac6 100644 --- a/tests/baselines/reference/tsc/libraryResolution/without-config-with-redirection.js +++ b/tests/baselines/reference/tsc/libraryResolution/without-config-with-redirection.js @@ -112,7 +112,19 @@ export const file = 10; export const x = "type1"; //// [/home/src/projects/project1/tsconfig.json] -{"compilerOptions":{"composite":true,"typeRoots":["./typeroot1"],"lib":["es5","dom"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "typeRoots": [ + "./typeroot1" + ], + "lib": [ + "es5", + "dom" + ], + "traceResolution": true + } +} //// [/home/src/projects/project1/typeroot1/sometype/index.d.ts] export type TheNum = "type1"; @@ -124,7 +136,16 @@ export const y = 10; export const y = 10 //// [/home/src/projects/project2/tsconfig.json] -{"compilerOptions":{"composite":true,"lib":["es5","dom"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "lib": [ + "es5", + "dom" + ], + "traceResolution": true + } +} //// [/home/src/projects/project2/utils.d.ts] export const y = 10; @@ -133,7 +154,16 @@ export const y = 10; export const z = 10 //// [/home/src/projects/project3/tsconfig.json] -{"compilerOptions":{"composite":true,"lib":["es5","dom"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "lib": [ + "es5", + "dom" + ], + "traceResolution": true + } +} //// [/home/src/projects/project3/utils.d.ts] export const y = 10; @@ -142,7 +172,17 @@ export const y = 10; export const z = 10 //// [/home/src/projects/project4/tsconfig.json] -{"compilerOptions":{"composite":true,"lib":["esnext","dom","webworker"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "lib": [ + "esnext", + "dom", + "webworker" + ], + "traceResolution": true + } +} //// [/home/src/projects/project4/utils.d.ts] export const y = 10; @@ -223,8 +263,21 @@ project1/index.ts project1/file2.ts Root file specified for compilation exitCode:: ExitStatus.Success -Program root files: ["project1/core.d.ts","project1/utils.d.ts","project1/file.ts","project1/index.ts","project1/file2.ts"] -Program options: {"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"explainFiles":true} +Program root files: [ + "project1/core.d.ts", + "project1/utils.d.ts", + "project1/file.ts", + "project1/index.ts", + "project1/file2.ts" +] +Program options: { + "lib": [ + "lib.es5.d.ts", + "lib.dom.d.ts" + ], + "traceResolution": true, + "explainFiles": true +} Program structureReused: Not Program files:: /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts diff --git a/tests/baselines/reference/tsc/libraryResolution/without-config.js b/tests/baselines/reference/tsc/libraryResolution/without-config.js index ca47d51ca4cdd..e55f6a5d8d971 100644 --- a/tests/baselines/reference/tsc/libraryResolution/without-config.js +++ b/tests/baselines/reference/tsc/libraryResolution/without-config.js @@ -73,7 +73,19 @@ export const file = 10; export const x = "type1"; //// [/home/src/projects/project1/tsconfig.json] -{"compilerOptions":{"composite":true,"typeRoots":["./typeroot1"],"lib":["es5","dom"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "typeRoots": [ + "./typeroot1" + ], + "lib": [ + "es5", + "dom" + ], + "traceResolution": true + } +} //// [/home/src/projects/project1/typeroot1/sometype/index.d.ts] export type TheNum = "type1"; @@ -85,7 +97,16 @@ export const y = 10; export const y = 10 //// [/home/src/projects/project2/tsconfig.json] -{"compilerOptions":{"composite":true,"lib":["es5","dom"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "lib": [ + "es5", + "dom" + ], + "traceResolution": true + } +} //// [/home/src/projects/project2/utils.d.ts] export const y = 10; @@ -94,7 +115,16 @@ export const y = 10; export const z = 10 //// [/home/src/projects/project3/tsconfig.json] -{"compilerOptions":{"composite":true,"lib":["es5","dom"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "lib": [ + "es5", + "dom" + ], + "traceResolution": true + } +} //// [/home/src/projects/project3/utils.d.ts] export const y = 10; @@ -103,7 +133,17 @@ export const y = 10; export const z = 10 //// [/home/src/projects/project4/tsconfig.json] -{"compilerOptions":{"composite":true,"lib":["esnext","dom","webworker"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "lib": [ + "esnext", + "dom", + "webworker" + ], + "traceResolution": true + } +} //// [/home/src/projects/project4/utils.d.ts] export const y = 10; @@ -224,8 +264,21 @@ project1/index.ts project1/file2.ts Root file specified for compilation exitCode:: ExitStatus.Success -Program root files: ["project1/core.d.ts","project1/utils.d.ts","project1/file.ts","project1/index.ts","project1/file2.ts"] -Program options: {"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"explainFiles":true} +Program root files: [ + "project1/core.d.ts", + "project1/utils.d.ts", + "project1/file.ts", + "project1/index.ts", + "project1/file2.ts" +] +Program options: { + "lib": [ + "lib.es5.d.ts", + "lib.dom.d.ts" + ], + "traceResolution": true, + "explainFiles": true +} Program structureReused: Not Program files:: /home/src/lib/lib.es5.d.ts diff --git a/tests/baselines/reference/tsc/moduleResolution/node10Result.js b/tests/baselines/reference/tsc/moduleResolution/node10Result.js index 5536e41466a25..e2ab8c29ccf22 100644 --- a/tests/baselines/reference/tsc/moduleResolution/node10Result.js +++ b/tests/baselines/reference/tsc/moduleResolution/node10Result.js @@ -25,14 +25,14 @@ export declare const bar: number; //// [/home/src/projects/project/node_modules/@types/bar/package.json] { - "name": "@types/bar", - "version": "1.0.0", - "types": "index.d.ts", - "exports": { - ".": { - "require": "./index.d.ts" + "name": "@types/bar", + "version": "1.0.0", + "types": "index.d.ts", + "exports": { + ".": { + "require": "./index.d.ts" + } } - } } //// [/home/src/projects/project/node_modules/@types/bar2/index.d.ts] @@ -40,15 +40,15 @@ export declare const bar2: number; //// [/home/src/projects/project/node_modules/@types/bar2/package.json] { - "name": "@types/bar2", - "version": "1.0.0", - "types": "index.d.ts", - "exports": { - ".": { - "types": "./index.d.ts", - "require": "./index.d.ts" + "name": "@types/bar2", + "version": "1.0.0", + "types": "index.d.ts", + "exports": { + ".": { + "types": "./index.d.ts", + "require": "./index.d.ts" + } } - } } //// [/home/src/projects/project/node_modules/bar/index.js] @@ -59,15 +59,15 @@ export const bar = 1; //// [/home/src/projects/project/node_modules/bar/package.json] { - "name": "bar", - "version": "1.0.0", - "main": "index.js", - "exports": { - ".": { - "import": "./index.mjs", - "require": "./index.js" + "name": "bar", + "version": "1.0.0", + "main": "index.js", + "exports": { + ".": { + "import": "./index.mjs", + "require": "./index.js" + } } - } } //// [/home/src/projects/project/node_modules/bar2/index.js] @@ -78,15 +78,15 @@ export const bar2 = 1; //// [/home/src/projects/project/node_modules/bar2/package.json] { - "name": "bar2", - "version": "1.0.0", - "main": "index.js", - "exports": { - ".": { - "import": "./index.mjs", - "require": "./index.js" + "name": "bar2", + "version": "1.0.0", + "main": "index.js", + "exports": { + ".": { + "import": "./index.mjs", + "require": "./index.js" + } } - } } //// [/home/src/projects/project/node_modules/foo/index.d.ts] @@ -100,16 +100,16 @@ export const foo = 1; //// [/home/src/projects/project/node_modules/foo/package.json] { - "name": "foo", - "version": "1.0.0", - "main": "index.js", - "types": "index.d.ts", - "exports": { - ".": { - "import": "./index.mjs", - "require": "./index.js" + "name": "foo", + "version": "1.0.0", + "main": "index.js", + "types": "index.d.ts", + "exports": { + ".": { + "import": "./index.mjs", + "require": "./index.js" + } } - } } //// [/home/src/projects/project/node_modules/foo2/index.d.ts] @@ -123,21 +123,32 @@ export const foo2 = 1; //// [/home/src/projects/project/node_modules/foo2/package.json] { - "name": "foo2", - "version": "1.0.0", - "main": "index.js", - "types": "index.d.ts", - "exports": { - ".": { - "types": "./index.d.ts", - "import": "./index.mjs", - "require": "./index.js" + "name": "foo2", + "version": "1.0.0", + "main": "index.js", + "types": "index.d.ts", + "exports": { + ".": { + "types": "./index.d.ts", + "import": "./index.mjs", + "require": "./index.js" + } } - } } //// [/home/src/projects/project/tsconfig.json] -{"compilerOptions":{"moduleResolution":"node16","traceResolution":true,"incremental":true,"strict":true,"types":[]},"files":["index.mts"]} +{ + "compilerOptions": { + "moduleResolution": "node16", + "traceResolution": true, + "incremental": true, + "strict": true, + "types": [] + }, + "files": [ + "index.mts" + ] +} //// [/lib/lib.d.ts] /// @@ -332,8 +343,18 @@ File '/package.json' does not exist according to earlier cached lookups. Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/home/src/projects/project/index.mts"] -Program options: {"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"project":"/home/src/projects/project","configFilePath":"/home/src/projects/project/tsconfig.json"} +Program root files: [ + "/home/src/projects/project/index.mts" +] +Program options: { + "moduleResolution": 3, + "traceResolution": true, + "incremental": true, + "strict": true, + "types": [], + "project": "/home/src/projects/project", + "configFilePath": "/home/src/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -635,8 +656,18 @@ File '/package.json' does not exist according to earlier cached lookups. Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/home/src/projects/project/index.mts"] -Program options: {"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"project":"/home/src/projects/project","configFilePath":"/home/src/projects/project/tsconfig.json"} +Program root files: [ + "/home/src/projects/project/index.mts" +] +Program options: { + "moduleResolution": 3, + "traceResolution": true, + "incremental": true, + "strict": true, + "types": [], + "project": "/home/src/projects/project", + "configFilePath": "/home/src/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -858,8 +889,18 @@ File '/package.json' does not exist according to earlier cached lookups. Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/home/src/projects/project/index.mts"] -Program options: {"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"project":"/home/src/projects/project","configFilePath":"/home/src/projects/project/tsconfig.json"} +Program root files: [ + "/home/src/projects/project/index.mts" +] +Program options: { + "moduleResolution": 3, + "traceResolution": true, + "incremental": true, + "strict": true, + "types": [], + "project": "/home/src/projects/project", + "configFilePath": "/home/src/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1070,8 +1111,18 @@ File '/package.json' does not exist according to earlier cached lookups. Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/home/src/projects/project/index.mts"] -Program options: {"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"project":"/home/src/projects/project","configFilePath":"/home/src/projects/project/tsconfig.json"} +Program root files: [ + "/home/src/projects/project/index.mts" +] +Program options: { + "moduleResolution": 3, + "traceResolution": true, + "incremental": true, + "strict": true, + "types": [], + "project": "/home/src/projects/project", + "configFilePath": "/home/src/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1269,8 +1320,18 @@ File '/package.json' does not exist according to earlier cached lookups. Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/home/src/projects/project/index.mts"] -Program options: {"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"project":"/home/src/projects/project","configFilePath":"/home/src/projects/project/tsconfig.json"} +Program root files: [ + "/home/src/projects/project/index.mts" +] +Program options: { + "moduleResolution": 3, + "traceResolution": true, + "incremental": true, + "strict": true, + "types": [], + "project": "/home/src/projects/project", + "configFilePath": "/home/src/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1289,15 +1350,15 @@ Change:: update package.json from @types so error is fixed Input:: //// [/home/src/projects/project/node_modules/@types/bar/package.json] { - "name": "@types/bar", - "version": "1.0.0", - "types": "index.d.ts", - "exports": { - ".": { - "types": "./index.d.ts", - "require": "./index.d.ts" + "name": "@types/bar", + "version": "1.0.0", + "types": "index.d.ts", + "exports": { + ".": { + "types": "./index.d.ts", + "require": "./index.d.ts" + } } - } } @@ -1440,8 +1501,18 @@ File '/package.json' does not exist according to earlier cached lookups. Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/home/src/projects/project/index.mts"] -Program options: {"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"project":"/home/src/projects/project","configFilePath":"/home/src/projects/project/tsconfig.json"} +Program root files: [ + "/home/src/projects/project/index.mts" +] +Program options: { + "moduleResolution": 3, + "traceResolution": true, + "incremental": true, + "strict": true, + "types": [], + "project": "/home/src/projects/project", + "configFilePath": "/home/src/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1556,17 +1627,17 @@ Change:: update package.json so error is fixed Input:: //// [/home/src/projects/project/node_modules/foo/package.json] { - "name": "foo", - "version": "1.0.0", - "main": "index.js", - "types": "index.d.ts", - "exports": { - ".": { - "types": "./index.d.ts", - "import": "./index.mjs", - "require": "./index.js" + "name": "foo", + "version": "1.0.0", + "main": "index.js", + "types": "index.d.ts", + "exports": { + ".": { + "types": "./index.d.ts", + "import": "./index.mjs", + "require": "./index.js" + } } - } } @@ -1681,8 +1752,18 @@ File '/package.json' does not exist according to earlier cached lookups. Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/home/src/projects/project/index.mts"] -Program options: {"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"project":"/home/src/projects/project","configFilePath":"/home/src/projects/project/tsconfig.json"} +Program root files: [ + "/home/src/projects/project/index.mts" +] +Program options: { + "moduleResolution": 3, + "traceResolution": true, + "incremental": true, + "strict": true, + "types": [], + "project": "/home/src/projects/project", + "configFilePath": "/home/src/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -1810,14 +1891,14 @@ Change:: update package.json from @types so error is introduced Input:: //// [/home/src/projects/project/node_modules/@types/bar2/package.json] { - "name": "@types/bar2", - "version": "1.0.0", - "types": "index.d.ts", - "exports": { - ".": { - "require": "./index.d.ts" + "name": "@types/bar2", + "version": "1.0.0", + "types": "index.d.ts", + "exports": { + ".": { + "require": "./index.d.ts" + } } - } } @@ -1970,8 +2051,18 @@ File '/package.json' does not exist according to earlier cached lookups. Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/home/src/projects/project/index.mts"] -Program options: {"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"project":"/home/src/projects/project","configFilePath":"/home/src/projects/project/tsconfig.json"} +Program root files: [ + "/home/src/projects/project/index.mts" +] +Program options: { + "moduleResolution": 3, + "traceResolution": true, + "incremental": true, + "strict": true, + "types": [], + "project": "/home/src/projects/project", + "configFilePath": "/home/src/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -2085,16 +2176,16 @@ Change:: update package.json so error is introduced Input:: //// [/home/src/projects/project/node_modules/foo2/package.json] { - "name": "foo2", - "version": "1.0.0", - "main": "index.js", - "types": "index.d.ts", - "exports": { - ".": { - "import": "./index.mjs", - "require": "./index.js" + "name": "foo2", + "version": "1.0.0", + "main": "index.js", + "types": "index.d.ts", + "exports": { + ".": { + "import": "./index.mjs", + "require": "./index.js" + } } - } } @@ -2275,8 +2366,18 @@ File '/package.json' does not exist according to earlier cached lookups. Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/home/src/projects/project/index.mts"] -Program options: {"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"project":"/home/src/projects/project","configFilePath":"/home/src/projects/project/tsconfig.json"} +Program root files: [ + "/home/src/projects/project/index.mts" +] +Program options: { + "moduleResolution": 3, + "traceResolution": true, + "incremental": true, + "strict": true, + "types": [], + "project": "/home/src/projects/project", + "configFilePath": "/home/src/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -2567,8 +2668,18 @@ File '/package.json' does not exist according to earlier cached lookups. Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/home/src/projects/project/index.mts"] -Program options: {"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"project":"/home/src/projects/project","configFilePath":"/home/src/projects/project/tsconfig.json"} +Program root files: [ + "/home/src/projects/project/index.mts" +] +Program options: { + "moduleResolution": 3, + "traceResolution": true, + "incremental": true, + "strict": true, + "types": [], + "project": "/home/src/projects/project", + "configFilePath": "/home/src/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -2790,8 +2901,18 @@ File '/package.json' does not exist according to earlier cached lookups. Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/home/src/projects/project/index.mts"] -Program options: {"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"project":"/home/src/projects/project","configFilePath":"/home/src/projects/project/tsconfig.json"} +Program root files: [ + "/home/src/projects/project/index.mts" +] +Program options: { + "moduleResolution": 3, + "traceResolution": true, + "incremental": true, + "strict": true, + "types": [], + "project": "/home/src/projects/project", + "configFilePath": "/home/src/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -3002,8 +3123,18 @@ File '/package.json' does not exist according to earlier cached lookups. Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/home/src/projects/project/index.mts"] -Program options: {"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"project":"/home/src/projects/project","configFilePath":"/home/src/projects/project/tsconfig.json"} +Program root files: [ + "/home/src/projects/project/index.mts" +] +Program options: { + "moduleResolution": 3, + "traceResolution": true, + "incremental": true, + "strict": true, + "types": [], + "project": "/home/src/projects/project", + "configFilePath": "/home/src/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts @@ -3201,8 +3332,18 @@ File '/package.json' does not exist according to earlier cached lookups. Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: ["/home/src/projects/project/index.mts"] -Program options: {"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"project":"/home/src/projects/project","configFilePath":"/home/src/projects/project/tsconfig.json"} +Program root files: [ + "/home/src/projects/project/index.mts" +] +Program options: { + "moduleResolution": 3, + "traceResolution": true, + "incremental": true, + "strict": true, + "types": [], + "project": "/home/src/projects/project", + "configFilePath": "/home/src/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /lib/lib.d.ts diff --git a/tests/baselines/reference/tsc/projectReferences/when-project-contains-invalid-project-reference.js b/tests/baselines/reference/tsc/projectReferences/when-project-contains-invalid-project-reference.js index 5a3717fce3bce..47b60f7e17380 100644 --- a/tests/baselines/reference/tsc/projectReferences/when-project-contains-invalid-project-reference.js +++ b/tests/baselines/reference/tsc/projectReferences/when-project-contains-invalid-project-reference.js @@ -19,19 +19,33 @@ declare const console: { log(msg: any): void; }; export const x = 10; //// [/src/project/tsconfig.json] -{"compilerOptions":{"module":"amd","outFile":"theApp.js"},"references":[{"path":"../Util/Dates"}]} +{ + "compilerOptions": { + "module": "amd", + "outFile": "theApp.js" + }, + "references": [ + { + "path": "../Util/Dates" + } + ] +} Output:: /lib/tsc --p src/project -src/project/tsconfig.json:1:73 - error TS6053: File '/src/Util/Dates' not found. +src/project/tsconfig.json:7:5 - error TS6053: File '/src/Util/Dates' not found. -1 {"compilerOptions":{"module":"amd","outFile":"theApp.js"},"references":[{"path":"../Util/Dates"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~ +7 { +   ~ +8 "path": "../Util/Dates" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +9 } +  ~~~~~ -Found 1 error in src/project/tsconfig.json:1 +Found 1 error in src/project/tsconfig.json:7 exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated diff --git a/tests/baselines/reference/tsc/projectReferences/when-project-references-composite-project-with-noEmit.js b/tests/baselines/reference/tsc/projectReferences/when-project-references-composite-project-with-noEmit.js index 32b84b80f97e5..e1d0d5e4c7c6a 100644 --- a/tests/baselines/reference/tsc/projectReferences/when-project-references-composite-project-with-noEmit.js +++ b/tests/baselines/reference/tsc/projectReferences/when-project-references-composite-project-with-noEmit.js @@ -19,25 +19,40 @@ declare const console: { log(msg: any): void; }; import { x } from "../utils"; //// [/src/project/tsconfig.json] -{"references":[{"path":"../utils"}]} +{ + "references": [ + { + "path": "../utils" + } + ] +} //// [/src/utils/index.ts] export const x = 10; //// [/src/utils/tsconfig.json] -{"compilerOptions":{"composite":true,"noEmit":true}} +{ + "compilerOptions": { + "composite": true, + "noEmit": true + } +} Output:: /lib/tsc --p src/project -src/project/tsconfig.json:1:16 - error TS6310: Referenced project '/src/utils' may not disable emit. +src/project/tsconfig.json:3:5 - error TS6310: Referenced project '/src/utils' may not disable emit. -1 {"references":[{"path":"../utils"}]} -   ~~~~~~~~~~~~~~~~~~~ +3 { +   ~ +4 "path": "../utils" +  ~~~~~~~~~~~~~~~~~~~~~~~~ +5 } +  ~~~~~ -Found 1 error in src/project/tsconfig.json:1 +Found 1 error in src/project/tsconfig.json:3 exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated diff --git a/tests/baselines/reference/tsc/projectReferencesConfig/default-setup-was-created-correctly.js b/tests/baselines/reference/tsc/projectReferencesConfig/default-setup-was-created-correctly.js index 0b11df63227bc..26fbc7a8679c7 100644 --- a/tests/baselines/reference/tsc/projectReferencesConfig/default-setup-was-created-correctly.js +++ b/tests/baselines/reference/tsc/projectReferencesConfig/default-setup-was-created-correctly.js @@ -20,11 +20,11 @@ export { }; //// [/primary/tsconfig.json] { - "compilerOptions": { - "composite": true, - "outDir": "bin" - }, - "references": [] + "compilerOptions": { + "composite": true, + "outDir": "bin" + }, + "references": [] } //// [/secondary/b.ts] @@ -32,15 +32,15 @@ import * as mod_0 from "../primary/a" //// [/secondary/tsconfig.json] { - "compilerOptions": { - "composite": true, - "outDir": "bin" - }, - "references": [ - { - "path": "../primary" - } - ] + "compilerOptions": { + "composite": true, + "outDir": "bin" + }, + "references": [ + { + "path": "../primary" + } + ] } diff --git a/tests/baselines/reference/tsc/projectReferencesConfig/does-not-error-when-the-referenced-project-doesnt-have-composite-if-its-a-container-project.js b/tests/baselines/reference/tsc/projectReferencesConfig/does-not-error-when-the-referenced-project-doesnt-have-composite-if-its-a-container-project.js index ed4216e26449f..82056a7a65e37 100644 --- a/tests/baselines/reference/tsc/projectReferencesConfig/does-not-error-when-the-referenced-project-doesnt-have-composite-if-its-a-container-project.js +++ b/tests/baselines/reference/tsc/projectReferencesConfig/does-not-error-when-the-referenced-project-doesnt-have-composite-if-its-a-container-project.js @@ -20,11 +20,11 @@ export { }; //// [/primary/tsconfig.json] { - "compilerOptions": { - "composite": false, - "outDir": "bin" - }, - "references": [] + "compilerOptions": { + "composite": false, + "outDir": "bin" + }, + "references": [] } //// [/reference/b.ts] @@ -32,16 +32,16 @@ import * as mod_0 from "../primary/a" //// [/reference/tsconfig.json] { - "compilerOptions": { - "composite": true, - "outDir": "bin" - }, - "references": [ - { - "path": "../primary" - } - ], - "files": [] + "compilerOptions": { + "composite": true, + "outDir": "bin" + }, + "references": [ + { + "path": "../primary" + } + ], + "files": [] } diff --git a/tests/baselines/reference/tsc/projectReferencesConfig/doesnt-infer-the-rootDir-from-source-paths.js b/tests/baselines/reference/tsc/projectReferencesConfig/doesnt-infer-the-rootDir-from-source-paths.js index 134a7fe569d01..7750720270a11 100644 --- a/tests/baselines/reference/tsc/projectReferencesConfig/doesnt-infer-the-rootDir-from-source-paths.js +++ b/tests/baselines/reference/tsc/projectReferencesConfig/doesnt-infer-the-rootDir-from-source-paths.js @@ -5,11 +5,11 @@ export const m: number = 3; //// [/alpha/tsconfig.json] { - "compilerOptions": { - "composite": true, - "outDir": "bin" - }, - "references": [] + "compilerOptions": { + "composite": true, + "outDir": "bin" + }, + "references": [] } //// [/lib/lib.d.ts] diff --git a/tests/baselines/reference/tsc/projectReferencesConfig/errors-when-a-file-is-outside-the-rootdir.js b/tests/baselines/reference/tsc/projectReferencesConfig/errors-when-a-file-is-outside-the-rootdir.js index 7566c393eedc0..72e22ca5c3c49 100644 --- a/tests/baselines/reference/tsc/projectReferencesConfig/errors-when-a-file-is-outside-the-rootdir.js +++ b/tests/baselines/reference/tsc/projectReferencesConfig/errors-when-a-file-is-outside-the-rootdir.js @@ -5,11 +5,11 @@ import * as b from '../../beta/b' //// [/alpha/tsconfig.json] { - "compilerOptions": { - "composite": true, - "outDir": "bin" - }, - "references": [] + "compilerOptions": { + "composite": true, + "outDir": "bin" + }, + "references": [] } //// [/beta/b.ts] diff --git a/tests/baselines/reference/tsc/projectReferencesConfig/errors-when-a-prepended-project-reference-doesnt-set-outFile.js b/tests/baselines/reference/tsc/projectReferencesConfig/errors-when-a-prepended-project-reference-doesnt-set-outFile.js index cb468964b6f86..b8c4a0c5ebdcc 100644 --- a/tests/baselines/reference/tsc/projectReferencesConfig/errors-when-a-prepended-project-reference-doesnt-set-outFile.js +++ b/tests/baselines/reference/tsc/projectReferencesConfig/errors-when-a-prepended-project-reference-doesnt-set-outFile.js @@ -20,16 +20,16 @@ export { }; //// [/primary/tsconfig.json] { - "compilerOptions": { - "composite": true, - "outDir": "bin" - }, - "references": [ - { - "path": "../someProj", - "prepend": true - } - ] + "compilerOptions": { + "composite": true, + "outDir": "bin" + }, + "references": [ + { + "path": "../someProj", + "prepend": true + } + ] } //// [/someProj/b.ts] @@ -37,27 +37,27 @@ const x = 100; //// [/someProj/tsconfig.json] { - "compilerOptions": { - "composite": true, - "outDir": "bin" - }, - "references": [] + "compilerOptions": { + "composite": true, + "outDir": "bin" + }, + "references": [] } Output:: /lib/tsc --p /primary/tsconfig.json --ignoreDeprecations 5.0 -primary/tsconfig.json:7:3 - error TS6308: Cannot prepend project '/someProj' because it does not have 'outFile' set +primary/tsconfig.json:7:5 - error TS6308: Cannot prepend project '/someProj' because it does not have 'outFile' set - 7 { -   ~ - 8 "path": "../someProj", -  ~~~~~~~~~~~~~~~~~~~~~~~~~ - 9 "prepend": true -  ~~~~~~~~~~~~~~~~~~ -10 } -  ~~~ + 7 { +   ~ + 8 "path": "../someProj", +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 9 "prepend": true +  ~~~~~~~~~~~~~~~~~~~~~ +10 } +  ~~~~~ Found 1 error in primary/tsconfig.json:7 diff --git a/tests/baselines/reference/tsc/projectReferencesConfig/errors-when-a-prepended-project-reference-output-doesnt-exist.js b/tests/baselines/reference/tsc/projectReferencesConfig/errors-when-a-prepended-project-reference-output-doesnt-exist.js index bcd03939e1455..6b097eaac3941 100644 --- a/tests/baselines/reference/tsc/projectReferencesConfig/errors-when-a-prepended-project-reference-output-doesnt-exist.js +++ b/tests/baselines/reference/tsc/projectReferencesConfig/errors-when-a-prepended-project-reference-output-doesnt-exist.js @@ -20,16 +20,16 @@ const y = x; //// [/primary/tsconfig.json] { - "compilerOptions": { - "composite": true, - "outDir": "bin" - }, - "references": [ - { - "path": "../someProj", - "prepend": true - } - ] + "compilerOptions": { + "composite": true, + "outDir": "bin" + }, + "references": [ + { + "path": "../someProj", + "prepend": true + } + ] } //// [/someProj/b.ts] @@ -37,12 +37,12 @@ const x = 100; //// [/someProj/tsconfig.json] { - "compilerOptions": { - "composite": true, - "outDir": "bin", - "outFile": "foo.js" - }, - "references": [] + "compilerOptions": { + "composite": true, + "outDir": "bin", + "outFile": "foo.js" + }, + "references": [] } @@ -53,27 +53,27 @@ Output:: The file is in the program because: Output from referenced project '/someProj/tsconfig.json' included because '--module' is specified as 'none' - primary/tsconfig.json:7:3 -  7 { -    ~ -  8 "path": "../someProj", -   ~~~~~~~~~~~~~~~~~~~~~~~~~ -  9 "prepend": true -   ~~~~~~~~~~~~~~~~~~ - 10 } -   ~~~ + primary/tsconfig.json:7:5 +  7 { +    ~ +  8 "path": "../someProj", +   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +  9 "prepend": true +   ~~~~~~~~~~~~~~~~~~~~~ + 10 } +   ~~~~~ File is output from referenced project specified here. -primary/tsconfig.json:7:3 - error TS6309: Output file '/someProj/foo.js' from project '/someProj' does not exist +primary/tsconfig.json:7:5 - error TS6309: Output file '/someProj/foo.js' from project '/someProj' does not exist - 7 { -   ~ - 8 "path": "../someProj", -  ~~~~~~~~~~~~~~~~~~~~~~~~~ - 9 "prepend": true -  ~~~~~~~~~~~~~~~~~~ -10 } -  ~~~ + 7 { +   ~ + 8 "path": "../someProj", +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 9 "prepend": true +  ~~~~~~~~~~~~~~~~~~~~~ +10 } +  ~~~~~ Found 2 errors in the same file, starting at: primary/tsconfig.json:7 diff --git a/tests/baselines/reference/tsc/projectReferencesConfig/errors-when-declaration-=-false.js b/tests/baselines/reference/tsc/projectReferencesConfig/errors-when-declaration-=-false.js index 20dadf385679e..70cc31de297db 100644 --- a/tests/baselines/reference/tsc/projectReferencesConfig/errors-when-declaration-=-false.js +++ b/tests/baselines/reference/tsc/projectReferencesConfig/errors-when-declaration-=-false.js @@ -20,22 +20,22 @@ export { }; //// [/primary/tsconfig.json] { - "compilerOptions": { - "composite": true, - "outDir": "bin", - "declaration": false - }, - "references": [] + "compilerOptions": { + "composite": true, + "outDir": "bin", + "declaration": false + }, + "references": [] } Output:: /lib/tsc --p /primary/tsconfig.json -primary/tsconfig.json:5:3 - error TS6304: Composite projects may not disable declaration emit. +primary/tsconfig.json:5:5 - error TS6304: Composite projects may not disable declaration emit. -5 "declaration": false -   ~~~~~~~~~~~~~ +5 "declaration": false +   ~~~~~~~~~~~~~ Found 1 error in primary/tsconfig.json:5 diff --git a/tests/baselines/reference/tsc/projectReferencesConfig/errors-when-the-file-list-is-not-exhaustive.js b/tests/baselines/reference/tsc/projectReferencesConfig/errors-when-the-file-list-is-not-exhaustive.js index 16630ddecc469..b98fd24620842 100644 --- a/tests/baselines/reference/tsc/projectReferencesConfig/errors-when-the-file-list-is-not-exhaustive.js +++ b/tests/baselines/reference/tsc/projectReferencesConfig/errors-when-the-file-list-is-not-exhaustive.js @@ -23,14 +23,14 @@ export {} //// [/primary/tsconfig.json] { - "compilerOptions": { - "composite": true, - "outDir": "bin" - }, - "references": [], - "files": [ - "a.ts" - ] + "compilerOptions": { + "composite": true, + "outDir": "bin" + }, + "references": [], + "files": [ + "a.ts" + ] } diff --git a/tests/baselines/reference/tsc/projectReferencesConfig/errors-when-the-referenced-project-doesnt-exist.js b/tests/baselines/reference/tsc/projectReferencesConfig/errors-when-the-referenced-project-doesnt-exist.js index 9fc852b1370c0..5765f3776c044 100644 --- a/tests/baselines/reference/tsc/projectReferencesConfig/errors-when-the-referenced-project-doesnt-exist.js +++ b/tests/baselines/reference/tsc/projectReferencesConfig/errors-when-the-referenced-project-doesnt-exist.js @@ -20,29 +20,29 @@ export { }; //// [/primary/tsconfig.json] { - "compilerOptions": { - "composite": true, - "outDir": "bin" - }, - "references": [ - { - "path": "../foo" - } - ] + "compilerOptions": { + "composite": true, + "outDir": "bin" + }, + "references": [ + { + "path": "../foo" + } + ] } Output:: /lib/tsc --p /primary/tsconfig.json -primary/tsconfig.json:7:3 - error TS6053: File '/foo' not found. +primary/tsconfig.json:7:5 - error TS6053: File '/foo' not found. -7 { -   ~ -8 "path": "../foo" -  ~~~~~~~~~~~~~~~~~~~ -9 } -  ~~~ +7 { +   ~ +8 "path": "../foo" +  ~~~~~~~~~~~~~~~~~~~~~~ +9 } +  ~~~~~ Found 1 error in primary/tsconfig.json:7 diff --git a/tests/baselines/reference/tsc/projectReferencesConfig/errors-when-the-referenced-project-doesnt-have-composite.js b/tests/baselines/reference/tsc/projectReferencesConfig/errors-when-the-referenced-project-doesnt-have-composite.js index 8a611fb335178..7af46ca3a6b2d 100644 --- a/tests/baselines/reference/tsc/projectReferencesConfig/errors-when-the-referenced-project-doesnt-have-composite.js +++ b/tests/baselines/reference/tsc/projectReferencesConfig/errors-when-the-referenced-project-doesnt-have-composite.js @@ -20,11 +20,11 @@ export { }; //// [/primary/tsconfig.json] { - "compilerOptions": { - "composite": false, - "outDir": "bin" - }, - "references": [] + "compilerOptions": { + "composite": false, + "outDir": "bin" + }, + "references": [] } //// [/reference/b.ts] @@ -32,32 +32,32 @@ import * as mod_0 from "../primary/a" //// [/reference/tsconfig.json] { - "compilerOptions": { - "composite": true, - "outDir": "bin" - }, - "references": [ - { - "path": "../primary" - } - ], - "files": [ - "b.ts" - ] + "compilerOptions": { + "composite": true, + "outDir": "bin" + }, + "references": [ + { + "path": "../primary" + } + ], + "files": [ + "b.ts" + ] } Output:: /lib/tsc --p /reference/tsconfig.json -reference/tsconfig.json:7:3 - error TS6306: Referenced project '/primary' must have setting "composite": true. +reference/tsconfig.json:7:5 - error TS6306: Referenced project '/primary' must have setting "composite": true. -7 { -   ~ -8 "path": "../primary" -  ~~~~~~~~~~~~~~~~~~~~~~~ -9 } -  ~~~ +7 { +   ~ +8 "path": "../primary" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~ +9 } +  ~~~~~ Found 1 error in reference/tsconfig.json:7 diff --git a/tests/baselines/reference/tsc/projectReferencesConfig/issues-a-nice-error-when-the-input-file-is-missing-when-module-reference-is-not-relative.js b/tests/baselines/reference/tsc/projectReferencesConfig/issues-a-nice-error-when-the-input-file-is-missing-when-module-reference-is-not-relative.js index ef90b8860ec4e..546d96a17119e 100644 --- a/tests/baselines/reference/tsc/projectReferencesConfig/issues-a-nice-error-when-the-input-file-is-missing-when-module-reference-is-not-relative.js +++ b/tests/baselines/reference/tsc/projectReferencesConfig/issues-a-nice-error-when-the-input-file-is-missing-when-module-reference-is-not-relative.js @@ -5,11 +5,11 @@ export const m: number = 3; //// [/alpha/tsconfig.json] { - "compilerOptions": { - "composite": true, - "outDir": "bin" - }, - "references": [] + "compilerOptions": { + "composite": true, + "outDir": "bin" + }, + "references": [] } //// [/beta/b.ts] @@ -17,21 +17,21 @@ import { m } from '@alpha/a' //// [/beta/tsconfig.json] { - "compilerOptions": { - "composite": true, - "outDir": "bin", - "baseUrl": "./", - "paths": { - "@alpha/*": [ - "/alpha/*" - ] - } - }, - "references": [ - { - "path": "../alpha" - } - ] + "compilerOptions": { + "composite": true, + "outDir": "bin", + "baseUrl": "./", + "paths": { + "@alpha/*": [ + "/alpha/*" + ] + } + }, + "references": [ + { + "path": "../alpha" + } + ] } //// [/lib/lib.d.ts] diff --git a/tests/baselines/reference/tsc/projectReferencesConfig/issues-a-nice-error-when-the-input-file-is-missing.js b/tests/baselines/reference/tsc/projectReferencesConfig/issues-a-nice-error-when-the-input-file-is-missing.js index c0eb526f628a8..befebe77a8654 100644 --- a/tests/baselines/reference/tsc/projectReferencesConfig/issues-a-nice-error-when-the-input-file-is-missing.js +++ b/tests/baselines/reference/tsc/projectReferencesConfig/issues-a-nice-error-when-the-input-file-is-missing.js @@ -5,11 +5,11 @@ export const m: number = 3; //// [/alpha/tsconfig.json] { - "compilerOptions": { - "composite": true, - "outDir": "bin" - }, - "references": [] + "compilerOptions": { + "composite": true, + "outDir": "bin" + }, + "references": [] } //// [/beta/b.ts] @@ -17,15 +17,15 @@ import { m } from '../alpha/a' //// [/beta/tsconfig.json] { - "compilerOptions": { - "composite": true, - "outDir": "bin" - }, - "references": [ - { - "path": "../alpha" - } - ] + "compilerOptions": { + "composite": true, + "outDir": "bin" + }, + "references": [ + { + "path": "../alpha" + } + ] } //// [/lib/lib.d.ts] diff --git a/tests/baselines/reference/tsc/projectReferencesConfig/redirects-to-the-output-dts-file.js b/tests/baselines/reference/tsc/projectReferencesConfig/redirects-to-the-output-dts-file.js index acdacea528ef5..fbc075e29ed3e 100644 --- a/tests/baselines/reference/tsc/projectReferencesConfig/redirects-to-the-output-dts-file.js +++ b/tests/baselines/reference/tsc/projectReferencesConfig/redirects-to-the-output-dts-file.js @@ -8,11 +8,11 @@ export { }; //// [/alpha/tsconfig.json] { - "compilerOptions": { - "composite": true, - "outDir": "bin" - }, - "references": [] + "compilerOptions": { + "composite": true, + "outDir": "bin" + }, + "references": [] } //// [/beta/b.ts] @@ -20,15 +20,15 @@ import { m } from '../alpha/a' //// [/beta/tsconfig.json] { - "compilerOptions": { - "composite": true, - "outDir": "bin" - }, - "references": [ - { - "path": "../alpha" - } - ] + "compilerOptions": { + "composite": true, + "outDir": "bin" + }, + "references": [ + { + "path": "../alpha" + } + ] } //// [/lib/lib.d.ts] diff --git a/tests/baselines/reference/tsc/react-jsx-emit-mode/with-no-backing-types-found-doesn't-crash-under---strict.js b/tests/baselines/reference/tsc/react-jsx-emit-mode/with-no-backing-types-found-doesn't-crash-under---strict.js index f983b6d7c91b2..ebc88f88c26f2 100644 --- a/tests/baselines/reference/tsc/react-jsx-emit-mode/with-no-backing-types-found-doesn't-crash-under---strict.js +++ b/tests/baselines/reference/tsc/react-jsx-emit-mode/with-no-backing-types-found-doesn't-crash-under---strict.js @@ -36,7 +36,14 @@ export {} export const App = () =>
; //// [/src/project/tsconfig.json] -{"compilerOptions":{"module":"commonjs","jsx":"react-jsx","incremental":true,"jsxImportSource":"react"}} +{ + "compilerOptions": { + "module": "commonjs", + "jsx": "react-jsx", + "incremental": true, + "jsxImportSource": "react" + } +} diff --git a/tests/baselines/reference/tsc/react-jsx-emit-mode/with-no-backing-types-found-doesn't-crash.js b/tests/baselines/reference/tsc/react-jsx-emit-mode/with-no-backing-types-found-doesn't-crash.js index 8cb942e19119a..b17aa9bf22022 100644 --- a/tests/baselines/reference/tsc/react-jsx-emit-mode/with-no-backing-types-found-doesn't-crash.js +++ b/tests/baselines/reference/tsc/react-jsx-emit-mode/with-no-backing-types-found-doesn't-crash.js @@ -36,7 +36,14 @@ export {} export const App = () =>
; //// [/src/project/tsconfig.json] -{"compilerOptions":{"module":"commonjs","jsx":"react-jsx","incremental":true,"jsxImportSource":"react"}} +{ + "compilerOptions": { + "module": "commonjs", + "jsx": "react-jsx", + "incremental": true, + "jsxImportSource": "react" + } +} diff --git a/tests/baselines/reference/tsc/redirect/when-redirecting-ts-file.js b/tests/baselines/reference/tsc/redirect/when-redirecting-ts-file.js index d40852214c460..1adb464749201 100644 --- a/tests/baselines/reference/tsc/redirect/when-redirecting-ts-file.js +++ b/tests/baselines/reference/tsc/redirect/when-redirecting-ts-file.js @@ -22,7 +22,11 @@ import {} from "./"; export const a = 1; //// [/src/project/copy1/node_modules/target/package.json] -{"name":"target","version":"1.0.0","main":"index.js"} +{ + "name": "target", + "version": "1.0.0", + "main": "index.js" +} //// [/src/project/copy2/node_modules/target/import.ts] import {} from "./"; @@ -31,10 +35,22 @@ import {} from "./"; export const a = 1; //// [/src/project/copy2/node_modules/target/package.json] -{"name":"target","version":"1.0.0","main":"index.js"} +{ + "name": "target", + "version": "1.0.0", + "main": "index.js" +} //// [/src/project/tsconfig.json] -{"compilerOptions":{"outDir":"out"},"include":["copy1/node_modules/target/*","copy2/node_modules/target/*"]} +{ + "compilerOptions": { + "outDir": "out" + }, + "include": [ + "copy1/node_modules/target/*", + "copy2/node_modules/target/*" + ] +} diff --git a/tests/baselines/reference/tscWatch/consoleClearing/when-preserveWatchOutput-is-true-in-config-file/createWatchOfConfigFile.js b/tests/baselines/reference/tscWatch/consoleClearing/when-preserveWatchOutput-is-true-in-config-file/createWatchOfConfigFile.js index 0c3d5a226cf83..7a5a4e52279d6 100644 --- a/tests/baselines/reference/tscWatch/consoleClearing/when-preserveWatchOutput-is-true-in-config-file/createWatchOfConfigFile.js +++ b/tests/baselines/reference/tscWatch/consoleClearing/when-preserveWatchOutput-is-true-in-config-file/createWatchOfConfigFile.js @@ -4,7 +4,11 @@ Input:: //// [/tsconfig.json] -{"compilerOptions":{"preserveWatchOutput":true}} +{ + "compilerOptions": { + "preserveWatchOutput": true + } +} //// [/a/lib/lib.d.ts] /// @@ -29,8 +33,14 @@ Output:: -Program root files: ["/f.ts","/a/lib/lib.d.ts"] -Program options: {"preserveWatchOutput":true,"configFilePath":"/tsconfig.json"} +Program root files: [ + "/f.ts", + "/a/lib/lib.d.ts" +] +Program options: { + "preserveWatchOutput": true, + "configFilePath": "/tsconfig.json" +} Program structureReused: Not Program files:: /f.ts @@ -79,8 +89,14 @@ Output:: -Program root files: ["/f.ts","/a/lib/lib.d.ts"] -Program options: {"preserveWatchOutput":true,"configFilePath":"/tsconfig.json"} +Program root files: [ + "/f.ts", + "/a/lib/lib.d.ts" +] +Program options: { + "preserveWatchOutput": true, + "configFilePath": "/tsconfig.json" +} Program structureReused: Completely Program files:: /f.ts diff --git a/tests/baselines/reference/tscWatch/consoleClearing/when-preserveWatchOutput-is-true-in-config-file/when-createWatchProgram-is-invoked-with-configFileParseResult-on-WatchCompilerHostOfConfigFile.js b/tests/baselines/reference/tscWatch/consoleClearing/when-preserveWatchOutput-is-true-in-config-file/when-createWatchProgram-is-invoked-with-configFileParseResult-on-WatchCompilerHostOfConfigFile.js index c22ec26bfca62..9abd78c7c7686 100644 --- a/tests/baselines/reference/tscWatch/consoleClearing/when-preserveWatchOutput-is-true-in-config-file/when-createWatchProgram-is-invoked-with-configFileParseResult-on-WatchCompilerHostOfConfigFile.js +++ b/tests/baselines/reference/tscWatch/consoleClearing/when-preserveWatchOutput-is-true-in-config-file/when-createWatchProgram-is-invoked-with-configFileParseResult-on-WatchCompilerHostOfConfigFile.js @@ -4,7 +4,11 @@ Input:: //// [/tsconfig.json] -{"compilerOptions":{"preserveWatchOutput":true}} +{ + "compilerOptions": { + "preserveWatchOutput": true + } +} //// [/a/lib/lib.d.ts] /// @@ -28,8 +32,16 @@ Output:: -Program root files: ["/f.ts","/a/lib/lib.d.ts"] -Program options: {"preserveWatchOutput":true,"watch":true,"project":"/tsconfig.json","configFilePath":"/tsconfig.json"} +Program root files: [ + "/f.ts", + "/a/lib/lib.d.ts" +] +Program options: { + "preserveWatchOutput": true, + "watch": true, + "project": "/tsconfig.json", + "configFilePath": "/tsconfig.json" +} Program structureReused: Not Program files:: /f.ts @@ -78,8 +90,16 @@ Output:: -Program root files: ["/f.ts","/a/lib/lib.d.ts"] -Program options: {"preserveWatchOutput":true,"watch":true,"project":"/tsconfig.json","configFilePath":"/tsconfig.json"} +Program root files: [ + "/f.ts", + "/a/lib/lib.d.ts" +] +Program options: { + "preserveWatchOutput": true, + "watch": true, + "project": "/tsconfig.json", + "configFilePath": "/tsconfig.json" +} Program structureReused: Completely Program files:: /f.ts diff --git a/tests/baselines/reference/tscWatch/consoleClearing/with---diagnostics.js b/tests/baselines/reference/tscWatch/consoleClearing/with---diagnostics.js index 571c23df1f454..4728c08ce5ffa 100644 --- a/tests/baselines/reference/tscWatch/consoleClearing/with---diagnostics.js +++ b/tests/baselines/reference/tscWatch/consoleClearing/with---diagnostics.js @@ -30,8 +30,13 @@ CreatingProgramWith:: -Program root files: ["/f.ts"] -Program options: {"watch":true,"diagnostics":true} +Program root files: [ + "/f.ts" +] +Program options: { + "watch": true, + "diagnostics": true +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -81,8 +86,13 @@ CreatingProgramWith:: -Program root files: ["/f.ts"] -Program options: {"watch":true,"diagnostics":true} +Program root files: [ + "/f.ts" +] +Program options: { + "watch": true, + "diagnostics": true +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/consoleClearing/with---extendedDiagnostics.js b/tests/baselines/reference/tscWatch/consoleClearing/with---extendedDiagnostics.js index 7cd6b2d1bbabf..1232f805cb397 100644 --- a/tests/baselines/reference/tscWatch/consoleClearing/with---extendedDiagnostics.js +++ b/tests/baselines/reference/tscWatch/consoleClearing/with---extendedDiagnostics.js @@ -32,8 +32,13 @@ FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 250 undefined Source file -Program root files: ["/f.ts"] -Program options: {"watch":true,"extendedDiagnostics":true} +Program root files: [ + "/f.ts" +] +Program options: { + "watch": true, + "extendedDiagnostics": true +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -83,8 +88,13 @@ CreatingProgramWith:: -Program root files: ["/f.ts"] -Program options: {"watch":true,"extendedDiagnostics":true} +Program root files: [ + "/f.ts" +] +Program options: { + "watch": true, + "extendedDiagnostics": true +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/consoleClearing/with---preserveWatchOutput.js b/tests/baselines/reference/tscWatch/consoleClearing/with---preserveWatchOutput.js index 590711f349904..ef7ea7221d3fc 100644 --- a/tests/baselines/reference/tscWatch/consoleClearing/with---preserveWatchOutput.js +++ b/tests/baselines/reference/tscWatch/consoleClearing/with---preserveWatchOutput.js @@ -25,8 +25,13 @@ Output:: -Program root files: ["/f.ts"] -Program options: {"watch":true,"preserveWatchOutput":true} +Program root files: [ + "/f.ts" +] +Program options: { + "watch": true, + "preserveWatchOutput": true +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -69,8 +74,13 @@ Output:: -Program root files: ["/f.ts"] -Program options: {"watch":true,"preserveWatchOutput":true} +Program root files: [ + "/f.ts" +] +Program options: { + "watch": true, + "preserveWatchOutput": true +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/consoleClearing/without---diagnostics-or---extendedDiagnostics.js b/tests/baselines/reference/tscWatch/consoleClearing/without---diagnostics-or---extendedDiagnostics.js index 52baaf7ae6da4..d0387109203aa 100644 --- a/tests/baselines/reference/tscWatch/consoleClearing/without---diagnostics-or---extendedDiagnostics.js +++ b/tests/baselines/reference/tscWatch/consoleClearing/without---diagnostics-or---extendedDiagnostics.js @@ -26,8 +26,12 @@ Output:: -Program root files: ["/f.ts"] -Program options: {"watch":true} +Program root files: [ + "/f.ts" +] +Program options: { + "watch": true +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -71,8 +75,12 @@ Output:: -Program root files: ["/f.ts"] -Program options: {"watch":true} +Program root files: [ + "/f.ts" +] +Program options: { + "watch": true +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emit/emit-file-content/elides-const-enums-correctly-in-incremental-compilation.js b/tests/baselines/reference/tscWatch/emit/emit-file-content/elides-const-enums-correctly-in-incremental-compilation.js index 75a6f83f8868c..f9a9e1bfadea5 100644 --- a/tests/baselines/reference/tscWatch/emit/emit-file-content/elides-const-enums-correctly-in-incremental-compilation.js +++ b/tests/baselines/reference/tscWatch/emit/emit-file-content/elides-const-enums-correctly-in-incremental-compilation.js @@ -32,8 +32,12 @@ Output:: -Program root files: ["/user/someone/projects/myproject/file3.ts"] -Program options: {"watch":true} +Program root files: [ + "/user/someone/projects/myproject/file3.ts" +] +Program options: { + "watch": true +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -100,8 +104,12 @@ Output:: -Program root files: ["/user/someone/projects/myproject/file3.ts"] -Program options: {"watch":true} +Program root files: [ + "/user/someone/projects/myproject/file3.ts" +] +Program options: { + "watch": true +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emit/emit-file-content/file-is-deleted-and-created-as-part-of-change.js b/tests/baselines/reference/tscWatch/emit/emit-file-content/file-is-deleted-and-created-as-part-of-change.js index 73e0861958696..ff1e5e4424414 100644 --- a/tests/baselines/reference/tscWatch/emit/emit-file-content/file-is-deleted-and-created-as-part-of-change.js +++ b/tests/baselines/reference/tscWatch/emit/emit-file-content/file-is-deleted-and-created-as-part-of-change.js @@ -4,7 +4,11 @@ Input:: var a = 10; //// [/home/username/project/tsconfig.json] -{"include":["app/**/*.ts"]} +{ + "include": [ + "app/**/*.ts" + ] +} //// [/a/lib/lib.d.ts] /// @@ -29,8 +33,13 @@ Output:: -Program root files: ["/home/username/project/app/file.ts"] -Program options: {"watch":true,"configFilePath":"/home/username/project/tsconfig.json"} +Program root files: [ + "/home/username/project/app/file.ts" +] +Program options: { + "watch": true, + "configFilePath": "/home/username/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -86,8 +95,13 @@ Output:: -Program root files: ["/home/username/project/app/file.ts"] -Program options: {"watch":true,"configFilePath":"/home/username/project/tsconfig.json"} +Program root files: [ + "/home/username/project/app/file.ts" +] +Program options: { + "watch": true, + "configFilePath": "/home/username/project/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emit/emit-file-content/handles-new-lines-carriageReturn-lineFeed.js b/tests/baselines/reference/tscWatch/emit/emit-file-content/handles-new-lines-carriageReturn-lineFeed.js index cf61948636287..1c5cba2c55024 100644 --- a/tests/baselines/reference/tscWatch/emit/emit-file-content/handles-new-lines-carriageReturn-lineFeed.js +++ b/tests/baselines/reference/tscWatch/emit/emit-file-content/handles-new-lines-carriageReturn-lineFeed.js @@ -27,8 +27,12 @@ Output:: -Program root files: ["/a/app.ts"] -Program options: {"watch":true} +Program root files: [ + "/a/app.ts" +] +Program options: { + "watch": true +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -76,8 +80,12 @@ Output:: -Program root files: ["/a/app.ts"] -Program options: {"watch":true} +Program root files: [ + "/a/app.ts" +] +Program options: { + "watch": true +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emit/emit-file-content/handles-new-lines-lineFeed.js b/tests/baselines/reference/tscWatch/emit/emit-file-content/handles-new-lines-lineFeed.js index daba959cf9b73..c089c3ef8c29c 100644 --- a/tests/baselines/reference/tscWatch/emit/emit-file-content/handles-new-lines-lineFeed.js +++ b/tests/baselines/reference/tscWatch/emit/emit-file-content/handles-new-lines-lineFeed.js @@ -27,8 +27,12 @@ Output:: -Program root files: ["/a/app.ts"] -Program options: {"watch":true} +Program root files: [ + "/a/app.ts" +] +Program options: { + "watch": true +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -76,8 +80,12 @@ Output:: -Program root files: ["/a/app.ts"] -Program options: {"watch":true} +Program root files: [ + "/a/app.ts" +] +Program options: { + "watch": true +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emit/emit-file-content/should-emit-specified-file.js b/tests/baselines/reference/tscWatch/emit/emit-file-content/should-emit-specified-file.js index 41e987efd3250..c85d5bc140f7e 100644 --- a/tests/baselines/reference/tscWatch/emit/emit-file-content/should-emit-specified-file.js +++ b/tests/baselines/reference/tscWatch/emit/emit-file-content/should-emit-specified-file.js @@ -35,8 +35,16 @@ Output:: -Program root files: ["/a/b/f1.ts","/a/b/f2.ts","/a/b/f3.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/f1.ts", + "/a/b/f2.ts", + "/a/b/f3.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -116,8 +124,16 @@ Output:: -Program root files: ["/a/b/f1.ts","/a/b/f2.ts","/a/b/f3.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/f1.ts", + "/a/b/f2.ts", + "/a/b/f3.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -168,8 +184,16 @@ Output:: -Program root files: ["/a/b/f1.ts","/a/b/f2.ts","/a/b/f3.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/f1.ts", + "/a/b/f2.ts", + "/a/b/f3.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emit/emit-for-configured-projects/should-always-return-the-file-itself-if-'--isolatedModules'-is-specified.js b/tests/baselines/reference/tscWatch/emit/emit-for-configured-projects/should-always-return-the-file-itself-if-'--isolatedModules'-is-specified.js index 4d0a815805cbb..8f57ec909f39b 100644 --- a/tests/baselines/reference/tscWatch/emit/emit-for-configured-projects/should-always-return-the-file-itself-if-'--isolatedModules'-is-specified.js +++ b/tests/baselines/reference/tscWatch/emit/emit-for-configured-projects/should-always-return-the-file-itself-if-'--isolatedModules'-is-specified.js @@ -16,7 +16,11 @@ interface GlobalFoo { age: number } export var Foo4 = 10; //// [/a/b/tsconfig.json] -{"compilerOptions":{"isolatedModules":true}} +{ + "compilerOptions": { + "isolatedModules": true + } +} //// [/a/lib/lib.d.ts] /// @@ -41,8 +45,19 @@ Output:: -Program root files: ["/a/b/file1Consumer1.ts","/a/b/file1Consumer2.ts","/a/b/globalFile3.ts","/a/b/moduleFile1.ts","/a/b/moduleFile2.ts"] -Program options: {"isolatedModules":true,"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/file1Consumer1.ts", + "/a/b/file1Consumer2.ts", + "/a/b/globalFile3.ts", + "/a/b/moduleFile1.ts", + "/a/b/moduleFile2.ts" +] +Program options: { + "isolatedModules": true, + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -141,8 +156,19 @@ Output:: -Program root files: ["/a/b/file1Consumer1.ts","/a/b/file1Consumer2.ts","/a/b/globalFile3.ts","/a/b/moduleFile1.ts","/a/b/moduleFile2.ts"] -Program options: {"isolatedModules":true,"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/file1Consumer1.ts", + "/a/b/file1Consumer2.ts", + "/a/b/globalFile3.ts", + "/a/b/moduleFile1.ts", + "/a/b/moduleFile2.ts" +] +Program options: { + "isolatedModules": true, + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emit/emit-for-configured-projects/should-always-return-the-file-itself-if-'--out'-or-'--outFile'-is-specified.js b/tests/baselines/reference/tscWatch/emit/emit-for-configured-projects/should-always-return-the-file-itself-if-'--out'-or-'--outFile'-is-specified.js index 32d49e0437112..ded2b92a98940 100644 --- a/tests/baselines/reference/tscWatch/emit/emit-for-configured-projects/should-always-return-the-file-itself-if-'--out'-or-'--outFile'-is-specified.js +++ b/tests/baselines/reference/tscWatch/emit/emit-for-configured-projects/should-always-return-the-file-itself-if-'--out'-or-'--outFile'-is-specified.js @@ -16,7 +16,12 @@ interface GlobalFoo { age: number } export var Foo4 = 10; //// [/a/b/tsconfig.json] -{"compilerOptions":{"module":"system","outFile":"/a/b/out.js"}} +{ + "compilerOptions": { + "module": "system", + "outFile": "/a/b/out.js" + } +} //// [/a/lib/lib.d.ts] /// @@ -41,8 +46,20 @@ Output:: -Program root files: ["/a/b/file1Consumer1.ts","/a/b/file1Consumer2.ts","/a/b/globalFile3.ts","/a/b/moduleFile1.ts","/a/b/moduleFile2.ts"] -Program options: {"module":4,"outFile":"/a/b/out.js","watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/file1Consumer1.ts", + "/a/b/file1Consumer2.ts", + "/a/b/globalFile3.ts", + "/a/b/moduleFile1.ts", + "/a/b/moduleFile2.ts" +] +Program options: { + "module": 4, + "outFile": "/a/b/out.js", + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -145,8 +162,20 @@ Output:: -Program root files: ["/a/b/file1Consumer1.ts","/a/b/file1Consumer2.ts","/a/b/globalFile3.ts","/a/b/moduleFile1.ts","/a/b/moduleFile2.ts"] -Program options: {"module":4,"outFile":"/a/b/out.js","watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/file1Consumer1.ts", + "/a/b/file1Consumer2.ts", + "/a/b/globalFile3.ts", + "/a/b/moduleFile1.ts", + "/a/b/moduleFile2.ts" +] +Program options: { + "module": 4, + "outFile": "/a/b/out.js", + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emit/emit-for-configured-projects/should-be-up-to-date-with-deleted-files.js b/tests/baselines/reference/tscWatch/emit/emit-for-configured-projects/should-be-up-to-date-with-deleted-files.js index e5a6c7552c417..c9ed34aa13810 100644 --- a/tests/baselines/reference/tscWatch/emit/emit-for-configured-projects/should-be-up-to-date-with-deleted-files.js +++ b/tests/baselines/reference/tscWatch/emit/emit-for-configured-projects/should-be-up-to-date-with-deleted-files.js @@ -41,8 +41,18 @@ Output:: -Program root files: ["/a/b/file1Consumer1.ts","/a/b/file1Consumer2.ts","/a/b/globalFile3.ts","/a/b/moduleFile1.ts","/a/b/moduleFile2.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/file1Consumer1.ts", + "/a/b/file1Consumer2.ts", + "/a/b/globalFile3.ts", + "/a/b/moduleFile1.ts", + "/a/b/moduleFile2.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -142,8 +152,17 @@ Output:: -Program root files: ["/a/b/file1Consumer1.ts","/a/b/globalFile3.ts","/a/b/moduleFile1.ts","/a/b/moduleFile2.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/file1Consumer1.ts", + "/a/b/globalFile3.ts", + "/a/b/moduleFile1.ts", + "/a/b/moduleFile2.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emit/emit-for-configured-projects/should-be-up-to-date-with-newly-created-files.js b/tests/baselines/reference/tscWatch/emit/emit-for-configured-projects/should-be-up-to-date-with-newly-created-files.js index 0fb2970c96fd8..1085af7d4b351 100644 --- a/tests/baselines/reference/tscWatch/emit/emit-for-configured-projects/should-be-up-to-date-with-newly-created-files.js +++ b/tests/baselines/reference/tscWatch/emit/emit-for-configured-projects/should-be-up-to-date-with-newly-created-files.js @@ -41,8 +41,18 @@ Output:: -Program root files: ["/a/b/file1Consumer1.ts","/a/b/file1Consumer2.ts","/a/b/globalFile3.ts","/a/b/moduleFile1.ts","/a/b/moduleFile2.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/file1Consumer1.ts", + "/a/b/file1Consumer2.ts", + "/a/b/globalFile3.ts", + "/a/b/moduleFile1.ts", + "/a/b/moduleFile2.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -144,8 +154,19 @@ Output:: -Program root files: ["/a/b/file1Consumer1.ts","/a/b/file1Consumer2.ts","/a/b/file1Consumer3.ts","/a/b/globalFile3.ts","/a/b/moduleFile1.ts","/a/b/moduleFile2.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/file1Consumer1.ts", + "/a/b/file1Consumer2.ts", + "/a/b/file1Consumer3.ts", + "/a/b/globalFile3.ts", + "/a/b/moduleFile1.ts", + "/a/b/moduleFile2.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emit/emit-for-configured-projects/should-be-up-to-date-with-the-reference-map-changes.js b/tests/baselines/reference/tscWatch/emit/emit-for-configured-projects/should-be-up-to-date-with-the-reference-map-changes.js index b7866df086921..2891c78f30a37 100644 --- a/tests/baselines/reference/tscWatch/emit/emit-for-configured-projects/should-be-up-to-date-with-the-reference-map-changes.js +++ b/tests/baselines/reference/tscWatch/emit/emit-for-configured-projects/should-be-up-to-date-with-the-reference-map-changes.js @@ -41,8 +41,18 @@ Output:: -Program root files: ["/a/b/file1Consumer1.ts","/a/b/file1Consumer2.ts","/a/b/globalFile3.ts","/a/b/moduleFile1.ts","/a/b/moduleFile2.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/file1Consumer1.ts", + "/a/b/file1Consumer2.ts", + "/a/b/globalFile3.ts", + "/a/b/moduleFile1.ts", + "/a/b/moduleFile2.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -146,8 +156,18 @@ Output:: -Program root files: ["/a/b/file1Consumer1.ts","/a/b/file1Consumer2.ts","/a/b/globalFile3.ts","/a/b/moduleFile1.ts","/a/b/moduleFile2.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/file1Consumer1.ts", + "/a/b/file1Consumer2.ts", + "/a/b/globalFile3.ts", + "/a/b/moduleFile1.ts", + "/a/b/moduleFile2.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts @@ -196,8 +216,18 @@ Output:: -Program root files: ["/a/b/file1Consumer1.ts","/a/b/file1Consumer2.ts","/a/b/globalFile3.ts","/a/b/moduleFile1.ts","/a/b/moduleFile2.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/file1Consumer1.ts", + "/a/b/file1Consumer2.ts", + "/a/b/globalFile3.ts", + "/a/b/moduleFile1.ts", + "/a/b/moduleFile2.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -246,8 +276,18 @@ Output:: -Program root files: ["/a/b/file1Consumer1.ts","/a/b/file1Consumer2.ts","/a/b/globalFile3.ts","/a/b/moduleFile1.ts","/a/b/moduleFile2.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/file1Consumer1.ts", + "/a/b/file1Consumer2.ts", + "/a/b/globalFile3.ts", + "/a/b/moduleFile1.ts", + "/a/b/moduleFile2.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts @@ -306,8 +346,18 @@ Output:: -Program root files: ["/a/b/file1Consumer1.ts","/a/b/file1Consumer2.ts","/a/b/globalFile3.ts","/a/b/moduleFile1.ts","/a/b/moduleFile2.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/file1Consumer1.ts", + "/a/b/file1Consumer2.ts", + "/a/b/globalFile3.ts", + "/a/b/moduleFile1.ts", + "/a/b/moduleFile2.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -358,8 +408,18 @@ Output:: -Program root files: ["/a/b/file1Consumer1.ts","/a/b/file1Consumer2.ts","/a/b/globalFile3.ts","/a/b/moduleFile1.ts","/a/b/moduleFile2.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/file1Consumer1.ts", + "/a/b/file1Consumer2.ts", + "/a/b/globalFile3.ts", + "/a/b/moduleFile1.ts", + "/a/b/moduleFile2.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emit/emit-for-configured-projects/should-contains-only-itself-if-a-module-file's-shape-didn't-change,-and-all-files-referencing-it-if-its-shape-changed.js b/tests/baselines/reference/tscWatch/emit/emit-for-configured-projects/should-contains-only-itself-if-a-module-file's-shape-didn't-change,-and-all-files-referencing-it-if-its-shape-changed.js index a2fdbd6b7ecee..dde07cc2a7f0c 100644 --- a/tests/baselines/reference/tscWatch/emit/emit-for-configured-projects/should-contains-only-itself-if-a-module-file's-shape-didn't-change,-and-all-files-referencing-it-if-its-shape-changed.js +++ b/tests/baselines/reference/tscWatch/emit/emit-for-configured-projects/should-contains-only-itself-if-a-module-file's-shape-didn't-change,-and-all-files-referencing-it-if-its-shape-changed.js @@ -41,8 +41,18 @@ Output:: -Program root files: ["/a/b/file1Consumer1.ts","/a/b/file1Consumer2.ts","/a/b/globalFile3.ts","/a/b/moduleFile1.ts","/a/b/moduleFile2.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/file1Consumer1.ts", + "/a/b/file1Consumer2.ts", + "/a/b/globalFile3.ts", + "/a/b/moduleFile1.ts", + "/a/b/moduleFile2.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -141,8 +151,18 @@ Output:: -Program root files: ["/a/b/file1Consumer1.ts","/a/b/file1Consumer2.ts","/a/b/globalFile3.ts","/a/b/moduleFile1.ts","/a/b/moduleFile2.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/file1Consumer1.ts", + "/a/b/file1Consumer2.ts", + "/a/b/globalFile3.ts", + "/a/b/moduleFile1.ts", + "/a/b/moduleFile2.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -199,8 +219,18 @@ Output:: -Program root files: ["/a/b/file1Consumer1.ts","/a/b/file1Consumer2.ts","/a/b/globalFile3.ts","/a/b/moduleFile1.ts","/a/b/moduleFile2.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/file1Consumer1.ts", + "/a/b/file1Consumer2.ts", + "/a/b/globalFile3.ts", + "/a/b/moduleFile1.ts", + "/a/b/moduleFile2.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emit/emit-for-configured-projects/should-detect-changes-in-non-root-files.js b/tests/baselines/reference/tscWatch/emit/emit-for-configured-projects/should-detect-changes-in-non-root-files.js index 141d77ae66718..9659a899e816e 100644 --- a/tests/baselines/reference/tscWatch/emit/emit-for-configured-projects/should-detect-changes-in-non-root-files.js +++ b/tests/baselines/reference/tscWatch/emit/emit-for-configured-projects/should-detect-changes-in-non-root-files.js @@ -16,7 +16,11 @@ interface GlobalFoo { age: number } export var Foo4 = 10; //// [/a/b/tsconfig.json] -{"files":["/a/b/file1Consumer1.ts"]} +{ + "files": [ + "/a/b/file1Consumer1.ts" + ] +} //// [/a/lib/lib.d.ts] /// @@ -41,8 +45,14 @@ Output:: -Program root files: ["/a/b/file1Consumer1.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/file1Consumer1.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -106,8 +116,14 @@ Output:: -Program root files: ["/a/b/file1Consumer1.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/file1Consumer1.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -153,8 +169,14 @@ Output:: -Program root files: ["/a/b/file1Consumer1.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/file1Consumer1.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emit/emit-for-configured-projects/should-detect-non-existing-code-file.js b/tests/baselines/reference/tscWatch/emit/emit-for-configured-projects/should-detect-non-existing-code-file.js index c6ba6ca578f49..846b9aa1d9499 100644 --- a/tests/baselines/reference/tscWatch/emit/emit-for-configured-projects/should-detect-non-existing-code-file.js +++ b/tests/baselines/reference/tscWatch/emit/emit-for-configured-projects/should-detect-non-existing-code-file.js @@ -40,8 +40,14 @@ Output:: -Program root files: ["/a/b/referenceFile1.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/referenceFile1.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -116,8 +122,14 @@ Output:: -Program root files: ["/a/b/referenceFile1.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/referenceFile1.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -185,8 +197,15 @@ Output:: -Program root files: ["/a/b/moduleFile2.ts","/a/b/referenceFile1.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/moduleFile2.ts", + "/a/b/referenceFile1.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emit/emit-for-configured-projects/should-detect-removed-code-file.js b/tests/baselines/reference/tscWatch/emit/emit-for-configured-projects/should-detect-removed-code-file.js index c3872f2b08a03..53f4a6ecc314c 100644 --- a/tests/baselines/reference/tscWatch/emit/emit-for-configured-projects/should-detect-removed-code-file.js +++ b/tests/baselines/reference/tscWatch/emit/emit-for-configured-projects/should-detect-removed-code-file.js @@ -38,8 +38,15 @@ Output:: -Program root files: ["/a/b/moduleFile1.ts","/a/b/referenceFile1.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/moduleFile1.ts", + "/a/b/referenceFile1.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -116,8 +123,14 @@ Output:: -Program root files: ["/a/b/referenceFile1.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/referenceFile1.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emit/emit-for-configured-projects/should-return-all-files-if-a-global-file-changed-shape.js b/tests/baselines/reference/tscWatch/emit/emit-for-configured-projects/should-return-all-files-if-a-global-file-changed-shape.js index 8b9f958ff346f..9a32d9ca6bed4 100644 --- a/tests/baselines/reference/tscWatch/emit/emit-for-configured-projects/should-return-all-files-if-a-global-file-changed-shape.js +++ b/tests/baselines/reference/tscWatch/emit/emit-for-configured-projects/should-return-all-files-if-a-global-file-changed-shape.js @@ -41,8 +41,18 @@ Output:: -Program root files: ["/a/b/file1Consumer1.ts","/a/b/file1Consumer2.ts","/a/b/globalFile3.ts","/a/b/moduleFile1.ts","/a/b/moduleFile2.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/file1Consumer1.ts", + "/a/b/file1Consumer2.ts", + "/a/b/globalFile3.ts", + "/a/b/moduleFile1.ts", + "/a/b/moduleFile2.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -141,8 +151,18 @@ Output:: -Program root files: ["/a/b/file1Consumer1.ts","/a/b/file1Consumer2.ts","/a/b/globalFile3.ts","/a/b/moduleFile1.ts","/a/b/moduleFile2.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/file1Consumer1.ts", + "/a/b/file1Consumer2.ts", + "/a/b/globalFile3.ts", + "/a/b/moduleFile1.ts", + "/a/b/moduleFile2.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emit/emit-for-configured-projects/should-return-cascaded-affected-file-list.js b/tests/baselines/reference/tscWatch/emit/emit-for-configured-projects/should-return-cascaded-affected-file-list.js index 7fb05f724819a..9d3b3a927abc6 100644 --- a/tests/baselines/reference/tscWatch/emit/emit-for-configured-projects/should-return-cascaded-affected-file-list.js +++ b/tests/baselines/reference/tscWatch/emit/emit-for-configured-projects/should-return-cascaded-affected-file-list.js @@ -44,8 +44,19 @@ Output:: -Program root files: ["/a/b/file1Consumer1.ts","/a/b/file1Consumer1Consumer1.ts","/a/b/file1Consumer2.ts","/a/b/globalFile3.ts","/a/b/moduleFile1.ts","/a/b/moduleFile2.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/file1Consumer1.ts", + "/a/b/file1Consumer1Consumer1.ts", + "/a/b/file1Consumer2.ts", + "/a/b/globalFile3.ts", + "/a/b/moduleFile1.ts", + "/a/b/moduleFile2.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -154,8 +165,19 @@ Output:: -Program root files: ["/a/b/file1Consumer1.ts","/a/b/file1Consumer1Consumer1.ts","/a/b/file1Consumer2.ts","/a/b/globalFile3.ts","/a/b/moduleFile1.ts","/a/b/moduleFile2.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/file1Consumer1.ts", + "/a/b/file1Consumer1Consumer1.ts", + "/a/b/file1Consumer2.ts", + "/a/b/globalFile3.ts", + "/a/b/moduleFile1.ts", + "/a/b/moduleFile2.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -203,8 +225,19 @@ Output:: -Program root files: ["/a/b/file1Consumer1.ts","/a/b/file1Consumer1Consumer1.ts","/a/b/file1Consumer2.ts","/a/b/globalFile3.ts","/a/b/moduleFile1.ts","/a/b/moduleFile2.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/file1Consumer1.ts", + "/a/b/file1Consumer1Consumer1.ts", + "/a/b/file1Consumer2.ts", + "/a/b/globalFile3.ts", + "/a/b/moduleFile1.ts", + "/a/b/moduleFile2.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -260,8 +293,19 @@ Output:: -Program root files: ["/a/b/file1Consumer1.ts","/a/b/file1Consumer1Consumer1.ts","/a/b/file1Consumer2.ts","/a/b/globalFile3.ts","/a/b/moduleFile1.ts","/a/b/moduleFile2.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/file1Consumer1.ts", + "/a/b/file1Consumer1Consumer1.ts", + "/a/b/file1Consumer2.ts", + "/a/b/globalFile3.ts", + "/a/b/moduleFile1.ts", + "/a/b/moduleFile2.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emit/emit-for-configured-projects/should-work-fine-for-files-with-circular-references.js b/tests/baselines/reference/tscWatch/emit/emit-for-configured-projects/should-work-fine-for-files-with-circular-references.js index f97dbdb45d616..8a0dfe3868452 100644 --- a/tests/baselines/reference/tscWatch/emit/emit-for-configured-projects/should-work-fine-for-files-with-circular-references.js +++ b/tests/baselines/reference/tscWatch/emit/emit-for-configured-projects/should-work-fine-for-files-with-circular-references.js @@ -34,8 +34,15 @@ Output:: -Program root files: ["/a/b/file1.ts","/a/b/file2.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/file1.ts", + "/a/b/file2.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -104,8 +111,15 @@ Output:: -Program root files: ["/a/b/file1.ts","/a/b/file2.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/file1.ts", + "/a/b/file2.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emit/emit-with-outFile-or-out-setting/config-does-not-have-out-or-outFile.js b/tests/baselines/reference/tscWatch/emit/emit-with-outFile-or-out-setting/config-does-not-have-out-or-outFile.js index 13fdb875070c6..efcb01513ef41 100644 --- a/tests/baselines/reference/tscWatch/emit/emit-with-outFile-or-out-setting/config-does-not-have-out-or-outFile.js +++ b/tests/baselines/reference/tscWatch/emit/emit-with-outFile-or-out-setting/config-does-not-have-out-or-outFile.js @@ -7,7 +7,9 @@ let x = 1 let y = 1 //// [/a/tsconfig.json] -{"compilerOptions":{}} +{ + "compilerOptions": {} +} //// [/a/lib/lib.d.ts] /// @@ -32,8 +34,16 @@ Output:: -Program root files: ["/a/a.ts","/a/b.ts","/a/lib/lib.d.ts"] -Program options: {"watch":true,"project":"/a/tsconfig.json","configFilePath":"/a/tsconfig.json"} +Program root files: [ + "/a/a.ts", + "/a/b.ts", + "/a/lib/lib.d.ts" +] +Program options: { + "watch": true, + "project": "/a/tsconfig.json", + "configFilePath": "/a/tsconfig.json" +} Program structureReused: Not Program files:: /a/a.ts @@ -93,8 +103,16 @@ Output:: -Program root files: ["/a/a.ts","/a/b.ts","/a/lib/lib.d.ts"] -Program options: {"watch":true,"project":"/a/tsconfig.json","configFilePath":"/a/tsconfig.json"} +Program root files: [ + "/a/a.ts", + "/a/b.ts", + "/a/lib/lib.d.ts" +] +Program options: { + "watch": true, + "project": "/a/tsconfig.json", + "configFilePath": "/a/tsconfig.json" +} Program structureReused: Completely Program files:: /a/a.ts @@ -136,8 +154,16 @@ Output:: -Program root files: ["/a/a.ts","/a/b.ts","/a/lib/lib.d.ts"] -Program options: {"watch":true,"project":"/a/tsconfig.json","configFilePath":"/a/tsconfig.json"} +Program root files: [ + "/a/a.ts", + "/a/b.ts", + "/a/lib/lib.d.ts" +] +Program options: { + "watch": true, + "project": "/a/tsconfig.json", + "configFilePath": "/a/tsconfig.json" +} Program structureReused: Completely Program files:: /a/a.ts diff --git a/tests/baselines/reference/tscWatch/emit/emit-with-outFile-or-out-setting/config-has-out.js b/tests/baselines/reference/tscWatch/emit/emit-with-outFile-or-out-setting/config-has-out.js index 971d39fbf23a7..e9d628fd77537 100644 --- a/tests/baselines/reference/tscWatch/emit/emit-with-outFile-or-out-setting/config-has-out.js +++ b/tests/baselines/reference/tscWatch/emit/emit-with-outFile-or-out-setting/config-has-out.js @@ -7,7 +7,11 @@ let x = 1 let y = 1 //// [/a/tsconfig.json] -{"compilerOptions":{"out":"/a/out.js"}} +{ + "compilerOptions": { + "out": "/a/out.js" + } +} //// [/a/lib/lib.d.ts] /// @@ -28,18 +32,27 @@ Output:: >> Screen clear [12:00:15 AM] Starting compilation in watch mode... -a/tsconfig.json:1:21 - error TS5101: Option 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '"ignoreDeprecations": "5.0"' to silence this error. +a/tsconfig.json:3:5 - error TS5101: Option 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '"ignoreDeprecations": "5.0"' to silence this error. Use 'outFile' instead. -1 {"compilerOptions":{"out":"/a/out.js"}} -   ~~~~~ +3 "out": "/a/out.js" +   ~~~~~ [12:00:18 AM] Found 1 error. Watching for file changes. -Program root files: ["/a/a.ts","/a/b.ts","/a/lib/lib.d.ts"] -Program options: {"out":"/a/out.js","watch":true,"project":"/a/tsconfig.json","configFilePath":"/a/tsconfig.json"} +Program root files: [ + "/a/a.ts", + "/a/b.ts", + "/a/lib/lib.d.ts" +] +Program options: { + "out": "/a/out.js", + "watch": true, + "project": "/a/tsconfig.json", + "configFilePath": "/a/tsconfig.json" +} Program structureReused: Not Program files:: /a/a.ts @@ -86,18 +99,27 @@ Output:: >> Screen clear [12:00:22 AM] File change detected. Starting incremental compilation... -a/tsconfig.json:1:21 - error TS5101: Option 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '"ignoreDeprecations": "5.0"' to silence this error. +a/tsconfig.json:3:5 - error TS5101: Option 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '"ignoreDeprecations": "5.0"' to silence this error. Use 'outFile' instead. -1 {"compilerOptions":{"out":"/a/out.js"}} -   ~~~~~ +3 "out": "/a/out.js" +   ~~~~~ [12:00:26 AM] Found 1 error. Watching for file changes. -Program root files: ["/a/a.ts","/a/b.ts","/a/lib/lib.d.ts"] -Program options: {"out":"/a/out.js","watch":true,"project":"/a/tsconfig.json","configFilePath":"/a/tsconfig.json"} +Program root files: [ + "/a/a.ts", + "/a/b.ts", + "/a/lib/lib.d.ts" +] +Program options: { + "out": "/a/out.js", + "watch": true, + "project": "/a/tsconfig.json", + "configFilePath": "/a/tsconfig.json" +} Program structureReused: Completely Program files:: /a/a.ts @@ -130,18 +152,27 @@ Output:: >> Screen clear [12:00:30 AM] File change detected. Starting incremental compilation... -a/tsconfig.json:1:21 - error TS5101: Option 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '"ignoreDeprecations": "5.0"' to silence this error. +a/tsconfig.json:3:5 - error TS5101: Option 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '"ignoreDeprecations": "5.0"' to silence this error. Use 'outFile' instead. -1 {"compilerOptions":{"out":"/a/out.js"}} -   ~~~~~ +3 "out": "/a/out.js" +   ~~~~~ [12:00:34 AM] Found 1 error. Watching for file changes. -Program root files: ["/a/a.ts","/a/b.ts","/a/lib/lib.d.ts"] -Program options: {"out":"/a/out.js","watch":true,"project":"/a/tsconfig.json","configFilePath":"/a/tsconfig.json"} +Program root files: [ + "/a/a.ts", + "/a/b.ts", + "/a/lib/lib.d.ts" +] +Program options: { + "out": "/a/out.js", + "watch": true, + "project": "/a/tsconfig.json", + "configFilePath": "/a/tsconfig.json" +} Program structureReused: Completely Program files:: /a/a.ts diff --git a/tests/baselines/reference/tscWatch/emit/emit-with-outFile-or-out-setting/config-has-outFile.js b/tests/baselines/reference/tscWatch/emit/emit-with-outFile-or-out-setting/config-has-outFile.js index 778eba542faa9..ad688f9cdea5c 100644 --- a/tests/baselines/reference/tscWatch/emit/emit-with-outFile-or-out-setting/config-has-outFile.js +++ b/tests/baselines/reference/tscWatch/emit/emit-with-outFile-or-out-setting/config-has-outFile.js @@ -7,7 +7,11 @@ let x = 1 let y = 1 //// [/a/tsconfig.json] -{"compilerOptions":{"outFile":"/a/out.js"}} +{ + "compilerOptions": { + "outFile": "/a/out.js" + } +} //// [/a/lib/lib.d.ts] /// @@ -32,8 +36,17 @@ Output:: -Program root files: ["/a/a.ts","/a/b.ts","/a/lib/lib.d.ts"] -Program options: {"outFile":"/a/out.js","watch":true,"project":"/a/tsconfig.json","configFilePath":"/a/tsconfig.json"} +Program root files: [ + "/a/a.ts", + "/a/b.ts", + "/a/lib/lib.d.ts" +] +Program options: { + "outFile": "/a/out.js", + "watch": true, + "project": "/a/tsconfig.json", + "configFilePath": "/a/tsconfig.json" +} Program structureReused: Not Program files:: /a/a.ts @@ -84,8 +97,17 @@ Output:: -Program root files: ["/a/a.ts","/a/b.ts","/a/lib/lib.d.ts"] -Program options: {"outFile":"/a/out.js","watch":true,"project":"/a/tsconfig.json","configFilePath":"/a/tsconfig.json"} +Program root files: [ + "/a/a.ts", + "/a/b.ts", + "/a/lib/lib.d.ts" +] +Program options: { + "outFile": "/a/out.js", + "watch": true, + "project": "/a/tsconfig.json", + "configFilePath": "/a/tsconfig.json" +} Program structureReused: Completely Program files:: /a/a.ts @@ -122,8 +144,17 @@ Output:: -Program root files: ["/a/a.ts","/a/b.ts","/a/lib/lib.d.ts"] -Program options: {"outFile":"/a/out.js","watch":true,"project":"/a/tsconfig.json","configFilePath":"/a/tsconfig.json"} +Program root files: [ + "/a/a.ts", + "/a/b.ts", + "/a/lib/lib.d.ts" +] +Program options: { + "outFile": "/a/out.js", + "watch": true, + "project": "/a/tsconfig.json", + "configFilePath": "/a/tsconfig.json" +} Program structureReused: Completely Program files:: /a/a.ts diff --git a/tests/baselines/reference/tscWatch/emit/emit-with-outFile-or-out-setting/with---outFile-and-multiple-declaration-files-in-the-program.js b/tests/baselines/reference/tscWatch/emit/emit-with-outFile-or-out-setting/with---outFile-and-multiple-declaration-files-in-the-program.js index a4bc0546003f0..a4135fd5ec733 100644 --- a/tests/baselines/reference/tscWatch/emit/emit-with-outFile-or-out-setting/with---outFile-and-multiple-declaration-files-in-the-program.js +++ b/tests/baselines/reference/tscWatch/emit/emit-with-outFile-or-out-setting/with---outFile-and-multiple-declaration-files-in-the-program.js @@ -26,7 +26,18 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/a/b/project/tsconfig.json] -{"compilerOptions":{"outFile":"../output/common.js","target":"es5"},"files":["/a/b/output/AnotherDependency/file1.d.ts","/a/b/dependencies/file2.d.ts","/a/b/project/src/main.ts","/a/b/project/src/main2.ts"]} +{ + "compilerOptions": { + "outFile": "../output/common.js", + "target": "es5" + }, + "files": [ + "/a/b/output/AnotherDependency/file1.d.ts", + "/a/b/dependencies/file2.d.ts", + "/a/b/project/src/main.ts", + "/a/b/project/src/main2.ts" + ] +} /a/lib/tsc.js --w -p /a/b/project/tsconfig.json @@ -43,8 +54,19 @@ Output:: -Program root files: ["/a/b/output/AnotherDependency/file1.d.ts","/a/b/dependencies/file2.d.ts","/a/b/project/src/main.ts","/a/b/project/src/main2.ts"] -Program options: {"outFile":"/a/b/output/common.js","target":1,"watch":true,"project":"/a/b/project/tsconfig.json","configFilePath":"/a/b/project/tsconfig.json"} +Program root files: [ + "/a/b/output/AnotherDependency/file1.d.ts", + "/a/b/dependencies/file2.d.ts", + "/a/b/project/src/main.ts", + "/a/b/project/src/main2.ts" +] +Program options: { + "outFile": "/a/b/output/common.js", + "target": 1, + "watch": true, + "project": "/a/b/project/tsconfig.json", + "configFilePath": "/a/b/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emit/emit-with-outFile-or-out-setting/without---outFile-and-multiple-declaration-files-in-the-program.js b/tests/baselines/reference/tscWatch/emit/emit-with-outFile-or-out-setting/without---outFile-and-multiple-declaration-files-in-the-program.js index 3966eedbd1964..b7a8394bbceaa 100644 --- a/tests/baselines/reference/tscWatch/emit/emit-with-outFile-or-out-setting/without---outFile-and-multiple-declaration-files-in-the-program.js +++ b/tests/baselines/reference/tscWatch/emit/emit-with-outFile-or-out-setting/without---outFile-and-multiple-declaration-files-in-the-program.js @@ -26,7 +26,18 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/a/b/project/tsconfig.json] -{"compilerOptions":{"outDir":"../output","target":"es5"},"files":["/a/b/output/AnotherDependency/file1.d.ts","/a/b/dependencies/file2.d.ts","/a/b/project/src/main.ts","/a/b/project/src/main2.ts"]} +{ + "compilerOptions": { + "outDir": "../output", + "target": "es5" + }, + "files": [ + "/a/b/output/AnotherDependency/file1.d.ts", + "/a/b/dependencies/file2.d.ts", + "/a/b/project/src/main.ts", + "/a/b/project/src/main2.ts" + ] +} /a/lib/tsc.js --w -p /a/b/project/tsconfig.json @@ -43,8 +54,19 @@ Output:: -Program root files: ["/a/b/output/AnotherDependency/file1.d.ts","/a/b/dependencies/file2.d.ts","/a/b/project/src/main.ts","/a/b/project/src/main2.ts"] -Program options: {"outDir":"/a/b/output","target":1,"watch":true,"project":"/a/b/project/tsconfig.json","configFilePath":"/a/b/project/tsconfig.json"} +Program root files: [ + "/a/b/output/AnotherDependency/file1.d.ts", + "/a/b/dependencies/file2.d.ts", + "/a/b/project/src/main.ts", + "/a/b/project/src/main2.ts" +] +Program options: { + "outDir": "/a/b/output", + "target": 1, + "watch": true, + "project": "/a/b/project/tsconfig.json", + "configFilePath": "/a/b/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emit/when-module-emit-is-specified-as-node/when-instead-of-filechanged-recursive-directory-watcher-is-invoked.js b/tests/baselines/reference/tscWatch/emit/when-module-emit-is-specified-as-node/when-instead-of-filechanged-recursive-directory-watcher-is-invoked.js index 062971706bbe7..69e410ef9ac6b 100644 --- a/tests/baselines/reference/tscWatch/emit/when-module-emit-is-specified-as-node/when-instead-of-filechanged-recursive-directory-watcher-is-invoked.js +++ b/tests/baselines/reference/tscWatch/emit/when-module-emit-is-specified-as-node/when-instead-of-filechanged-recursive-directory-watcher-is-invoked.js @@ -1,7 +1,16 @@ currentDirectory:: / useCaseSensitiveFileNames: false Input:: //// [/a/rootFolder/project/tsconfig.json] -{"compilerOptions":{"module":"none","allowJs":true,"outDir":"Static/scripts/"},"include":["Scripts/**/*"]} +{ + "compilerOptions": { + "module": "none", + "allowJs": true, + "outDir": "Static/scripts/" + }, + "include": [ + "Scripts/**/*" + ] +} //// [/a/rootFolder/project/Scripts/TypeScript.ts] var z = 10; @@ -32,8 +41,18 @@ Output:: -Program root files: ["/a/rootFolder/project/Scripts/Javascript.js","/a/rootFolder/project/Scripts/TypeScript.ts"] -Program options: {"module":0,"allowJs":true,"outDir":"/a/rootFolder/project/Static/scripts","watch":true,"project":"/a/rootFolder/project/tsconfig.json","configFilePath":"/a/rootFolder/project/tsconfig.json"} +Program root files: [ + "/a/rootFolder/project/Scripts/Javascript.js", + "/a/rootFolder/project/Scripts/TypeScript.ts" +] +Program options: { + "module": 0, + "allowJs": true, + "outDir": "/a/rootFolder/project/Static/scripts", + "watch": true, + "project": "/a/rootFolder/project/tsconfig.json", + "configFilePath": "/a/rootFolder/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -97,8 +116,18 @@ Output:: -Program root files: ["/a/rootFolder/project/Scripts/Javascript.js","/a/rootFolder/project/Scripts/TypeScript.ts"] -Program options: {"module":0,"allowJs":true,"outDir":"/a/rootFolder/project/Static/scripts","watch":true,"project":"/a/rootFolder/project/tsconfig.json","configFilePath":"/a/rootFolder/project/tsconfig.json"} +Program root files: [ + "/a/rootFolder/project/Scripts/Javascript.js", + "/a/rootFolder/project/Scripts/TypeScript.ts" +] +Program options: { + "module": 0, + "allowJs": true, + "outDir": "/a/rootFolder/project/Static/scripts", + "watch": true, + "project": "/a/rootFolder/project/tsconfig.json", + "configFilePath": "/a/rootFolder/project/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/deepImportChanges/errors-for-.d.ts-change-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/deepImportChanges/errors-for-.d.ts-change-with-incremental.js index e7a01398a3e67..5b5d7bafd0458 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/deepImportChanges/errors-for-.d.ts-change-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/deepImportChanges/errors-for-.d.ts-change-with-incremental.js @@ -45,8 +45,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.d.ts","/user/username/projects/myproject/c.d.ts"] -Program options: {"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.d.ts", + "/user/username/projects/myproject/c.d.ts" +] +Program options: { + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -209,8 +218,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.d.ts","/user/username/projects/myproject/c.d.ts"] -Program options: {"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.d.ts", + "/user/username/projects/myproject/c.d.ts" +] +Program options: { + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -336,8 +354,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.d.ts","/user/username/projects/myproject/c.d.ts"] -Program options: {"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.d.ts", + "/user/username/projects/myproject/c.d.ts" +] +Program options: { + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -463,8 +490,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.d.ts","/user/username/projects/myproject/c.d.ts"] -Program options: {"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.d.ts", + "/user/username/projects/myproject/c.d.ts" +] +Program options: { + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/deepImportChanges/errors-for-.d.ts-change.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/deepImportChanges/errors-for-.d.ts-change.js index c443c49bab0b8..f3ff9c1add8f6 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/deepImportChanges/errors-for-.d.ts-change.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/deepImportChanges/errors-for-.d.ts-change.js @@ -45,8 +45,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.d.ts","/user/username/projects/myproject/c.d.ts"] -Program options: {"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.d.ts", + "/user/username/projects/myproject/c.d.ts" +] +Program options: { + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -122,8 +130,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.d.ts","/user/username/projects/myproject/c.d.ts"] -Program options: {"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.d.ts", + "/user/username/projects/myproject/c.d.ts" +] +Program options: { + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -163,8 +179,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.d.ts","/user/username/projects/myproject/c.d.ts"] -Program options: {"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.d.ts", + "/user/username/projects/myproject/c.d.ts" +] +Program options: { + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -204,8 +228,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.d.ts","/user/username/projects/myproject/c.d.ts"] -Program options: {"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.d.ts", + "/user/username/projects/myproject/c.d.ts" +] +Program options: { + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/deepImportChanges/errors-for-.ts-change-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/deepImportChanges/errors-for-.ts-change-with-incremental.js index 21fce9a4b81e5..d90f233f93098 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/deepImportChanges/errors-for-.ts-change-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/deepImportChanges/errors-for-.ts-change-with-incremental.js @@ -45,8 +45,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts"] -Program options: {"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts" +] +Program options: { + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -238,8 +247,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts"] -Program options: {"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts" +] +Program options: { + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -408,8 +426,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts"] -Program options: {"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts" +] +Program options: { + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -575,8 +602,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts"] -Program options: {"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts" +] +Program options: { + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/deepImportChanges/errors-for-.ts-change.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/deepImportChanges/errors-for-.ts-change.js index 6f60110ec93af..833d4d13f306e 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/deepImportChanges/errors-for-.ts-change.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/deepImportChanges/errors-for-.ts-change.js @@ -45,8 +45,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts"] -Program options: {"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts" +] +Program options: { + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -152,8 +160,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts"] -Program options: {"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts" +] +Program options: { + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -215,8 +231,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts"] -Program options: {"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts" +] +Program options: { + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -275,8 +299,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts"] -Program options: {"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts" +] +Program options: { + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/file-not-exporting-a-deep-multilevel-import-that-changes-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/file-not-exporting-a-deep-multilevel-import-that-changes-with-incremental.js index becf1c637f0f0..a6d12d666c8c1 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/file-not-exporting-a-deep-multilevel-import-that-changes-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/file-not-exporting-a-deep-multilevel-import-that-changes-with-incremental.js @@ -75,8 +75,19 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts","/user/username/projects/myproject/d.ts","/user/username/projects/myproject/e.ts"] -Program options: {"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts", + "/user/username/projects/myproject/d.ts", + "/user/username/projects/myproject/e.ts" +] +Program options: { + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -348,8 +359,19 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts","/user/username/projects/myproject/d.ts","/user/username/projects/myproject/e.ts"] -Program options: {"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts", + "/user/username/projects/myproject/d.ts", + "/user/username/projects/myproject/e.ts" +] +Program options: { + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -541,8 +563,19 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts","/user/username/projects/myproject/d.ts","/user/username/projects/myproject/e.ts"] -Program options: {"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts", + "/user/username/projects/myproject/d.ts", + "/user/username/projects/myproject/e.ts" +] +Program options: { + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -725,8 +758,19 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts","/user/username/projects/myproject/d.ts","/user/username/projects/myproject/e.ts"] -Program options: {"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts", + "/user/username/projects/myproject/d.ts", + "/user/username/projects/myproject/e.ts" +] +Program options: { + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/file-not-exporting-a-deep-multilevel-import-that-changes.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/file-not-exporting-a-deep-multilevel-import-that-changes.js index 76ac5320e237b..bfd66d907aa30 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/file-not-exporting-a-deep-multilevel-import-that-changes.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/file-not-exporting-a-deep-multilevel-import-that-changes.js @@ -75,8 +75,18 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts","/user/username/projects/myproject/d.ts","/user/username/projects/myproject/e.ts"] -Program options: {"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts", + "/user/username/projects/myproject/d.ts", + "/user/username/projects/myproject/e.ts" +] +Program options: { + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -196,8 +206,18 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts","/user/username/projects/myproject/d.ts","/user/username/projects/myproject/e.ts"] -Program options: {"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts", + "/user/username/projects/myproject/d.ts", + "/user/username/projects/myproject/e.ts" +] +Program options: { + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -254,8 +274,18 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts","/user/username/projects/myproject/d.ts","/user/username/projects/myproject/e.ts"] -Program options: {"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts", + "/user/username/projects/myproject/d.ts", + "/user/username/projects/myproject/e.ts" +] +Program options: { + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -303,8 +333,18 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts","/user/username/projects/myproject/d.ts","/user/username/projects/myproject/e.ts"] -Program options: {"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts", + "/user/username/projects/myproject/d.ts", + "/user/username/projects/myproject/e.ts" +] +Program options: { + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/transitive-exports/no-circular-import/export-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/transitive-exports/no-circular-import/export-with-incremental.js index 4b3663b983d82..cec1964bd62b1 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/transitive-exports/no-circular-import/export-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/transitive-exports/no-circular-import/export-with-incremental.js @@ -34,7 +34,14 @@ export class Data { } //// [/user/username/projects/myproject/tsconfig.json] -{"files":["app.ts"],"compilerOptions":{"baseUrl":"."}} +{ + "files": [ + "app.ts" + ], + "compilerOptions": { + "baseUrl": "." + } +} //// [/a/lib/lib.d.ts] /// @@ -59,8 +66,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -362,8 +377,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -581,8 +604,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -788,8 +819,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/transitive-exports/no-circular-import/export.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/transitive-exports/no-circular-import/export.js index d2141d0042e8b..3d228d2738865 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/transitive-exports/no-circular-import/export.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/transitive-exports/no-circular-import/export.js @@ -34,7 +34,14 @@ export class Data { } //// [/user/username/projects/myproject/tsconfig.json] -{"files":["app.ts"],"compilerOptions":{"baseUrl":"."}} +{ + "files": [ + "app.ts" + ], + "compilerOptions": { + "baseUrl": "." + } +} //// [/a/lib/lib.d.ts] /// @@ -59,8 +66,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -238,8 +252,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -300,8 +321,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -350,8 +378,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/transitive-exports/yes-circular-import/exports-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/transitive-exports/yes-circular-import/exports-with-incremental.js index 4ea0b9d378cce..8423e42d40817 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/transitive-exports/yes-circular-import/exports-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/transitive-exports/yes-circular-import/exports-with-incremental.js @@ -40,7 +40,14 @@ export class Data2 { } //// [/user/username/projects/myproject/tsconfig.json] -{"files":["app.ts"],"compilerOptions":{"baseUrl":"."}} +{ + "files": [ + "app.ts" + ], + "compilerOptions": { + "baseUrl": "." + } +} //// [/a/lib/lib.d.ts] /// @@ -65,8 +72,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -400,8 +415,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -642,8 +665,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -869,8 +900,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/transitive-exports/yes-circular-import/exports.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/transitive-exports/yes-circular-import/exports.js index c90910e598f07..19c2e61a7fbc3 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/transitive-exports/yes-circular-import/exports.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/transitive-exports/yes-circular-import/exports.js @@ -40,7 +40,14 @@ export class Data2 { } //// [/user/username/projects/myproject/tsconfig.json] -{"files":["app.ts"],"compilerOptions":{"baseUrl":"."}} +{ + "files": [ + "app.ts" + ], + "compilerOptions": { + "baseUrl": "." + } +} //// [/a/lib/lib.d.ts] /// @@ -65,8 +72,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -261,8 +275,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -327,8 +348,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -378,8 +406,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/with-noEmitOnError-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/with-noEmitOnError-with-incremental.js index a301f54b480f2..a9c9e451b06f7 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/with-noEmitOnError-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/with-noEmitOnError-with-incremental.js @@ -1,27 +1,29 @@ currentDirectory:: /user/username/projects/noEmitOnError useCaseSensitiveFileNames: false Input:: -//// [/user/username/projects/noEmitOnError/shared/types/db.ts] -export interface A { - name: string; +//// [/user/username/projects/noEmitOnError/tsconfig.json] +{ + "compilerOptions": { + "outDir": "./dev-build", + "noEmitOnError": true + } } +//// [/user/username/projects/noEmitOnError/shared/types/db.ts] +export interface A { + name: string; +} + + //// [/user/username/projects/noEmitOnError/src/main.ts] -import { A } from "../shared/types/db"; -const a = { - lastName: 'sdsd' -; +import { A } from "../shared/types/db"; +const a = { + lastName: 'sdsd' +; -//// [/user/username/projects/noEmitOnError/src/other.ts] -console.log("hi"); -export { } -//// [/user/username/projects/noEmitOnError/tsconfig.json] -{ - "compilerOptions": { - "outDir": "./dev-build", - "noEmitOnError": true - } -} +//// [/user/username/projects/noEmitOnError/src/other.ts] +console.log("hi"); +export { } //// [/a/lib/lib.d.ts] @@ -54,8 +56,19 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"incremental":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "incremental": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -100,7 +113,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-9621097780-export interface A {\r\n name: string;\r\n}","2626879346-import { A } from \"../shared/types/db\";\r\nconst a = {\r\n lastName: 'sdsd'\r\n;","11373096570-console.log(\"hi\");\r\nexport { }"],"root":[[2,4]],"options":{"assumeChangesOnlyAffectDirectDependencies":true,"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3,4],"affectedFilesPendingEmit":[2,3,4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-5014788164-export interface A {\n name: string;\n}\n","-2574607723-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;\n","9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"assumeChangesOnlyAffectDirectDependencies":true,"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3,4],"affectedFilesPendingEmit":[2,3,4]},"version":"FakeTSVersion"} //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -127,16 +140,16 @@ exitCode:: ExitStatus.undefined "affectsGlobalScope": true }, "../shared/types/db.ts": { - "version": "-9621097780-export interface A {\r\n name: string;\r\n}", - "signature": "-9621097780-export interface A {\r\n name: string;\r\n}" + "version": "-5014788164-export interface A {\n name: string;\n}\n", + "signature": "-5014788164-export interface A {\n name: string;\n}\n" }, "../src/main.ts": { - "version": "2626879346-import { A } from \"../shared/types/db\";\r\nconst a = {\r\n lastName: 'sdsd'\r\n;", - "signature": "2626879346-import { A } from \"../shared/types/db\";\r\nconst a = {\r\n lastName: 'sdsd'\r\n;" + "version": "-2574607723-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;\n", + "signature": "-2574607723-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;\n" }, "../src/other.ts": { - "version": "11373096570-console.log(\"hi\");\r\nexport { }", - "signature": "11373096570-console.log(\"hi\");\r\nexport { }" + "version": "9084524823-console.log(\"hi\");\nexport { }\n", + "signature": "9084524823-console.log(\"hi\");\nexport { }\n" } }, "root": [ @@ -189,7 +202,7 @@ exitCode:: ExitStatus.undefined ] }, "version": "FakeTSVersion", - "size": 1104 + "size": 1098 } @@ -227,8 +240,19 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"incremental":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "incremental": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -245,7 +269,7 @@ Shape signatures in builder refreshed for:: exitCode:: ExitStatus.undefined //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-9621097780-export interface A {\r\n name: string;\r\n}",{"version":"-2574605496-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};","signature":"-3531856636-export {};\n"},"11373096570-console.log(\"hi\");\r\nexport { }"],"root":[[2,4]],"options":{"assumeChangesOnlyAffectDirectDependencies":true,"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-5014788164-export interface A {\n name: string;\n}\n",{"version":"-2574605496-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};","signature":"-3531856636-export {};\n"},"9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"assumeChangesOnlyAffectDirectDependencies":true,"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -272,8 +296,8 @@ exitCode:: ExitStatus.undefined "affectsGlobalScope": true }, "../shared/types/db.ts": { - "version": "-9621097780-export interface A {\r\n name: string;\r\n}", - "signature": "-9621097780-export interface A {\r\n name: string;\r\n}" + "version": "-5014788164-export interface A {\n name: string;\n}\n", + "signature": "-5014788164-export interface A {\n name: string;\n}\n" }, "../src/main.ts": { "original": { @@ -284,8 +308,8 @@ exitCode:: ExitStatus.undefined "signature": "-3531856636-export {};\n" }, "../src/other.ts": { - "version": "11373096570-console.log(\"hi\");\r\nexport { }", - "signature": "11373096570-console.log(\"hi\");\r\nexport { }" + "version": "9084524823-console.log(\"hi\");\nexport { }\n", + "signature": "9084524823-console.log(\"hi\");\nexport { }\n" } }, "root": [ @@ -320,7 +344,7 @@ exitCode:: ExitStatus.undefined ] }, "version": "FakeTSVersion", - "size": 1111 + "size": 1108 } //// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] @@ -367,8 +391,19 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"incremental":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "incremental": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -385,7 +420,7 @@ Shape signatures in builder refreshed for:: exitCode:: ExitStatus.undefined //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-9621097780-export interface A {\r\n name: string;\r\n}",{"version":"-11111345725-import { A } from \"../shared/types/db\";\nconst a: string = 10;","signature":"-3531856636-export {};\n"},"11373096570-console.log(\"hi\");\r\nexport { }"],"root":[[2,4]],"options":{"assumeChangesOnlyAffectDirectDependencies":true,"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"../src/main.ts","start":46,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]],4],"affectedFilesPendingEmit":[3]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-5014788164-export interface A {\n name: string;\n}\n",{"version":"-11111345725-import { A } from \"../shared/types/db\";\nconst a: string = 10;","signature":"-3531856636-export {};\n"},"9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"assumeChangesOnlyAffectDirectDependencies":true,"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"../src/main.ts","start":46,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]],4],"affectedFilesPendingEmit":[3]},"version":"FakeTSVersion"} //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -412,8 +447,8 @@ exitCode:: ExitStatus.undefined "affectsGlobalScope": true }, "../shared/types/db.ts": { - "version": "-9621097780-export interface A {\r\n name: string;\r\n}", - "signature": "-9621097780-export interface A {\r\n name: string;\r\n}" + "version": "-5014788164-export interface A {\n name: string;\n}\n", + "signature": "-5014788164-export interface A {\n name: string;\n}\n" }, "../src/main.ts": { "original": { @@ -424,8 +459,8 @@ exitCode:: ExitStatus.undefined "signature": "-3531856636-export {};\n" }, "../src/other.ts": { - "version": "11373096570-console.log(\"hi\");\r\nexport { }", - "signature": "11373096570-console.log(\"hi\");\r\nexport { }" + "version": "9084524823-console.log(\"hi\");\nexport { }\n", + "signature": "9084524823-console.log(\"hi\");\nexport { }\n" } }, "root": [ @@ -478,7 +513,7 @@ exitCode:: ExitStatus.undefined ] }, "version": "FakeTSVersion", - "size": 1270 + "size": 1267 } @@ -514,8 +549,19 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"incremental":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "incremental": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -532,7 +578,7 @@ Shape signatures in builder refreshed for:: exitCode:: ExitStatus.undefined //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-9621097780-export interface A {\r\n name: string;\r\n}",{"version":"-8373351622-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";","signature":"-3531856636-export {};\n"},"11373096570-console.log(\"hi\");\r\nexport { }"],"root":[[2,4]],"options":{"assumeChangesOnlyAffectDirectDependencies":true,"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-5014788164-export interface A {\n name: string;\n}\n",{"version":"-8373351622-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";","signature":"-3531856636-export {};\n"},"9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"assumeChangesOnlyAffectDirectDependencies":true,"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -559,8 +605,8 @@ exitCode:: ExitStatus.undefined "affectsGlobalScope": true }, "../shared/types/db.ts": { - "version": "-9621097780-export interface A {\r\n name: string;\r\n}", - "signature": "-9621097780-export interface A {\r\n name: string;\r\n}" + "version": "-5014788164-export interface A {\n name: string;\n}\n", + "signature": "-5014788164-export interface A {\n name: string;\n}\n" }, "../src/main.ts": { "original": { @@ -571,8 +617,8 @@ exitCode:: ExitStatus.undefined "signature": "-3531856636-export {};\n" }, "../src/other.ts": { - "version": "11373096570-console.log(\"hi\");\r\nexport { }", - "signature": "11373096570-console.log(\"hi\");\r\nexport { }" + "version": "9084524823-console.log(\"hi\");\nexport { }\n", + "signature": "9084524823-console.log(\"hi\");\nexport { }\n" } }, "root": [ @@ -607,7 +653,7 @@ exitCode:: ExitStatus.undefined ] }, "version": "FakeTSVersion", - "size": 1102 + "size": 1099 } //// [/user/username/projects/noEmitOnError/dev-build/src/main.js] diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/with-noEmitOnError.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/with-noEmitOnError.js index 17cbf7c76ad04..029100a010bad 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/with-noEmitOnError.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/with-noEmitOnError.js @@ -1,27 +1,29 @@ currentDirectory:: /user/username/projects/noEmitOnError useCaseSensitiveFileNames: false Input:: -//// [/user/username/projects/noEmitOnError/shared/types/db.ts] -export interface A { - name: string; +//// [/user/username/projects/noEmitOnError/tsconfig.json] +{ + "compilerOptions": { + "outDir": "./dev-build", + "noEmitOnError": true + } } +//// [/user/username/projects/noEmitOnError/shared/types/db.ts] +export interface A { + name: string; +} + + //// [/user/username/projects/noEmitOnError/src/main.ts] -import { A } from "../shared/types/db"; -const a = { - lastName: 'sdsd' -; +import { A } from "../shared/types/db"; +const a = { + lastName: 'sdsd' +; -//// [/user/username/projects/noEmitOnError/src/other.ts] -console.log("hi"); -export { } -//// [/user/username/projects/noEmitOnError/tsconfig.json] -{ - "compilerOptions": { - "outDir": "./dev-build", - "noEmitOnError": true - } -} +//// [/user/username/projects/noEmitOnError/src/other.ts] +console.log("hi"); +export { } //// [/a/lib/lib.d.ts] @@ -54,8 +56,18 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -134,8 +146,18 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -195,8 +217,18 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -245,8 +277,18 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/deepImportChanges/errors-for-.d.ts-change-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/deepImportChanges/errors-for-.d.ts-change-with-incremental.js index 358457410ffc9..56086ad1a901e 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/deepImportChanges/errors-for-.d.ts-change-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/deepImportChanges/errors-for-.d.ts-change-with-incremental.js @@ -45,8 +45,18 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.d.ts","/user/username/projects/myproject/c.d.ts"] -Program options: {"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.d.ts", + "/user/username/projects/myproject/c.d.ts" +] +Program options: { + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -215,8 +225,18 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.d.ts","/user/username/projects/myproject/c.d.ts"] -Program options: {"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.d.ts", + "/user/username/projects/myproject/c.d.ts" +] +Program options: { + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -344,8 +364,18 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.d.ts","/user/username/projects/myproject/c.d.ts"] -Program options: {"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.d.ts", + "/user/username/projects/myproject/c.d.ts" +] +Program options: { + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -473,8 +503,18 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.d.ts","/user/username/projects/myproject/c.d.ts"] -Program options: {"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.d.ts", + "/user/username/projects/myproject/c.d.ts" +] +Program options: { + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/deepImportChanges/errors-for-.d.ts-change.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/deepImportChanges/errors-for-.d.ts-change.js index 51a9838542c72..fbc7879a9be3d 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/deepImportChanges/errors-for-.d.ts-change.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/deepImportChanges/errors-for-.d.ts-change.js @@ -45,8 +45,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.d.ts","/user/username/projects/myproject/c.d.ts"] -Program options: {"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.d.ts", + "/user/username/projects/myproject/c.d.ts" +] +Program options: { + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -126,8 +135,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.d.ts","/user/username/projects/myproject/c.d.ts"] -Program options: {"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.d.ts", + "/user/username/projects/myproject/c.d.ts" +] +Program options: { + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -167,8 +185,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.d.ts","/user/username/projects/myproject/c.d.ts"] -Program options: {"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.d.ts", + "/user/username/projects/myproject/c.d.ts" +] +Program options: { + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -208,8 +235,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.d.ts","/user/username/projects/myproject/c.d.ts"] -Program options: {"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.d.ts", + "/user/username/projects/myproject/c.d.ts" +] +Program options: { + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/deepImportChanges/errors-for-.ts-change-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/deepImportChanges/errors-for-.ts-change-with-incremental.js index d1914768384bd..f4fd4c038906b 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/deepImportChanges/errors-for-.ts-change-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/deepImportChanges/errors-for-.ts-change-with-incremental.js @@ -45,8 +45,18 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts"] -Program options: {"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts" +] +Program options: { + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -260,8 +270,18 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts"] -Program options: {"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts" +] +Program options: { + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -418,8 +438,18 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts"] -Program options: {"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts" +] +Program options: { + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -576,8 +606,18 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts"] -Program options: {"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts" +] +Program options: { + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/deepImportChanges/errors-for-.ts-change.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/deepImportChanges/errors-for-.ts-change.js index d9d2741440266..b9f94a88cd8c8 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/deepImportChanges/errors-for-.ts-change.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/deepImportChanges/errors-for-.ts-change.js @@ -45,8 +45,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts"] -Program options: {"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts" +] +Program options: { + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -164,8 +173,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts"] -Program options: {"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts" +] +Program options: { + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -226,8 +244,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts"] -Program options: {"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts" +] +Program options: { + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -288,8 +315,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts"] -Program options: {"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts" +] +Program options: { + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/file-not-exporting-a-deep-multilevel-import-that-changes-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/file-not-exporting-a-deep-multilevel-import-that-changes-with-incremental.js index 0acbae35d6b14..552d7ef575676 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/file-not-exporting-a-deep-multilevel-import-that-changes-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/file-not-exporting-a-deep-multilevel-import-that-changes-with-incremental.js @@ -75,8 +75,20 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts","/user/username/projects/myproject/d.ts","/user/username/projects/myproject/e.ts"] -Program options: {"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts", + "/user/username/projects/myproject/d.ts", + "/user/username/projects/myproject/e.ts" +] +Program options: { + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -411,8 +423,20 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts","/user/username/projects/myproject/d.ts","/user/username/projects/myproject/e.ts"] -Program options: {"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts", + "/user/username/projects/myproject/d.ts", + "/user/username/projects/myproject/e.ts" +] +Program options: { + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -657,8 +681,20 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts","/user/username/projects/myproject/d.ts","/user/username/projects/myproject/e.ts"] -Program options: {"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts", + "/user/username/projects/myproject/d.ts", + "/user/username/projects/myproject/e.ts" +] +Program options: { + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -903,8 +939,20 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts","/user/username/projects/myproject/d.ts","/user/username/projects/myproject/e.ts"] -Program options: {"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts", + "/user/username/projects/myproject/d.ts", + "/user/username/projects/myproject/e.ts" +] +Program options: { + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/file-not-exporting-a-deep-multilevel-import-that-changes.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/file-not-exporting-a-deep-multilevel-import-that-changes.js index 39281cd2f36a5..c6d01a5fd1470 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/file-not-exporting-a-deep-multilevel-import-that-changes.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/file-not-exporting-a-deep-multilevel-import-that-changes.js @@ -75,8 +75,19 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts","/user/username/projects/myproject/d.ts","/user/username/projects/myproject/e.ts"] -Program options: {"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts", + "/user/username/projects/myproject/d.ts", + "/user/username/projects/myproject/e.ts" +] +Program options: { + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -241,8 +252,19 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts","/user/username/projects/myproject/d.ts","/user/username/projects/myproject/e.ts"] -Program options: {"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts", + "/user/username/projects/myproject/d.ts", + "/user/username/projects/myproject/e.ts" +] +Program options: { + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -317,8 +339,19 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts","/user/username/projects/myproject/d.ts","/user/username/projects/myproject/e.ts"] -Program options: {"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts", + "/user/username/projects/myproject/d.ts", + "/user/username/projects/myproject/e.ts" +] +Program options: { + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -393,8 +426,19 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts","/user/username/projects/myproject/d.ts","/user/username/projects/myproject/e.ts"] -Program options: {"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts", + "/user/username/projects/myproject/d.ts", + "/user/username/projects/myproject/e.ts" +] +Program options: { + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/transitive-exports/no-circular-import/export-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/transitive-exports/no-circular-import/export-with-incremental.js index c7f272a24aa30..975fe4a1ca5dd 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/transitive-exports/no-circular-import/export-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/transitive-exports/no-circular-import/export-with-incremental.js @@ -34,7 +34,14 @@ export class Data { } //// [/user/username/projects/myproject/tsconfig.json] -{"files":["app.ts"],"compilerOptions":{"baseUrl":"."}} +{ + "files": [ + "app.ts" + ], + "compilerOptions": { + "baseUrl": "." + } +} //// [/a/lib/lib.d.ts] /// @@ -59,8 +66,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -410,8 +426,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -608,8 +633,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -806,8 +840,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/transitive-exports/no-circular-import/export.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/transitive-exports/no-circular-import/export.js index 4547b82ae1794..8cfe31c8cb10b 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/transitive-exports/no-circular-import/export.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/transitive-exports/no-circular-import/export.js @@ -34,7 +34,14 @@ export class Data { } //// [/user/username/projects/myproject/tsconfig.json] -{"files":["app.ts"],"compilerOptions":{"baseUrl":"."}} +{ + "files": [ + "app.ts" + ], + "compilerOptions": { + "baseUrl": "." + } +} //// [/a/lib/lib.d.ts] /// @@ -59,8 +66,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -264,8 +279,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -316,8 +339,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -368,8 +399,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/transitive-exports/yes-circular-import/exports-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/transitive-exports/yes-circular-import/exports-with-incremental.js index 3981520b92539..5795cd927366a 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/transitive-exports/yes-circular-import/exports-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/transitive-exports/yes-circular-import/exports-with-incremental.js @@ -40,7 +40,14 @@ export class Data2 { } //// [/user/username/projects/myproject/tsconfig.json] -{"files":["app.ts"],"compilerOptions":{"baseUrl":"."}} +{ + "files": [ + "app.ts" + ], + "compilerOptions": { + "baseUrl": "." + } +} //// [/a/lib/lib.d.ts] /// @@ -65,8 +72,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -461,8 +477,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -679,8 +704,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -897,8 +931,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/transitive-exports/yes-circular-import/exports.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/transitive-exports/yes-circular-import/exports.js index 8e309d66b3c70..d62308973eed5 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/transitive-exports/yes-circular-import/exports.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/transitive-exports/yes-circular-import/exports.js @@ -40,7 +40,14 @@ export class Data2 { } //// [/user/username/projects/myproject/tsconfig.json] -{"files":["app.ts"],"compilerOptions":{"baseUrl":"."}} +{ + "files": [ + "app.ts" + ], + "compilerOptions": { + "baseUrl": "." + } +} //// [/a/lib/lib.d.ts] /// @@ -65,8 +72,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -296,8 +311,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -349,8 +372,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -402,8 +433,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/with-noEmitOnError-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/with-noEmitOnError-with-incremental.js index f5ddd97ff4dad..cda1c40303443 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/with-noEmitOnError-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/with-noEmitOnError-with-incremental.js @@ -1,27 +1,29 @@ currentDirectory:: /user/username/projects/noEmitOnError useCaseSensitiveFileNames: false Input:: -//// [/user/username/projects/noEmitOnError/shared/types/db.ts] -export interface A { - name: string; +//// [/user/username/projects/noEmitOnError/tsconfig.json] +{ + "compilerOptions": { + "outDir": "./dev-build", + "noEmitOnError": true + } } +//// [/user/username/projects/noEmitOnError/shared/types/db.ts] +export interface A { + name: string; +} + + //// [/user/username/projects/noEmitOnError/src/main.ts] -import { A } from "../shared/types/db"; -const a = { - lastName: 'sdsd' -; +import { A } from "../shared/types/db"; +const a = { + lastName: 'sdsd' +; -//// [/user/username/projects/noEmitOnError/src/other.ts] -console.log("hi"); -export { } -//// [/user/username/projects/noEmitOnError/tsconfig.json] -{ - "compilerOptions": { - "outDir": "./dev-build", - "noEmitOnError": true - } -} +//// [/user/username/projects/noEmitOnError/src/other.ts] +console.log("hi"); +export { } //// [/a/lib/lib.d.ts] @@ -54,8 +56,20 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -100,7 +114,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-9621097780-export interface A {\r\n name: string;\r\n}","2626879346-import { A } from \"../shared/types/db\";\r\nconst a = {\r\n lastName: 'sdsd'\r\n;","11373096570-console.log(\"hi\");\r\nexport { }"],"root":[[2,4]],"options":{"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3,4],"affectedFilesPendingEmit":[2,3,4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-5014788164-export interface A {\n name: string;\n}\n","-2574607723-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;\n","9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3,4],"affectedFilesPendingEmit":[2,3,4]},"version":"FakeTSVersion"} //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -127,16 +141,16 @@ exitCode:: ExitStatus.undefined "affectsGlobalScope": true }, "../shared/types/db.ts": { - "version": "-9621097780-export interface A {\r\n name: string;\r\n}", - "signature": "-9621097780-export interface A {\r\n name: string;\r\n}" + "version": "-5014788164-export interface A {\n name: string;\n}\n", + "signature": "-5014788164-export interface A {\n name: string;\n}\n" }, "../src/main.ts": { - "version": "2626879346-import { A } from \"../shared/types/db\";\r\nconst a = {\r\n lastName: 'sdsd'\r\n;", - "signature": "2626879346-import { A } from \"../shared/types/db\";\r\nconst a = {\r\n lastName: 'sdsd'\r\n;" + "version": "-2574607723-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;\n", + "signature": "-2574607723-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;\n" }, "../src/other.ts": { - "version": "11373096570-console.log(\"hi\");\r\nexport { }", - "signature": "11373096570-console.log(\"hi\");\r\nexport { }" + "version": "9084524823-console.log(\"hi\");\nexport { }\n", + "signature": "9084524823-console.log(\"hi\");\nexport { }\n" } }, "root": [ @@ -190,7 +204,7 @@ exitCode:: ExitStatus.undefined ] }, "version": "FakeTSVersion", - "size": 1123 + "size": 1117 } @@ -228,8 +242,20 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -246,7 +272,7 @@ Shape signatures in builder refreshed for:: exitCode:: ExitStatus.undefined //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-9621097780-export interface A {\r\n name: string;\r\n}","signature":"-5014788164-export interface A {\n name: string;\n}\n"},{"version":"-2574605496-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};","signature":"-3531856636-export {};\n"},{"version":"11373096570-console.log(\"hi\");\r\nexport { }","signature":"-3531856636-export {};\n"}],"root":[[2,4]],"options":{"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-5014788164-export interface A {\n name: string;\n}\n",{"version":"-2574605496-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};","signature":"-3531856636-export {};\n"},{"version":"9084524823-console.log(\"hi\");\nexport { }\n","signature":"-3531856636-export {};\n"}],"root":[[2,4]],"options":{"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -273,11 +299,7 @@ exitCode:: ExitStatus.undefined "affectsGlobalScope": true }, "../shared/types/db.ts": { - "original": { - "version": "-9621097780-export interface A {\r\n name: string;\r\n}", - "signature": "-5014788164-export interface A {\n name: string;\n}\n" - }, - "version": "-9621097780-export interface A {\r\n name: string;\r\n}", + "version": "-5014788164-export interface A {\n name: string;\n}\n", "signature": "-5014788164-export interface A {\n name: string;\n}\n" }, "../src/main.ts": { @@ -290,10 +312,10 @@ exitCode:: ExitStatus.undefined }, "../src/other.ts": { "original": { - "version": "11373096570-console.log(\"hi\");\r\nexport { }", + "version": "9084524823-console.log(\"hi\");\nexport { }\n", "signature": "-3531856636-export {};\n" }, - "version": "11373096570-console.log(\"hi\");\r\nexport { }", + "version": "9084524823-console.log(\"hi\");\nexport { }\n", "signature": "-3531856636-export {};\n" } }, @@ -330,7 +352,7 @@ exitCode:: ExitStatus.undefined ] }, "version": "FakeTSVersion", - "size": 1264 + "size": 1178 } //// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] @@ -391,8 +413,20 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -409,7 +443,7 @@ Shape signatures in builder refreshed for:: exitCode:: ExitStatus.undefined //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-9621097780-export interface A {\r\n name: string;\r\n}","signature":"-5014788164-export interface A {\n name: string;\n}\n"},{"version":"-11111345725-import { A } from \"../shared/types/db\";\nconst a: string = 10;","signature":"-3531856636-export {};\n"},{"version":"11373096570-console.log(\"hi\");\r\nexport { }","signature":"-3531856636-export {};\n"}],"root":[[2,4]],"options":{"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"../src/main.ts","start":46,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]],4],"affectedFilesPendingEmit":[3]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-5014788164-export interface A {\n name: string;\n}\n",{"version":"-11111345725-import { A } from \"../shared/types/db\";\nconst a: string = 10;","signature":"-3531856636-export {};\n"},{"version":"9084524823-console.log(\"hi\");\nexport { }\n","signature":"-3531856636-export {};\n"}],"root":[[2,4]],"options":{"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"../src/main.ts","start":46,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]],4],"affectedFilesPendingEmit":[3]},"version":"FakeTSVersion"} //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -436,11 +470,7 @@ exitCode:: ExitStatus.undefined "affectsGlobalScope": true }, "../shared/types/db.ts": { - "original": { - "version": "-9621097780-export interface A {\r\n name: string;\r\n}", - "signature": "-5014788164-export interface A {\n name: string;\n}\n" - }, - "version": "-9621097780-export interface A {\r\n name: string;\r\n}", + "version": "-5014788164-export interface A {\n name: string;\n}\n", "signature": "-5014788164-export interface A {\n name: string;\n}\n" }, "../src/main.ts": { @@ -453,10 +483,10 @@ exitCode:: ExitStatus.undefined }, "../src/other.ts": { "original": { - "version": "11373096570-console.log(\"hi\");\r\nexport { }", + "version": "9084524823-console.log(\"hi\");\nexport { }\n", "signature": "-3531856636-export {};\n" }, - "version": "11373096570-console.log(\"hi\");\r\nexport { }", + "version": "9084524823-console.log(\"hi\");\nexport { }\n", "signature": "-3531856636-export {};\n" } }, @@ -511,7 +541,7 @@ exitCode:: ExitStatus.undefined ] }, "version": "FakeTSVersion", - "size": 1423 + "size": 1337 } @@ -547,8 +577,20 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -565,7 +607,7 @@ Shape signatures in builder refreshed for:: exitCode:: ExitStatus.undefined //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-9621097780-export interface A {\r\n name: string;\r\n}","signature":"-5014788164-export interface A {\n name: string;\n}\n"},{"version":"-8373351622-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";","signature":"-3531856636-export {};\n"},{"version":"11373096570-console.log(\"hi\");\r\nexport { }","signature":"-3531856636-export {};\n"}],"root":[[2,4]],"options":{"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-5014788164-export interface A {\n name: string;\n}\n",{"version":"-8373351622-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";","signature":"-3531856636-export {};\n"},{"version":"9084524823-console.log(\"hi\");\nexport { }\n","signature":"-3531856636-export {};\n"}],"root":[[2,4]],"options":{"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -592,11 +634,7 @@ exitCode:: ExitStatus.undefined "affectsGlobalScope": true }, "../shared/types/db.ts": { - "original": { - "version": "-9621097780-export interface A {\r\n name: string;\r\n}", - "signature": "-5014788164-export interface A {\n name: string;\n}\n" - }, - "version": "-9621097780-export interface A {\r\n name: string;\r\n}", + "version": "-5014788164-export interface A {\n name: string;\n}\n", "signature": "-5014788164-export interface A {\n name: string;\n}\n" }, "../src/main.ts": { @@ -609,10 +647,10 @@ exitCode:: ExitStatus.undefined }, "../src/other.ts": { "original": { - "version": "11373096570-console.log(\"hi\");\r\nexport { }", + "version": "9084524823-console.log(\"hi\");\nexport { }\n", "signature": "-3531856636-export {};\n" }, - "version": "11373096570-console.log(\"hi\");\r\nexport { }", + "version": "9084524823-console.log(\"hi\");\nexport { }\n", "signature": "-3531856636-export {};\n" } }, @@ -649,7 +687,7 @@ exitCode:: ExitStatus.undefined ] }, "version": "FakeTSVersion", - "size": 1255 + "size": 1169 } //// [/user/username/projects/noEmitOnError/dev-build/src/main.js] diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/with-noEmitOnError.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/with-noEmitOnError.js index 2e46763e10775..51e4900d96d37 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/with-noEmitOnError.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/with-noEmitOnError.js @@ -1,27 +1,29 @@ currentDirectory:: /user/username/projects/noEmitOnError useCaseSensitiveFileNames: false Input:: -//// [/user/username/projects/noEmitOnError/shared/types/db.ts] -export interface A { - name: string; +//// [/user/username/projects/noEmitOnError/tsconfig.json] +{ + "compilerOptions": { + "outDir": "./dev-build", + "noEmitOnError": true + } } +//// [/user/username/projects/noEmitOnError/shared/types/db.ts] +export interface A { + name: string; +} + + //// [/user/username/projects/noEmitOnError/src/main.ts] -import { A } from "../shared/types/db"; -const a = { - lastName: 'sdsd' -; +import { A } from "../shared/types/db"; +const a = { + lastName: 'sdsd' +; -//// [/user/username/projects/noEmitOnError/src/other.ts] -console.log("hi"); -export { } -//// [/user/username/projects/noEmitOnError/tsconfig.json] -{ - "compilerOptions": { - "outDir": "./dev-build", - "noEmitOnError": true - } -} +//// [/user/username/projects/noEmitOnError/src/other.ts] +console.log("hi"); +export { } //// [/a/lib/lib.d.ts] @@ -54,8 +56,19 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "declaration": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -134,8 +147,19 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "declaration": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -209,8 +233,19 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "declaration": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -259,8 +294,19 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "assumeChangesOnlyAffectDirectDependencies": true, + "declaration": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/deepImportChanges/errors-for-.d.ts-change-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/deepImportChanges/errors-for-.d.ts-change-with-incremental.js index c046757d74622..9027fed2d36a9 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/deepImportChanges/errors-for-.d.ts-change-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/deepImportChanges/errors-for-.d.ts-change-with-incremental.js @@ -45,8 +45,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.d.ts","/user/username/projects/myproject/c.d.ts"] -Program options: {"watch":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.d.ts", + "/user/username/projects/myproject/c.d.ts" +] +Program options: { + "watch": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -211,8 +219,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.d.ts","/user/username/projects/myproject/c.d.ts"] -Program options: {"watch":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.d.ts", + "/user/username/projects/myproject/c.d.ts" +] +Program options: { + "watch": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -349,8 +365,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.d.ts","/user/username/projects/myproject/c.d.ts"] -Program options: {"watch":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.d.ts", + "/user/username/projects/myproject/c.d.ts" +] +Program options: { + "watch": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -480,8 +504,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.d.ts","/user/username/projects/myproject/c.d.ts"] -Program options: {"watch":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.d.ts", + "/user/username/projects/myproject/c.d.ts" +] +Program options: { + "watch": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/deepImportChanges/errors-for-.d.ts-change.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/deepImportChanges/errors-for-.d.ts-change.js index eda8dcd5a2ab4..f02ff7cdd8be9 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/deepImportChanges/errors-for-.d.ts-change.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/deepImportChanges/errors-for-.d.ts-change.js @@ -45,8 +45,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.d.ts","/user/username/projects/myproject/c.d.ts"] -Program options: {"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.d.ts", + "/user/username/projects/myproject/c.d.ts" +] +Program options: { + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -127,8 +134,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.d.ts","/user/username/projects/myproject/c.d.ts"] -Program options: {"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.d.ts", + "/user/username/projects/myproject/c.d.ts" +] +Program options: { + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -170,8 +184,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.d.ts","/user/username/projects/myproject/c.d.ts"] -Program options: {"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.d.ts", + "/user/username/projects/myproject/c.d.ts" +] +Program options: { + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -218,8 +239,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.d.ts","/user/username/projects/myproject/c.d.ts"] -Program options: {"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.d.ts", + "/user/username/projects/myproject/c.d.ts" +] +Program options: { + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/deepImportChanges/errors-for-.ts-change-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/deepImportChanges/errors-for-.ts-change-with-incremental.js index aef3c82b4e3ac..150209af25400 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/deepImportChanges/errors-for-.ts-change-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/deepImportChanges/errors-for-.ts-change-with-incremental.js @@ -45,8 +45,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts"] -Program options: {"watch":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts" +] +Program options: { + "watch": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -235,8 +243,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts"] -Program options: {"watch":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts" +] +Program options: { + "watch": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -397,8 +413,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts"] -Program options: {"watch":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts" +] +Program options: { + "watch": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -550,8 +574,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts"] -Program options: {"watch":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts" +] +Program options: { + "watch": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/deepImportChanges/errors-for-.ts-change.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/deepImportChanges/errors-for-.ts-change.js index 0da476d57e710..1d1ed442ad4eb 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/deepImportChanges/errors-for-.ts-change.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/deepImportChanges/errors-for-.ts-change.js @@ -45,8 +45,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts"] -Program options: {"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts" +] +Program options: { + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -152,8 +159,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts"] -Program options: {"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts" +] +Program options: { + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -210,8 +224,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts"] -Program options: {"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts" +] +Program options: { + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -272,8 +293,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts"] -Program options: {"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts" +] +Program options: { + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/file-not-exporting-a-deep-multilevel-import-that-changes-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/file-not-exporting-a-deep-multilevel-import-that-changes-with-incremental.js index 304a8659277a3..13d05b5938ec1 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/file-not-exporting-a-deep-multilevel-import-that-changes-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/file-not-exporting-a-deep-multilevel-import-that-changes-with-incremental.js @@ -75,8 +75,18 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts","/user/username/projects/myproject/d.ts","/user/username/projects/myproject/e.ts"] -Program options: {"watch":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts", + "/user/username/projects/myproject/d.ts", + "/user/username/projects/myproject/e.ts" +] +Program options: { + "watch": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -345,8 +355,18 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts","/user/username/projects/myproject/d.ts","/user/username/projects/myproject/e.ts"] -Program options: {"watch":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts", + "/user/username/projects/myproject/d.ts", + "/user/username/projects/myproject/e.ts" +] +Program options: { + "watch": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -550,8 +570,18 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts","/user/username/projects/myproject/d.ts","/user/username/projects/myproject/e.ts"] -Program options: {"watch":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts", + "/user/username/projects/myproject/d.ts", + "/user/username/projects/myproject/e.ts" +] +Program options: { + "watch": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -764,8 +794,18 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts","/user/username/projects/myproject/d.ts","/user/username/projects/myproject/e.ts"] -Program options: {"watch":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts", + "/user/username/projects/myproject/d.ts", + "/user/username/projects/myproject/e.ts" +] +Program options: { + "watch": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/file-not-exporting-a-deep-multilevel-import-that-changes.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/file-not-exporting-a-deep-multilevel-import-that-changes.js index 71af769d67374..6d0046f21186a 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/file-not-exporting-a-deep-multilevel-import-that-changes.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/file-not-exporting-a-deep-multilevel-import-that-changes.js @@ -75,8 +75,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts","/user/username/projects/myproject/d.ts","/user/username/projects/myproject/e.ts"] -Program options: {"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts", + "/user/username/projects/myproject/d.ts", + "/user/username/projects/myproject/e.ts" +] +Program options: { + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -196,8 +205,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts","/user/username/projects/myproject/d.ts","/user/username/projects/myproject/e.ts"] -Program options: {"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts", + "/user/username/projects/myproject/d.ts", + "/user/username/projects/myproject/e.ts" +] +Program options: { + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -269,8 +287,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts","/user/username/projects/myproject/d.ts","/user/username/projects/myproject/e.ts"] -Program options: {"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts", + "/user/username/projects/myproject/d.ts", + "/user/username/projects/myproject/e.ts" +] +Program options: { + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -322,8 +349,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts","/user/username/projects/myproject/d.ts","/user/username/projects/myproject/e.ts"] -Program options: {"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts", + "/user/username/projects/myproject/d.ts", + "/user/username/projects/myproject/e.ts" +] +Program options: { + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/transitive-exports/no-circular-import/export-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/transitive-exports/no-circular-import/export-with-incremental.js index 1af187277d8db..fa8fb6963282a 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/transitive-exports/no-circular-import/export-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/transitive-exports/no-circular-import/export-with-incremental.js @@ -34,7 +34,14 @@ export class Data { } //// [/user/username/projects/myproject/tsconfig.json] -{"files":["app.ts"],"compilerOptions":{"baseUrl":"."}} +{ + "files": [ + "app.ts" + ], + "compilerOptions": { + "baseUrl": "." + } +} //// [/a/lib/lib.d.ts] /// @@ -59,8 +66,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -359,8 +373,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -570,8 +591,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -757,8 +785,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/transitive-exports/no-circular-import/export.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/transitive-exports/no-circular-import/export.js index 14ef9a9d4d7c8..3006720914acc 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/transitive-exports/no-circular-import/export.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/transitive-exports/no-circular-import/export.js @@ -34,7 +34,14 @@ export class Data { } //// [/user/username/projects/myproject/tsconfig.json] -{"files":["app.ts"],"compilerOptions":{"baseUrl":"."}} +{ + "files": [ + "app.ts" + ], + "compilerOptions": { + "baseUrl": "." + } +} //// [/a/lib/lib.d.ts] /// @@ -59,8 +66,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -238,8 +251,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -295,8 +314,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -353,8 +378,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/transitive-exports/yes-circular-import/exports-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/transitive-exports/yes-circular-import/exports-with-incremental.js index e3680edd94ff1..c1450f7e988ad 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/transitive-exports/yes-circular-import/exports-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/transitive-exports/yes-circular-import/exports-with-incremental.js @@ -40,7 +40,14 @@ export class Data2 { } //// [/user/username/projects/myproject/tsconfig.json] -{"files":["app.ts"],"compilerOptions":{"baseUrl":"."}} +{ + "files": [ + "app.ts" + ], + "compilerOptions": { + "baseUrl": "." + } +} //// [/a/lib/lib.d.ts] /// @@ -65,8 +72,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -397,8 +411,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -631,8 +652,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -836,8 +864,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/transitive-exports/yes-circular-import/exports.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/transitive-exports/yes-circular-import/exports.js index 3be9b6d450994..3b065f858b990 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/transitive-exports/yes-circular-import/exports.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/transitive-exports/yes-circular-import/exports.js @@ -40,7 +40,14 @@ export class Data2 { } //// [/user/username/projects/myproject/tsconfig.json] -{"files":["app.ts"],"compilerOptions":{"baseUrl":"."}} +{ + "files": [ + "app.ts" + ], + "compilerOptions": { + "baseUrl": "." + } +} //// [/a/lib/lib.d.ts] /// @@ -65,8 +72,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -261,8 +274,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -322,8 +341,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -383,8 +408,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/with-noEmitOnError-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/with-noEmitOnError-with-incremental.js index 50329dcd68e2a..6cd36ff47eff6 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/with-noEmitOnError-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/with-noEmitOnError-with-incremental.js @@ -1,27 +1,29 @@ currentDirectory:: /user/username/projects/noEmitOnError useCaseSensitiveFileNames: false Input:: -//// [/user/username/projects/noEmitOnError/shared/types/db.ts] -export interface A { - name: string; +//// [/user/username/projects/noEmitOnError/tsconfig.json] +{ + "compilerOptions": { + "outDir": "./dev-build", + "noEmitOnError": true + } } +//// [/user/username/projects/noEmitOnError/shared/types/db.ts] +export interface A { + name: string; +} + + //// [/user/username/projects/noEmitOnError/src/main.ts] -import { A } from "../shared/types/db"; -const a = { - lastName: 'sdsd' -; +import { A } from "../shared/types/db"; +const a = { + lastName: 'sdsd' +; -//// [/user/username/projects/noEmitOnError/src/other.ts] -console.log("hi"); -export { } -//// [/user/username/projects/noEmitOnError/tsconfig.json] -{ - "compilerOptions": { - "outDir": "./dev-build", - "noEmitOnError": true - } -} +//// [/user/username/projects/noEmitOnError/src/other.ts] +console.log("hi"); +export { } //// [/a/lib/lib.d.ts] @@ -54,8 +56,18 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"incremental":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "incremental": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -100,7 +112,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-9621097780-export interface A {\r\n name: string;\r\n}","2626879346-import { A } from \"../shared/types/db\";\r\nconst a = {\r\n lastName: 'sdsd'\r\n;","11373096570-console.log(\"hi\");\r\nexport { }"],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3,4],"affectedFilesPendingEmit":[2,3,4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-5014788164-export interface A {\n name: string;\n}\n","-2574607723-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;\n","9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3,4],"affectedFilesPendingEmit":[2,3,4]},"version":"FakeTSVersion"} //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -127,16 +139,16 @@ exitCode:: ExitStatus.undefined "affectsGlobalScope": true }, "../shared/types/db.ts": { - "version": "-9621097780-export interface A {\r\n name: string;\r\n}", - "signature": "-9621097780-export interface A {\r\n name: string;\r\n}" + "version": "-5014788164-export interface A {\n name: string;\n}\n", + "signature": "-5014788164-export interface A {\n name: string;\n}\n" }, "../src/main.ts": { - "version": "2626879346-import { A } from \"../shared/types/db\";\r\nconst a = {\r\n lastName: 'sdsd'\r\n;", - "signature": "2626879346-import { A } from \"../shared/types/db\";\r\nconst a = {\r\n lastName: 'sdsd'\r\n;" + "version": "-2574607723-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;\n", + "signature": "-2574607723-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;\n" }, "../src/other.ts": { - "version": "11373096570-console.log(\"hi\");\r\nexport { }", - "signature": "11373096570-console.log(\"hi\");\r\nexport { }" + "version": "9084524823-console.log(\"hi\");\nexport { }\n", + "signature": "9084524823-console.log(\"hi\");\nexport { }\n" } }, "root": [ @@ -188,7 +200,7 @@ exitCode:: ExitStatus.undefined ] }, "version": "FakeTSVersion", - "size": 1055 + "size": 1049 } @@ -226,8 +238,18 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"incremental":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "incremental": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -244,7 +266,7 @@ Shape signatures in builder refreshed for:: exitCode:: ExitStatus.undefined //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-9621097780-export interface A {\r\n name: string;\r\n}",{"version":"-2574605496-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};","signature":"-3531856636-export {};\n"},"11373096570-console.log(\"hi\");\r\nexport { }"],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-5014788164-export interface A {\n name: string;\n}\n",{"version":"-2574605496-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};","signature":"-3531856636-export {};\n"},"9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -271,8 +293,8 @@ exitCode:: ExitStatus.undefined "affectsGlobalScope": true }, "../shared/types/db.ts": { - "version": "-9621097780-export interface A {\r\n name: string;\r\n}", - "signature": "-9621097780-export interface A {\r\n name: string;\r\n}" + "version": "-5014788164-export interface A {\n name: string;\n}\n", + "signature": "-5014788164-export interface A {\n name: string;\n}\n" }, "../src/main.ts": { "original": { @@ -283,8 +305,8 @@ exitCode:: ExitStatus.undefined "signature": "-3531856636-export {};\n" }, "../src/other.ts": { - "version": "11373096570-console.log(\"hi\");\r\nexport { }", - "signature": "11373096570-console.log(\"hi\");\r\nexport { }" + "version": "9084524823-console.log(\"hi\");\nexport { }\n", + "signature": "9084524823-console.log(\"hi\");\nexport { }\n" } }, "root": [ @@ -318,7 +340,7 @@ exitCode:: ExitStatus.undefined ] }, "version": "FakeTSVersion", - "size": 1062 + "size": 1059 } //// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] @@ -365,8 +387,18 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"incremental":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "incremental": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -383,7 +415,7 @@ Shape signatures in builder refreshed for:: exitCode:: ExitStatus.undefined //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-9621097780-export interface A {\r\n name: string;\r\n}",{"version":"-11111345725-import { A } from \"../shared/types/db\";\nconst a: string = 10;","signature":"-3531856636-export {};\n"},"11373096570-console.log(\"hi\");\r\nexport { }"],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"../src/main.ts","start":46,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]],4],"affectedFilesPendingEmit":[3]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-5014788164-export interface A {\n name: string;\n}\n",{"version":"-11111345725-import { A } from \"../shared/types/db\";\nconst a: string = 10;","signature":"-3531856636-export {};\n"},"9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"../src/main.ts","start":46,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]],4],"affectedFilesPendingEmit":[3]},"version":"FakeTSVersion"} //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -410,8 +442,8 @@ exitCode:: ExitStatus.undefined "affectsGlobalScope": true }, "../shared/types/db.ts": { - "version": "-9621097780-export interface A {\r\n name: string;\r\n}", - "signature": "-9621097780-export interface A {\r\n name: string;\r\n}" + "version": "-5014788164-export interface A {\n name: string;\n}\n", + "signature": "-5014788164-export interface A {\n name: string;\n}\n" }, "../src/main.ts": { "original": { @@ -422,8 +454,8 @@ exitCode:: ExitStatus.undefined "signature": "-3531856636-export {};\n" }, "../src/other.ts": { - "version": "11373096570-console.log(\"hi\");\r\nexport { }", - "signature": "11373096570-console.log(\"hi\");\r\nexport { }" + "version": "9084524823-console.log(\"hi\");\nexport { }\n", + "signature": "9084524823-console.log(\"hi\");\nexport { }\n" } }, "root": [ @@ -475,7 +507,7 @@ exitCode:: ExitStatus.undefined ] }, "version": "FakeTSVersion", - "size": 1221 + "size": 1218 } @@ -511,8 +543,18 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"incremental":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "incremental": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -529,7 +571,7 @@ Shape signatures in builder refreshed for:: exitCode:: ExitStatus.undefined //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-9621097780-export interface A {\r\n name: string;\r\n}",{"version":"-8373351622-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";","signature":"-3531856636-export {};\n"},"11373096570-console.log(\"hi\");\r\nexport { }"],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-5014788164-export interface A {\n name: string;\n}\n",{"version":"-8373351622-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";","signature":"-3531856636-export {};\n"},"9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -556,8 +598,8 @@ exitCode:: ExitStatus.undefined "affectsGlobalScope": true }, "../shared/types/db.ts": { - "version": "-9621097780-export interface A {\r\n name: string;\r\n}", - "signature": "-9621097780-export interface A {\r\n name: string;\r\n}" + "version": "-5014788164-export interface A {\n name: string;\n}\n", + "signature": "-5014788164-export interface A {\n name: string;\n}\n" }, "../src/main.ts": { "original": { @@ -568,8 +610,8 @@ exitCode:: ExitStatus.undefined "signature": "-3531856636-export {};\n" }, "../src/other.ts": { - "version": "11373096570-console.log(\"hi\");\r\nexport { }", - "signature": "11373096570-console.log(\"hi\");\r\nexport { }" + "version": "9084524823-console.log(\"hi\");\nexport { }\n", + "signature": "9084524823-console.log(\"hi\");\nexport { }\n" } }, "root": [ @@ -603,7 +645,7 @@ exitCode:: ExitStatus.undefined ] }, "version": "FakeTSVersion", - "size": 1053 + "size": 1050 } //// [/user/username/projects/noEmitOnError/dev-build/src/main.js] diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/with-noEmitOnError.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/with-noEmitOnError.js index 9427ea78d6c72..7d36b11daff26 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/with-noEmitOnError.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/with-noEmitOnError.js @@ -1,27 +1,29 @@ currentDirectory:: /user/username/projects/noEmitOnError useCaseSensitiveFileNames: false Input:: -//// [/user/username/projects/noEmitOnError/shared/types/db.ts] -export interface A { - name: string; +//// [/user/username/projects/noEmitOnError/tsconfig.json] +{ + "compilerOptions": { + "outDir": "./dev-build", + "noEmitOnError": true + } } +//// [/user/username/projects/noEmitOnError/shared/types/db.ts] +export interface A { + name: string; +} + + //// [/user/username/projects/noEmitOnError/src/main.ts] -import { A } from "../shared/types/db"; -const a = { - lastName: 'sdsd' -; +import { A } from "../shared/types/db"; +const a = { + lastName: 'sdsd' +; -//// [/user/username/projects/noEmitOnError/src/other.ts] -console.log("hi"); -export { } -//// [/user/username/projects/noEmitOnError/tsconfig.json] -{ - "compilerOptions": { - "outDir": "./dev-build", - "noEmitOnError": true - } -} +//// [/user/username/projects/noEmitOnError/src/other.ts] +console.log("hi"); +export { } //// [/a/lib/lib.d.ts] @@ -54,8 +56,17 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -134,8 +145,17 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -195,8 +215,17 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -245,8 +274,17 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/deepImportChanges/errors-for-.d.ts-change-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/deepImportChanges/errors-for-.d.ts-change-with-incremental.js index 3ca618bad2291..6067a739c8055 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/deepImportChanges/errors-for-.d.ts-change-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/deepImportChanges/errors-for-.d.ts-change-with-incremental.js @@ -45,8 +45,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.d.ts","/user/username/projects/myproject/c.d.ts"] -Program options: {"watch":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.d.ts", + "/user/username/projects/myproject/c.d.ts" +] +Program options: { + "watch": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -219,8 +228,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.d.ts","/user/username/projects/myproject/c.d.ts"] -Program options: {"watch":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.d.ts", + "/user/username/projects/myproject/c.d.ts" +] +Program options: { + "watch": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -362,8 +380,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.d.ts","/user/username/projects/myproject/c.d.ts"] -Program options: {"watch":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.d.ts", + "/user/username/projects/myproject/c.d.ts" +] +Program options: { + "watch": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -498,8 +525,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.d.ts","/user/username/projects/myproject/c.d.ts"] -Program options: {"watch":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.d.ts", + "/user/username/projects/myproject/c.d.ts" +] +Program options: { + "watch": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/deepImportChanges/errors-for-.d.ts-change.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/deepImportChanges/errors-for-.d.ts-change.js index 8342b4f58526e..9f4135f2a8c0c 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/deepImportChanges/errors-for-.d.ts-change.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/deepImportChanges/errors-for-.d.ts-change.js @@ -45,8 +45,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.d.ts","/user/username/projects/myproject/c.d.ts"] -Program options: {"watch":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.d.ts", + "/user/username/projects/myproject/c.d.ts" +] +Program options: { + "watch": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -131,8 +139,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.d.ts","/user/username/projects/myproject/c.d.ts"] -Program options: {"watch":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.d.ts", + "/user/username/projects/myproject/c.d.ts" +] +Program options: { + "watch": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -175,8 +191,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.d.ts","/user/username/projects/myproject/c.d.ts"] -Program options: {"watch":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.d.ts", + "/user/username/projects/myproject/c.d.ts" +] +Program options: { + "watch": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -224,8 +248,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.d.ts","/user/username/projects/myproject/c.d.ts"] -Program options: {"watch":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.d.ts", + "/user/username/projects/myproject/c.d.ts" +] +Program options: { + "watch": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/deepImportChanges/errors-for-.ts-change-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/deepImportChanges/errors-for-.ts-change-with-incremental.js index a69a229c21739..e2ed6559adc21 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/deepImportChanges/errors-for-.ts-change-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/deepImportChanges/errors-for-.ts-change-with-incremental.js @@ -45,8 +45,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts"] -Program options: {"watch":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts" +] +Program options: { + "watch": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -264,8 +273,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts"] -Program options: {"watch":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts" +] +Program options: { + "watch": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -436,8 +454,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts"] -Program options: {"watch":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts" +] +Program options: { + "watch": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -601,8 +628,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts"] -Program options: {"watch":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts" +] +Program options: { + "watch": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/deepImportChanges/errors-for-.ts-change.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/deepImportChanges/errors-for-.ts-change.js index b3b1fa0116f88..f23e331d7b608 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/deepImportChanges/errors-for-.ts-change.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/deepImportChanges/errors-for-.ts-change.js @@ -45,8 +45,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts"] -Program options: {"watch":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts" +] +Program options: { + "watch": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -169,8 +177,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts"] -Program options: {"watch":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts" +] +Program options: { + "watch": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -234,8 +250,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts"] -Program options: {"watch":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts" +] +Program options: { + "watch": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -304,8 +328,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts"] -Program options: {"watch":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts" +] +Program options: { + "watch": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/file-not-exporting-a-deep-multilevel-import-that-changes-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/file-not-exporting-a-deep-multilevel-import-that-changes-with-incremental.js index b7e05e73dac1f..345cd775b59be 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/file-not-exporting-a-deep-multilevel-import-that-changes-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/file-not-exporting-a-deep-multilevel-import-that-changes-with-incremental.js @@ -75,8 +75,19 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts","/user/username/projects/myproject/d.ts","/user/username/projects/myproject/e.ts"] -Program options: {"watch":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts", + "/user/username/projects/myproject/d.ts", + "/user/username/projects/myproject/e.ts" +] +Program options: { + "watch": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -395,8 +406,19 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts","/user/username/projects/myproject/d.ts","/user/username/projects/myproject/e.ts"] -Program options: {"watch":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts", + "/user/username/projects/myproject/d.ts", + "/user/username/projects/myproject/e.ts" +] +Program options: { + "watch": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -612,8 +634,19 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts","/user/username/projects/myproject/d.ts","/user/username/projects/myproject/e.ts"] -Program options: {"watch":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts", + "/user/username/projects/myproject/d.ts", + "/user/username/projects/myproject/e.ts" +] +Program options: { + "watch": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -848,8 +881,19 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts","/user/username/projects/myproject/d.ts","/user/username/projects/myproject/e.ts"] -Program options: {"watch":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts", + "/user/username/projects/myproject/d.ts", + "/user/username/projects/myproject/e.ts" +] +Program options: { + "watch": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/file-not-exporting-a-deep-multilevel-import-that-changes.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/file-not-exporting-a-deep-multilevel-import-that-changes.js index 827cf2f0f1049..c68da90757321 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/file-not-exporting-a-deep-multilevel-import-that-changes.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/file-not-exporting-a-deep-multilevel-import-that-changes.js @@ -75,8 +75,18 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts","/user/username/projects/myproject/d.ts","/user/username/projects/myproject/e.ts"] -Program options: {"watch":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts", + "/user/username/projects/myproject/d.ts", + "/user/username/projects/myproject/e.ts" +] +Program options: { + "watch": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -226,8 +236,18 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts","/user/username/projects/myproject/d.ts","/user/username/projects/myproject/e.ts"] -Program options: {"watch":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts", + "/user/username/projects/myproject/d.ts", + "/user/username/projects/myproject/e.ts" +] +Program options: { + "watch": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -308,8 +328,18 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts","/user/username/projects/myproject/d.ts","/user/username/projects/myproject/e.ts"] -Program options: {"watch":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts", + "/user/username/projects/myproject/d.ts", + "/user/username/projects/myproject/e.ts" +] +Program options: { + "watch": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -375,8 +405,18 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts","/user/username/projects/myproject/d.ts","/user/username/projects/myproject/e.ts"] -Program options: {"watch":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts", + "/user/username/projects/myproject/d.ts", + "/user/username/projects/myproject/e.ts" +] +Program options: { + "watch": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/transitive-exports/no-circular-import/export-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/transitive-exports/no-circular-import/export-with-incremental.js index 7e1806f20d7dd..e4d64a3ccb6bd 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/transitive-exports/no-circular-import/export-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/transitive-exports/no-circular-import/export-with-incremental.js @@ -34,7 +34,14 @@ export class Data { } //// [/user/username/projects/myproject/tsconfig.json] -{"files":["app.ts"],"compilerOptions":{"baseUrl":"."}} +{ + "files": [ + "app.ts" + ], + "compilerOptions": { + "baseUrl": "." + } +} //// [/a/lib/lib.d.ts] /// @@ -59,8 +66,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -414,8 +429,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -635,8 +658,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -849,8 +880,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/transitive-exports/no-circular-import/export.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/transitive-exports/no-circular-import/export.js index dae78e1c16498..ea356f45474cd 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/transitive-exports/no-circular-import/export.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/transitive-exports/no-circular-import/export.js @@ -34,7 +34,14 @@ export class Data { } //// [/user/username/projects/myproject/tsconfig.json] -{"files":["app.ts"],"compilerOptions":{"baseUrl":"."}} +{ + "files": [ + "app.ts" + ], + "compilerOptions": { + "baseUrl": "." + } +} //// [/a/lib/lib.d.ts] /// @@ -59,8 +66,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -269,8 +283,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -333,8 +354,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -402,8 +430,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/transitive-exports/yes-circular-import/exports-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/transitive-exports/yes-circular-import/exports-with-incremental.js index 19e3541202cf5..a3f9ce08a9cdd 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/transitive-exports/yes-circular-import/exports-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/transitive-exports/yes-circular-import/exports-with-incremental.js @@ -40,7 +40,14 @@ export class Data2 { } //// [/user/username/projects/myproject/tsconfig.json] -{"files":["app.ts"],"compilerOptions":{"baseUrl":"."}} +{ + "files": [ + "app.ts" + ], + "compilerOptions": { + "baseUrl": "." + } +} //// [/a/lib/lib.d.ts] /// @@ -65,8 +72,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -465,8 +480,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -709,8 +732,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -946,8 +977,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/transitive-exports/yes-circular-import/exports.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/transitive-exports/yes-circular-import/exports.js index 05adba9585299..fd0a659eb2367 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/transitive-exports/yes-circular-import/exports.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/transitive-exports/yes-circular-import/exports.js @@ -40,7 +40,14 @@ export class Data2 { } //// [/user/username/projects/myproject/tsconfig.json] -{"files":["app.ts"],"compilerOptions":{"baseUrl":"."}} +{ + "files": [ + "app.ts" + ], + "compilerOptions": { + "baseUrl": "." + } +} //// [/a/lib/lib.d.ts] /// @@ -65,8 +72,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -301,8 +315,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -369,8 +390,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -442,8 +470,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/with-noEmitOnError-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/with-noEmitOnError-with-incremental.js index 1f3cb9181b94b..d9c904c0ad5b1 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/with-noEmitOnError-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/with-noEmitOnError-with-incremental.js @@ -1,27 +1,29 @@ currentDirectory:: /user/username/projects/noEmitOnError useCaseSensitiveFileNames: false Input:: -//// [/user/username/projects/noEmitOnError/shared/types/db.ts] -export interface A { - name: string; +//// [/user/username/projects/noEmitOnError/tsconfig.json] +{ + "compilerOptions": { + "outDir": "./dev-build", + "noEmitOnError": true + } } +//// [/user/username/projects/noEmitOnError/shared/types/db.ts] +export interface A { + name: string; +} + + //// [/user/username/projects/noEmitOnError/src/main.ts] -import { A } from "../shared/types/db"; -const a = { - lastName: 'sdsd' -; +import { A } from "../shared/types/db"; +const a = { + lastName: 'sdsd' +; -//// [/user/username/projects/noEmitOnError/src/other.ts] -console.log("hi"); -export { } -//// [/user/username/projects/noEmitOnError/tsconfig.json] -{ - "compilerOptions": { - "outDir": "./dev-build", - "noEmitOnError": true - } -} +//// [/user/username/projects/noEmitOnError/src/other.ts] +console.log("hi"); +export { } //// [/a/lib/lib.d.ts] @@ -54,8 +56,19 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -100,7 +113,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-9621097780-export interface A {\r\n name: string;\r\n}","2626879346-import { A } from \"../shared/types/db\";\r\nconst a = {\r\n lastName: 'sdsd'\r\n;","11373096570-console.log(\"hi\");\r\nexport { }"],"root":[[2,4]],"options":{"declaration":true,"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3,4],"affectedFilesPendingEmit":[2,3,4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-5014788164-export interface A {\n name: string;\n}\n","-2574607723-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;\n","9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"declaration":true,"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3,4],"affectedFilesPendingEmit":[2,3,4]},"version":"FakeTSVersion"} //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -127,16 +140,16 @@ exitCode:: ExitStatus.undefined "affectsGlobalScope": true }, "../shared/types/db.ts": { - "version": "-9621097780-export interface A {\r\n name: string;\r\n}", - "signature": "-9621097780-export interface A {\r\n name: string;\r\n}" + "version": "-5014788164-export interface A {\n name: string;\n}\n", + "signature": "-5014788164-export interface A {\n name: string;\n}\n" }, "../src/main.ts": { - "version": "2626879346-import { A } from \"../shared/types/db\";\r\nconst a = {\r\n lastName: 'sdsd'\r\n;", - "signature": "2626879346-import { A } from \"../shared/types/db\";\r\nconst a = {\r\n lastName: 'sdsd'\r\n;" + "version": "-2574607723-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;\n", + "signature": "-2574607723-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;\n" }, "../src/other.ts": { - "version": "11373096570-console.log(\"hi\");\r\nexport { }", - "signature": "11373096570-console.log(\"hi\");\r\nexport { }" + "version": "9084524823-console.log(\"hi\");\nexport { }\n", + "signature": "9084524823-console.log(\"hi\");\nexport { }\n" } }, "root": [ @@ -189,7 +202,7 @@ exitCode:: ExitStatus.undefined ] }, "version": "FakeTSVersion", - "size": 1074 + "size": 1068 } @@ -227,8 +240,19 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -245,7 +269,7 @@ Shape signatures in builder refreshed for:: exitCode:: ExitStatus.undefined //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-9621097780-export interface A {\r\n name: string;\r\n}","signature":"-5014788164-export interface A {\n name: string;\n}\n"},{"version":"-2574605496-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};","signature":"-3531856636-export {};\n"},{"version":"11373096570-console.log(\"hi\");\r\nexport { }","signature":"-3531856636-export {};\n"}],"root":[[2,4]],"options":{"declaration":true,"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-5014788164-export interface A {\n name: string;\n}\n",{"version":"-2574605496-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};","signature":"-3531856636-export {};\n"},{"version":"9084524823-console.log(\"hi\");\nexport { }\n","signature":"-3531856636-export {};\n"}],"root":[[2,4]],"options":{"declaration":true,"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -272,11 +296,7 @@ exitCode:: ExitStatus.undefined "affectsGlobalScope": true }, "../shared/types/db.ts": { - "original": { - "version": "-9621097780-export interface A {\r\n name: string;\r\n}", - "signature": "-5014788164-export interface A {\n name: string;\n}\n" - }, - "version": "-9621097780-export interface A {\r\n name: string;\r\n}", + "version": "-5014788164-export interface A {\n name: string;\n}\n", "signature": "-5014788164-export interface A {\n name: string;\n}\n" }, "../src/main.ts": { @@ -289,10 +309,10 @@ exitCode:: ExitStatus.undefined }, "../src/other.ts": { "original": { - "version": "11373096570-console.log(\"hi\");\r\nexport { }", + "version": "9084524823-console.log(\"hi\");\nexport { }\n", "signature": "-3531856636-export {};\n" }, - "version": "11373096570-console.log(\"hi\");\r\nexport { }", + "version": "9084524823-console.log(\"hi\");\nexport { }\n", "signature": "-3531856636-export {};\n" } }, @@ -328,7 +348,7 @@ exitCode:: ExitStatus.undefined ] }, "version": "FakeTSVersion", - "size": 1215 + "size": 1129 } //// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] @@ -389,8 +409,19 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -407,7 +438,7 @@ Shape signatures in builder refreshed for:: exitCode:: ExitStatus.undefined //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-9621097780-export interface A {\r\n name: string;\r\n}","signature":"-5014788164-export interface A {\n name: string;\n}\n"},{"version":"-11111345725-import { A } from \"../shared/types/db\";\nconst a: string = 10;","signature":"-3531856636-export {};\n"},{"version":"11373096570-console.log(\"hi\");\r\nexport { }","signature":"-3531856636-export {};\n"}],"root":[[2,4]],"options":{"declaration":true,"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"../src/main.ts","start":46,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]],4],"affectedFilesPendingEmit":[3]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-5014788164-export interface A {\n name: string;\n}\n",{"version":"-11111345725-import { A } from \"../shared/types/db\";\nconst a: string = 10;","signature":"-3531856636-export {};\n"},{"version":"9084524823-console.log(\"hi\");\nexport { }\n","signature":"-3531856636-export {};\n"}],"root":[[2,4]],"options":{"declaration":true,"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"../src/main.ts","start":46,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]],4],"affectedFilesPendingEmit":[3]},"version":"FakeTSVersion"} //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -434,11 +465,7 @@ exitCode:: ExitStatus.undefined "affectsGlobalScope": true }, "../shared/types/db.ts": { - "original": { - "version": "-9621097780-export interface A {\r\n name: string;\r\n}", - "signature": "-5014788164-export interface A {\n name: string;\n}\n" - }, - "version": "-9621097780-export interface A {\r\n name: string;\r\n}", + "version": "-5014788164-export interface A {\n name: string;\n}\n", "signature": "-5014788164-export interface A {\n name: string;\n}\n" }, "../src/main.ts": { @@ -451,10 +478,10 @@ exitCode:: ExitStatus.undefined }, "../src/other.ts": { "original": { - "version": "11373096570-console.log(\"hi\");\r\nexport { }", + "version": "9084524823-console.log(\"hi\");\nexport { }\n", "signature": "-3531856636-export {};\n" }, - "version": "11373096570-console.log(\"hi\");\r\nexport { }", + "version": "9084524823-console.log(\"hi\");\nexport { }\n", "signature": "-3531856636-export {};\n" } }, @@ -508,7 +535,7 @@ exitCode:: ExitStatus.undefined ] }, "version": "FakeTSVersion", - "size": 1374 + "size": 1288 } @@ -544,8 +571,19 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -562,7 +600,7 @@ Shape signatures in builder refreshed for:: exitCode:: ExitStatus.undefined //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-9621097780-export interface A {\r\n name: string;\r\n}","signature":"-5014788164-export interface A {\n name: string;\n}\n"},{"version":"-8373351622-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";","signature":"-3531856636-export {};\n"},{"version":"11373096570-console.log(\"hi\");\r\nexport { }","signature":"-3531856636-export {};\n"}],"root":[[2,4]],"options":{"declaration":true,"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-5014788164-export interface A {\n name: string;\n}\n",{"version":"-8373351622-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";","signature":"-3531856636-export {};\n"},{"version":"9084524823-console.log(\"hi\");\nexport { }\n","signature":"-3531856636-export {};\n"}],"root":[[2,4]],"options":{"declaration":true,"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -589,11 +627,7 @@ exitCode:: ExitStatus.undefined "affectsGlobalScope": true }, "../shared/types/db.ts": { - "original": { - "version": "-9621097780-export interface A {\r\n name: string;\r\n}", - "signature": "-5014788164-export interface A {\n name: string;\n}\n" - }, - "version": "-9621097780-export interface A {\r\n name: string;\r\n}", + "version": "-5014788164-export interface A {\n name: string;\n}\n", "signature": "-5014788164-export interface A {\n name: string;\n}\n" }, "../src/main.ts": { @@ -606,10 +640,10 @@ exitCode:: ExitStatus.undefined }, "../src/other.ts": { "original": { - "version": "11373096570-console.log(\"hi\");\r\nexport { }", + "version": "9084524823-console.log(\"hi\");\nexport { }\n", "signature": "-3531856636-export {};\n" }, - "version": "11373096570-console.log(\"hi\");\r\nexport { }", + "version": "9084524823-console.log(\"hi\");\nexport { }\n", "signature": "-3531856636-export {};\n" } }, @@ -645,7 +679,7 @@ exitCode:: ExitStatus.undefined ] }, "version": "FakeTSVersion", - "size": 1206 + "size": 1120 } //// [/user/username/projects/noEmitOnError/dev-build/src/main.js] diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/with-noEmitOnError.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/with-noEmitOnError.js index 0dff01fb8c424..d57338fb0d3b7 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/with-noEmitOnError.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/with-noEmitOnError.js @@ -1,27 +1,29 @@ currentDirectory:: /user/username/projects/noEmitOnError useCaseSensitiveFileNames: false Input:: -//// [/user/username/projects/noEmitOnError/shared/types/db.ts] -export interface A { - name: string; +//// [/user/username/projects/noEmitOnError/tsconfig.json] +{ + "compilerOptions": { + "outDir": "./dev-build", + "noEmitOnError": true + } } +//// [/user/username/projects/noEmitOnError/shared/types/db.ts] +export interface A { + name: string; +} + + //// [/user/username/projects/noEmitOnError/src/main.ts] -import { A } from "../shared/types/db"; -const a = { - lastName: 'sdsd' -; +import { A } from "../shared/types/db"; +const a = { + lastName: 'sdsd' +; -//// [/user/username/projects/noEmitOnError/src/other.ts] -console.log("hi"); -export { } -//// [/user/username/projects/noEmitOnError/tsconfig.json] -{ - "compilerOptions": { - "outDir": "./dev-build", - "noEmitOnError": true - } -} +//// [/user/username/projects/noEmitOnError/src/other.ts] +console.log("hi"); +export { } //// [/a/lib/lib.d.ts] @@ -54,8 +56,18 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"declaration":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "declaration": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -134,8 +146,18 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"declaration":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "declaration": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -209,8 +231,18 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"declaration":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "declaration": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -259,8 +291,18 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"declaration":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "declaration": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/deepImportChanges/errors-for-.d.ts-change-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/deepImportChanges/errors-for-.d.ts-change-with-incremental.js index bdba34066af73..1cadf3527053a 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/deepImportChanges/errors-for-.d.ts-change-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/deepImportChanges/errors-for-.d.ts-change-with-incremental.js @@ -45,8 +45,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.d.ts","/user/username/projects/myproject/c.d.ts"] -Program options: {"watch":true,"isolatedModules":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.d.ts", + "/user/username/projects/myproject/c.d.ts" +] +Program options: { + "watch": true, + "isolatedModules": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -211,8 +220,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.d.ts","/user/username/projects/myproject/c.d.ts"] -Program options: {"watch":true,"isolatedModules":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.d.ts", + "/user/username/projects/myproject/c.d.ts" +] +Program options: { + "watch": true, + "isolatedModules": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -349,8 +367,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.d.ts","/user/username/projects/myproject/c.d.ts"] -Program options: {"watch":true,"isolatedModules":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.d.ts", + "/user/username/projects/myproject/c.d.ts" +] +Program options: { + "watch": true, + "isolatedModules": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -480,8 +507,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.d.ts","/user/username/projects/myproject/c.d.ts"] -Program options: {"watch":true,"isolatedModules":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.d.ts", + "/user/username/projects/myproject/c.d.ts" +] +Program options: { + "watch": true, + "isolatedModules": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/deepImportChanges/errors-for-.d.ts-change.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/deepImportChanges/errors-for-.d.ts-change.js index a75fee9f36391..a4f1c99d9193b 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/deepImportChanges/errors-for-.d.ts-change.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/deepImportChanges/errors-for-.d.ts-change.js @@ -45,8 +45,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.d.ts","/user/username/projects/myproject/c.d.ts"] -Program options: {"watch":true,"isolatedModules":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.d.ts", + "/user/username/projects/myproject/c.d.ts" +] +Program options: { + "watch": true, + "isolatedModules": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -127,8 +135,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.d.ts","/user/username/projects/myproject/c.d.ts"] -Program options: {"watch":true,"isolatedModules":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.d.ts", + "/user/username/projects/myproject/c.d.ts" +] +Program options: { + "watch": true, + "isolatedModules": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -170,8 +186,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.d.ts","/user/username/projects/myproject/c.d.ts"] -Program options: {"watch":true,"isolatedModules":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.d.ts", + "/user/username/projects/myproject/c.d.ts" +] +Program options: { + "watch": true, + "isolatedModules": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -218,8 +242,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.d.ts","/user/username/projects/myproject/c.d.ts"] -Program options: {"watch":true,"isolatedModules":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.d.ts", + "/user/username/projects/myproject/c.d.ts" +] +Program options: { + "watch": true, + "isolatedModules": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/deepImportChanges/errors-for-.ts-change-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/deepImportChanges/errors-for-.ts-change-with-incremental.js index 9536e8fc2b0b0..146ee54967759 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/deepImportChanges/errors-for-.ts-change-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/deepImportChanges/errors-for-.ts-change-with-incremental.js @@ -45,8 +45,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts"] -Program options: {"watch":true,"isolatedModules":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts" +] +Program options: { + "watch": true, + "isolatedModules": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -235,8 +244,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts"] -Program options: {"watch":true,"isolatedModules":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts" +] +Program options: { + "watch": true, + "isolatedModules": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -390,8 +408,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts"] -Program options: {"watch":true,"isolatedModules":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts" +] +Program options: { + "watch": true, + "isolatedModules": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -538,8 +565,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts"] -Program options: {"watch":true,"isolatedModules":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts" +] +Program options: { + "watch": true, + "isolatedModules": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/deepImportChanges/errors-for-.ts-change.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/deepImportChanges/errors-for-.ts-change.js index e293ab972893e..8da79d66ce403 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/deepImportChanges/errors-for-.ts-change.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/deepImportChanges/errors-for-.ts-change.js @@ -45,8 +45,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts"] -Program options: {"watch":true,"isolatedModules":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts" +] +Program options: { + "watch": true, + "isolatedModules": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -152,8 +160,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts"] -Program options: {"watch":true,"isolatedModules":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts" +] +Program options: { + "watch": true, + "isolatedModules": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -208,8 +224,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts"] -Program options: {"watch":true,"isolatedModules":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts" +] +Program options: { + "watch": true, + "isolatedModules": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -269,8 +293,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts"] -Program options: {"watch":true,"isolatedModules":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts" +] +Program options: { + "watch": true, + "isolatedModules": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/file-not-exporting-a-deep-multilevel-import-that-changes-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/file-not-exporting-a-deep-multilevel-import-that-changes-with-incremental.js index fbb43bb2ffb34..ce2278ca9510f 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/file-not-exporting-a-deep-multilevel-import-that-changes-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/file-not-exporting-a-deep-multilevel-import-that-changes-with-incremental.js @@ -75,8 +75,19 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts","/user/username/projects/myproject/d.ts","/user/username/projects/myproject/e.ts"] -Program options: {"watch":true,"isolatedModules":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts", + "/user/username/projects/myproject/d.ts", + "/user/username/projects/myproject/e.ts" +] +Program options: { + "watch": true, + "isolatedModules": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -345,8 +356,19 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts","/user/username/projects/myproject/d.ts","/user/username/projects/myproject/e.ts"] -Program options: {"watch":true,"isolatedModules":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts", + "/user/username/projects/myproject/d.ts", + "/user/username/projects/myproject/e.ts" +] +Program options: { + "watch": true, + "isolatedModules": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -533,8 +555,19 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts","/user/username/projects/myproject/d.ts","/user/username/projects/myproject/e.ts"] -Program options: {"watch":true,"isolatedModules":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts", + "/user/username/projects/myproject/d.ts", + "/user/username/projects/myproject/e.ts" +] +Program options: { + "watch": true, + "isolatedModules": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -740,8 +773,19 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts","/user/username/projects/myproject/d.ts","/user/username/projects/myproject/e.ts"] -Program options: {"watch":true,"isolatedModules":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts", + "/user/username/projects/myproject/d.ts", + "/user/username/projects/myproject/e.ts" +] +Program options: { + "watch": true, + "isolatedModules": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/file-not-exporting-a-deep-multilevel-import-that-changes.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/file-not-exporting-a-deep-multilevel-import-that-changes.js index c619a0f667140..4d22e4ba403e5 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/file-not-exporting-a-deep-multilevel-import-that-changes.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/file-not-exporting-a-deep-multilevel-import-that-changes.js @@ -75,8 +75,18 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts","/user/username/projects/myproject/d.ts","/user/username/projects/myproject/e.ts"] -Program options: {"watch":true,"isolatedModules":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts", + "/user/username/projects/myproject/d.ts", + "/user/username/projects/myproject/e.ts" +] +Program options: { + "watch": true, + "isolatedModules": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -196,8 +206,18 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts","/user/username/projects/myproject/d.ts","/user/username/projects/myproject/e.ts"] -Program options: {"watch":true,"isolatedModules":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts", + "/user/username/projects/myproject/d.ts", + "/user/username/projects/myproject/e.ts" +] +Program options: { + "watch": true, + "isolatedModules": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -265,8 +285,18 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts","/user/username/projects/myproject/d.ts","/user/username/projects/myproject/e.ts"] -Program options: {"watch":true,"isolatedModules":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts", + "/user/username/projects/myproject/d.ts", + "/user/username/projects/myproject/e.ts" +] +Program options: { + "watch": true, + "isolatedModules": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -319,8 +349,18 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts","/user/username/projects/myproject/d.ts","/user/username/projects/myproject/e.ts"] -Program options: {"watch":true,"isolatedModules":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts", + "/user/username/projects/myproject/d.ts", + "/user/username/projects/myproject/e.ts" +] +Program options: { + "watch": true, + "isolatedModules": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/transitive-exports/no-circular-import/export-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/transitive-exports/no-circular-import/export-with-incremental.js index cccabce366795..b95030f82d6b3 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/transitive-exports/no-circular-import/export-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/transitive-exports/no-circular-import/export-with-incremental.js @@ -34,7 +34,14 @@ export class Data { } //// [/user/username/projects/myproject/tsconfig.json] -{"files":["app.ts"],"compilerOptions":{"baseUrl":"."}} +{ + "files": [ + "app.ts" + ], + "compilerOptions": { + "baseUrl": "." + } +} //// [/a/lib/lib.d.ts] /// @@ -59,8 +66,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"isolatedModules":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "isolatedModules": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -359,8 +374,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"isolatedModules":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "isolatedModules": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -548,8 +571,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"isolatedModules":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "isolatedModules": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -730,8 +761,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"isolatedModules":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "isolatedModules": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/transitive-exports/no-circular-import/export.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/transitive-exports/no-circular-import/export.js index 6e1a6e2bf4438..a75e3111638f6 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/transitive-exports/no-circular-import/export.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/transitive-exports/no-circular-import/export.js @@ -34,7 +34,14 @@ export class Data { } //// [/user/username/projects/myproject/tsconfig.json] -{"files":["app.ts"],"compilerOptions":{"baseUrl":"."}} +{ + "files": [ + "app.ts" + ], + "compilerOptions": { + "baseUrl": "." + } +} //// [/a/lib/lib.d.ts] /// @@ -59,8 +66,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"isolatedModules":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "isolatedModules": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -238,8 +252,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"isolatedModules":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "isolatedModules": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -290,8 +311,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"isolatedModules":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "isolatedModules": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -347,8 +375,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"isolatedModules":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "isolatedModules": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/transitive-exports/yes-circular-import/exports-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/transitive-exports/yes-circular-import/exports-with-incremental.js index cd42afccc084d..1baff5fd75055 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/transitive-exports/yes-circular-import/exports-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/transitive-exports/yes-circular-import/exports-with-incremental.js @@ -40,7 +40,14 @@ export class Data2 { } //// [/user/username/projects/myproject/tsconfig.json] -{"files":["app.ts"],"compilerOptions":{"baseUrl":"."}} +{ + "files": [ + "app.ts" + ], + "compilerOptions": { + "baseUrl": "." + } +} //// [/a/lib/lib.d.ts] /// @@ -65,8 +72,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"isolatedModules":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "isolatedModules": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -397,8 +412,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"isolatedModules":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "isolatedModules": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -604,8 +627,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"isolatedModules":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "isolatedModules": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -804,8 +835,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"isolatedModules":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "isolatedModules": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/transitive-exports/yes-circular-import/exports.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/transitive-exports/yes-circular-import/exports.js index 055fd1be6a83b..eb33e34194006 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/transitive-exports/yes-circular-import/exports.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/transitive-exports/yes-circular-import/exports.js @@ -40,7 +40,14 @@ export class Data2 { } //// [/user/username/projects/myproject/tsconfig.json] -{"files":["app.ts"],"compilerOptions":{"baseUrl":"."}} +{ + "files": [ + "app.ts" + ], + "compilerOptions": { + "baseUrl": "." + } +} //// [/a/lib/lib.d.ts] /// @@ -65,8 +72,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"isolatedModules":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "isolatedModules": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -261,8 +275,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"isolatedModules":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "isolatedModules": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -316,8 +337,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"isolatedModules":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "isolatedModules": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -376,8 +404,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"isolatedModules":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "isolatedModules": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/with-noEmitOnError-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/with-noEmitOnError-with-incremental.js index 0047b1011092c..49fd3d634cc45 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/with-noEmitOnError-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/with-noEmitOnError-with-incremental.js @@ -1,27 +1,29 @@ currentDirectory:: /user/username/projects/noEmitOnError useCaseSensitiveFileNames: false Input:: -//// [/user/username/projects/noEmitOnError/shared/types/db.ts] -export interface A { - name: string; +//// [/user/username/projects/noEmitOnError/tsconfig.json] +{ + "compilerOptions": { + "outDir": "./dev-build", + "noEmitOnError": true + } } +//// [/user/username/projects/noEmitOnError/shared/types/db.ts] +export interface A { + name: string; +} + + //// [/user/username/projects/noEmitOnError/src/main.ts] -import { A } from "../shared/types/db"; -const a = { - lastName: 'sdsd' -; +import { A } from "../shared/types/db"; +const a = { + lastName: 'sdsd' +; -//// [/user/username/projects/noEmitOnError/src/other.ts] -console.log("hi"); -export { } -//// [/user/username/projects/noEmitOnError/tsconfig.json] -{ - "compilerOptions": { - "outDir": "./dev-build", - "noEmitOnError": true - } -} +//// [/user/username/projects/noEmitOnError/src/other.ts] +console.log("hi"); +export { } //// [/a/lib/lib.d.ts] @@ -54,8 +56,19 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"isolatedModules":true,"incremental":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "isolatedModules": true, + "incremental": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -100,7 +113,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-9621097780-export interface A {\r\n name: string;\r\n}","2626879346-import { A } from \"../shared/types/db\";\r\nconst a = {\r\n lastName: 'sdsd'\r\n;","11373096570-console.log(\"hi\");\r\nexport { }"],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3,4],"affectedFilesPendingEmit":[2,3,4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-5014788164-export interface A {\n name: string;\n}\n","-2574607723-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;\n","9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3,4],"affectedFilesPendingEmit":[2,3,4]},"version":"FakeTSVersion"} //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -127,16 +140,16 @@ exitCode:: ExitStatus.undefined "affectsGlobalScope": true }, "../shared/types/db.ts": { - "version": "-9621097780-export interface A {\r\n name: string;\r\n}", - "signature": "-9621097780-export interface A {\r\n name: string;\r\n}" + "version": "-5014788164-export interface A {\n name: string;\n}\n", + "signature": "-5014788164-export interface A {\n name: string;\n}\n" }, "../src/main.ts": { - "version": "2626879346-import { A } from \"../shared/types/db\";\r\nconst a = {\r\n lastName: 'sdsd'\r\n;", - "signature": "2626879346-import { A } from \"../shared/types/db\";\r\nconst a = {\r\n lastName: 'sdsd'\r\n;" + "version": "-2574607723-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;\n", + "signature": "-2574607723-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;\n" }, "../src/other.ts": { - "version": "11373096570-console.log(\"hi\");\r\nexport { }", - "signature": "11373096570-console.log(\"hi\");\r\nexport { }" + "version": "9084524823-console.log(\"hi\");\nexport { }\n", + "signature": "9084524823-console.log(\"hi\");\nexport { }\n" } }, "root": [ @@ -188,7 +201,7 @@ exitCode:: ExitStatus.undefined ] }, "version": "FakeTSVersion", - "size": 1055 + "size": 1049 } @@ -226,8 +239,19 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"isolatedModules":true,"incremental":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "isolatedModules": true, + "incremental": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -244,7 +268,7 @@ Shape signatures in builder refreshed for:: exitCode:: ExitStatus.undefined //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-9621097780-export interface A {\r\n name: string;\r\n}",{"version":"-2574605496-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};","signature":"-3531856636-export {};\n"},"11373096570-console.log(\"hi\");\r\nexport { }"],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-5014788164-export interface A {\n name: string;\n}\n",{"version":"-2574605496-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};","signature":"-3531856636-export {};\n"},"9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -271,8 +295,8 @@ exitCode:: ExitStatus.undefined "affectsGlobalScope": true }, "../shared/types/db.ts": { - "version": "-9621097780-export interface A {\r\n name: string;\r\n}", - "signature": "-9621097780-export interface A {\r\n name: string;\r\n}" + "version": "-5014788164-export interface A {\n name: string;\n}\n", + "signature": "-5014788164-export interface A {\n name: string;\n}\n" }, "../src/main.ts": { "original": { @@ -283,8 +307,8 @@ exitCode:: ExitStatus.undefined "signature": "-3531856636-export {};\n" }, "../src/other.ts": { - "version": "11373096570-console.log(\"hi\");\r\nexport { }", - "signature": "11373096570-console.log(\"hi\");\r\nexport { }" + "version": "9084524823-console.log(\"hi\");\nexport { }\n", + "signature": "9084524823-console.log(\"hi\");\nexport { }\n" } }, "root": [ @@ -318,7 +342,7 @@ exitCode:: ExitStatus.undefined ] }, "version": "FakeTSVersion", - "size": 1062 + "size": 1059 } //// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] @@ -365,8 +389,19 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"isolatedModules":true,"incremental":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "isolatedModules": true, + "incremental": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -383,7 +418,7 @@ Shape signatures in builder refreshed for:: exitCode:: ExitStatus.undefined //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-9621097780-export interface A {\r\n name: string;\r\n}",{"version":"-11111345725-import { A } from \"../shared/types/db\";\nconst a: string = 10;","signature":"-3531856636-export {};\n"},"11373096570-console.log(\"hi\");\r\nexport { }"],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"../src/main.ts","start":46,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]],4],"affectedFilesPendingEmit":[3]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-5014788164-export interface A {\n name: string;\n}\n",{"version":"-11111345725-import { A } from \"../shared/types/db\";\nconst a: string = 10;","signature":"-3531856636-export {};\n"},"9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"../src/main.ts","start":46,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]],4],"affectedFilesPendingEmit":[3]},"version":"FakeTSVersion"} //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -410,8 +445,8 @@ exitCode:: ExitStatus.undefined "affectsGlobalScope": true }, "../shared/types/db.ts": { - "version": "-9621097780-export interface A {\r\n name: string;\r\n}", - "signature": "-9621097780-export interface A {\r\n name: string;\r\n}" + "version": "-5014788164-export interface A {\n name: string;\n}\n", + "signature": "-5014788164-export interface A {\n name: string;\n}\n" }, "../src/main.ts": { "original": { @@ -422,8 +457,8 @@ exitCode:: ExitStatus.undefined "signature": "-3531856636-export {};\n" }, "../src/other.ts": { - "version": "11373096570-console.log(\"hi\");\r\nexport { }", - "signature": "11373096570-console.log(\"hi\");\r\nexport { }" + "version": "9084524823-console.log(\"hi\");\nexport { }\n", + "signature": "9084524823-console.log(\"hi\");\nexport { }\n" } }, "root": [ @@ -475,7 +510,7 @@ exitCode:: ExitStatus.undefined ] }, "version": "FakeTSVersion", - "size": 1221 + "size": 1218 } @@ -511,8 +546,19 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"isolatedModules":true,"incremental":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "isolatedModules": true, + "incremental": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -529,7 +575,7 @@ Shape signatures in builder refreshed for:: exitCode:: ExitStatus.undefined //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-9621097780-export interface A {\r\n name: string;\r\n}",{"version":"-8373351622-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";","signature":"-3531856636-export {};\n"},"11373096570-console.log(\"hi\");\r\nexport { }"],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-5014788164-export interface A {\n name: string;\n}\n",{"version":"-8373351622-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";","signature":"-3531856636-export {};\n"},"9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -556,8 +602,8 @@ exitCode:: ExitStatus.undefined "affectsGlobalScope": true }, "../shared/types/db.ts": { - "version": "-9621097780-export interface A {\r\n name: string;\r\n}", - "signature": "-9621097780-export interface A {\r\n name: string;\r\n}" + "version": "-5014788164-export interface A {\n name: string;\n}\n", + "signature": "-5014788164-export interface A {\n name: string;\n}\n" }, "../src/main.ts": { "original": { @@ -568,8 +614,8 @@ exitCode:: ExitStatus.undefined "signature": "-3531856636-export {};\n" }, "../src/other.ts": { - "version": "11373096570-console.log(\"hi\");\r\nexport { }", - "signature": "11373096570-console.log(\"hi\");\r\nexport { }" + "version": "9084524823-console.log(\"hi\");\nexport { }\n", + "signature": "9084524823-console.log(\"hi\");\nexport { }\n" } }, "root": [ @@ -603,7 +649,7 @@ exitCode:: ExitStatus.undefined ] }, "version": "FakeTSVersion", - "size": 1053 + "size": 1050 } //// [/user/username/projects/noEmitOnError/dev-build/src/main.js] diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/with-noEmitOnError.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/with-noEmitOnError.js index 2166ed50d0a2e..420e561535260 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/with-noEmitOnError.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/with-noEmitOnError.js @@ -1,27 +1,29 @@ currentDirectory:: /user/username/projects/noEmitOnError useCaseSensitiveFileNames: false Input:: -//// [/user/username/projects/noEmitOnError/shared/types/db.ts] -export interface A { - name: string; +//// [/user/username/projects/noEmitOnError/tsconfig.json] +{ + "compilerOptions": { + "outDir": "./dev-build", + "noEmitOnError": true + } } +//// [/user/username/projects/noEmitOnError/shared/types/db.ts] +export interface A { + name: string; +} + + //// [/user/username/projects/noEmitOnError/src/main.ts] -import { A } from "../shared/types/db"; -const a = { - lastName: 'sdsd' -; +import { A } from "../shared/types/db"; +const a = { + lastName: 'sdsd' +; -//// [/user/username/projects/noEmitOnError/src/other.ts] -console.log("hi"); -export { } -//// [/user/username/projects/noEmitOnError/tsconfig.json] -{ - "compilerOptions": { - "outDir": "./dev-build", - "noEmitOnError": true - } -} +//// [/user/username/projects/noEmitOnError/src/other.ts] +console.log("hi"); +export { } //// [/a/lib/lib.d.ts] @@ -54,8 +56,18 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"isolatedModules":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "isolatedModules": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -134,8 +146,18 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"isolatedModules":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "isolatedModules": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -195,8 +217,18 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"isolatedModules":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "isolatedModules": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -245,8 +277,18 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"isolatedModules":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "isolatedModules": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/deepImportChanges/errors-for-.d.ts-change-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/deepImportChanges/errors-for-.d.ts-change-with-incremental.js index 88cfeff243936..ca94a51124cf9 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/deepImportChanges/errors-for-.d.ts-change-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/deepImportChanges/errors-for-.d.ts-change-with-incremental.js @@ -45,8 +45,18 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.d.ts","/user/username/projects/myproject/c.d.ts"] -Program options: {"watch":true,"isolatedModules":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.d.ts", + "/user/username/projects/myproject/c.d.ts" +] +Program options: { + "watch": true, + "isolatedModules": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -219,8 +229,18 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.d.ts","/user/username/projects/myproject/c.d.ts"] -Program options: {"watch":true,"isolatedModules":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.d.ts", + "/user/username/projects/myproject/c.d.ts" +] +Program options: { + "watch": true, + "isolatedModules": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -362,8 +382,18 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.d.ts","/user/username/projects/myproject/c.d.ts"] -Program options: {"watch":true,"isolatedModules":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.d.ts", + "/user/username/projects/myproject/c.d.ts" +] +Program options: { + "watch": true, + "isolatedModules": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -498,8 +528,18 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.d.ts","/user/username/projects/myproject/c.d.ts"] -Program options: {"watch":true,"isolatedModules":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.d.ts", + "/user/username/projects/myproject/c.d.ts" +] +Program options: { + "watch": true, + "isolatedModules": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/deepImportChanges/errors-for-.d.ts-change.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/deepImportChanges/errors-for-.d.ts-change.js index bd952f1e14a2b..5fb9a58a6bcf0 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/deepImportChanges/errors-for-.d.ts-change.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/deepImportChanges/errors-for-.d.ts-change.js @@ -45,8 +45,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.d.ts","/user/username/projects/myproject/c.d.ts"] -Program options: {"watch":true,"isolatedModules":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.d.ts", + "/user/username/projects/myproject/c.d.ts" +] +Program options: { + "watch": true, + "isolatedModules": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -131,8 +140,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.d.ts","/user/username/projects/myproject/c.d.ts"] -Program options: {"watch":true,"isolatedModules":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.d.ts", + "/user/username/projects/myproject/c.d.ts" +] +Program options: { + "watch": true, + "isolatedModules": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -175,8 +193,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.d.ts","/user/username/projects/myproject/c.d.ts"] -Program options: {"watch":true,"isolatedModules":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.d.ts", + "/user/username/projects/myproject/c.d.ts" +] +Program options: { + "watch": true, + "isolatedModules": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -224,8 +251,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.d.ts","/user/username/projects/myproject/c.d.ts"] -Program options: {"watch":true,"isolatedModules":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.d.ts", + "/user/username/projects/myproject/c.d.ts" +] +Program options: { + "watch": true, + "isolatedModules": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/deepImportChanges/errors-for-.ts-change-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/deepImportChanges/errors-for-.ts-change-with-incremental.js index c0bfc03ed59fe..e98d3019e5ec5 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/deepImportChanges/errors-for-.ts-change-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/deepImportChanges/errors-for-.ts-change-with-incremental.js @@ -45,8 +45,18 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts"] -Program options: {"watch":true,"isolatedModules":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts" +] +Program options: { + "watch": true, + "isolatedModules": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -264,8 +274,18 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts"] -Program options: {"watch":true,"isolatedModules":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts" +] +Program options: { + "watch": true, + "isolatedModules": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -435,8 +455,18 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts"] -Program options: {"watch":true,"isolatedModules":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts" +] +Program options: { + "watch": true, + "isolatedModules": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -599,8 +629,18 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts"] -Program options: {"watch":true,"isolatedModules":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts" +] +Program options: { + "watch": true, + "isolatedModules": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/deepImportChanges/errors-for-.ts-change.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/deepImportChanges/errors-for-.ts-change.js index 6cb70042cd437..9e5e6751de488 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/deepImportChanges/errors-for-.ts-change.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/deepImportChanges/errors-for-.ts-change.js @@ -45,8 +45,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts"] -Program options: {"watch":true,"isolatedModules":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts" +] +Program options: { + "watch": true, + "isolatedModules": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -169,8 +178,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts"] -Program options: {"watch":true,"isolatedModules":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts" +] +Program options: { + "watch": true, + "isolatedModules": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -233,8 +251,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts"] -Program options: {"watch":true,"isolatedModules":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts" +] +Program options: { + "watch": true, + "isolatedModules": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -302,8 +329,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts"] -Program options: {"watch":true,"isolatedModules":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts" +] +Program options: { + "watch": true, + "isolatedModules": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/file-not-exporting-a-deep-multilevel-import-that-changes-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/file-not-exporting-a-deep-multilevel-import-that-changes-with-incremental.js index 5a48b397595ec..c9a5c7efb78bd 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/file-not-exporting-a-deep-multilevel-import-that-changes-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/file-not-exporting-a-deep-multilevel-import-that-changes-with-incremental.js @@ -75,8 +75,20 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts","/user/username/projects/myproject/d.ts","/user/username/projects/myproject/e.ts"] -Program options: {"watch":true,"isolatedModules":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts", + "/user/username/projects/myproject/d.ts", + "/user/username/projects/myproject/e.ts" +] +Program options: { + "watch": true, + "isolatedModules": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -395,8 +407,20 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts","/user/username/projects/myproject/d.ts","/user/username/projects/myproject/e.ts"] -Program options: {"watch":true,"isolatedModules":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts", + "/user/username/projects/myproject/d.ts", + "/user/username/projects/myproject/e.ts" +] +Program options: { + "watch": true, + "isolatedModules": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -614,8 +638,20 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts","/user/username/projects/myproject/d.ts","/user/username/projects/myproject/e.ts"] -Program options: {"watch":true,"isolatedModules":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts", + "/user/username/projects/myproject/d.ts", + "/user/username/projects/myproject/e.ts" +] +Program options: { + "watch": true, + "isolatedModules": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -852,8 +888,20 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts","/user/username/projects/myproject/d.ts","/user/username/projects/myproject/e.ts"] -Program options: {"watch":true,"isolatedModules":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts", + "/user/username/projects/myproject/d.ts", + "/user/username/projects/myproject/e.ts" +] +Program options: { + "watch": true, + "isolatedModules": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/file-not-exporting-a-deep-multilevel-import-that-changes.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/file-not-exporting-a-deep-multilevel-import-that-changes.js index d4044867a405f..c8cf3905fa9c4 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/file-not-exporting-a-deep-multilevel-import-that-changes.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/file-not-exporting-a-deep-multilevel-import-that-changes.js @@ -75,8 +75,19 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts","/user/username/projects/myproject/d.ts","/user/username/projects/myproject/e.ts"] -Program options: {"watch":true,"isolatedModules":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts", + "/user/username/projects/myproject/d.ts", + "/user/username/projects/myproject/e.ts" +] +Program options: { + "watch": true, + "isolatedModules": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -226,8 +237,19 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts","/user/username/projects/myproject/d.ts","/user/username/projects/myproject/e.ts"] -Program options: {"watch":true,"isolatedModules":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts", + "/user/username/projects/myproject/d.ts", + "/user/username/projects/myproject/e.ts" +] +Program options: { + "watch": true, + "isolatedModules": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -310,8 +332,19 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts","/user/username/projects/myproject/d.ts","/user/username/projects/myproject/e.ts"] -Program options: {"watch":true,"isolatedModules":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts", + "/user/username/projects/myproject/d.ts", + "/user/username/projects/myproject/e.ts" +] +Program options: { + "watch": true, + "isolatedModules": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -379,8 +412,19 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/c.ts","/user/username/projects/myproject/d.ts","/user/username/projects/myproject/e.ts"] -Program options: {"watch":true,"isolatedModules":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/c.ts", + "/user/username/projects/myproject/d.ts", + "/user/username/projects/myproject/e.ts" +] +Program options: { + "watch": true, + "isolatedModules": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/transitive-exports/no-circular-import/export-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/transitive-exports/no-circular-import/export-with-incremental.js index af549b3c4f51f..e03db06d230ce 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/transitive-exports/no-circular-import/export-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/transitive-exports/no-circular-import/export-with-incremental.js @@ -34,7 +34,14 @@ export class Data { } //// [/user/username/projects/myproject/tsconfig.json] -{"files":["app.ts"],"compilerOptions":{"baseUrl":"."}} +{ + "files": [ + "app.ts" + ], + "compilerOptions": { + "baseUrl": "." + } +} //// [/a/lib/lib.d.ts] /// @@ -59,8 +66,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"isolatedModules":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "isolatedModules": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -414,8 +430,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"isolatedModules":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "isolatedModules": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -634,8 +659,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"isolatedModules":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "isolatedModules": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -847,8 +881,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"isolatedModules":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "isolatedModules": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/transitive-exports/no-circular-import/export.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/transitive-exports/no-circular-import/export.js index 94244591a75dd..5f6c685bfe8f5 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/transitive-exports/no-circular-import/export.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/transitive-exports/no-circular-import/export.js @@ -34,7 +34,14 @@ export class Data { } //// [/user/username/projects/myproject/tsconfig.json] -{"files":["app.ts"],"compilerOptions":{"baseUrl":"."}} +{ + "files": [ + "app.ts" + ], + "compilerOptions": { + "baseUrl": "." + } +} //// [/a/lib/lib.d.ts] /// @@ -59,8 +66,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"isolatedModules":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "isolatedModules": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -269,8 +284,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"isolatedModules":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "isolatedModules": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -332,8 +355,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"isolatedModules":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "isolatedModules": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -400,8 +431,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"isolatedModules":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "isolatedModules": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/transitive-exports/yes-circular-import/exports-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/transitive-exports/yes-circular-import/exports-with-incremental.js index c62d73b5b1660..8e818ef220fd6 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/transitive-exports/yes-circular-import/exports-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/transitive-exports/yes-circular-import/exports-with-incremental.js @@ -40,7 +40,14 @@ export class Data2 { } //// [/user/username/projects/myproject/tsconfig.json] -{"files":["app.ts"],"compilerOptions":{"baseUrl":"."}} +{ + "files": [ + "app.ts" + ], + "compilerOptions": { + "baseUrl": "." + } +} //// [/a/lib/lib.d.ts] /// @@ -65,8 +72,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"isolatedModules":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "isolatedModules": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -465,8 +481,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"isolatedModules":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "isolatedModules": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -708,8 +733,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"isolatedModules":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "isolatedModules": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -944,8 +978,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"isolatedModules":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "isolatedModules": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/transitive-exports/yes-circular-import/exports.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/transitive-exports/yes-circular-import/exports.js index 6e08546b9c353..435012fceab33 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/transitive-exports/yes-circular-import/exports.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/transitive-exports/yes-circular-import/exports.js @@ -40,7 +40,14 @@ export class Data2 { } //// [/user/username/projects/myproject/tsconfig.json] -{"files":["app.ts"],"compilerOptions":{"baseUrl":"."}} +{ + "files": [ + "app.ts" + ], + "compilerOptions": { + "baseUrl": "." + } +} //// [/a/lib/lib.d.ts] /// @@ -65,8 +72,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"isolatedModules":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "isolatedModules": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -301,8 +316,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"isolatedModules":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "isolatedModules": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -368,8 +391,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"isolatedModules":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "isolatedModules": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -440,8 +471,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/app.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"isolatedModules":true,"declaration":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/app.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject", + "watch": true, + "isolatedModules": true, + "declaration": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/with-noEmitOnError-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/with-noEmitOnError-with-incremental.js index 1ca7f2d8ca75e..f7594bebd41d8 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/with-noEmitOnError-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/with-noEmitOnError-with-incremental.js @@ -1,27 +1,29 @@ currentDirectory:: /user/username/projects/noEmitOnError useCaseSensitiveFileNames: false Input:: -//// [/user/username/projects/noEmitOnError/shared/types/db.ts] -export interface A { - name: string; +//// [/user/username/projects/noEmitOnError/tsconfig.json] +{ + "compilerOptions": { + "outDir": "./dev-build", + "noEmitOnError": true + } } +//// [/user/username/projects/noEmitOnError/shared/types/db.ts] +export interface A { + name: string; +} + + //// [/user/username/projects/noEmitOnError/src/main.ts] -import { A } from "../shared/types/db"; -const a = { - lastName: 'sdsd' -; +import { A } from "../shared/types/db"; +const a = { + lastName: 'sdsd' +; -//// [/user/username/projects/noEmitOnError/src/other.ts] -console.log("hi"); -export { } -//// [/user/username/projects/noEmitOnError/tsconfig.json] -{ - "compilerOptions": { - "outDir": "./dev-build", - "noEmitOnError": true - } -} +//// [/user/username/projects/noEmitOnError/src/other.ts] +console.log("hi"); +export { } //// [/a/lib/lib.d.ts] @@ -54,8 +56,20 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"isolatedModules":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "isolatedModules": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -100,7 +114,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-9621097780-export interface A {\r\n name: string;\r\n}","2626879346-import { A } from \"../shared/types/db\";\r\nconst a = {\r\n lastName: 'sdsd'\r\n;","11373096570-console.log(\"hi\");\r\nexport { }"],"root":[[2,4]],"options":{"declaration":true,"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3,4],"affectedFilesPendingEmit":[2,3,4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-5014788164-export interface A {\n name: string;\n}\n","-2574607723-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;\n","9084524823-console.log(\"hi\");\nexport { }\n"],"root":[[2,4]],"options":{"declaration":true,"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3,4],"affectedFilesPendingEmit":[2,3,4]},"version":"FakeTSVersion"} //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -127,16 +141,16 @@ exitCode:: ExitStatus.undefined "affectsGlobalScope": true }, "../shared/types/db.ts": { - "version": "-9621097780-export interface A {\r\n name: string;\r\n}", - "signature": "-9621097780-export interface A {\r\n name: string;\r\n}" + "version": "-5014788164-export interface A {\n name: string;\n}\n", + "signature": "-5014788164-export interface A {\n name: string;\n}\n" }, "../src/main.ts": { - "version": "2626879346-import { A } from \"../shared/types/db\";\r\nconst a = {\r\n lastName: 'sdsd'\r\n;", - "signature": "2626879346-import { A } from \"../shared/types/db\";\r\nconst a = {\r\n lastName: 'sdsd'\r\n;" + "version": "-2574607723-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;\n", + "signature": "-2574607723-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n;\n" }, "../src/other.ts": { - "version": "11373096570-console.log(\"hi\");\r\nexport { }", - "signature": "11373096570-console.log(\"hi\");\r\nexport { }" + "version": "9084524823-console.log(\"hi\");\nexport { }\n", + "signature": "9084524823-console.log(\"hi\");\nexport { }\n" } }, "root": [ @@ -189,7 +203,7 @@ exitCode:: ExitStatus.undefined ] }, "version": "FakeTSVersion", - "size": 1074 + "size": 1068 } @@ -227,8 +241,20 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"isolatedModules":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "isolatedModules": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -245,7 +271,7 @@ Shape signatures in builder refreshed for:: exitCode:: ExitStatus.undefined //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-9621097780-export interface A {\r\n name: string;\r\n}","signature":"-5014788164-export interface A {\n name: string;\n}\n"},{"version":"-2574605496-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};","signature":"-3531856636-export {};\n"},{"version":"11373096570-console.log(\"hi\");\r\nexport { }","signature":"-3531856636-export {};\n"}],"root":[[2,4]],"options":{"declaration":true,"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-5014788164-export interface A {\n name: string;\n}\n",{"version":"-2574605496-import { A } from \"../shared/types/db\";\nconst a = {\n lastName: 'sdsd'\n};","signature":"-3531856636-export {};\n"},{"version":"9084524823-console.log(\"hi\");\nexport { }\n","signature":"-3531856636-export {};\n"}],"root":[[2,4]],"options":{"declaration":true,"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -272,11 +298,7 @@ exitCode:: ExitStatus.undefined "affectsGlobalScope": true }, "../shared/types/db.ts": { - "original": { - "version": "-9621097780-export interface A {\r\n name: string;\r\n}", - "signature": "-5014788164-export interface A {\n name: string;\n}\n" - }, - "version": "-9621097780-export interface A {\r\n name: string;\r\n}", + "version": "-5014788164-export interface A {\n name: string;\n}\n", "signature": "-5014788164-export interface A {\n name: string;\n}\n" }, "../src/main.ts": { @@ -289,10 +311,10 @@ exitCode:: ExitStatus.undefined }, "../src/other.ts": { "original": { - "version": "11373096570-console.log(\"hi\");\r\nexport { }", + "version": "9084524823-console.log(\"hi\");\nexport { }\n", "signature": "-3531856636-export {};\n" }, - "version": "11373096570-console.log(\"hi\");\r\nexport { }", + "version": "9084524823-console.log(\"hi\");\nexport { }\n", "signature": "-3531856636-export {};\n" } }, @@ -328,7 +350,7 @@ exitCode:: ExitStatus.undefined ] }, "version": "FakeTSVersion", - "size": 1215 + "size": 1129 } //// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] @@ -389,8 +411,20 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"isolatedModules":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "isolatedModules": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -407,7 +441,7 @@ Shape signatures in builder refreshed for:: exitCode:: ExitStatus.undefined //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-9621097780-export interface A {\r\n name: string;\r\n}","signature":"-5014788164-export interface A {\n name: string;\n}\n"},{"version":"-11111345725-import { A } from \"../shared/types/db\";\nconst a: string = 10;","signature":"-3531856636-export {};\n"},{"version":"11373096570-console.log(\"hi\");\r\nexport { }","signature":"-3531856636-export {};\n"}],"root":[[2,4]],"options":{"declaration":true,"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"../src/main.ts","start":46,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]],4],"affectedFilesPendingEmit":[3]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-5014788164-export interface A {\n name: string;\n}\n",{"version":"-11111345725-import { A } from \"../shared/types/db\";\nconst a: string = 10;","signature":"-3531856636-export {};\n"},{"version":"9084524823-console.log(\"hi\");\nexport { }\n","signature":"-3531856636-export {};\n"}],"root":[[2,4]],"options":{"declaration":true,"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"../src/main.ts","start":46,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]],4],"affectedFilesPendingEmit":[3]},"version":"FakeTSVersion"} //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -434,11 +468,7 @@ exitCode:: ExitStatus.undefined "affectsGlobalScope": true }, "../shared/types/db.ts": { - "original": { - "version": "-9621097780-export interface A {\r\n name: string;\r\n}", - "signature": "-5014788164-export interface A {\n name: string;\n}\n" - }, - "version": "-9621097780-export interface A {\r\n name: string;\r\n}", + "version": "-5014788164-export interface A {\n name: string;\n}\n", "signature": "-5014788164-export interface A {\n name: string;\n}\n" }, "../src/main.ts": { @@ -451,10 +481,10 @@ exitCode:: ExitStatus.undefined }, "../src/other.ts": { "original": { - "version": "11373096570-console.log(\"hi\");\r\nexport { }", + "version": "9084524823-console.log(\"hi\");\nexport { }\n", "signature": "-3531856636-export {};\n" }, - "version": "11373096570-console.log(\"hi\");\r\nexport { }", + "version": "9084524823-console.log(\"hi\");\nexport { }\n", "signature": "-3531856636-export {};\n" } }, @@ -508,7 +538,7 @@ exitCode:: ExitStatus.undefined ] }, "version": "FakeTSVersion", - "size": 1374 + "size": 1288 } @@ -544,8 +574,20 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"isolatedModules":true,"declaration":true,"incremental":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "isolatedModules": true, + "declaration": true, + "incremental": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -562,7 +604,7 @@ Shape signatures in builder refreshed for:: exitCode:: ExitStatus.undefined //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-9621097780-export interface A {\r\n name: string;\r\n}","signature":"-5014788164-export interface A {\n name: string;\n}\n"},{"version":"-8373351622-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";","signature":"-3531856636-export {};\n"},{"version":"11373096570-console.log(\"hi\");\r\nexport { }","signature":"-3531856636-export {};\n"}],"root":[[2,4]],"options":{"declaration":true,"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../shared/types/db.ts","../src/main.ts","../src/other.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-5014788164-export interface A {\n name: string;\n}\n",{"version":"-8373351622-import { A } from \"../shared/types/db\";\nconst a: string = \"hello\";","signature":"-3531856636-export {};\n"},{"version":"9084524823-console.log(\"hi\");\nexport { }\n","signature":"-3531856636-export {};\n"}],"root":[[2,4]],"options":{"declaration":true,"noEmitOnError":true,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} //// [/user/username/projects/noEmitOnError/dev-build/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -589,11 +631,7 @@ exitCode:: ExitStatus.undefined "affectsGlobalScope": true }, "../shared/types/db.ts": { - "original": { - "version": "-9621097780-export interface A {\r\n name: string;\r\n}", - "signature": "-5014788164-export interface A {\n name: string;\n}\n" - }, - "version": "-9621097780-export interface A {\r\n name: string;\r\n}", + "version": "-5014788164-export interface A {\n name: string;\n}\n", "signature": "-5014788164-export interface A {\n name: string;\n}\n" }, "../src/main.ts": { @@ -606,10 +644,10 @@ exitCode:: ExitStatus.undefined }, "../src/other.ts": { "original": { - "version": "11373096570-console.log(\"hi\");\r\nexport { }", + "version": "9084524823-console.log(\"hi\");\nexport { }\n", "signature": "-3531856636-export {};\n" }, - "version": "11373096570-console.log(\"hi\");\r\nexport { }", + "version": "9084524823-console.log(\"hi\");\nexport { }\n", "signature": "-3531856636-export {};\n" } }, @@ -645,7 +683,7 @@ exitCode:: ExitStatus.undefined ] }, "version": "FakeTSVersion", - "size": 1206 + "size": 1120 } //// [/user/username/projects/noEmitOnError/dev-build/src/main.js] diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/with-noEmitOnError.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/with-noEmitOnError.js index 59f500e53c262..a037efab9f29b 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/with-noEmitOnError.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/with-noEmitOnError.js @@ -1,27 +1,29 @@ currentDirectory:: /user/username/projects/noEmitOnError useCaseSensitiveFileNames: false Input:: -//// [/user/username/projects/noEmitOnError/shared/types/db.ts] -export interface A { - name: string; +//// [/user/username/projects/noEmitOnError/tsconfig.json] +{ + "compilerOptions": { + "outDir": "./dev-build", + "noEmitOnError": true + } } +//// [/user/username/projects/noEmitOnError/shared/types/db.ts] +export interface A { + name: string; +} + + //// [/user/username/projects/noEmitOnError/src/main.ts] -import { A } from "../shared/types/db"; -const a = { - lastName: 'sdsd' -; +import { A } from "../shared/types/db"; +const a = { + lastName: 'sdsd' +; -//// [/user/username/projects/noEmitOnError/src/other.ts] -console.log("hi"); -export { } -//// [/user/username/projects/noEmitOnError/tsconfig.json] -{ - "compilerOptions": { - "outDir": "./dev-build", - "noEmitOnError": true - } -} +//// [/user/username/projects/noEmitOnError/src/other.ts] +console.log("hi"); +export { } //// [/a/lib/lib.d.ts] @@ -54,8 +56,19 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"isolatedModules":true,"declaration":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "isolatedModules": true, + "declaration": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -134,8 +147,19 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"isolatedModules":true,"declaration":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "isolatedModules": true, + "declaration": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -209,8 +233,19 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"isolatedModules":true,"declaration":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "isolatedModules": true, + "declaration": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -259,8 +294,19 @@ Output:: -Program root files: ["/user/username/projects/noEmitOnError/shared/types/db.ts","/user/username/projects/noEmitOnError/src/main.ts","/user/username/projects/noEmitOnError/src/other.ts"] -Program options: {"outDir":"/user/username/projects/noEmitOnError/dev-build","noEmitOnError":true,"watch":true,"isolatedModules":true,"declaration":true,"configFilePath":"/user/username/projects/noEmitOnError/tsconfig.json"} +Program root files: [ + "/user/username/projects/noEmitOnError/shared/types/db.ts", + "/user/username/projects/noEmitOnError/src/main.ts", + "/user/username/projects/noEmitOnError/src/other.ts" +] +Program options: { + "outDir": "/user/username/projects/noEmitOnError/dev-build", + "noEmitOnError": true, + "watch": true, + "isolatedModules": true, + "declaration": true, + "configFilePath": "/user/username/projects/noEmitOnError/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/extends/resolves-the-symlink-path.js b/tests/baselines/reference/tscWatch/extends/resolves-the-symlink-path.js index 71f9401a95d65..58819ee0bea4d 100644 --- a/tests/baselines/reference/tscWatch/extends/resolves-the-symlink-path.js +++ b/tests/baselines/reference/tscWatch/extends/resolves-the-symlink-path.js @@ -1,10 +1,19 @@ currentDirectory:: /users/user/projects/myproject useCaseSensitiveFileNames: false Input:: //// [/users/user/projects/myconfigs/node_modules/@something/tsconfig-node/tsconfig.json] -{"extends":"@something/tsconfig-base/tsconfig.json","compilerOptions":{"removeComments":true}} +{ + "extends": "@something/tsconfig-base/tsconfig.json", + "compilerOptions": { + "removeComments": true + } +} //// [/users/user/projects/myconfigs/node_modules/@something/tsconfig-base/tsconfig.json] -{"compilerOptions":{"composite":true}} +{ + "compilerOptions": { + "composite": true + } +} //// [/users/user/projects/myproject/src/index.ts] // some comment @@ -12,7 +21,9 @@ export const x = 10; //// [/users/user/projects/myproject/src/tsconfig.json] -{"extends":"@something/tsconfig-node/tsconfig.json"} +{ + "extends": "@something/tsconfig-node/tsconfig.json" +} //// [/users/user/projects/myproject/node_modules/@something/tsconfig-node] symlink(/users/user/projects/myconfigs/node_modules/@something/tsconfig-node) //// [/a/lib/lib.d.ts] @@ -55,8 +66,17 @@ FileWatcher:: Added:: WatchInfo: /users/user/projects/myconfigs/node_modules/@so FileWatcher:: Added:: WatchInfo: /users/user/projects/myconfigs/node_modules/@something/tsconfig-base/tsconfig.json 2000 undefined Extended config file -Program root files: ["/users/user/projects/myproject/src/index.ts"] -Program options: {"composite":true,"removeComments":true,"watch":true,"project":"/users/user/projects/myproject/src","extendedDiagnostics":true,"configFilePath":"/users/user/projects/myproject/src/tsconfig.json"} +Program root files: [ + "/users/user/projects/myproject/src/index.ts" +] +Program options: { + "composite": true, + "removeComments": true, + "watch": true, + "project": "/users/user/projects/myproject/src", + "extendedDiagnostics": true, + "configFilePath": "/users/user/projects/myproject/src/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/jsxImportSource-option-changed.js b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/jsxImportSource-option-changed.js index 60456324fb449..38a95b404be20 100644 --- a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/jsxImportSource-option-changed.js +++ b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/jsxImportSource-option-changed.js @@ -28,13 +28,26 @@ export const Fragment: unique symbol; //// [/user/username/projects/myproject/node_modules/react/package.json] -{"name":"react","version":"0.0.1"} +{ + "name": "react", + "version": "0.0.1" +} //// [/user/username/projects/myproject/index.tsx] export const App = () =>
; //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"jsx":"react-jsx","jsxImportSource":"react","forceConsistentCasingInFileNames":true},"files":["node_modules/react/Jsx-Runtime/index.d.ts","index.tsx"]} +{ + "compilerOptions": { + "jsx": "react-jsx", + "jsxImportSource": "react", + "forceConsistentCasingInFileNames": true + }, + "files": [ + "node_modules/react/Jsx-Runtime/index.d.ts", + "index.tsx" + ] +} /a/lib/tsc.js --w --p . --explainFiles @@ -47,9 +60,9 @@ Output:: Part of 'files' list in tsconfig.json Imported via "react/jsx-runtime" from file '/user/username/projects/myproject/index.tsx' with packageId 'react/jsx-runtime/index.d.ts@0.0.1' to import 'jsx' and 'jsxs' factory functions - tsconfig.json:1:115 - 1 {"compilerOptions":{"jsx":"react-jsx","jsxImportSource":"react","forceConsistentCasingInFileNames":true},"files":["node_modules/react/Jsx-Runtime/index.d.ts","index.tsx"]} -    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + tsconfig.json:8:5 + 8 "node_modules/react/Jsx-Runtime/index.d.ts", +    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ File is matched by 'files' list specified here. ../../../../a/lib/lib.d.ts @@ -63,8 +76,19 @@ index.tsx -Program root files: ["/user/username/projects/myproject/node_modules/react/Jsx-Runtime/index.d.ts","/user/username/projects/myproject/index.tsx"] -Program options: {"jsx":4,"jsxImportSource":"react","forceConsistentCasingInFileNames":true,"watch":true,"project":"/user/username/projects/myproject","explainFiles":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/node_modules/react/Jsx-Runtime/index.d.ts", + "/user/username/projects/myproject/index.tsx" +] +Program options: { + "jsx": 4, + "jsxImportSource": "react", + "forceConsistentCasingInFileNames": true, + "watch": true, + "project": "/user/username/projects/myproject", + "explainFiles": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/package-json-is-looked-up-for-file.js b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/package-json-is-looked-up-for-file.js index ccea906a266e5..37ff96f87802d 100644 --- a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/package-json-is-looked-up-for-file.js +++ b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/package-json-is-looked-up-for-file.js @@ -1,7 +1,12 @@ currentDirectory:: /Users/name/projects/lib-boilerplate useCaseSensitiveFileNames: false Input:: //// [/Users/name/projects/lib-boilerplate/package.json] -{"name":"lib-boilerplate","version":"0.0.2","type":"module","exports":"./src/index.ts"} +{ + "name": "lib-boilerplate", + "version": "0.0.2", + "type": "module", + "exports": "./src/index.ts" +} //// [/Users/name/projects/lib-boilerplate/src/index.ts] export function thing(): void {} @@ -12,7 +17,14 @@ import { thing } from 'lib-boilerplate' //// [/Users/name/projects/lib-boilerplate/tsconfig.json] -{"compilerOptions":{"module":"node16","target":"es2021","forceConsistentCasingInFileNames":true,"traceResolution":true}} +{ + "compilerOptions": { + "module": "node16", + "target": "es2021", + "forceConsistentCasingInFileNames": true, + "traceResolution": true + } +} //// [/a/lib/lib.es2021.full.d.ts] /// @@ -62,8 +74,19 @@ test/basic.spec.ts -Program root files: ["/Users/name/projects/lib-boilerplate/src/index.ts","/Users/name/projects/lib-boilerplate/test/basic.spec.ts"] -Program options: {"module":100,"target":8,"forceConsistentCasingInFileNames":true,"traceResolution":true,"watch":true,"explainFiles":true,"configFilePath":"/Users/name/projects/lib-boilerplate/tsconfig.json"} +Program root files: [ + "/Users/name/projects/lib-boilerplate/src/index.ts", + "/Users/name/projects/lib-boilerplate/test/basic.spec.ts" +] +Program options: { + "module": 100, + "target": 8, + "forceConsistentCasingInFileNames": true, + "traceResolution": true, + "watch": true, + "explainFiles": true, + "configFilePath": "/Users/name/projects/lib-boilerplate/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.es2021.full.d.ts diff --git a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/self-name-package-reference.js b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/self-name-package-reference.js index aaf89bd7e7f9d..fa6992c1a5b0a 100644 --- a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/self-name-package-reference.js +++ b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/self-name-package-reference.js @@ -1,7 +1,13 @@ currentDirectory:: /Users/name/projects/web useCaseSensitiveFileNames: false Input:: //// [/Users/name/projects/web/package.json] -{"name":"@this/package","type":"module","exports":{".":"./dist/index.js"}} +{ + "name": "@this/package", + "type": "module", + "exports": { + ".": "./dist/index.js" + } +} //// [/Users/name/projects/web/index.ts] import * as me from "@this/package"; @@ -10,7 +16,16 @@ export function thing(): void {} //// [/Users/name/projects/web/tsconfig.json] -{"compilerOptions":{"module":"nodenext","outDir":"./dist","declarationDir":"./types","composite":true,"forceConsistentCasingInFileNames":true,"traceResolution":true}} +{ + "compilerOptions": { + "module": "nodenext", + "outDir": "./dist", + "declarationDir": "./types", + "composite": true, + "forceConsistentCasingInFileNames": true, + "traceResolution": true + } +} //// [/a/lib/lib.esnext.full.d.ts] /// @@ -53,8 +68,20 @@ index.ts -Program root files: ["/Users/name/projects/web/index.ts"] -Program options: {"module":199,"outDir":"/Users/name/projects/web/dist","declarationDir":"/Users/name/projects/web/types","composite":true,"forceConsistentCasingInFileNames":true,"traceResolution":true,"watch":true,"explainFiles":true,"configFilePath":"/Users/name/projects/web/tsconfig.json"} +Program root files: [ + "/Users/name/projects/web/index.ts" +] +Program options: { + "module": 199, + "outDir": "/Users/name/projects/web/dist", + "declarationDir": "/Users/name/projects/web/types", + "composite": true, + "forceConsistentCasingInFileNames": true, + "traceResolution": true, + "watch": true, + "explainFiles": true, + "configFilePath": "/Users/name/projects/web/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.esnext.full.d.ts diff --git a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-Windows-style-drive-root-is-lowercase.js b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-Windows-style-drive-root-is-lowercase.js index f77e12df532bc..ad14d7fe1c68d 100644 --- a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-Windows-style-drive-root-is-lowercase.js +++ b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-Windows-style-drive-root-is-lowercase.js @@ -28,7 +28,11 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [c:/project/tsconfig.json] -{"compilerOptions":{"forceConsistentCasingInFileNames":true}} +{ + "compilerOptions": { + "forceConsistentCasingInFileNames": true + } +} c:/a/lib/tsc.js --w --p c://project --explainFiles @@ -48,8 +52,17 @@ project/b.ts -Program root files: ["c:/project/a.ts","c:/project/b.ts"] -Program options: {"forceConsistentCasingInFileNames":true,"watch":true,"project":"c:/project","explainFiles":true,"configFilePath":"c:/project/tsconfig.json"} +Program root files: [ + "c:/project/a.ts", + "c:/project/b.ts" +] +Program options: { + "forceConsistentCasingInFileNames": true, + "watch": true, + "project": "c:/project", + "explainFiles": true, + "configFilePath": "c:/project/tsconfig.json" +} Program structureReused: Not Program files:: c:/a/lib/lib.d.ts @@ -134,8 +147,17 @@ project/b.ts -Program root files: ["c:/project/a.ts","c:/project/b.ts"] -Program options: {"forceConsistentCasingInFileNames":true,"watch":true,"project":"c:/project","explainFiles":true,"configFilePath":"c:/project/tsconfig.json"} +Program root files: [ + "c:/project/a.ts", + "c:/project/b.ts" +] +Program options: { + "forceConsistentCasingInFileNames": true, + "watch": true, + "project": "c:/project", + "explainFiles": true, + "configFilePath": "c:/project/tsconfig.json" +} Program structureReused: Completely Program files:: c:/a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-Windows-style-drive-root-is-uppercase.js b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-Windows-style-drive-root-is-uppercase.js index 90dc5a513e600..492c2a6740414 100644 --- a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-Windows-style-drive-root-is-uppercase.js +++ b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-Windows-style-drive-root-is-uppercase.js @@ -28,7 +28,11 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [C:/project/tsconfig.json] -{"compilerOptions":{"forceConsistentCasingInFileNames":true}} +{ + "compilerOptions": { + "forceConsistentCasingInFileNames": true + } +} C:/a/lib/tsc.js --w --p C://project --explainFiles @@ -48,8 +52,17 @@ project/b.ts -Program root files: ["C:/project/a.ts","C:/project/b.ts"] -Program options: {"forceConsistentCasingInFileNames":true,"watch":true,"project":"C:/project","explainFiles":true,"configFilePath":"C:/project/tsconfig.json"} +Program root files: [ + "C:/project/a.ts", + "C:/project/b.ts" +] +Program options: { + "forceConsistentCasingInFileNames": true, + "watch": true, + "project": "C:/project", + "explainFiles": true, + "configFilePath": "C:/project/tsconfig.json" +} Program structureReused: Not Program files:: C:/a/lib/lib.d.ts @@ -134,8 +147,17 @@ project/b.ts -Program root files: ["C:/project/a.ts","C:/project/b.ts"] -Program options: {"forceConsistentCasingInFileNames":true,"watch":true,"project":"C:/project","explainFiles":true,"configFilePath":"C:/project/tsconfig.json"} +Program root files: [ + "C:/project/a.ts", + "C:/project/b.ts" +] +Program options: { + "forceConsistentCasingInFileNames": true, + "watch": true, + "project": "C:/project", + "explainFiles": true, + "configFilePath": "C:/project/tsconfig.json" +} Program structureReused: Completely Program files:: C:/a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-both-directory-symlink-target-and-import-match-disk.js b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-both-directory-symlink-target-and-import-match-disk.js index 55f54601cec63..84b063bf3100c 100644 --- a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-both-directory-symlink-target-and-import-match-disk.js +++ b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-both-directory-symlink-target-and-import-match-disk.js @@ -29,7 +29,13 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"forceConsistentCasingInFileNames":true,"outFile":"out.js","module":"system"}} +{ + "compilerOptions": { + "forceConsistentCasingInFileNames": true, + "outFile": "out.js", + "module": "system" + } +} /a/lib/tsc.js --w --p . --explainFiles @@ -50,8 +56,19 @@ b.ts -Program root files: ["/user/username/projects/myproject/b.ts","/user/username/projects/myproject/XY/a.ts"] -Program options: {"forceConsistentCasingInFileNames":true,"outFile":"/user/username/projects/myproject/out.js","module":4,"watch":true,"project":"/user/username/projects/myproject","explainFiles":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/XY/a.ts" +] +Program options: { + "forceConsistentCasingInFileNames": true, + "outFile": "/user/username/projects/myproject/out.js", + "module": 4, + "watch": true, + "project": "/user/username/projects/myproject", + "explainFiles": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -165,8 +182,19 @@ b.ts -Program root files: ["/user/username/projects/myproject/b.ts","/user/username/projects/myproject/XY/a.ts"] -Program options: {"forceConsistentCasingInFileNames":true,"outFile":"/user/username/projects/myproject/out.js","module":4,"watch":true,"project":"/user/username/projects/myproject","explainFiles":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/XY/a.ts" +] +Program options: { + "forceConsistentCasingInFileNames": true, + "outFile": "/user/username/projects/myproject/out.js", + "module": 4, + "watch": true, + "project": "/user/username/projects/myproject", + "explainFiles": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-both-file-symlink-target-and-import-match-disk.js b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-both-file-symlink-target-and-import-match-disk.js index 119960efc7a94..2538a1e6a75fa 100644 --- a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-both-file-symlink-target-and-import-match-disk.js +++ b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-both-file-symlink-target-and-import-match-disk.js @@ -29,7 +29,11 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"forceConsistentCasingInFileNames":true}} +{ + "compilerOptions": { + "forceConsistentCasingInFileNames": true + } +} /a/lib/tsc.js --w --p . --explainFiles @@ -51,8 +55,18 @@ b.ts -Program root files: ["/user/username/projects/myproject/XY.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/link.ts"] -Program options: {"forceConsistentCasingInFileNames":true,"watch":true,"project":"/user/username/projects/myproject","explainFiles":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/XY.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/link.ts" +] +Program options: { + "forceConsistentCasingInFileNames": true, + "watch": true, + "project": "/user/username/projects/myproject", + "explainFiles": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -154,8 +168,18 @@ b.ts -Program root files: ["/user/username/projects/myproject/XY.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/link.ts"] -Program options: {"forceConsistentCasingInFileNames":true,"watch":true,"project":"/user/username/projects/myproject","explainFiles":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/XY.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/link.ts" +] +Program options: { + "forceConsistentCasingInFileNames": true, + "watch": true, + "project": "/user/username/projects/myproject", + "explainFiles": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-changing-module-name-with-different-casing.js b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-changing-module-name-with-different-casing.js index 6b389ad800f3d..0ea0ff839d08f 100644 --- a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-changing-module-name-with-different-casing.js +++ b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-changing-module-name-with-different-casing.js @@ -7,7 +7,11 @@ export class logger { } import { logger } from "./logger"; new logger(); //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"forceConsistentCasingInFileNames":true}} +{ + "compilerOptions": { + "forceConsistentCasingInFileNames": true + } +} //// [/a/lib/lib.d.ts] /// @@ -32,8 +36,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/another.ts","/user/username/projects/myproject/logger.ts"] -Program options: {"forceConsistentCasingInFileNames":true,"watch":true,"project":"/user/username/projects/myproject/tsconfig.json","configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/another.ts", + "/user/username/projects/myproject/logger.ts" +] +Program options: { + "forceConsistentCasingInFileNames": true, + "watch": true, + "project": "/user/username/projects/myproject/tsconfig.json", + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -118,8 +130,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/another.ts","/user/username/projects/myproject/logger.ts"] -Program options: {"forceConsistentCasingInFileNames":true,"watch":true,"project":"/user/username/projects/myproject/tsconfig.json","configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/another.ts", + "/user/username/projects/myproject/logger.ts" +] +Program options: { + "forceConsistentCasingInFileNames": true, + "watch": true, + "project": "/user/username/projects/myproject/tsconfig.json", + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-directory-symlink-target-matches-disk-but-import-does-not.js b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-directory-symlink-target-matches-disk-but-import-does-not.js index 1b66862a2dac4..bb19cf9c04645 100644 --- a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-directory-symlink-target-matches-disk-but-import-does-not.js +++ b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-directory-symlink-target-matches-disk-but-import-does-not.js @@ -29,7 +29,13 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"forceConsistentCasingInFileNames":true,"outFile":"out.js","module":"system"}} +{ + "compilerOptions": { + "forceConsistentCasingInFileNames": true, + "outFile": "out.js", + "module": "system" + } +} /a/lib/tsc.js --w --p . --explainFiles @@ -50,8 +56,19 @@ b.ts -Program root files: ["/user/username/projects/myproject/b.ts","/user/username/projects/myproject/XY/a.ts"] -Program options: {"forceConsistentCasingInFileNames":true,"outFile":"/user/username/projects/myproject/out.js","module":4,"watch":true,"project":"/user/username/projects/myproject","explainFiles":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/XY/a.ts" +] +Program options: { + "forceConsistentCasingInFileNames": true, + "outFile": "/user/username/projects/myproject/out.js", + "module": 4, + "watch": true, + "project": "/user/username/projects/myproject", + "explainFiles": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -165,8 +182,19 @@ b.ts -Program root files: ["/user/username/projects/myproject/b.ts","/user/username/projects/myproject/XY/a.ts"] -Program options: {"forceConsistentCasingInFileNames":true,"outFile":"/user/username/projects/myproject/out.js","module":4,"watch":true,"project":"/user/username/projects/myproject","explainFiles":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/XY/a.ts" +] +Program options: { + "forceConsistentCasingInFileNames": true, + "outFile": "/user/username/projects/myproject/out.js", + "module": 4, + "watch": true, + "project": "/user/username/projects/myproject", + "explainFiles": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-file-symlink-target-matches-disk-but-import-does-not.js b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-file-symlink-target-matches-disk-but-import-does-not.js index a930ebce2f574..d3805cb204384 100644 --- a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-file-symlink-target-matches-disk-but-import-does-not.js +++ b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-file-symlink-target-matches-disk-but-import-does-not.js @@ -29,7 +29,11 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"forceConsistentCasingInFileNames":true}} +{ + "compilerOptions": { + "forceConsistentCasingInFileNames": true + } +} /a/lib/tsc.js --w --p . --explainFiles @@ -51,8 +55,18 @@ b.ts -Program root files: ["/user/username/projects/myproject/XY.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/link.ts"] -Program options: {"forceConsistentCasingInFileNames":true,"watch":true,"project":"/user/username/projects/myproject","explainFiles":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/XY.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/link.ts" +] +Program options: { + "forceConsistentCasingInFileNames": true, + "watch": true, + "project": "/user/username/projects/myproject", + "explainFiles": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -154,8 +168,18 @@ b.ts -Program root files: ["/user/username/projects/myproject/XY.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/link.ts"] -Program options: {"forceConsistentCasingInFileNames":true,"watch":true,"project":"/user/username/projects/myproject","explainFiles":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/XY.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/link.ts" +] +Program options: { + "forceConsistentCasingInFileNames": true, + "watch": true, + "project": "/user/username/projects/myproject", + "explainFiles": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-import,-directory-symlink-target,-and-disk-are-all-different.js b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-import,-directory-symlink-target,-and-disk-are-all-different.js index a09a582546c59..c44afd5afacba 100644 --- a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-import,-directory-symlink-target,-and-disk-are-all-different.js +++ b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-import,-directory-symlink-target,-and-disk-are-all-different.js @@ -29,7 +29,13 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"forceConsistentCasingInFileNames":true,"outFile":"out.js","module":"system"}} +{ + "compilerOptions": { + "forceConsistentCasingInFileNames": true, + "outFile": "out.js", + "module": "system" + } +} /a/lib/tsc.js --w --p . --explainFiles @@ -54,8 +60,19 @@ XY/a.ts -Program root files: ["/user/username/projects/myproject/b.ts","/user/username/projects/myproject/XY/a.ts"] -Program options: {"forceConsistentCasingInFileNames":true,"outFile":"/user/username/projects/myproject/out.js","module":4,"watch":true,"project":"/user/username/projects/myproject","explainFiles":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/XY/a.ts" +] +Program options: { + "forceConsistentCasingInFileNames": true, + "outFile": "/user/username/projects/myproject/out.js", + "module": 4, + "watch": true, + "project": "/user/username/projects/myproject", + "explainFiles": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -175,8 +192,19 @@ XY/a.ts -Program root files: ["/user/username/projects/myproject/b.ts","/user/username/projects/myproject/XY/a.ts"] -Program options: {"forceConsistentCasingInFileNames":true,"outFile":"/user/username/projects/myproject/out.js","module":4,"watch":true,"project":"/user/username/projects/myproject","explainFiles":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/XY/a.ts" +] +Program options: { + "forceConsistentCasingInFileNames": true, + "outFile": "/user/username/projects/myproject/out.js", + "module": 4, + "watch": true, + "project": "/user/username/projects/myproject", + "explainFiles": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-import,-file-symlink-target,-and-disk-are-all-different.js b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-import,-file-symlink-target,-and-disk-are-all-different.js index e145178c77a78..eda5e61bc4643 100644 --- a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-import,-file-symlink-target,-and-disk-are-all-different.js +++ b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-import,-file-symlink-target,-and-disk-are-all-different.js @@ -29,7 +29,11 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"forceConsistentCasingInFileNames":true}} +{ + "compilerOptions": { + "forceConsistentCasingInFileNames": true + } +} /a/lib/tsc.js --w --p . --explainFiles @@ -55,8 +59,18 @@ b.ts -Program root files: ["/user/username/projects/myproject/XY.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/link.ts"] -Program options: {"forceConsistentCasingInFileNames":true,"watch":true,"project":"/user/username/projects/myproject","explainFiles":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/XY.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/link.ts" +] +Program options: { + "forceConsistentCasingInFileNames": true, + "watch": true, + "project": "/user/username/projects/myproject", + "explainFiles": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -166,8 +180,18 @@ b.ts -Program root files: ["/user/username/projects/myproject/XY.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/link.ts"] -Program options: {"forceConsistentCasingInFileNames":true,"watch":true,"project":"/user/username/projects/myproject","explainFiles":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/XY.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/link.ts" +] +Program options: { + "forceConsistentCasingInFileNames": true, + "watch": true, + "project": "/user/username/projects/myproject", + "explainFiles": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-import-and-directory-symlink-target-agree-but-do-not-match-disk.js b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-import-and-directory-symlink-target-agree-but-do-not-match-disk.js index 2727bca99eda4..cd68babe34954 100644 --- a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-import-and-directory-symlink-target-agree-but-do-not-match-disk.js +++ b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-import-and-directory-symlink-target-agree-but-do-not-match-disk.js @@ -29,7 +29,13 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"forceConsistentCasingInFileNames":true,"outFile":"out.js","module":"system"}} +{ + "compilerOptions": { + "forceConsistentCasingInFileNames": true, + "outFile": "out.js", + "module": "system" + } +} /a/lib/tsc.js --w --p . --explainFiles @@ -58,8 +64,19 @@ b.ts -Program root files: ["/user/username/projects/myproject/b.ts","/user/username/projects/myproject/XY/a.ts"] -Program options: {"forceConsistentCasingInFileNames":true,"outFile":"/user/username/projects/myproject/out.js","module":4,"watch":true,"project":"/user/username/projects/myproject","explainFiles":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/XY/a.ts" +] +Program options: { + "forceConsistentCasingInFileNames": true, + "outFile": "/user/username/projects/myproject/out.js", + "module": 4, + "watch": true, + "project": "/user/username/projects/myproject", + "explainFiles": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -181,8 +198,19 @@ b.ts -Program root files: ["/user/username/projects/myproject/b.ts","/user/username/projects/myproject/XY/a.ts"] -Program options: {"forceConsistentCasingInFileNames":true,"outFile":"/user/username/projects/myproject/out.js","module":4,"watch":true,"project":"/user/username/projects/myproject","explainFiles":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/XY/a.ts" +] +Program options: { + "forceConsistentCasingInFileNames": true, + "outFile": "/user/username/projects/myproject/out.js", + "module": 4, + "watch": true, + "project": "/user/username/projects/myproject", + "explainFiles": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-import-and-file-symlink-target-agree-but-do-not-match-disk.js b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-import-and-file-symlink-target-agree-but-do-not-match-disk.js index 5d4f12711ff4c..19aafa216778f 100644 --- a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-import-and-file-symlink-target-agree-but-do-not-match-disk.js +++ b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-import-and-file-symlink-target-agree-but-do-not-match-disk.js @@ -29,7 +29,11 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"forceConsistentCasingInFileNames":true}} +{ + "compilerOptions": { + "forceConsistentCasingInFileNames": true + } +} /a/lib/tsc.js --w --p . --explainFiles @@ -59,8 +63,18 @@ b.ts -Program root files: ["/user/username/projects/myproject/XY.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/link.ts"] -Program options: {"forceConsistentCasingInFileNames":true,"watch":true,"project":"/user/username/projects/myproject","explainFiles":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/XY.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/link.ts" +] +Program options: { + "forceConsistentCasingInFileNames": true, + "watch": true, + "project": "/user/username/projects/myproject", + "explainFiles": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -170,8 +184,18 @@ b.ts -Program root files: ["/user/username/projects/myproject/XY.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/link.ts"] -Program options: {"forceConsistentCasingInFileNames":true,"watch":true,"project":"/user/username/projects/myproject","explainFiles":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/XY.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/link.ts" +] +Program options: { + "forceConsistentCasingInFileNames": true, + "watch": true, + "project": "/user/username/projects/myproject", + "explainFiles": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-import-matches-disk-but-directory-symlink-target-does-not.js b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-import-matches-disk-but-directory-symlink-target-does-not.js index 76299296a21e9..a197c70a47f50 100644 --- a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-import-matches-disk-but-directory-symlink-target-does-not.js +++ b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-import-matches-disk-but-directory-symlink-target-does-not.js @@ -29,7 +29,13 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"forceConsistentCasingInFileNames":true,"outFile":"out.js","module":"system"}} +{ + "compilerOptions": { + "forceConsistentCasingInFileNames": true, + "outFile": "out.js", + "module": "system" + } +} /a/lib/tsc.js --w --p . --explainFiles @@ -58,8 +64,19 @@ b.ts -Program root files: ["/user/username/projects/myproject/b.ts","/user/username/projects/myproject/XY/a.ts"] -Program options: {"forceConsistentCasingInFileNames":true,"outFile":"/user/username/projects/myproject/out.js","module":4,"watch":true,"project":"/user/username/projects/myproject","explainFiles":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/XY/a.ts" +] +Program options: { + "forceConsistentCasingInFileNames": true, + "outFile": "/user/username/projects/myproject/out.js", + "module": 4, + "watch": true, + "project": "/user/username/projects/myproject", + "explainFiles": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -181,8 +198,19 @@ b.ts -Program root files: ["/user/username/projects/myproject/b.ts","/user/username/projects/myproject/XY/a.ts"] -Program options: {"forceConsistentCasingInFileNames":true,"outFile":"/user/username/projects/myproject/out.js","module":4,"watch":true,"project":"/user/username/projects/myproject","explainFiles":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/XY/a.ts" +] +Program options: { + "forceConsistentCasingInFileNames": true, + "outFile": "/user/username/projects/myproject/out.js", + "module": 4, + "watch": true, + "project": "/user/username/projects/myproject", + "explainFiles": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-import-matches-disk-but-file-symlink-target-does-not.js b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-import-matches-disk-but-file-symlink-target-does-not.js index b39b1366f03f4..d11f43007642e 100644 --- a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-import-matches-disk-but-file-symlink-target-does-not.js +++ b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-import-matches-disk-but-file-symlink-target-does-not.js @@ -29,7 +29,11 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"forceConsistentCasingInFileNames":true}} +{ + "compilerOptions": { + "forceConsistentCasingInFileNames": true + } +} /a/lib/tsc.js --w --p . --explainFiles @@ -59,8 +63,18 @@ b.ts -Program root files: ["/user/username/projects/myproject/XY.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/link.ts"] -Program options: {"forceConsistentCasingInFileNames":true,"watch":true,"project":"/user/username/projects/myproject","explainFiles":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/XY.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/link.ts" +] +Program options: { + "forceConsistentCasingInFileNames": true, + "watch": true, + "project": "/user/username/projects/myproject", + "explainFiles": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -170,8 +184,18 @@ b.ts -Program root files: ["/user/username/projects/myproject/XY.ts","/user/username/projects/myproject/b.ts","/user/username/projects/myproject/link.ts"] -Program options: {"forceConsistentCasingInFileNames":true,"watch":true,"project":"/user/username/projects/myproject","explainFiles":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/XY.ts", + "/user/username/projects/myproject/b.ts", + "/user/username/projects/myproject/link.ts" +] +Program options: { + "forceConsistentCasingInFileNames": true, + "watch": true, + "project": "/user/username/projects/myproject", + "explainFiles": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-relative-information-file-location-changes.js b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-relative-information-file-location-changes.js index 98160e1af6984..61690b76c48a9 100644 --- a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-relative-information-file-location-changes.js +++ b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-relative-information-file-location-changes.js @@ -23,7 +23,11 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"forceConsistentCasingInFileNames":true}} +{ + "compilerOptions": { + "forceConsistentCasingInFileNames": true + } +} /a/lib/tsc.js --w --p . --explainFiles @@ -73,8 +77,18 @@ moduleB.ts -Program root files: ["/user/username/projects/myproject/moduleA.ts","/user/username/projects/myproject/moduleB.ts","/user/username/projects/myproject/moduleC.ts"] -Program options: {"forceConsistentCasingInFileNames":true,"watch":true,"project":"/user/username/projects/myproject","explainFiles":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/moduleA.ts", + "/user/username/projects/myproject/moduleB.ts", + "/user/username/projects/myproject/moduleC.ts" +] +Program options: { + "forceConsistentCasingInFileNames": true, + "watch": true, + "project": "/user/username/projects/myproject", + "explainFiles": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -193,8 +207,18 @@ moduleB.ts -Program root files: ["/user/username/projects/myproject/moduleA.ts","/user/username/projects/myproject/moduleB.ts","/user/username/projects/myproject/moduleC.ts"] -Program options: {"forceConsistentCasingInFileNames":true,"watch":true,"project":"/user/username/projects/myproject","explainFiles":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/moduleA.ts", + "/user/username/projects/myproject/moduleB.ts", + "/user/username/projects/myproject/moduleC.ts" +] +Program options: { + "forceConsistentCasingInFileNames": true, + "watch": true, + "project": "/user/username/projects/myproject", + "explainFiles": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-renaming-file-with-different-casing.js b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-renaming-file-with-different-casing.js index 71b5b67224560..de0c93d5d2be9 100644 --- a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-renaming-file-with-different-casing.js +++ b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/when-renaming-file-with-different-casing.js @@ -7,7 +7,11 @@ export class logger { } import { logger } from "./logger"; new logger(); //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"forceConsistentCasingInFileNames":true}} +{ + "compilerOptions": { + "forceConsistentCasingInFileNames": true + } +} //// [/a/lib/lib.d.ts] /// @@ -32,8 +36,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/another.ts","/user/username/projects/myproject/logger.ts"] -Program options: {"forceConsistentCasingInFileNames":true,"watch":true,"project":"/user/username/projects/myproject/tsconfig.json","configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/another.ts", + "/user/username/projects/myproject/logger.ts" +] +Program options: { + "forceConsistentCasingInFileNames": true, + "watch": true, + "project": "/user/username/projects/myproject/tsconfig.json", + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -116,8 +128,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/Logger.ts","/user/username/projects/myproject/another.ts"] -Program options: {"forceConsistentCasingInFileNames":true,"watch":true,"project":"/user/username/projects/myproject/tsconfig.json","configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/Logger.ts", + "/user/username/projects/myproject/another.ts" +] +Program options: { + "forceConsistentCasingInFileNames": true, + "watch": true, + "project": "/user/username/projects/myproject/tsconfig.json", + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/with-nodeNext-resolution.js b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/with-nodeNext-resolution.js index 4f912ea478d4a..7d51c0dca1b68 100644 --- a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/with-nodeNext-resolution.js +++ b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/with-nodeNext-resolution.js @@ -10,10 +10,27 @@ export function foo(): void; export function foo(): void; //// [/Users/name/projects/web/node_modules/@types/yargs/package.json] -{"name":"yargs","version":"17.0.12","exports":{".":{"types":{"import":"./index.d.mts","default":"./index.d.ts"}}}} +{ + "name": "yargs", + "version": "17.0.12", + "exports": { + ".": { + "types": { + "import": "./index.d.mts", + "default": "./index.d.ts" + } + } + } +} //// [/Users/name/projects/web/tsconfig.json] -{"compilerOptions":{"moduleResolution":"nodenext","forceConsistentCasingInFileNames":true,"traceResolution":true}} +{ + "compilerOptions": { + "moduleResolution": "nodenext", + "forceConsistentCasingInFileNames": true, + "traceResolution": true + } +} //// [/a/lib/lib.d.ts] /// @@ -98,8 +115,17 @@ src/bin.ts -Program root files: ["/Users/name/projects/web/src/bin.ts"] -Program options: {"moduleResolution":99,"forceConsistentCasingInFileNames":true,"traceResolution":true,"watch":true,"explainFiles":true,"configFilePath":"/Users/name/projects/web/tsconfig.json"} +Program root files: [ + "/Users/name/projects/web/src/bin.ts" +] +Program options: { + "moduleResolution": 99, + "forceConsistentCasingInFileNames": true, + "traceResolution": true, + "watch": true, + "explainFiles": true, + "configFilePath": "/Users/name/projects/web/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/incremental/editing-module-augmentation-incremental.js b/tests/baselines/reference/tscWatch/incremental/editing-module-augmentation-incremental.js index ee71eefcd1ab4..8b05138be2eed 100644 --- a/tests/baselines/reference/tscWatch/incremental/editing-module-augmentation-incremental.js +++ b/tests/baselines/reference/tscWatch/incremental/editing-module-augmentation-incremental.js @@ -25,15 +25,27 @@ export {}; declare module "classnames" { interface Result { foo } } import classNames from "classnames"; classNames().foo; //// [/users/username/projects/project/tsconfig.json] -{"compilerOptions":{"module":"commonjs","incremental":true}} +{ + "compilerOptions": { + "module": "commonjs", + "incremental": true + } +} /a/lib/tsc.js -i Output:: -Program root files: ["/users/username/projects/project/src/index.ts","/users/username/projects/project/src/types/classnames.d.ts"] -Program options: {"module":1,"incremental":true,"configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/src/index.ts", + "/users/username/projects/project/src/types/classnames.d.ts" +] +Program options: { + "module": 1, + "incremental": true, + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -167,8 +179,15 @@ Found 1 error in src/index.ts:1 -Program root files: ["/users/username/projects/project/src/index.ts","/users/username/projects/project/src/types/classnames.d.ts"] -Program options: {"module":1,"incremental":true,"configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/src/index.ts", + "/users/username/projects/project/src/types/classnames.d.ts" +] +Program options: { + "module": 1, + "incremental": true, + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/incremental/editing-module-augmentation-watch.js b/tests/baselines/reference/tscWatch/incremental/editing-module-augmentation-watch.js index b90ea80342159..c65fd6e3d3c85 100644 --- a/tests/baselines/reference/tscWatch/incremental/editing-module-augmentation-watch.js +++ b/tests/baselines/reference/tscWatch/incremental/editing-module-augmentation-watch.js @@ -25,7 +25,12 @@ export {}; declare module "classnames" { interface Result { foo } } import classNames from "classnames"; classNames().foo; //// [/users/username/projects/project/tsconfig.json] -{"compilerOptions":{"module":"commonjs","incremental":true}} +{ + "compilerOptions": { + "module": "commonjs", + "incremental": true + } +} /a/lib/tsc.js -w @@ -37,8 +42,16 @@ Output:: -Program root files: ["/users/username/projects/project/src/index.ts","/users/username/projects/project/src/types/classnames.d.ts"] -Program options: {"module":1,"incremental":true,"watch":true,"configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/src/index.ts", + "/users/username/projects/project/src/types/classnames.d.ts" +] +Program options: { + "module": 1, + "incremental": true, + "watch": true, + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -226,8 +239,16 @@ Output:: -Program root files: ["/users/username/projects/project/src/index.ts","/users/username/projects/project/src/types/classnames.d.ts"] -Program options: {"module":1,"incremental":true,"watch":true,"configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/src/index.ts", + "/users/username/projects/project/src/types/classnames.d.ts" +] +Program options: { + "module": 1, + "incremental": true, + "watch": true, + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/incremental/importHelpers-backing-types-removed-incremental.js b/tests/baselines/reference/tscWatch/incremental/importHelpers-backing-types-removed-incremental.js index 97f6540d25f46..84eb0d76296f3 100644 --- a/tests/baselines/reference/tscWatch/incremental/importHelpers-backing-types-removed-incremental.js +++ b/tests/baselines/reference/tscWatch/incremental/importHelpers-backing-types-removed-incremental.js @@ -19,21 +19,34 @@ declare const console: { log(msg: any): void; }; export function __assign(...args: any[]): any; //// [/users/username/projects/project/node_modules/tslib/package.json] -{"name":"tslib","version":"0.0.1"} +{ + "name": "tslib", + "version": "0.0.1" +} //// [/users/username/projects/project/index.tsx] export const x = {...{}}; //// [/users/username/projects/project/tsconfig.json] -{"compilerOptions":{"importHelpers":true}} +{ + "compilerOptions": { + "importHelpers": true + } +} /a/lib/tsc.js -i Output:: -Program root files: ["/users/username/projects/project/index.tsx"] -Program options: {"importHelpers":true,"incremental":true,"configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/index.tsx" +] +Program options: { + "importHelpers": true, + "incremental": true, + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -142,8 +155,14 @@ Found 1 error in index.tsx:1 -Program root files: ["/users/username/projects/project/index.tsx"] -Program options: {"importHelpers":true,"incremental":true,"configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/index.tsx" +] +Program options: { + "importHelpers": true, + "incremental": true, + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/incremental/importHelpers-backing-types-removed-watch.js b/tests/baselines/reference/tscWatch/incremental/importHelpers-backing-types-removed-watch.js index 77445f3a553fc..2429fafbdb007 100644 --- a/tests/baselines/reference/tscWatch/incremental/importHelpers-backing-types-removed-watch.js +++ b/tests/baselines/reference/tscWatch/incremental/importHelpers-backing-types-removed-watch.js @@ -19,13 +19,20 @@ declare const console: { log(msg: any): void; }; export function __assign(...args: any[]): any; //// [/users/username/projects/project/node_modules/tslib/package.json] -{"name":"tslib","version":"0.0.1"} +{ + "name": "tslib", + "version": "0.0.1" +} //// [/users/username/projects/project/index.tsx] export const x = {...{}}; //// [/users/username/projects/project/tsconfig.json] -{"compilerOptions":{"importHelpers":true}} +{ + "compilerOptions": { + "importHelpers": true + } +} /a/lib/tsc.js -w @@ -37,8 +44,14 @@ Output:: -Program root files: ["/users/username/projects/project/index.tsx"] -Program options: {"importHelpers":true,"watch":true,"configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/index.tsx" +] +Program options: { + "importHelpers": true, + "watch": true, + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -133,8 +146,14 @@ Output:: -Program root files: ["/users/username/projects/project/index.tsx"] -Program options: {"importHelpers":true,"watch":true,"configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/index.tsx" +] +Program options: { + "importHelpers": true, + "watch": true, + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/incremental/incremental-with-circular-references-incremental.js b/tests/baselines/reference/tscWatch/incremental/incremental-with-circular-references-incremental.js index 8649e6e4adddf..8360ce0862984 100644 --- a/tests/baselines/reference/tscWatch/incremental/incremental-with-circular-references-incremental.js +++ b/tests/baselines/reference/tscWatch/incremental/incremental-with-circular-references-incremental.js @@ -41,15 +41,35 @@ export { C } from "./c"; //// [/users/username/projects/project/tsconfig.json] -{"compilerOptions":{"incremental":true,"target":"es5","module":"commonjs","declaration":true,"emitDeclarationOnly":true}} +{ + "compilerOptions": { + "incremental": true, + "target": "es5", + "module": "commonjs", + "declaration": true, + "emitDeclarationOnly": true + } +} /a/lib/tsc.js -i Output:: -Program root files: ["/users/username/projects/project/a.ts","/users/username/projects/project/b.ts","/users/username/projects/project/c.ts","/users/username/projects/project/index.ts"] -Program options: {"incremental":true,"target":1,"module":1,"declaration":true,"emitDeclarationOnly":true,"configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/a.ts", + "/users/username/projects/project/b.ts", + "/users/username/projects/project/c.ts", + "/users/username/projects/project/index.ts" +] +Program options: { + "incremental": true, + "target": 1, + "module": 1, + "declaration": true, + "emitDeclarationOnly": true, + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -237,8 +257,20 @@ export interface A { Output:: -Program root files: ["/users/username/projects/project/a.ts","/users/username/projects/project/b.ts","/users/username/projects/project/c.ts","/users/username/projects/project/index.ts"] -Program options: {"incremental":true,"target":1,"module":1,"declaration":true,"emitDeclarationOnly":true,"configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/a.ts", + "/users/username/projects/project/b.ts", + "/users/username/projects/project/c.ts", + "/users/username/projects/project/index.ts" +] +Program options: { + "incremental": true, + "target": 1, + "module": 1, + "declaration": true, + "emitDeclarationOnly": true, + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/incremental/incremental-with-circular-references-watch.js b/tests/baselines/reference/tscWatch/incremental/incremental-with-circular-references-watch.js index db85a3c7ac4c1..9258c3d53a192 100644 --- a/tests/baselines/reference/tscWatch/incremental/incremental-with-circular-references-watch.js +++ b/tests/baselines/reference/tscWatch/incremental/incremental-with-circular-references-watch.js @@ -41,7 +41,15 @@ export { C } from "./c"; //// [/users/username/projects/project/tsconfig.json] -{"compilerOptions":{"incremental":true,"target":"es5","module":"commonjs","declaration":true,"emitDeclarationOnly":true}} +{ + "compilerOptions": { + "incremental": true, + "target": "es5", + "module": "commonjs", + "declaration": true, + "emitDeclarationOnly": true + } +} /a/lib/tsc.js -w @@ -53,8 +61,21 @@ Output:: -Program root files: ["/users/username/projects/project/a.ts","/users/username/projects/project/b.ts","/users/username/projects/project/c.ts","/users/username/projects/project/index.ts"] -Program options: {"incremental":true,"target":1,"module":1,"declaration":true,"emitDeclarationOnly":true,"watch":true,"configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/a.ts", + "/users/username/projects/project/b.ts", + "/users/username/projects/project/c.ts", + "/users/username/projects/project/index.ts" +] +Program options: { + "incremental": true, + "target": 1, + "module": 1, + "declaration": true, + "emitDeclarationOnly": true, + "watch": true, + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -295,8 +316,21 @@ Output:: -Program root files: ["/users/username/projects/project/a.ts","/users/username/projects/project/b.ts","/users/username/projects/project/c.ts","/users/username/projects/project/index.ts"] -Program options: {"incremental":true,"target":1,"module":1,"declaration":true,"emitDeclarationOnly":true,"watch":true,"configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/a.ts", + "/users/username/projects/project/b.ts", + "/users/username/projects/project/c.ts", + "/users/username/projects/project/index.ts" +] +Program options: { + "incremental": true, + "target": 1, + "module": 1, + "declaration": true, + "emitDeclarationOnly": true, + "watch": true, + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/incremental/jsxImportSource-backing-types-added-incremental.js b/tests/baselines/reference/tscWatch/incremental/jsxImportSource-backing-types-added-incremental.js index a4316e0718dae..10299e37b5ad3 100644 --- a/tests/baselines/reference/tscWatch/incremental/jsxImportSource-backing-types-added-incremental.js +++ b/tests/baselines/reference/tscWatch/incremental/jsxImportSource-backing-types-added-incremental.js @@ -19,7 +19,14 @@ declare const console: { log(msg: any): void; }; export const App = () =>
; //// [/users/username/projects/project/tsconfig.json] -{"compilerOptions":{"module":"commonjs","jsx":"react-jsx","incremental":true,"jsxImportSource":"react"}} +{ + "compilerOptions": { + "module": "commonjs", + "jsx": "react-jsx", + "incremental": true, + "jsxImportSource": "react" + } +} /a/lib/tsc.js -i @@ -34,8 +41,16 @@ Found 1 error in index.tsx:1 -Program root files: ["/users/username/projects/project/index.tsx"] -Program options: {"module":1,"jsx":4,"incremental":true,"jsxImportSource":"react","configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/index.tsx" +] +Program options: { + "module": 1, + "jsx": 4, + "incremental": true, + "jsxImportSource": "react", + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -138,14 +153,25 @@ export const Fragment: unique symbol; //// [/users/username/projects/project/node_modules/react/package.json] -{"name":"react","version":"0.0.1"} +{ + "name": "react", + "version": "0.0.1" +} Output:: -Program root files: ["/users/username/projects/project/index.tsx"] -Program options: {"module":1,"jsx":4,"incremental":true,"jsxImportSource":"react","configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/index.tsx" +] +Program options: { + "module": 1, + "jsx": 4, + "incremental": true, + "jsxImportSource": "react", + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/incremental/jsxImportSource-backing-types-added-watch.js b/tests/baselines/reference/tscWatch/incremental/jsxImportSource-backing-types-added-watch.js index 0a29440b6d4ee..01a2a12443742 100644 --- a/tests/baselines/reference/tscWatch/incremental/jsxImportSource-backing-types-added-watch.js +++ b/tests/baselines/reference/tscWatch/incremental/jsxImportSource-backing-types-added-watch.js @@ -19,7 +19,14 @@ declare const console: { log(msg: any): void; }; export const App = () =>
; //// [/users/username/projects/project/tsconfig.json] -{"compilerOptions":{"module":"commonjs","jsx":"react-jsx","incremental":true,"jsxImportSource":"react"}} +{ + "compilerOptions": { + "module": "commonjs", + "jsx": "react-jsx", + "incremental": true, + "jsxImportSource": "react" + } +} /a/lib/tsc.js -w @@ -36,8 +43,17 @@ Output:: -Program root files: ["/users/username/projects/project/index.tsx"] -Program options: {"module":1,"jsx":4,"incremental":true,"jsxImportSource":"react","watch":true,"configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/index.tsx" +] +Program options: { + "module": 1, + "jsx": 4, + "incremental": true, + "jsxImportSource": "react", + "watch": true, + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -162,7 +178,10 @@ export const Fragment: unique symbol; //// [/users/username/projects/project/node_modules/react/package.json] -{"name":"react","version":"0.0.1"} +{ + "name": "react", + "version": "0.0.1" +} PolledWatches *deleted*:: @@ -195,8 +214,17 @@ Output:: -Program root files: ["/users/username/projects/project/index.tsx"] -Program options: {"module":1,"jsx":4,"incremental":true,"jsxImportSource":"react","watch":true,"configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/index.tsx" +] +Program options: { + "module": 1, + "jsx": 4, + "incremental": true, + "jsxImportSource": "react", + "watch": true, + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/incremental/jsxImportSource-backing-types-removed-incremental.js b/tests/baselines/reference/tscWatch/incremental/jsxImportSource-backing-types-removed-incremental.js index 97860cde08eb8..41e5616b18cf9 100644 --- a/tests/baselines/reference/tscWatch/incremental/jsxImportSource-backing-types-removed-incremental.js +++ b/tests/baselines/reference/tscWatch/incremental/jsxImportSource-backing-types-removed-incremental.js @@ -30,21 +30,39 @@ export const Fragment: unique symbol; //// [/users/username/projects/project/node_modules/react/package.json] -{"name":"react","version":"0.0.1"} +{ + "name": "react", + "version": "0.0.1" +} //// [/users/username/projects/project/index.tsx] export const App = () =>
; //// [/users/username/projects/project/tsconfig.json] -{"compilerOptions":{"module":"commonjs","jsx":"react-jsx","incremental":true,"jsxImportSource":"react"}} +{ + "compilerOptions": { + "module": "commonjs", + "jsx": "react-jsx", + "incremental": true, + "jsxImportSource": "react" + } +} /a/lib/tsc.js -i Output:: -Program root files: ["/users/username/projects/project/index.tsx"] -Program options: {"module":1,"jsx":4,"incremental":true,"jsxImportSource":"react","configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/index.tsx" +] +Program options: { + "module": 1, + "jsx": 4, + "incremental": true, + "jsxImportSource": "react", + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -156,8 +174,16 @@ Found 1 error in index.tsx:1 -Program root files: ["/users/username/projects/project/index.tsx"] -Program options: {"module":1,"jsx":4,"incremental":true,"jsxImportSource":"react","configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/index.tsx" +] +Program options: { + "module": 1, + "jsx": 4, + "incremental": true, + "jsxImportSource": "react", + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/incremental/jsxImportSource-backing-types-removed-watch.js b/tests/baselines/reference/tscWatch/incremental/jsxImportSource-backing-types-removed-watch.js index ef185935d332a..718da7bdd575f 100644 --- a/tests/baselines/reference/tscWatch/incremental/jsxImportSource-backing-types-removed-watch.js +++ b/tests/baselines/reference/tscWatch/incremental/jsxImportSource-backing-types-removed-watch.js @@ -30,13 +30,23 @@ export const Fragment: unique symbol; //// [/users/username/projects/project/node_modules/react/package.json] -{"name":"react","version":"0.0.1"} +{ + "name": "react", + "version": "0.0.1" +} //// [/users/username/projects/project/index.tsx] export const App = () =>
; //// [/users/username/projects/project/tsconfig.json] -{"compilerOptions":{"module":"commonjs","jsx":"react-jsx","incremental":true,"jsxImportSource":"react"}} +{ + "compilerOptions": { + "module": "commonjs", + "jsx": "react-jsx", + "incremental": true, + "jsxImportSource": "react" + } +} /a/lib/tsc.js -w @@ -48,8 +58,17 @@ Output:: -Program root files: ["/users/username/projects/project/index.tsx"] -Program options: {"module":1,"jsx":4,"incremental":true,"jsxImportSource":"react","watch":true,"configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/index.tsx" +] +Program options: { + "module": 1, + "jsx": 4, + "incremental": true, + "jsxImportSource": "react", + "watch": true, + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -211,8 +230,17 @@ Output:: -Program root files: ["/users/username/projects/project/index.tsx"] -Program options: {"module":1,"jsx":4,"incremental":true,"jsxImportSource":"react","watch":true,"configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/index.tsx" +] +Program options: { + "module": 1, + "jsx": 4, + "incremental": true, + "jsxImportSource": "react", + "watch": true, + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/incremental/jsxImportSource-option-changed-incremental.js b/tests/baselines/reference/tscWatch/incremental/jsxImportSource-option-changed-incremental.js index 2399c9782f913..9498b80cf9259 100644 --- a/tests/baselines/reference/tscWatch/incremental/jsxImportSource-option-changed-incremental.js +++ b/tests/baselines/reference/tscWatch/incremental/jsxImportSource-option-changed-incremental.js @@ -30,7 +30,10 @@ export const Fragment: unique symbol; //// [/users/username/projects/project/node_modules/react/package.json] -{"name":"react","version":"0.0.1"} +{ + "name": "react", + "version": "0.0.1" +} //// [/users/username/projects/project/node_modules/preact/jsx-runtime/index.d.ts] export namespace JSX { @@ -47,13 +50,23 @@ export const Fragment: unique symbol; //// [/users/username/projects/project/node_modules/preact/package.json] -{"name":"preact","version":"0.0.1"} +{ + "name": "preact", + "version": "0.0.1" +} //// [/users/username/projects/project/index.tsx] export const App = () =>
; //// [/users/username/projects/project/tsconfig.json] -{"compilerOptions":{"module":"commonjs","jsx":"react-jsx","incremental":true,"jsxImportSource":"react"}} +{ + "compilerOptions": { + "module": "commonjs", + "jsx": "react-jsx", + "incremental": true, + "jsxImportSource": "react" + } +} /a/lib/tsc.js -i --explainFiles @@ -66,8 +79,17 @@ index.tsx Matched by default include pattern '**/*' -Program root files: ["/users/username/projects/project/index.tsx"] -Program options: {"module":1,"jsx":4,"incremental":true,"jsxImportSource":"react","explainFiles":true,"configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/index.tsx" +] +Program options: { + "module": 1, + "jsx": 4, + "incremental": true, + "jsxImportSource": "react", + "explainFiles": true, + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -166,7 +188,14 @@ Change:: Input:: //// [/users/username/projects/project/tsconfig.json] -{"compilerOptions":{"module":"commonjs","jsx":"react-jsx","incremental":true,"jsxImportSource":"preact"}} +{ + "compilerOptions": { + "module": "commonjs", + "jsx": "react-jsx", + "incremental": true, + "jsxImportSource": "preact" + } +} Output:: @@ -187,8 +216,17 @@ Found 1 error in index.tsx:1 -Program root files: ["/users/username/projects/project/index.tsx"] -Program options: {"module":1,"jsx":4,"incremental":true,"jsxImportSource":"preact","explainFiles":true,"configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/index.tsx" +] +Program options: { + "module": 1, + "jsx": 4, + "incremental": true, + "jsxImportSource": "preact", + "explainFiles": true, + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/incremental/jsxImportSource-option-changed-watch.js b/tests/baselines/reference/tscWatch/incremental/jsxImportSource-option-changed-watch.js index 34a99f9c2a55f..d18a9e5f95bbf 100644 --- a/tests/baselines/reference/tscWatch/incremental/jsxImportSource-option-changed-watch.js +++ b/tests/baselines/reference/tscWatch/incremental/jsxImportSource-option-changed-watch.js @@ -30,7 +30,10 @@ export const Fragment: unique symbol; //// [/users/username/projects/project/node_modules/react/package.json] -{"name":"react","version":"0.0.1"} +{ + "name": "react", + "version": "0.0.1" +} //// [/users/username/projects/project/node_modules/preact/jsx-runtime/index.d.ts] export namespace JSX { @@ -47,13 +50,23 @@ export const Fragment: unique symbol; //// [/users/username/projects/project/node_modules/preact/package.json] -{"name":"preact","version":"0.0.1"} +{ + "name": "preact", + "version": "0.0.1" +} //// [/users/username/projects/project/index.tsx] export const App = () =>
; //// [/users/username/projects/project/tsconfig.json] -{"compilerOptions":{"module":"commonjs","jsx":"react-jsx","incremental":true,"jsxImportSource":"react"}} +{ + "compilerOptions": { + "module": "commonjs", + "jsx": "react-jsx", + "incremental": true, + "jsxImportSource": "react" + } +} /a/lib/tsc.js -w --explainFiles @@ -71,8 +84,18 @@ index.tsx -Program root files: ["/users/username/projects/project/index.tsx"] -Program options: {"module":1,"jsx":4,"incremental":true,"jsxImportSource":"react","watch":true,"explainFiles":true,"configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/index.tsx" +] +Program options: { + "module": 1, + "jsx": 4, + "incremental": true, + "jsxImportSource": "react", + "watch": true, + "explainFiles": true, + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -195,7 +218,14 @@ Change:: Input:: //// [/users/username/projects/project/tsconfig.json] -{"compilerOptions":{"module":"commonjs","jsx":"react-jsx","incremental":true,"jsxImportSource":"preact"}} +{ + "compilerOptions": { + "module": "commonjs", + "jsx": "react-jsx", + "incremental": true, + "jsxImportSource": "preact" + } +} PolledWatches *deleted*:: @@ -242,8 +272,18 @@ index.tsx -Program root files: ["/users/username/projects/project/index.tsx"] -Program options: {"module":1,"jsx":4,"incremental":true,"jsxImportSource":"preact","watch":true,"explainFiles":true,"configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/index.tsx" +] +Program options: { + "module": 1, + "jsx": 4, + "incremental": true, + "jsxImportSource": "preact", + "watch": true, + "explainFiles": true, + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/incremental/module-compilation/own-file-emit-with-errors-incremental.js b/tests/baselines/reference/tscWatch/incremental/module-compilation/own-file-emit-with-errors-incremental.js index 76be5bddd43dd..57afe66eb36ec 100644 --- a/tests/baselines/reference/tscWatch/incremental/module-compilation/own-file-emit-with-errors-incremental.js +++ b/tests/baselines/reference/tscWatch/incremental/module-compilation/own-file-emit-with-errors-incremental.js @@ -20,7 +20,12 @@ export const x = 10; export const y: string = 20; //// [/users/username/projects/project/tsconfig.json] -{"compilerOptions":{"incremental":true,"module":"amd"}} +{ + "compilerOptions": { + "incremental": true, + "module": "amd" + } +} /a/lib/tsc.js -i @@ -35,8 +40,15 @@ Found 1 error in file2.ts:1 -Program root files: ["/users/username/projects/project/file1.ts","/users/username/projects/project/file2.ts"] -Program options: {"incremental":true,"module":2,"configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/file1.ts", + "/users/username/projects/project/file2.ts" +] +Program options: { + "incremental": true, + "module": 2, + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -159,8 +171,15 @@ Found 1 error in file2.ts:1 -Program root files: ["/users/username/projects/project/file1.ts","/users/username/projects/project/file2.ts"] -Program options: {"incremental":true,"module":2,"configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/file1.ts", + "/users/username/projects/project/file2.ts" +] +Program options: { + "incremental": true, + "module": 2, + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/incremental/module-compilation/own-file-emit-with-errors-watch.js b/tests/baselines/reference/tscWatch/incremental/module-compilation/own-file-emit-with-errors-watch.js index 778b15da3d6dc..61fc6df31ce4b 100644 --- a/tests/baselines/reference/tscWatch/incremental/module-compilation/own-file-emit-with-errors-watch.js +++ b/tests/baselines/reference/tscWatch/incremental/module-compilation/own-file-emit-with-errors-watch.js @@ -20,7 +20,12 @@ export const x = 10; export const y: string = 20; //// [/users/username/projects/project/tsconfig.json] -{"compilerOptions":{"incremental":true,"module":"amd"}} +{ + "compilerOptions": { + "incremental": true, + "module": "amd" + } +} /a/lib/tsc.js -w @@ -37,8 +42,16 @@ Output:: -Program root files: ["/users/username/projects/project/file1.ts","/users/username/projects/project/file2.ts"] -Program options: {"incremental":true,"module":2,"watch":true,"configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/file1.ts", + "/users/username/projects/project/file2.ts" +] +Program options: { + "incremental": true, + "module": 2, + "watch": true, + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -203,8 +216,16 @@ Output:: -Program root files: ["/users/username/projects/project/file1.ts","/users/username/projects/project/file2.ts"] -Program options: {"incremental":true,"module":2,"watch":true,"configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/file1.ts", + "/users/username/projects/project/file2.ts" +] +Program options: { + "incremental": true, + "module": 2, + "watch": true, + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/incremental/module-compilation/own-file-emit-without-errors-incremental.js b/tests/baselines/reference/tscWatch/incremental/module-compilation/own-file-emit-without-errors-incremental.js index 03963139a3332..027f13203ada8 100644 --- a/tests/baselines/reference/tscWatch/incremental/module-compilation/own-file-emit-without-errors-incremental.js +++ b/tests/baselines/reference/tscWatch/incremental/module-compilation/own-file-emit-without-errors-incremental.js @@ -20,15 +20,27 @@ export const x = 10; export const y = 20; //// [/users/username/projects/project/tsconfig.json] -{"compilerOptions":{"incremental":true,"module":"amd"}} +{ + "compilerOptions": { + "incremental": true, + "module": "amd" + } +} /a/lib/tsc.js -i Output:: -Program root files: ["/users/username/projects/project/file1.ts","/users/username/projects/project/file2.ts"] -Program options: {"incremental":true,"module":2,"configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/file1.ts", + "/users/username/projects/project/file2.ts" +] +Program options: { + "incremental": true, + "module": 2, + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -131,8 +143,15 @@ export const z = 10; Output:: -Program root files: ["/users/username/projects/project/file1.ts","/users/username/projects/project/file2.ts"] -Program options: {"incremental":true,"module":2,"configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/file1.ts", + "/users/username/projects/project/file2.ts" +] +Program options: { + "incremental": true, + "module": 2, + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/incremental/module-compilation/own-file-emit-without-errors-watch.js b/tests/baselines/reference/tscWatch/incremental/module-compilation/own-file-emit-without-errors-watch.js index 39bb6b6e0aba6..7201753108705 100644 --- a/tests/baselines/reference/tscWatch/incremental/module-compilation/own-file-emit-without-errors-watch.js +++ b/tests/baselines/reference/tscWatch/incremental/module-compilation/own-file-emit-without-errors-watch.js @@ -20,7 +20,12 @@ export const x = 10; export const y = 20; //// [/users/username/projects/project/tsconfig.json] -{"compilerOptions":{"incremental":true,"module":"amd"}} +{ + "compilerOptions": { + "incremental": true, + "module": "amd" + } +} /a/lib/tsc.js -w @@ -32,8 +37,16 @@ Output:: -Program root files: ["/users/username/projects/project/file1.ts","/users/username/projects/project/file2.ts"] -Program options: {"incremental":true,"module":2,"watch":true,"configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/file1.ts", + "/users/username/projects/project/file2.ts" +] +Program options: { + "incremental": true, + "module": 2, + "watch": true, + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -181,8 +194,16 @@ Output:: -Program root files: ["/users/username/projects/project/file1.ts","/users/username/projects/project/file2.ts"] -Program options: {"incremental":true,"module":2,"watch":true,"configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/file1.ts", + "/users/username/projects/project/file2.ts" +] +Program options: { + "incremental": true, + "module": 2, + "watch": true, + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/incremental/module-compilation/with---out-incremental.js b/tests/baselines/reference/tscWatch/incremental/module-compilation/with---out-incremental.js index 586eaa758e0a2..3b9f51b92d979 100644 --- a/tests/baselines/reference/tscWatch/incremental/module-compilation/with---out-incremental.js +++ b/tests/baselines/reference/tscWatch/incremental/module-compilation/with---out-incremental.js @@ -20,15 +20,29 @@ export const x = 10; export const y = 20; //// [/users/username/projects/project/tsconfig.json] -{"compilerOptions":{"incremental":true,"module":"amd","outFile":"out.js"}} +{ + "compilerOptions": { + "incremental": true, + "module": "amd", + "outFile": "out.js" + } +} /a/lib/tsc.js -i Output:: -Program root files: ["/users/username/projects/project/file1.ts","/users/username/projects/project/file2.ts"] -Program options: {"incremental":true,"module":2,"outFile":"/users/username/projects/project/out.js","configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/file1.ts", + "/users/username/projects/project/file2.ts" +] +Program options: { + "incremental": true, + "module": 2, + "outFile": "/users/username/projects/project/out.js", + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/incremental/module-compilation/with---out-watch.js b/tests/baselines/reference/tscWatch/incremental/module-compilation/with---out-watch.js index b2157800d1bed..2375290fe54c1 100644 --- a/tests/baselines/reference/tscWatch/incremental/module-compilation/with---out-watch.js +++ b/tests/baselines/reference/tscWatch/incremental/module-compilation/with---out-watch.js @@ -20,7 +20,13 @@ export const x = 10; export const y = 20; //// [/users/username/projects/project/tsconfig.json] -{"compilerOptions":{"incremental":true,"module":"amd","outFile":"out.js"}} +{ + "compilerOptions": { + "incremental": true, + "module": "amd", + "outFile": "out.js" + } +} /a/lib/tsc.js -w @@ -32,8 +38,17 @@ Output:: -Program root files: ["/users/username/projects/project/file1.ts","/users/username/projects/project/file2.ts"] -Program options: {"incremental":true,"module":2,"outFile":"/users/username/projects/project/out.js","watch":true,"configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/file1.ts", + "/users/username/projects/project/file2.ts" +] +Program options: { + "incremental": true, + "module": 2, + "outFile": "/users/username/projects/project/out.js", + "watch": true, + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/incremental/own-file-emit-with-errors-incremental.js b/tests/baselines/reference/tscWatch/incremental/own-file-emit-with-errors-incremental.js index 5878873af4fd5..8e78d5ec880bb 100644 --- a/tests/baselines/reference/tscWatch/incremental/own-file-emit-with-errors-incremental.js +++ b/tests/baselines/reference/tscWatch/incremental/own-file-emit-with-errors-incremental.js @@ -17,7 +17,11 @@ interface Array { length: number; [n: number]: T; } const x = 10; //// [/users/username/projects/project/tsconfig.json] -{"compilerOptions":{"incremental":true}} +{ + "compilerOptions": { + "incremental": true + } +} //// [/users/username/projects/project/file2.ts] const y: string = 20; @@ -35,8 +39,14 @@ Found 1 error in file2.ts:1 -Program root files: ["/users/username/projects/project/file1.ts","/users/username/projects/project/file2.ts"] -Program options: {"incremental":true,"configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/file1.ts", + "/users/username/projects/project/file2.ts" +] +Program options: { + "incremental": true, + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -156,8 +166,14 @@ Found 1 error in file2.ts:1 -Program root files: ["/users/username/projects/project/file1.ts","/users/username/projects/project/file2.ts"] -Program options: {"incremental":true,"configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/file1.ts", + "/users/username/projects/project/file2.ts" +] +Program options: { + "incremental": true, + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/incremental/own-file-emit-with-errors-watch.js b/tests/baselines/reference/tscWatch/incremental/own-file-emit-with-errors-watch.js index 84ccc8db6f820..bf9993bff761e 100644 --- a/tests/baselines/reference/tscWatch/incremental/own-file-emit-with-errors-watch.js +++ b/tests/baselines/reference/tscWatch/incremental/own-file-emit-with-errors-watch.js @@ -17,7 +17,11 @@ interface Array { length: number; [n: number]: T; } const x = 10; //// [/users/username/projects/project/tsconfig.json] -{"compilerOptions":{"incremental":true}} +{ + "compilerOptions": { + "incremental": true + } +} //// [/users/username/projects/project/file2.ts] const y: string = 20; @@ -37,8 +41,15 @@ Output:: -Program root files: ["/users/username/projects/project/file1.ts","/users/username/projects/project/file2.ts"] -Program options: {"incremental":true,"watch":true,"configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/file1.ts", + "/users/username/projects/project/file2.ts" +] +Program options: { + "incremental": true, + "watch": true, + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -200,8 +211,15 @@ Output:: -Program root files: ["/users/username/projects/project/file1.ts","/users/username/projects/project/file2.ts"] -Program options: {"incremental":true,"watch":true,"configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/file1.ts", + "/users/username/projects/project/file2.ts" +] +Program options: { + "incremental": true, + "watch": true, + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/incremental/own-file-emit-without-errors/with-commandline-parameters-that-are-not-relative-incremental.js b/tests/baselines/reference/tscWatch/incremental/own-file-emit-without-errors/with-commandline-parameters-that-are-not-relative-incremental.js index 0232cdf80c50d..4a08404710c83 100644 --- a/tests/baselines/reference/tscWatch/incremental/own-file-emit-without-errors/with-commandline-parameters-that-are-not-relative-incremental.js +++ b/tests/baselines/reference/tscWatch/incremental/own-file-emit-without-errors/with-commandline-parameters-that-are-not-relative-incremental.js @@ -20,15 +20,26 @@ const x = 10; const y = 20; //// [/users/username/projects/project/tsconfig.json] -{"compilerOptions":{"incremental":true}} +{ + "compilerOptions": { + "incremental": true + } +} /a/lib/tsc.js -i -p tsconfig.json Output:: -Program root files: ["/users/username/projects/project/file1.ts","/users/username/projects/project/file2.ts"] -Program options: {"incremental":true,"project":"/users/username/projects/project/tsconfig.json","configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/file1.ts", + "/users/username/projects/project/file2.ts" +] +Program options: { + "incremental": true, + "project": "/users/username/projects/project/tsconfig.json", + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -128,8 +139,15 @@ const z = 10; Output:: -Program root files: ["/users/username/projects/project/file1.ts","/users/username/projects/project/file2.ts"] -Program options: {"incremental":true,"project":"/users/username/projects/project/tsconfig.json","configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/file1.ts", + "/users/username/projects/project/file2.ts" +] +Program options: { + "incremental": true, + "project": "/users/username/projects/project/tsconfig.json", + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/incremental/own-file-emit-without-errors/with-commandline-parameters-that-are-not-relative-watch.js b/tests/baselines/reference/tscWatch/incremental/own-file-emit-without-errors/with-commandline-parameters-that-are-not-relative-watch.js index 172105c20e552..ebca77b996478 100644 --- a/tests/baselines/reference/tscWatch/incremental/own-file-emit-without-errors/with-commandline-parameters-that-are-not-relative-watch.js +++ b/tests/baselines/reference/tscWatch/incremental/own-file-emit-without-errors/with-commandline-parameters-that-are-not-relative-watch.js @@ -20,7 +20,11 @@ const x = 10; const y = 20; //// [/users/username/projects/project/tsconfig.json] -{"compilerOptions":{"incremental":true}} +{ + "compilerOptions": { + "incremental": true + } +} /a/lib/tsc.js -w -p tsconfig.json @@ -32,8 +36,16 @@ Output:: -Program root files: ["/users/username/projects/project/file1.ts","/users/username/projects/project/file2.ts"] -Program options: {"incremental":true,"watch":true,"project":"/users/username/projects/project/tsconfig.json","configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/file1.ts", + "/users/username/projects/project/file2.ts" +] +Program options: { + "incremental": true, + "watch": true, + "project": "/users/username/projects/project/tsconfig.json", + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -178,8 +190,16 @@ Output:: -Program root files: ["/users/username/projects/project/file1.ts","/users/username/projects/project/file2.ts"] -Program options: {"incremental":true,"watch":true,"project":"/users/username/projects/project/tsconfig.json","configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/file1.ts", + "/users/username/projects/project/file2.ts" +] +Program options: { + "incremental": true, + "watch": true, + "project": "/users/username/projects/project/tsconfig.json", + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/incremental/own-file-emit-without-errors/without-commandline-options-incremental.js b/tests/baselines/reference/tscWatch/incremental/own-file-emit-without-errors/without-commandline-options-incremental.js index 073924125ddca..4f4e41ad8bda9 100644 --- a/tests/baselines/reference/tscWatch/incremental/own-file-emit-without-errors/without-commandline-options-incremental.js +++ b/tests/baselines/reference/tscWatch/incremental/own-file-emit-without-errors/without-commandline-options-incremental.js @@ -20,15 +20,25 @@ const x = 10; const y = 20; //// [/users/username/projects/project/tsconfig.json] -{"compilerOptions":{"incremental":true}} +{ + "compilerOptions": { + "incremental": true + } +} /a/lib/tsc.js -i Output:: -Program root files: ["/users/username/projects/project/file1.ts","/users/username/projects/project/file2.ts"] -Program options: {"incremental":true,"configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/file1.ts", + "/users/username/projects/project/file2.ts" +] +Program options: { + "incremental": true, + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -128,8 +138,14 @@ const z = 10; Output:: -Program root files: ["/users/username/projects/project/file1.ts","/users/username/projects/project/file2.ts"] -Program options: {"incremental":true,"configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/file1.ts", + "/users/username/projects/project/file2.ts" +] +Program options: { + "incremental": true, + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/incremental/own-file-emit-without-errors/without-commandline-options-watch.js b/tests/baselines/reference/tscWatch/incremental/own-file-emit-without-errors/without-commandline-options-watch.js index 02b19ea4b55de..dbf42c49011f6 100644 --- a/tests/baselines/reference/tscWatch/incremental/own-file-emit-without-errors/without-commandline-options-watch.js +++ b/tests/baselines/reference/tscWatch/incremental/own-file-emit-without-errors/without-commandline-options-watch.js @@ -20,7 +20,11 @@ const x = 10; const y = 20; //// [/users/username/projects/project/tsconfig.json] -{"compilerOptions":{"incremental":true}} +{ + "compilerOptions": { + "incremental": true + } +} /a/lib/tsc.js -w @@ -32,8 +36,15 @@ Output:: -Program root files: ["/users/username/projects/project/file1.ts","/users/username/projects/project/file2.ts"] -Program options: {"incremental":true,"watch":true,"configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/file1.ts", + "/users/username/projects/project/file2.ts" +] +Program options: { + "incremental": true, + "watch": true, + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -178,8 +189,15 @@ Output:: -Program root files: ["/users/username/projects/project/file1.ts","/users/username/projects/project/file2.ts"] -Program options: {"incremental":true,"watch":true,"configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/file1.ts", + "/users/username/projects/project/file2.ts" +] +Program options: { + "incremental": true, + "watch": true, + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/incremental/tsbuildinfo-has-error.js b/tests/baselines/reference/tscWatch/incremental/tsbuildinfo-has-error.js index 628eb021acf3e..86e2b338baf9a 100644 --- a/tests/baselines/reference/tscWatch/incremental/tsbuildinfo-has-error.js +++ b/tests/baselines/reference/tscWatch/incremental/tsbuildinfo-has-error.js @@ -32,8 +32,15 @@ Output:: -Program root files: ["/src/project/main.ts"] -Program options: {"project":"/src/project","incremental":true,"watch":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/main.ts" +] +Program options: { + "project": "/src/project", + "incremental": true, + "watch": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/incremental/when-file-with-ambient-global-declaration-file-is-deleted-incremental.js b/tests/baselines/reference/tscWatch/incremental/when-file-with-ambient-global-declaration-file-is-deleted-incremental.js index 4c7432831e710..eb9afdf03426b 100644 --- a/tests/baselines/reference/tscWatch/incremental/when-file-with-ambient-global-declaration-file-is-deleted-incremental.js +++ b/tests/baselines/reference/tscWatch/incremental/when-file-with-ambient-global-declaration-file-is-deleted-incremental.js @@ -22,15 +22,25 @@ declare namespace Config { const value: string;} console.log(Config.value); //// [/users/username/projects/project/tsconfig.json] -{"compilerOptions":{"incremental":true}} +{ + "compilerOptions": { + "incremental": true + } +} /a/lib/tsc.js -i Output:: -Program root files: ["/users/username/projects/project/globals.d.ts","/users/username/projects/project/index.ts"] -Program options: {"incremental":true,"configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/globals.d.ts", + "/users/username/projects/project/index.ts" +] +Program options: { + "incremental": true, + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -132,8 +142,13 @@ Found 1 error in index.ts:1 -Program root files: ["/users/username/projects/project/index.ts"] -Program options: {"incremental":true,"configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/index.ts" +] +Program options: { + "incremental": true, + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/incremental/when-file-with-ambient-global-declaration-file-is-deleted-watch.js b/tests/baselines/reference/tscWatch/incremental/when-file-with-ambient-global-declaration-file-is-deleted-watch.js index ec1957a285f41..93bf98341ed05 100644 --- a/tests/baselines/reference/tscWatch/incremental/when-file-with-ambient-global-declaration-file-is-deleted-watch.js +++ b/tests/baselines/reference/tscWatch/incremental/when-file-with-ambient-global-declaration-file-is-deleted-watch.js @@ -22,7 +22,11 @@ declare namespace Config { const value: string;} console.log(Config.value); //// [/users/username/projects/project/tsconfig.json] -{"compilerOptions":{"incremental":true}} +{ + "compilerOptions": { + "incremental": true + } +} /a/lib/tsc.js -w @@ -34,8 +38,15 @@ Output:: -Program root files: ["/users/username/projects/project/globals.d.ts","/users/username/projects/project/index.ts"] -Program options: {"incremental":true,"watch":true,"configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/globals.d.ts", + "/users/username/projects/project/index.ts" +] +Program options: { + "incremental": true, + "watch": true, + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -179,8 +190,14 @@ Output:: -Program root files: ["/users/username/projects/project/index.ts"] -Program options: {"incremental":true,"watch":true,"configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/index.ts" +] +Program options: { + "incremental": true, + "watch": true, + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/incremental/with---out-incremental.js b/tests/baselines/reference/tscWatch/incremental/with---out-incremental.js index d7e8d6a9896a2..71e28dc463a95 100644 --- a/tests/baselines/reference/tscWatch/incremental/with---out-incremental.js +++ b/tests/baselines/reference/tscWatch/incremental/with---out-incremental.js @@ -20,15 +20,27 @@ const x = 10; const y = 20; //// [/users/username/projects/project/tsconfig.json] -{"compilerOptions":{"incremental":true,"outFile":"out.js"}} +{ + "compilerOptions": { + "incremental": true, + "outFile": "out.js" + } +} /a/lib/tsc.js -i Output:: -Program root files: ["/users/username/projects/project/file1.ts","/users/username/projects/project/file2.ts"] -Program options: {"incremental":true,"outFile":"/users/username/projects/project/out.js","configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/file1.ts", + "/users/username/projects/project/file2.ts" +] +Program options: { + "incremental": true, + "outFile": "/users/username/projects/project/out.js", + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/incremental/with---out-watch.js b/tests/baselines/reference/tscWatch/incremental/with---out-watch.js index aa6740c68596d..2df3a3fe2a34c 100644 --- a/tests/baselines/reference/tscWatch/incremental/with---out-watch.js +++ b/tests/baselines/reference/tscWatch/incremental/with---out-watch.js @@ -20,7 +20,12 @@ const x = 10; const y = 20; //// [/users/username/projects/project/tsconfig.json] -{"compilerOptions":{"incremental":true,"outFile":"out.js"}} +{ + "compilerOptions": { + "incremental": true, + "outFile": "out.js" + } +} /a/lib/tsc.js -w @@ -32,8 +37,16 @@ Output:: -Program root files: ["/users/username/projects/project/file1.ts","/users/username/projects/project/file2.ts"] -Program options: {"incremental":true,"outFile":"/users/username/projects/project/out.js","watch":true,"configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/file1.ts", + "/users/username/projects/project/file2.ts" +] +Program options: { + "incremental": true, + "outFile": "/users/username/projects/project/out.js", + "watch": true, + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/libraryResolution/with-config-with-redirection.js b/tests/baselines/reference/tscWatch/libraryResolution/with-config-with-redirection.js index 64aca1a93b557..c2cfdd0e565af 100644 --- a/tests/baselines/reference/tscWatch/libraryResolution/with-config-with-redirection.js +++ b/tests/baselines/reference/tscWatch/libraryResolution/with-config-with-redirection.js @@ -19,7 +19,19 @@ export const x = "type1"; //// [/home/src/projects/project1/tsconfig.json] -{"compilerOptions":{"composite":true,"typeRoots":["./typeroot1"],"lib":["es5","dom"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "typeRoots": [ + "./typeroot1" + ], + "lib": [ + "es5", + "dom" + ], + "traceResolution": true + } +} //// [/home/src/projects/project1/typeroot1/sometype/index.d.ts] export type TheNum = "type1"; @@ -31,7 +43,16 @@ export const y = 10; export const y = 10 //// [/home/src/projects/project2/tsconfig.json] -{"compilerOptions":{"composite":true,"lib":["es5","dom"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "lib": [ + "es5", + "dom" + ], + "traceResolution": true + } +} //// [/home/src/projects/project3/utils.d.ts] export const y = 10; @@ -40,7 +61,16 @@ export const y = 10; export const z = 10 //// [/home/src/projects/project3/tsconfig.json] -{"compilerOptions":{"composite":true,"lib":["es5","dom"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "lib": [ + "es5", + "dom" + ], + "traceResolution": true + } +} //// [/home/src/projects/project4/utils.d.ts] export const y = 10; @@ -49,7 +79,17 @@ export const y = 10; export const z = 10 //// [/home/src/projects/project4/tsconfig.json] -{"compilerOptions":{"composite":true,"lib":["esnext","dom","webworker"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "lib": [ + "esnext", + "dom", + "webworker" + ], + "traceResolution": true + } +} //// [/home/src/lib/lib.es5.d.ts] /// @@ -256,8 +296,30 @@ DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project1 1 undefined Wi Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project1 1 undefined Wild card directory -Program root files: ["/home/src/projects/project1/core.d.ts","/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] -Program options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +Program root files: [ + "/home/src/projects/project1/core.d.ts", + "/home/src/projects/project1/file.ts", + "/home/src/projects/project1/file2.ts", + "/home/src/projects/project1/index.ts", + "/home/src/projects/project1/utils.d.ts", + "/home/src/projects/project1/typeroot1/sometype/index.d.ts" +] +Program options: { + "composite": true, + "typeRoots": [ + "/home/src/projects/project1/typeroot1" + ], + "lib": [ + "lib.es5.d.ts", + "lib.dom.d.ts" + ], + "traceResolution": true, + "watch": true, + "project": "/home/src/projects/project1", + "explainFiles": true, + "extendedDiagnostics": true, + "configFilePath": "/home/src/projects/project1/tsconfig.json" +} Program structureReused: Not Program files:: /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts @@ -586,8 +648,30 @@ project1/typeroot1/sometype/index.d.ts -Program root files: ["/home/src/projects/project1/core.d.ts","/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] -Program options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +Program root files: [ + "/home/src/projects/project1/core.d.ts", + "/home/src/projects/project1/file.ts", + "/home/src/projects/project1/file2.ts", + "/home/src/projects/project1/index.ts", + "/home/src/projects/project1/utils.d.ts", + "/home/src/projects/project1/typeroot1/sometype/index.d.ts" +] +Program options: { + "composite": true, + "typeRoots": [ + "/home/src/projects/project1/typeroot1" + ], + "lib": [ + "lib.es5.d.ts", + "lib.dom.d.ts" + ], + "traceResolution": true, + "watch": true, + "project": "/home/src/projects/project1", + "explainFiles": true, + "extendedDiagnostics": true, + "configFilePath": "/home/src/projects/project1/tsconfig.json" +} Program structureReused: Not Program files:: /home/src/lib/lib.dom.d.ts @@ -851,8 +935,30 @@ project1/typeroot1/sometype/index.d.ts -Program root files: ["/home/src/projects/project1/core.d.ts","/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] -Program options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +Program root files: [ + "/home/src/projects/project1/core.d.ts", + "/home/src/projects/project1/file.ts", + "/home/src/projects/project1/file2.ts", + "/home/src/projects/project1/index.ts", + "/home/src/projects/project1/utils.d.ts", + "/home/src/projects/project1/typeroot1/sometype/index.d.ts" +] +Program options: { + "composite": true, + "typeRoots": [ + "/home/src/projects/project1/typeroot1" + ], + "lib": [ + "lib.es5.d.ts", + "lib.dom.d.ts" + ], + "traceResolution": true, + "watch": true, + "project": "/home/src/projects/project1", + "explainFiles": true, + "extendedDiagnostics": true, + "configFilePath": "/home/src/projects/project1/tsconfig.json" +} Program structureReused: Completely Program files:: /home/src/lib/lib.dom.d.ts @@ -1071,8 +1177,29 @@ project1/typeroot1/sometype/index.d.ts -Program root files: ["/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] -Program options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +Program root files: [ + "/home/src/projects/project1/file.ts", + "/home/src/projects/project1/file2.ts", + "/home/src/projects/project1/index.ts", + "/home/src/projects/project1/utils.d.ts", + "/home/src/projects/project1/typeroot1/sometype/index.d.ts" +] +Program options: { + "composite": true, + "typeRoots": [ + "/home/src/projects/project1/typeroot1" + ], + "lib": [ + "lib.es5.d.ts", + "lib.dom.d.ts" + ], + "traceResolution": true, + "watch": true, + "project": "/home/src/projects/project1", + "explainFiles": true, + "extendedDiagnostics": true, + "configFilePath": "/home/src/projects/project1/tsconfig.json" +} Program structureReused: Not Program files:: /home/src/lib/lib.dom.d.ts @@ -1324,8 +1451,29 @@ project1/typeroot1/sometype/index.d.ts -Program root files: ["/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] -Program options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +Program root files: [ + "/home/src/projects/project1/file.ts", + "/home/src/projects/project1/file2.ts", + "/home/src/projects/project1/index.ts", + "/home/src/projects/project1/utils.d.ts", + "/home/src/projects/project1/typeroot1/sometype/index.d.ts" +] +Program options: { + "composite": true, + "typeRoots": [ + "/home/src/projects/project1/typeroot1" + ], + "lib": [ + "lib.es5.d.ts", + "lib.dom.d.ts" + ], + "traceResolution": true, + "watch": true, + "project": "/home/src/projects/project1", + "explainFiles": true, + "extendedDiagnostics": true, + "configFilePath": "/home/src/projects/project1/tsconfig.json" +} Program structureReused: SafeModules Program files:: /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts @@ -1531,7 +1679,20 @@ Change:: change program options to update module resolution Input:: //// [/home/src/projects/project1/tsconfig.json] -{"compilerOptions":{"composite":true,"typeRoots":["./typeroot1","./typeroot2"],"lib":["es5","dom"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "typeRoots": [ + "./typeroot1", + "./typeroot2" + ], + "lib": [ + "es5", + "dom" + ], + "traceResolution": true + } +} Before running Timeout callback:: count: 1 @@ -1585,8 +1746,30 @@ project1/typeroot1/sometype/index.d.ts -Program root files: ["/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] -Program options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1","/home/src/projects/project1/typeroot2"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +Program root files: [ + "/home/src/projects/project1/file.ts", + "/home/src/projects/project1/file2.ts", + "/home/src/projects/project1/index.ts", + "/home/src/projects/project1/utils.d.ts", + "/home/src/projects/project1/typeroot1/sometype/index.d.ts" +] +Program options: { + "composite": true, + "typeRoots": [ + "/home/src/projects/project1/typeroot1", + "/home/src/projects/project1/typeroot2" + ], + "lib": [ + "lib.es5.d.ts", + "lib.dom.d.ts" + ], + "traceResolution": true, + "watch": true, + "project": "/home/src/projects/project1", + "explainFiles": true, + "extendedDiagnostics": true, + "configFilePath": "/home/src/projects/project1/tsconfig.json" +} Program structureReused: Not Program files:: /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts @@ -1646,7 +1829,19 @@ Change:: change program options to update module resolution and also update lib Input:: //// [/home/src/projects/project1/tsconfig.json] -{"compilerOptions":{"composite":true,"typeRoots":["./typeroot1"],"lib":["es5","dom"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "typeRoots": [ + "./typeroot1" + ], + "lib": [ + "es5", + "dom" + ], + "traceResolution": true + } +} //// [/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts] deleted @@ -1742,8 +1937,29 @@ project1/typeroot1/sometype/index.d.ts -Program root files: ["/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] -Program options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +Program root files: [ + "/home/src/projects/project1/file.ts", + "/home/src/projects/project1/file2.ts", + "/home/src/projects/project1/index.ts", + "/home/src/projects/project1/utils.d.ts", + "/home/src/projects/project1/typeroot1/sometype/index.d.ts" +] +Program options: { + "composite": true, + "typeRoots": [ + "/home/src/projects/project1/typeroot1" + ], + "lib": [ + "lib.es5.d.ts", + "lib.dom.d.ts" + ], + "traceResolution": true, + "watch": true, + "project": "/home/src/projects/project1", + "explainFiles": true, + "extendedDiagnostics": true, + "configFilePath": "/home/src/projects/project1/tsconfig.json" +} Program structureReused: Not Program files:: /home/src/lib/lib.dom.d.ts @@ -2034,8 +2250,29 @@ project1/typeroot1/sometype/index.d.ts -Program root files: ["/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] -Program options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +Program root files: [ + "/home/src/projects/project1/file.ts", + "/home/src/projects/project1/file2.ts", + "/home/src/projects/project1/index.ts", + "/home/src/projects/project1/utils.d.ts", + "/home/src/projects/project1/typeroot1/sometype/index.d.ts" +] +Program options: { + "composite": true, + "typeRoots": [ + "/home/src/projects/project1/typeroot1" + ], + "lib": [ + "lib.es5.d.ts", + "lib.dom.d.ts" + ], + "traceResolution": true, + "watch": true, + "project": "/home/src/projects/project1", + "explainFiles": true, + "extendedDiagnostics": true, + "configFilePath": "/home/src/projects/project1/tsconfig.json" +} Program structureReused: Not Program files:: /home/src/lib/lib.dom.d.ts @@ -2307,8 +2544,29 @@ project1/typeroot1/sometype/index.d.ts -Program root files: ["/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] -Program options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +Program root files: [ + "/home/src/projects/project1/file.ts", + "/home/src/projects/project1/file2.ts", + "/home/src/projects/project1/index.ts", + "/home/src/projects/project1/utils.d.ts", + "/home/src/projects/project1/typeroot1/sometype/index.d.ts" +] +Program options: { + "composite": true, + "typeRoots": [ + "/home/src/projects/project1/typeroot1" + ], + "lib": [ + "lib.es5.d.ts", + "lib.dom.d.ts" + ], + "traceResolution": true, + "watch": true, + "project": "/home/src/projects/project1", + "explainFiles": true, + "extendedDiagnostics": true, + "configFilePath": "/home/src/projects/project1/tsconfig.json" +} Program structureReused: SafeModules Program files:: /home/src/lib/lib.dom.d.ts diff --git a/tests/baselines/reference/tscWatch/libraryResolution/with-config.js b/tests/baselines/reference/tscWatch/libraryResolution/with-config.js index 1a97c621ca05c..1e5b728734666 100644 --- a/tests/baselines/reference/tscWatch/libraryResolution/with-config.js +++ b/tests/baselines/reference/tscWatch/libraryResolution/with-config.js @@ -19,7 +19,19 @@ export const x = "type1"; //// [/home/src/projects/project1/tsconfig.json] -{"compilerOptions":{"composite":true,"typeRoots":["./typeroot1"],"lib":["es5","dom"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "typeRoots": [ + "./typeroot1" + ], + "lib": [ + "es5", + "dom" + ], + "traceResolution": true + } +} //// [/home/src/projects/project1/typeroot1/sometype/index.d.ts] export type TheNum = "type1"; @@ -31,7 +43,16 @@ export const y = 10; export const y = 10 //// [/home/src/projects/project2/tsconfig.json] -{"compilerOptions":{"composite":true,"lib":["es5","dom"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "lib": [ + "es5", + "dom" + ], + "traceResolution": true + } +} //// [/home/src/projects/project3/utils.d.ts] export const y = 10; @@ -40,7 +61,16 @@ export const y = 10; export const z = 10 //// [/home/src/projects/project3/tsconfig.json] -{"compilerOptions":{"composite":true,"lib":["es5","dom"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "lib": [ + "es5", + "dom" + ], + "traceResolution": true + } +} //// [/home/src/projects/project4/utils.d.ts] export const y = 10; @@ -49,7 +79,17 @@ export const y = 10; export const z = 10 //// [/home/src/projects/project4/tsconfig.json] -{"compilerOptions":{"composite":true,"lib":["esnext","dom","webworker"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "lib": [ + "esnext", + "dom", + "webworker" + ], + "traceResolution": true + } +} //// [/home/src/lib/lib.es5.d.ts] /// @@ -261,8 +301,30 @@ DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project1 1 undefined Wi Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project1 1 undefined Wild card directory -Program root files: ["/home/src/projects/project1/core.d.ts","/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] -Program options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +Program root files: [ + "/home/src/projects/project1/core.d.ts", + "/home/src/projects/project1/file.ts", + "/home/src/projects/project1/file2.ts", + "/home/src/projects/project1/index.ts", + "/home/src/projects/project1/utils.d.ts", + "/home/src/projects/project1/typeroot1/sometype/index.d.ts" +] +Program options: { + "composite": true, + "typeRoots": [ + "/home/src/projects/project1/typeroot1" + ], + "lib": [ + "lib.es5.d.ts", + "lib.dom.d.ts" + ], + "traceResolution": true, + "watch": true, + "project": "/home/src/projects/project1", + "explainFiles": true, + "extendedDiagnostics": true, + "configFilePath": "/home/src/projects/project1/tsconfig.json" +} Program structureReused: Not Program files:: /home/src/lib/lib.es5.d.ts @@ -579,8 +641,30 @@ project1/typeroot1/sometype/index.d.ts -Program root files: ["/home/src/projects/project1/core.d.ts","/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] -Program options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +Program root files: [ + "/home/src/projects/project1/core.d.ts", + "/home/src/projects/project1/file.ts", + "/home/src/projects/project1/file2.ts", + "/home/src/projects/project1/index.ts", + "/home/src/projects/project1/utils.d.ts", + "/home/src/projects/project1/typeroot1/sometype/index.d.ts" +] +Program options: { + "composite": true, + "typeRoots": [ + "/home/src/projects/project1/typeroot1" + ], + "lib": [ + "lib.es5.d.ts", + "lib.dom.d.ts" + ], + "traceResolution": true, + "watch": true, + "project": "/home/src/projects/project1", + "explainFiles": true, + "extendedDiagnostics": true, + "configFilePath": "/home/src/projects/project1/tsconfig.json" +} Program structureReused: SafeModules Program files:: /home/src/lib/lib.es5.d.ts @@ -844,8 +928,30 @@ project1/typeroot1/sometype/index.d.ts -Program root files: ["/home/src/projects/project1/core.d.ts","/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] -Program options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +Program root files: [ + "/home/src/projects/project1/core.d.ts", + "/home/src/projects/project1/file.ts", + "/home/src/projects/project1/file2.ts", + "/home/src/projects/project1/index.ts", + "/home/src/projects/project1/utils.d.ts", + "/home/src/projects/project1/typeroot1/sometype/index.d.ts" +] +Program options: { + "composite": true, + "typeRoots": [ + "/home/src/projects/project1/typeroot1" + ], + "lib": [ + "lib.es5.d.ts", + "lib.dom.d.ts" + ], + "traceResolution": true, + "watch": true, + "project": "/home/src/projects/project1", + "explainFiles": true, + "extendedDiagnostics": true, + "configFilePath": "/home/src/projects/project1/tsconfig.json" +} Program structureReused: Completely Program files:: /home/src/lib/lib.es5.d.ts @@ -1064,8 +1170,29 @@ project1/typeroot1/sometype/index.d.ts -Program root files: ["/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] -Program options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +Program root files: [ + "/home/src/projects/project1/file.ts", + "/home/src/projects/project1/file2.ts", + "/home/src/projects/project1/index.ts", + "/home/src/projects/project1/utils.d.ts", + "/home/src/projects/project1/typeroot1/sometype/index.d.ts" +] +Program options: { + "composite": true, + "typeRoots": [ + "/home/src/projects/project1/typeroot1" + ], + "lib": [ + "lib.es5.d.ts", + "lib.dom.d.ts" + ], + "traceResolution": true, + "watch": true, + "project": "/home/src/projects/project1", + "explainFiles": true, + "extendedDiagnostics": true, + "configFilePath": "/home/src/projects/project1/tsconfig.json" +} Program structureReused: Not Program files:: /home/src/lib/lib.es5.d.ts @@ -1332,8 +1459,29 @@ project1/typeroot1/sometype/index.d.ts -Program root files: ["/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] -Program options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +Program root files: [ + "/home/src/projects/project1/file.ts", + "/home/src/projects/project1/file2.ts", + "/home/src/projects/project1/index.ts", + "/home/src/projects/project1/utils.d.ts", + "/home/src/projects/project1/typeroot1/sometype/index.d.ts" +] +Program options: { + "composite": true, + "typeRoots": [ + "/home/src/projects/project1/typeroot1" + ], + "lib": [ + "lib.es5.d.ts", + "lib.dom.d.ts" + ], + "traceResolution": true, + "watch": true, + "project": "/home/src/projects/project1", + "explainFiles": true, + "extendedDiagnostics": true, + "configFilePath": "/home/src/projects/project1/tsconfig.json" +} Program structureReused: Not Program files:: /home/src/lib/lib.es5.d.ts @@ -1539,7 +1687,20 @@ Change:: change program options to update module resolution Input:: //// [/home/src/projects/project1/tsconfig.json] -{"compilerOptions":{"composite":true,"typeRoots":["./typeroot1","./typeroot2"],"lib":["es5","dom"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "typeRoots": [ + "./typeroot1", + "./typeroot2" + ], + "lib": [ + "es5", + "dom" + ], + "traceResolution": true + } +} Before running Timeout callback:: count: 1 @@ -1593,8 +1754,30 @@ project1/typeroot1/sometype/index.d.ts -Program root files: ["/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] -Program options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1","/home/src/projects/project1/typeroot2"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +Program root files: [ + "/home/src/projects/project1/file.ts", + "/home/src/projects/project1/file2.ts", + "/home/src/projects/project1/index.ts", + "/home/src/projects/project1/utils.d.ts", + "/home/src/projects/project1/typeroot1/sometype/index.d.ts" +] +Program options: { + "composite": true, + "typeRoots": [ + "/home/src/projects/project1/typeroot1", + "/home/src/projects/project1/typeroot2" + ], + "lib": [ + "lib.es5.d.ts", + "lib.dom.d.ts" + ], + "traceResolution": true, + "watch": true, + "project": "/home/src/projects/project1", + "explainFiles": true, + "extendedDiagnostics": true, + "configFilePath": "/home/src/projects/project1/tsconfig.json" +} Program structureReused: Not Program files:: /home/src/lib/lib.es5.d.ts @@ -1654,7 +1837,19 @@ Change:: change program options to update module resolution and also update lib Input:: //// [/home/src/projects/project1/tsconfig.json] -{"compilerOptions":{"composite":true,"typeRoots":["./typeroot1"],"lib":["es5","dom"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "typeRoots": [ + "./typeroot1" + ], + "lib": [ + "es5", + "dom" + ], + "traceResolution": true + } +} //// [/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts] interface DOMInterface { } @@ -1731,8 +1926,29 @@ project1/typeroot1/sometype/index.d.ts -Program root files: ["/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] -Program options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +Program root files: [ + "/home/src/projects/project1/file.ts", + "/home/src/projects/project1/file2.ts", + "/home/src/projects/project1/index.ts", + "/home/src/projects/project1/utils.d.ts", + "/home/src/projects/project1/typeroot1/sometype/index.d.ts" +] +Program options: { + "composite": true, + "typeRoots": [ + "/home/src/projects/project1/typeroot1" + ], + "lib": [ + "lib.es5.d.ts", + "lib.dom.d.ts" + ], + "traceResolution": true, + "watch": true, + "project": "/home/src/projects/project1", + "explainFiles": true, + "extendedDiagnostics": true, + "configFilePath": "/home/src/projects/project1/tsconfig.json" +} Program structureReused: Not Program files:: /home/src/lib/lib.es5.d.ts @@ -2011,8 +2227,29 @@ project1/typeroot1/sometype/index.d.ts -Program root files: ["/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] -Program options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +Program root files: [ + "/home/src/projects/project1/file.ts", + "/home/src/projects/project1/file2.ts", + "/home/src/projects/project1/index.ts", + "/home/src/projects/project1/utils.d.ts", + "/home/src/projects/project1/typeroot1/sometype/index.d.ts" +] +Program options: { + "composite": true, + "typeRoots": [ + "/home/src/projects/project1/typeroot1" + ], + "lib": [ + "lib.es5.d.ts", + "lib.dom.d.ts" + ], + "traceResolution": true, + "watch": true, + "project": "/home/src/projects/project1", + "explainFiles": true, + "extendedDiagnostics": true, + "configFilePath": "/home/src/projects/project1/tsconfig.json" +} Program structureReused: SafeModules Program files:: /home/src/lib/lib.es5.d.ts @@ -2299,8 +2536,29 @@ project1/typeroot1/sometype/index.d.ts -Program root files: ["/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] -Program options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +Program root files: [ + "/home/src/projects/project1/file.ts", + "/home/src/projects/project1/file2.ts", + "/home/src/projects/project1/index.ts", + "/home/src/projects/project1/utils.d.ts", + "/home/src/projects/project1/typeroot1/sometype/index.d.ts" +] +Program options: { + "composite": true, + "typeRoots": [ + "/home/src/projects/project1/typeroot1" + ], + "lib": [ + "lib.es5.d.ts", + "lib.dom.d.ts" + ], + "traceResolution": true, + "watch": true, + "project": "/home/src/projects/project1", + "explainFiles": true, + "extendedDiagnostics": true, + "configFilePath": "/home/src/projects/project1/tsconfig.json" +} Program structureReused: Not Program files:: /home/src/lib/lib.es5.d.ts diff --git a/tests/baselines/reference/tscWatch/libraryResolution/without-config-with-redirection.js b/tests/baselines/reference/tscWatch/libraryResolution/without-config-with-redirection.js index ed29ae1819973..2aa8c545bbb1b 100644 --- a/tests/baselines/reference/tscWatch/libraryResolution/without-config-with-redirection.js +++ b/tests/baselines/reference/tscWatch/libraryResolution/without-config-with-redirection.js @@ -19,7 +19,19 @@ export const x = "type1"; //// [/home/src/projects/project1/tsconfig.json] -{"compilerOptions":{"composite":true,"typeRoots":["./typeroot1"],"lib":["es5","dom"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "typeRoots": [ + "./typeroot1" + ], + "lib": [ + "es5", + "dom" + ], + "traceResolution": true + } +} //// [/home/src/projects/project1/typeroot1/sometype/index.d.ts] export type TheNum = "type1"; @@ -31,7 +43,16 @@ export const y = 10; export const y = 10 //// [/home/src/projects/project2/tsconfig.json] -{"compilerOptions":{"composite":true,"lib":["es5","dom"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "lib": [ + "es5", + "dom" + ], + "traceResolution": true + } +} //// [/home/src/projects/project3/utils.d.ts] export const y = 10; @@ -40,7 +61,16 @@ export const y = 10; export const z = 10 //// [/home/src/projects/project3/tsconfig.json] -{"compilerOptions":{"composite":true,"lib":["es5","dom"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "lib": [ + "es5", + "dom" + ], + "traceResolution": true + } +} //// [/home/src/projects/project4/utils.d.ts] export const y = 10; @@ -49,7 +79,17 @@ export const y = 10; export const z = 10 //// [/home/src/projects/project4/tsconfig.json] -{"compilerOptions":{"composite":true,"lib":["esnext","dom","webworker"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "lib": [ + "esnext", + "dom", + "webworker" + ], + "traceResolution": true + } +} //// [/home/src/lib/lib.es5.d.ts] /// @@ -230,8 +270,23 @@ project1/file2.ts -Program root files: ["project1/core.d.ts","project1/utils.d.ts","project1/file.ts","project1/index.ts","project1/file2.ts"] -Program options: {"watch":true,"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"explainFiles":true,"extendedDiagnostics":true} +Program root files: [ + "project1/core.d.ts", + "project1/utils.d.ts", + "project1/file.ts", + "project1/index.ts", + "project1/file2.ts" +] +Program options: { + "watch": true, + "lib": [ + "lib.es5.d.ts", + "lib.dom.d.ts" + ], + "traceResolution": true, + "explainFiles": true, + "extendedDiagnostics": true +} Program structureReused: Not Program files:: /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts @@ -397,8 +452,23 @@ project1/file2.ts -Program root files: ["project1/core.d.ts","project1/utils.d.ts","project1/file.ts","project1/index.ts","project1/file2.ts"] -Program options: {"watch":true,"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"explainFiles":true,"extendedDiagnostics":true} +Program root files: [ + "project1/core.d.ts", + "project1/utils.d.ts", + "project1/file.ts", + "project1/index.ts", + "project1/file2.ts" +] +Program options: { + "watch": true, + "lib": [ + "lib.es5.d.ts", + "lib.dom.d.ts" + ], + "traceResolution": true, + "explainFiles": true, + "extendedDiagnostics": true +} Program structureReused: Not Program files:: /home/src/lib/lib.dom.d.ts @@ -517,8 +587,23 @@ project1/file2.ts -Program root files: ["project1/core.d.ts","project1/utils.d.ts","project1/file.ts","project1/index.ts","project1/file2.ts"] -Program options: {"watch":true,"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"explainFiles":true,"extendedDiagnostics":true} +Program root files: [ + "project1/core.d.ts", + "project1/utils.d.ts", + "project1/file.ts", + "project1/index.ts", + "project1/file2.ts" +] +Program options: { + "watch": true, + "lib": [ + "lib.es5.d.ts", + "lib.dom.d.ts" + ], + "traceResolution": true, + "explainFiles": true, + "extendedDiagnostics": true +} Program structureReused: Completely Program files:: /home/src/lib/lib.dom.d.ts @@ -597,8 +682,23 @@ project1/file2.ts -Program root files: ["project1/core.d.ts","project1/utils.d.ts","project1/file.ts","project1/index.ts","project1/file2.ts"] -Program options: {"watch":true,"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"explainFiles":true,"extendedDiagnostics":true} +Program root files: [ + "project1/core.d.ts", + "project1/utils.d.ts", + "project1/file.ts", + "project1/index.ts", + "project1/file2.ts" +] +Program options: { + "watch": true, + "lib": [ + "lib.es5.d.ts", + "lib.dom.d.ts" + ], + "traceResolution": true, + "explainFiles": true, + "extendedDiagnostics": true +} Program structureReused: Not Program files:: /home/src/lib/lib.dom.d.ts @@ -717,8 +817,23 @@ project1/file2.ts -Program root files: ["project1/core.d.ts","project1/utils.d.ts","project1/file.ts","project1/index.ts","project1/file2.ts"] -Program options: {"watch":true,"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"explainFiles":true,"extendedDiagnostics":true} +Program root files: [ + "project1/core.d.ts", + "project1/utils.d.ts", + "project1/file.ts", + "project1/index.ts", + "project1/file2.ts" +] +Program options: { + "watch": true, + "lib": [ + "lib.es5.d.ts", + "lib.dom.d.ts" + ], + "traceResolution": true, + "explainFiles": true, + "extendedDiagnostics": true +} Program structureReused: SafeModules Program files:: /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts @@ -861,8 +976,23 @@ project1/file2.ts -Program root files: ["project1/core.d.ts","project1/utils.d.ts","project1/file.ts","project1/index.ts","project1/file2.ts"] -Program options: {"watch":true,"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"explainFiles":true,"extendedDiagnostics":true} +Program root files: [ + "project1/core.d.ts", + "project1/utils.d.ts", + "project1/file.ts", + "project1/index.ts", + "project1/file2.ts" +] +Program options: { + "watch": true, + "lib": [ + "lib.es5.d.ts", + "lib.dom.d.ts" + ], + "traceResolution": true, + "explainFiles": true, + "extendedDiagnostics": true +} Program structureReused: Not Program files:: /home/src/lib/lib.webworker.d.ts @@ -991,8 +1121,23 @@ project1/file2.ts -Program root files: ["project1/core.d.ts","project1/utils.d.ts","project1/file.ts","project1/index.ts","project1/file2.ts"] -Program options: {"watch":true,"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"explainFiles":true,"extendedDiagnostics":true} +Program root files: [ + "project1/core.d.ts", + "project1/utils.d.ts", + "project1/file.ts", + "project1/index.ts", + "project1/file2.ts" +] +Program options: { + "watch": true, + "lib": [ + "lib.es5.d.ts", + "lib.dom.d.ts" + ], + "traceResolution": true, + "explainFiles": true, + "extendedDiagnostics": true +} Program structureReused: SafeModules Program files:: /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts diff --git a/tests/baselines/reference/tscWatch/libraryResolution/without-config.js b/tests/baselines/reference/tscWatch/libraryResolution/without-config.js index 05457f495013d..78fcfcd5b7d07 100644 --- a/tests/baselines/reference/tscWatch/libraryResolution/without-config.js +++ b/tests/baselines/reference/tscWatch/libraryResolution/without-config.js @@ -19,7 +19,19 @@ export const x = "type1"; //// [/home/src/projects/project1/tsconfig.json] -{"compilerOptions":{"composite":true,"typeRoots":["./typeroot1"],"lib":["es5","dom"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "typeRoots": [ + "./typeroot1" + ], + "lib": [ + "es5", + "dom" + ], + "traceResolution": true + } +} //// [/home/src/projects/project1/typeroot1/sometype/index.d.ts] export type TheNum = "type1"; @@ -31,7 +43,16 @@ export const y = 10; export const y = 10 //// [/home/src/projects/project2/tsconfig.json] -{"compilerOptions":{"composite":true,"lib":["es5","dom"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "lib": [ + "es5", + "dom" + ], + "traceResolution": true + } +} //// [/home/src/projects/project3/utils.d.ts] export const y = 10; @@ -40,7 +61,16 @@ export const y = 10; export const z = 10 //// [/home/src/projects/project3/tsconfig.json] -{"compilerOptions":{"composite":true,"lib":["es5","dom"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "lib": [ + "es5", + "dom" + ], + "traceResolution": true + } +} //// [/home/src/projects/project4/utils.d.ts] export const y = 10; @@ -49,7 +79,17 @@ export const y = 10; export const z = 10 //// [/home/src/projects/project4/tsconfig.json] -{"compilerOptions":{"composite":true,"lib":["esnext","dom","webworker"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "lib": [ + "esnext", + "dom", + "webworker" + ], + "traceResolution": true + } +} //// [/home/src/lib/lib.es5.d.ts] /// @@ -231,8 +271,23 @@ project1/file2.ts -Program root files: ["project1/core.d.ts","project1/utils.d.ts","project1/file.ts","project1/index.ts","project1/file2.ts"] -Program options: {"watch":true,"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"explainFiles":true,"extendedDiagnostics":true} +Program root files: [ + "project1/core.d.ts", + "project1/utils.d.ts", + "project1/file.ts", + "project1/index.ts", + "project1/file2.ts" +] +Program options: { + "watch": true, + "lib": [ + "lib.es5.d.ts", + "lib.dom.d.ts" + ], + "traceResolution": true, + "explainFiles": true, + "extendedDiagnostics": true +} Program structureReused: Not Program files:: /home/src/lib/lib.es5.d.ts @@ -387,8 +442,23 @@ project1/file2.ts -Program root files: ["project1/core.d.ts","project1/utils.d.ts","project1/file.ts","project1/index.ts","project1/file2.ts"] -Program options: {"watch":true,"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"explainFiles":true,"extendedDiagnostics":true} +Program root files: [ + "project1/core.d.ts", + "project1/utils.d.ts", + "project1/file.ts", + "project1/index.ts", + "project1/file2.ts" +] +Program options: { + "watch": true, + "lib": [ + "lib.es5.d.ts", + "lib.dom.d.ts" + ], + "traceResolution": true, + "explainFiles": true, + "extendedDiagnostics": true +} Program structureReused: SafeModules Program files:: /home/src/lib/lib.es5.d.ts @@ -507,8 +577,23 @@ project1/file2.ts -Program root files: ["project1/core.d.ts","project1/utils.d.ts","project1/file.ts","project1/index.ts","project1/file2.ts"] -Program options: {"watch":true,"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"explainFiles":true,"extendedDiagnostics":true} +Program root files: [ + "project1/core.d.ts", + "project1/utils.d.ts", + "project1/file.ts", + "project1/index.ts", + "project1/file2.ts" +] +Program options: { + "watch": true, + "lib": [ + "lib.es5.d.ts", + "lib.dom.d.ts" + ], + "traceResolution": true, + "explainFiles": true, + "extendedDiagnostics": true +} Program structureReused: Completely Program files:: /home/src/lib/lib.es5.d.ts @@ -587,8 +672,23 @@ project1/file2.ts -Program root files: ["project1/core.d.ts","project1/utils.d.ts","project1/file.ts","project1/index.ts","project1/file2.ts"] -Program options: {"watch":true,"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"explainFiles":true,"extendedDiagnostics":true} +Program root files: [ + "project1/core.d.ts", + "project1/utils.d.ts", + "project1/file.ts", + "project1/index.ts", + "project1/file2.ts" +] +Program options: { + "watch": true, + "lib": [ + "lib.es5.d.ts", + "lib.dom.d.ts" + ], + "traceResolution": true, + "explainFiles": true, + "extendedDiagnostics": true +} Program structureReused: Not Program files:: /home/src/lib/lib.es5.d.ts @@ -721,8 +821,23 @@ project1/file2.ts -Program root files: ["project1/core.d.ts","project1/utils.d.ts","project1/file.ts","project1/index.ts","project1/file2.ts"] -Program options: {"watch":true,"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"explainFiles":true,"extendedDiagnostics":true} +Program root files: [ + "project1/core.d.ts", + "project1/utils.d.ts", + "project1/file.ts", + "project1/index.ts", + "project1/file2.ts" +] +Program options: { + "watch": true, + "lib": [ + "lib.es5.d.ts", + "lib.dom.d.ts" + ], + "traceResolution": true, + "explainFiles": true, + "extendedDiagnostics": true +} Program structureReused: Not Program files:: /home/src/lib/lib.es5.d.ts @@ -854,8 +969,23 @@ project1/file2.ts -Program root files: ["project1/core.d.ts","project1/utils.d.ts","project1/file.ts","project1/index.ts","project1/file2.ts"] -Program options: {"watch":true,"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"explainFiles":true,"extendedDiagnostics":true} +Program root files: [ + "project1/core.d.ts", + "project1/utils.d.ts", + "project1/file.ts", + "project1/index.ts", + "project1/file2.ts" +] +Program options: { + "watch": true, + "lib": [ + "lib.es5.d.ts", + "lib.dom.d.ts" + ], + "traceResolution": true, + "explainFiles": true, + "extendedDiagnostics": true +} Program structureReused: SafeModules Program files:: /home/src/lib/lib.es5.d.ts @@ -998,8 +1128,23 @@ project1/file2.ts -Program root files: ["project1/core.d.ts","project1/utils.d.ts","project1/file.ts","project1/index.ts","project1/file2.ts"] -Program options: {"watch":true,"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"explainFiles":true,"extendedDiagnostics":true} +Program root files: [ + "project1/core.d.ts", + "project1/utils.d.ts", + "project1/file.ts", + "project1/index.ts", + "project1/file2.ts" +] +Program options: { + "watch": true, + "lib": [ + "lib.es5.d.ts", + "lib.dom.d.ts" + ], + "traceResolution": true, + "explainFiles": true, + "extendedDiagnostics": true +} Program structureReused: Not Program files:: /home/src/lib/lib.es5.d.ts diff --git a/tests/baselines/reference/tscWatch/moduleResolution/diagnostics-from-cache.js b/tests/baselines/reference/tscWatch/moduleResolution/diagnostics-from-cache.js index 33407bef21833..73c1e01916c16 100644 --- a/tests/baselines/reference/tscWatch/moduleResolution/diagnostics-from-cache.js +++ b/tests/baselines/reference/tscWatch/moduleResolution/diagnostics-from-cache.js @@ -1,10 +1,26 @@ currentDirectory:: /user/username/projects/myproject useCaseSensitiveFileNames: false Input:: //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"moduleResolution":"nodenext","outDir":"./dist","declaration":true,"declarationDir":"./types"}} +{ + "compilerOptions": { + "moduleResolution": "nodenext", + "outDir": "./dist", + "declaration": true, + "declarationDir": "./types" + } +} //// [/user/username/projects/myproject/package.json] -{"name":"@this/package","type":"module","exports":{".":{"default":"./dist/index.js","types":"./types/index.d.ts"}}} +{ + "name": "@this/package", + "type": "module", + "exports": { + ".": { + "default": "./dist/index.js", + "types": "./types/index.d.ts" + } + } +} //// [/user/username/projects/myproject/index.ts] import * as me from "@this/package"; @@ -60,8 +76,19 @@ File '/package.json' does not exist. -Program root files: ["/user/username/projects/myproject/index.ts","/user/username/projects/myproject/index2.ts"] -Program options: {"moduleResolution":99,"outDir":"/user/username/projects/myproject/dist","declaration":true,"declarationDir":"/user/username/projects/myproject/types","watch":true,"traceResolution":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/index.ts", + "/user/username/projects/myproject/index2.ts" +] +Program options: { + "moduleResolution": 99, + "outDir": "/user/username/projects/myproject/dist", + "declaration": true, + "declarationDir": "/user/username/projects/myproject/types", + "watch": true, + "traceResolution": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -167,8 +194,19 @@ File '/package.json' does not exist according to earlier cached lookups. -Program root files: ["/user/username/projects/myproject/index.ts","/user/username/projects/myproject/index2.ts"] -Program options: {"moduleResolution":99,"outDir":"/user/username/projects/myproject/dist","declaration":true,"declarationDir":"/user/username/projects/myproject/types","watch":true,"traceResolution":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/index.ts", + "/user/username/projects/myproject/index2.ts" +] +Program options: { + "moduleResolution": 99, + "outDir": "/user/username/projects/myproject/dist", + "declaration": true, + "declarationDir": "/user/username/projects/myproject/types", + "watch": true, + "traceResolution": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/moduleResolution/module-resolutions-from-file-are-partially-used.js b/tests/baselines/reference/tscWatch/moduleResolution/module-resolutions-from-file-are-partially-used.js index d74aab3dd6dfe..3691896e7b99f 100644 --- a/tests/baselines/reference/tscWatch/moduleResolution/module-resolutions-from-file-are-partially-used.js +++ b/tests/baselines/reference/tscWatch/moduleResolution/module-resolutions-from-file-are-partially-used.js @@ -1,7 +1,11 @@ currentDirectory:: /user/username/projects/myproject useCaseSensitiveFileNames: false Input:: //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"moduleResolution":"node16"}} +{ + "compilerOptions": { + "moduleResolution": "node16" + } +} //// [/user/username/projects/myproject/index.ts] import type { ImportInterface } from "pkg" assert { "resolution-mode": "import" }; @@ -14,7 +18,14 @@ export const x = 10; //// [/user/username/projects/myproject/node_modules/pkg/package.json] -{"name":"pkg","version":"0.0.1","exports":{"import":"./import.js","require":"./require.js"}} +{ + "name": "pkg", + "version": "0.0.1", + "exports": { + "import": "./import.js", + "require": "./require.js" + } +} //// [/user/username/projects/myproject/node_modules/pkg/import.d.ts] export interface ImportInterface {} @@ -23,7 +34,14 @@ export interface ImportInterface {} export interface RequireInterface {} //// [/user/username/projects/myproject/node_modules/pkg1/package.json] -{"name":"pkg1","version":"0.0.1","exports":{"import":"./import.js","require":"./require.js"}} +{ + "name": "pkg1", + "version": "0.0.1", + "exports": { + "import": "./import.js", + "require": "./require.js" + } +} //// [/user/username/projects/myproject/node_modules/pkg1/import.d.ts] export interface ImportInterface {} @@ -137,8 +155,16 @@ File '/package.json' does not exist according to earlier cached lookups. -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/index.ts"] -Program options: {"moduleResolution":3,"watch":true,"traceResolution":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/index.ts" +] +Program options: { + "moduleResolution": 3, + "watch": true, + "traceResolution": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -281,8 +307,16 @@ File '/package.json' does not exist according to earlier cached lookups. -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/index.ts"] -Program options: {"moduleResolution":3,"watch":true,"traceResolution":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/index.ts" +] +Program options: { + "moduleResolution": 3, + "watch": true, + "traceResolution": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/moduleResolution/module-resolutions-from-files-with-partially-used-import-attributes.js b/tests/baselines/reference/tscWatch/moduleResolution/module-resolutions-from-files-with-partially-used-import-attributes.js index 3315ea948b505..83a6342fbf624 100644 --- a/tests/baselines/reference/tscWatch/moduleResolution/module-resolutions-from-files-with-partially-used-import-attributes.js +++ b/tests/baselines/reference/tscWatch/moduleResolution/module-resolutions-from-files-with-partially-used-import-attributes.js @@ -1,7 +1,11 @@ currentDirectory:: /user/username/projects/myproject useCaseSensitiveFileNames: false Input:: //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"moduleResolution":"node16"}} +{ + "compilerOptions": { + "moduleResolution": "node16" + } +} //// [/user/username/projects/myproject/index.ts] import type { ImportInterface } from "pkg" with { "resolution-mode": "import" }; @@ -14,7 +18,14 @@ export const x = 10; //// [/user/username/projects/myproject/node_modules/pkg/package.json] -{"name":"pkg","version":"0.0.1","exports":{"import":"./import.js","require":"./require.js"}} +{ + "name": "pkg", + "version": "0.0.1", + "exports": { + "import": "./import.js", + "require": "./require.js" + } +} //// [/user/username/projects/myproject/node_modules/pkg/import.d.ts] export interface ImportInterface {} @@ -23,7 +34,14 @@ export interface ImportInterface {} export interface RequireInterface {} //// [/user/username/projects/myproject/node_modules/pkg1/package.json] -{"name":"pkg1","version":"0.0.1","exports":{"import":"./import.js","require":"./require.js"}} +{ + "name": "pkg1", + "version": "0.0.1", + "exports": { + "import": "./import.js", + "require": "./require.js" + } +} //// [/user/username/projects/myproject/node_modules/pkg1/import.d.ts] export interface ImportInterface {} @@ -137,8 +155,16 @@ File '/package.json' does not exist according to earlier cached lookups. -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/index.ts"] -Program options: {"moduleResolution":3,"watch":true,"traceResolution":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/index.ts" +] +Program options: { + "moduleResolution": 3, + "watch": true, + "traceResolution": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -281,8 +307,16 @@ File '/package.json' does not exist according to earlier cached lookups. -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/index.ts"] -Program options: {"moduleResolution":3,"watch":true,"traceResolution":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/index.ts" +] +Program options: { + "moduleResolution": 3, + "watch": true, + "traceResolution": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/moduleResolution/node10Result.js b/tests/baselines/reference/tscWatch/moduleResolution/node10Result.js index 648ac07f65d86..1edfb48a25996 100644 --- a/tests/baselines/reference/tscWatch/moduleResolution/node10Result.js +++ b/tests/baselines/reference/tscWatch/moduleResolution/node10Result.js @@ -2,14 +2,14 @@ currentDirectory:: /home/src/projects/project useCaseSensitiveFileNames: false Input:: //// [/home/src/projects/project/node_modules/@types/bar/package.json] { - "name": "@types/bar", - "version": "1.0.0", - "types": "index.d.ts", - "exports": { - ".": { - "require": "./index.d.ts" + "name": "@types/bar", + "version": "1.0.0", + "types": "index.d.ts", + "exports": { + ".": { + "require": "./index.d.ts" + } } - } } //// [/home/src/projects/project/node_modules/@types/bar/index.d.ts] @@ -17,15 +17,15 @@ export declare const bar: number; //// [/home/src/projects/project/node_modules/bar/package.json] { - "name": "bar", - "version": "1.0.0", - "main": "index.js", - "exports": { - ".": { - "import": "./index.mjs", - "require": "./index.js" + "name": "bar", + "version": "1.0.0", + "main": "index.js", + "exports": { + ".": { + "import": "./index.mjs", + "require": "./index.js" + } } - } } //// [/home/src/projects/project/node_modules/bar/index.js] @@ -36,16 +36,16 @@ export const bar = 1; //// [/home/src/projects/project/node_modules/foo/package.json] { - "name": "foo", - "version": "1.0.0", - "main": "index.js", - "types": "index.d.ts", - "exports": { - ".": { - "import": "./index.mjs", - "require": "./index.js" + "name": "foo", + "version": "1.0.0", + "main": "index.js", + "types": "index.d.ts", + "exports": { + ".": { + "import": "./index.mjs", + "require": "./index.js" + } } - } } //// [/home/src/projects/project/node_modules/foo/index.js] @@ -59,15 +59,15 @@ export declare const foo: number; //// [/home/src/projects/project/node_modules/@types/bar2/package.json] { - "name": "@types/bar2", - "version": "1.0.0", - "types": "index.d.ts", - "exports": { - ".": { - "types": "./index.d.ts", - "require": "./index.d.ts" + "name": "@types/bar2", + "version": "1.0.0", + "types": "index.d.ts", + "exports": { + ".": { + "types": "./index.d.ts", + "require": "./index.d.ts" + } } - } } //// [/home/src/projects/project/node_modules/@types/bar2/index.d.ts] @@ -75,15 +75,15 @@ export declare const bar2: number; //// [/home/src/projects/project/node_modules/bar2/package.json] { - "name": "bar2", - "version": "1.0.0", - "main": "index.js", - "exports": { - ".": { - "import": "./index.mjs", - "require": "./index.js" + "name": "bar2", + "version": "1.0.0", + "main": "index.js", + "exports": { + ".": { + "import": "./index.mjs", + "require": "./index.js" + } } - } } //// [/home/src/projects/project/node_modules/bar2/index.js] @@ -94,17 +94,17 @@ export const bar2 = 1; //// [/home/src/projects/project/node_modules/foo2/package.json] { - "name": "foo2", - "version": "1.0.0", - "main": "index.js", - "types": "index.d.ts", - "exports": { - ".": { - "types": "./index.d.ts", - "import": "./index.mjs", - "require": "./index.js" + "name": "foo2", + "version": "1.0.0", + "main": "index.js", + "types": "index.d.ts", + "exports": { + ".": { + "types": "./index.d.ts", + "import": "./index.mjs", + "require": "./index.js" + } } - } } //// [/home/src/projects/project/node_modules/foo2/index.js] @@ -124,7 +124,18 @@ import { bar2 } from "bar2"; //// [/home/src/projects/project/tsconfig.json] -{"compilerOptions":{"moduleResolution":"node16","traceResolution":true,"incremental":true,"strict":true,"types":[]},"files":["index.mts"]} +{ + "compilerOptions": { + "moduleResolution": "node16", + "traceResolution": true, + "incremental": true, + "strict": true, + "types": [] + }, + "files": [ + "index.mts" + ] +} //// [/a/lib/lib.d.ts] /// @@ -352,8 +363,19 @@ Scheduling invalidateFailedLookup, Cancelled earlier one Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/project 0 undefined Failed Lookup Locations -Program root files: ["/home/src/projects/project/index.mts"] -Program options: {"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"watch":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project/tsconfig.json"} +Program root files: [ + "/home/src/projects/project/index.mts" +] +Program options: { + "moduleResolution": 3, + "traceResolution": true, + "incremental": true, + "strict": true, + "types": [], + "watch": true, + "extendedDiagnostics": true, + "configFilePath": "/home/src/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -619,8 +641,19 @@ File '/package.json' does not exist according to earlier cached lookups. -Program root files: ["/home/src/projects/project/index.mts"] -Program options: {"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"watch":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project/tsconfig.json"} +Program root files: [ + "/home/src/projects/project/index.mts" +] +Program options: { + "moduleResolution": 3, + "traceResolution": true, + "incremental": true, + "strict": true, + "types": [], + "watch": true, + "extendedDiagnostics": true, + "configFilePath": "/home/src/projects/project/tsconfig.json" +} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts @@ -738,8 +771,19 @@ File '/package.json' does not exist according to earlier cached lookups. -Program root files: ["/home/src/projects/project/index.mts"] -Program options: {"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"watch":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project/tsconfig.json"} +Program root files: [ + "/home/src/projects/project/index.mts" +] +Program options: { + "moduleResolution": 3, + "traceResolution": true, + "incremental": true, + "strict": true, + "types": [], + "watch": true, + "extendedDiagnostics": true, + "configFilePath": "/home/src/projects/project/tsconfig.json" +} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts @@ -865,8 +909,19 @@ File '/package.json' does not exist according to earlier cached lookups. -Program root files: ["/home/src/projects/project/index.mts"] -Program options: {"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"watch":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project/tsconfig.json"} +Program root files: [ + "/home/src/projects/project/index.mts" +] +Program options: { + "moduleResolution": 3, + "traceResolution": true, + "incremental": true, + "strict": true, + "types": [], + "watch": true, + "extendedDiagnostics": true, + "configFilePath": "/home/src/projects/project/tsconfig.json" +} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts @@ -973,8 +1028,19 @@ File '/package.json' does not exist according to earlier cached lookups. -Program root files: ["/home/src/projects/project/index.mts"] -Program options: {"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"watch":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project/tsconfig.json"} +Program root files: [ + "/home/src/projects/project/index.mts" +] +Program options: { + "moduleResolution": 3, + "traceResolution": true, + "incremental": true, + "strict": true, + "types": [], + "watch": true, + "extendedDiagnostics": true, + "configFilePath": "/home/src/projects/project/tsconfig.json" +} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts @@ -994,15 +1060,15 @@ Change:: update package.json from @types so error is fixed Input:: //// [/home/src/projects/project/node_modules/@types/bar/package.json] { - "name": "@types/bar", - "version": "1.0.0", - "types": "index.d.ts", - "exports": { - ".": { - "types": "./index.d.ts", - "require": "./index.d.ts" + "name": "@types/bar", + "version": "1.0.0", + "types": "index.d.ts", + "exports": { + ".": { + "types": "./index.d.ts", + "require": "./index.d.ts" + } } - } } @@ -1074,8 +1140,19 @@ File '/package.json' does not exist according to earlier cached lookups. -Program root files: ["/home/src/projects/project/index.mts"] -Program options: {"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"watch":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project/tsconfig.json"} +Program root files: [ + "/home/src/projects/project/index.mts" +] +Program options: { + "moduleResolution": 3, + "traceResolution": true, + "incremental": true, + "strict": true, + "types": [], + "watch": true, + "extendedDiagnostics": true, + "configFilePath": "/home/src/projects/project/tsconfig.json" +} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts @@ -1229,17 +1306,17 @@ Change:: update package.json so error is fixed Input:: //// [/home/src/projects/project/node_modules/foo/package.json] { - "name": "foo", - "version": "1.0.0", - "main": "index.js", - "types": "index.d.ts", - "exports": { - ".": { - "types": "./index.d.ts", - "import": "./index.mjs", - "require": "./index.js" + "name": "foo", + "version": "1.0.0", + "main": "index.js", + "types": "index.d.ts", + "exports": { + ".": { + "types": "./index.d.ts", + "import": "./index.mjs", + "require": "./index.js" + } } - } } @@ -1305,8 +1382,19 @@ Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /home/src/projects/node_modu -Program root files: ["/home/src/projects/project/index.mts"] -Program options: {"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"watch":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project/tsconfig.json"} +Program root files: [ + "/home/src/projects/project/index.mts" +] +Program options: { + "moduleResolution": 3, + "traceResolution": true, + "incremental": true, + "strict": true, + "types": [], + "watch": true, + "extendedDiagnostics": true, + "configFilePath": "/home/src/projects/project/tsconfig.json" +} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts @@ -1475,14 +1563,14 @@ Change:: update package.json from @types so error is introduced Input:: //// [/home/src/projects/project/node_modules/@types/bar2/package.json] { - "name": "@types/bar2", - "version": "1.0.0", - "types": "index.d.ts", - "exports": { - ".": { - "require": "./index.d.ts" + "name": "@types/bar2", + "version": "1.0.0", + "types": "index.d.ts", + "exports": { + ".": { + "require": "./index.d.ts" + } } - } } @@ -1597,8 +1685,19 @@ Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/node_modu -Program root files: ["/home/src/projects/project/index.mts"] -Program options: {"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"watch":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project/tsconfig.json"} +Program root files: [ + "/home/src/projects/project/index.mts" +] +Program options: { + "moduleResolution": 3, + "traceResolution": true, + "incremental": true, + "strict": true, + "types": [], + "watch": true, + "extendedDiagnostics": true, + "configFilePath": "/home/src/projects/project/tsconfig.json" +} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts @@ -1755,16 +1854,16 @@ Change:: update package.json so error is introduced Input:: //// [/home/src/projects/project/node_modules/foo2/package.json] { - "name": "foo2", - "version": "1.0.0", - "main": "index.js", - "types": "index.d.ts", - "exports": { - ".": { - "import": "./index.mjs", - "require": "./index.js" + "name": "foo2", + "version": "1.0.0", + "main": "index.js", + "types": "index.d.ts", + "exports": { + ".": { + "import": "./index.mjs", + "require": "./index.js" + } } - } } @@ -1855,8 +1954,19 @@ FileWatcher:: Close:: WatchInfo: /home/src/projects/project/node_modules/foo2/in -Program root files: ["/home/src/projects/project/index.mts"] -Program options: {"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"watch":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project/tsconfig.json"} +Program root files: [ + "/home/src/projects/project/index.mts" +] +Program options: { + "moduleResolution": 3, + "traceResolution": true, + "incremental": true, + "strict": true, + "types": [], + "watch": true, + "extendedDiagnostics": true, + "configFilePath": "/home/src/projects/project/tsconfig.json" +} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts @@ -2115,8 +2225,19 @@ File '/package.json' does not exist according to earlier cached lookups. -Program root files: ["/home/src/projects/project/index.mts"] -Program options: {"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"watch":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project/tsconfig.json"} +Program root files: [ + "/home/src/projects/project/index.mts" +] +Program options: { + "moduleResolution": 3, + "traceResolution": true, + "incremental": true, + "strict": true, + "types": [], + "watch": true, + "extendedDiagnostics": true, + "configFilePath": "/home/src/projects/project/tsconfig.json" +} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts @@ -2234,8 +2355,19 @@ File '/package.json' does not exist according to earlier cached lookups. -Program root files: ["/home/src/projects/project/index.mts"] -Program options: {"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"watch":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project/tsconfig.json"} +Program root files: [ + "/home/src/projects/project/index.mts" +] +Program options: { + "moduleResolution": 3, + "traceResolution": true, + "incremental": true, + "strict": true, + "types": [], + "watch": true, + "extendedDiagnostics": true, + "configFilePath": "/home/src/projects/project/tsconfig.json" +} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts @@ -2361,8 +2493,19 @@ File '/package.json' does not exist according to earlier cached lookups. -Program root files: ["/home/src/projects/project/index.mts"] -Program options: {"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"watch":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project/tsconfig.json"} +Program root files: [ + "/home/src/projects/project/index.mts" +] +Program options: { + "moduleResolution": 3, + "traceResolution": true, + "incremental": true, + "strict": true, + "types": [], + "watch": true, + "extendedDiagnostics": true, + "configFilePath": "/home/src/projects/project/tsconfig.json" +} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts @@ -2469,8 +2612,19 @@ File '/package.json' does not exist according to earlier cached lookups. -Program root files: ["/home/src/projects/project/index.mts"] -Program options: {"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"watch":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project/tsconfig.json"} +Program root files: [ + "/home/src/projects/project/index.mts" +] +Program options: { + "moduleResolution": 3, + "traceResolution": true, + "incremental": true, + "strict": true, + "types": [], + "watch": true, + "extendedDiagnostics": true, + "configFilePath": "/home/src/projects/project/tsconfig.json" +} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/moduleResolution/package-json-file-is-edited-when-package-json-with-type-module-exists.js b/tests/baselines/reference/tscWatch/moduleResolution/package-json-file-is-edited-when-package-json-with-type-module-exists.js index 0f73ffa38f443..b2baea4623ecc 100644 --- a/tests/baselines/reference/tscWatch/moduleResolution/package-json-file-is-edited-when-package-json-with-type-module-exists.js +++ b/tests/baselines/reference/tscWatch/moduleResolution/package-json-file-is-edited-when-package-json-with-type-module-exists.js @@ -1,7 +1,13 @@ currentDirectory:: /user/username/projects/myproject useCaseSensitiveFileNames: false Input:: //// [/user/username/projects/myproject/src/tsconfig.json] -{"compilerOptions":{"target":"es2016","module":"Node16","outDir":"../out"}} +{ + "compilerOptions": { + "target": "es2016", + "module": "Node16", + "outDir": "../out" + } +} //// [/user/username/projects/myproject/src/fileA.ts] import { foo } from "./fileB.mjs"; @@ -14,7 +20,11 @@ export function foo() { //// [/user/username/projects/myproject/package.json] -{"name":"app","version":"1.0.0","type":"module"} +{ + "name": "app", + "version": "1.0.0", + "type": "module" +} //// [/a/lib/lib.es2016.full.d.ts] /// @@ -83,8 +93,20 @@ DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 un Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -Program root files: ["/user/username/projects/myproject/src/fileA.ts"] -Program options: {"target":3,"module":100,"outDir":"/user/username/projects/myproject/out","watch":true,"project":"/user/username/projects/myproject/src","extendedDiagnostics":true,"traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/myproject/src/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/src/fileA.ts" +] +Program options: { + "target": 3, + "module": 100, + "outDir": "/user/username/projects/myproject/out", + "watch": true, + "project": "/user/username/projects/myproject/src", + "extendedDiagnostics": true, + "traceResolution": true, + "explainFiles": true, + "configFilePath": "/user/username/projects/myproject/src/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.es2016.full.d.ts @@ -136,7 +158,10 @@ Change:: Modify package.json file to remove type module Input:: //// [/user/username/projects/myproject/package.json] -{"name":"app","version":"1.0.0"} +{ + "name": "app", + "version": "1.0.0" +} Before running Timeout callback:: count: 1 @@ -198,8 +223,20 @@ src/fileA.ts -Program root files: ["/user/username/projects/myproject/src/fileA.ts"] -Program options: {"target":3,"module":100,"outDir":"/user/username/projects/myproject/out","watch":true,"project":"/user/username/projects/myproject/src","extendedDiagnostics":true,"traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/myproject/src/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/src/fileA.ts" +] +Program options: { + "target": 3, + "module": 100, + "outDir": "/user/username/projects/myproject/out", + "watch": true, + "project": "/user/username/projects/myproject/src", + "extendedDiagnostics": true, + "traceResolution": true, + "explainFiles": true, + "configFilePath": "/user/username/projects/myproject/src/tsconfig.json" +} Program structureReused: SafeModules Program files:: /a/lib/lib.es2016.full.d.ts @@ -253,7 +290,11 @@ Change:: Modify package json file to add type module Input:: //// [/user/username/projects/myproject/package.json] -{"name":"app","version":"1.0.0","type":"module"} +{ + "name": "app", + "version": "1.0.0", + "type": "module" +} Before running Timeout callback:: count: 1 @@ -310,8 +351,20 @@ src/fileA.ts -Program root files: ["/user/username/projects/myproject/src/fileA.ts"] -Program options: {"target":3,"module":100,"outDir":"/user/username/projects/myproject/out","watch":true,"project":"/user/username/projects/myproject/src","extendedDiagnostics":true,"traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/myproject/src/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/src/fileA.ts" +] +Program options: { + "target": 3, + "module": 100, + "outDir": "/user/username/projects/myproject/out", + "watch": true, + "project": "/user/username/projects/myproject/src", + "extendedDiagnostics": true, + "traceResolution": true, + "explainFiles": true, + "configFilePath": "/user/username/projects/myproject/src/tsconfig.json" +} Program structureReused: SafeModules Program files:: /a/lib/lib.es2016.full.d.ts @@ -434,8 +487,20 @@ src/fileA.ts -Program root files: ["/user/username/projects/myproject/src/fileA.ts"] -Program options: {"target":3,"module":100,"outDir":"/user/username/projects/myproject/out","watch":true,"project":"/user/username/projects/myproject/src","extendedDiagnostics":true,"traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/myproject/src/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/src/fileA.ts" +] +Program options: { + "target": 3, + "module": 100, + "outDir": "/user/username/projects/myproject/out", + "watch": true, + "project": "/user/username/projects/myproject/src", + "extendedDiagnostics": true, + "traceResolution": true, + "explainFiles": true, + "configFilePath": "/user/username/projects/myproject/src/tsconfig.json" +} Program structureReused: SafeModules Program files:: /a/lib/lib.es2016.full.d.ts @@ -491,7 +556,10 @@ Change:: Modify package json file to without type module Input:: //// [/user/username/projects/myproject/package.json] -{"name":"app","version":"1.0.0"} +{ + "name": "app", + "version": "1.0.0" +} Before running Timeout callback:: count: 1 @@ -538,8 +606,20 @@ src/fileA.ts -Program root files: ["/user/username/projects/myproject/src/fileA.ts"] -Program options: {"target":3,"module":100,"outDir":"/user/username/projects/myproject/out","watch":true,"project":"/user/username/projects/myproject/src","extendedDiagnostics":true,"traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/myproject/src/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/src/fileA.ts" +] +Program options: { + "target": 3, + "module": 100, + "outDir": "/user/username/projects/myproject/out", + "watch": true, + "project": "/user/username/projects/myproject/src", + "extendedDiagnostics": true, + "traceResolution": true, + "explainFiles": true, + "configFilePath": "/user/username/projects/myproject/src/tsconfig.json" +} Program structureReused: SafeModules Program files:: /a/lib/lib.es2016.full.d.ts @@ -641,8 +721,20 @@ src/fileA.ts -Program root files: ["/user/username/projects/myproject/src/fileA.ts"] -Program options: {"target":3,"module":100,"outDir":"/user/username/projects/myproject/out","watch":true,"project":"/user/username/projects/myproject/src","extendedDiagnostics":true,"traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/myproject/src/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/src/fileA.ts" +] +Program options: { + "target": 3, + "module": 100, + "outDir": "/user/username/projects/myproject/out", + "watch": true, + "project": "/user/username/projects/myproject/src", + "extendedDiagnostics": true, + "traceResolution": true, + "explainFiles": true, + "configFilePath": "/user/username/projects/myproject/src/tsconfig.json" +} Program structureReused: SafeModules Program files:: /a/lib/lib.es2016.full.d.ts diff --git a/tests/baselines/reference/tscWatch/moduleResolution/package-json-file-is-edited.js b/tests/baselines/reference/tscWatch/moduleResolution/package-json-file-is-edited.js index 7b11a1f5d66d5..df34ca28a6b22 100644 --- a/tests/baselines/reference/tscWatch/moduleResolution/package-json-file-is-edited.js +++ b/tests/baselines/reference/tscWatch/moduleResolution/package-json-file-is-edited.js @@ -1,7 +1,13 @@ currentDirectory:: /user/username/projects/myproject useCaseSensitiveFileNames: false Input:: //// [/user/username/projects/myproject/src/tsconfig.json] -{"compilerOptions":{"target":"es2016","module":"Node16","outDir":"../out"}} +{ + "compilerOptions": { + "target": "es2016", + "module": "Node16", + "outDir": "../out" + } +} //// [/user/username/projects/myproject/src/fileA.ts] import { foo } from "./fileB.mjs"; @@ -14,7 +20,10 @@ export function foo() { //// [/user/username/projects/myproject/package.json] -{"name":"app","version":"1.0.0"} +{ + "name": "app", + "version": "1.0.0" +} //// [/a/lib/lib.es2016.full.d.ts] /// @@ -90,8 +99,20 @@ DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 un Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Wild card directory -Program root files: ["/user/username/projects/myproject/src/fileA.ts"] -Program options: {"target":3,"module":100,"outDir":"/user/username/projects/myproject/out","watch":true,"project":"/user/username/projects/myproject/src","extendedDiagnostics":true,"traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/myproject/src/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/src/fileA.ts" +] +Program options: { + "target": 3, + "module": 100, + "outDir": "/user/username/projects/myproject/out", + "watch": true, + "project": "/user/username/projects/myproject/src", + "extendedDiagnostics": true, + "traceResolution": true, + "explainFiles": true, + "configFilePath": "/user/username/projects/myproject/src/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.es2016.full.d.ts @@ -147,7 +168,11 @@ Change:: Modify package json file to add type module Input:: //// [/user/username/projects/myproject/package.json] -{"name":"app","version":"1.0.0","type":"module"} +{ + "name": "app", + "version": "1.0.0", + "type": "module" +} Before running Timeout callback:: count: 1 @@ -204,8 +229,20 @@ src/fileA.ts -Program root files: ["/user/username/projects/myproject/src/fileA.ts"] -Program options: {"target":3,"module":100,"outDir":"/user/username/projects/myproject/out","watch":true,"project":"/user/username/projects/myproject/src","extendedDiagnostics":true,"traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/myproject/src/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/src/fileA.ts" +] +Program options: { + "target": 3, + "module": 100, + "outDir": "/user/username/projects/myproject/out", + "watch": true, + "project": "/user/username/projects/myproject/src", + "extendedDiagnostics": true, + "traceResolution": true, + "explainFiles": true, + "configFilePath": "/user/username/projects/myproject/src/tsconfig.json" +} Program structureReused: SafeModules Program files:: /a/lib/lib.es2016.full.d.ts @@ -259,7 +296,10 @@ Change:: Modify package.json file to remove type module Input:: //// [/user/username/projects/myproject/package.json] -{"name":"app","version":"1.0.0"} +{ + "name": "app", + "version": "1.0.0" +} Before running Timeout callback:: count: 1 @@ -321,8 +361,20 @@ src/fileA.ts -Program root files: ["/user/username/projects/myproject/src/fileA.ts"] -Program options: {"target":3,"module":100,"outDir":"/user/username/projects/myproject/out","watch":true,"project":"/user/username/projects/myproject/src","extendedDiagnostics":true,"traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/myproject/src/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/src/fileA.ts" +] +Program options: { + "target": 3, + "module": 100, + "outDir": "/user/username/projects/myproject/out", + "watch": true, + "project": "/user/username/projects/myproject/src", + "extendedDiagnostics": true, + "traceResolution": true, + "explainFiles": true, + "configFilePath": "/user/username/projects/myproject/src/tsconfig.json" +} Program structureReused: SafeModules Program files:: /a/lib/lib.es2016.full.d.ts @@ -429,8 +481,20 @@ src/fileA.ts -Program root files: ["/user/username/projects/myproject/src/fileA.ts"] -Program options: {"target":3,"module":100,"outDir":"/user/username/projects/myproject/out","watch":true,"project":"/user/username/projects/myproject/src","extendedDiagnostics":true,"traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/myproject/src/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/src/fileA.ts" +] +Program options: { + "target": 3, + "module": 100, + "outDir": "/user/username/projects/myproject/out", + "watch": true, + "project": "/user/username/projects/myproject/src", + "extendedDiagnostics": true, + "traceResolution": true, + "explainFiles": true, + "configFilePath": "/user/username/projects/myproject/src/tsconfig.json" +} Program structureReused: SafeModules Program files:: /a/lib/lib.es2016.full.d.ts @@ -477,7 +541,11 @@ Change:: Modify package json file to add type module Input:: //// [/user/username/projects/myproject/package.json] -{"name":"app","version":"1.0.0","type":"module"} +{ + "name": "app", + "version": "1.0.0", + "type": "module" +} Before running Timeout callback:: count: 1 @@ -535,8 +603,20 @@ src/fileA.ts -Program root files: ["/user/username/projects/myproject/src/fileA.ts"] -Program options: {"target":3,"module":100,"outDir":"/user/username/projects/myproject/out","watch":true,"project":"/user/username/projects/myproject/src","extendedDiagnostics":true,"traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/myproject/src/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/src/fileA.ts" +] +Program options: { + "target": 3, + "module": 100, + "outDir": "/user/username/projects/myproject/out", + "watch": true, + "project": "/user/username/projects/myproject/src", + "extendedDiagnostics": true, + "traceResolution": true, + "explainFiles": true, + "configFilePath": "/user/username/projects/myproject/src/tsconfig.json" +} Program structureReused: SafeModules Program files:: /a/lib/lib.es2016.full.d.ts @@ -661,8 +741,20 @@ src/fileA.ts -Program root files: ["/user/username/projects/myproject/src/fileA.ts"] -Program options: {"target":3,"module":100,"outDir":"/user/username/projects/myproject/out","watch":true,"project":"/user/username/projects/myproject/src","extendedDiagnostics":true,"traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/myproject/src/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/src/fileA.ts" +] +Program options: { + "target": 3, + "module": 100, + "outDir": "/user/username/projects/myproject/out", + "watch": true, + "project": "/user/username/projects/myproject/src", + "extendedDiagnostics": true, + "traceResolution": true, + "explainFiles": true, + "configFilePath": "/user/username/projects/myproject/src/tsconfig.json" +} Program structureReused: SafeModules Program files:: /a/lib/lib.es2016.full.d.ts diff --git a/tests/baselines/reference/tscWatch/moduleResolution/type-reference-resolutions-reuse.js b/tests/baselines/reference/tscWatch/moduleResolution/type-reference-resolutions-reuse.js index b8fd355498e41..64795096b0ea3 100644 --- a/tests/baselines/reference/tscWatch/moduleResolution/type-reference-resolutions-reuse.js +++ b/tests/baselines/reference/tscWatch/moduleResolution/type-reference-resolutions-reuse.js @@ -1,7 +1,11 @@ currentDirectory:: /user/username/projects/myproject useCaseSensitiveFileNames: false Input:: //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"moduleResolution":"node16"}} +{ + "compilerOptions": { + "moduleResolution": "node16" + } +} //// [/user/username/projects/myproject/index.ts] /// @@ -14,7 +18,14 @@ export const x = 10; //// [/user/username/projects/myproject/node_modules/pkg/package.json] -{"name":"pkg","version":"0.0.1","exports":{"import":"./import.js","require":"./require.js"}} +{ + "name": "pkg", + "version": "0.0.1", + "exports": { + "import": "./import.js", + "require": "./require.js" + } +} //// [/user/username/projects/myproject/node_modules/pkg/import.d.ts] export {}; @@ -31,7 +42,14 @@ declare global { //// [/user/username/projects/myproject/node_modules/pkg1/package.json] -{"name":"pkg1","version":"0.0.1","exports":{"import":"./import.js","require":"./require.js"}} +{ + "name": "pkg1", + "version": "0.0.1", + "exports": { + "import": "./import.js", + "require": "./require.js" + } +} //// [/user/username/projects/myproject/node_modules/pkg1/import.d.ts] export {}; @@ -137,8 +155,16 @@ File '/package.json' does not exist according to earlier cached lookups. -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/index.ts"] -Program options: {"moduleResolution":3,"watch":true,"traceResolution":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/index.ts" +] +Program options: { + "moduleResolution": 3, + "watch": true, + "traceResolution": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -302,8 +328,16 @@ File '/package.json' does not exist according to earlier cached lookups. -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/index.ts"] -Program options: {"moduleResolution":3,"watch":true,"traceResolution":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/index.ts" +] +Program options: { + "moduleResolution": 3, + "watch": true, + "traceResolution": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/moduleResolution/watches-for-changes-to-package-json-main-fields.js b/tests/baselines/reference/tscWatch/moduleResolution/watches-for-changes-to-package-json-main-fields.js index 297e212fb9b99..2faaa3ac28345 100644 --- a/tests/baselines/reference/tscWatch/moduleResolution/watches-for-changes-to-package-json-main-fields.js +++ b/tests/baselines/reference/tscWatch/moduleResolution/watches-for-changes-to-package-json-main-fields.js @@ -1,14 +1,22 @@ currentDirectory:: /user/username/projects/myproject useCaseSensitiveFileNames: false Input:: //// [/user/username/projects/myproject/packages/pkg1/package.json] -{"name":"pkg1","version":"1.0.0","main":"build/index.js"} +{ + "name": "pkg1", + "version": "1.0.0", + "main": "build/index.js" +} //// [/user/username/projects/myproject/packages/pkg1/index.ts] import type { TheNum } from 'pkg2' export const theNum: TheNum = 42; //// [/user/username/projects/myproject/packages/pkg1/tsconfig.json] -{"compilerOptions":{"outDir":"build"}} +{ + "compilerOptions": { + "outDir": "build" + } +} //// [/user/username/projects/myproject/packages/pkg2/build/const.d.ts] export type TheNum = 42; @@ -20,7 +28,11 @@ export type { TheNum } from './const.js'; export type TheStr = string; //// [/user/username/projects/myproject/packages/pkg2/package.json] -{"name":"pkg2","version":"1.0.0","main":"build/index.js"} +{ + "name": "pkg2", + "version": "1.0.0", + "main": "build/index.js" +} //// [/user/username/projects/myproject/node_modules/pkg2] symlink(/user/username/projects/myproject/packages/pkg2) //// [/a/lib/lib.d.ts] @@ -76,8 +88,16 @@ File '/user/username/projects/myproject/packages/pkg2/build/const.d.ts' exists - -Program root files: ["/user/username/projects/myproject/packages/pkg1/index.ts"] -Program options: {"outDir":"/user/username/projects/myproject/packages/pkg1/build","project":"/user/username/projects/myproject/packages/pkg1/tsconfig.json","watch":true,"traceResolution":true,"configFilePath":"/user/username/projects/myproject/packages/pkg1/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/packages/pkg1/index.ts" +] +Program options: { + "outDir": "/user/username/projects/myproject/packages/pkg1/build", + "project": "/user/username/projects/myproject/packages/pkg1/tsconfig.json", + "watch": true, + "traceResolution": true, + "configFilePath": "/user/username/projects/myproject/packages/pkg1/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -147,7 +167,11 @@ Change:: reports import errors after change to package file Input:: //// [/user/username/projects/myproject/packages/pkg2/package.json] -{"name":"pkg2","version":"1.0.0","main":"build/other.js"} +{ + "name": "pkg2", + "version": "1.0.0", + "main": "build/other.js" +} Before running Timeout callback:: count: 1 @@ -192,8 +216,16 @@ Resolving real path for '/user/username/projects/myproject/node_modules/pkg2/bui -Program root files: ["/user/username/projects/myproject/packages/pkg1/index.ts"] -Program options: {"outDir":"/user/username/projects/myproject/packages/pkg1/build","project":"/user/username/projects/myproject/packages/pkg1/tsconfig.json","watch":true,"traceResolution":true,"configFilePath":"/user/username/projects/myproject/packages/pkg1/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/packages/pkg1/index.ts" +] +Program options: { + "outDir": "/user/username/projects/myproject/packages/pkg1/build", + "project": "/user/username/projects/myproject/packages/pkg1/tsconfig.json", + "watch": true, + "traceResolution": true, + "configFilePath": "/user/username/projects/myproject/packages/pkg1/tsconfig.json" +} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts @@ -258,7 +290,11 @@ Change:: removes those errors when a package file is changed back Input:: //// [/user/username/projects/myproject/packages/pkg2/package.json] -{"name":"pkg2","version":"1.0.0","main":"build/index.js"} +{ + "name": "pkg2", + "version": "1.0.0", + "main": "build/index.js" +} Before running Timeout callback:: count: 1 @@ -306,8 +342,16 @@ File '/user/username/projects/myproject/packages/pkg2/build/const.d.ts' exists - -Program root files: ["/user/username/projects/myproject/packages/pkg1/index.ts"] -Program options: {"outDir":"/user/username/projects/myproject/packages/pkg1/build","project":"/user/username/projects/myproject/packages/pkg1/tsconfig.json","watch":true,"traceResolution":true,"configFilePath":"/user/username/projects/myproject/packages/pkg1/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/packages/pkg1/index.ts" +] +Program options: { + "outDir": "/user/username/projects/myproject/packages/pkg1/build", + "project": "/user/username/projects/myproject/packages/pkg1/tsconfig.json", + "watch": true, + "traceResolution": true, + "configFilePath": "/user/username/projects/myproject/packages/pkg1/tsconfig.json" +} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/nodenext watch emit/esm-mode-file-is-edited.js b/tests/baselines/reference/tscWatch/nodenext watch emit/esm-mode-file-is-edited.js index 6b0f7fc1f59ea..763bed11d0840 100644 --- a/tests/baselines/reference/tscWatch/nodenext watch emit/esm-mode-file-is-edited.js +++ b/tests/baselines/reference/tscWatch/nodenext watch emit/esm-mode-file-is-edited.js @@ -1,7 +1,15 @@ currentDirectory:: / useCaseSensitiveFileNames: false Input:: //// [/project/tsconfig.json] -{"compilerOptions":{"strict":true,"target":"es2020","module":"nodenext","moduleResolution":"nodenext","outDir":"../dist"}} +{ + "compilerOptions": { + "strict": true, + "target": "es2020", + "module": "nodenext", + "moduleResolution": "nodenext", + "outDir": "../dist" + } +} //// [/project/src/index.ts] import * as Thing from "thing"; @@ -12,7 +20,13 @@ Thing.fn(); declare module "thing"; //// [/project/package.json] -{"name":"some-proj","version":"1.0.0","description":"","type":"module","main":"index.js"} +{ + "name": "some-proj", + "version": "1.0.0", + "description": "", + "type": "module", + "main": "index.js" +} //// [/a/lib/lib.es2020.full.d.ts] /// @@ -37,8 +51,20 @@ Output:: -Program root files: ["/project/src/deps.d.ts","/project/src/index.ts"] -Program options: {"strict":true,"target":7,"module":199,"moduleResolution":99,"outDir":"/dist","watch":true,"project":"/project/tsconfig.json","configFilePath":"/project/tsconfig.json"} +Program root files: [ + "/project/src/deps.d.ts", + "/project/src/index.ts" +] +Program options: { + "strict": true, + "target": 7, + "module": 199, + "moduleResolution": 99, + "outDir": "/dist", + "watch": true, + "project": "/project/tsconfig.json", + "configFilePath": "/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.es2020.full.d.ts @@ -96,8 +122,20 @@ Output:: -Program root files: ["/project/src/deps.d.ts","/project/src/index.ts"] -Program options: {"strict":true,"target":7,"module":199,"moduleResolution":99,"outDir":"/dist","watch":true,"project":"/project/tsconfig.json","configFilePath":"/project/tsconfig.json"} +Program root files: [ + "/project/src/deps.d.ts", + "/project/src/index.ts" +] +Program options: { + "strict": true, + "target": 7, + "module": 199, + "moduleResolution": 99, + "outDir": "/dist", + "watch": true, + "project": "/project/tsconfig.json", + "configFilePath": "/project/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.es2020.full.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/Configure-file-diagnostics-events-are-generated-when-the-config-file-has-errors.js b/tests/baselines/reference/tscWatch/programUpdates/Configure-file-diagnostics-events-are-generated-when-the-config-file-has-errors.js index 70fe89e0b94f8..3098be0e3bf41 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/Configure-file-diagnostics-events-are-generated-when-the-config-file-has-errors.js +++ b/tests/baselines/reference/tscWatch/programUpdates/Configure-file-diagnostics-events-are-generated-when-the-config-file-has-errors.js @@ -44,8 +44,14 @@ Output:: -Program root files: ["/a/b/app.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/app.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/Options-Diagnostic-locations-reported-correctly-with-changes-in-configFile-contents-when-options-change.js b/tests/baselines/reference/tscWatch/programUpdates/Options-Diagnostic-locations-reported-correctly-with-changes-in-configFile-contents-when-options-change.js index e72c277b6df6c..c33f6848dc5de 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/Options-Diagnostic-locations-reported-correctly-with-changes-in-configFile-contents-when-options-change.js +++ b/tests/baselines/reference/tscWatch/programUpdates/Options-Diagnostic-locations-reported-correctly-with-changes-in-configFile-contents-when-options-change.js @@ -52,8 +52,16 @@ Output:: -Program root files: ["/a/b/app.ts"] -Program options: {"inlineSourceMap":true,"mapRoot":"./","watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/app.ts" +] +Program options: { + "inlineSourceMap": true, + "mapRoot": "./", + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -123,8 +131,16 @@ Output:: -Program root files: ["/a/b/app.ts"] -Program options: {"inlineSourceMap":true,"mapRoot":"./","watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/app.ts" +] +Program options: { + "inlineSourceMap": true, + "mapRoot": "./", + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/Proper-errors-document-is-not-contained-in-project.js b/tests/baselines/reference/tscWatch/programUpdates/Proper-errors-document-is-not-contained-in-project.js index 52b364ae132fa..9a3d5c0bd7e20 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/Proper-errors-document-is-not-contained-in-project.js +++ b/tests/baselines/reference/tscWatch/programUpdates/Proper-errors-document-is-not-contained-in-project.js @@ -39,8 +39,14 @@ Output:: -Program root files: ["/a/b/app.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/app.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/Reports-errors-when-the-config-file-changes.js b/tests/baselines/reference/tscWatch/programUpdates/Reports-errors-when-the-config-file-changes.js index f640273c3b632..f2073045cc222 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/Reports-errors-when-the-config-file-changes.js +++ b/tests/baselines/reference/tscWatch/programUpdates/Reports-errors-when-the-config-file-changes.js @@ -29,8 +29,14 @@ Output:: -Program root files: ["/a/b/app.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/app.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -90,8 +96,14 @@ Output:: -Program root files: ["/a/b/app.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/app.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -125,8 +137,14 @@ Output:: -Program root files: ["/a/b/app.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/app.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/Updates-diagnostics-when-'--allowArbitraryExtensions'-changes.js b/tests/baselines/reference/tscWatch/programUpdates/Updates-diagnostics-when-'--allowArbitraryExtensions'-changes.js index 2c4c31c36d6b4..b78c4199a30c1 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/Updates-diagnostics-when-'--allowArbitraryExtensions'-changes.js +++ b/tests/baselines/reference/tscWatch/programUpdates/Updates-diagnostics-when-'--allowArbitraryExtensions'-changes.js @@ -20,7 +20,14 @@ import {} from './b.css' declare const style: string; //// [/tsconfig.json] -{"compilerOptions":{"allowArbitraryExtensions":true},"files":["/a.ts"]} +{ + "compilerOptions": { + "allowArbitraryExtensions": true + }, + "files": [ + "/a.ts" + ] +} /a/lib/tsc.js -w -p /tsconfig.json @@ -37,8 +44,15 @@ Output:: -Program root files: ["/a.ts"] -Program options: {"allowArbitraryExtensions":true,"watch":true,"project":"/tsconfig.json","configFilePath":"/tsconfig.json"} +Program root files: [ + "/a.ts" +] +Program options: { + "allowArbitraryExtensions": true, + "watch": true, + "project": "/tsconfig.json", + "configFilePath": "/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -77,7 +91,14 @@ Change:: Disable allowArbitraryExtensions Input:: //// [/tsconfig.json] -{"compilerOptions":{"allowArbitraryExtensions":false},"files":["/a.ts"]} +{ + "compilerOptions": { + "allowArbitraryExtensions": false + }, + "files": [ + "/a.ts" + ] +} Before running Timeout callback:: count: 1 @@ -96,8 +117,15 @@ Output:: -Program root files: ["/a.ts"] -Program options: {"allowArbitraryExtensions":false,"watch":true,"project":"/tsconfig.json","configFilePath":"/tsconfig.json"} +Program root files: [ + "/a.ts" +] +Program options: { + "allowArbitraryExtensions": false, + "watch": true, + "project": "/tsconfig.json", + "configFilePath": "/tsconfig.json" +} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts @@ -129,7 +157,14 @@ Change:: Enable allowArbitraryExtensions Input:: //// [/tsconfig.json] -{"compilerOptions":{"allowArbitraryExtensions":true},"files":["/a.ts"]} +{ + "compilerOptions": { + "allowArbitraryExtensions": true + }, + "files": [ + "/a.ts" + ] +} Before running Timeout callback:: count: 1 @@ -148,8 +183,15 @@ Output:: -Program root files: ["/a.ts"] -Program options: {"allowArbitraryExtensions":true,"watch":true,"project":"/tsconfig.json","configFilePath":"/tsconfig.json"} +Program root files: [ + "/a.ts" +] +Program options: { + "allowArbitraryExtensions": true, + "watch": true, + "project": "/tsconfig.json", + "configFilePath": "/tsconfig.json" +} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/Updates-diagnostics-when-'--noUnusedLabels'-changes.js b/tests/baselines/reference/tscWatch/programUpdates/Updates-diagnostics-when-'--noUnusedLabels'-changes.js index bc7b6da0bfda3..d7d303d24659a 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/Updates-diagnostics-when-'--noUnusedLabels'-changes.js +++ b/tests/baselines/reference/tscWatch/programUpdates/Updates-diagnostics-when-'--noUnusedLabels'-changes.js @@ -17,7 +17,11 @@ interface Array { length: number; [n: number]: T; } label: while (1) {} //// [/tsconfig.json] -{"compilerOptions":{"allowUnusedLabels":true}} +{ + "compilerOptions": { + "allowUnusedLabels": true + } +} /a/lib/tsc.js -w -p /tsconfig.json @@ -29,8 +33,16 @@ Output:: -Program root files: ["/a.ts","/a/lib/lib.d.ts"] -Program options: {"allowUnusedLabels":true,"watch":true,"project":"/tsconfig.json","configFilePath":"/tsconfig.json"} +Program root files: [ + "/a.ts", + "/a/lib/lib.d.ts" +] +Program options: { + "allowUnusedLabels": true, + "watch": true, + "project": "/tsconfig.json", + "configFilePath": "/tsconfig.json" +} Program structureReused: Not Program files:: /a.ts @@ -67,7 +79,11 @@ Change:: Disable allowUnsusedLabels Input:: //// [/tsconfig.json] -{"compilerOptions":{"allowUnusedLabels":false}} +{ + "compilerOptions": { + "allowUnusedLabels": false + } +} Before running Timeout callback:: count: 1 @@ -86,8 +102,16 @@ Output:: -Program root files: ["/a.ts","/a/lib/lib.d.ts"] -Program options: {"allowUnusedLabels":false,"watch":true,"project":"/tsconfig.json","configFilePath":"/tsconfig.json"} +Program root files: [ + "/a.ts", + "/a/lib/lib.d.ts" +] +Program options: { + "allowUnusedLabels": false, + "watch": true, + "project": "/tsconfig.json", + "configFilePath": "/tsconfig.json" +} Program structureReused: Completely Program files:: /a.ts @@ -106,7 +130,11 @@ Change:: Enable allowUnsusedLabels Input:: //// [/tsconfig.json] -{"compilerOptions":{"allowUnusedLabels":true}} +{ + "compilerOptions": { + "allowUnusedLabels": true + } +} Before running Timeout callback:: count: 1 @@ -120,8 +148,16 @@ Output:: -Program root files: ["/a.ts","/a/lib/lib.d.ts"] -Program options: {"allowUnusedLabels":true,"watch":true,"project":"/tsconfig.json","configFilePath":"/tsconfig.json"} +Program root files: [ + "/a.ts", + "/a/lib/lib.d.ts" +] +Program options: { + "allowUnusedLabels": true, + "watch": true, + "project": "/tsconfig.json", + "configFilePath": "/tsconfig.json" +} Program structureReused: Completely Program files:: /a.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/add-new-files-to-a-configured-program-without-file-list.js b/tests/baselines/reference/tscWatch/programUpdates/add-new-files-to-a-configured-program-without-file-list.js index 4e4232ce6012e..d3580a0849157 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/add-new-files-to-a-configured-program-without-file-list.js +++ b/tests/baselines/reference/tscWatch/programUpdates/add-new-files-to-a-configured-program-without-file-list.js @@ -29,8 +29,14 @@ Output:: -Program root files: ["/a/b/commonFile1.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/commonFile1.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -81,8 +87,15 @@ Output:: -Program root files: ["/a/b/commonFile1.ts","/a/b/commonFile2.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/commonFile1.ts", + "/a/b/commonFile2.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/add-the-missing-module-file-for-inferred-project-should-remove-the-module-not-found-error.js b/tests/baselines/reference/tscWatch/programUpdates/add-the-missing-module-file-for-inferred-project-should-remove-the-module-not-found-error.js index 809a6872e72b2..854c4b6fcee46 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/add-the-missing-module-file-for-inferred-project-should-remove-the-module-not-found-error.js +++ b/tests/baselines/reference/tscWatch/programUpdates/add-the-missing-module-file-for-inferred-project-should-remove-the-module-not-found-error.js @@ -31,8 +31,12 @@ Output:: -Program root files: ["/users/username/projects/project/file1.ts"] -Program options: {"watch":true} +Program root files: [ + "/users/username/projects/project/file1.ts" +] +Program options: { + "watch": true +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -88,8 +92,12 @@ Output:: -Program root files: ["/users/username/projects/project/file1.ts"] -Program options: {"watch":true} +Program root files: [ + "/users/username/projects/project/file1.ts" +] +Program options: { + "watch": true +} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/can-correctly-update-configured-project-when-set-of-root-files-has-changed-(new-file-in-list-of-files).js b/tests/baselines/reference/tscWatch/programUpdates/can-correctly-update-configured-project-when-set-of-root-files-has-changed-(new-file-in-list-of-files).js index 2d26c5fa3ab70..8482d9202f591 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/can-correctly-update-configured-project-when-set-of-root-files-has-changed-(new-file-in-list-of-files).js +++ b/tests/baselines/reference/tscWatch/programUpdates/can-correctly-update-configured-project-when-set-of-root-files-has-changed-(new-file-in-list-of-files).js @@ -20,7 +20,12 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/a/b/tsconfig.json] -{"compilerOptions":{},"files":["f1.ts"]} +{ + "compilerOptions": {}, + "files": [ + "f1.ts" + ] +} /a/lib/tsc.js -w -p /a/b/tsconfig.json @@ -32,8 +37,14 @@ Output:: -Program root files: ["/a/b/f1.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/f1.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -66,7 +77,13 @@ Change:: Modify config to make f2 as root too Input:: //// [/a/b/tsconfig.json] -{"compilerOptions":{},"files":["f1.ts","f2.ts"]} +{ + "compilerOptions": {}, + "files": [ + "f1.ts", + "f2.ts" + ] +} Before running Timeout callback:: count: 1 @@ -80,8 +97,15 @@ Output:: -Program root files: ["/a/b/f1.ts","/a/b/f2.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/f1.ts", + "/a/b/f2.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/can-correctly-update-configured-project-when-set-of-root-files-has-changed-(new-file-on-disk).js b/tests/baselines/reference/tscWatch/programUpdates/can-correctly-update-configured-project-when-set-of-root-files-has-changed-(new-file-on-disk).js index 0b730447fa350..41c1fc999328b 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/can-correctly-update-configured-project-when-set-of-root-files-has-changed-(new-file-on-disk).js +++ b/tests/baselines/reference/tscWatch/programUpdates/can-correctly-update-configured-project-when-set-of-root-files-has-changed-(new-file-on-disk).js @@ -29,8 +29,14 @@ Output:: -Program root files: ["/a/b/f1.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/f1.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -81,8 +87,15 @@ Output:: -Program root files: ["/a/b/f1.ts","/a/b/f2.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/f1.ts", + "/a/b/f2.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/can-correctly-update-configured-project-when-set-of-root-files-has-changed-through-include.js b/tests/baselines/reference/tscWatch/programUpdates/can-correctly-update-configured-project-when-set-of-root-files-has-changed-through-include.js index 5917b5f9332b8..2da6989ead0ec 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/can-correctly-update-configured-project-when-set-of-root-files-has-changed-through-include.js +++ b/tests/baselines/reference/tscWatch/programUpdates/can-correctly-update-configured-project-when-set-of-root-files-has-changed-through-include.js @@ -17,7 +17,12 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/Project/tsconfig.json] -{"include":[".","./**/*.json"]} +{ + "include": [ + ".", + "./**/*.json" + ] +} /a/lib/tsc.js -w -p . @@ -29,8 +34,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/Project/file1.ts"] -Program options: {"watch":true,"project":"/user/username/projects/myproject/Project","configFilePath":"/user/username/projects/myproject/Project/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/Project/file1.ts" +] +Program options: { + "watch": true, + "project": "/user/username/projects/myproject/Project", + "configFilePath": "/user/username/projects/myproject/Project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -92,8 +103,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/Project/file1.ts","/user/username/projects/myproject/Project/file2.ts"] -Program options: {"watch":true,"project":"/user/username/projects/myproject/Project","configFilePath":"/user/username/projects/myproject/Project/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/Project/file1.ts", + "/user/username/projects/myproject/Project/file2.ts" +] +Program options: { + "watch": true, + "project": "/user/username/projects/myproject/Project", + "configFilePath": "/user/username/projects/myproject/Project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/can-handle-tsconfig-file-name-with-difference-casing.js b/tests/baselines/reference/tscWatch/programUpdates/can-handle-tsconfig-file-name-with-difference-casing.js index 2a9e7bcc8fb61..aa1a60f5d9821 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/can-handle-tsconfig-file-name-with-difference-casing.js +++ b/tests/baselines/reference/tscWatch/programUpdates/can-handle-tsconfig-file-name-with-difference-casing.js @@ -17,7 +17,11 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/a/b/tsconfig.json] -{"include":["app.ts"]} +{ + "include": [ + "app.ts" + ] +} /a/lib/tsc.js -w -p /A/B/tsconfig.json @@ -29,8 +33,14 @@ Output:: -Program root files: ["/A/B/app.ts"] -Program options: {"watch":true,"project":"/A/B/tsconfig.json","configFilePath":"/A/B/tsconfig.json"} +Program root files: [ + "/A/B/app.ts" +] +Program options: { + "watch": true, + "project": "/A/B/tsconfig.json", + "configFilePath": "/A/B/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/can-update-configured-project-when-set-of-root-files-was-not-changed.js b/tests/baselines/reference/tscWatch/programUpdates/can-update-configured-project-when-set-of-root-files-was-not-changed.js index 8675d5c2245f5..98b6b115cead1 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/can-update-configured-project-when-set-of-root-files-was-not-changed.js +++ b/tests/baselines/reference/tscWatch/programUpdates/can-update-configured-project-when-set-of-root-files-was-not-changed.js @@ -20,7 +20,13 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/a/b/tsconfig.json] -{"compilerOptions":{},"files":["f1.ts","f2.ts"]} +{ + "compilerOptions": {}, + "files": [ + "f1.ts", + "f2.ts" + ] +} /a/lib/tsc.js -w -p /a/b/tsconfig.json @@ -32,8 +38,15 @@ Output:: -Program root files: ["/a/b/f1.ts","/a/b/f2.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/f1.ts", + "/a/b/f2.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -75,7 +88,15 @@ Change:: Modify config to set outFile option Input:: //// [/a/b/tsconfig.json] -{"compilerOptions":{"outFile":"out.js"},"files":["f1.ts","f2.ts"]} +{ + "compilerOptions": { + "outFile": "out.js" + }, + "files": [ + "f1.ts", + "f2.ts" + ] +} Before running Timeout callback:: count: 1 @@ -89,8 +110,16 @@ Output:: -Program root files: ["/a/b/f1.ts","/a/b/f2.ts"] -Program options: {"outFile":"/a/b/out.js","watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/f1.ts", + "/a/b/f2.ts" +] +Program options: { + "outFile": "/a/b/out.js", + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/change-module-to-none.js b/tests/baselines/reference/tscWatch/programUpdates/change-module-to-none.js index 144527edc044a..657ad0d239ed6 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/change-module-to-none.js +++ b/tests/baselines/reference/tscWatch/programUpdates/change-module-to-none.js @@ -30,8 +30,14 @@ Output:: -Program root files: ["/a/b/f1.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/f1.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -69,7 +75,11 @@ Change:: change `module` to 'none' Input:: //// [/a/b/tsconfig.json] -{"compilerOptions":{"module":"none"}} +{ + "compilerOptions": { + "module": "none" + } +} Before running Timeout callback:: count: 1 @@ -88,8 +98,15 @@ Output:: -Program root files: ["/a/b/f1.ts"] -Program options: {"module":0,"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/f1.ts" +] +Program options: { + "module": 0, + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/changes-in-files-are-reflected-in-project-structure.js b/tests/baselines/reference/tscWatch/programUpdates/changes-in-files-are-reflected-in-project-structure.js index f04662f505700..fc5740e642510 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/changes-in-files-are-reflected-in-project-structure.js +++ b/tests/baselines/reference/tscWatch/programUpdates/changes-in-files-are-reflected-in-project-structure.js @@ -38,8 +38,13 @@ a/b/f1.ts -Program root files: ["/a/b/f1.ts"] -Program options: {"watch":true,"explainFiles":true} +Program root files: [ + "/a/b/f1.ts" +] +Program options: { + "watch": true, + "explainFiles": true +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -120,8 +125,13 @@ a/b/f1.ts -Program root files: ["/a/b/f1.ts"] -Program options: {"watch":true,"explainFiles":true} +Program root files: [ + "/a/b/f1.ts" +] +Program options: { + "watch": true, + "explainFiles": true +} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/config-file-includes-the-file.js b/tests/baselines/reference/tscWatch/programUpdates/config-file-includes-the-file.js index 00ed1975f06b2..86178f50511db 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/config-file-includes-the-file.js +++ b/tests/baselines/reference/tscWatch/programUpdates/config-file-includes-the-file.js @@ -23,7 +23,13 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/a/c/tsconfig.json] -{"compilerOptions":{},"files":["f2.ts","f3.ts"]} +{ + "compilerOptions": {}, + "files": [ + "f2.ts", + "f3.ts" + ] +} /a/lib/tsc.js -w -p /a/c/tsconfig.json @@ -35,8 +41,15 @@ Output:: -Program root files: ["/a/c/f2.ts","/a/c/f3.ts"] -Program options: {"watch":true,"project":"/a/c/tsconfig.json","configFilePath":"/a/c/tsconfig.json"} +Program root files: [ + "/a/c/f2.ts", + "/a/c/f3.ts" +] +Program options: { + "watch": true, + "project": "/a/c/tsconfig.json", + "configFilePath": "/a/c/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/config-file-is-deleted.js b/tests/baselines/reference/tscWatch/programUpdates/config-file-is-deleted.js index ce9d5b884893b..497e4aeedfa21 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/config-file-is-deleted.js +++ b/tests/baselines/reference/tscWatch/programUpdates/config-file-is-deleted.js @@ -32,8 +32,15 @@ Output:: -Program root files: ["/a/b/f1.ts","/a/b/f2.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/f1.ts", + "/a/b/f2.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/correctly-handles-changes-in-lib-section-of-config-file.js b/tests/baselines/reference/tscWatch/programUpdates/correctly-handles-changes-in-lib-section-of-config-file.js index 3ef6a9793666a..9802988d077e5 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/correctly-handles-changes-in-lib-section-of-config-file.js +++ b/tests/baselines/reference/tscWatch/programUpdates/correctly-handles-changes-in-lib-section-of-config-file.js @@ -21,7 +21,17 @@ declare class Promise {} var x: Promise; //// [/src/tsconfig.json] -{"compilerOptions":{"module":"commonjs","target":"es5","noImplicitAny":true,"sourceMap":false,"lib":["es5"]}} +{ + "compilerOptions": { + "module": "commonjs", + "target": "es5", + "noImplicitAny": true, + "sourceMap": false, + "lib": [ + "es5" + ] + } +} /compiler/tsc.js -w -p /src/tsconfig.json @@ -38,8 +48,21 @@ Output:: -Program root files: ["/src/app.ts"] -Program options: {"module":1,"target":1,"noImplicitAny":true,"sourceMap":false,"lib":["lib.es5.d.ts"],"watch":true,"project":"/src/tsconfig.json","configFilePath":"/src/tsconfig.json"} +Program root files: [ + "/src/app.ts" +] +Program options: { + "module": 1, + "target": 1, + "noImplicitAny": true, + "sourceMap": false, + "lib": [ + "lib.es5.d.ts" + ], + "watch": true, + "project": "/src/tsconfig.json", + "configFilePath": "/src/tsconfig.json" +} Program structureReused: Not Program files:: /compiler/lib.es5.d.ts @@ -76,7 +99,18 @@ Change:: Change the lib in config Input:: //// [/src/tsconfig.json] -{"compilerOptions":{"module":"commonjs","target":"es5","noImplicitAny":true,"sourceMap":false,"lib":["es5","es2015.promise"]}} +{ + "compilerOptions": { + "module": "commonjs", + "target": "es5", + "noImplicitAny": true, + "sourceMap": false, + "lib": [ + "es5", + "es2015.promise" + ] + } +} Before running Timeout callback:: count: 1 @@ -90,8 +124,22 @@ Output:: -Program root files: ["/src/app.ts"] -Program options: {"module":1,"target":1,"noImplicitAny":true,"sourceMap":false,"lib":["lib.es5.d.ts","lib.es2015.promise.d.ts"],"watch":true,"project":"/src/tsconfig.json","configFilePath":"/src/tsconfig.json"} +Program root files: [ + "/src/app.ts" +] +Program options: { + "module": 1, + "target": 1, + "noImplicitAny": true, + "sourceMap": false, + "lib": [ + "lib.es5.d.ts", + "lib.es2015.promise.d.ts" + ], + "watch": true, + "project": "/src/tsconfig.json", + "configFilePath": "/src/tsconfig.json" +} Program structureReused: SafeModules Program files:: /compiler/lib.es5.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/correctly-parses-wild-card-directories-from-implicit-glob-when-two-keys-differ-only-in-directory-seperator.js b/tests/baselines/reference/tscWatch/programUpdates/correctly-parses-wild-card-directories-from-implicit-glob-when-two-keys-differ-only-in-directory-seperator.js index 17d7a8482d376..3e45d06341336 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/correctly-parses-wild-card-directories-from-implicit-glob-when-two-keys-differ-only-in-directory-seperator.js +++ b/tests/baselines/reference/tscWatch/programUpdates/correctly-parses-wild-card-directories-from-implicit-glob-when-two-keys-differ-only-in-directory-seperator.js @@ -20,7 +20,15 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"composite":true},"include":["./","./**/*.json"]} +{ + "compilerOptions": { + "composite": true + }, + "include": [ + "./", + "./**/*.json" + ] +} /a/lib/tsc.js -w --extendedDiagnostics @@ -46,8 +54,16 @@ DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject 1 undefi Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject 1 undefined Wild card directory -Program root files: ["/user/username/projects/myproject/f1.ts","/user/username/projects/myproject/f2.ts"] -Program options: {"composite":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/f1.ts", + "/user/username/projects/myproject/f2.ts" +] +Program options: { + "composite": true, + "watch": true, + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -205,8 +221,17 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec -Program root files: ["/user/username/projects/myproject/f1.ts","/user/username/projects/myproject/f2.ts","/user/username/projects/myproject/new-file.ts"] -Program options: {"composite":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/f1.ts", + "/user/username/projects/myproject/f2.ts", + "/user/username/projects/myproject/new-file.ts" +] +Program options: { + "composite": true, + "watch": true, + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -357,8 +382,17 @@ CreatingProgramWith:: -Program root files: ["/user/username/projects/myproject/f1.ts","/user/username/projects/myproject/f2.ts","/user/username/projects/myproject/new-file.ts"] -Program options: {"composite":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/f1.ts", + "/user/username/projects/myproject/f2.ts", + "/user/username/projects/myproject/new-file.ts" +] +Program options: { + "composite": true, + "watch": true, + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/create-configured-project-without-file-list.js b/tests/baselines/reference/tscWatch/programUpdates/create-configured-project-without-file-list.js index fca170445742f..abd51e82f1314 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/create-configured-project-without-file-list.js +++ b/tests/baselines/reference/tscWatch/programUpdates/create-configured-project-without-file-list.js @@ -41,8 +41,15 @@ Output:: -Program root files: ["/a/b/c/f1.ts","/a/b/d/f2.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/c/f1.ts", + "/a/b/d/f2.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/create-watch-without-config-file.js b/tests/baselines/reference/tscWatch/programUpdates/create-watch-without-config-file.js index 4b6cb3408dc0b..a0cef3ff12f8c 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/create-watch-without-config-file.js +++ b/tests/baselines/reference/tscWatch/programUpdates/create-watch-without-config-file.js @@ -42,8 +42,12 @@ Output:: -Program root files: ["/a/b/c/app.ts"] -Program options: {"watch":true} +Program root files: [ + "/a/b/c/app.ts" +] +Program options: { + "watch": true +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/deleted-files-affect-project-structure-2.js b/tests/baselines/reference/tscWatch/programUpdates/deleted-files-affect-project-structure-2.js index 4d162df5b2d91..86bf83b314b9b 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/deleted-files-affect-project-structure-2.js +++ b/tests/baselines/reference/tscWatch/programUpdates/deleted-files-affect-project-structure-2.js @@ -32,8 +32,14 @@ Output:: -Program root files: ["/a/b/f1.ts","/a/c/f3.ts"] -Program options: {"watch":true,"noImplicitAny":true} +Program root files: [ + "/a/b/f1.ts", + "/a/c/f3.ts" +] +Program options: { + "watch": true, + "noImplicitAny": true +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -134,8 +140,14 @@ Output:: -Program root files: ["/a/b/f1.ts","/a/c/f3.ts"] -Program options: {"watch":true,"noImplicitAny":true} +Program root files: [ + "/a/b/f1.ts", + "/a/c/f3.ts" +] +Program options: { + "watch": true, + "noImplicitAny": true +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/deleted-files-affect-project-structure.js b/tests/baselines/reference/tscWatch/programUpdates/deleted-files-affect-project-structure.js index dde50998cc668..544f357809d68 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/deleted-files-affect-project-structure.js +++ b/tests/baselines/reference/tscWatch/programUpdates/deleted-files-affect-project-structure.js @@ -32,8 +32,13 @@ Output:: -Program root files: ["/a/b/f1.ts"] -Program options: {"watch":true,"noImplicitAny":true} +Program root files: [ + "/a/b/f1.ts" +] +Program options: { + "watch": true, + "noImplicitAny": true +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -134,8 +139,13 @@ Output:: -Program root files: ["/a/b/f1.ts"] -Program options: {"watch":true,"noImplicitAny":true} +Program root files: [ + "/a/b/f1.ts" +] +Program options: { + "watch": true, + "noImplicitAny": true +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/extended-source-files-are-watched.js b/tests/baselines/reference/tscWatch/programUpdates/extended-source-files-are-watched.js index 49db67d9e3852..51f91c96058e7 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/extended-source-files-are-watched.js +++ b/tests/baselines/reference/tscWatch/programUpdates/extended-source-files-are-watched.js @@ -20,13 +20,25 @@ let x = 1 let y = 1 //// [/a/b/tsconfig.json] -{"compilerOptions":{},"files":["/a/b/commonFile1.ts","/a/b/commonFile2.ts"]} +{ + "compilerOptions": {}, + "files": [ + "/a/b/commonFile1.ts", + "/a/b/commonFile2.ts" + ] +} //// [/a/b/first.tsconfig.json] -{"compilerOptions":{"strict":true}} +{ + "compilerOptions": { + "strict": true + } +} //// [/a/b/second.tsconfig.json] -{"extends":"./first.tsconfig.json"} +{ + "extends": "./first.tsconfig.json" +} /a/lib/tsc.js -w -p /a/b/tsconfig.json @@ -38,8 +50,15 @@ Output:: -Program root files: ["/a/b/commonFile1.ts","/a/b/commonFile2.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/commonFile1.ts", + "/a/b/commonFile2.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -81,7 +100,14 @@ Change:: Change config to extend another config Input:: //// [/a/b/tsconfig.json] -{"extends":"./second.tsconfig.json","compilerOptions":{},"files":["/a/b/commonFile1.ts","/a/b/commonFile2.ts"]} +{ + "extends": "./second.tsconfig.json", + "compilerOptions": {}, + "files": [ + "/a/b/commonFile1.ts", + "/a/b/commonFile2.ts" + ] +} Before running Timeout callback:: count: 1 @@ -95,8 +121,16 @@ Output:: -Program root files: ["/a/b/commonFile1.ts","/a/b/commonFile2.ts"] -Program options: {"strict":true,"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/commonFile1.ts", + "/a/b/commonFile2.ts" +] +Program options: { + "strict": true, + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -141,7 +175,11 @@ Change:: Change first extended config Input:: //// [/a/b/first.tsconfig.json] -{"compilerOptions":{"strict":false}} +{ + "compilerOptions": { + "strict": false + } +} Before running Timeout callback:: count: 1 @@ -155,8 +193,16 @@ Output:: -Program root files: ["/a/b/commonFile1.ts","/a/b/commonFile2.ts"] -Program options: {"strict":false,"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/commonFile1.ts", + "/a/b/commonFile2.ts" +] +Program options: { + "strict": false, + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -185,7 +231,12 @@ Change:: Change second extended config Input:: //// [/a/b/second.tsconfig.json] -{"extends":"./first.tsconfig.json","compilerOptions":{"strictNullChecks":true}} +{ + "extends": "./first.tsconfig.json", + "compilerOptions": { + "strictNullChecks": true + } +} Before running Timeout callback:: count: 1 @@ -199,8 +250,17 @@ Output:: -Program root files: ["/a/b/commonFile1.ts","/a/b/commonFile2.ts"] -Program options: {"strict":false,"strictNullChecks":true,"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/commonFile1.ts", + "/a/b/commonFile2.ts" +] +Program options: { + "strict": false, + "strictNullChecks": true, + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -221,7 +281,13 @@ Change:: Change config to stop extending another config Input:: //// [/a/b/tsconfig.json] -{"compilerOptions":{},"files":["/a/b/commonFile1.ts","/a/b/commonFile2.ts"]} +{ + "compilerOptions": {}, + "files": [ + "/a/b/commonFile1.ts", + "/a/b/commonFile2.ts" + ] +} Before running Timeout callback:: count: 1 @@ -235,8 +301,15 @@ Output:: -Program root files: ["/a/b/commonFile1.ts","/a/b/commonFile2.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/commonFile1.ts", + "/a/b/commonFile2.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/file-in-files-is-deleted.js b/tests/baselines/reference/tscWatch/programUpdates/file-in-files-is-deleted.js index 1f42554e85f5b..f56aed06e3137 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/file-in-files-is-deleted.js +++ b/tests/baselines/reference/tscWatch/programUpdates/file-in-files-is-deleted.js @@ -20,7 +20,13 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/a/b/tsconfig.json] -{"compilerOptions":{},"files":["f1.ts","f2.ts"]} +{ + "compilerOptions": {}, + "files": [ + "f1.ts", + "f2.ts" + ] +} /a/lib/tsc.js -w -p /a/b/tsconfig.json @@ -32,8 +38,15 @@ Output:: -Program root files: ["/a/b/f1.ts","/a/b/f2.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/f1.ts", + "/a/b/f2.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -87,17 +100,24 @@ Output:: The file is in the program because: Part of 'files' list in tsconfig.json - a/b/tsconfig.json:1:40 - 1 {"compilerOptions":{},"files":["f1.ts","f2.ts"]} -    ~~~~~~~ + a/b/tsconfig.json:5:5 + 5 "f2.ts" +    ~~~~~~~ File is matched by 'files' list specified here. [12:00:28 AM] Found 1 error. Watching for file changes. -Program root files: ["/a/b/f1.ts","/a/b/f2.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/f1.ts", + "/a/b/f2.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/files-explicitly-excluded-in-config-file.js b/tests/baselines/reference/tscWatch/programUpdates/files-explicitly-excluded-in-config-file.js index e8140c6f46616..ad43c38086114 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/files-explicitly-excluded-in-config-file.js +++ b/tests/baselines/reference/tscWatch/programUpdates/files-explicitly-excluded-in-config-file.js @@ -38,8 +38,15 @@ Output:: -Program root files: ["/a/b/commonFile1.ts","/a/b/commonFile2.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/commonFile1.ts", + "/a/b/commonFile2.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/handle-recreated-files-correctly.js b/tests/baselines/reference/tscWatch/programUpdates/handle-recreated-files-correctly.js index 069a67434d63e..7e0200df188b8 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/handle-recreated-files-correctly.js +++ b/tests/baselines/reference/tscWatch/programUpdates/handle-recreated-files-correctly.js @@ -38,8 +38,16 @@ a/b/commonFile2.ts -Program root files: ["/a/b/commonFile1.ts","/a/b/commonFile2.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","explainFiles":true,"configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/commonFile1.ts", + "/a/b/commonFile2.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "explainFiles": true, + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -105,8 +113,16 @@ a/b/commonFile2.ts -Program root files: ["/a/b/commonFile1.ts","/a/b/commonFile2.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","explainFiles":true,"configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/commonFile1.ts", + "/a/b/commonFile2.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "explainFiles": true, + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -151,8 +167,15 @@ a/b/commonFile1.ts -Program root files: ["/a/b/commonFile1.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","explainFiles":true,"configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/commonFile1.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "explainFiles": true, + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -208,8 +231,16 @@ a/b/commonFile2.ts -Program root files: ["/a/b/commonFile1.ts","/a/b/commonFile2.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","explainFiles":true,"configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/commonFile1.ts", + "/a/b/commonFile2.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "explainFiles": true, + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/handles-the-missing-files---that-were-added-to-program-because-they-were-added-with-tripleSlashRefs.js b/tests/baselines/reference/tscWatch/programUpdates/handles-the-missing-files---that-were-added-to-program-because-they-were-added-with-tripleSlashRefs.js index 2a1e46f665f1c..2e2c68352c14a 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/handles-the-missing-files---that-were-added-to-program-because-they-were-added-with-tripleSlashRefs.js +++ b/tests/baselines/reference/tscWatch/programUpdates/handles-the-missing-files---that-were-added-to-program-because-they-were-added-with-tripleSlashRefs.js @@ -37,8 +37,12 @@ Output:: -Program root files: ["/a/b/commonFile1.ts"] -Program options: {"watch":true} +Program root files: [ + "/a/b/commonFile1.ts" +] +Program options: { + "watch": true +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -98,8 +102,12 @@ Output:: -Program root files: ["/a/b/commonFile1.ts"] -Program options: {"watch":true} +Program root files: [ + "/a/b/commonFile1.ts" +] +Program options: { + "watch": true +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/if-config-file-doesnt-have-errors,-they-are-not-reported.js b/tests/baselines/reference/tscWatch/programUpdates/if-config-file-doesnt-have-errors,-they-are-not-reported.js index 907d9092b92f9..479ffde213b2f 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/if-config-file-doesnt-have-errors,-they-are-not-reported.js +++ b/tests/baselines/reference/tscWatch/programUpdates/if-config-file-doesnt-have-errors,-they-are-not-reported.js @@ -31,8 +31,14 @@ Output:: -Program root files: ["/a/b/app.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/app.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/non-existing-directories-listed-in-config-file-input-array-should-be-able-to-handle-@types-if-input-file-list-is-empty.js b/tests/baselines/reference/tscWatch/programUpdates/non-existing-directories-listed-in-config-file-input-array-should-be-able-to-handle-@types-if-input-file-list-is-empty.js index 0e936fe811575..26426458d8f8f 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/non-existing-directories-listed-in-config-file-input-array-should-be-able-to-handle-@types-if-input-file-list-is-empty.js +++ b/tests/baselines/reference/tscWatch/programUpdates/non-existing-directories-listed-in-config-file-input-array-should-be-able-to-handle-@types-if-input-file-list-is-empty.js @@ -4,7 +4,10 @@ Input:: let x = 1 //// [/a/tsconfig.json] -{"compiler":{},"files":[]} +{ + "compiler": {}, + "files": [] +} //// [/a/node_modules/@types/typings/index.d.ts] export * from "./lib" @@ -31,17 +34,21 @@ Output:: >> Screen clear [12:00:23 AM] Starting compilation in watch mode... -tsconfig.json:1:24 - error TS18002: The 'files' list in config file '/a/tsconfig.json' is empty. +tsconfig.json:3:12 - error TS18002: The 'files' list in config file '/a/tsconfig.json' is empty. -1 {"compiler":{},"files":[]} -   ~~ +3 "files": [] +   ~~ [12:00:24 AM] Found 1 error. Watching for file changes. Program root files: [] -Program options: {"watch":true,"project":"/a/tsconfig.json","configFilePath":"/a/tsconfig.json"} +Program options: { + "watch": true, + "project": "/a/tsconfig.json", + "configFilePath": "/a/tsconfig.json" +} Program structureReused: Not Program files:: diff --git a/tests/baselines/reference/tscWatch/programUpdates/non-existing-directories-listed-in-config-file-input-array-should-be-tolerated-without-crashing-the-server.js b/tests/baselines/reference/tscWatch/programUpdates/non-existing-directories-listed-in-config-file-input-array-should-be-tolerated-without-crashing-the-server.js index 497d09f41aa6d..2445f6eb15453 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/non-existing-directories-listed-in-config-file-input-array-should-be-tolerated-without-crashing-the-server.js +++ b/tests/baselines/reference/tscWatch/programUpdates/non-existing-directories-listed-in-config-file-input-array-should-be-tolerated-without-crashing-the-server.js @@ -35,7 +35,11 @@ Output:: Program root files: [] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Not Program files:: diff --git a/tests/baselines/reference/tscWatch/programUpdates/rename-a-module-file-and-rename-back-should-restore-the-states-for-configured-projects.js b/tests/baselines/reference/tscWatch/programUpdates/rename-a-module-file-and-rename-back-should-restore-the-states-for-configured-projects.js index 32b00c2de5a6d..f5f48505406b2 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/rename-a-module-file-and-rename-back-should-restore-the-states-for-configured-projects.js +++ b/tests/baselines/reference/tscWatch/programUpdates/rename-a-module-file-and-rename-back-should-restore-the-states-for-configured-projects.js @@ -32,8 +32,15 @@ Output:: -Program root files: ["/users/username/projects/project/file1.ts","/users/username/projects/project/moduleFile.ts"] -Program options: {"watch":true,"project":"/users/username/projects/project/tsconfig.json","configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/file1.ts", + "/users/username/projects/project/moduleFile.ts" +] +Program options: { + "watch": true, + "project": "/users/username/projects/project/tsconfig.json", + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -116,8 +123,15 @@ Output:: -Program root files: ["/users/username/projects/project/file1.ts","/users/username/projects/project/moduleFile1.ts"] -Program options: {"watch":true,"project":"/users/username/projects/project/tsconfig.json","configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/file1.ts", + "/users/username/projects/project/moduleFile1.ts" +] +Program options: { + "watch": true, + "project": "/users/username/projects/project/tsconfig.json", + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -197,8 +211,15 @@ Output:: -Program root files: ["/users/username/projects/project/file1.ts","/users/username/projects/project/moduleFile.ts"] -Program options: {"watch":true,"project":"/users/username/projects/project/tsconfig.json","configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/file1.ts", + "/users/username/projects/project/moduleFile.ts" +] +Program options: { + "watch": true, + "project": "/users/username/projects/project/tsconfig.json", + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/rename-a-module-file-and-rename-back-should-restore-the-states-for-inferred-projects.js b/tests/baselines/reference/tscWatch/programUpdates/rename-a-module-file-and-rename-back-should-restore-the-states-for-inferred-projects.js index 3c5111a8cc968..493bc1f1e3fbc 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/rename-a-module-file-and-rename-back-should-restore-the-states-for-inferred-projects.js +++ b/tests/baselines/reference/tscWatch/programUpdates/rename-a-module-file-and-rename-back-should-restore-the-states-for-inferred-projects.js @@ -29,8 +29,12 @@ Output:: -Program root files: ["/users/username/projects/project/file1.ts"] -Program options: {"watch":true} +Program root files: [ + "/users/username/projects/project/file1.ts" +] +Program options: { + "watch": true +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -101,8 +105,12 @@ Output:: -Program root files: ["/users/username/projects/project/file1.ts"] -Program options: {"watch":true} +Program root files: [ + "/users/username/projects/project/file1.ts" +] +Program options: { + "watch": true +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -155,8 +163,12 @@ Output:: -Program root files: ["/users/username/projects/project/file1.ts"] -Program options: {"watch":true} +Program root files: [ + "/users/username/projects/project/file1.ts" +] +Program options: { + "watch": true +} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/reports-errors-correctly-with-file-not-in-rootDir.js b/tests/baselines/reference/tscWatch/programUpdates/reports-errors-correctly-with-file-not-in-rootDir.js index 84130e264a694..61bfb16d928d4 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/reports-errors-correctly-with-file-not-in-rootDir.js +++ b/tests/baselines/reference/tscWatch/programUpdates/reports-errors-correctly-with-file-not-in-rootDir.js @@ -7,7 +7,12 @@ import { x } from "../b"; export const x = 10; //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"rootDir":".","outDir":"lib"}} +{ + "compilerOptions": { + "rootDir": ".", + "outDir": "lib" + } +} //// [/a/lib/lib.d.ts] /// @@ -37,8 +42,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts"] -Program options: {"rootDir":"/user/username/projects/myproject","outDir":"/user/username/projects/myproject/lib","watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts" +] +Program options: { + "rootDir": "/user/username/projects/myproject", + "outDir": "/user/username/projects/myproject/lib", + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -115,8 +127,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts"] -Program options: {"rootDir":"/user/username/projects/myproject","outDir":"/user/username/projects/myproject/lib","watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts" +] +Program options: { + "rootDir": "/user/username/projects/myproject", + "outDir": "/user/username/projects/myproject/lib", + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/reports-errors-correctly-with-isolatedModules.js b/tests/baselines/reference/tscWatch/programUpdates/reports-errors-correctly-with-isolatedModules.js index a6b0b4bbd3223..e7b0944154676 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/reports-errors-correctly-with-isolatedModules.js +++ b/tests/baselines/reference/tscWatch/programUpdates/reports-errors-correctly-with-isolatedModules.js @@ -8,7 +8,11 @@ import { a } from "./a"; const b: string = a; //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"isolatedModules":true}} +{ + "compilerOptions": { + "isolatedModules": true + } +} //// [/a/lib/lib.d.ts] /// @@ -33,8 +37,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts"] -Program options: {"isolatedModules":true,"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts" +] +Program options: { + "isolatedModules": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -111,8 +122,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts"] -Program options: {"isolatedModules":true,"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts" +] +Program options: { + "isolatedModules": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/should-handle-non-existing-directories-in-config-file.js b/tests/baselines/reference/tscWatch/programUpdates/should-handle-non-existing-directories-in-config-file.js index a1e4d15a46d4d..95774dc59271c 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/should-handle-non-existing-directories-in-config-file.js +++ b/tests/baselines/reference/tscWatch/programUpdates/should-handle-non-existing-directories-in-config-file.js @@ -4,7 +4,13 @@ Input:: let x = 1; //// [/a/tsconfig.json] -{"compilerOptions":{},"include":["src/**/*","notexistingfolder/*"]} +{ + "compilerOptions": {}, + "include": [ + "src/**/*", + "notexistingfolder/*" + ] +} //// [/a/lib/lib.d.ts] /// @@ -29,8 +35,14 @@ Output:: -Program root files: ["/a/src/app.ts"] -Program options: {"watch":true,"project":"/a/tsconfig.json","configFilePath":"/a/tsconfig.json"} +Program root files: [ + "/a/src/app.ts" +] +Program options: { + "watch": true, + "project": "/a/tsconfig.json", + "configFilePath": "/a/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/should-ignore-non-existing-files-specified-in-the-config-file.js b/tests/baselines/reference/tscWatch/programUpdates/should-ignore-non-existing-files-specified-in-the-config-file.js index 58dc372e43254..a7aceccca8d68 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/should-ignore-non-existing-files-specified-in-the-config-file.js +++ b/tests/baselines/reference/tscWatch/programUpdates/should-ignore-non-existing-files-specified-in-the-config-file.js @@ -47,8 +47,15 @@ Output:: -Program root files: ["/a/b/commonFile1.ts","/a/b/commonFile3.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/commonFile1.ts", + "/a/b/commonFile3.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/declarationDir-is-specified.js b/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/declarationDir-is-specified.js index dbf4e814780da..16e95fc7e21c6 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/declarationDir-is-specified.js +++ b/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/declarationDir-is-specified.js @@ -20,7 +20,13 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"module":"amd","declaration":true,"declarationDir":"decls"}} +{ + "compilerOptions": { + "module": "amd", + "declaration": true, + "declarationDir": "decls" + } +} /a/lib/tsc.js -w -p /user/username/projects/myproject/tsconfig.json @@ -32,8 +38,18 @@ Output:: -Program root files: ["/user/username/projects/myproject/file1.ts","/user/username/projects/myproject/src/file2.ts"] -Program options: {"module":2,"declaration":true,"declarationDir":"/user/username/projects/myproject/decls","watch":true,"project":"/user/username/projects/myproject/tsconfig.json","configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/file1.ts", + "/user/username/projects/myproject/src/file2.ts" +] +Program options: { + "module": 2, + "declaration": true, + "declarationDir": "/user/username/projects/myproject/decls", + "watch": true, + "project": "/user/username/projects/myproject/tsconfig.json", + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -131,8 +147,19 @@ Output:: -Program root files: ["/user/username/projects/myproject/file1.ts","/user/username/projects/myproject/src/file2.ts","/user/username/projects/myproject/src/file3.ts"] -Program options: {"module":2,"declaration":true,"declarationDir":"/user/username/projects/myproject/decls","watch":true,"project":"/user/username/projects/myproject/tsconfig.json","configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/file1.ts", + "/user/username/projects/myproject/src/file2.ts", + "/user/username/projects/myproject/src/file3.ts" +] +Program options: { + "module": 2, + "declaration": true, + "declarationDir": "/user/username/projects/myproject/decls", + "watch": true, + "project": "/user/username/projects/myproject/tsconfig.json", + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/when-outDir-and-declarationDir-is-specified.js b/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/when-outDir-and-declarationDir-is-specified.js index 61dfa9b935f76..44f7d1e3197f0 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/when-outDir-and-declarationDir-is-specified.js +++ b/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/when-outDir-and-declarationDir-is-specified.js @@ -20,7 +20,14 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"module":"amd","outDir":"build","declaration":true,"declarationDir":"decls"}} +{ + "compilerOptions": { + "module": "amd", + "outDir": "build", + "declaration": true, + "declarationDir": "decls" + } +} /a/lib/tsc.js -w -p /user/username/projects/myproject/tsconfig.json @@ -32,8 +39,19 @@ Output:: -Program root files: ["/user/username/projects/myproject/file1.ts","/user/username/projects/myproject/src/file2.ts"] -Program options: {"module":2,"outDir":"/user/username/projects/myproject/build","declaration":true,"declarationDir":"/user/username/projects/myproject/decls","watch":true,"project":"/user/username/projects/myproject/tsconfig.json","configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/file1.ts", + "/user/username/projects/myproject/src/file2.ts" +] +Program options: { + "module": 2, + "outDir": "/user/username/projects/myproject/build", + "declaration": true, + "declarationDir": "/user/username/projects/myproject/decls", + "watch": true, + "project": "/user/username/projects/myproject/tsconfig.json", + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -131,8 +149,20 @@ Output:: -Program root files: ["/user/username/projects/myproject/file1.ts","/user/username/projects/myproject/src/file2.ts","/user/username/projects/myproject/src/file3.ts"] -Program options: {"module":2,"outDir":"/user/username/projects/myproject/build","declaration":true,"declarationDir":"/user/username/projects/myproject/decls","watch":true,"project":"/user/username/projects/myproject/tsconfig.json","configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/file1.ts", + "/user/username/projects/myproject/src/file2.ts", + "/user/username/projects/myproject/src/file3.ts" +] +Program options: { + "module": 2, + "outDir": "/user/username/projects/myproject/build", + "declaration": true, + "declarationDir": "/user/username/projects/myproject/decls", + "watch": true, + "project": "/user/username/projects/myproject/tsconfig.json", + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/when-outDir-is-specified.js b/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/when-outDir-is-specified.js index ef051a9c12327..87558c94e5e52 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/when-outDir-is-specified.js +++ b/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/when-outDir-is-specified.js @@ -20,7 +20,12 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"module":"amd","outDir":"build"}} +{ + "compilerOptions": { + "module": "amd", + "outDir": "build" + } +} /a/lib/tsc.js -w -p /user/username/projects/myproject/tsconfig.json @@ -32,8 +37,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/file1.ts","/user/username/projects/myproject/src/file2.ts"] -Program options: {"module":2,"outDir":"/user/username/projects/myproject/build","watch":true,"project":"/user/username/projects/myproject/tsconfig.json","configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/file1.ts", + "/user/username/projects/myproject/src/file2.ts" +] +Program options: { + "module": 2, + "outDir": "/user/username/projects/myproject/build", + "watch": true, + "project": "/user/username/projects/myproject/tsconfig.json", + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -123,8 +137,18 @@ Output:: -Program root files: ["/user/username/projects/myproject/file1.ts","/user/username/projects/myproject/src/file2.ts","/user/username/projects/myproject/src/file3.ts"] -Program options: {"module":2,"outDir":"/user/username/projects/myproject/build","watch":true,"project":"/user/username/projects/myproject/tsconfig.json","configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/file1.ts", + "/user/username/projects/myproject/src/file2.ts", + "/user/username/projects/myproject/src/file3.ts" +] +Program options: { + "module": 2, + "outDir": "/user/username/projects/myproject/build", + "watch": true, + "project": "/user/username/projects/myproject/tsconfig.json", + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/with-outFile.js b/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/with-outFile.js index 369d9edc55ae3..3a6c59acbf624 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/with-outFile.js +++ b/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/with-outFile.js @@ -20,7 +20,12 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"module":"amd","outFile":"build/outFile.js"}} +{ + "compilerOptions": { + "module": "amd", + "outFile": "build/outFile.js" + } +} /a/lib/tsc.js -w -p /user/username/projects/myproject/tsconfig.json @@ -32,8 +37,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/file1.ts","/user/username/projects/myproject/src/file2.ts"] -Program options: {"module":2,"outFile":"/user/username/projects/myproject/build/outFile.js","watch":true,"project":"/user/username/projects/myproject/tsconfig.json","configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/file1.ts", + "/user/username/projects/myproject/src/file2.ts" +] +Program options: { + "module": 2, + "outFile": "/user/username/projects/myproject/build/outFile.js", + "watch": true, + "project": "/user/username/projects/myproject/tsconfig.json", + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -114,8 +128,18 @@ Output:: -Program root files: ["/user/username/projects/myproject/file1.ts","/user/username/projects/myproject/src/file2.ts","/user/username/projects/myproject/src/file3.ts"] -Program options: {"module":2,"outFile":"/user/username/projects/myproject/build/outFile.js","watch":true,"project":"/user/username/projects/myproject/tsconfig.json","configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/file1.ts", + "/user/username/projects/myproject/src/file2.ts", + "/user/username/projects/myproject/src/file3.ts" +] +Program options: { + "module": 2, + "outFile": "/user/username/projects/myproject/build/outFile.js", + "watch": true, + "project": "/user/username/projects/myproject/tsconfig.json", + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/without-outDir-or-outFile-is-specified-with-declaration-enabled.js b/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/without-outDir-or-outFile-is-specified-with-declaration-enabled.js index 952eb17ca4c00..3e314ac64b9c6 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/without-outDir-or-outFile-is-specified-with-declaration-enabled.js +++ b/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/without-outDir-or-outFile-is-specified-with-declaration-enabled.js @@ -20,7 +20,12 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"module":"amd","declaration":true}} +{ + "compilerOptions": { + "module": "amd", + "declaration": true + } +} /a/lib/tsc.js -w -p /user/username/projects/myproject/tsconfig.json @@ -32,8 +37,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/file1.ts","/user/username/projects/myproject/src/file2.ts"] -Program options: {"module":2,"declaration":true,"watch":true,"project":"/user/username/projects/myproject/tsconfig.json","configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/file1.ts", + "/user/username/projects/myproject/src/file2.ts" +] +Program options: { + "module": 2, + "declaration": true, + "watch": true, + "project": "/user/username/projects/myproject/tsconfig.json", + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -131,8 +145,18 @@ Output:: -Program root files: ["/user/username/projects/myproject/file1.ts","/user/username/projects/myproject/src/file2.ts","/user/username/projects/myproject/src/file3.ts"] -Program options: {"module":2,"declaration":true,"watch":true,"project":"/user/username/projects/myproject/tsconfig.json","configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/file1.ts", + "/user/username/projects/myproject/src/file2.ts", + "/user/username/projects/myproject/src/file3.ts" +] +Program options: { + "module": 2, + "declaration": true, + "watch": true, + "project": "/user/username/projects/myproject/tsconfig.json", + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/without-outDir-or-outFile-is-specified.js b/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/without-outDir-or-outFile-is-specified.js index 8380050766b2a..9c77eb7b92078 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/without-outDir-or-outFile-is-specified.js +++ b/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/without-outDir-or-outFile-is-specified.js @@ -20,7 +20,11 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"module":"amd"}} +{ + "compilerOptions": { + "module": "amd" + } +} /a/lib/tsc.js -w -p /user/username/projects/myproject/tsconfig.json @@ -32,8 +36,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/file1.ts","/user/username/projects/myproject/src/file2.ts"] -Program options: {"module":2,"watch":true,"project":"/user/username/projects/myproject/tsconfig.json","configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/file1.ts", + "/user/username/projects/myproject/src/file2.ts" +] +Program options: { + "module": 2, + "watch": true, + "project": "/user/username/projects/myproject/tsconfig.json", + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -123,8 +135,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/file1.ts","/user/username/projects/myproject/src/file2.ts","/user/username/projects/myproject/src/file3.ts"] -Program options: {"module":2,"watch":true,"project":"/user/username/projects/myproject/tsconfig.json","configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/file1.ts", + "/user/username/projects/myproject/src/file2.ts", + "/user/username/projects/myproject/src/file3.ts" +] +Program options: { + "module": 2, + "watch": true, + "project": "/user/username/projects/myproject/tsconfig.json", + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/should-properly-handle-module-resolution-changes-in-config-file.js b/tests/baselines/reference/tscWatch/programUpdates/should-properly-handle-module-resolution-changes-in-config-file.js index e6ee6f573ef9c..68bbc562ec5eb 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/should-properly-handle-module-resolution-changes-in-config-file.js +++ b/tests/baselines/reference/tscWatch/programUpdates/should-properly-handle-module-resolution-changes-in-config-file.js @@ -40,8 +40,15 @@ Output:: -Program root files: ["/a/b/file1.ts"] -Program options: {"moduleResolution":2,"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/file1.ts" +] +Program options: { + "moduleResolution": 2, + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -99,8 +106,15 @@ Output:: -Program root files: ["/a/b/file1.ts"] -Program options: {"moduleResolution":1,"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/file1.ts" +] +Program options: { + "moduleResolution": 1, + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/should-reflect-change-in-config-file.js b/tests/baselines/reference/tscWatch/programUpdates/should-reflect-change-in-config-file.js index ee6e408afd9a3..3a8b46de6b770 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/should-reflect-change-in-config-file.js +++ b/tests/baselines/reference/tscWatch/programUpdates/should-reflect-change-in-config-file.js @@ -41,8 +41,16 @@ a/b/commonFile2.ts -Program root files: ["/a/b/commonFile1.ts","/a/b/commonFile2.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","explainFiles":true,"configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/commonFile1.ts", + "/a/b/commonFile2.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "explainFiles": true, + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -104,8 +112,16 @@ a/b/commonFile2.ts -Program root files: ["/a/b/commonFile1.ts","/a/b/commonFile2.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","explainFiles":true,"configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/commonFile1.ts", + "/a/b/commonFile2.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "explainFiles": true, + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -155,8 +171,15 @@ a/b/commonFile1.ts -Program root files: ["/a/b/commonFile1.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","explainFiles":true,"configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/commonFile1.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "explainFiles": true, + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/should-support-files-without-extensions.js b/tests/baselines/reference/tscWatch/programUpdates/should-support-files-without-extensions.js index 0585ab946af86..c61164785d5e5 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/should-support-files-without-extensions.js +++ b/tests/baselines/reference/tscWatch/programUpdates/should-support-files-without-extensions.js @@ -26,8 +26,12 @@ Output:: -Program root files: ["/a/compile"] -Program options: {"allowNonTsExtensions":true} +Program root files: [ + "/a/compile" +] +Program options: { + "allowNonTsExtensions": true +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/should-tolerate-config-file-errors-and-still-try-to-build-a-project.js b/tests/baselines/reference/tscWatch/programUpdates/should-tolerate-config-file-errors-and-still-try-to-build-a-project.js index ad8656d7ec300..864ae4bbe6bb5 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/should-tolerate-config-file-errors-and-still-try-to-build-a-project.js +++ b/tests/baselines/reference/tscWatch/programUpdates/should-tolerate-config-file-errors-and-still-try-to-build-a-project.js @@ -43,8 +43,16 @@ Output:: -Program root files: ["/a/b/commonFile1.ts","/a/b/commonFile2.ts"] -Program options: {"module":0,"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/commonFile1.ts", + "/a/b/commonFile2.ts" +] +Program options: { + "module": 0, + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/shouldnt-report-error-about-unused-function-incorrectly-when-file-changes-from-global-to-module.js b/tests/baselines/reference/tscWatch/programUpdates/shouldnt-report-error-about-unused-function-incorrectly-when-file-changes-from-global-to-module.js index 5ee17fc6d2be3..b83e64d8f82c0 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/shouldnt-report-error-about-unused-function-incorrectly-when-file-changes-from-global-to-module.js +++ b/tests/baselines/reference/tscWatch/programUpdates/shouldnt-report-error-about-unused-function-incorrectly-when-file-changes-from-global-to-module.js @@ -31,8 +31,13 @@ Output:: -Program root files: ["/a/b/file.ts"] -Program options: {"watch":true,"noUnusedLocals":true} +Program root files: [ + "/a/b/file.ts" +] +Program options: { + "watch": true, + "noUnusedLocals": true +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -87,8 +92,13 @@ Output:: -Program root files: ["/a/b/file.ts"] -Program options: {"watch":true,"noUnusedLocals":true} +Program root files: [ + "/a/b/file.ts" +] +Program options: { + "watch": true, + "noUnusedLocals": true +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/two-watch-programs-are-not-affected-by-each-other.js b/tests/baselines/reference/tscWatch/programUpdates/two-watch-programs-are-not-affected-by-each-other.js index 82805a783f891..0b89b89395c4d 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/two-watch-programs-are-not-affected-by-each-other.js +++ b/tests/baselines/reference/tscWatch/programUpdates/two-watch-programs-are-not-affected-by-each-other.js @@ -34,8 +34,13 @@ Output:: -Program root files: ["/a/c/f2.ts","/a/d/f3.ts"] -Program options: {"allowNonTsExtensions":true} +Program root files: [ + "/a/c/f2.ts", + "/a/d/f3.ts" +] +Program options: { + "allowNonTsExtensions": true +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -86,8 +91,12 @@ Output:: -Program root files: ["/a/b/f1.ts"] -Program options: {"allowNonTsExtensions":true} +Program root files: [ + "/a/b/f1.ts" +] +Program options: { + "allowNonTsExtensions": true +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/types-should-load-from-config-file-path-if-config-exists.js b/tests/baselines/reference/tscWatch/programUpdates/types-should-load-from-config-file-path-if-config-exists.js index 8a6b449a4a51d..f7d2d19256510 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/types-should-load-from-config-file-path-if-config-exists.js +++ b/tests/baselines/reference/tscWatch/programUpdates/types-should-load-from-config-file-path-if-config-exists.js @@ -4,7 +4,13 @@ Input:: let x = 1 //// [/a/b/tsconfig.json] -{"compilerOptions":{"types":["node"]}} +{ + "compilerOptions": { + "types": [ + "node" + ] + } +} //// [/a/b/node_modules/@types/node/index.d.ts] declare var process: any @@ -32,8 +38,17 @@ Output:: -Program root files: ["/a/b/app.ts"] -Program options: {"types":["node"],"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/app.ts" +] +Program options: { + "types": [ + "node" + ], + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/types-should-not-load-from-config-file-path-if-config-exists-but-does-not-specifies-typeRoots.js b/tests/baselines/reference/tscWatch/programUpdates/types-should-not-load-from-config-file-path-if-config-exists-but-does-not-specifies-typeRoots.js index 716b5ff9b3f40..30e7e86fd02f4 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/types-should-not-load-from-config-file-path-if-config-exists-but-does-not-specifies-typeRoots.js +++ b/tests/baselines/reference/tscWatch/programUpdates/types-should-not-load-from-config-file-path-if-config-exists-but-does-not-specifies-typeRoots.js @@ -4,7 +4,14 @@ Input:: let x = 1 //// [/a/b/tsconfig.json] -{"compilerOptions":{"types":["node"],"typeRoots":[]}} +{ + "compilerOptions": { + "types": [ + "node" + ], + "typeRoots": [] + } +} //// [/a/b/node_modules/@types/node/index.d.ts] declare var process: any @@ -32,17 +39,27 @@ Output:: The file is in the program because: Entry point of type library 'node' specified in compilerOptions - ../b/tsconfig.json:1:30 - 1 {"compilerOptions":{"types":["node"],"typeRoots":[]}} -    ~~~~~~ + ../b/tsconfig.json:4:7 + 4 "node" +    ~~~~~~ File is entry point of type library specified here. [12:00:28 AM] Found 1 error. Watching for file changes. -Program root files: ["/a/b/app.ts"] -Program options: {"types":["node"],"typeRoots":[],"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/app.ts" +] +Program options: { + "types": [ + "node" + ], + "typeRoots": [], + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/updates-diagnostics-and-emit-for-decorators.js b/tests/baselines/reference/tscWatch/programUpdates/updates-diagnostics-and-emit-for-decorators.js index bee088dfd0d6b..69eb6a2cd825f 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/updates-diagnostics-and-emit-for-decorators.js +++ b/tests/baselines/reference/tscWatch/programUpdates/updates-diagnostics-and-emit-for-decorators.js @@ -24,7 +24,12 @@ export class A { export class B {} //// [/tsconfig.json] -{"compilerOptions":{"target":"es6","importsNotUsedAsValues":"error"}} +{ + "compilerOptions": { + "target": "es6", + "importsNotUsedAsValues": "error" + } +} /a/lib/tsc.js -w @@ -32,18 +37,27 @@ Output:: >> Screen clear [12:00:15 AM] Starting compilation in watch mode... -tsconfig.json:1:36 - error TS5101: Option 'importsNotUsedAsValues' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '"ignoreDeprecations": "5.0"' to silence this error. +tsconfig.json:4:5 - error TS5101: Option 'importsNotUsedAsValues' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '"ignoreDeprecations": "5.0"' to silence this error. Use 'verbatimModuleSyntax' instead. -1 {"compilerOptions":{"target":"es6","importsNotUsedAsValues":"error"}} -   ~~~~~~~~~~~~~~~~~~~~~~~~ +4 "importsNotUsedAsValues": "error" +   ~~~~~~~~~~~~~~~~~~~~~~~~ [12:00:20 AM] Found 1 error. Watching for file changes. -Program root files: ["/a.ts","/b.ts","/a/lib/lib.d.ts"] -Program options: {"target":2,"importsNotUsedAsValues":2,"watch":true,"configFilePath":"/tsconfig.json"} +Program root files: [ + "/a.ts", + "/b.ts", + "/a/lib/lib.d.ts" +] +Program options: { + "target": 2, + "importsNotUsedAsValues": 2, + "watch": true, + "configFilePath": "/tsconfig.json" +} Program structureReused: Not Program files:: /b.ts @@ -144,7 +158,13 @@ Change:: Enable experimentalDecorators Input:: //// [/tsconfig.json] -{"compilerOptions":{"target":"es6","importsNotUsedAsValues":"error","experimentalDecorators":true}} +{ + "compilerOptions": { + "target": "es6", + "importsNotUsedAsValues": "error", + "experimentalDecorators": true + } +} Before running Timeout callback:: count: 1 @@ -154,18 +174,28 @@ Output:: >> Screen clear [12:00:23 AM] File change detected. Starting incremental compilation... -tsconfig.json:1:36 - error TS5101: Option 'importsNotUsedAsValues' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '"ignoreDeprecations": "5.0"' to silence this error. +tsconfig.json:4:5 - error TS5101: Option 'importsNotUsedAsValues' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '"ignoreDeprecations": "5.0"' to silence this error. Use 'verbatimModuleSyntax' instead. -1 {"compilerOptions":{"target":"es6","importsNotUsedAsValues":"error","experimentalDecorators":true}} -   ~~~~~~~~~~~~~~~~~~~~~~~~ +4 "importsNotUsedAsValues": "error", +   ~~~~~~~~~~~~~~~~~~~~~~~~ [12:00:30 AM] Found 1 error. Watching for file changes. -Program root files: ["/a.ts","/b.ts","/a/lib/lib.d.ts"] -Program options: {"target":2,"importsNotUsedAsValues":2,"experimentalDecorators":true,"watch":true,"configFilePath":"/tsconfig.json"} +Program root files: [ + "/a.ts", + "/b.ts", + "/a/lib/lib.d.ts" +] +Program options: { + "target": 2, + "importsNotUsedAsValues": 2, + "experimentalDecorators": true, + "watch": true, + "configFilePath": "/tsconfig.json" +} Program structureReused: Completely Program files:: /b.ts @@ -201,7 +231,14 @@ Change:: Enable emitDecoratorMetadata Input:: //// [/tsconfig.json] -{"compilerOptions":{"target":"es6","importsNotUsedAsValues":"error","experimentalDecorators":true,"emitDecoratorMetadata":true}} +{ + "compilerOptions": { + "target": "es6", + "importsNotUsedAsValues": "error", + "experimentalDecorators": true, + "emitDecoratorMetadata": true + } +} Before running Timeout callback:: count: 1 @@ -211,18 +248,29 @@ Output:: >> Screen clear [12:00:33 AM] File change detected. Starting incremental compilation... -tsconfig.json:1:36 - error TS5101: Option 'importsNotUsedAsValues' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '"ignoreDeprecations": "5.0"' to silence this error. +tsconfig.json:4:5 - error TS5101: Option 'importsNotUsedAsValues' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '"ignoreDeprecations": "5.0"' to silence this error. Use 'verbatimModuleSyntax' instead. -1 {"compilerOptions":{"target":"es6","importsNotUsedAsValues":"error","experimentalDecorators":true,"emitDecoratorMetadata":true}} -   ~~~~~~~~~~~~~~~~~~~~~~~~ +4 "importsNotUsedAsValues": "error", +   ~~~~~~~~~~~~~~~~~~~~~~~~ [12:00:40 AM] Found 1 error. Watching for file changes. -Program root files: ["/a.ts","/b.ts","/a/lib/lib.d.ts"] -Program options: {"target":2,"importsNotUsedAsValues":2,"experimentalDecorators":true,"emitDecoratorMetadata":true,"watch":true,"configFilePath":"/tsconfig.json"} +Program root files: [ + "/a.ts", + "/b.ts", + "/a/lib/lib.d.ts" +] +Program options: { + "target": 2, + "importsNotUsedAsValues": 2, + "experimentalDecorators": true, + "emitDecoratorMetadata": true, + "watch": true, + "configFilePath": "/tsconfig.json" +} Program structureReused: Completely Program files:: /b.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/updates-diagnostics-and-emit-when-useDefineForClassFields-changes.js b/tests/baselines/reference/tscWatch/programUpdates/updates-diagnostics-and-emit-when-useDefineForClassFields-changes.js index 526f86924e35a..d901e9a9d0e7b 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/updates-diagnostics-and-emit-when-useDefineForClassFields-changes.js +++ b/tests/baselines/reference/tscWatch/programUpdates/updates-diagnostics-and-emit-when-useDefineForClassFields-changes.js @@ -5,7 +5,11 @@ class C { get prop() { return 1; } } class D extends C { prop = 1; } //// [/tsconfig.json] -{"compilerOptions":{"target":"es6"}} +{ + "compilerOptions": { + "target": "es6" + } +} //// [/a/lib/lib.d.ts] /// @@ -35,8 +39,15 @@ Output:: -Program root files: ["/a.ts","/a/lib/lib.d.ts"] -Program options: {"target":2,"watch":true,"configFilePath":"/tsconfig.json"} +Program root files: [ + "/a.ts", + "/a/lib/lib.d.ts" +] +Program options: { + "target": 2, + "watch": true, + "configFilePath": "/tsconfig.json" +} Program structureReused: Not Program files:: /a.ts @@ -81,7 +92,12 @@ Change:: Enable useDefineForClassFields Input:: //// [/tsconfig.json] -{"compilerOptions":{"target":"es6","useDefineForClassFields":true}} +{ + "compilerOptions": { + "target": "es6", + "useDefineForClassFields": true + } +} Before running Timeout callback:: count: 1 @@ -100,8 +116,16 @@ Output:: -Program root files: ["/a.ts","/a/lib/lib.d.ts"] -Program options: {"target":2,"useDefineForClassFields":true,"watch":true,"configFilePath":"/tsconfig.json"} +Program root files: [ + "/a.ts", + "/a/lib/lib.d.ts" +] +Program options: { + "target": 2, + "useDefineForClassFields": true, + "watch": true, + "configFilePath": "/tsconfig.json" +} Program structureReused: Completely Program files:: /a.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/updates-emit-on-jsx-option-add.js b/tests/baselines/reference/tscWatch/programUpdates/updates-emit-on-jsx-option-add.js index 1fb5c9e54feb6..fea7136af9ca6 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/updates-emit-on-jsx-option-add.js +++ b/tests/baselines/reference/tscWatch/programUpdates/updates-emit-on-jsx-option-add.js @@ -5,7 +5,9 @@ declare var React: any; const d =
; //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{}} +{ + "compilerOptions": {} +} //// [/a/lib/lib.d.ts] /// @@ -35,8 +37,13 @@ Output:: -Program root files: ["/user/username/projects/myproject/index.tsx"] -Program options: {"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/index.tsx" +] +Program options: { + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -93,8 +100,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/index.tsx"] -Program options: {"jsx":1,"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/index.tsx" +] +Program options: { + "jsx": 1, + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/updates-emit-on-jsx-option-change.js b/tests/baselines/reference/tscWatch/programUpdates/updates-emit-on-jsx-option-change.js index f86138547a88f..c78952b9f32f0 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/updates-emit-on-jsx-option-change.js +++ b/tests/baselines/reference/tscWatch/programUpdates/updates-emit-on-jsx-option-change.js @@ -5,7 +5,11 @@ declare var React: any; const d =
; //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"jsx":"preserve"}} +{ + "compilerOptions": { + "jsx": "preserve" + } +} //// [/a/lib/lib.d.ts] /// @@ -30,8 +34,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/index.tsx"] -Program options: {"jsx":1,"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/index.tsx" +] +Program options: { + "jsx": 1, + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -88,8 +98,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/index.tsx"] -Program options: {"jsx":2,"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/index.tsx" +] +Program options: { + "jsx": 2, + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/updates-errors-and-emit-when-importsNotUsedAsValues-changes.js b/tests/baselines/reference/tscWatch/programUpdates/updates-errors-and-emit-when-importsNotUsedAsValues-changes.js index 10088f16c07ce..da909147aa3ed 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/updates-errors-and-emit-when-importsNotUsedAsValues-changes.js +++ b/tests/baselines/reference/tscWatch/programUpdates/updates-errors-and-emit-when-importsNotUsedAsValues-changes.js @@ -8,7 +8,9 @@ import {C} from './a'; export function f(p: C) { return p; } //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{}} +{ + "compilerOptions": {} +} //// [/a/lib/lib.d.ts] /// @@ -33,8 +35,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts"] -Program options: {"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts" +] +Program options: { + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -98,7 +106,11 @@ Change:: Set to "remove" Input:: //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"importsNotUsedAsValues":"remove"}} +{ + "compilerOptions": { + "importsNotUsedAsValues": "remove" + } +} Before running Timeout callback:: count: 1 @@ -112,8 +124,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts"] -Program options: {"importsNotUsedAsValues":0,"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts" +] +Program options: { + "importsNotUsedAsValues": 0, + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -136,7 +155,11 @@ Change:: Set to "error" Input:: //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"importsNotUsedAsValues":"error"}} +{ + "compilerOptions": { + "importsNotUsedAsValues": "error" + } +} Before running Timeout callback:: count: 1 @@ -146,18 +169,25 @@ Output:: >> Screen clear [12:00:43 AM] File change detected. Starting incremental compilation... -tsconfig.json:1:21 - error TS5101: Option 'importsNotUsedAsValues' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '"ignoreDeprecations": "5.0"' to silence this error. +tsconfig.json:3:5 - error TS5101: Option 'importsNotUsedAsValues' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '"ignoreDeprecations": "5.0"' to silence this error. Use 'verbatimModuleSyntax' instead. -1 {"compilerOptions":{"importsNotUsedAsValues":"error"}} -   ~~~~~~~~~~~~~~~~~~~~~~~~ +3 "importsNotUsedAsValues": "error" +   ~~~~~~~~~~~~~~~~~~~~~~~~ [12:00:50 AM] Found 1 error. Watching for file changes. -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts"] -Program options: {"importsNotUsedAsValues":2,"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts" +] +Program options: { + "importsNotUsedAsValues": 2, + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -185,7 +215,11 @@ Change:: Set to "preserve" Input:: //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"importsNotUsedAsValues":"preserve"}} +{ + "compilerOptions": { + "importsNotUsedAsValues": "preserve" + } +} Before running Timeout callback:: count: 1 @@ -195,18 +229,25 @@ Output:: >> Screen clear [12:00:54 AM] File change detected. Starting incremental compilation... -tsconfig.json:1:21 - error TS5101: Option 'importsNotUsedAsValues' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '"ignoreDeprecations": "5.0"' to silence this error. +tsconfig.json:3:5 - error TS5101: Option 'importsNotUsedAsValues' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '"ignoreDeprecations": "5.0"' to silence this error. Use 'verbatimModuleSyntax' instead. -1 {"compilerOptions":{"importsNotUsedAsValues":"preserve"}} -   ~~~~~~~~~~~~~~~~~~~~~~~~ +3 "importsNotUsedAsValues": "preserve" +   ~~~~~~~~~~~~~~~~~~~~~~~~ [12:01:01 AM] Found 1 error. Watching for file changes. -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts"] -Program options: {"importsNotUsedAsValues":1,"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts" +] +Program options: { + "importsNotUsedAsValues": 1, + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/updates-errors-correctly-when-declaration-emit-is-disabled-in-compiler-options.js b/tests/baselines/reference/tscWatch/programUpdates/updates-errors-correctly-when-declaration-emit-is-disabled-in-compiler-options.js index 01f2db0cee469..e30780edbaa93 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/updates-errors-correctly-when-declaration-emit-is-disabled-in-compiler-options.js +++ b/tests/baselines/reference/tscWatch/programUpdates/updates-errors-correctly-when-declaration-emit-is-disabled-in-compiler-options.js @@ -24,7 +24,13 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"module":"commonjs","noEmit":true,"strict":true}} +{ + "compilerOptions": { + "module": "commonjs", + "noEmit": true, + "strict": true + } +} /a/lib/tsc.js -w @@ -36,8 +42,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts"] -Program options: {"module":1,"noEmit":true,"strict":true,"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts" +] +Program options: { + "module": 1, + "noEmit": true, + "strict": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -103,8 +118,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts"] -Program options: {"module":1,"noEmit":true,"strict":true,"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts" +] +Program options: { + "module": 1, + "noEmit": true, + "strict": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -143,8 +167,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts"] -Program options: {"module":1,"noEmit":true,"strict":true,"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts" +] +Program options: { + "module": 1, + "noEmit": true, + "strict": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -193,8 +226,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts"] -Program options: {"module":1,"noEmit":true,"strict":true,"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts" +] +Program options: { + "module": 1, + "noEmit": true, + "strict": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -233,8 +275,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts"] -Program options: {"module":1,"noEmit":true,"strict":true,"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts" +] +Program options: { + "module": 1, + "noEmit": true, + "strict": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/updates-errors-in-lib-file/when-module-file-with-global-definitions-changes/with-default-options.js b/tests/baselines/reference/tscWatch/programUpdates/updates-errors-in-lib-file/when-module-file-with-global-definitions-changes/with-default-options.js index c0b33c969b2e9..2a1fac21aa1c8 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/updates-errors-in-lib-file/when-module-file-with-global-definitions-changes/with-default-options.js +++ b/tests/baselines/reference/tscWatch/programUpdates/updates-errors-in-lib-file/when-module-file-with-global-definitions-changes/with-default-options.js @@ -45,8 +45,12 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts"] -Program options: {"watch":true} +Program root files: [ + "/user/username/projects/myproject/a.ts" +] +Program options: { + "watch": true +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -102,8 +106,12 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts"] -Program options: {"watch":true} +Program root files: [ + "/user/username/projects/myproject/a.ts" +] +Program options: { + "watch": true +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -154,8 +162,12 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts"] -Program options: {"watch":true} +Program root files: [ + "/user/username/projects/myproject/a.ts" +] +Program options: { + "watch": true +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/updates-errors-in-lib-file/when-module-file-with-global-definitions-changes/with-skipDefaultLibCheck.js b/tests/baselines/reference/tscWatch/programUpdates/updates-errors-in-lib-file/when-module-file-with-global-definitions-changes/with-skipDefaultLibCheck.js index 4f3fa2766755e..dea39dd00c443 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/updates-errors-in-lib-file/when-module-file-with-global-definitions-changes/with-skipDefaultLibCheck.js +++ b/tests/baselines/reference/tscWatch/programUpdates/updates-errors-in-lib-file/when-module-file-with-global-definitions-changes/with-skipDefaultLibCheck.js @@ -40,8 +40,13 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts"] -Program options: {"watch":true,"skipDefaultLibCheck":true} +Program root files: [ + "/user/username/projects/myproject/a.ts" +] +Program options: { + "watch": true, + "skipDefaultLibCheck": true +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -97,8 +102,13 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts"] -Program options: {"watch":true,"skipDefaultLibCheck":true} +Program root files: [ + "/user/username/projects/myproject/a.ts" +] +Program options: { + "watch": true, + "skipDefaultLibCheck": true +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -143,8 +153,13 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts"] -Program options: {"watch":true,"skipDefaultLibCheck":true} +Program root files: [ + "/user/username/projects/myproject/a.ts" +] +Program options: { + "watch": true, + "skipDefaultLibCheck": true +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/updates-errors-in-lib-file/when-module-file-with-global-definitions-changes/with-skipLibCheck.js b/tests/baselines/reference/tscWatch/programUpdates/updates-errors-in-lib-file/when-module-file-with-global-definitions-changes/with-skipLibCheck.js index 912cb51fb03fd..f1ef3d9760a42 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/updates-errors-in-lib-file/when-module-file-with-global-definitions-changes/with-skipLibCheck.js +++ b/tests/baselines/reference/tscWatch/programUpdates/updates-errors-in-lib-file/when-module-file-with-global-definitions-changes/with-skipLibCheck.js @@ -40,8 +40,13 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts"] -Program options: {"watch":true,"skipLibCheck":true} +Program root files: [ + "/user/username/projects/myproject/a.ts" +] +Program options: { + "watch": true, + "skipLibCheck": true +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -97,8 +102,13 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts"] -Program options: {"watch":true,"skipLibCheck":true} +Program root files: [ + "/user/username/projects/myproject/a.ts" +] +Program options: { + "watch": true, + "skipLibCheck": true +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -143,8 +153,13 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts"] -Program options: {"watch":true,"skipLibCheck":true} +Program root files: [ + "/user/username/projects/myproject/a.ts" +] +Program options: { + "watch": true, + "skipLibCheck": true +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/updates-errors-in-lib-file/when-non-module-file-changes/with-default-options.js b/tests/baselines/reference/tscWatch/programUpdates/updates-errors-in-lib-file/when-non-module-file-changes/with-default-options.js index 06b022fb2e10f..b970a77d2404f 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/updates-errors-in-lib-file/when-non-module-file-changes/with-default-options.js +++ b/tests/baselines/reference/tscWatch/programUpdates/updates-errors-in-lib-file/when-non-module-file-changes/with-default-options.js @@ -42,8 +42,12 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts"] -Program options: {"watch":true} +Program root files: [ + "/user/username/projects/myproject/a.ts" +] +Program options: { + "watch": true +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -95,8 +99,12 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts"] -Program options: {"watch":true} +Program root files: [ + "/user/username/projects/myproject/a.ts" +] +Program options: { + "watch": true +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -148,8 +156,12 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts"] -Program options: {"watch":true} +Program root files: [ + "/user/username/projects/myproject/a.ts" +] +Program options: { + "watch": true +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/updates-errors-in-lib-file/when-non-module-file-changes/with-skipDefaultLibCheck.js b/tests/baselines/reference/tscWatch/programUpdates/updates-errors-in-lib-file/when-non-module-file-changes/with-skipDefaultLibCheck.js index 3fffb532d0f7d..8945c1d085e61 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/updates-errors-in-lib-file/when-non-module-file-changes/with-skipDefaultLibCheck.js +++ b/tests/baselines/reference/tscWatch/programUpdates/updates-errors-in-lib-file/when-non-module-file-changes/with-skipDefaultLibCheck.js @@ -37,8 +37,13 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts"] -Program options: {"watch":true,"skipDefaultLibCheck":true} +Program root files: [ + "/user/username/projects/myproject/a.ts" +] +Program options: { + "watch": true, + "skipDefaultLibCheck": true +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -90,8 +95,13 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts"] -Program options: {"watch":true,"skipDefaultLibCheck":true} +Program root files: [ + "/user/username/projects/myproject/a.ts" +] +Program options: { + "watch": true, + "skipDefaultLibCheck": true +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -137,8 +147,13 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts"] -Program options: {"watch":true,"skipDefaultLibCheck":true} +Program root files: [ + "/user/username/projects/myproject/a.ts" +] +Program options: { + "watch": true, + "skipDefaultLibCheck": true +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/updates-errors-in-lib-file/when-non-module-file-changes/with-skipLibCheck.js b/tests/baselines/reference/tscWatch/programUpdates/updates-errors-in-lib-file/when-non-module-file-changes/with-skipLibCheck.js index dc2a437125b86..6a0ad68efffe1 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/updates-errors-in-lib-file/when-non-module-file-changes/with-skipLibCheck.js +++ b/tests/baselines/reference/tscWatch/programUpdates/updates-errors-in-lib-file/when-non-module-file-changes/with-skipLibCheck.js @@ -37,8 +37,13 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts"] -Program options: {"watch":true,"skipLibCheck":true} +Program root files: [ + "/user/username/projects/myproject/a.ts" +] +Program options: { + "watch": true, + "skipLibCheck": true +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -90,8 +95,13 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts"] -Program options: {"watch":true,"skipLibCheck":true} +Program root files: [ + "/user/username/projects/myproject/a.ts" +] +Program options: { + "watch": true, + "skipLibCheck": true +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -137,8 +147,13 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts"] -Program options: {"watch":true,"skipLibCheck":true} +Program root files: [ + "/user/username/projects/myproject/a.ts" +] +Program options: { + "watch": true, + "skipLibCheck": true +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/updates-errors-when-ambient-modules-of-program-changes.js b/tests/baselines/reference/tscWatch/programUpdates/updates-errors-when-ambient-modules-of-program-changes.js index 534ae57d56005..f4306cea2834f 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/updates-errors-when-ambient-modules-of-program-changes.js +++ b/tests/baselines/reference/tscWatch/programUpdates/updates-errors-when-ambient-modules-of-program-changes.js @@ -31,8 +31,13 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts"] -Program options: {"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts" +] +Program options: { + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -110,8 +115,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts"] -Program options: {"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts" +] +Program options: { + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -171,8 +182,13 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts"] -Program options: {"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts" +] +Program options: { + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/updates-errors-when-forceConsistentCasingInFileNames-changes.js b/tests/baselines/reference/tscWatch/programUpdates/updates-errors-when-forceConsistentCasingInFileNames-changes.js index 6ba2018bb3f44..31ddd92f2b52b 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/updates-errors-when-forceConsistentCasingInFileNames-changes.js +++ b/tests/baselines/reference/tscWatch/programUpdates/updates-errors-when-forceConsistentCasingInFileNames-changes.js @@ -7,7 +7,11 @@ export class C {} import {C} from './a'; import * as A from './A'; //// [/tsconfig.json] -{"compilerOptions":{"forceConsistentCasingInFileNames":false}} +{ + "compilerOptions": { + "forceConsistentCasingInFileNames": false + } +} //// [/a/lib/lib.d.ts] /// @@ -32,8 +36,16 @@ Output:: -Program root files: ["/a.ts","/b.ts","/a/lib/lib.d.ts"] -Program options: {"forceConsistentCasingInFileNames":false,"watch":true,"configFilePath":"/tsconfig.json"} +Program root files: [ + "/a.ts", + "/b.ts", + "/a/lib/lib.d.ts" +] +Program options: { + "forceConsistentCasingInFileNames": false, + "watch": true, + "configFilePath": "/tsconfig.json" +} Program structureReused: Not Program files:: /a.ts @@ -88,7 +100,11 @@ Change:: Enable forceConsistentCasingInFileNames Input:: //// [/tsconfig.json] -{"compilerOptions":{"forceConsistentCasingInFileNames":true}} +{ + "compilerOptions": { + "forceConsistentCasingInFileNames": true + } +} Before running Timeout callback:: count: 1 @@ -116,8 +132,16 @@ Output:: -Program root files: ["/a.ts","/b.ts","/a/lib/lib.d.ts"] -Program options: {"forceConsistentCasingInFileNames":true,"watch":true,"configFilePath":"/tsconfig.json"} +Program root files: [ + "/a.ts", + "/b.ts", + "/a/lib/lib.d.ts" +] +Program options: { + "forceConsistentCasingInFileNames": true, + "watch": true, + "configFilePath": "/tsconfig.json" +} Program structureReused: Not Program files:: /a.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/updates-errors-when-noErrorTruncation-changes.js b/tests/baselines/reference/tscWatch/programUpdates/updates-errors-when-noErrorTruncation-changes.js index b580d7c7d596d..0191b743cdb6f 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/updates-errors-when-noErrorTruncation-changes.js +++ b/tests/baselines/reference/tscWatch/programUpdates/updates-errors-when-noErrorTruncation-changes.js @@ -13,7 +13,9 @@ declare var v: { v === 'foo'; //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{}} +{ + "compilerOptions": {} +} //// [/a/lib/lib.d.ts] /// @@ -43,8 +45,13 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts"] -Program options: {"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts" +] +Program options: { + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -87,7 +94,11 @@ Change:: Enable noErrorTruncation Input:: //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"noErrorTruncation":true}} +{ + "compilerOptions": { + "noErrorTruncation": true + } +} Before running Timeout callback:: count: 1 @@ -106,8 +117,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts"] -Program options: {"noErrorTruncation":true,"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts" +] +Program options: { + "noErrorTruncation": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/updates-errors-when-strictNullChecks-changes.js b/tests/baselines/reference/tscWatch/programUpdates/updates-errors-when-strictNullChecks-changes.js index 05b22ae6adb69..0fcc526261a16 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/updates-errors-when-strictNullChecks-changes.js +++ b/tests/baselines/reference/tscWatch/programUpdates/updates-errors-when-strictNullChecks-changes.js @@ -5,7 +5,9 @@ declare function foo(): null | { hello: any }; foo().hello //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{}} +{ + "compilerOptions": {} +} //// [/a/lib/lib.d.ts] /// @@ -30,8 +32,13 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts"] -Program options: {"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts" +] +Program options: { + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -74,7 +81,11 @@ Change:: Enable strict null checks Input:: //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"strictNullChecks":true}} +{ + "compilerOptions": { + "strictNullChecks": true + } +} Before running Timeout callback:: count: 1 @@ -93,8 +104,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts"] -Program options: {"strictNullChecks":true,"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts" +] +Program options: { + "strictNullChecks": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -113,7 +130,12 @@ Change:: Set always strict false Input:: //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"strict":true,"alwaysStrict":false}} +{ + "compilerOptions": { + "strict": true, + "alwaysStrict": false + } +} Before running Timeout callback:: count: 1 @@ -132,8 +154,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts"] -Program options: {"strict":true,"alwaysStrict":false,"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts" +] +Program options: { + "strict": true, + "alwaysStrict": false, + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -152,7 +181,9 @@ Change:: Disable strict Input:: //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{}} +{ + "compilerOptions": {} +} Before running Timeout callback:: count: 1 @@ -166,8 +197,13 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts"] -Program options: {"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts" +] +Program options: { + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/updates-moduleResolution-when-resolveJsonModule-changes.js b/tests/baselines/reference/tscWatch/programUpdates/updates-moduleResolution-when-resolveJsonModule-changes.js index b184f08010659..883a03a758654 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/updates-moduleResolution-when-resolveJsonModule-changes.js +++ b/tests/baselines/reference/tscWatch/programUpdates/updates-moduleResolution-when-resolveJsonModule-changes.js @@ -7,7 +7,11 @@ import * as data from './data.json' { "foo": 1 } //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"moduleResolution":"node"}} +{ + "compilerOptions": { + "moduleResolution": "node" + } +} //// [/a/lib/lib.d.ts] /// @@ -37,8 +41,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts"] -Program options: {"moduleResolution":2,"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts" +] +Program options: { + "moduleResolution": 2, + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -86,7 +96,12 @@ Change:: Enable resolveJsonModule Input:: //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"moduleResolution":"node","resolveJsonModule":true}} +{ + "compilerOptions": { + "moduleResolution": "node", + "resolveJsonModule": true + } +} Before running Timeout callback:: count: 1 @@ -100,8 +115,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts"] -Program options: {"moduleResolution":2,"resolveJsonModule":true,"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts" +] +Program options: { + "moduleResolution": 2, + "resolveJsonModule": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/watched-files-when-file-is-deleted-and-new-file-is-added-as-part-of-change.js b/tests/baselines/reference/tscWatch/programUpdates/watched-files-when-file-is-deleted-and-new-file-is-added-as-part-of-change.js index de1bfa54d46a2..ce1d325c1bcc3 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/watched-files-when-file-is-deleted-and-new-file-is-added-as-part-of-change.js +++ b/tests/baselines/reference/tscWatch/programUpdates/watched-files-when-file-is-deleted-and-new-file-is-added-as-part-of-change.js @@ -29,8 +29,14 @@ Output:: -Program root files: ["/home/username/project/src/file1.ts"] -Program options: {"watch":true,"project":"/home/username/project/tsconfig.json","configFilePath":"/home/username/project/tsconfig.json"} +Program root files: [ + "/home/username/project/src/file1.ts" +] +Program options: { + "watch": true, + "project": "/home/username/project/tsconfig.json", + "configFilePath": "/home/username/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -86,8 +92,14 @@ Output:: -Program root files: ["/home/username/project/src/file2.ts"] -Program options: {"watch":true,"project":"/home/username/project/tsconfig.json","configFilePath":"/home/username/project/tsconfig.json"} +Program root files: [ + "/home/username/project/src/file2.ts" +] +Program options: { + "watch": true, + "project": "/home/username/project/tsconfig.json", + "configFilePath": "/home/username/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/when-changing-`allowImportingTsExtensions`-of-config-file.js b/tests/baselines/reference/tscWatch/programUpdates/when-changing-`allowImportingTsExtensions`-of-config-file.js index 4f3479953a36b..bdc1a3926ab10 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/when-changing-`allowImportingTsExtensions`-of-config-file.js +++ b/tests/baselines/reference/tscWatch/programUpdates/when-changing-`allowImportingTsExtensions`-of-config-file.js @@ -7,7 +7,12 @@ Input:: import "./a.ts"; //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"noEmit":true,"allowImportingTsExtensions":false}} +{ + "compilerOptions": { + "noEmit": true, + "allowImportingTsExtensions": false + } +} //// [/a/lib/lib.d.ts] /// @@ -51,8 +56,18 @@ DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject 1 undefi Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject 1 undefined Wild card directory -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts"] -Program options: {"noEmit":true,"allowImportingTsExtensions":false,"watch":true,"project":"/user/username/projects/myproject","extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts" +] +Program options: { + "noEmit": true, + "allowImportingTsExtensions": false, + "watch": true, + "project": "/user/username/projects/myproject", + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -96,7 +111,12 @@ Change:: Change allowImportingTsExtensions to true Input:: //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"noEmit":true,"allowImportingTsExtensions":true}} +{ + "compilerOptions": { + "noEmit": true, + "allowImportingTsExtensions": true + } +} Before running Timeout callback:: count: 1 @@ -117,8 +137,18 @@ CreatingProgramWith:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts"] -Program options: {"noEmit":true,"allowImportingTsExtensions":true,"watch":true,"project":"/user/username/projects/myproject","extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts" +] +Program options: { + "noEmit": true, + "allowImportingTsExtensions": true, + "watch": true, + "project": "/user/username/projects/myproject", + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/when-changing-checkJs-of-config-file.js b/tests/baselines/reference/tscWatch/programUpdates/when-changing-checkJs-of-config-file.js index 4de6d59a17785..3d4d28f732f67 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/when-changing-checkJs-of-config-file.js +++ b/tests/baselines/reference/tscWatch/programUpdates/when-changing-checkJs-of-config-file.js @@ -7,7 +7,11 @@ export const aNumber: number = "string" import { aNumber } from "./a.js"; //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"checkJs":false}} +{ + "compilerOptions": { + "checkJs": false + } +} //// [/a/lib/lib.d.ts] /// @@ -51,8 +55,16 @@ DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject 1 undefi Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject 1 undefined Wild card directory -Program root files: ["/user/username/projects/myproject/b.ts"] -Program options: {"checkJs":false,"watch":true,"project":"/user/username/projects/myproject","extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/b.ts" +] +Program options: { + "checkJs": false, + "watch": true, + "project": "/user/username/projects/myproject", + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -100,7 +112,11 @@ Change:: Change checkJs to true Input:: //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"checkJs":true}} +{ + "compilerOptions": { + "checkJs": true + } +} Before running Timeout callback:: count: 1 @@ -127,8 +143,17 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/a.js 250 unde -Program root files: ["/user/username/projects/myproject/a.js","/user/username/projects/myproject/b.ts"] -Program options: {"checkJs":true,"watch":true,"project":"/user/username/projects/myproject","extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.js", + "/user/username/projects/myproject/b.ts" +] +Program options: { + "checkJs": true, + "watch": true, + "project": "/user/username/projects/myproject", + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/when-creating-extensionless-file.js b/tests/baselines/reference/tscWatch/programUpdates/when-creating-extensionless-file.js index d353d0fac739d..ecca8129a1231 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/when-creating-extensionless-file.js +++ b/tests/baselines/reference/tscWatch/programUpdates/when-creating-extensionless-file.js @@ -42,8 +42,15 @@ DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject 1 undefi Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject 1 undefined Wild card directory -Program root files: ["/user/username/projects/myproject/index.ts"] -Program options: {"watch":true,"project":"/user/username/projects/myproject","extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/index.ts" +] +Program options: { + "watch": true, + "project": "/user/username/projects/myproject", + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/when-creating-new-file-in-symlinked-folder.js b/tests/baselines/reference/tscWatch/programUpdates/when-creating-new-file-in-symlinked-folder.js index 3b9194e0606f1..8fb6c84b28f9a 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/when-creating-new-file-in-symlinked-folder.js +++ b/tests/baselines/reference/tscWatch/programUpdates/when-creating-new-file-in-symlinked-folder.js @@ -8,7 +8,20 @@ import * as M from "folder1/module1"; //// [/user/username/projects/myproject/client/linktofolder2] symlink(/user/username/projects/myproject/folder2) //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"baseUrl":"client","paths":{"*":["*"]}},"include":["client/**/*","folder2"]} +{ + "compilerOptions": { + "baseUrl": "client", + "paths": { + "*": [ + "*" + ] + } + }, + "include": [ + "client/**/*", + "folder2" + ] +} //// [/a/lib/lib.d.ts] /// @@ -49,8 +62,23 @@ DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/folder2 Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/folder2 1 undefined Wild card directory -Program root files: ["/user/username/projects/myproject/client/folder1/module1.ts","/user/username/projects/myproject/client/linktofolder2/module2.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject/client","paths":{"*":["*"]},"pathsBasePath":"/user/username/projects/myproject","watch":true,"project":"/user/username/projects/myproject","extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/client/folder1/module1.ts", + "/user/username/projects/myproject/client/linktofolder2/module2.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject/client", + "paths": { + "*": [ + "*" + ] + }, + "pathsBasePath": "/user/username/projects/myproject", + "watch": true, + "project": "/user/username/projects/myproject", + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -138,8 +166,24 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec -Program root files: ["/user/username/projects/myproject/client/folder1/module1.ts","/user/username/projects/myproject/client/linktofolder2/module2.ts","/user/username/projects/myproject/client/linktofolder2/module3.ts"] -Program options: {"baseUrl":"/user/username/projects/myproject/client","paths":{"*":["*"]},"pathsBasePath":"/user/username/projects/myproject","watch":true,"project":"/user/username/projects/myproject","extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/client/folder1/module1.ts", + "/user/username/projects/myproject/client/linktofolder2/module2.ts", + "/user/username/projects/myproject/client/linktofolder2/module3.ts" +] +Program options: { + "baseUrl": "/user/username/projects/myproject/client", + "paths": { + "*": [ + "*" + ] + }, + "pathsBasePath": "/user/username/projects/myproject", + "watch": true, + "project": "/user/username/projects/myproject", + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/when-new-file-is-added-to-the-referenced-project.js b/tests/baselines/reference/tscWatch/programUpdates/when-new-file-is-added-to-the-referenced-project.js index 79ed59be5df83..e28dc2260138a 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/when-new-file-is-added-to-the-referenced-project.js +++ b/tests/baselines/reference/tscWatch/programUpdates/when-new-file-is-added-to-the-referenced-project.js @@ -1,13 +1,31 @@ currentDirectory:: / useCaseSensitiveFileNames: false Input:: //// [/user/username/projects/myproject/projects/project1/tsconfig.json] -{"compilerOptions":{"module":"none","composite":true},"exclude":["temp"]} +{ + "compilerOptions": { + "module": "none", + "composite": true + }, + "exclude": [ + "temp" + ] +} //// [/user/username/projects/myproject/projects/project1/class1.ts] class class1 {} //// [/user/username/projects/myproject/projects/project2/tsconfig.json] -{"compilerOptions":{"module":"none","composite":true},"references":[{"path":"../project1"}]} +{ + "compilerOptions": { + "module": "none", + "composite": true + }, + "references": [ + { + "path": "../project1" + } + ] +} //// [/user/username/projects/myproject/projects/project2/class2.ts] class class2 {} @@ -61,8 +79,17 @@ DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/projects Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/projects/project2 1 undefined Wild card directory -Program root files: ["/user/username/projects/myproject/projects/project2/class2.ts"] -Program options: {"module":0,"composite":true,"watch":true,"project":"/user/username/projects/myproject/projects/project2/tsconfig.json","extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/projects/project2/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/projects/project2/class2.ts" +] +Program options: { + "module": 0, + "composite": true, + "watch": true, + "project": "/user/username/projects/myproject/projects/project2/tsconfig.json", + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/myproject/projects/project2/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -212,17 +239,30 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/projects/proj The file is in the program because: Output from referenced project '/user/username/projects/myproject/projects/project1/tsconfig.json' included because '--module' is specified as 'none' - user/username/projects/myproject/projects/project2/tsconfig.json:1:69 - 1 {"compilerOptions":{"module":"none","composite":true},"references":[{"path":"../project1"}]} -    ~~~~~~~~~~~~~~~~~~~~~~ + user/username/projects/myproject/projects/project2/tsconfig.json:7:5 + 7 { +    ~ + 8 "path": "../project1" +   ~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 9 } +   ~~~~~ File is output from referenced project specified here. [12:00:46 AM] Found 1 error. Watching for file changes. -Program root files: ["/user/username/projects/myproject/projects/project2/class2.ts"] -Program options: {"module":0,"composite":true,"watch":true,"project":"/user/username/projects/myproject/projects/project2/tsconfig.json","extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/projects/project2/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/projects/project2/class2.ts" +] +Program options: { + "module": 0, + "composite": true, + "watch": true, + "project": "/user/username/projects/myproject/projects/project2/tsconfig.json", + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/myproject/projects/project2/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -328,8 +368,17 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/projects/proj -Program root files: ["/user/username/projects/myproject/projects/project2/class2.ts"] -Program options: {"module":0,"composite":true,"watch":true,"project":"/user/username/projects/myproject/projects/project2/tsconfig.json","extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/projects/project2/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/projects/project2/class2.ts" +] +Program options: { + "module": 0, + "composite": true, + "watch": true, + "project": "/user/username/projects/myproject/projects/project2/tsconfig.json", + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/myproject/projects/project2/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -504,17 +553,30 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/projects/proj The file is in the program because: Output from referenced project '/user/username/projects/myproject/projects/project1/tsconfig.json' included because '--module' is specified as 'none' - user/username/projects/myproject/projects/project2/tsconfig.json:1:69 - 1 {"compilerOptions":{"module":"none","composite":true},"references":[{"path":"../project1"}]} -    ~~~~~~~~~~~~~~~~~~~~~~ + user/username/projects/myproject/projects/project2/tsconfig.json:7:5 + 7 { +    ~ + 8 "path": "../project1" +   ~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 9 } +   ~~~~~ File is output from referenced project specified here. [12:01:12 AM] Found 1 error. Watching for file changes. -Program root files: ["/user/username/projects/myproject/projects/project2/class2.ts"] -Program options: {"module":0,"composite":true,"watch":true,"project":"/user/username/projects/myproject/projects/project2/tsconfig.json","extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/projects/project2/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/projects/project2/class2.ts" +] +Program options: { + "module": 0, + "composite": true, + "watch": true, + "project": "/user/username/projects/myproject/projects/project2/tsconfig.json", + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/myproject/projects/project2/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -689,8 +751,17 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/projects/proj -Program root files: ["/user/username/projects/myproject/projects/project2/class2.ts"] -Program options: {"module":0,"composite":true,"watch":true,"project":"/user/username/projects/myproject/projects/project2/tsconfig.json","extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/projects/project2/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/projects/project2/class2.ts" +] +Program options: { + "module": 0, + "composite": true, + "watch": true, + "project": "/user/username/projects/myproject/projects/project2/tsconfig.json", + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/myproject/projects/project2/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/when-skipLibCheck-and-skipDefaultLibCheck-changes.js b/tests/baselines/reference/tscWatch/programUpdates/when-skipLibCheck-and-skipDefaultLibCheck-changes.js index fbcdccabb4cbb..7224167f0b4ff 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/when-skipLibCheck-and-skipDefaultLibCheck-changes.js +++ b/tests/baselines/reference/tscWatch/programUpdates/when-skipLibCheck-and-skipDefaultLibCheck-changes.js @@ -54,8 +54,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.d.ts"] -Program options: {"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.d.ts" +] +Program options: { + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -98,11 +104,19 @@ exitCode:: ExitStatus.undefined -Change:: Changing config to {"compilerOptions":{"skipLibCheck":true}} +Change:: Changing config to { + "compilerOptions": { + "skipLibCheck": true + } +} Input:: //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"skipLibCheck":true}} +{ + "compilerOptions": { + "skipLibCheck": true + } +} Before running Timeout callback:: count: 1 @@ -121,8 +135,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.d.ts"] -Program options: {"skipLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.d.ts" +] +Program options: { + "skipLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -138,11 +159,19 @@ No shapes updated in the builder:: exitCode:: ExitStatus.undefined -Change:: Changing config to {"compilerOptions":{"skipDefaultLibCheck":true}} +Change:: Changing config to { + "compilerOptions": { + "skipDefaultLibCheck": true + } +} Input:: //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"skipDefaultLibCheck":true}} +{ + "compilerOptions": { + "skipDefaultLibCheck": true + } +} Before running Timeout callback:: count: 1 @@ -166,8 +195,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.d.ts"] -Program options: {"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.d.ts" +] +Program options: { + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -183,11 +219,15 @@ No shapes updated in the builder:: exitCode:: ExitStatus.undefined -Change:: Changing config to {"compilerOptions":{}} +Change:: Changing config to { + "compilerOptions": {} +} Input:: //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{}} +{ + "compilerOptions": {} +} Before running Timeout callback:: count: 1 @@ -216,8 +256,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.d.ts"] -Program options: {"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.d.ts" +] +Program options: { + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -232,11 +278,19 @@ No shapes updated in the builder:: exitCode:: ExitStatus.undefined -Change:: Changing config to {"compilerOptions":{"skipDefaultLibCheck":true}} +Change:: Changing config to { + "compilerOptions": { + "skipDefaultLibCheck": true + } +} Input:: //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"skipDefaultLibCheck":true}} +{ + "compilerOptions": { + "skipDefaultLibCheck": true + } +} Before running Timeout callback:: count: 1 @@ -260,8 +314,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.d.ts"] -Program options: {"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.d.ts" +] +Program options: { + "skipDefaultLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -276,11 +337,19 @@ No shapes updated in the builder:: exitCode:: ExitStatus.undefined -Change:: Changing config to {"compilerOptions":{"skipLibCheck":true}} +Change:: Changing config to { + "compilerOptions": { + "skipLibCheck": true + } +} Input:: //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"skipLibCheck":true}} +{ + "compilerOptions": { + "skipLibCheck": true + } +} Before running Timeout callback:: count: 1 @@ -299,8 +368,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.d.ts"] -Program options: {"skipLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.d.ts" +] +Program options: { + "skipLibCheck": true, + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -316,11 +392,15 @@ No shapes updated in the builder:: exitCode:: ExitStatus.undefined -Change:: Changing config to {"compilerOptions":{}} +Change:: Changing config to { + "compilerOptions": {} +} Input:: //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{}} +{ + "compilerOptions": {} +} Before running Timeout callback:: count: 1 @@ -349,8 +429,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.d.ts"] -Program options: {"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.d.ts" +] +Program options: { + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/programUpdates/works-correctly-when-config-file-is-changed-but-its-content-havent.js b/tests/baselines/reference/tscWatch/programUpdates/works-correctly-when-config-file-is-changed-but-its-content-havent.js index 8376cbdbcc9b8..595f83d955fdc 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/works-correctly-when-config-file-is-changed-but-its-content-havent.js +++ b/tests/baselines/reference/tscWatch/programUpdates/works-correctly-when-config-file-is-changed-but-its-content-havent.js @@ -35,8 +35,15 @@ Output:: -Program root files: ["/a/b/commonFile1.ts","/a/b/commonFile2.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/commonFile1.ts", + "/a/b/commonFile2.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/projectsWithReferences/on-sample-project.js b/tests/baselines/reference/tscWatch/projectsWithReferences/on-sample-project.js index c56fdfd47b407..c11532c24fcc9 100644 --- a/tests/baselines/reference/tscWatch/projectsWithReferences/on-sample-project.js +++ b/tests/baselines/reference/tscWatch/projectsWithReferences/on-sample-project.js @@ -14,77 +14,82 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/sample1/core/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - } +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + } } //// [/user/username/projects/sample1/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } - - -//// [/user/username/projects/sample1/core/anotherModule.ts] -export const World = "hello"; +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } //// [/user/username/projects/sample1/core/some_decl.d.ts] declare const dts: any; +//// [/user/username/projects/sample1/core/anotherModule.ts] +export const World = "hello"; //// [/user/username/projects/sample1/logic/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../core" } - ] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + }, + "references": [ + { + "path": "../core" + } + ] } - //// [/user/username/projects/sample1/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; //// [/user/username/projects/sample1/tests/tsconfig.json] -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" } - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - } +{ + "references": [ + { + "path": "../core" + }, + { + "path": "../logic" + } + ], + "files": [ + "index.ts" + ], + "compilerOptions": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + } } //// [/user/username/projects/sample1/tests/index.ts] -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; //// [/user/username/projects/sample1/core/anotherModule.js] @@ -122,7 +127,7 @@ export declare function multiply(a: number, b: number): number; //# sourceMappingURL=index.d.ts.map //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\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"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -145,27 +150,27 @@ export declare function multiply(a: number, b: number): number; }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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" }, - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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" }, "./some_decl.d.ts": { "original": { - "version": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", "affectsGlobalScope": true }, - "version": "-9253692965-declare const dts: any;\r\n", - "signature": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", "affectsGlobalScope": true } }, @@ -199,7 +204,7 @@ export declare function multiply(a: number, b: number): number; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1408 + "size": 1394 } //// [/user/username/projects/sample1/logic/index.js.map] @@ -225,7 +230,7 @@ export declare const m: typeof mod; //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -265,10 +270,10 @@ export declare const m: typeof mod; }, "./index.ts": { "original": { - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -304,7 +309,7 @@ export declare const m: typeof mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1443 + "size": 1431 } //// [/user/username/projects/sample1/tests/index.js] @@ -325,7 +330,7 @@ export declare const m: typeof mod; //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n","-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -371,10 +376,10 @@ export declare const m: typeof mod; }, "./index.ts": { "original": { - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -417,7 +422,7 @@ export declare const m: typeof mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1588 + "size": 1573 } @@ -463,8 +468,20 @@ tests/index.ts -Program root files: ["/user/username/projects/sample1/tests/index.ts"] -Program options: {"composite":true,"declaration":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"watch":true,"project":"/user/username/projects/sample1/tests","traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/sample1/tests/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/tests/index.ts" +] +Program options: { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "watch": true, + "project": "/user/username/projects/sample1/tests", + "traceResolution": true, + "explainFiles": true, + "configFilePath": "/user/username/projects/sample1/tests/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -536,12 +553,12 @@ Change:: local edit in logic ts, and build logic Input:: //// [/user/username/projects/sample1/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; function foo() { } //// [/user/username/projects/sample1/logic/index.js.map] @@ -562,7 +579,7 @@ function foo() { } //# sourceMappingURL=index.js.map //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"-4111660551-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\nfunction foo() { }","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"-6497638357-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\nfunction foo() { }","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -602,10 +619,10 @@ function foo() { } }, "./index.ts": { "original": { - "version": "-4111660551-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\nfunction foo() { }", + "version": "-6497638357-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\nfunction foo() { }", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "-4111660551-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\nfunction foo() { }", + "version": "-6497638357-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\nfunction foo() { }", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -641,7 +658,7 @@ function foo() { } "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1461 + "size": 1449 } @@ -656,12 +673,12 @@ Change:: non local edit in logic ts, and build logic Input:: //// [/user/username/projects/sample1/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; function foo() { }export function gfoo() { } //// [/user/username/projects/sample1/logic/index.js.map] @@ -691,7 +708,7 @@ export declare function gfoo(): void; //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"-380817803-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\nfunction foo() { }export function gfoo() { }","signature":"-11367551051-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\nexport declare function gfoo(): void;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"-1796860121-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\nfunction foo() { }export function gfoo() { }","signature":"-11367551051-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\nexport declare function gfoo(): void;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -731,10 +748,10 @@ export declare function gfoo(): void; }, "./index.ts": { "original": { - "version": "-380817803-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\nfunction foo() { }export function gfoo() { }", + "version": "-1796860121-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\nfunction foo() { }export function gfoo() { }", "signature": "-11367551051-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\nexport declare function gfoo(): void;\n" }, - "version": "-380817803-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\nfunction foo() { }export function gfoo() { }", + "version": "-1796860121-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\nfunction foo() { }export function gfoo() { }", "signature": "-11367551051-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\nexport declare function gfoo(): void;\n" } }, @@ -770,7 +787,7 @@ export declare function gfoo(): void; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1526 + "size": 1515 } @@ -800,8 +817,20 @@ tests/index.ts -Program root files: ["/user/username/projects/sample1/tests/index.ts"] -Program options: {"composite":true,"declaration":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"watch":true,"project":"/user/username/projects/sample1/tests","traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/sample1/tests/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/tests/index.ts" +] +Program options: { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "watch": true, + "project": "/user/username/projects/sample1/tests", + "traceResolution": true, + "explainFiles": true, + "configFilePath": "/user/username/projects/sample1/tests/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -842,7 +871,7 @@ exitCode:: ExitStatus.undefined //// [/user/username/projects/sample1/tests/index.js] file written with same contents //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n","-11367551051-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\nexport declare function gfoo(): void;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n","-11367551051-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\nexport declare function gfoo(): void;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -888,10 +917,10 @@ exitCode:: ExitStatus.undefined }, "./index.ts": { "original": { - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -934,7 +963,7 @@ exitCode:: ExitStatus.undefined "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1628 + "size": 1613 } @@ -942,7 +971,18 @@ Change:: change in project reference config file builds correctly Input:: //// [/user/username/projects/sample1/logic/tsconfig.json] -{"compilerOptions":{"composite":true,"declaration":true,"declarationDir":"decls"},"references":[{"path":"../core"}]} +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationDir": "decls" + }, + "references": [ + { + "path": "../core" + } + ] +} //// [/user/username/projects/sample1/logic/index.js] "use strict"; @@ -961,7 +1001,7 @@ exports.gfoo = gfoo; //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"-380817803-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\nfunction foo() { }export function gfoo() { }","signature":"-11367551051-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\nexport declare function gfoo(): void;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"declarationDir":"./decls"},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./decls/index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"-1796860121-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\nfunction foo() { }export function gfoo() { }","signature":"-11367551051-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\nexport declare function gfoo(): void;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"declarationDir":"./decls"},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./decls/index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1001,10 +1041,10 @@ exports.gfoo = gfoo; }, "./index.ts": { "original": { - "version": "-380817803-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\nfunction foo() { }export function gfoo() { }", + "version": "-1796860121-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\nfunction foo() { }export function gfoo() { }", "signature": "-11367551051-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\nexport declare function gfoo(): void;\n" }, - "version": "-380817803-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\nfunction foo() { }export function gfoo() { }", + "version": "-1796860121-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\nfunction foo() { }export function gfoo() { }", "signature": "-11367551051-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\nexport declare function gfoo(): void;\n" } }, @@ -1039,7 +1079,7 @@ exports.gfoo = gfoo; "latestChangedDtsFile": "./decls/index.d.ts" }, "version": "FakeTSVersion", - "size": 1515 + "size": 1504 } //// [/user/username/projects/sample1/logic/decls/index.d.ts] @@ -1082,8 +1122,20 @@ tests/index.ts -Program root files: ["/user/username/projects/sample1/tests/index.ts"] -Program options: {"composite":true,"declaration":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"watch":true,"project":"/user/username/projects/sample1/tests","traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/sample1/tests/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/tests/index.ts" +] +Program options: { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "watch": true, + "project": "/user/username/projects/sample1/tests", + "traceResolution": true, + "explainFiles": true, + "configFilePath": "/user/username/projects/sample1/tests/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -1160,7 +1212,7 @@ exitCode:: ExitStatus.undefined //// [/user/username/projects/sample1/tests/index.js] file written with same contents //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/decls/index.d.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n","-11367551051-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\nexport declare function gfoo(): void;\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/decls/index.d.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n","-11367551051-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\nexport declare function gfoo(): void;\n",{"version":"-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[5],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1206,10 +1258,10 @@ exitCode:: ExitStatus.undefined }, "./index.ts": { "original": { - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-11950676699-import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "2702201019-import * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -1252,6 +1304,6 @@ exitCode:: ExitStatus.undefined "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1634 + "size": 1619 } diff --git a/tests/baselines/reference/tscWatch/projectsWithReferences/on-transitive-references-in-different-folders-with-no-files-clause.js b/tests/baselines/reference/tscWatch/projectsWithReferences/on-transitive-references-in-different-folders-with-no-files-clause.js index 522d37b9d8af0..833999d40cd96 100644 --- a/tests/baselines/reference/tscWatch/projectsWithReferences/on-transitive-references-in-different-folders-with-no-files-clause.js +++ b/tests/baselines/reference/tscWatch/projectsWithReferences/on-transitive-references-in-different-folders-with-no-files-clause.js @@ -14,13 +14,46 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/transitiveReferences/a/tsconfig.json] -{"compilerOptions":{"composite":true}} +{ + "compilerOptions": { + "composite": true + } +} //// [/user/username/projects/transitiveReferences/b/tsconfig.json] -{"compilerOptions":{"composite":true,"baseUrl":"./","paths":{"@ref/*":["../*"]}},"references":[{"path":"../a"}]} +{ + "compilerOptions": { + "composite": true, + "baseUrl": "./", + "paths": { + "@ref/*": [ + "../*" + ] + } + }, + "references": [ + { + "path": "../a" + } + ] +} //// [/user/username/projects/transitiveReferences/c/tsconfig.json] -{"compilerOptions":{"baseUrl":"./","paths":{"@ref/*":["../refs/*"]}},"references":[{"path":"../b"}]} +{ + "compilerOptions": { + "baseUrl": "./", + "paths": { + "@ref/*": [ + "../refs/*" + ] + } + }, + "references": [ + { + "path": "../b" + } + ] +} //// [/user/username/projects/transitiveReferences/a/index.ts] export class A {} @@ -36,8 +69,8 @@ b; X; //// [/user/username/projects/transitiveReferences/refs/a.d.ts] -export class X {} -export class A {} +export class X {} +export class A {} //// [/user/username/projects/transitiveReferences/a/index.js] @@ -244,8 +277,23 @@ c/index.ts -Program root files: ["/user/username/projects/transitiveReferences/c/index.ts"] -Program options: {"baseUrl":"/user/username/projects/transitiveReferences/c","paths":{"@ref/*":["../refs/*"]},"pathsBasePath":"/user/username/projects/transitiveReferences/c","watch":true,"project":"/user/username/projects/transitiveReferences/c","traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/transitiveReferences/c/tsconfig.json"} +Program root files: [ + "/user/username/projects/transitiveReferences/c/index.ts" +] +Program options: { + "baseUrl": "/user/username/projects/transitiveReferences/c", + "paths": { + "@ref/*": [ + "../refs/*" + ] + }, + "pathsBasePath": "/user/username/projects/transitiveReferences/c", + "watch": true, + "project": "/user/username/projects/transitiveReferences/c", + "traceResolution": true, + "explainFiles": true, + "configFilePath": "/user/username/projects/transitiveReferences/c/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -447,8 +495,23 @@ c/index.ts -Program root files: ["/user/username/projects/transitiveReferences/c/index.ts"] -Program options: {"baseUrl":"/user/username/projects/transitiveReferences/c","paths":{"@ref/*":["../refs/*"]},"pathsBasePath":"/user/username/projects/transitiveReferences/c","watch":true,"project":"/user/username/projects/transitiveReferences/c","traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/transitiveReferences/c/tsconfig.json"} +Program root files: [ + "/user/username/projects/transitiveReferences/c/index.ts" +] +Program options: { + "baseUrl": "/user/username/projects/transitiveReferences/c", + "paths": { + "@ref/*": [ + "../refs/*" + ] + }, + "pathsBasePath": "/user/username/projects/transitiveReferences/c", + "watch": true, + "project": "/user/username/projects/transitiveReferences/c", + "traceResolution": true, + "explainFiles": true, + "configFilePath": "/user/username/projects/transitiveReferences/c/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -493,11 +556,25 @@ Change:: edit on config file Input:: //// [/user/username/projects/transitiveReferences/c/tsconfig.json] -{"compilerOptions":{"baseUrl":"./","paths":{"@ref/*":["../nrefs/*"]}},"references":[{"path":"../b"}]} +{ + "compilerOptions": { + "baseUrl": "./", + "paths": { + "@ref/*": [ + "../nrefs/*" + ] + } + }, + "references": [ + { + "path": "../b" + } + ] +} //// [/user/username/projects/transitiveReferences/nrefs/a.d.ts] -export class X {} -export class A {} +export class X {} +export class A {} @@ -549,8 +626,23 @@ c/index.ts -Program root files: ["/user/username/projects/transitiveReferences/c/index.ts"] -Program options: {"baseUrl":"/user/username/projects/transitiveReferences/c","paths":{"@ref/*":["../nrefs/*"]},"pathsBasePath":"/user/username/projects/transitiveReferences/c","watch":true,"project":"/user/username/projects/transitiveReferences/c","traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/transitiveReferences/c/tsconfig.json"} +Program root files: [ + "/user/username/projects/transitiveReferences/c/index.ts" +] +Program options: { + "baseUrl": "/user/username/projects/transitiveReferences/c", + "paths": { + "@ref/*": [ + "../nrefs/*" + ] + }, + "pathsBasePath": "/user/username/projects/transitiveReferences/c", + "watch": true, + "project": "/user/username/projects/transitiveReferences/c", + "traceResolution": true, + "explainFiles": true, + "configFilePath": "/user/username/projects/transitiveReferences/c/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -641,7 +733,21 @@ Change:: Revert config file edit Input:: //// [/user/username/projects/transitiveReferences/c/tsconfig.json] -{"compilerOptions":{"baseUrl":"./","paths":{"@ref/*":["../refs/*"]}},"references":[{"path":"../b"}]} +{ + "compilerOptions": { + "baseUrl": "./", + "paths": { + "@ref/*": [ + "../refs/*" + ] + } + }, + "references": [ + { + "path": "../b" + } + ] +} Before running Timeout callback:: count: 1 @@ -691,8 +797,23 @@ c/index.ts -Program root files: ["/user/username/projects/transitiveReferences/c/index.ts"] -Program options: {"baseUrl":"/user/username/projects/transitiveReferences/c","paths":{"@ref/*":["../refs/*"]},"pathsBasePath":"/user/username/projects/transitiveReferences/c","watch":true,"project":"/user/username/projects/transitiveReferences/c","traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/transitiveReferences/c/tsconfig.json"} +Program root files: [ + "/user/username/projects/transitiveReferences/c/index.ts" +] +Program options: { + "baseUrl": "/user/username/projects/transitiveReferences/c", + "paths": { + "@ref/*": [ + "../refs/*" + ] + }, + "pathsBasePath": "/user/username/projects/transitiveReferences/c", + "watch": true, + "project": "/user/username/projects/transitiveReferences/c", + "traceResolution": true, + "explainFiles": true, + "configFilePath": "/user/username/projects/transitiveReferences/c/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -783,7 +904,22 @@ Change:: edit in referenced config file Input:: //// [/user/username/projects/transitiveReferences/b/tsconfig.json] -{"compilerOptions":{"composite":true,"baseUrl":"./","paths":{"@ref/*":["../nrefs/*"]}},"references":[{"path":"../a"}]} +{ + "compilerOptions": { + "composite": true, + "baseUrl": "./", + "paths": { + "@ref/*": [ + "../nrefs/*" + ] + } + }, + "references": [ + { + "path": "../a" + } + ] +} Before running Timeout callback:: count: 1 @@ -814,8 +950,23 @@ c/index.ts -Program root files: ["/user/username/projects/transitiveReferences/c/index.ts"] -Program options: {"baseUrl":"/user/username/projects/transitiveReferences/c","paths":{"@ref/*":["../refs/*"]},"pathsBasePath":"/user/username/projects/transitiveReferences/c","watch":true,"project":"/user/username/projects/transitiveReferences/c","traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/transitiveReferences/c/tsconfig.json"} +Program root files: [ + "/user/username/projects/transitiveReferences/c/index.ts" +] +Program options: { + "baseUrl": "/user/username/projects/transitiveReferences/c", + "paths": { + "@ref/*": [ + "../refs/*" + ] + }, + "pathsBasePath": "/user/username/projects/transitiveReferences/c", + "watch": true, + "project": "/user/username/projects/transitiveReferences/c", + "traceResolution": true, + "explainFiles": true, + "configFilePath": "/user/username/projects/transitiveReferences/c/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -903,7 +1054,22 @@ Change:: Revert referenced config file edit Input:: //// [/user/username/projects/transitiveReferences/b/tsconfig.json] -{"compilerOptions":{"composite":true,"baseUrl":"./","paths":{"@ref/*":["../refs/*"]}},"references":[{"path":"../a"}]} +{ + "compilerOptions": { + "composite": true, + "baseUrl": "./", + "paths": { + "@ref/*": [ + "../refs/*" + ] + } + }, + "references": [ + { + "path": "../a" + } + ] +} Before running Timeout callback:: count: 1 @@ -933,8 +1099,23 @@ c/index.ts -Program root files: ["/user/username/projects/transitiveReferences/c/index.ts"] -Program options: {"baseUrl":"/user/username/projects/transitiveReferences/c","paths":{"@ref/*":["../refs/*"]},"pathsBasePath":"/user/username/projects/transitiveReferences/c","watch":true,"project":"/user/username/projects/transitiveReferences/c","traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/transitiveReferences/c/tsconfig.json"} +Program root files: [ + "/user/username/projects/transitiveReferences/c/index.ts" +] +Program options: { + "baseUrl": "/user/username/projects/transitiveReferences/c", + "paths": { + "@ref/*": [ + "../refs/*" + ] + }, + "pathsBasePath": "/user/username/projects/transitiveReferences/c", + "watch": true, + "project": "/user/username/projects/transitiveReferences/c", + "traceResolution": true, + "explainFiles": true, + "configFilePath": "/user/username/projects/transitiveReferences/c/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -1037,10 +1218,14 @@ File '/user/username/projects/transitiveReferences/refs/a.ts' does not exist. File '/user/username/projects/transitiveReferences/refs/a.tsx' does not exist. File '/user/username/projects/transitiveReferences/refs/a.d.ts' exists - use it as a name resolution result. ======== Module name '@ref/a' was successfully resolved to '/user/username/projects/transitiveReferences/refs/a.d.ts'. ======== -c/tsconfig.json:1:84 - error TS6053: File '/user/username/projects/transitiveReferences/b' not found. +c/tsconfig.json:11:5 - error TS6053: File '/user/username/projects/transitiveReferences/b' not found. -1 {"compilerOptions":{"baseUrl":"./","paths":{"@ref/*":["../refs/*"]}},"references":[{"path":"../b"}]} -   ~~~~~~~~~~~~~~~ +11 { +   ~ +12 "path": "../b" +  ~~~~~~~~~~~~~~~~~~~~ +13 } +  ~~~~~ ../../../../a/lib/lib.d.ts Default library for target 'es5' @@ -1055,8 +1240,23 @@ c/index.ts -Program root files: ["/user/username/projects/transitiveReferences/c/index.ts"] -Program options: {"baseUrl":"/user/username/projects/transitiveReferences/c","paths":{"@ref/*":["../refs/*"]},"pathsBasePath":"/user/username/projects/transitiveReferences/c","watch":true,"project":"/user/username/projects/transitiveReferences/c","traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/transitiveReferences/c/tsconfig.json"} +Program root files: [ + "/user/username/projects/transitiveReferences/c/index.ts" +] +Program options: { + "baseUrl": "/user/username/projects/transitiveReferences/c", + "paths": { + "@ref/*": [ + "../refs/*" + ] + }, + "pathsBasePath": "/user/username/projects/transitiveReferences/c", + "watch": true, + "project": "/user/username/projects/transitiveReferences/c", + "traceResolution": true, + "explainFiles": true, + "configFilePath": "/user/username/projects/transitiveReferences/c/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -1139,7 +1339,22 @@ Change:: Revert deleting referenced config file Input:: //// [/user/username/projects/transitiveReferences/b/tsconfig.json] -{"compilerOptions":{"composite":true,"baseUrl":"./","paths":{"@ref/*":["../*"]}},"references":[{"path":"../a"}]} +{ + "compilerOptions": { + "composite": true, + "baseUrl": "./", + "paths": { + "@ref/*": [ + "../*" + ] + } + }, + "references": [ + { + "path": "../a" + } + ] +} Before running Timeout callback:: count: 2 @@ -1172,8 +1387,23 @@ c/index.ts -Program root files: ["/user/username/projects/transitiveReferences/c/index.ts"] -Program options: {"baseUrl":"/user/username/projects/transitiveReferences/c","paths":{"@ref/*":["../refs/*"]},"pathsBasePath":"/user/username/projects/transitiveReferences/c","watch":true,"project":"/user/username/projects/transitiveReferences/c","traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/transitiveReferences/c/tsconfig.json"} +Program root files: [ + "/user/username/projects/transitiveReferences/c/index.ts" +] +Program options: { + "baseUrl": "/user/username/projects/transitiveReferences/c", + "paths": { + "@ref/*": [ + "../refs/*" + ] + }, + "pathsBasePath": "/user/username/projects/transitiveReferences/c", + "watch": true, + "project": "/user/username/projects/transitiveReferences/c", + "traceResolution": true, + "explainFiles": true, + "configFilePath": "/user/username/projects/transitiveReferences/c/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -1274,10 +1504,14 @@ Output:: Reusing resolution of module '../b' from '/user/username/projects/transitiveReferences/c/index.ts' of old program, it was successfully resolved to '/user/username/projects/transitiveReferences/b/index.ts'. Reusing resolution of module '@ref/a' from '/user/username/projects/transitiveReferences/c/index.ts' of old program, it was successfully resolved to '/user/username/projects/transitiveReferences/refs/a.d.ts'. Reusing resolution of module '@ref/a' from '/user/username/projects/transitiveReferences/b/index.ts' of old program, it was successfully resolved to '/user/username/projects/transitiveReferences/a/index.ts'. -b/tsconfig.json:1:96 - error TS6053: File '/user/username/projects/transitiveReferences/a' not found. +b/tsconfig.json:12:5 - error TS6053: File '/user/username/projects/transitiveReferences/a' not found. -1 {"compilerOptions":{"composite":true,"baseUrl":"./","paths":{"@ref/*":["../*"]}},"references":[{"path":"../a"}]} -   ~~~~~~~~~~~~~~~ +12 { +   ~ +13 "path": "../a" +  ~~~~~~~~~~~~~~~~~~~~ +14 } +  ~~~~~ ../../../../a/lib/lib.d.ts Default library for target 'es5' @@ -1294,8 +1528,23 @@ c/index.ts -Program root files: ["/user/username/projects/transitiveReferences/c/index.ts"] -Program options: {"baseUrl":"/user/username/projects/transitiveReferences/c","paths":{"@ref/*":["../refs/*"]},"pathsBasePath":"/user/username/projects/transitiveReferences/c","watch":true,"project":"/user/username/projects/transitiveReferences/c","traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/transitiveReferences/c/tsconfig.json"} +Program root files: [ + "/user/username/projects/transitiveReferences/c/index.ts" +] +Program options: { + "baseUrl": "/user/username/projects/transitiveReferences/c", + "paths": { + "@ref/*": [ + "../refs/*" + ] + }, + "pathsBasePath": "/user/username/projects/transitiveReferences/c", + "watch": true, + "project": "/user/username/projects/transitiveReferences/c", + "traceResolution": true, + "explainFiles": true, + "configFilePath": "/user/username/projects/transitiveReferences/c/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -1382,7 +1631,11 @@ Change:: Revert deleting transitively referenced config file Input:: //// [/user/username/projects/transitiveReferences/a/tsconfig.json] -{"compilerOptions":{"composite":true}} +{ + "compilerOptions": { + "composite": true + } +} Before running Timeout callback:: count: 2 @@ -1412,8 +1665,23 @@ c/index.ts -Program root files: ["/user/username/projects/transitiveReferences/c/index.ts"] -Program options: {"baseUrl":"/user/username/projects/transitiveReferences/c","paths":{"@ref/*":["../refs/*"]},"pathsBasePath":"/user/username/projects/transitiveReferences/c","watch":true,"project":"/user/username/projects/transitiveReferences/c","traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/transitiveReferences/c/tsconfig.json"} +Program root files: [ + "/user/username/projects/transitiveReferences/c/index.ts" +] +Program options: { + "baseUrl": "/user/username/projects/transitiveReferences/c", + "paths": { + "@ref/*": [ + "../refs/*" + ] + }, + "pathsBasePath": "/user/username/projects/transitiveReferences/c", + "watch": true, + "project": "/user/username/projects/transitiveReferences/c", + "traceResolution": true, + "explainFiles": true, + "configFilePath": "/user/username/projects/transitiveReferences/c/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/projectsWithReferences/on-transitive-references-in-different-folders.js b/tests/baselines/reference/tscWatch/projectsWithReferences/on-transitive-references-in-different-folders.js index a84e55488d443..61a80815f3419 100644 --- a/tests/baselines/reference/tscWatch/projectsWithReferences/on-transitive-references-in-different-folders.js +++ b/tests/baselines/reference/tscWatch/projectsWithReferences/on-transitive-references-in-different-folders.js @@ -14,13 +14,55 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/transitiveReferences/a/tsconfig.json] -{"compilerOptions":{"composite":true},"files":["index.ts"]} +{ + "compilerOptions": { + "composite": true + }, + "files": [ + "index.ts" + ] +} //// [/user/username/projects/transitiveReferences/b/tsconfig.json] -{"compilerOptions":{"composite":true,"baseUrl":"./","paths":{"@ref/*":["../*"]}},"files":["index.ts"],"references":[{"path":"../a"}]} +{ + "compilerOptions": { + "composite": true, + "baseUrl": "./", + "paths": { + "@ref/*": [ + "../*" + ] + } + }, + "files": [ + "index.ts" + ], + "references": [ + { + "path": "../a" + } + ] +} //// [/user/username/projects/transitiveReferences/c/tsconfig.json] -{"compilerOptions":{"baseUrl":"./","paths":{"@ref/*":["../refs/*"]}},"files":["index.ts"],"references":[{"path":"../b"}]} +{ + "compilerOptions": { + "baseUrl": "./", + "paths": { + "@ref/*": [ + "../refs/*" + ] + } + }, + "files": [ + "index.ts" + ], + "references": [ + { + "path": "../b" + } + ] +} //// [/user/username/projects/transitiveReferences/a/index.ts] export class A {} @@ -36,8 +78,8 @@ b; X; //// [/user/username/projects/transitiveReferences/refs/a.d.ts] -export class X {} -export class A {} +export class X {} +export class A {} //// [/user/username/projects/transitiveReferences/a/index.js] @@ -244,8 +286,23 @@ c/index.ts -Program root files: ["/user/username/projects/transitiveReferences/c/index.ts"] -Program options: {"baseUrl":"/user/username/projects/transitiveReferences/c","paths":{"@ref/*":["../refs/*"]},"pathsBasePath":"/user/username/projects/transitiveReferences/c","watch":true,"project":"/user/username/projects/transitiveReferences/c","traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/transitiveReferences/c/tsconfig.json"} +Program root files: [ + "/user/username/projects/transitiveReferences/c/index.ts" +] +Program options: { + "baseUrl": "/user/username/projects/transitiveReferences/c", + "paths": { + "@ref/*": [ + "../refs/*" + ] + }, + "pathsBasePath": "/user/username/projects/transitiveReferences/c", + "watch": true, + "project": "/user/username/projects/transitiveReferences/c", + "traceResolution": true, + "explainFiles": true, + "configFilePath": "/user/username/projects/transitiveReferences/c/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -445,8 +502,23 @@ c/index.ts -Program root files: ["/user/username/projects/transitiveReferences/c/index.ts"] -Program options: {"baseUrl":"/user/username/projects/transitiveReferences/c","paths":{"@ref/*":["../refs/*"]},"pathsBasePath":"/user/username/projects/transitiveReferences/c","watch":true,"project":"/user/username/projects/transitiveReferences/c","traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/transitiveReferences/c/tsconfig.json"} +Program root files: [ + "/user/username/projects/transitiveReferences/c/index.ts" +] +Program options: { + "baseUrl": "/user/username/projects/transitiveReferences/c", + "paths": { + "@ref/*": [ + "../refs/*" + ] + }, + "pathsBasePath": "/user/username/projects/transitiveReferences/c", + "watch": true, + "project": "/user/username/projects/transitiveReferences/c", + "traceResolution": true, + "explainFiles": true, + "configFilePath": "/user/username/projects/transitiveReferences/c/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -491,11 +563,28 @@ Change:: edit on config file Input:: //// [/user/username/projects/transitiveReferences/c/tsconfig.json] -{"compilerOptions":{"baseUrl":"./","paths":{"@ref/*":["../nrefs/*"]}},"files":["index.ts"],"references":[{"path":"../b"}]} +{ + "compilerOptions": { + "baseUrl": "./", + "paths": { + "@ref/*": [ + "../nrefs/*" + ] + } + }, + "files": [ + "index.ts" + ], + "references": [ + { + "path": "../b" + } + ] +} //// [/user/username/projects/transitiveReferences/nrefs/a.d.ts] -export class X {} -export class A {} +export class X {} +export class A {} @@ -547,8 +636,23 @@ c/index.ts -Program root files: ["/user/username/projects/transitiveReferences/c/index.ts"] -Program options: {"baseUrl":"/user/username/projects/transitiveReferences/c","paths":{"@ref/*":["../nrefs/*"]},"pathsBasePath":"/user/username/projects/transitiveReferences/c","watch":true,"project":"/user/username/projects/transitiveReferences/c","traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/transitiveReferences/c/tsconfig.json"} +Program root files: [ + "/user/username/projects/transitiveReferences/c/index.ts" +] +Program options: { + "baseUrl": "/user/username/projects/transitiveReferences/c", + "paths": { + "@ref/*": [ + "../nrefs/*" + ] + }, + "pathsBasePath": "/user/username/projects/transitiveReferences/c", + "watch": true, + "project": "/user/username/projects/transitiveReferences/c", + "traceResolution": true, + "explainFiles": true, + "configFilePath": "/user/username/projects/transitiveReferences/c/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -637,7 +741,24 @@ Change:: Revert config file edit Input:: //// [/user/username/projects/transitiveReferences/c/tsconfig.json] -{"compilerOptions":{"baseUrl":"./","paths":{"@ref/*":["../refs/*"]}},"files":["index.ts"],"references":[{"path":"../b"}]} +{ + "compilerOptions": { + "baseUrl": "./", + "paths": { + "@ref/*": [ + "../refs/*" + ] + } + }, + "files": [ + "index.ts" + ], + "references": [ + { + "path": "../b" + } + ] +} Before running Timeout callback:: count: 1 @@ -687,8 +808,23 @@ c/index.ts -Program root files: ["/user/username/projects/transitiveReferences/c/index.ts"] -Program options: {"baseUrl":"/user/username/projects/transitiveReferences/c","paths":{"@ref/*":["../refs/*"]},"pathsBasePath":"/user/username/projects/transitiveReferences/c","watch":true,"project":"/user/username/projects/transitiveReferences/c","traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/transitiveReferences/c/tsconfig.json"} +Program root files: [ + "/user/username/projects/transitiveReferences/c/index.ts" +] +Program options: { + "baseUrl": "/user/username/projects/transitiveReferences/c", + "paths": { + "@ref/*": [ + "../refs/*" + ] + }, + "pathsBasePath": "/user/username/projects/transitiveReferences/c", + "watch": true, + "project": "/user/username/projects/transitiveReferences/c", + "traceResolution": true, + "explainFiles": true, + "configFilePath": "/user/username/projects/transitiveReferences/c/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -777,7 +913,25 @@ Change:: edit in referenced config file Input:: //// [/user/username/projects/transitiveReferences/b/tsconfig.json] -{"compilerOptions":{"composite":true,"baseUrl":"./","paths":{"@ref/*":["../nrefs/*"]}},"files":["index.ts"],"references":[{"path":"../a"}]} +{ + "compilerOptions": { + "composite": true, + "baseUrl": "./", + "paths": { + "@ref/*": [ + "../nrefs/*" + ] + } + }, + "files": [ + "index.ts" + ], + "references": [ + { + "path": "../a" + } + ] +} Before running Timeout callback:: count: 1 @@ -808,8 +962,23 @@ c/index.ts -Program root files: ["/user/username/projects/transitiveReferences/c/index.ts"] -Program options: {"baseUrl":"/user/username/projects/transitiveReferences/c","paths":{"@ref/*":["../refs/*"]},"pathsBasePath":"/user/username/projects/transitiveReferences/c","watch":true,"project":"/user/username/projects/transitiveReferences/c","traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/transitiveReferences/c/tsconfig.json"} +Program root files: [ + "/user/username/projects/transitiveReferences/c/index.ts" +] +Program options: { + "baseUrl": "/user/username/projects/transitiveReferences/c", + "paths": { + "@ref/*": [ + "../refs/*" + ] + }, + "pathsBasePath": "/user/username/projects/transitiveReferences/c", + "watch": true, + "project": "/user/username/projects/transitiveReferences/c", + "traceResolution": true, + "explainFiles": true, + "configFilePath": "/user/username/projects/transitiveReferences/c/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -897,7 +1066,25 @@ Change:: Revert referenced config file edit Input:: //// [/user/username/projects/transitiveReferences/b/tsconfig.json] -{"compilerOptions":{"composite":true,"baseUrl":"./","paths":{"@ref/*":["../refs/*"]}},"files":["index.ts"],"references":[{"path":"../a"}]} +{ + "compilerOptions": { + "composite": true, + "baseUrl": "./", + "paths": { + "@ref/*": [ + "../refs/*" + ] + } + }, + "files": [ + "index.ts" + ], + "references": [ + { + "path": "../a" + } + ] +} Before running Timeout callback:: count: 1 @@ -927,8 +1114,23 @@ c/index.ts -Program root files: ["/user/username/projects/transitiveReferences/c/index.ts"] -Program options: {"baseUrl":"/user/username/projects/transitiveReferences/c","paths":{"@ref/*":["../refs/*"]},"pathsBasePath":"/user/username/projects/transitiveReferences/c","watch":true,"project":"/user/username/projects/transitiveReferences/c","traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/transitiveReferences/c/tsconfig.json"} +Program root files: [ + "/user/username/projects/transitiveReferences/c/index.ts" +] +Program options: { + "baseUrl": "/user/username/projects/transitiveReferences/c", + "paths": { + "@ref/*": [ + "../refs/*" + ] + }, + "pathsBasePath": "/user/username/projects/transitiveReferences/c", + "watch": true, + "project": "/user/username/projects/transitiveReferences/c", + "traceResolution": true, + "explainFiles": true, + "configFilePath": "/user/username/projects/transitiveReferences/c/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -1027,10 +1229,14 @@ File '/user/username/projects/transitiveReferences/refs/a.ts' does not exist. File '/user/username/projects/transitiveReferences/refs/a.tsx' does not exist. File '/user/username/projects/transitiveReferences/refs/a.d.ts' exists - use it as a name resolution result. ======== Module name '@ref/a' was successfully resolved to '/user/username/projects/transitiveReferences/refs/a.d.ts'. ======== -c/tsconfig.json:1:105 - error TS6053: File '/user/username/projects/transitiveReferences/b' not found. +c/tsconfig.json:14:5 - error TS6053: File '/user/username/projects/transitiveReferences/b' not found. -1 {"compilerOptions":{"baseUrl":"./","paths":{"@ref/*":["../refs/*"]}},"files":["index.ts"],"references":[{"path":"../b"}]} -   ~~~~~~~~~~~~~~~ +14 { +   ~ +15 "path": "../b" +  ~~~~~~~~~~~~~~~~~~~~ +16 } +  ~~~~~ ../../../../a/lib/lib.d.ts Default library for target 'es5' @@ -1045,8 +1251,23 @@ c/index.ts -Program root files: ["/user/username/projects/transitiveReferences/c/index.ts"] -Program options: {"baseUrl":"/user/username/projects/transitiveReferences/c","paths":{"@ref/*":["../refs/*"]},"pathsBasePath":"/user/username/projects/transitiveReferences/c","watch":true,"project":"/user/username/projects/transitiveReferences/c","traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/transitiveReferences/c/tsconfig.json"} +Program root files: [ + "/user/username/projects/transitiveReferences/c/index.ts" +] +Program options: { + "baseUrl": "/user/username/projects/transitiveReferences/c", + "paths": { + "@ref/*": [ + "../refs/*" + ] + }, + "pathsBasePath": "/user/username/projects/transitiveReferences/c", + "watch": true, + "project": "/user/username/projects/transitiveReferences/c", + "traceResolution": true, + "explainFiles": true, + "configFilePath": "/user/username/projects/transitiveReferences/c/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -1123,7 +1344,25 @@ Change:: Revert deleting referenced config file Input:: //// [/user/username/projects/transitiveReferences/b/tsconfig.json] -{"compilerOptions":{"composite":true,"baseUrl":"./","paths":{"@ref/*":["../*"]}},"files":["index.ts"],"references":[{"path":"../a"}]} +{ + "compilerOptions": { + "composite": true, + "baseUrl": "./", + "paths": { + "@ref/*": [ + "../*" + ] + } + }, + "files": [ + "index.ts" + ], + "references": [ + { + "path": "../a" + } + ] +} Before running Timeout callback:: count: 2 @@ -1156,8 +1395,23 @@ c/index.ts -Program root files: ["/user/username/projects/transitiveReferences/c/index.ts"] -Program options: {"baseUrl":"/user/username/projects/transitiveReferences/c","paths":{"@ref/*":["../refs/*"]},"pathsBasePath":"/user/username/projects/transitiveReferences/c","watch":true,"project":"/user/username/projects/transitiveReferences/c","traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/transitiveReferences/c/tsconfig.json"} +Program root files: [ + "/user/username/projects/transitiveReferences/c/index.ts" +] +Program options: { + "baseUrl": "/user/username/projects/transitiveReferences/c", + "paths": { + "@ref/*": [ + "../refs/*" + ] + }, + "pathsBasePath": "/user/username/projects/transitiveReferences/c", + "watch": true, + "project": "/user/username/projects/transitiveReferences/c", + "traceResolution": true, + "explainFiles": true, + "configFilePath": "/user/username/projects/transitiveReferences/c/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -1256,10 +1510,14 @@ Output:: Reusing resolution of module '../b' from '/user/username/projects/transitiveReferences/c/index.ts' of old program, it was successfully resolved to '/user/username/projects/transitiveReferences/b/index.ts'. Reusing resolution of module '@ref/a' from '/user/username/projects/transitiveReferences/c/index.ts' of old program, it was successfully resolved to '/user/username/projects/transitiveReferences/refs/a.d.ts'. Reusing resolution of module '@ref/a' from '/user/username/projects/transitiveReferences/b/index.ts' of old program, it was successfully resolved to '/user/username/projects/transitiveReferences/a/index.ts'. -b/tsconfig.json:1:117 - error TS6053: File '/user/username/projects/transitiveReferences/a' not found. +b/tsconfig.json:15:5 - error TS6053: File '/user/username/projects/transitiveReferences/a' not found. -1 {"compilerOptions":{"composite":true,"baseUrl":"./","paths":{"@ref/*":["../*"]}},"files":["index.ts"],"references":[{"path":"../a"}]} -   ~~~~~~~~~~~~~~~ +15 { +   ~ +16 "path": "../a" +  ~~~~~~~~~~~~~~~~~~~~ +17 } +  ~~~~~ ../../../../a/lib/lib.d.ts Default library for target 'es5' @@ -1276,8 +1534,23 @@ c/index.ts -Program root files: ["/user/username/projects/transitiveReferences/c/index.ts"] -Program options: {"baseUrl":"/user/username/projects/transitiveReferences/c","paths":{"@ref/*":["../refs/*"]},"pathsBasePath":"/user/username/projects/transitiveReferences/c","watch":true,"project":"/user/username/projects/transitiveReferences/c","traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/transitiveReferences/c/tsconfig.json"} +Program root files: [ + "/user/username/projects/transitiveReferences/c/index.ts" +] +Program options: { + "baseUrl": "/user/username/projects/transitiveReferences/c", + "paths": { + "@ref/*": [ + "../refs/*" + ] + }, + "pathsBasePath": "/user/username/projects/transitiveReferences/c", + "watch": true, + "project": "/user/username/projects/transitiveReferences/c", + "traceResolution": true, + "explainFiles": true, + "configFilePath": "/user/username/projects/transitiveReferences/c/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -1362,7 +1635,14 @@ Change:: Revert deleting transitively referenced config file Input:: //// [/user/username/projects/transitiveReferences/a/tsconfig.json] -{"compilerOptions":{"composite":true},"files":["index.ts"]} +{ + "compilerOptions": { + "composite": true + }, + "files": [ + "index.ts" + ] +} Before running Timeout callback:: count: 2 @@ -1392,8 +1672,23 @@ c/index.ts -Program root files: ["/user/username/projects/transitiveReferences/c/index.ts"] -Program options: {"baseUrl":"/user/username/projects/transitiveReferences/c","paths":{"@ref/*":["../refs/*"]},"pathsBasePath":"/user/username/projects/transitiveReferences/c","watch":true,"project":"/user/username/projects/transitiveReferences/c","traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/transitiveReferences/c/tsconfig.json"} +Program root files: [ + "/user/username/projects/transitiveReferences/c/index.ts" +] +Program options: { + "baseUrl": "/user/username/projects/transitiveReferences/c", + "paths": { + "@ref/*": [ + "../refs/*" + ] + }, + "pathsBasePath": "/user/username/projects/transitiveReferences/c", + "watch": true, + "project": "/user/username/projects/transitiveReferences/c", + "traceResolution": true, + "explainFiles": true, + "configFilePath": "/user/username/projects/transitiveReferences/c/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/projectsWithReferences/on-transitive-references.js b/tests/baselines/reference/tscWatch/projectsWithReferences/on-transitive-references.js index c9610a43c6b5e..ab7d04b9ffc00 100644 --- a/tests/baselines/reference/tscWatch/projectsWithReferences/on-transitive-references.js +++ b/tests/baselines/reference/tscWatch/projectsWithReferences/on-transitive-references.js @@ -1,68 +1,91 @@ currentDirectory:: /user/username/projects/transitiveReferences useCaseSensitiveFileNames: false Input:: -//// [/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; } - -//// [/user/username/projects/transitiveReferences/tsconfig.a.json] -{"compilerOptions": {"composite": true}, "files": ["a.ts"]} - - -//// [/user/username/projects/transitiveReferences/tsconfig.b.json] -{ - "compilerOptions": { - "composite": true, - "baseUrl": "./", - "paths": { - "@ref/*": [ "./*" ] - } - }, - "files": [ "b.ts" ], - "references": [ { "path": "tsconfig.a.json" } ] -} - - -//// [/user/username/projects/transitiveReferences/tsconfig.c.json] -{ - "files": [ "c.ts" ], - "compilerOptions": { - "baseUrl": "./", - "paths": { - "@ref/*": [ "./refs/*" ] - } - }, - "references": [ { "path": "tsconfig.b.json" } ] -} +//// [/user/username/projects/transitiveReferences/refs/a.d.ts] +export class X {} +export class A {} //// [/user/username/projects/transitiveReferences/a.ts] -export class A {} +export class A {} //// [/user/username/projects/transitiveReferences/b.ts] -import {A} from '@ref/a'; -export const b = new A(); +import {A} from '@ref/a'; +export const b = new A(); //// [/user/username/projects/transitiveReferences/c.ts] -import {b} from './b'; -import {X} from "@ref/a"; -b; -X; +import {b} from './b'; +import {X} from "@ref/a"; +b; +X; -//// [/user/username/projects/transitiveReferences/refs/a.d.ts] -export class X {} -export class A {} +//// [/user/username/projects/transitiveReferences/tsconfig.a.json] +{ + "compilerOptions": { + "composite": true + }, + "files": [ + "a.ts" + ] +} + +//// [/user/username/projects/transitiveReferences/tsconfig.b.json] +{ + "compilerOptions": { + "composite": true, + "baseUrl": "./", + "paths": { + "@ref/*": [ + "./*" + ] + } + }, + "files": [ + "b.ts" + ], + "references": [ + { + "path": "tsconfig.a.json" + } + ] +} + +//// [/user/username/projects/transitiveReferences/tsconfig.c.json] +{ + "files": [ + "c.ts" + ], + "compilerOptions": { + "baseUrl": "./", + "paths": { + "@ref/*": [ + "./refs/*" + ] + } + }, + "references": [ + { + "path": "tsconfig.b.json" + } + ] +} + +//// [/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/transitiveReferences/a.js] "use strict"; @@ -82,7 +105,7 @@ export declare class A { //// [/user/username/projects/transitiveReferences/tsconfig.a.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},{"version":"-8566332115-export class A {}\r\n","signature":"-8728835846-export declare class A {\n}\n"}],"root":[2],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./a.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-7808316224-export class A {}\n","signature":"-8728835846-export declare class A {\n}\n"}],"root":[2],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./a.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/transitiveReferences/tsconfig.a.tsbuildinfo.readable.baseline.txt] { @@ -94,19 +117,19 @@ export declare class A { "fileInfos": { "../../../../a/lib/lib.d.ts": { "original": { - "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; }", + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true }, - "version": "-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; }", + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true }, "./a.ts": { "original": { - "version": "-8566332115-export class A {}\r\n", + "version": "-7808316224-export class A {}\n", "signature": "-8728835846-export declare class A {\n}\n" }, - "version": "-8566332115-export class A {}\r\n", + "version": "-7808316224-export class A {}\n", "signature": "-8728835846-export declare class A {\n}\n" } }, @@ -128,7 +151,7 @@ export declare class A { "latestChangedDtsFile": "./a.d.ts" }, "version": "FakeTSVersion", - "size": 760 + "size": 838 } //// [/user/username/projects/transitiveReferences/b.js] @@ -145,7 +168,7 @@ export declare const b: A; //// [/user/username/projects/transitiveReferences/tsconfig.b.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.d.ts","./b.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},"-8728835846-export declare class A {\n}\n",{"version":"-13104686224-import {A} from '@ref/a';\r\nexport const b = new A();\r\n","signature":"-9732944696-import { A } from '@ref/a';\nexport declare const b: A;\n"}],"root":[3],"options":{"composite":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./b.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.d.ts","./b.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-8728835846-export declare class A {\n}\n",{"version":"-3899816362-import {A} from '@ref/a';\nexport const b = new A();\n","signature":"-9732944696-import { A } from '@ref/a';\nexport declare const b: A;\n"}],"root":[3],"options":{"composite":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./b.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/transitiveReferences/tsconfig.b.tsbuildinfo.readable.baseline.txt] { @@ -163,11 +186,11 @@ export declare const b: A; "fileInfos": { "../../../../a/lib/lib.d.ts": { "original": { - "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; }", + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true }, - "version": "-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; }", + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true }, "./a.d.ts": { @@ -176,10 +199,10 @@ export declare const b: A; }, "./b.ts": { "original": { - "version": "-13104686224-import {A} from '@ref/a';\r\nexport const b = new A();\r\n", + "version": "-3899816362-import {A} from '@ref/a';\nexport const b = new A();\n", "signature": "-9732944696-import { A } from '@ref/a';\nexport declare const b: A;\n" }, - "version": "-13104686224-import {A} from '@ref/a';\r\nexport const b = new A();\r\n", + "version": "-3899816362-import {A} from '@ref/a';\nexport const b = new A();\n", "signature": "-9732944696-import { A } from '@ref/a';\nexport declare const b: A;\n" } }, @@ -210,7 +233,7 @@ export declare const b: A; "latestChangedDtsFile": "./b.d.ts" }, "version": "FakeTSVersion", - "size": 913 + "size": 988 } //// [/user/username/projects/transitiveReferences/c.js] @@ -264,8 +287,23 @@ c.ts -Program root files: ["/user/username/projects/transitiveReferences/c.ts"] -Program options: {"baseUrl":"/user/username/projects/transitiveReferences","paths":{"@ref/*":["./refs/*"]},"pathsBasePath":"/user/username/projects/transitiveReferences","watch":true,"project":"/user/username/projects/transitiveReferences/tsconfig.c.json","traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/transitiveReferences/tsconfig.c.json"} +Program root files: [ + "/user/username/projects/transitiveReferences/c.ts" +] +Program options: { + "baseUrl": "/user/username/projects/transitiveReferences", + "paths": { + "@ref/*": [ + "./refs/*" + ] + }, + "pathsBasePath": "/user/username/projects/transitiveReferences", + "watch": true, + "project": "/user/username/projects/transitiveReferences/tsconfig.c.json", + "traceResolution": true, + "explainFiles": true, + "configFilePath": "/user/username/projects/transitiveReferences/tsconfig.c.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -344,8 +382,8 @@ Change:: non local edit b ts, and build b Input:: //// [/user/username/projects/transitiveReferences/b.ts] -import {A} from '@ref/a'; -export const b = new A(); +import {A} from '@ref/a'; +export const b = new A(); export function gfoo() { } //// [/user/username/projects/transitiveReferences/b.js] @@ -365,7 +403,7 @@ export declare function gfoo(): void; //// [/user/username/projects/transitiveReferences/tsconfig.b.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.d.ts","./b.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},"-8728835846-export declare class A {\n}\n",{"version":"-23418138964-import {A} from '@ref/a';\r\nexport const b = new A();\r\nexport function gfoo() { }","signature":"4376023469-import { A } from '@ref/a';\nexport declare const b: A;\nexport declare function gfoo(): void;\n"}],"root":[3],"options":{"composite":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./b.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.d.ts","./b.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-8728835846-export declare class A {\n}\n",{"version":"-3352421102-import {A} from '@ref/a';\nexport const b = new A();\nexport function gfoo() { }","signature":"4376023469-import { A } from '@ref/a';\nexport declare const b: A;\nexport declare function gfoo(): void;\n"}],"root":[3],"options":{"composite":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./b.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/transitiveReferences/tsconfig.b.tsbuildinfo.readable.baseline.txt] { @@ -383,11 +421,11 @@ export declare function gfoo(): void; "fileInfos": { "../../../../a/lib/lib.d.ts": { "original": { - "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; }", + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true }, - "version": "-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; }", + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true }, "./a.d.ts": { @@ -396,10 +434,10 @@ export declare function gfoo(): void; }, "./b.ts": { "original": { - "version": "-23418138964-import {A} from '@ref/a';\r\nexport const b = new A();\r\nexport function gfoo() { }", + "version": "-3352421102-import {A} from '@ref/a';\nexport const b = new A();\nexport function gfoo() { }", "signature": "4376023469-import { A } from '@ref/a';\nexport declare const b: A;\nexport declare function gfoo(): void;\n" }, - "version": "-23418138964-import {A} from '@ref/a';\r\nexport const b = new A();\r\nexport function gfoo() { }", + "version": "-3352421102-import {A} from '@ref/a';\nexport const b = new A();\nexport function gfoo() { }", "signature": "4376023469-import { A } from '@ref/a';\nexport declare const b: A;\nexport declare function gfoo(): void;\n" } }, @@ -430,7 +468,7 @@ export declare function gfoo(): void; "latestChangedDtsFile": "./b.d.ts" }, "version": "FakeTSVersion", - "size": 977 + "size": 1052 } @@ -458,8 +496,23 @@ c.ts -Program root files: ["/user/username/projects/transitiveReferences/c.ts"] -Program options: {"baseUrl":"/user/username/projects/transitiveReferences","paths":{"@ref/*":["./refs/*"]},"pathsBasePath":"/user/username/projects/transitiveReferences","watch":true,"project":"/user/username/projects/transitiveReferences/tsconfig.c.json","traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/transitiveReferences/tsconfig.c.json"} +Program root files: [ + "/user/username/projects/transitiveReferences/c.ts" +] +Program options: { + "baseUrl": "/user/username/projects/transitiveReferences", + "paths": { + "@ref/*": [ + "./refs/*" + ] + }, + "pathsBasePath": "/user/username/projects/transitiveReferences", + "watch": true, + "project": "/user/username/projects/transitiveReferences/tsconfig.c.json", + "traceResolution": true, + "explainFiles": true, + "configFilePath": "/user/username/projects/transitiveReferences/tsconfig.c.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -504,11 +557,28 @@ Change:: edit on config file Input:: //// [/user/username/projects/transitiveReferences/tsconfig.c.json] -{"files":["c.ts"],"compilerOptions":{"baseUrl":"./","paths":{"@ref/*":["./nrefs/*"]}},"references":[{"path":"tsconfig.b.json"}]} +{ + "files": [ + "c.ts" + ], + "compilerOptions": { + "baseUrl": "./", + "paths": { + "@ref/*": [ + "./nrefs/*" + ] + } + }, + "references": [ + { + "path": "tsconfig.b.json" + } + ] +} //// [/user/username/projects/transitiveReferences/nrefs/a.d.ts] -export class X {} -export class A {} +export class X {} +export class A {} @@ -555,8 +625,23 @@ c.ts -Program root files: ["/user/username/projects/transitiveReferences/c.ts"] -Program options: {"baseUrl":"/user/username/projects/transitiveReferences","paths":{"@ref/*":["./nrefs/*"]},"pathsBasePath":"/user/username/projects/transitiveReferences","watch":true,"project":"/user/username/projects/transitiveReferences/tsconfig.c.json","traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/transitiveReferences/tsconfig.c.json"} +Program root files: [ + "/user/username/projects/transitiveReferences/c.ts" +] +Program options: { + "baseUrl": "/user/username/projects/transitiveReferences", + "paths": { + "@ref/*": [ + "./nrefs/*" + ] + }, + "pathsBasePath": "/user/username/projects/transitiveReferences", + "watch": true, + "project": "/user/username/projects/transitiveReferences/tsconfig.c.json", + "traceResolution": true, + "explainFiles": true, + "configFilePath": "/user/username/projects/transitiveReferences/tsconfig.c.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -637,7 +722,24 @@ Change:: Revert config file edit Input:: //// [/user/username/projects/transitiveReferences/tsconfig.c.json] -{"files":["c.ts"],"compilerOptions":{"baseUrl":"./","paths":{"@ref/*":["./refs/*"]}},"references":[{"path":"tsconfig.b.json"}]} +{ + "files": [ + "c.ts" + ], + "compilerOptions": { + "baseUrl": "./", + "paths": { + "@ref/*": [ + "./refs/*" + ] + } + }, + "references": [ + { + "path": "tsconfig.b.json" + } + ] +} Before running Timeout callback:: count: 1 @@ -683,8 +785,23 @@ c.ts -Program root files: ["/user/username/projects/transitiveReferences/c.ts"] -Program options: {"baseUrl":"/user/username/projects/transitiveReferences","paths":{"@ref/*":["./refs/*"]},"pathsBasePath":"/user/username/projects/transitiveReferences","watch":true,"project":"/user/username/projects/transitiveReferences/tsconfig.c.json","traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/transitiveReferences/tsconfig.c.json"} +Program root files: [ + "/user/username/projects/transitiveReferences/c.ts" +] +Program options: { + "baseUrl": "/user/username/projects/transitiveReferences", + "paths": { + "@ref/*": [ + "./refs/*" + ] + }, + "pathsBasePath": "/user/username/projects/transitiveReferences", + "watch": true, + "project": "/user/username/projects/transitiveReferences/tsconfig.c.json", + "traceResolution": true, + "explainFiles": true, + "configFilePath": "/user/username/projects/transitiveReferences/tsconfig.c.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -765,7 +882,25 @@ Change:: edit in referenced config file Input:: //// [/user/username/projects/transitiveReferences/tsconfig.b.json] -{"compilerOptions":{"composite":true,"baseUrl":"./","paths":{"@ref/*":["./nrefs/*"]}},"files":["b.ts"],"references":[{"path":"tsconfig.a.json"}]} +{ + "compilerOptions": { + "composite": true, + "baseUrl": "./", + "paths": { + "@ref/*": [ + "./nrefs/*" + ] + } + }, + "files": [ + "b.ts" + ], + "references": [ + { + "path": "tsconfig.a.json" + } + ] +} Before running Timeout callback:: count: 1 @@ -796,8 +931,23 @@ c.ts -Program root files: ["/user/username/projects/transitiveReferences/c.ts"] -Program options: {"baseUrl":"/user/username/projects/transitiveReferences","paths":{"@ref/*":["./refs/*"]},"pathsBasePath":"/user/username/projects/transitiveReferences","watch":true,"project":"/user/username/projects/transitiveReferences/tsconfig.c.json","traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/transitiveReferences/tsconfig.c.json"} +Program root files: [ + "/user/username/projects/transitiveReferences/c.ts" +] +Program options: { + "baseUrl": "/user/username/projects/transitiveReferences", + "paths": { + "@ref/*": [ + "./refs/*" + ] + }, + "pathsBasePath": "/user/username/projects/transitiveReferences", + "watch": true, + "project": "/user/username/projects/transitiveReferences/tsconfig.c.json", + "traceResolution": true, + "explainFiles": true, + "configFilePath": "/user/username/projects/transitiveReferences/tsconfig.c.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -875,7 +1025,25 @@ Change:: Revert referenced config file edit Input:: //// [/user/username/projects/transitiveReferences/tsconfig.b.json] -{"compilerOptions":{"composite":true,"baseUrl":"./","paths":{"@ref/*":["./refs/*"]}},"files":["b.ts"],"references":[{"path":"tsconfig.a.json"}]} +{ + "compilerOptions": { + "composite": true, + "baseUrl": "./", + "paths": { + "@ref/*": [ + "./refs/*" + ] + } + }, + "files": [ + "b.ts" + ], + "references": [ + { + "path": "tsconfig.a.json" + } + ] +} Before running Timeout callback:: count: 1 @@ -905,8 +1073,23 @@ c.ts -Program root files: ["/user/username/projects/transitiveReferences/c.ts"] -Program options: {"baseUrl":"/user/username/projects/transitiveReferences","paths":{"@ref/*":["./refs/*"]},"pathsBasePath":"/user/username/projects/transitiveReferences","watch":true,"project":"/user/username/projects/transitiveReferences/tsconfig.c.json","traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/transitiveReferences/tsconfig.c.json"} +Program root files: [ + "/user/username/projects/transitiveReferences/c.ts" +] +Program options: { + "baseUrl": "/user/username/projects/transitiveReferences", + "paths": { + "@ref/*": [ + "./refs/*" + ] + }, + "pathsBasePath": "/user/username/projects/transitiveReferences", + "watch": true, + "project": "/user/username/projects/transitiveReferences/tsconfig.c.json", + "traceResolution": true, + "explainFiles": true, + "configFilePath": "/user/username/projects/transitiveReferences/tsconfig.c.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -998,10 +1181,14 @@ File '/user/username/projects/transitiveReferences/refs/a.ts' does not exist. File '/user/username/projects/transitiveReferences/refs/a.tsx' does not exist. File '/user/username/projects/transitiveReferences/refs/a.d.ts' exists - use it as a name resolution result. ======== Module name '@ref/a' was successfully resolved to '/user/username/projects/transitiveReferences/refs/a.d.ts'. ======== -tsconfig.c.json:1:100 - error TS6053: File '/user/username/projects/transitiveReferences/tsconfig.b.json' not found. +tsconfig.c.json:14:5 - error TS6053: File '/user/username/projects/transitiveReferences/tsconfig.b.json' not found. -1 {"files":["c.ts"],"compilerOptions":{"baseUrl":"./","paths":{"@ref/*":["./refs/*"]}},"references":[{"path":"tsconfig.b.json"}]} -   ~~~~~~~~~~~~~~~~~~~~~~~~~~ +14 { +   ~ +15 "path": "tsconfig.b.json" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +16 } +  ~~~~~ ../../../../a/lib/lib.d.ts Default library for target 'es5' @@ -1016,8 +1203,23 @@ c.ts -Program root files: ["/user/username/projects/transitiveReferences/c.ts"] -Program options: {"baseUrl":"/user/username/projects/transitiveReferences","paths":{"@ref/*":["./refs/*"]},"pathsBasePath":"/user/username/projects/transitiveReferences","watch":true,"project":"/user/username/projects/transitiveReferences/tsconfig.c.json","traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/transitiveReferences/tsconfig.c.json"} +Program root files: [ + "/user/username/projects/transitiveReferences/c.ts" +] +Program options: { + "baseUrl": "/user/username/projects/transitiveReferences", + "paths": { + "@ref/*": [ + "./refs/*" + ] + }, + "pathsBasePath": "/user/username/projects/transitiveReferences", + "watch": true, + "project": "/user/username/projects/transitiveReferences/tsconfig.c.json", + "traceResolution": true, + "explainFiles": true, + "configFilePath": "/user/username/projects/transitiveReferences/tsconfig.c.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -1088,20 +1290,27 @@ Change:: Revert deleting referenced config file Input:: //// [/user/username/projects/transitiveReferences/tsconfig.b.json] -{ - "compilerOptions": { - "composite": true, - "baseUrl": "./", - "paths": { - "@ref/*": [ "./*" ] - } - }, - "files": [ "b.ts" ], - "references": [ { "path": "tsconfig.a.json" } ] +{ + "compilerOptions": { + "composite": true, + "baseUrl": "./", + "paths": { + "@ref/*": [ + "./*" + ] + } + }, + "files": [ + "b.ts" + ], + "references": [ + { + "path": "tsconfig.a.json" + } + ] } - Before running Timeout callback:: count: 1 7: timerToUpdateProgram After running Timeout callback:: count: 0 @@ -1131,8 +1340,23 @@ c.ts -Program root files: ["/user/username/projects/transitiveReferences/c.ts"] -Program options: {"baseUrl":"/user/username/projects/transitiveReferences","paths":{"@ref/*":["./refs/*"]},"pathsBasePath":"/user/username/projects/transitiveReferences","watch":true,"project":"/user/username/projects/transitiveReferences/tsconfig.c.json","traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/transitiveReferences/tsconfig.c.json"} +Program root files: [ + "/user/username/projects/transitiveReferences/c.ts" +] +Program options: { + "baseUrl": "/user/username/projects/transitiveReferences", + "paths": { + "@ref/*": [ + "./refs/*" + ] + }, + "pathsBasePath": "/user/username/projects/transitiveReferences", + "watch": true, + "project": "/user/username/projects/transitiveReferences/tsconfig.c.json", + "traceResolution": true, + "explainFiles": true, + "configFilePath": "/user/username/projects/transitiveReferences/tsconfig.c.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -1222,10 +1446,14 @@ Output:: Reusing resolution of module './b' from '/user/username/projects/transitiveReferences/c.ts' of old program, it was successfully resolved to '/user/username/projects/transitiveReferences/b.ts'. Reusing resolution of module '@ref/a' from '/user/username/projects/transitiveReferences/c.ts' of old program, it was successfully resolved to '/user/username/projects/transitiveReferences/refs/a.d.ts'. Reusing resolution of module '@ref/a' from '/user/username/projects/transitiveReferences/b.ts' of old program, it was successfully resolved to '/user/username/projects/transitiveReferences/a.ts'. -tsconfig.b.json:10:21 - error TS6053: File '/user/username/projects/transitiveReferences/tsconfig.a.json' not found. +tsconfig.b.json:15:5 - error TS6053: File '/user/username/projects/transitiveReferences/tsconfig.a.json' not found. -10 "references": [ { "path": "tsconfig.a.json" } ] -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +15 { +   ~ +16 "path": "tsconfig.a.json" +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +17 } +  ~~~~~ ../../../../a/lib/lib.d.ts Default library for target 'es5' @@ -1242,8 +1470,23 @@ c.ts -Program root files: ["/user/username/projects/transitiveReferences/c.ts"] -Program options: {"baseUrl":"/user/username/projects/transitiveReferences","paths":{"@ref/*":["./refs/*"]},"pathsBasePath":"/user/username/projects/transitiveReferences","watch":true,"project":"/user/username/projects/transitiveReferences/tsconfig.c.json","traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/transitiveReferences/tsconfig.c.json"} +Program root files: [ + "/user/username/projects/transitiveReferences/c.ts" +] +Program options: { + "baseUrl": "/user/username/projects/transitiveReferences", + "paths": { + "@ref/*": [ + "./refs/*" + ] + }, + "pathsBasePath": "/user/username/projects/transitiveReferences", + "watch": true, + "project": "/user/username/projects/transitiveReferences/tsconfig.c.json", + "traceResolution": true, + "explainFiles": true, + "configFilePath": "/user/username/projects/transitiveReferences/tsconfig.c.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -1320,8 +1563,14 @@ Change:: Revert deleting transitively referenced config file Input:: //// [/user/username/projects/transitiveReferences/tsconfig.a.json] -{"compilerOptions": {"composite": true}, "files": ["a.ts"]} - +{ + "compilerOptions": { + "composite": true + }, + "files": [ + "a.ts" + ] +} Before running Timeout callback:: count: 1 @@ -1350,8 +1599,23 @@ c.ts -Program root files: ["/user/username/projects/transitiveReferences/c.ts"] -Program options: {"baseUrl":"/user/username/projects/transitiveReferences","paths":{"@ref/*":["./refs/*"]},"pathsBasePath":"/user/username/projects/transitiveReferences","watch":true,"project":"/user/username/projects/transitiveReferences/tsconfig.c.json","traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/transitiveReferences/tsconfig.c.json"} +Program root files: [ + "/user/username/projects/transitiveReferences/c.ts" +] +Program options: { + "baseUrl": "/user/username/projects/transitiveReferences", + "paths": { + "@ref/*": [ + "./refs/*" + ] + }, + "pathsBasePath": "/user/username/projects/transitiveReferences", + "watch": true, + "project": "/user/username/projects/transitiveReferences/tsconfig.c.json", + "traceResolution": true, + "explainFiles": true, + "configFilePath": "/user/username/projects/transitiveReferences/tsconfig.c.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/projectsWithReferences/when-declarationMap-changes-for-dependency.js b/tests/baselines/reference/tscWatch/projectsWithReferences/when-declarationMap-changes-for-dependency.js index 164d7b2af9a09..9c342e1c88fa7 100644 --- a/tests/baselines/reference/tscWatch/projectsWithReferences/when-declarationMap-changes-for-dependency.js +++ b/tests/baselines/reference/tscWatch/projectsWithReferences/when-declarationMap-changes-for-dependency.js @@ -14,51 +14,82 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/sample1/core/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - } +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + } } //// [/user/username/projects/sample1/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } - - -//// [/user/username/projects/sample1/core/anotherModule.ts] -export const World = "hello"; +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } //// [/user/username/projects/sample1/core/some_decl.d.ts] declare const dts: any; +//// [/user/username/projects/sample1/core/anotherModule.ts] +export const World = "hello"; //// [/user/username/projects/sample1/logic/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../core" } - ] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + }, + "references": [ + { + "path": "../core" + } + ] } - //// [/user/username/projects/sample1/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; + + +//// [/user/username/projects/sample1/tests/tsconfig.json] +{ + "references": [ + { + "path": "../core" + }, + { + "path": "../logic" + } + ], + "files": [ + "index.ts" + ], + "compilerOptions": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + } } -import * as mod from '../core/anotherModule'; -export const m = mod; + +//// [/user/username/projects/sample1/tests/index.ts] +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; //// [/user/username/projects/sample1/core/anotherModule.js] @@ -96,7 +127,7 @@ export declare function multiply(a: number, b: number): number; //# sourceMappingURL=index.d.ts.map //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\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"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -119,27 +150,27 @@ export declare function multiply(a: number, b: number): number; }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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" }, - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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" }, "./some_decl.d.ts": { "original": { - "version": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", "affectsGlobalScope": true }, - "version": "-9253692965-declare const dts: any;\r\n", - "signature": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", "affectsGlobalScope": true } }, @@ -173,14 +204,14 @@ export declare function multiply(a: number, b: number): number; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1408 + "size": 1394 } /a/lib/tsc.js -w -p logic --traceResolution --explainFiles Output:: >> Screen clear -[12:00:50 AM] Starting compilation in watch mode... +[12:00:56 AM] Starting compilation in watch mode... ======== Resolving module '../core/index' from '/user/username/projects/sample1/logic/index.ts'. ======== Module resolution kind is not specified, using 'Node10'. @@ -202,12 +233,25 @@ core/anotherModule.d.ts File is output of project reference source 'core/anotherModule.ts' logic/index.ts Matched by default include pattern '**/*' -[12:00:59 AM] Found 0 errors. Watching for file changes. +[12:01:05 AM] Found 0 errors. Watching for file changes. -Program root files: ["/user/username/projects/sample1/logic/index.ts"] -Program options: {"composite":true,"declaration":true,"sourceMap":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"watch":true,"project":"/user/username/projects/sample1/logic","traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/sample1/logic/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/logic/index.ts" +] +Program options: { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "watch": true, + "project": "/user/username/projects/sample1/logic", + "traceResolution": true, + "explainFiles": true, + "configFilePath": "/user/username/projects/sample1/logic/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -295,7 +339,7 @@ export declare const m: typeof mod; //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},"-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","-9234818176-export declare const World = \"hello\";\n",{"version":"-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n","signature":"-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n"}],"root":[4],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3],[3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,2]],"semanticDiagnosticsPerFile":[1,3,2,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/logic/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -335,10 +379,10 @@ export declare const m: typeof mod; }, "./index.ts": { "original": { - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "version": "-9623801128-import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" } }, @@ -374,7 +418,7 @@ export declare const m: typeof mod; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1443 + "size": 1431 } @@ -382,13 +426,13 @@ Change:: change declration map in core Input:: //// [/user/username/projects/sample1/core/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": false, - "skipDefaultLibCheck": true - } +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": false, + "skipDefaultLibCheck": true + } } //// [/user/username/projects/sample1/core/anotherModule.d.ts] @@ -402,7 +446,7 @@ export declare function multiply(a: number, b: number): number; //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},{"version":"-2676574883-export const World = \"hello\";\r\n","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\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"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":false,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},{"version":"-3090574810-export const World = \"hello\";","signature":"-9234818176-export declare const World = \"hello\";\n"},{"version":"-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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"},{"version":"-7959511260-declare const dts: any;","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true,"declaration":true,"declarationMap":false,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -425,27 +469,27 @@ export declare function multiply(a: number, b: number): number; }, "./anothermodule.ts": { "original": { - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "version": "-2676574883-export const World = \"hello\";\r\n", + "version": "-3090574810-export const World = \"hello\";", "signature": "-9234818176-export declare const World = \"hello\";\n" }, "./index.ts": { "original": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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" }, - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "version": "-15745098553-export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\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" }, "./some_decl.d.ts": { "original": { - "version": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", "affectsGlobalScope": true }, - "version": "-9253692965-declare const dts: any;\r\n", - "signature": "-9253692965-declare const dts: any;\r\n", + "version": "-7959511260-declare const dts: any;", + "signature": "-7959511260-declare const dts: any;", "affectsGlobalScope": true } }, @@ -479,7 +523,7 @@ export declare function multiply(a: number, b: number): number; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1409 + "size": 1395 } @@ -488,7 +532,7 @@ Before running Timeout callback:: count: 1 After running Timeout callback:: count: 0 Output:: >> Screen clear -[12:01:18 AM] File change detected. Starting incremental compilation... +[12:01:24 AM] File change detected. Starting incremental compilation... Reusing resolution of module '../core/index' from '/user/username/projects/sample1/logic/index.ts' of old program, it was successfully resolved to '/user/username/projects/sample1/core/index.ts'. Reusing resolution of module '../core/anotherModule' from '/user/username/projects/sample1/logic/index.ts' of old program, it was successfully resolved to '/user/username/projects/sample1/core/anotherModule.ts'. @@ -502,12 +546,25 @@ core/anotherModule.d.ts File is output of project reference source 'core/anotherModule.ts' logic/index.ts Matched by default include pattern '**/*' -[12:01:19 AM] Found 0 errors. Watching for file changes. +[12:01:25 AM] Found 0 errors. Watching for file changes. -Program root files: ["/user/username/projects/sample1/logic/index.ts"] -Program options: {"composite":true,"declaration":true,"sourceMap":true,"forceConsistentCasingInFileNames":true,"skipDefaultLibCheck":true,"watch":true,"project":"/user/username/projects/sample1/logic","traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/sample1/logic/tsconfig.json"} +Program root files: [ + "/user/username/projects/sample1/logic/index.ts" +] +Program options: { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "watch": true, + "project": "/user/username/projects/sample1/logic", + "traceResolution": true, + "explainFiles": true, + "configFilePath": "/user/username/projects/sample1/logic/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/projectsWithReferences/when-referenced-project-uses-different-module-resolution.js b/tests/baselines/reference/tscWatch/projectsWithReferences/when-referenced-project-uses-different-module-resolution.js index 432c5c57494a5..3243c4a08f450 100644 --- a/tests/baselines/reference/tscWatch/projectsWithReferences/when-referenced-project-uses-different-module-resolution.js +++ b/tests/baselines/reference/tscWatch/projectsWithReferences/when-referenced-project-uses-different-module-resolution.js @@ -1,55 +1,84 @@ currentDirectory:: /user/username/projects/transitiveReferences useCaseSensitiveFileNames: false Input:: -//// [/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; } - -//// [/user/username/projects/transitiveReferences/tsconfig.a.json] -{"compilerOptions": {"composite": true}, "files": ["a.ts"]} - - -//// [/user/username/projects/transitiveReferences/tsconfig.b.json] -{"compilerOptions":{"composite":true,"moduleResolution":"classic"},"files":["b.ts"],"references":[{"path":"tsconfig.a.json"}]} - -//// [/user/username/projects/transitiveReferences/tsconfig.c.json] -{ - "files": [ "c.ts" ], - "compilerOptions": { - "baseUrl": "./", - "paths": { - "@ref/*": [ "./refs/*" ] - } - }, - "references": [ { "path": "tsconfig.b.json" } ] -} +//// [/user/username/projects/transitiveReferences/refs/a.d.ts] +export class X {} +export class A {} //// [/user/username/projects/transitiveReferences/a.ts] -export class A {} +export class A {} //// [/user/username/projects/transitiveReferences/b.ts] import {A} from "a";export const b = new A(); //// [/user/username/projects/transitiveReferences/c.ts] -import {b} from './b'; -import {X} from "@ref/a"; -b; -X; +import {b} from './b'; +import {X} from "@ref/a"; +b; +X; -//// [/user/username/projects/transitiveReferences/refs/a.d.ts] -export class X {} -export class A {} +//// [/user/username/projects/transitiveReferences/tsconfig.a.json] +{ + "compilerOptions": { + "composite": true + }, + "files": [ + "a.ts" + ] +} + +//// [/user/username/projects/transitiveReferences/tsconfig.b.json] +{ + "compilerOptions": { + "composite": true, + "moduleResolution": "classic" + }, + "files": [ + "b.ts" + ], + "references": [ + { + "path": "tsconfig.a.json" + } + ] +} + +//// [/user/username/projects/transitiveReferences/tsconfig.c.json] +{ + "files": [ + "c.ts" + ], + "compilerOptions": { + "baseUrl": "./", + "paths": { + "@ref/*": [ + "./refs/*" + ] + } + }, + "references": [ + { + "path": "tsconfig.b.json" + } + ] +} + +//// [/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/transitiveReferences/a.js] "use strict"; @@ -69,7 +98,7 @@ export declare class A { //// [/user/username/projects/transitiveReferences/tsconfig.a.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},{"version":"-8566332115-export class A {}\r\n","signature":"-8728835846-export declare class A {\n}\n"}],"root":[2],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./a.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-7808316224-export class A {}\n","signature":"-8728835846-export declare class A {\n}\n"}],"root":[2],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./a.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/transitiveReferences/tsconfig.a.tsbuildinfo.readable.baseline.txt] { @@ -81,19 +110,19 @@ export declare class A { "fileInfos": { "../../../../a/lib/lib.d.ts": { "original": { - "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; }", + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true }, - "version": "-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; }", + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true }, "./a.ts": { "original": { - "version": "-8566332115-export class A {}\r\n", + "version": "-7808316224-export class A {}\n", "signature": "-8728835846-export declare class A {\n}\n" }, - "version": "-8566332115-export class A {}\r\n", + "version": "-7808316224-export class A {}\n", "signature": "-8728835846-export declare class A {\n}\n" } }, @@ -115,7 +144,7 @@ export declare class A { "latestChangedDtsFile": "./a.d.ts" }, "version": "FakeTSVersion", - "size": 760 + "size": 838 } //// [/user/username/projects/transitiveReferences/b.js] @@ -132,7 +161,7 @@ export declare const b: A; //// [/user/username/projects/transitiveReferences/tsconfig.b.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.d.ts","./b.ts"],"fileInfos":[{"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; }","affectsGlobalScope":true},"-8728835846-export declare class A {\n}\n",{"version":"-19869990292-import {A} from \"a\";export const b = new A();","signature":"1870369234-import { A } from \"a\";\nexport declare const b: A;\n"}],"root":[3],"options":{"composite":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./b.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.d.ts","./b.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-8728835846-export declare class A {\n}\n",{"version":"-19869990292-import {A} from \"a\";export const b = new A();","signature":"1870369234-import { A } from \"a\";\nexport declare const b: A;\n"}],"root":[3],"options":{"composite":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3],"latestChangedDtsFile":"./b.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/transitiveReferences/tsconfig.b.tsbuildinfo.readable.baseline.txt] { @@ -150,11 +179,11 @@ export declare const b: A; "fileInfos": { "../../../../a/lib/lib.d.ts": { "original": { - "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; }", + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true }, - "version": "-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; }", + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true }, "./a.d.ts": { @@ -197,7 +226,7 @@ export declare const b: A; "latestChangedDtsFile": "./b.d.ts" }, "version": "FakeTSVersion", - "size": 898 + "size": 978 } //// [/user/username/projects/transitiveReferences/c.js] @@ -251,8 +280,23 @@ c.ts -Program root files: ["/user/username/projects/transitiveReferences/c.ts"] -Program options: {"baseUrl":"/user/username/projects/transitiveReferences","paths":{"@ref/*":["./refs/*"]},"pathsBasePath":"/user/username/projects/transitiveReferences","watch":true,"project":"/user/username/projects/transitiveReferences/tsconfig.c.json","traceResolution":true,"explainFiles":true,"configFilePath":"/user/username/projects/transitiveReferences/tsconfig.c.json"} +Program root files: [ + "/user/username/projects/transitiveReferences/c.ts" +] +Program options: { + "baseUrl": "/user/username/projects/transitiveReferences", + "paths": { + "@ref/*": [ + "./refs/*" + ] + }, + "pathsBasePath": "/user/username/projects/transitiveReferences", + "watch": true, + "project": "/user/username/projects/transitiveReferences/tsconfig.c.json", + "traceResolution": true, + "explainFiles": true, + "configFilePath": "/user/username/projects/transitiveReferences/tsconfig.c.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/resolutionCache/caching-works.js b/tests/baselines/reference/tscWatch/resolutionCache/caching-works.js index ef709aace2928..201dcfbd186b0 100644 --- a/tests/baselines/reference/tscWatch/resolutionCache/caching-works.js +++ b/tests/baselines/reference/tscWatch/resolutionCache/caching-works.js @@ -39,8 +39,12 @@ Output:: -Program root files: ["/users/username/projects/project/d/f0.ts"] -Program options: {"module":2} +Program root files: [ + "/users/username/projects/project/d/f0.ts" +] +Program options: { + "module": 2 +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -117,8 +121,12 @@ Output:: -Program root files: ["/users/username/projects/project/d/f0.ts"] -Program options: {"module":2} +Program root files: [ + "/users/username/projects/project/d/f0.ts" +] +Program options: { + "module": 2 +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -165,8 +173,12 @@ Output:: -Program root files: ["/users/username/projects/project/d/f0.ts"] -Program options: {"module":2} +Program root files: [ + "/users/username/projects/project/d/f0.ts" +] +Program options: { + "module": 2 +} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts @@ -230,8 +242,12 @@ Output:: -Program root files: ["/users/username/projects/project/d/f0.ts"] -Program options: {"module":2} +Program root files: [ + "/users/username/projects/project/d/f0.ts" +] +Program options: { + "module": 2 +} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/resolutionCache/ignores-changes-in-node_modules-that-start-with-dot/watch-with-configFile.js b/tests/baselines/reference/tscWatch/resolutionCache/ignores-changes-in-node_modules-that-start-with-dot/watch-with-configFile.js index 17a14a33c9388..458b0f47a081c 100644 --- a/tests/baselines/reference/tscWatch/resolutionCache/ignores-changes-in-node_modules-that-start-with-dot/watch-with-configFile.js +++ b/tests/baselines/reference/tscWatch/resolutionCache/ignores-changes-in-node_modules-that-start-with-dot/watch-with-configFile.js @@ -32,8 +32,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/test.ts"] -Program options: {"watch":true,"project":"/user/username/projects/myproject/tsconfig.json","configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/test.ts" +] +Program options: { + "watch": true, + "project": "/user/username/projects/myproject/tsconfig.json", + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -84,7 +90,9 @@ Change:: npm install file and folder that start with '.' Input:: //// [/user/username/projects/myproject/node_modules/.cache/babel-loader/89c02171edab901b9926470ba6d5677e.ts] -{"something":10} +{ + "something": 10 +} Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tscWatch/resolutionCache/ignores-changes-in-node_modules-that-start-with-dot/watch-without-configFile.js b/tests/baselines/reference/tscWatch/resolutionCache/ignores-changes-in-node_modules-that-start-with-dot/watch-without-configFile.js index f4dd8a9afd985..702937d340f05 100644 --- a/tests/baselines/reference/tscWatch/resolutionCache/ignores-changes-in-node_modules-that-start-with-dot/watch-without-configFile.js +++ b/tests/baselines/reference/tscWatch/resolutionCache/ignores-changes-in-node_modules-that-start-with-dot/watch-without-configFile.js @@ -32,8 +32,12 @@ Output:: -Program root files: ["/user/username/projects/myproject/test.ts"] -Program options: {"watch":true} +Program root files: [ + "/user/username/projects/myproject/test.ts" +] +Program options: { + "watch": true +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -74,7 +78,9 @@ Change:: npm install file and folder that start with '.' Input:: //// [/user/username/projects/myproject/node_modules/.cache/babel-loader/89c02171edab901b9926470ba6d5677e.ts] -{"something":10} +{ + "something": 10 +} Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tscWatch/resolutionCache/loads-missing-files-from-disk.js b/tests/baselines/reference/tscWatch/resolutionCache/loads-missing-files-from-disk.js index 8ecad23c1ff6e..a31d592d6506a 100644 --- a/tests/baselines/reference/tscWatch/resolutionCache/loads-missing-files-from-disk.js +++ b/tests/baselines/reference/tscWatch/resolutionCache/loads-missing-files-from-disk.js @@ -31,8 +31,12 @@ Output:: -Program root files: ["/users/username/projects/project/foo.ts"] -Program options: {"module":2} +Program root files: [ + "/users/username/projects/project/foo.ts" +] +Program options: { + "module": 2 +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -88,8 +92,12 @@ Output:: -Program root files: ["/users/username/projects/project/foo.ts"] -Program options: {"module":2} +Program root files: [ + "/users/username/projects/project/foo.ts" +] +Program options: { + "module": 2 +} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/resolutionCache/reusing-type-ref-resolution.js b/tests/baselines/reference/tscWatch/resolutionCache/reusing-type-ref-resolution.js index d6286a192a329..6ee98811c611f 100644 --- a/tests/baselines/reference/tscWatch/resolutionCache/reusing-type-ref-resolution.js +++ b/tests/baselines/reference/tscWatch/resolutionCache/reusing-type-ref-resolution.js @@ -1,7 +1,13 @@ currentDirectory:: /users/username/projects/project useCaseSensitiveFileNames: false Input:: //// [/users/username/projects/project/tsconfig.json] -{"compilerOptions":{"composite":true,"traceResolution":true,"outDir":"outDir"}} +{ + "compilerOptions": { + "composite": true, + "traceResolution": true, + "outDir": "outDir" + } +} //// [/users/username/projects/project/fileWithImports.ts] import type { Import0 } from "pkg0"; @@ -153,8 +159,19 @@ DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project 1 undefin Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project 1 undefined Wild card directory -Program root files: ["/users/username/projects/project/fileWithImports.ts","/users/username/projects/project/fileWithTypeRefs.ts"] -Program options: {"composite":true,"traceResolution":true,"outDir":"/users/username/projects/project/outDir","watch":true,"explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/fileWithImports.ts", + "/users/username/projects/project/fileWithTypeRefs.ts" +] +Program options: { + "composite": true, + "traceResolution": true, + "outDir": "/users/username/projects/project/outDir", + "watch": true, + "explainFiles": true, + "extendedDiagnostics": true, + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -428,8 +445,19 @@ fileWithTypeRefs.ts -Program root files: ["/users/username/projects/project/fileWithImports.ts","/users/username/projects/project/fileWithTypeRefs.ts"] -Program options: {"composite":true,"traceResolution":true,"outDir":"/users/username/projects/project/outDir","watch":true,"explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/fileWithImports.ts", + "/users/username/projects/project/fileWithTypeRefs.ts" +] +Program options: { + "composite": true, + "traceResolution": true, + "outDir": "/users/username/projects/project/outDir", + "watch": true, + "explainFiles": true, + "extendedDiagnostics": true, + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts @@ -675,8 +703,19 @@ fileWithTypeRefs.ts -Program root files: ["/users/username/projects/project/fileWithImports.ts","/users/username/projects/project/fileWithTypeRefs.ts"] -Program options: {"composite":true,"traceResolution":true,"outDir":"/users/username/projects/project/outDir","watch":true,"explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/users/username/projects/project/tsconfig.json"} +Program root files: [ + "/users/username/projects/project/fileWithImports.ts", + "/users/username/projects/project/fileWithTypeRefs.ts" +] +Program options: { + "composite": true, + "traceResolution": true, + "outDir": "/users/username/projects/project/outDir", + "watch": true, + "explainFiles": true, + "extendedDiagnostics": true, + "configFilePath": "/users/username/projects/project/tsconfig.json" +} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/resolutionCache/scoped-package-installation.js b/tests/baselines/reference/tscWatch/resolutionCache/scoped-package-installation.js index b1af0604e5253..bd87707881642 100644 --- a/tests/baselines/reference/tscWatch/resolutionCache/scoped-package-installation.js +++ b/tests/baselines/reference/tscWatch/resolutionCache/scoped-package-installation.js @@ -84,8 +84,16 @@ DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject 1 undefi Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject 1 undefined Wild card directory -Program root files: ["/user/username/projects/myproject/lib/app.ts"] -Program options: {"watch":true,"project":"/user/username/projects/myproject","traceResolution":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/lib/app.ts" +] +Program options: { + "watch": true, + "project": "/user/username/projects/myproject", + "traceResolution": true, + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -240,8 +248,16 @@ Directory '/node_modules' does not exist, skipping all lookups in it. -Program root files: ["/user/username/projects/myproject/lib/app.ts"] -Program options: {"watch":true,"project":"/user/username/projects/myproject","traceResolution":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/lib/app.ts" +] +Program options: { + "watch": true, + "project": "/user/username/projects/myproject", + "traceResolution": true, + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts @@ -334,8 +350,16 @@ Directory '/node_modules' does not exist, skipping all lookups in it. -Program root files: ["/user/username/projects/myproject/lib/app.ts"] -Program options: {"watch":true,"project":"/user/username/projects/myproject","traceResolution":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/lib/app.ts" +] +Program options: { + "watch": true, + "project": "/user/username/projects/myproject", + "traceResolution": true, + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts @@ -439,8 +463,16 @@ Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/node -Program root files: ["/user/username/projects/myproject/lib/app.ts"] -Program options: {"watch":true,"project":"/user/username/projects/myproject","traceResolution":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/lib/app.ts" +] +Program options: { + "watch": true, + "project": "/user/username/projects/myproject", + "traceResolution": true, + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/resolutionCache/should-compile-correctly-when-resolved-module-goes-missing-and-then-comes-back.js b/tests/baselines/reference/tscWatch/resolutionCache/should-compile-correctly-when-resolved-module-goes-missing-and-then-comes-back.js index 21bb82a2ff319..a5c1009a86f1c 100644 --- a/tests/baselines/reference/tscWatch/resolutionCache/should-compile-correctly-when-resolved-module-goes-missing-and-then-comes-back.js +++ b/tests/baselines/reference/tscWatch/resolutionCache/should-compile-correctly-when-resolved-module-goes-missing-and-then-comes-back.js @@ -29,8 +29,12 @@ Output:: -Program root files: ["/users/username/projects/project/foo.ts"] -Program options: {"module":2} +Program root files: [ + "/users/username/projects/project/foo.ts" +] +Program options: { + "module": 2 +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -91,8 +95,12 @@ Output:: -Program root files: ["/users/username/projects/project/foo.ts"] -Program options: {"module":2} +Program root files: [ + "/users/username/projects/project/foo.ts" +] +Program options: { + "module": 2 +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -144,8 +152,12 @@ Output:: -Program root files: ["/users/username/projects/project/foo.ts"] -Program options: {"module":2} +Program root files: [ + "/users/username/projects/project/foo.ts" +] +Program options: { + "module": 2 +} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/resolutionCache/when-types-in-compiler-option-are-global-and-installed-at-later-point.js b/tests/baselines/reference/tscWatch/resolutionCache/when-types-in-compiler-option-are-global-and-installed-at-later-point.js index 13bc449dda755..0d2abbff020b1 100644 --- a/tests/baselines/reference/tscWatch/resolutionCache/when-types-in-compiler-option-are-global-and-installed-at-later-point.js +++ b/tests/baselines/reference/tscWatch/resolutionCache/when-types-in-compiler-option-are-global-and-installed-at-later-point.js @@ -4,7 +4,14 @@ Input:: myapp.component("hello"); //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"module":"none","types":["@myapp/ts-types"]}} +{ + "compilerOptions": { + "module": "none", + "types": [ + "@myapp/ts-types" + ] + } +} //// [/a/lib/lib.d.ts] /// @@ -29,17 +36,27 @@ Output:: The file is in the program because: Entry point of type library '@myapp/ts-types' specified in compilerOptions - user/username/projects/myproject/tsconfig.json:1:46 - 1 {"compilerOptions":{"module":"none","types":["@myapp/ts-types"]}} -    ~~~~~~~~~~~~~~~~~ + user/username/projects/myproject/tsconfig.json:5:7 + 5 "@myapp/ts-types" +    ~~~~~~~~~~~~~~~~~ File is entry point of type library specified here. [12:00:26 AM] Found 1 error. Watching for file changes. -Program root files: ["/user/username/projects/myproject/lib/app.ts"] -Program options: {"module":0,"types":["@myapp/ts-types"],"watch":true,"project":"/user/username/projects/myproject/tsconfig.json","configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/lib/app.ts" +] +Program options: { + "module": 0, + "types": [ + "@myapp/ts-types" + ], + "watch": true, + "project": "/user/username/projects/myproject/tsconfig.json", + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -80,7 +97,10 @@ Change:: npm install ts-types Input:: //// [/user/username/projects/myproject/node_modules/@myapp/ts-types/package.json] -{"version":"1.65.1","types":"types/somefile.define.d.ts"} +{ + "version": "1.65.1", + "types": "types/somefile.define.d.ts" +} //// [/user/username/projects/myproject/node_modules/@myapp/ts-types/types/somefile.define.d.ts] @@ -129,8 +149,18 @@ sysLog:: /user/username/projects/myproject/node_modules:: Changing watcher to Pr -Program root files: ["/user/username/projects/myproject/lib/app.ts"] -Program options: {"module":0,"types":["@myapp/ts-types"],"watch":true,"project":"/user/username/projects/myproject/tsconfig.json","configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/lib/app.ts" +] +Program options: { + "module": 0, + "types": [ + "@myapp/ts-types" + ], + "watch": true, + "project": "/user/username/projects/myproject/tsconfig.json", + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/resolutionCache/with-modules-linked-to-sibling-folder.js b/tests/baselines/reference/tscWatch/resolutionCache/with-modules-linked-to-sibling-folder.js index 620e7fcba37d9..91956774c5808 100644 --- a/tests/baselines/reference/tscWatch/resolutionCache/with-modules-linked-to-sibling-folder.js +++ b/tests/baselines/reference/tscWatch/resolutionCache/with-modules-linked-to-sibling-folder.js @@ -17,11 +17,26 @@ interface Array { length: number; [n: number]: T; } import { Foo } from '@scoped/linked-package' //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"module":"commonjs","moduleResolution":"node","baseUrl":".","rootDir":"."},"files":["index.ts"]} +{ + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "baseUrl": ".", + "rootDir": "." + }, + "files": [ + "index.ts" + ] +} //// [/user/username/projects/myproject/main/node_modules/@scoped/linked-package] symlink(/user/username/projects/myproject/linked-package) //// [/user/username/projects/myproject/linked-package/package.json] -{"name":"@scoped/linked-package","version":"0.0.1","types":"dist/index.d.ts","main":"dist/index.js"} +{ + "name": "@scoped/linked-package", + "version": "0.0.1", + "types": "dist/index.d.ts", + "main": "dist/index.js" +} //// [/user/username/projects/myproject/linked-package/dist/index.d.ts] export * from './other'; @@ -39,8 +54,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/main/index.ts"] -Program options: {"module":1,"moduleResolution":2,"baseUrl":"/user/username/projects/myproject/main","rootDir":"/user/username/projects/myproject/main","watch":true,"configFilePath":"/user/username/projects/myproject/main/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/main/index.ts" +] +Program options: { + "module": 1, + "moduleResolution": 2, + "baseUrl": "/user/username/projects/myproject/main", + "rootDir": "/user/username/projects/myproject/main", + "watch": true, + "configFilePath": "/user/username/projects/myproject/main/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/resolutionCache/works-when-included-file-with-ambient-module-changes.js b/tests/baselines/reference/tscWatch/resolutionCache/works-when-included-file-with-ambient-module-changes.js index 54b7a129934f0..da874fe061311 100644 --- a/tests/baselines/reference/tscWatch/resolutionCache/works-when-included-file-with-ambient-module-changes.js +++ b/tests/baselines/reference/tscWatch/resolutionCache/works-when-included-file-with-ambient-module-changes.js @@ -43,8 +43,13 @@ Output:: -Program root files: ["/users/username/projects/project/foo.ts","/users/username/projects/project/bar.d.ts"] -Program options: {"watch":true} +Program root files: [ + "/users/username/projects/project/foo.ts", + "/users/username/projects/project/bar.d.ts" +] +Program options: { + "watch": true +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -117,8 +122,13 @@ Output:: -Program root files: ["/users/username/projects/project/foo.ts","/users/username/projects/project/bar.d.ts"] -Program options: {"watch":true} +Program root files: [ + "/users/username/projects/project/foo.ts", + "/users/username/projects/project/bar.d.ts" +] +Program options: { + "watch": true +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/resolutionCache/works-when-installing-something-in-node_modules-or-@types-when-there-is-no-notification-from-fs-for-index-file.js b/tests/baselines/reference/tscWatch/resolutionCache/works-when-installing-something-in-node_modules-or-@types-when-there-is-no-notification-from-fs-for-index-file.js index d3930c936fd9e..98e845ef15cc9 100644 --- a/tests/baselines/reference/tscWatch/resolutionCache/works-when-installing-something-in-node_modules-or-@types-when-there-is-no-notification-from-fs-for-index-file.js +++ b/tests/baselines/reference/tscWatch/resolutionCache/works-when-installing-something-in-node_modules-or-@types-when-there-is-no-notification-from-fs-for-index-file.js @@ -66,8 +66,14 @@ DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject 1 undefi Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject 1 undefined Wild card directory -Program root files: ["/user/username/projects/myproject/worker.ts"] -Program options: {"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/worker.ts" +] +Program options: { + "watch": true, + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -243,8 +249,14 @@ FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/ -Program root files: ["/user/username/projects/myproject/worker.ts"] -Program options: {"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/worker.ts" +] +Program options: { + "watch": true, + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -350,8 +362,14 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/ -Program root files: ["/user/username/projects/myproject/worker.ts"] -Program options: {"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/worker.ts" +] +Program options: { + "watch": true, + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts @@ -425,8 +443,14 @@ Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node -Program root files: ["/user/username/projects/myproject/worker.ts"] -Program options: {"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/worker.ts" +] +Program options: { + "watch": true, + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts @@ -530,8 +554,14 @@ Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/node -Program root files: ["/user/username/projects/myproject/worker.ts"] -Program options: {"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/worker.ts" +] +Program options: { + "watch": true, + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/resolutionCache/works-when-module-resolution-changes-to-ambient-module.js b/tests/baselines/reference/tscWatch/resolutionCache/works-when-module-resolution-changes-to-ambient-module.js index 25b4f698510e2..70c398399f74b 100644 --- a/tests/baselines/reference/tscWatch/resolutionCache/works-when-module-resolution-changes-to-ambient-module.js +++ b/tests/baselines/reference/tscWatch/resolutionCache/works-when-module-resolution-changes-to-ambient-module.js @@ -31,8 +31,12 @@ Output:: -Program root files: ["/users/username/projects/project/foo.ts"] -Program options: {"watch":true} +Program root files: [ + "/users/username/projects/project/foo.ts" +] +Program options: { + "watch": true +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -128,8 +132,12 @@ sysLog:: /users/username/projects/project/node_modules/@types:: Changing watcher -Program root files: ["/users/username/projects/project/foo.ts"] -Program options: {"watch":true} +Program root files: [ + "/users/username/projects/project/foo.ts" +] +Program options: { + "watch": true +} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/resolutionCache/works-when-renaming-node_modules-folder-that-already-contains-@types-folder.js b/tests/baselines/reference/tscWatch/resolutionCache/works-when-renaming-node_modules-folder-that-already-contains-@types-folder.js index afa65bed75bed..25f3a369cf51c 100644 --- a/tests/baselines/reference/tscWatch/resolutionCache/works-when-renaming-node_modules-folder-that-already-contains-@types-folder.js +++ b/tests/baselines/reference/tscWatch/resolutionCache/works-when-renaming-node_modules-folder-that-already-contains-@types-folder.js @@ -34,8 +34,12 @@ Output:: -Program root files: ["/user/username/projects/myproject/a.ts"] -Program options: {"watch":true} +Program root files: [ + "/user/username/projects/myproject/a.ts" +] +Program options: { + "watch": true +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -120,8 +124,12 @@ sysLog:: /user/username/projects/myproject/node_modules/@types:: Changing watche -Program root files: ["/user/username/projects/myproject/a.ts"] -Program options: {"watch":true} +Program root files: [ + "/user/username/projects/myproject/a.ts" +] +Program options: { + "watch": true +} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/resolutionCache/works-when-reusing-program-with-files-from-external-library.js b/tests/baselines/reference/tscWatch/resolutionCache/works-when-reusing-program-with-files-from-external-library.js index 9165d5deb190e..24f4ec3ffe54c 100644 --- a/tests/baselines/reference/tscWatch/resolutionCache/works-when-reusing-program-with-files-from-external-library.js +++ b/tests/baselines/reference/tscWatch/resolutionCache/works-when-reusing-program-with-files-from-external-library.js @@ -25,7 +25,15 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/a/b/projects/myProject/src/tsconfig.json] -{"compilerOptions":{"allowJs":true,"rootDir":".","outDir":"../dist","moduleResolution":"node","maxNodeModuleJsDepth":1}} +{ + "compilerOptions": { + "allowJs": true, + "rootDir": ".", + "outDir": "../dist", + "moduleResolution": "node", + "maxNodeModuleJsDepth": 1 + } +} /a/lib/tsc.js --w -p /a/b/projects/myProject/src @@ -37,8 +45,20 @@ Output:: -Program root files: ["/a/b/projects/myProject/src/file1.ts","/a/b/projects/myProject/src/file2.ts"] -Program options: {"allowJs":true,"rootDir":"/a/b/projects/myProject/src","outDir":"/a/b/projects/myProject/dist","moduleResolution":2,"maxNodeModuleJsDepth":1,"watch":true,"project":"/a/b/projects/myProject/src","configFilePath":"/a/b/projects/myProject/src/tsconfig.json"} +Program root files: [ + "/a/b/projects/myProject/src/file1.ts", + "/a/b/projects/myProject/src/file2.ts" +] +Program options: { + "allowJs": true, + "rootDir": "/a/b/projects/myProject/src", + "outDir": "/a/b/projects/myProject/dist", + "moduleResolution": 2, + "maxNodeModuleJsDepth": 1, + "watch": true, + "project": "/a/b/projects/myProject/src", + "configFilePath": "/a/b/projects/myProject/src/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -125,8 +145,20 @@ Output:: -Program root files: ["/a/b/projects/myProject/src/file1.ts","/a/b/projects/myProject/src/file2.ts"] -Program options: {"allowJs":true,"rootDir":"/a/b/projects/myProject/src","outDir":"/a/b/projects/myProject/dist","moduleResolution":2,"maxNodeModuleJsDepth":1,"watch":true,"project":"/a/b/projects/myProject/src","configFilePath":"/a/b/projects/myProject/src/tsconfig.json"} +Program root files: [ + "/a/b/projects/myProject/src/file1.ts", + "/a/b/projects/myProject/src/file2.ts" +] +Program options: { + "allowJs": true, + "rootDir": "/a/b/projects/myProject/src", + "outDir": "/a/b/projects/myProject/dist", + "moduleResolution": 2, + "maxNodeModuleJsDepth": 1, + "watch": true, + "project": "/a/b/projects/myProject/src", + "configFilePath": "/a/b/projects/myProject/src/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/resolveJsonModule/incremental-always-prefers-declaration-file-over-document.js b/tests/baselines/reference/tscWatch/resolveJsonModule/incremental-always-prefers-declaration-file-over-document.js index c54659321b442..6017a54b65bd5 100644 --- a/tests/baselines/reference/tscWatch/resolveJsonModule/incremental-always-prefers-declaration-file-over-document.js +++ b/tests/baselines/reference/tscWatch/resolveJsonModule/incremental-always-prefers-declaration-file-over-document.js @@ -11,9 +11,9 @@ declare var val: string; export default val; //// [/src/project/tsconfig.json] { - "compilerOptions": { - "resolveJsonModule": true - } + "compilerOptions": { + "resolveJsonModule": true + } } //// [/a/lib/lib.d.ts] @@ -44,8 +44,17 @@ Output:: -Program root files: ["/src/project/data.d.json.ts","/src/project/main.ts"] -Program options: {"resolveJsonModule":true,"project":"/src/project","incremental":true,"watch":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/data.d.json.ts", + "/src/project/main.ts" +] +Program options: { + "resolveJsonModule": true, + "project": "/src/project", + "incremental": true, + "watch": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -155,9 +164,9 @@ Change:: Change json setting Input:: //// [/src/project/tsconfig.json] { - "compilerOptions": { - "resolveJsonModule": false - } + "compilerOptions": { + "resolveJsonModule": false + } } @@ -177,8 +186,17 @@ Output:: -Program root files: ["/src/project/data.d.json.ts","/src/project/main.ts"] -Program options: {"resolveJsonModule":false,"project":"/src/project","incremental":true,"watch":true,"configFilePath":"/src/project/tsconfig.json"} +Program root files: [ + "/src/project/data.d.json.ts", + "/src/project/main.ts" +] +Program options: { + "resolveJsonModule": false, + "project": "/src/project", + "incremental": true, + "watch": true, + "configFilePath": "/src/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field-when-solution-is-already-built.js b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field-when-solution-is-already-built.js index 61e63c20fc7aa..62588a07e00e7 100644 --- a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field-when-solution-is-already-built.js +++ b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field-when-solution-is-already-built.js @@ -14,13 +14,39 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/packages/B/package.json] -{"main":"lib/index.js","types":"lib/index.d.ts"} +{ + "main": "lib/index.js", + "types": "lib/index.d.ts" +} //// [/user/username/projects/myproject/packages/A/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true},"include":["src"],"references":[{"path":"../B"}]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true + }, + "include": [ + "src" + ], + "references": [ + { + "path": "../B" + } + ] +} //// [/user/username/projects/myproject/packages/B/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true},"include":["src"]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true + }, + "include": [ + "src" + ] +} //// [/user/username/projects/myproject/packages/A/src/index.ts] import { foo } from 'b'; @@ -224,8 +250,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/packages/A/src/index.ts"] -Program options: {"outDir":"/user/username/projects/myproject/packages/A/lib","rootDir":"/user/username/projects/myproject/packages/A/src","composite":true,"configFilePath":"/user/username/projects/myproject/packages/A/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/packages/A/src/index.ts" +] +Program options: { + "outDir": "/user/username/projects/myproject/packages/A/lib", + "rootDir": "/user/username/projects/myproject/packages/A/src", + "composite": true, + "configFilePath": "/user/username/projects/myproject/packages/A/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field-with-preserveSymlinks-when-solution-is-already-built.js b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field-with-preserveSymlinks-when-solution-is-already-built.js index dd8965f9ff94b..262df2f03d74d 100644 --- a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field-with-preserveSymlinks-when-solution-is-already-built.js +++ b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field-with-preserveSymlinks-when-solution-is-already-built.js @@ -14,13 +14,41 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/packages/B/package.json] -{"main":"lib/index.js","types":"lib/index.d.ts"} +{ + "main": "lib/index.js", + "types": "lib/index.d.ts" +} //// [/user/username/projects/myproject/packages/A/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true,"preserveSymlinks":true},"include":["src"],"references":[{"path":"../B"}]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true, + "preserveSymlinks": true + }, + "include": [ + "src" + ], + "references": [ + { + "path": "../B" + } + ] +} //// [/user/username/projects/myproject/packages/B/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true,"preserveSymlinks":true},"include":["src"]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true, + "preserveSymlinks": true + }, + "include": [ + "src" + ] +} //// [/user/username/projects/myproject/packages/A/src/index.ts] import { foo } from 'b'; @@ -224,8 +252,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/packages/A/src/index.ts"] -Program options: {"outDir":"/user/username/projects/myproject/packages/A/lib","rootDir":"/user/username/projects/myproject/packages/A/src","composite":true,"preserveSymlinks":true,"configFilePath":"/user/username/projects/myproject/packages/A/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/packages/A/src/index.ts" +] +Program options: { + "outDir": "/user/username/projects/myproject/packages/A/lib", + "rootDir": "/user/username/projects/myproject/packages/A/src", + "composite": true, + "preserveSymlinks": true, + "configFilePath": "/user/username/projects/myproject/packages/A/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field-with-preserveSymlinks.js b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field-with-preserveSymlinks.js index 79718fa905619..7308fa7c87aa4 100644 --- a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field-with-preserveSymlinks.js +++ b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field-with-preserveSymlinks.js @@ -14,13 +14,41 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/packages/B/package.json] -{"main":"lib/index.js","types":"lib/index.d.ts"} +{ + "main": "lib/index.js", + "types": "lib/index.d.ts" +} //// [/user/username/projects/myproject/packages/A/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true,"preserveSymlinks":true},"include":["src"],"references":[{"path":"../B"}]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true, + "preserveSymlinks": true + }, + "include": [ + "src" + ], + "references": [ + { + "path": "../B" + } + ] +} //// [/user/username/projects/myproject/packages/B/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true,"preserveSymlinks":true},"include":["src"]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true, + "preserveSymlinks": true + }, + "include": [ + "src" + ] +} //// [/user/username/projects/myproject/packages/A/src/index.ts] import { foo } from 'b'; @@ -46,8 +74,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/packages/A/src/index.ts"] -Program options: {"outDir":"/user/username/projects/myproject/packages/A/lib","rootDir":"/user/username/projects/myproject/packages/A/src","composite":true,"preserveSymlinks":true,"configFilePath":"/user/username/projects/myproject/packages/A/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/packages/A/src/index.ts" +] +Program options: { + "outDir": "/user/username/projects/myproject/packages/A/lib", + "rootDir": "/user/username/projects/myproject/packages/A/src", + "composite": true, + "preserveSymlinks": true, + "configFilePath": "/user/username/projects/myproject/packages/A/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field-with-scoped-package-when-solution-is-already-built.js b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field-with-scoped-package-when-solution-is-already-built.js index d6a461549c544..61ccd99f1d9cd 100644 --- a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field-with-scoped-package-when-solution-is-already-built.js +++ b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field-with-scoped-package-when-solution-is-already-built.js @@ -14,13 +14,39 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/packages/B/package.json] -{"main":"lib/index.js","types":"lib/index.d.ts"} +{ + "main": "lib/index.js", + "types": "lib/index.d.ts" +} //// [/user/username/projects/myproject/packages/A/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true},"include":["src"],"references":[{"path":"../B"}]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true + }, + "include": [ + "src" + ], + "references": [ + { + "path": "../B" + } + ] +} //// [/user/username/projects/myproject/packages/B/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true},"include":["src"]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true + }, + "include": [ + "src" + ] +} //// [/user/username/projects/myproject/packages/A/src/index.ts] import { foo } from '@issue/b'; @@ -224,8 +250,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/packages/A/src/index.ts"] -Program options: {"outDir":"/user/username/projects/myproject/packages/A/lib","rootDir":"/user/username/projects/myproject/packages/A/src","composite":true,"configFilePath":"/user/username/projects/myproject/packages/A/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/packages/A/src/index.ts" +] +Program options: { + "outDir": "/user/username/projects/myproject/packages/A/lib", + "rootDir": "/user/username/projects/myproject/packages/A/src", + "composite": true, + "configFilePath": "/user/username/projects/myproject/packages/A/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field-with-scoped-package-with-preserveSymlinks-when-solution-is-already-built.js b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field-with-scoped-package-with-preserveSymlinks-when-solution-is-already-built.js index cb7291e925ded..2064dcd91db83 100644 --- a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field-with-scoped-package-with-preserveSymlinks-when-solution-is-already-built.js +++ b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field-with-scoped-package-with-preserveSymlinks-when-solution-is-already-built.js @@ -14,13 +14,41 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/packages/B/package.json] -{"main":"lib/index.js","types":"lib/index.d.ts"} +{ + "main": "lib/index.js", + "types": "lib/index.d.ts" +} //// [/user/username/projects/myproject/packages/A/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true,"preserveSymlinks":true},"include":["src"],"references":[{"path":"../B"}]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true, + "preserveSymlinks": true + }, + "include": [ + "src" + ], + "references": [ + { + "path": "../B" + } + ] +} //// [/user/username/projects/myproject/packages/B/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true,"preserveSymlinks":true},"include":["src"]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true, + "preserveSymlinks": true + }, + "include": [ + "src" + ] +} //// [/user/username/projects/myproject/packages/A/src/index.ts] import { foo } from '@issue/b'; @@ -224,8 +252,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/packages/A/src/index.ts"] -Program options: {"outDir":"/user/username/projects/myproject/packages/A/lib","rootDir":"/user/username/projects/myproject/packages/A/src","composite":true,"preserveSymlinks":true,"configFilePath":"/user/username/projects/myproject/packages/A/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/packages/A/src/index.ts" +] +Program options: { + "outDir": "/user/username/projects/myproject/packages/A/lib", + "rootDir": "/user/username/projects/myproject/packages/A/src", + "composite": true, + "preserveSymlinks": true, + "configFilePath": "/user/username/projects/myproject/packages/A/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field-with-scoped-package-with-preserveSymlinks.js b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field-with-scoped-package-with-preserveSymlinks.js index b22583ec4f587..2065dfc270ae2 100644 --- a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field-with-scoped-package-with-preserveSymlinks.js +++ b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field-with-scoped-package-with-preserveSymlinks.js @@ -14,13 +14,41 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/packages/B/package.json] -{"main":"lib/index.js","types":"lib/index.d.ts"} +{ + "main": "lib/index.js", + "types": "lib/index.d.ts" +} //// [/user/username/projects/myproject/packages/A/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true,"preserveSymlinks":true},"include":["src"],"references":[{"path":"../B"}]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true, + "preserveSymlinks": true + }, + "include": [ + "src" + ], + "references": [ + { + "path": "../B" + } + ] +} //// [/user/username/projects/myproject/packages/B/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true,"preserveSymlinks":true},"include":["src"]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true, + "preserveSymlinks": true + }, + "include": [ + "src" + ] +} //// [/user/username/projects/myproject/packages/A/src/index.ts] import { foo } from '@issue/b'; @@ -46,8 +74,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/packages/A/src/index.ts"] -Program options: {"outDir":"/user/username/projects/myproject/packages/A/lib","rootDir":"/user/username/projects/myproject/packages/A/src","composite":true,"preserveSymlinks":true,"configFilePath":"/user/username/projects/myproject/packages/A/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/packages/A/src/index.ts" +] +Program options: { + "outDir": "/user/username/projects/myproject/packages/A/lib", + "rootDir": "/user/username/projects/myproject/packages/A/src", + "composite": true, + "preserveSymlinks": true, + "configFilePath": "/user/username/projects/myproject/packages/A/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field-with-scoped-package.js b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field-with-scoped-package.js index afab75d9eb57e..9f4819a6700f7 100644 --- a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field-with-scoped-package.js +++ b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field-with-scoped-package.js @@ -14,13 +14,39 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/packages/B/package.json] -{"main":"lib/index.js","types":"lib/index.d.ts"} +{ + "main": "lib/index.js", + "types": "lib/index.d.ts" +} //// [/user/username/projects/myproject/packages/A/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true},"include":["src"],"references":[{"path":"../B"}]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true + }, + "include": [ + "src" + ], + "references": [ + { + "path": "../B" + } + ] +} //// [/user/username/projects/myproject/packages/B/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true},"include":["src"]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true + }, + "include": [ + "src" + ] +} //// [/user/username/projects/myproject/packages/A/src/index.ts] import { foo } from '@issue/b'; @@ -46,8 +72,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/packages/A/src/index.ts"] -Program options: {"outDir":"/user/username/projects/myproject/packages/A/lib","rootDir":"/user/username/projects/myproject/packages/A/src","composite":true,"configFilePath":"/user/username/projects/myproject/packages/A/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/packages/A/src/index.ts" +] +Program options: { + "outDir": "/user/username/projects/myproject/packages/A/lib", + "rootDir": "/user/username/projects/myproject/packages/A/src", + "composite": true, + "configFilePath": "/user/username/projects/myproject/packages/A/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field.js b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field.js index dc5699083a0d6..9baa31492b823 100644 --- a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field.js +++ b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-packageJson-has-types-field.js @@ -14,13 +14,39 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/packages/B/package.json] -{"main":"lib/index.js","types":"lib/index.d.ts"} +{ + "main": "lib/index.js", + "types": "lib/index.d.ts" +} //// [/user/username/projects/myproject/packages/A/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true},"include":["src"],"references":[{"path":"../B"}]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true + }, + "include": [ + "src" + ], + "references": [ + { + "path": "../B" + } + ] +} //// [/user/username/projects/myproject/packages/B/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true},"include":["src"]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true + }, + "include": [ + "src" + ] +} //// [/user/username/projects/myproject/packages/A/src/index.ts] import { foo } from 'b'; @@ -46,8 +72,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/packages/A/src/index.ts"] -Program options: {"outDir":"/user/username/projects/myproject/packages/A/lib","rootDir":"/user/username/projects/myproject/packages/A/src","composite":true,"configFilePath":"/user/username/projects/myproject/packages/A/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/packages/A/src/index.ts" +] +Program options: { + "outDir": "/user/username/projects/myproject/packages/A/lib", + "rootDir": "/user/username/projects/myproject/packages/A/src", + "composite": true, + "configFilePath": "/user/username/projects/myproject/packages/A/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder-when-solution-is-already-built.js b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder-when-solution-is-already-built.js index 0a57f414b5e35..fc9351b0a7d0d 100644 --- a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder-when-solution-is-already-built.js +++ b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder-when-solution-is-already-built.js @@ -17,10 +17,33 @@ interface Array { length: number; [n: number]: T; } {} //// [/user/username/projects/myproject/packages/A/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true},"include":["src"],"references":[{"path":"../B"}]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true + }, + "include": [ + "src" + ], + "references": [ + { + "path": "../B" + } + ] +} //// [/user/username/projects/myproject/packages/B/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true},"include":["src"]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true + }, + "include": [ + "src" + ] +} //// [/user/username/projects/myproject/packages/A/src/test.ts] import { foo } from 'b/lib/foo'; @@ -224,8 +247,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/packages/A/src/test.ts"] -Program options: {"outDir":"/user/username/projects/myproject/packages/A/lib","rootDir":"/user/username/projects/myproject/packages/A/src","composite":true,"configFilePath":"/user/username/projects/myproject/packages/A/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/packages/A/src/test.ts" +] +Program options: { + "outDir": "/user/username/projects/myproject/packages/A/lib", + "rootDir": "/user/username/projects/myproject/packages/A/src", + "composite": true, + "configFilePath": "/user/username/projects/myproject/packages/A/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder-with-preserveSymlinks-when-solution-is-already-built.js b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder-with-preserveSymlinks-when-solution-is-already-built.js index 6424572caa82d..b1d917484afd6 100644 --- a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder-with-preserveSymlinks-when-solution-is-already-built.js +++ b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder-with-preserveSymlinks-when-solution-is-already-built.js @@ -17,10 +17,35 @@ interface Array { length: number; [n: number]: T; } {} //// [/user/username/projects/myproject/packages/A/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true,"preserveSymlinks":true},"include":["src"],"references":[{"path":"../B"}]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true, + "preserveSymlinks": true + }, + "include": [ + "src" + ], + "references": [ + { + "path": "../B" + } + ] +} //// [/user/username/projects/myproject/packages/B/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true,"preserveSymlinks":true},"include":["src"]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true, + "preserveSymlinks": true + }, + "include": [ + "src" + ] +} //// [/user/username/projects/myproject/packages/A/src/test.ts] import { foo } from 'b/lib/foo'; @@ -224,8 +249,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/packages/A/src/test.ts"] -Program options: {"outDir":"/user/username/projects/myproject/packages/A/lib","rootDir":"/user/username/projects/myproject/packages/A/src","composite":true,"preserveSymlinks":true,"configFilePath":"/user/username/projects/myproject/packages/A/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/packages/A/src/test.ts" +] +Program options: { + "outDir": "/user/username/projects/myproject/packages/A/lib", + "rootDir": "/user/username/projects/myproject/packages/A/src", + "composite": true, + "preserveSymlinks": true, + "configFilePath": "/user/username/projects/myproject/packages/A/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder-with-preserveSymlinks.js b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder-with-preserveSymlinks.js index 00e73b9fbc738..01bd09296c8e8 100644 --- a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder-with-preserveSymlinks.js +++ b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder-with-preserveSymlinks.js @@ -17,10 +17,35 @@ interface Array { length: number; [n: number]: T; } {} //// [/user/username/projects/myproject/packages/A/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true,"preserveSymlinks":true},"include":["src"],"references":[{"path":"../B"}]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true, + "preserveSymlinks": true + }, + "include": [ + "src" + ], + "references": [ + { + "path": "../B" + } + ] +} //// [/user/username/projects/myproject/packages/B/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true,"preserveSymlinks":true},"include":["src"]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true, + "preserveSymlinks": true + }, + "include": [ + "src" + ] +} //// [/user/username/projects/myproject/packages/A/src/test.ts] import { foo } from 'b/lib/foo'; @@ -46,8 +71,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/packages/A/src/test.ts"] -Program options: {"outDir":"/user/username/projects/myproject/packages/A/lib","rootDir":"/user/username/projects/myproject/packages/A/src","composite":true,"preserveSymlinks":true,"configFilePath":"/user/username/projects/myproject/packages/A/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/packages/A/src/test.ts" +] +Program options: { + "outDir": "/user/username/projects/myproject/packages/A/lib", + "rootDir": "/user/username/projects/myproject/packages/A/src", + "composite": true, + "preserveSymlinks": true, + "configFilePath": "/user/username/projects/myproject/packages/A/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder-with-scoped-package-when-solution-is-already-built.js b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder-with-scoped-package-when-solution-is-already-built.js index 56a3e78709992..75c7902953aa4 100644 --- a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder-with-scoped-package-when-solution-is-already-built.js +++ b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder-with-scoped-package-when-solution-is-already-built.js @@ -17,10 +17,33 @@ interface Array { length: number; [n: number]: T; } {} //// [/user/username/projects/myproject/packages/A/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true},"include":["src"],"references":[{"path":"../B"}]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true + }, + "include": [ + "src" + ], + "references": [ + { + "path": "../B" + } + ] +} //// [/user/username/projects/myproject/packages/B/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true},"include":["src"]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true + }, + "include": [ + "src" + ] +} //// [/user/username/projects/myproject/packages/A/src/test.ts] import { foo } from '@issue/b/lib/foo'; @@ -224,8 +247,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/packages/A/src/test.ts"] -Program options: {"outDir":"/user/username/projects/myproject/packages/A/lib","rootDir":"/user/username/projects/myproject/packages/A/src","composite":true,"configFilePath":"/user/username/projects/myproject/packages/A/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/packages/A/src/test.ts" +] +Program options: { + "outDir": "/user/username/projects/myproject/packages/A/lib", + "rootDir": "/user/username/projects/myproject/packages/A/src", + "composite": true, + "configFilePath": "/user/username/projects/myproject/packages/A/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder-with-scoped-package-with-preserveSymlinks-when-solution-is-already-built.js b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder-with-scoped-package-with-preserveSymlinks-when-solution-is-already-built.js index f54c008b0ef0a..783ca4b36c41b 100644 --- a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder-with-scoped-package-with-preserveSymlinks-when-solution-is-already-built.js +++ b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder-with-scoped-package-with-preserveSymlinks-when-solution-is-already-built.js @@ -17,10 +17,35 @@ interface Array { length: number; [n: number]: T; } {} //// [/user/username/projects/myproject/packages/A/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true,"preserveSymlinks":true},"include":["src"],"references":[{"path":"../B"}]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true, + "preserveSymlinks": true + }, + "include": [ + "src" + ], + "references": [ + { + "path": "../B" + } + ] +} //// [/user/username/projects/myproject/packages/B/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true,"preserveSymlinks":true},"include":["src"]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true, + "preserveSymlinks": true + }, + "include": [ + "src" + ] +} //// [/user/username/projects/myproject/packages/A/src/test.ts] import { foo } from '@issue/b/lib/foo'; @@ -224,8 +249,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/packages/A/src/test.ts"] -Program options: {"outDir":"/user/username/projects/myproject/packages/A/lib","rootDir":"/user/username/projects/myproject/packages/A/src","composite":true,"preserveSymlinks":true,"configFilePath":"/user/username/projects/myproject/packages/A/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/packages/A/src/test.ts" +] +Program options: { + "outDir": "/user/username/projects/myproject/packages/A/lib", + "rootDir": "/user/username/projects/myproject/packages/A/src", + "composite": true, + "preserveSymlinks": true, + "configFilePath": "/user/username/projects/myproject/packages/A/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder-with-scoped-package-with-preserveSymlinks.js b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder-with-scoped-package-with-preserveSymlinks.js index 66af97f60d78b..24467a09edf61 100644 --- a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder-with-scoped-package-with-preserveSymlinks.js +++ b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder-with-scoped-package-with-preserveSymlinks.js @@ -17,10 +17,35 @@ interface Array { length: number; [n: number]: T; } {} //// [/user/username/projects/myproject/packages/A/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true,"preserveSymlinks":true},"include":["src"],"references":[{"path":"../B"}]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true, + "preserveSymlinks": true + }, + "include": [ + "src" + ], + "references": [ + { + "path": "../B" + } + ] +} //// [/user/username/projects/myproject/packages/B/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true,"preserveSymlinks":true},"include":["src"]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true, + "preserveSymlinks": true + }, + "include": [ + "src" + ] +} //// [/user/username/projects/myproject/packages/A/src/test.ts] import { foo } from '@issue/b/lib/foo'; @@ -46,8 +71,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/packages/A/src/test.ts"] -Program options: {"outDir":"/user/username/projects/myproject/packages/A/lib","rootDir":"/user/username/projects/myproject/packages/A/src","composite":true,"preserveSymlinks":true,"configFilePath":"/user/username/projects/myproject/packages/A/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/packages/A/src/test.ts" +] +Program options: { + "outDir": "/user/username/projects/myproject/packages/A/lib", + "rootDir": "/user/username/projects/myproject/packages/A/src", + "composite": true, + "preserveSymlinks": true, + "configFilePath": "/user/username/projects/myproject/packages/A/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder-with-scoped-package.js b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder-with-scoped-package.js index 0d70c9fa2606c..ffe35483268cc 100644 --- a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder-with-scoped-package.js +++ b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder-with-scoped-package.js @@ -17,10 +17,33 @@ interface Array { length: number; [n: number]: T; } {} //// [/user/username/projects/myproject/packages/A/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true},"include":["src"],"references":[{"path":"../B"}]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true + }, + "include": [ + "src" + ], + "references": [ + { + "path": "../B" + } + ] +} //// [/user/username/projects/myproject/packages/B/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true},"include":["src"]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true + }, + "include": [ + "src" + ] +} //// [/user/username/projects/myproject/packages/A/src/test.ts] import { foo } from '@issue/b/lib/foo'; @@ -46,8 +69,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/packages/A/src/test.ts"] -Program options: {"outDir":"/user/username/projects/myproject/packages/A/lib","rootDir":"/user/username/projects/myproject/packages/A/src","composite":true,"configFilePath":"/user/username/projects/myproject/packages/A/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/packages/A/src/test.ts" +] +Program options: { + "outDir": "/user/username/projects/myproject/packages/A/lib", + "rootDir": "/user/username/projects/myproject/packages/A/src", + "composite": true, + "configFilePath": "/user/username/projects/myproject/packages/A/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder.js b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder.js index cc085833a052e..9742ef562d2a0 100644 --- a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder.js +++ b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/when-referencing-file-from-subFolder.js @@ -17,10 +17,33 @@ interface Array { length: number; [n: number]: T; } {} //// [/user/username/projects/myproject/packages/A/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true},"include":["src"],"references":[{"path":"../B"}]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true + }, + "include": [ + "src" + ], + "references": [ + { + "path": "../B" + } + ] +} //// [/user/username/projects/myproject/packages/B/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true},"include":["src"]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true + }, + "include": [ + "src" + ] +} //// [/user/username/projects/myproject/packages/A/src/test.ts] import { foo } from 'b/lib/foo'; @@ -46,8 +69,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/packages/A/src/test.ts"] -Program options: {"outDir":"/user/username/projects/myproject/packages/A/lib","rootDir":"/user/username/projects/myproject/packages/A/src","composite":true,"configFilePath":"/user/username/projects/myproject/packages/A/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/packages/A/src/test.ts" +] +Program options: { + "outDir": "/user/username/projects/myproject/packages/A/lib", + "rootDir": "/user/username/projects/myproject/packages/A/src", + "composite": true, + "configFilePath": "/user/username/projects/myproject/packages/A/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/with-simple-project-when-solution-is-already-built.js b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/with-simple-project-when-solution-is-already-built.js index 93ca86c6d66aa..b6f6558f6b9a2 100644 --- a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/with-simple-project-when-solution-is-already-built.js +++ b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/with-simple-project-when-solution-is-already-built.js @@ -1,105 +1,143 @@ currentDirectory:: / useCaseSensitiveFileNames: false Input:: -//// [/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/demo/animals/animal.ts] +export type Size = "small" | "medium" | "large"; +export default interface Animal { + size: Size; +} -//// [/user/username/projects/demo/tsconfig-base.json] -{ - "compilerOptions": { - "declaration": true, - "target": "es5", - "module": "commonjs", - "strict": true, - "noUnusedLocals": true, - "noUnusedParameters": true, - "noImplicitReturns": true, - "noFallthroughCasesInSwitch": true, - "composite": true - } -} -//// [/user/username/projects/demo/core/utilities.ts] +//// [/user/username/projects/demo/animals/dog.ts] +import Animal from '.'; +import { makeRandomName } from '../core/utilities'; + +export interface Dog extends Animal { + woof(): void; + name: string; +} + +export function createDog(): Dog { + return ({ + size: "medium", + woof: function(this: Dog) { + console.log(`${ this.name } says "Woof"!`); + }, + name: makeRandomName() + }); +} -export function makeRandomName() { - return "Bob!?! "; -} -export function lastElementOf(arr: T[]): T | undefined { - if (arr.length === 0) return undefined; - return arr[arr.length - 1]; +//// [/user/username/projects/demo/animals/index.ts] +import Animal from './animal'; + +export default Animal; +import { createDog, Dog } from './dog'; +export { createDog, Dog }; + + +//// [/user/username/projects/demo/animals/tsconfig.json] +{ + "extends": "../tsconfig-base.json", + "compilerOptions": { + "outDir": "../lib/animals", + "rootDir": "." + }, + "references": [ + { + "path": "../core" + } + ] } +//// [/user/username/projects/demo/core/utilities.ts] +export function makeRandomName() { + return "Bob!?! "; +} + +export function lastElementOf(arr: T[]): T | undefined { + if (arr.length === 0) return undefined; + return arr[arr.length - 1]; +} //// [/user/username/projects/demo/core/tsconfig.json] -{ - "extends": "../tsconfig-base.json", - "compilerOptions": { - "outDir": "../lib/core", - "rootDir": "." - } +{ + "extends": "../tsconfig-base.json", + "compilerOptions": { + "outDir": "../lib/core", + "rootDir": "." + } } -//// [/user/username/projects/demo/animals/animal.ts] -export type Size = "small" | "medium" | "large"; -export default interface Animal { - size: Size; -} +//// [/user/username/projects/demo/zoo/zoo.ts] +import { Dog, createDog } from '../animals/index'; + +export function createZoo(): Array { + return [ + createDog() + ]; +} -//// [/user/username/projects/demo/animals/dog.ts] -import Animal from '.'; -import { makeRandomName } from '../core/utilities'; - -export interface Dog extends Animal { - woof(): void; - name: string; +//// [/user/username/projects/demo/zoo/tsconfig.json] +{ + "extends": "../tsconfig-base.json", + "compilerOptions": { + "outDir": "../lib/zoo", + "rootDir": "." + }, + "references": [ + { + "path": "../animals" + } + ] } -export function createDog(): Dog { - return ({ - size: "medium", - woof: function(this: Dog) { - console.log(`${this.name} says "Woof"!`); - }, - name: makeRandomName() - }); +//// [/user/username/projects/demo/tsconfig-base.json] +{ + "compilerOptions": { + "declaration": true, + "target": "es5", + "module": "commonjs", + "strict": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "noImplicitReturns": true, + "noFallthroughCasesInSwitch": true, + "composite": true + } } - - -//// [/user/username/projects/demo/animals/index.ts] -import Animal from './animal'; - -export default Animal; -import { createDog, Dog } from './dog'; -export { createDog, Dog }; - - -//// [/user/username/projects/demo/animals/tsconfig.json] -{ - "extends": "../tsconfig-base.json", - "compilerOptions": { - "outDir": "../lib/animals", - "rootDir": ".", - }, - "references": [ - { "path": "../core" } - ] +//// [/user/username/projects/demo/tsconfig.json] +{ + "files": [], + "references": [ + { + "path": "./core" + }, + { + "path": "./animals" + }, + { + "path": "./zoo" + } + ] } +//// [/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/demo/lib/core/utilities.js] "use strict"; @@ -123,7 +161,7 @@ export declare function lastElementOf(arr: T[]): T | undefined; //// [/user/username/projects/demo/lib/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../core/utilities.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"25274411612-\r\nexport function makeRandomName() {\r\n return \"Bob!?! \";\r\n}\r\n\r\nexport function lastElementOf(arr: T[]): T | undefined {\r\n if (arr.length === 0) return undefined;\r\n return arr[arr.length - 1];\r\n}\r\n\r\n","signature":"-11345568166-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n"}],"root":[2],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../core","strict":true,"target":1},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./utilities.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../core/utilities.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-6723567162-export function makeRandomName() {\n return \"Bob!?! \";\n}\n\nexport function lastElementOf(arr: T[]): T | undefined {\n if (arr.length === 0) return undefined;\n return arr[arr.length - 1];\n}\n","signature":"-11345568166-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n"}],"root":[2],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../core","strict":true,"target":1},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./utilities.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/demo/lib/core/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -144,10 +182,10 @@ export declare function lastElementOf(arr: T[]): T | undefined; }, "../../core/utilities.ts": { "original": { - "version": "25274411612-\r\nexport function makeRandomName() {\r\n return \"Bob!?! \";\r\n}\r\n\r\nexport function lastElementOf(arr: T[]): T | undefined {\r\n if (arr.length === 0) return undefined;\r\n return arr[arr.length - 1];\r\n}\r\n\r\n", + "version": "-6723567162-export function makeRandomName() {\n return \"Bob!?! \";\n}\n\nexport function lastElementOf(arr: T[]): T | undefined {\n if (arr.length === 0) return undefined;\n return arr[arr.length - 1];\n}\n", "signature": "-11345568166-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n" }, - "version": "25274411612-\r\nexport function makeRandomName() {\r\n return \"Bob!?! \";\r\n}\r\n\r\nexport function lastElementOf(arr: T[]): T | undefined {\r\n if (arr.length === 0) return undefined;\r\n return arr[arr.length - 1];\r\n}\r\n\r\n", + "version": "-6723567162-export function makeRandomName() {\n return \"Bob!?! \";\n}\n\nexport function lastElementOf(arr: T[]): T | undefined {\n if (arr.length === 0) return undefined;\n return arr[arr.length - 1];\n}\n", "signature": "-11345568166-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n" } }, @@ -179,7 +217,7 @@ export declare function lastElementOf(arr: T[]): T | undefined; "latestChangedDtsFile": "./utilities.d.ts" }, "version": "FakeTSVersion", - "size": 1372 + "size": 1348 } //// [/user/username/projects/demo/lib/animals/animal.js] @@ -236,7 +274,7 @@ export declare function createDog(): Dog; //// [/user/username/projects/demo/lib/animals/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../animals/animal.ts","../../animals/index.ts","../core/utilities.d.ts","../../animals/dog.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-14984181202-export type Size = \"small\" | \"medium\" | \"large\";\r\nexport default interface Animal {\r\n size: Size;\r\n}\r\n","signature":"-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n"},{"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"},"-11345568166-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n",{"version":"-10991948013-import Animal from '.';\r\nimport { makeRandomName } from '../core/utilities';\r\n\r\nexport interface Dog extends Animal {\r\n woof(): void;\r\n name: string;\r\n}\r\n\r\nexport function createDog(): Dog {\r\n return ({\r\n size: \"medium\",\r\n woof: function(this: Dog) {\r\n console.log(`${this.name} says \"Woof\"!`);\r\n },\r\n name: makeRandomName()\r\n });\r\n}\r\n\r\n","signature":"6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n"}],"root":[2,3,5],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../animals","strict":true,"target":1},"fileIdsList":[[3,4],[2,5],[3]],"referencedMap":[[5,1],[3,2]],"exportedModulesMap":[[5,3],[3,2]],"semanticDiagnosticsPerFile":[1,2,5,3,4],"latestChangedDtsFile":"./dog.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../animals/animal.ts","../../animals/index.ts","../core/utilities.d.ts","../../animals/dog.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n",{"version":"-7220553464-import Animal from './animal';\n\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"},"-11345568166-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n",{"version":"-18870194049-import Animal from '.';\nimport { makeRandomName } from '../core/utilities';\n\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\n\nexport function createDog(): Dog {\n return ({\n size: \"medium\",\n woof: function(this: Dog) {\n console.log(`${ this.name } says \"Woof\"!`);\n },\n name: makeRandomName()\n });\n}\n","signature":"6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n"}],"root":[2,3,5],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../animals","strict":true,"target":1},"fileIdsList":[[3,4],[2,5],[3]],"referencedMap":[[5,1],[3,2]],"exportedModulesMap":[[5,3],[3,2]],"semanticDiagnosticsPerFile":[1,2,5,3,4],"latestChangedDtsFile":"./dog.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/demo/lib/animals/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -272,19 +310,15 @@ export declare function createDog(): Dog; "affectsGlobalScope": true }, "../../animals/animal.ts": { - "original": { - "version": "-14984181202-export type Size = \"small\" | \"medium\" | \"large\";\r\nexport default interface Animal {\r\n size: Size;\r\n}\r\n", - "signature": "-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n" - }, - "version": "-14984181202-export type Size = \"small\" | \"medium\" | \"large\";\r\nexport default interface Animal {\r\n size: Size;\r\n}\r\n", + "version": "-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n", "signature": "-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n" }, "../../animals/index.ts": { "original": { - "version": "-5382672599-import Animal from './animal';\r\n\r\nexport default Animal;\r\nimport { createDog, Dog } from './dog';\r\nexport { createDog, Dog };\r\n", + "version": "-7220553464-import Animal from './animal';\n\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" }, - "version": "-5382672599-import Animal from './animal';\r\n\r\nexport default Animal;\r\nimport { createDog, Dog } from './dog';\r\nexport { createDog, Dog };\r\n", + "version": "-7220553464-import Animal from './animal';\n\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" }, "../core/utilities.d.ts": { @@ -293,10 +327,10 @@ export declare function createDog(): Dog; }, "../../animals/dog.ts": { "original": { - "version": "-10991948013-import Animal from '.';\r\nimport { makeRandomName } from '../core/utilities';\r\n\r\nexport interface Dog extends Animal {\r\n woof(): void;\r\n name: string;\r\n}\r\n\r\nexport function createDog(): Dog {\r\n return ({\r\n size: \"medium\",\r\n woof: function(this: Dog) {\r\n console.log(`${this.name} says \"Woof\"!`);\r\n },\r\n name: makeRandomName()\r\n });\r\n}\r\n\r\n", + "version": "-18870194049-import Animal from '.';\nimport { makeRandomName } from '../core/utilities';\n\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\n\nexport function createDog(): Dog {\n return ({\n size: \"medium\",\n woof: function(this: Dog) {\n console.log(`${ this.name } says \"Woof\"!`);\n },\n name: makeRandomName()\n });\n}\n", "signature": "6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n" }, - "version": "-10991948013-import Animal from '.';\r\nimport { makeRandomName } from '../core/utilities';\r\n\r\nexport interface Dog extends Animal {\r\n woof(): void;\r\n name: string;\r\n}\r\n\r\nexport function createDog(): Dog {\r\n return ({\r\n size: \"medium\",\r\n woof: function(this: Dog) {\r\n console.log(`${this.name} says \"Woof\"!`);\r\n },\r\n name: makeRandomName()\r\n });\r\n}\r\n\r\n", + "version": "-18870194049-import Animal from '.';\nimport { makeRandomName } from '../core/utilities';\n\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\n\nexport function createDog(): Dog {\n return ({\n size: \"medium\",\n woof: function(this: Dog) {\n console.log(`${ this.name } says \"Woof\"!`);\n },\n name: makeRandomName()\n });\n}\n", "signature": "6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n" } }, @@ -356,21 +390,38 @@ export declare function createDog(): Dog; "latestChangedDtsFile": "./dog.d.ts" }, "version": "FakeTSVersion", - "size": 2465 + "size": 2260 } /a/lib/tsc.js --w --p /user/username/projects/demo/animals/tsconfig.json Output:: >> Screen clear -[12:01:09 AM] Starting compilation in watch mode... +[12:01:17 AM] Starting compilation in watch mode... -[12:01:16 AM] Found 0 errors. Watching for file changes. +[12:01:24 AM] Found 0 errors. Watching for file changes. -Program root files: ["/user/username/projects/demo/animals/animal.ts","/user/username/projects/demo/animals/dog.ts","/user/username/projects/demo/animals/index.ts"] -Program options: {"declaration":true,"target":1,"module":1,"strict":true,"noUnusedLocals":true,"noUnusedParameters":true,"noImplicitReturns":true,"noFallthroughCasesInSwitch":true,"composite":true,"outDir":"/user/username/projects/demo/lib/animals","rootDir":"/user/username/projects/demo/animals","configFilePath":"/user/username/projects/demo/animals/tsconfig.json"} +Program root files: [ + "/user/username/projects/demo/animals/animal.ts", + "/user/username/projects/demo/animals/dog.ts", + "/user/username/projects/demo/animals/index.ts" +] +Program options: { + "declaration": true, + "target": 1, + "module": 1, + "strict": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "noImplicitReturns": true, + "noFallthroughCasesInSwitch": true, + "composite": true, + "outDir": "/user/username/projects/demo/lib/animals", + "rootDir": "/user/username/projects/demo/animals", + "configFilePath": "/user/username/projects/demo/animals/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -425,7 +476,7 @@ exitCode:: ExitStatus.undefined //// [/user/username/projects/demo/lib/animals/dog.js] file written with same contents //// [/user/username/projects/demo/lib/animals/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../animals/animal.ts","../../animals/index.ts","../../core/utilities.ts","../../animals/dog.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-14984181202-export type Size = \"small\" | \"medium\" | \"large\";\r\nexport default interface Animal {\r\n size: Size;\r\n}\r\n","signature":"-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n"},{"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"},{"version":"25274411612-\r\nexport function makeRandomName() {\r\n return \"Bob!?! \";\r\n}\r\n\r\nexport function lastElementOf(arr: T[]): T | undefined {\r\n if (arr.length === 0) return undefined;\r\n return arr[arr.length - 1];\r\n}\r\n\r\n","signature":"-11345568166-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n"},{"version":"-10991948013-import Animal from '.';\r\nimport { makeRandomName } from '../core/utilities';\r\n\r\nexport interface Dog extends Animal {\r\n woof(): void;\r\n name: string;\r\n}\r\n\r\nexport function createDog(): Dog {\r\n return ({\r\n size: \"medium\",\r\n woof: function(this: Dog) {\r\n console.log(`${this.name} says \"Woof\"!`);\r\n },\r\n name: makeRandomName()\r\n });\r\n}\r\n\r\n","signature":"6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n"}],"root":[2,3,5],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../animals","strict":true,"target":1},"fileIdsList":[[3,4],[2,5],[3]],"referencedMap":[[5,1],[3,2]],"exportedModulesMap":[[5,3],[3,2]],"semanticDiagnosticsPerFile":[1,2,5,3,4],"latestChangedDtsFile":"./dog.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../animals/animal.ts","../../animals/index.ts","../../core/utilities.ts","../../animals/dog.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n",{"version":"-7220553464-import Animal from './animal';\n\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"},{"version":"-6723567162-export function makeRandomName() {\n return \"Bob!?! \";\n}\n\nexport function lastElementOf(arr: T[]): T | undefined {\n if (arr.length === 0) return undefined;\n return arr[arr.length - 1];\n}\n","signature":"-11345568166-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n"},{"version":"-18870194049-import Animal from '.';\nimport { makeRandomName } from '../core/utilities';\n\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\n\nexport function createDog(): Dog {\n return ({\n size: \"medium\",\n woof: function(this: Dog) {\n console.log(`${ this.name } says \"Woof\"!`);\n },\n name: makeRandomName()\n });\n}\n","signature":"6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n"}],"root":[2,3,5],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../animals","strict":true,"target":1},"fileIdsList":[[3,4],[2,5],[3]],"referencedMap":[[5,1],[3,2]],"exportedModulesMap":[[5,3],[3,2]],"semanticDiagnosticsPerFile":[1,2,5,3,4],"latestChangedDtsFile":"./dog.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/demo/lib/animals/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -461,35 +512,31 @@ exitCode:: ExitStatus.undefined "affectsGlobalScope": true }, "../../animals/animal.ts": { - "original": { - "version": "-14984181202-export type Size = \"small\" | \"medium\" | \"large\";\r\nexport default interface Animal {\r\n size: Size;\r\n}\r\n", - "signature": "-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n" - }, - "version": "-14984181202-export type Size = \"small\" | \"medium\" | \"large\";\r\nexport default interface Animal {\r\n size: Size;\r\n}\r\n", + "version": "-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n", "signature": "-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n" }, "../../animals/index.ts": { "original": { - "version": "-5382672599-import Animal from './animal';\r\n\r\nexport default Animal;\r\nimport { createDog, Dog } from './dog';\r\nexport { createDog, Dog };\r\n", + "version": "-7220553464-import Animal from './animal';\n\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" }, - "version": "-5382672599-import Animal from './animal';\r\n\r\nexport default Animal;\r\nimport { createDog, Dog } from './dog';\r\nexport { createDog, Dog };\r\n", + "version": "-7220553464-import Animal from './animal';\n\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" }, "../../core/utilities.ts": { "original": { - "version": "25274411612-\r\nexport function makeRandomName() {\r\n return \"Bob!?! \";\r\n}\r\n\r\nexport function lastElementOf(arr: T[]): T | undefined {\r\n if (arr.length === 0) return undefined;\r\n return arr[arr.length - 1];\r\n}\r\n\r\n", + "version": "-6723567162-export function makeRandomName() {\n return \"Bob!?! \";\n}\n\nexport function lastElementOf(arr: T[]): T | undefined {\n if (arr.length === 0) return undefined;\n return arr[arr.length - 1];\n}\n", "signature": "-11345568166-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n" }, - "version": "25274411612-\r\nexport function makeRandomName() {\r\n return \"Bob!?! \";\r\n}\r\n\r\nexport function lastElementOf(arr: T[]): T | undefined {\r\n if (arr.length === 0) return undefined;\r\n return arr[arr.length - 1];\r\n}\r\n\r\n", + "version": "-6723567162-export function makeRandomName() {\n return \"Bob!?! \";\n}\n\nexport function lastElementOf(arr: T[]): T | undefined {\n if (arr.length === 0) return undefined;\n return arr[arr.length - 1];\n}\n", "signature": "-11345568166-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n" }, "../../animals/dog.ts": { "original": { - "version": "-10991948013-import Animal from '.';\r\nimport { makeRandomName } from '../core/utilities';\r\n\r\nexport interface Dog extends Animal {\r\n woof(): void;\r\n name: string;\r\n}\r\n\r\nexport function createDog(): Dog {\r\n return ({\r\n size: \"medium\",\r\n woof: function(this: Dog) {\r\n console.log(`${this.name} says \"Woof\"!`);\r\n },\r\n name: makeRandomName()\r\n });\r\n}\r\n\r\n", + "version": "-18870194049-import Animal from '.';\nimport { makeRandomName } from '../core/utilities';\n\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\n\nexport function createDog(): Dog {\n return ({\n size: \"medium\",\n woof: function(this: Dog) {\n console.log(`${ this.name } says \"Woof\"!`);\n },\n name: makeRandomName()\n });\n}\n", "signature": "6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n" }, - "version": "-10991948013-import Animal from '.';\r\nimport { makeRandomName } from '../core/utilities';\r\n\r\nexport interface Dog extends Animal {\r\n woof(): void;\r\n name: string;\r\n}\r\n\r\nexport function createDog(): Dog {\r\n return ({\r\n size: \"medium\",\r\n woof: function(this: Dog) {\r\n console.log(`${this.name} says \"Woof\"!`);\r\n },\r\n name: makeRandomName()\r\n });\r\n}\r\n\r\n", + "version": "-18870194049-import Animal from '.';\nimport { makeRandomName } from '../core/utilities';\n\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\n\nexport function createDog(): Dog {\n return ({\n size: \"medium\",\n woof: function(this: Dog) {\n console.log(`${ this.name } says \"Woof\"!`);\n },\n name: makeRandomName()\n });\n}\n", "signature": "6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n" } }, @@ -549,6 +596,6 @@ exitCode:: ExitStatus.undefined "latestChangedDtsFile": "./dog.d.ts" }, "version": "FakeTSVersion", - "size": 2737 + "size": 2508 } diff --git a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/with-simple-project.js b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/with-simple-project.js index 701dcd407fb09..cb9e88bb78571 100644 --- a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/with-simple-project.js +++ b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/with-simple-project.js @@ -1,118 +1,173 @@ currentDirectory:: / useCaseSensitiveFileNames: false Input:: -//// [/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/demo/animals/animal.ts] +export type Size = "small" | "medium" | "large"; +export default interface Animal { + size: Size; +} -//// [/user/username/projects/demo/tsconfig-base.json] -{ - "compilerOptions": { - "declaration": true, - "target": "es5", - "module": "commonjs", - "strict": true, - "noUnusedLocals": true, - "noUnusedParameters": true, - "noImplicitReturns": true, - "noFallthroughCasesInSwitch": true, - "composite": true - } -} -//// [/user/username/projects/demo/core/utilities.ts] +//// [/user/username/projects/demo/animals/dog.ts] +import Animal from '.'; +import { makeRandomName } from '../core/utilities'; + +export interface Dog extends Animal { + woof(): void; + name: string; +} + +export function createDog(): Dog { + return ({ + size: "medium", + woof: function(this: Dog) { + console.log(`${ this.name } says "Woof"!`); + }, + name: makeRandomName() + }); +} -export function makeRandomName() { - return "Bob!?! "; -} -export function lastElementOf(arr: T[]): T | undefined { - if (arr.length === 0) return undefined; - return arr[arr.length - 1]; +//// [/user/username/projects/demo/animals/index.ts] +import Animal from './animal'; + +export default Animal; +import { createDog, Dog } from './dog'; +export { createDog, Dog }; + + +//// [/user/username/projects/demo/animals/tsconfig.json] +{ + "extends": "../tsconfig-base.json", + "compilerOptions": { + "outDir": "../lib/animals", + "rootDir": "." + }, + "references": [ + { + "path": "../core" + } + ] } +//// [/user/username/projects/demo/core/utilities.ts] +export function makeRandomName() { + return "Bob!?! "; +} + +export function lastElementOf(arr: T[]): T | undefined { + if (arr.length === 0) return undefined; + return arr[arr.length - 1]; +} //// [/user/username/projects/demo/core/tsconfig.json] -{ - "extends": "../tsconfig-base.json", - "compilerOptions": { - "outDir": "../lib/core", - "rootDir": "." - } -} - -//// [/user/username/projects/demo/animals/animal.ts] -export type Size = "small" | "medium" | "large"; -export default interface Animal { - size: Size; +{ + "extends": "../tsconfig-base.json", + "compilerOptions": { + "outDir": "../lib/core", + "rootDir": "." + } } +//// [/user/username/projects/demo/zoo/zoo.ts] +import { Dog, createDog } from '../animals/index'; + +export function createZoo(): Array { + return [ + createDog() + ]; +} -//// [/user/username/projects/demo/animals/dog.ts] -import Animal from '.'; -import { makeRandomName } from '../core/utilities'; -export interface Dog extends Animal { - woof(): void; - name: string; +//// [/user/username/projects/demo/zoo/tsconfig.json] +{ + "extends": "../tsconfig-base.json", + "compilerOptions": { + "outDir": "../lib/zoo", + "rootDir": "." + }, + "references": [ + { + "path": "../animals" + } + ] } -export function createDog(): Dog { - return ({ - size: "medium", - woof: function(this: Dog) { - console.log(`${this.name} says "Woof"!`); - }, - name: makeRandomName() - }); +//// [/user/username/projects/demo/tsconfig-base.json] +{ + "compilerOptions": { + "declaration": true, + "target": "es5", + "module": "commonjs", + "strict": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "noImplicitReturns": true, + "noFallthroughCasesInSwitch": true, + "composite": true + } } - - -//// [/user/username/projects/demo/animals/index.ts] -import Animal from './animal'; - -export default Animal; -import { createDog, Dog } from './dog'; -export { createDog, Dog }; - - -//// [/user/username/projects/demo/animals/tsconfig.json] -{ - "extends": "../tsconfig-base.json", - "compilerOptions": { - "outDir": "../lib/animals", - "rootDir": ".", - }, - "references": [ - { "path": "../core" } - ] +//// [/user/username/projects/demo/tsconfig.json] +{ + "files": [], + "references": [ + { + "path": "./core" + }, + { + "path": "./animals" + }, + { + "path": "./zoo" + } + ] } +//// [/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; }; /a/lib/tsc.js --w --p /user/username/projects/demo/animals/tsconfig.json Output:: >> Screen clear -[12:00:35 AM] Starting compilation in watch mode... +[12:00:43 AM] Starting compilation in watch mode... -[12:00:55 AM] Found 0 errors. Watching for file changes. +[12:01:03 AM] Found 0 errors. Watching for file changes. -Program root files: ["/user/username/projects/demo/animals/animal.ts","/user/username/projects/demo/animals/dog.ts","/user/username/projects/demo/animals/index.ts"] -Program options: {"declaration":true,"target":1,"module":1,"strict":true,"noUnusedLocals":true,"noUnusedParameters":true,"noImplicitReturns":true,"noFallthroughCasesInSwitch":true,"composite":true,"outDir":"/user/username/projects/demo/lib/animals","rootDir":"/user/username/projects/demo/animals","configFilePath":"/user/username/projects/demo/animals/tsconfig.json"} +Program root files: [ + "/user/username/projects/demo/animals/animal.ts", + "/user/username/projects/demo/animals/dog.ts", + "/user/username/projects/demo/animals/index.ts" +] +Program options: { + "declaration": true, + "target": 1, + "module": 1, + "strict": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "noImplicitReturns": true, + "noFallthroughCasesInSwitch": true, + "composite": true, + "outDir": "/user/username/projects/demo/lib/animals", + "rootDir": "/user/username/projects/demo/animals", + "configFilePath": "/user/username/projects/demo/animals/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -130,7 +185,7 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) -/user/username/projects/demo/animals/animal.ts (computed .d.ts during emit) +/user/username/projects/demo/animals/animal.ts (used version) /user/username/projects/demo/animals/index.ts (computed .d.ts during emit) /user/username/projects/demo/core/utilities.ts (used version) /user/username/projects/demo/animals/dog.ts (computed .d.ts during emit) @@ -225,7 +280,7 @@ export declare function createDog(): Dog; //// [/user/username/projects/demo/lib/animals/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../animals/animal.ts","../../animals/index.ts","../../core/utilities.ts","../../animals/dog.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-14984181202-export type Size = \"small\" | \"medium\" | \"large\";\r\nexport default interface Animal {\r\n size: Size;\r\n}\r\n","signature":"-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n"},{"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"},"25274411612-\r\nexport function makeRandomName() {\r\n return \"Bob!?! \";\r\n}\r\n\r\nexport function lastElementOf(arr: T[]): T | undefined {\r\n if (arr.length === 0) return undefined;\r\n return arr[arr.length - 1];\r\n}\r\n\r\n",{"version":"-10991948013-import Animal from '.';\r\nimport { makeRandomName } from '../core/utilities';\r\n\r\nexport interface Dog extends Animal {\r\n woof(): void;\r\n name: string;\r\n}\r\n\r\nexport function createDog(): Dog {\r\n return ({\r\n size: \"medium\",\r\n woof: function(this: Dog) {\r\n console.log(`${this.name} says \"Woof\"!`);\r\n },\r\n name: makeRandomName()\r\n });\r\n}\r\n\r\n","signature":"6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n"}],"root":[2,3,5],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../animals","strict":true,"target":1},"fileIdsList":[[3,4],[2,5],[3]],"referencedMap":[[5,1],[3,2]],"exportedModulesMap":[[5,3],[3,2]],"semanticDiagnosticsPerFile":[1,2,5,3,4],"latestChangedDtsFile":"./dog.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../animals/animal.ts","../../animals/index.ts","../../core/utilities.ts","../../animals/dog.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n",{"version":"-7220553464-import Animal from './animal';\n\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"},"-6723567162-export function makeRandomName() {\n return \"Bob!?! \";\n}\n\nexport function lastElementOf(arr: T[]): T | undefined {\n if (arr.length === 0) return undefined;\n return arr[arr.length - 1];\n}\n",{"version":"-18870194049-import Animal from '.';\nimport { makeRandomName } from '../core/utilities';\n\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\n\nexport function createDog(): Dog {\n return ({\n size: \"medium\",\n woof: function(this: Dog) {\n console.log(`${ this.name } says \"Woof\"!`);\n },\n name: makeRandomName()\n });\n}\n","signature":"6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n"}],"root":[2,3,5],"options":{"composite":true,"declaration":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../../animals","strict":true,"target":1},"fileIdsList":[[3,4],[2,5],[3]],"referencedMap":[[5,1],[3,2]],"exportedModulesMap":[[5,3],[3,2]],"semanticDiagnosticsPerFile":[1,2,5,3,4],"latestChangedDtsFile":"./dog.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/demo/lib/animals/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -261,31 +316,27 @@ export declare function createDog(): Dog; "affectsGlobalScope": true }, "../../animals/animal.ts": { - "original": { - "version": "-14984181202-export type Size = \"small\" | \"medium\" | \"large\";\r\nexport default interface Animal {\r\n size: Size;\r\n}\r\n", - "signature": "-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n" - }, - "version": "-14984181202-export type Size = \"small\" | \"medium\" | \"large\";\r\nexport default interface Animal {\r\n size: Size;\r\n}\r\n", + "version": "-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n", "signature": "-9289341318-export type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n" }, "../../animals/index.ts": { "original": { - "version": "-5382672599-import Animal from './animal';\r\n\r\nexport default Animal;\r\nimport { createDog, Dog } from './dog';\r\nexport { createDog, Dog };\r\n", + "version": "-7220553464-import Animal from './animal';\n\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" }, - "version": "-5382672599-import Animal from './animal';\r\n\r\nexport default Animal;\r\nimport { createDog, Dog } from './dog';\r\nexport { createDog, Dog };\r\n", + "version": "-7220553464-import Animal from './animal';\n\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" }, "../../core/utilities.ts": { - "version": "25274411612-\r\nexport function makeRandomName() {\r\n return \"Bob!?! \";\r\n}\r\n\r\nexport function lastElementOf(arr: T[]): T | undefined {\r\n if (arr.length === 0) return undefined;\r\n return arr[arr.length - 1];\r\n}\r\n\r\n", - "signature": "25274411612-\r\nexport function makeRandomName() {\r\n return \"Bob!?! \";\r\n}\r\n\r\nexport function lastElementOf(arr: T[]): T | undefined {\r\n if (arr.length === 0) return undefined;\r\n return arr[arr.length - 1];\r\n}\r\n\r\n" + "version": "-6723567162-export function makeRandomName() {\n return \"Bob!?! \";\n}\n\nexport function lastElementOf(arr: T[]): T | undefined {\n if (arr.length === 0) return undefined;\n return arr[arr.length - 1];\n}\n", + "signature": "-6723567162-export function makeRandomName() {\n return \"Bob!?! \";\n}\n\nexport function lastElementOf(arr: T[]): T | undefined {\n if (arr.length === 0) return undefined;\n return arr[arr.length - 1];\n}\n" }, "../../animals/dog.ts": { "original": { - "version": "-10991948013-import Animal from '.';\r\nimport { makeRandomName } from '../core/utilities';\r\n\r\nexport interface Dog extends Animal {\r\n woof(): void;\r\n name: string;\r\n}\r\n\r\nexport function createDog(): Dog {\r\n return ({\r\n size: \"medium\",\r\n woof: function(this: Dog) {\r\n console.log(`${this.name} says \"Woof\"!`);\r\n },\r\n name: makeRandomName()\r\n });\r\n}\r\n\r\n", + "version": "-18870194049-import Animal from '.';\nimport { makeRandomName } from '../core/utilities';\n\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\n\nexport function createDog(): Dog {\n return ({\n size: \"medium\",\n woof: function(this: Dog) {\n console.log(`${ this.name } says \"Woof\"!`);\n },\n name: makeRandomName()\n });\n}\n", "signature": "6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n" }, - "version": "-10991948013-import Animal from '.';\r\nimport { makeRandomName } from '../core/utilities';\r\n\r\nexport interface Dog extends Animal {\r\n woof(): void;\r\n name: string;\r\n}\r\n\r\nexport function createDog(): Dog {\r\n return ({\r\n size: \"medium\",\r\n woof: function(this: Dog) {\r\n console.log(`${this.name} says \"Woof\"!`);\r\n },\r\n name: makeRandomName()\r\n });\r\n}\r\n\r\n", + "version": "-18870194049-import Animal from '.';\nimport { makeRandomName } from '../core/utilities';\n\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\n\nexport function createDog(): Dog {\n return ({\n size: \"medium\",\n woof: function(this: Dog) {\n console.log(`${ this.name } says \"Woof\"!`);\n },\n name: makeRandomName()\n });\n}\n", "signature": "6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n" } }, @@ -345,6 +396,6 @@ export declare function createDog(): Dog; "latestChangedDtsFile": "./dog.d.ts" }, "version": "FakeTSVersion", - "size": 2578 + "size": 2349 } diff --git a/tests/baselines/reference/tscWatch/watchApi/extraFileExtensions-are-supported.js b/tests/baselines/reference/tscWatch/watchApi/extraFileExtensions-are-supported.js index 018087f7ecb84..a6f7156646061 100644 --- a/tests/baselines/reference/tscWatch/watchApi/extraFileExtensions-are-supported.js +++ b/tests/baselines/reference/tscWatch/watchApi/extraFileExtensions-are-supported.js @@ -32,8 +32,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/main.ts","/user/username/projects/myproject/other.vue"] -Program options: {"allowNonTsExtensions":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/main.ts", + "/user/username/projects/myproject/other.vue" +] +Program options: { + "allowNonTsExtensions": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -98,8 +104,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/main.ts","/user/username/projects/myproject/other.vue","/user/username/projects/myproject/other2.vue"] -Program options: {"allowNonTsExtensions":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/main.ts", + "/user/username/projects/myproject/other.vue", + "/user/username/projects/myproject/other2.vue" +] +Program options: { + "allowNonTsExtensions": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/watchApi/host-implements-does-not-implement-hasInvalidatedResolutions.js b/tests/baselines/reference/tscWatch/watchApi/host-implements-does-not-implement-hasInvalidatedResolutions.js index 57305309cc94c..1be6e8bfd46c6 100644 --- a/tests/baselines/reference/tscWatch/watchApi/host-implements-does-not-implement-hasInvalidatedResolutions.js +++ b/tests/baselines/reference/tscWatch/watchApi/host-implements-does-not-implement-hasInvalidatedResolutions.js @@ -1,7 +1,15 @@ currentDirectory:: /user/username/projects/myproject useCaseSensitiveFileNames: false Input:: //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"traceResolution":true,"extendedDiagnostics":true},"files":["main.ts"]} +{ + "compilerOptions": { + "traceResolution": true, + "extendedDiagnostics": true + }, + "files": [ + "main.ts" + ] +} //// [/user/username/projects/myproject/main.ts] import { foo } from "./other"; @@ -52,8 +60,14 @@ Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node -Program root files: ["/user/username/projects/myproject/main.ts"] -Program options: {"traceResolution":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/main.ts" +] +Program options: { + "traceResolution": true, + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -123,8 +137,14 @@ File '/user/username/projects/myproject/other.d.ts' exists - use it as a name re -Program root files: ["/user/username/projects/myproject/main.ts"] -Program options: {"traceResolution":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/main.ts" +] +Program options: { + "traceResolution": true, + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts @@ -169,8 +189,14 @@ File '/user/username/projects/myproject/other.d.ts' exists - use it as a name re -Program root files: ["/user/username/projects/myproject/main.ts"] -Program options: {"traceResolution":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/main.ts" +] +Program options: { + "traceResolution": true, + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts @@ -220,8 +246,14 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/other.ts 250 -Program root files: ["/user/username/projects/myproject/main.ts"] -Program options: {"traceResolution":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/main.ts" +] +Program options: { + "traceResolution": true, + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/watchApi/host-implements-hasInvalidatedResolutions.js b/tests/baselines/reference/tscWatch/watchApi/host-implements-hasInvalidatedResolutions.js index 48a062fde4be6..7a2db8ce02620 100644 --- a/tests/baselines/reference/tscWatch/watchApi/host-implements-hasInvalidatedResolutions.js +++ b/tests/baselines/reference/tscWatch/watchApi/host-implements-hasInvalidatedResolutions.js @@ -1,7 +1,15 @@ currentDirectory:: /user/username/projects/myproject useCaseSensitiveFileNames: false Input:: //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"traceResolution":true,"extendedDiagnostics":true},"files":["main.ts"]} +{ + "compilerOptions": { + "traceResolution": true, + "extendedDiagnostics": true + }, + "files": [ + "main.ts" + ] +} //// [/user/username/projects/myproject/main.ts] import { foo } from "./other"; @@ -52,8 +60,14 @@ Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node -Program root files: ["/user/username/projects/myproject/main.ts"] -Program options: {"traceResolution":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/main.ts" +] +Program options: { + "traceResolution": true, + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -136,8 +150,14 @@ CreatingProgramWith:: -Program root files: ["/user/username/projects/myproject/main.ts"] -Program options: {"traceResolution":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/main.ts" +] +Program options: { + "traceResolution": true, + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -187,8 +207,14 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/other.ts 250 -Program root files: ["/user/username/projects/myproject/main.ts"] -Program options: {"traceResolution":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/main.ts" +] +Program options: { + "traceResolution": true, + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/watchApi/noEmit-with-composite-with-emit-builder.js b/tests/baselines/reference/tscWatch/watchApi/noEmit-with-composite-with-emit-builder.js index 0e21ef51be0c3..cf6a66d9c83fb 100644 --- a/tests/baselines/reference/tscWatch/watchApi/noEmit-with-composite-with-emit-builder.js +++ b/tests/baselines/reference/tscWatch/watchApi/noEmit-with-composite-with-emit-builder.js @@ -1,7 +1,11 @@ currentDirectory:: / useCaseSensitiveFileNames: false Input:: //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"composite":true}} +{ + "compilerOptions": { + "composite": true + } +} //// [/user/username/projects/myproject/main.ts] export const x = 10; @@ -32,8 +36,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/main.ts","/user/username/projects/myproject/other.ts"] -Program options: {"composite":true,"noEmit":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/main.ts", + "/user/username/projects/myproject/other.ts" +] +Program options: { + "composite": true, + "noEmit": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -151,8 +162,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/main.ts","/user/username/projects/myproject/other.ts"] -Program options: {"composite":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/main.ts", + "/user/username/projects/myproject/other.ts" +] +Program options: { + "composite": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -329,8 +346,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/main.ts","/user/username/projects/myproject/other.ts"] -Program options: {"composite":true,"noEmit":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/main.ts", + "/user/username/projects/myproject/other.ts" +] +Program options: { + "composite": true, + "noEmit": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -445,8 +469,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/main.ts","/user/username/projects/myproject/other.ts"] -Program options: {"composite":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/main.ts", + "/user/username/projects/myproject/other.ts" +] +Program options: { + "composite": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -610,8 +640,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/main.ts","/user/username/projects/myproject/other.ts"] -Program options: {"composite":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/main.ts", + "/user/username/projects/myproject/other.ts" +] +Program options: { + "composite": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/watchApi/noEmit-with-composite-with-semantic-builder.js b/tests/baselines/reference/tscWatch/watchApi/noEmit-with-composite-with-semantic-builder.js index ae3152345d97f..45afed305753b 100644 --- a/tests/baselines/reference/tscWatch/watchApi/noEmit-with-composite-with-semantic-builder.js +++ b/tests/baselines/reference/tscWatch/watchApi/noEmit-with-composite-with-semantic-builder.js @@ -1,7 +1,11 @@ currentDirectory:: / useCaseSensitiveFileNames: false Input:: //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"composite":true}} +{ + "compilerOptions": { + "composite": true + } +} //// [/user/username/projects/myproject/main.ts] export const x = 10; @@ -32,8 +36,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/main.ts","/user/username/projects/myproject/other.ts"] -Program options: {"composite":true,"noEmit":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/main.ts", + "/user/username/projects/myproject/other.ts" +] +Program options: { + "composite": true, + "noEmit": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -158,8 +169,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/main.ts","/user/username/projects/myproject/other.ts"] -Program options: {"composite":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/main.ts", + "/user/username/projects/myproject/other.ts" +] +Program options: { + "composite": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -343,8 +360,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/main.ts","/user/username/projects/myproject/other.ts"] -Program options: {"composite":true,"noEmit":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/main.ts", + "/user/username/projects/myproject/other.ts" +] +Program options: { + "composite": true, + "noEmit": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -466,8 +490,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/main.ts","/user/username/projects/myproject/other.ts"] -Program options: {"composite":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/main.ts", + "/user/username/projects/myproject/other.ts" +] +Program options: { + "composite": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -638,8 +668,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/main.ts","/user/username/projects/myproject/other.ts"] -Program options: {"composite":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/main.ts", + "/user/username/projects/myproject/other.ts" +] +Program options: { + "composite": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/watchApi/noEmitOnError-with-composite-with-emit-builder.js b/tests/baselines/reference/tscWatch/watchApi/noEmitOnError-with-composite-with-emit-builder.js index 498d7ec1e4ecf..ba7886588aff3 100644 --- a/tests/baselines/reference/tscWatch/watchApi/noEmitOnError-with-composite-with-emit-builder.js +++ b/tests/baselines/reference/tscWatch/watchApi/noEmitOnError-with-composite-with-emit-builder.js @@ -1,7 +1,12 @@ currentDirectory:: / useCaseSensitiveFileNames: false Input:: //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"composite":true,"noEmitOnError":true}} +{ + "compilerOptions": { + "composite": true, + "noEmitOnError": true + } +} //// [/user/username/projects/myproject/main.ts] export const x: string = 10; @@ -37,8 +42,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/main.ts","/user/username/projects/myproject/other.ts"] -Program options: {"composite":true,"noEmitOnError":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/main.ts", + "/user/username/projects/myproject/other.ts" +] +Program options: { + "composite": true, + "noEmitOnError": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -202,8 +214,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/main.ts","/user/username/projects/myproject/other.ts"] -Program options: {"composite":true,"noEmitOnError":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/main.ts", + "/user/username/projects/myproject/other.ts" +] +Program options: { + "composite": true, + "noEmitOnError": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -361,8 +380,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/main.ts","/user/username/projects/myproject/other.ts"] -Program options: {"composite":true,"noEmitOnError":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/main.ts", + "/user/username/projects/myproject/other.ts" +] +Program options: { + "composite": true, + "noEmitOnError": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/watchApi/noEmitOnError-with-composite-with-semantic-builder.js b/tests/baselines/reference/tscWatch/watchApi/noEmitOnError-with-composite-with-semantic-builder.js index a287270efad82..ea8615f781ee2 100644 --- a/tests/baselines/reference/tscWatch/watchApi/noEmitOnError-with-composite-with-semantic-builder.js +++ b/tests/baselines/reference/tscWatch/watchApi/noEmitOnError-with-composite-with-semantic-builder.js @@ -1,7 +1,12 @@ currentDirectory:: / useCaseSensitiveFileNames: false Input:: //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"composite":true,"noEmitOnError":true}} +{ + "compilerOptions": { + "composite": true, + "noEmitOnError": true + } +} //// [/user/username/projects/myproject/main.ts] export const x: string = 10; @@ -37,8 +42,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/main.ts","/user/username/projects/myproject/other.ts"] -Program options: {"composite":true,"noEmitOnError":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/main.ts", + "/user/username/projects/myproject/other.ts" +] +Program options: { + "composite": true, + "noEmitOnError": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -209,8 +221,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/main.ts","/user/username/projects/myproject/other.ts"] -Program options: {"composite":true,"noEmitOnError":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/main.ts", + "/user/username/projects/myproject/other.ts" +] +Program options: { + "composite": true, + "noEmitOnError": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -375,8 +394,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/main.ts","/user/username/projects/myproject/other.ts"] -Program options: {"composite":true,"noEmitOnError":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/main.ts", + "/user/username/projects/myproject/other.ts" +] +Program options: { + "composite": true, + "noEmitOnError": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/watchApi/semantic-builder-emitOnlyDts.js b/tests/baselines/reference/tscWatch/watchApi/semantic-builder-emitOnlyDts.js index 25b6eed967c77..f9fd9f60d9db4 100644 --- a/tests/baselines/reference/tscWatch/watchApi/semantic-builder-emitOnlyDts.js +++ b/tests/baselines/reference/tscWatch/watchApi/semantic-builder-emitOnlyDts.js @@ -1,7 +1,12 @@ currentDirectory:: / useCaseSensitiveFileNames: false Input:: //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"composite":true,"noEmitOnError":true}} +{ + "compilerOptions": { + "composite": true, + "noEmitOnError": true + } +} //// [/user/username/projects/myproject/main.ts] export const x: string = 10; @@ -37,8 +42,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/main.ts","/user/username/projects/myproject/other.ts"] -Program options: {"composite":true,"noEmitOnError":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/main.ts", + "/user/username/projects/myproject/other.ts" +] +Program options: { + "composite": true, + "noEmitOnError": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -195,8 +207,15 @@ Output:: -Program root files: ["/user/username/projects/myproject/main.ts","/user/username/projects/myproject/other.ts"] -Program options: {"composite":true,"noEmitOnError":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/main.ts", + "/user/username/projects/myproject/other.ts" +] +Program options: { + "composite": true, + "noEmitOnError": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/watchApi/verifies-that-noEmit-is-handled-on-createSemanticDiagnosticsBuilderProgram.js b/tests/baselines/reference/tscWatch/watchApi/verifies-that-noEmit-is-handled-on-createSemanticDiagnosticsBuilderProgram.js index 27b59563fb602..39bff95fbeda5 100644 --- a/tests/baselines/reference/tscWatch/watchApi/verifies-that-noEmit-is-handled-on-createSemanticDiagnosticsBuilderProgram.js +++ b/tests/baselines/reference/tscWatch/watchApi/verifies-that-noEmit-is-handled-on-createSemanticDiagnosticsBuilderProgram.js @@ -32,8 +32,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/main.ts","/user/username/projects/myproject/other.ts"] -Program options: {"noEmit":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/main.ts", + "/user/username/projects/myproject/other.ts" +] +Program options: { + "noEmit": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -92,8 +98,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/main.ts","/user/username/projects/myproject/other.ts"] -Program options: {"noEmit":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/main.ts", + "/user/username/projects/myproject/other.ts" +] +Program options: { + "noEmit": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/watchApi/verify-that-module-resolution-with-json-extension-works-when-returned-without-extension.js b/tests/baselines/reference/tscWatch/watchApi/verify-that-module-resolution-with-json-extension-works-when-returned-without-extension.js index f6a4f068a3078..4dbba4366cf38 100644 --- a/tests/baselines/reference/tscWatch/watchApi/verify-that-module-resolution-with-json-extension-works-when-returned-without-extension.js +++ b/tests/baselines/reference/tscWatch/watchApi/verify-that-module-resolution-with-json-extension-works-when-returned-without-extension.js @@ -17,10 +17,20 @@ interface Array { length: number; [n: number]: T; } import settings from './settings.json'; //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"module":"commonjs","resolveJsonModule":true},"files":["index.ts"]} +{ + "compilerOptions": { + "module": "commonjs", + "resolveJsonModule": true + }, + "files": [ + "index.ts" + ] +} //// [/user/username/projects/myproject/settings.json] -{"content":"Print this"} +{ + "content": "Print this" +} /a/lib/tsc.js --w --p /user/username/projects/myproject/tsconfig.json @@ -34,7 +44,7 @@ Output::    ~~~~~~~~ settings.json:1:1 - 1 {"content":"Print this"} + 1 {   ~ This module is declared with 'export =', and can only be used with a default import when using the 'esModuleInterop' flag. @@ -42,8 +52,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/index.ts"] -Program options: {"module":1,"resolveJsonModule":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/index.ts" +] +Program options: { + "module": 1, + "resolveJsonModule": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/watchApi/verify-that-the-error-count-is-correctly-passed-down-to-the-watch-status-reporter.js b/tests/baselines/reference/tscWatch/watchApi/verify-that-the-error-count-is-correctly-passed-down-to-the-watch-status-reporter.js index 1e8968cd06b31..0db5c27c2fc5f 100644 --- a/tests/baselines/reference/tscWatch/watchApi/verify-that-the-error-count-is-correctly-passed-down-to-the-watch-status-reporter.js +++ b/tests/baselines/reference/tscWatch/watchApi/verify-that-the-error-count-is-correctly-passed-down-to-the-watch-status-reporter.js @@ -17,7 +17,14 @@ interface Array { length: number; [n: number]: T; } let compiler = new Compiler(); for (let i = 0; j < 5; i++) {} //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"module":"commonjs"},"files":["index.ts"]} +{ + "compilerOptions": { + "module": "commonjs" + }, + "files": [ + "index.ts" + ] +} /a/lib/tsc.js --w --p /user/username/projects/myproject/tsconfig.json @@ -44,8 +51,13 @@ Output:: -Program root files: ["/user/username/projects/myproject/index.ts"] -Program options: {"module":1,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/index.ts" +] +Program options: { + "module": 1, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/watchApi/when-emitting-with-emitOnlyDtsFiles-with-outFile.js b/tests/baselines/reference/tscWatch/watchApi/when-emitting-with-emitOnlyDtsFiles-with-outFile.js index f65d0bfa97dbc..92c59f037d670 100644 --- a/tests/baselines/reference/tscWatch/watchApi/when-emitting-with-emitOnlyDtsFiles-with-outFile.js +++ b/tests/baselines/reference/tscWatch/watchApi/when-emitting-with-emitOnlyDtsFiles-with-outFile.js @@ -1,7 +1,18 @@ currentDirectory:: /user/username/projects/myproject useCaseSensitiveFileNames: false Input:: //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"composite":true,"noEmitOnError":true,"module":"amd","outFile":"outFile.js"},"files":["a.ts","b.ts"]} +{ + "compilerOptions": { + "composite": true, + "noEmitOnError": true, + "module": "amd", + "outFile": "outFile.js" + }, + "files": [ + "a.ts", + "b.ts" + ] +} //// [/user/username/projects/myproject/a.ts] export const x = 10; @@ -49,8 +60,18 @@ Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts"] -Program options: {"composite":true,"noEmitOnError":true,"module":2,"outFile":"/user/username/projects/myproject/outFile.js","extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts" +] +Program options: { + "composite": true, + "noEmitOnError": true, + "module": 2, + "outFile": "/user/username/projects/myproject/outFile.js", + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -102,8 +123,18 @@ CreatingProgramWith:: options: {"composite":true,"noEmitOnError":true,"module":2,"outFile":"/user/username/projects/myproject/outFile.js","extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts"] -Program options: {"composite":true,"noEmitOnError":true,"module":2,"outFile":"/user/username/projects/myproject/outFile.js","extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts" +] +Program options: { + "composite": true, + "noEmitOnError": true, + "module": 2, + "outFile": "/user/username/projects/myproject/outFile.js", + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/watchApi/when-emitting-with-emitOnlyDtsFiles.js b/tests/baselines/reference/tscWatch/watchApi/when-emitting-with-emitOnlyDtsFiles.js index 64897b927b7b9..c07cf14749915 100644 --- a/tests/baselines/reference/tscWatch/watchApi/when-emitting-with-emitOnlyDtsFiles.js +++ b/tests/baselines/reference/tscWatch/watchApi/when-emitting-with-emitOnlyDtsFiles.js @@ -1,7 +1,17 @@ currentDirectory:: /user/username/projects/myproject useCaseSensitiveFileNames: false Input:: //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"composite":true,"noEmitOnError":true,"module":"amd"},"files":["a.ts","b.ts"]} +{ + "compilerOptions": { + "composite": true, + "noEmitOnError": true, + "module": "amd" + }, + "files": [ + "a.ts", + "b.ts" + ] +} //// [/user/username/projects/myproject/a.ts] export const x = 10; @@ -49,8 +59,17 @@ Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts"] -Program options: {"composite":true,"noEmitOnError":true,"module":2,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts" +] +Program options: { + "composite": true, + "noEmitOnError": true, + "module": 2, + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -191,8 +210,17 @@ CreatingProgramWith:: options: {"composite":true,"noEmitOnError":true,"module":2,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} -Program root files: ["/user/username/projects/myproject/a.ts","/user/username/projects/myproject/b.ts"] -Program options: {"composite":true,"noEmitOnError":true,"module":2,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/a.ts", + "/user/username/projects/myproject/b.ts" +] +Program options: { + "composite": true, + "noEmitOnError": true, + "module": 2, + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/watchApi/when-new-file-is-added-to-the-referenced-project-with-host-implementing-getParsedCommandLine-without-implementing-useSourceOfProjectReferenceRedirect.js b/tests/baselines/reference/tscWatch/watchApi/when-new-file-is-added-to-the-referenced-project-with-host-implementing-getParsedCommandLine-without-implementing-useSourceOfProjectReferenceRedirect.js index e7d34a69b9d44..e79b0224fa869 100644 --- a/tests/baselines/reference/tscWatch/watchApi/when-new-file-is-added-to-the-referenced-project-with-host-implementing-getParsedCommandLine-without-implementing-useSourceOfProjectReferenceRedirect.js +++ b/tests/baselines/reference/tscWatch/watchApi/when-new-file-is-added-to-the-referenced-project-with-host-implementing-getParsedCommandLine-without-implementing-useSourceOfProjectReferenceRedirect.js @@ -1,7 +1,15 @@ currentDirectory:: / useCaseSensitiveFileNames: false Input:: //// [/user/username/projects/myproject/projects/project1/tsconfig.json] -{"compilerOptions":{"module":"none","composite":true},"exclude":["temp"]} +{ + "compilerOptions": { + "module": "none", + "composite": true + }, + "exclude": [ + "temp" + ] +} //// [/user/username/projects/myproject/projects/project1/class1.ts] class class1 {} @@ -10,7 +18,17 @@ class class1 {} declare class class1 {} //// [/user/username/projects/myproject/projects/project2/tsconfig.json] -{"compilerOptions":{"module":"none","composite":true},"references":[{"path":"../project1"}]} +{ + "compilerOptions": { + "module": "none", + "composite": true + }, + "references": [ + { + "path": "../project1" + } + ] +} //// [/user/username/projects/myproject/projects/project2/class2.ts] class class2 {} @@ -61,8 +79,15 @@ DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/projects Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/projects/project2 1 undefined Wild card directory -Program root files: ["/user/username/projects/myproject/projects/project2/class2.ts"] -Program options: {"module":0,"composite":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/projects/project2/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/projects/project2/class2.ts" +] +Program options: { + "module": 0, + "composite": true, + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/myproject/projects/project2/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -212,17 +237,28 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/projects/proj The file is in the program because: Output from referenced project '/user/username/projects/myproject/projects/project1/tsconfig.json' included because '--module' is specified as 'none' - user/username/projects/myproject/projects/project2/tsconfig.json:1:69 - 1 {"compilerOptions":{"module":"none","composite":true},"references":[{"path":"../project1"}]} -    ~~~~~~~~~~~~~~~~~~~~~~ + user/username/projects/myproject/projects/project2/tsconfig.json:7:5 + 7 { +    ~ + 8 "path": "../project1" +   ~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 9 } +   ~~~~~ File is output from referenced project specified here. [12:00:46 AM] Found 1 error. Watching for file changes. -Program root files: ["/user/username/projects/myproject/projects/project2/class2.ts"] -Program options: {"module":0,"composite":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/projects/project2/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/projects/project2/class2.ts" +] +Program options: { + "module": 0, + "composite": true, + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/myproject/projects/project2/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -328,8 +364,15 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/projects/proj -Program root files: ["/user/username/projects/myproject/projects/project2/class2.ts"] -Program options: {"module":0,"composite":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/projects/project2/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/projects/project2/class2.ts" +] +Program options: { + "module": 0, + "composite": true, + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/myproject/projects/project2/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -504,17 +547,28 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/projects/proj The file is in the program because: Output from referenced project '/user/username/projects/myproject/projects/project1/tsconfig.json' included because '--module' is specified as 'none' - user/username/projects/myproject/projects/project2/tsconfig.json:1:69 - 1 {"compilerOptions":{"module":"none","composite":true},"references":[{"path":"../project1"}]} -    ~~~~~~~~~~~~~~~~~~~~~~ + user/username/projects/myproject/projects/project2/tsconfig.json:7:5 + 7 { +    ~ + 8 "path": "../project1" +   ~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 9 } +   ~~~~~ File is output from referenced project specified here. [12:01:12 AM] Found 1 error. Watching for file changes. -Program root files: ["/user/username/projects/myproject/projects/project2/class2.ts"] -Program options: {"module":0,"composite":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/projects/project2/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/projects/project2/class2.ts" +] +Program options: { + "module": 0, + "composite": true, + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/myproject/projects/project2/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -689,8 +743,15 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/projects/proj -Program root files: ["/user/username/projects/myproject/projects/project2/class2.ts"] -Program options: {"module":0,"composite":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/projects/project2/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/projects/project2/class2.ts" +] +Program options: { + "module": 0, + "composite": true, + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/myproject/projects/project2/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/watchApi/when-new-file-is-added-to-the-referenced-project-with-host-implementing-getParsedCommandLine.js b/tests/baselines/reference/tscWatch/watchApi/when-new-file-is-added-to-the-referenced-project-with-host-implementing-getParsedCommandLine.js index 3b3d19d139cc0..deba6702fce88 100644 --- a/tests/baselines/reference/tscWatch/watchApi/when-new-file-is-added-to-the-referenced-project-with-host-implementing-getParsedCommandLine.js +++ b/tests/baselines/reference/tscWatch/watchApi/when-new-file-is-added-to-the-referenced-project-with-host-implementing-getParsedCommandLine.js @@ -1,7 +1,15 @@ currentDirectory:: / useCaseSensitiveFileNames: false Input:: //// [/user/username/projects/myproject/projects/project1/tsconfig.json] -{"compilerOptions":{"module":"none","composite":true},"exclude":["temp"]} +{ + "compilerOptions": { + "module": "none", + "composite": true + }, + "exclude": [ + "temp" + ] +} //// [/user/username/projects/myproject/projects/project1/class1.ts] class class1 {} @@ -10,7 +18,17 @@ class class1 {} declare class class1 {} //// [/user/username/projects/myproject/projects/project2/tsconfig.json] -{"compilerOptions":{"module":"none","composite":true},"references":[{"path":"../project1"}]} +{ + "compilerOptions": { + "module": "none", + "composite": true + }, + "references": [ + { + "path": "../project1" + } + ] +} //// [/user/username/projects/myproject/projects/project2/class2.ts] class class2 {} @@ -61,8 +79,15 @@ DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/projects Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/projects/project2 1 undefined Wild card directory -Program root files: ["/user/username/projects/myproject/projects/project2/class2.ts"] -Program options: {"module":0,"composite":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/projects/project2/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/projects/project2/class2.ts" +] +Program options: { + "module": 0, + "composite": true, + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/myproject/projects/project2/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -212,8 +237,15 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/projects/proj -Program root files: ["/user/username/projects/myproject/projects/project2/class2.ts"] -Program options: {"module":0,"composite":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/projects/project2/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/projects/project2/class2.ts" +] +Program options: { + "module": 0, + "composite": true, + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/myproject/projects/project2/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/watchApi/when-watching-referenced-project-when-there-is-no-config-file-name.js b/tests/baselines/reference/tscWatch/watchApi/when-watching-referenced-project-when-there-is-no-config-file-name.js index a5b31158ddbfd..b562174c7e490 100644 --- a/tests/baselines/reference/tscWatch/watchApi/when-watching-referenced-project-when-there-is-no-config-file-name.js +++ b/tests/baselines/reference/tscWatch/watchApi/when-watching-referenced-project-when-there-is-no-config-file-name.js @@ -1,7 +1,19 @@ currentDirectory:: / useCaseSensitiveFileNames: false Input:: //// [/user/username/projects/project/tsconfig.json] -{"compilerOptions":{"types":[]},"files":["app.ts"],"references":[{"path":"./lib"}]} +{ + "compilerOptions": { + "types": [] + }, + "files": [ + "app.ts" + ], + "references": [ + { + "path": "./lib" + } + ] +} //// [/user/username/projects/project/app.ts] import { one } from './lib'; @@ -9,10 +21,23 @@ console.log(one); //// [/user/username/projects/project/lib/tsconfig.json] -{"compilerOptions":{"composite":true,"types":[]},"files":["index.ts"]} +{ + "compilerOptions": { + "composite": true, + "types": [] + }, + "files": [ + "index.ts" + ] +} //// [/user/username/projects/project/lib/tsconfig.base.json] -{"compilerOptions":{"composite":true,"types":[]}} +{ + "compilerOptions": { + "composite": true, + "types": [] + } +} //// [/user/username/projects/project/lib/index.ts] export const one = 1; @@ -59,8 +84,14 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/project/ -Program root files: ["/user/username/projects/project/app.ts"] -Program options: {"types":[],"extendedDiagnostics":true,"configFilePath":"/user/username/projects/project/tsconfig.json"} +Program root files: [ + "/user/username/projects/project/app.ts" +] +Program options: { + "types": [], + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -105,7 +136,14 @@ Change:: Modify lib tsconfig Input:: //// [/user/username/projects/project/lib/tsconfig.json] -{"compilerOptions":{"composite":true},"files":["index.ts"]} +{ + "compilerOptions": { + "composite": true + }, + "files": [ + "index.ts" + ] +} Before running Timeout callback:: count: 1 @@ -127,8 +165,14 @@ CreatingProgramWith:: -Program root files: ["/user/username/projects/project/app.ts"] -Program options: {"types":[],"extendedDiagnostics":true,"configFilePath":"/user/username/projects/project/tsconfig.json"} +Program root files: [ + "/user/username/projects/project/app.ts" +] +Program options: { + "types": [], + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/watchApi/when-watching-referenced-project-with-extends-when-there-is-no-config-file-name.js b/tests/baselines/reference/tscWatch/watchApi/when-watching-referenced-project-with-extends-when-there-is-no-config-file-name.js index b7757a47cd7cf..d61ce49f7a5c7 100644 --- a/tests/baselines/reference/tscWatch/watchApi/when-watching-referenced-project-with-extends-when-there-is-no-config-file-name.js +++ b/tests/baselines/reference/tscWatch/watchApi/when-watching-referenced-project-with-extends-when-there-is-no-config-file-name.js @@ -1,7 +1,19 @@ currentDirectory:: / useCaseSensitiveFileNames: false Input:: //// [/user/username/projects/project/tsconfig.json] -{"compilerOptions":{"types":[]},"files":["app.ts"],"references":[{"path":"./lib"}]} +{ + "compilerOptions": { + "types": [] + }, + "files": [ + "app.ts" + ], + "references": [ + { + "path": "./lib" + } + ] +} //// [/user/username/projects/project/app.ts] import { one } from './lib'; @@ -9,10 +21,20 @@ console.log(one); //// [/user/username/projects/project/lib/tsconfig.json] -{"extends":"./tsconfig.base.json","files":["index.ts"]} +{ + "extends": "./tsconfig.base.json", + "files": [ + "index.ts" + ] +} //// [/user/username/projects/project/lib/tsconfig.base.json] -{"compilerOptions":{"composite":true,"types":[]}} +{ + "compilerOptions": { + "composite": true, + "types": [] + } +} //// [/user/username/projects/project/lib/index.ts] export const one = 1; @@ -60,8 +82,14 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/project/ -Program root files: ["/user/username/projects/project/app.ts"] -Program options: {"types":[],"extendedDiagnostics":true,"configFilePath":"/user/username/projects/project/tsconfig.json"} +Program root files: [ + "/user/username/projects/project/app.ts" +] +Program options: { + "types": [], + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -108,7 +136,15 @@ Change:: Modify lib tsconfig Input:: //// [/user/username/projects/project/lib/tsconfig.json] -{"extends":"./tsconfig.base.json","compilerOptions":{"typeRoots":[]},"files":["index.ts"]} +{ + "extends": "./tsconfig.base.json", + "compilerOptions": { + "typeRoots": [] + }, + "files": [ + "index.ts" + ] +} Before running Timeout callback:: count: 1 @@ -130,8 +166,14 @@ CreatingProgramWith:: -Program root files: ["/user/username/projects/project/app.ts"] -Program options: {"types":[],"extendedDiagnostics":true,"configFilePath":"/user/username/projects/project/tsconfig.json"} +Program root files: [ + "/user/username/projects/project/app.ts" +] +Program options: { + "types": [], + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -149,7 +191,11 @@ Change:: Modify lib extends Input:: //// [/user/username/projects/project/lib/tsconfig.base.json] -{"compilerOptions":{"composite":true}} +{ + "compilerOptions": { + "composite": true + } +} Before running Timeout callback:: count: 1 @@ -171,8 +217,14 @@ CreatingProgramWith:: -Program root files: ["/user/username/projects/project/app.ts"] -Program options: {"types":[],"extendedDiagnostics":true,"configFilePath":"/user/username/projects/project/tsconfig.json"} +Program root files: [ + "/user/username/projects/project/app.ts" +] +Program options: { + "types": [], + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/watchApi/without-timesouts-on-host-program-gets-updated.js b/tests/baselines/reference/tscWatch/watchApi/without-timesouts-on-host-program-gets-updated.js index 80aad326d0124..c37ab8b03f455 100644 --- a/tests/baselines/reference/tscWatch/watchApi/without-timesouts-on-host-program-gets-updated.js +++ b/tests/baselines/reference/tscWatch/watchApi/without-timesouts-on-host-program-gets-updated.js @@ -29,8 +29,12 @@ Output:: -Program root files: ["/user/username/projects/myproject/main.ts"] -Program options: {"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/main.ts" +] +Program options: { + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -83,8 +87,13 @@ Output:: -Program root files: ["/user/username/projects/myproject/bar.ts","/user/username/projects/myproject/main.ts"] -Program options: {"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/bar.ts", + "/user/username/projects/myproject/main.ts" +] +Program options: { + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/watchEnvironment/fsEvent-for-change-is-repeated.js b/tests/baselines/reference/tscWatch/watchEnvironment/fsEvent-for-change-is-repeated.js index b2e0f7ef8e9a1..8f7d652285479 100644 --- a/tests/baselines/reference/tscWatch/watchEnvironment/fsEvent-for-change-is-repeated.js +++ b/tests/baselines/reference/tscWatch/watchEnvironment/fsEvent-for-change-is-repeated.js @@ -36,8 +36,13 @@ Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node -Program root files: ["main.ts"] -Program options: {"watch":true,"extendedDiagnostics":true} +Program root files: [ + "main.ts" +] +Program options: { + "watch": true, + "extendedDiagnostics": true +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -94,8 +99,13 @@ CreatingProgramWith:: -Program root files: ["main.ts"] -Program options: {"watch":true,"extendedDiagnostics":true} +Program root files: [ + "main.ts" +] +Program options: { + "watch": true, + "extendedDiagnostics": true +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -156,8 +166,13 @@ CreatingProgramWith:: -Program root files: ["main.ts"] -Program options: {"watch":true,"extendedDiagnostics":true} +Program root files: [ + "main.ts" +] +Program options: { + "watch": true, + "extendedDiagnostics": true +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/watchEnvironment/fsWatch/when-using-file-watching-thats-on-inode-when-rename-event-ends-with-tilde.js b/tests/baselines/reference/tscWatch/watchEnvironment/fsWatch/when-using-file-watching-thats-on-inode-when-rename-event-ends-with-tilde.js index e2bc97e462f9e..b489ab2dc7b29 100644 --- a/tests/baselines/reference/tscWatch/watchEnvironment/fsWatch/when-using-file-watching-thats-on-inode-when-rename-event-ends-with-tilde.js +++ b/tests/baselines/reference/tscWatch/watchEnvironment/fsWatch/when-using-file-watching-thats-on-inode-when-rename-event-ends-with-tilde.js @@ -20,7 +20,15 @@ import { foo } from "./foo"; foo(); export function foo(): string; //// [/user/username/projects/myproject/tsconfig.json] Inode:: 10 -{"watchOptions":{"watchFile":"useFsEvents"},"files":["foo.d.ts","main.ts"]} +{ + "watchOptions": { + "watchFile": "useFsEvents" + }, + "files": [ + "foo.d.ts", + "main.ts" + ] +} /a/lib/tsc.js -w --extendedDiagnostics @@ -48,8 +56,15 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec -Program root files: ["/user/username/projects/myproject/foo.d.ts","/user/username/projects/myproject/main.ts"] -Program options: {"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/foo.d.ts", + "/user/username/projects/myproject/main.ts" +] +Program options: { + "watch": true, + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -178,8 +193,15 @@ CreatingProgramWith:: -Program root files: ["/user/username/projects/myproject/foo.d.ts","/user/username/projects/myproject/main.ts"] -Program options: {"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/foo.d.ts", + "/user/username/projects/myproject/main.ts" +] +Program options: { + "watch": true, + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts @@ -272,8 +294,15 @@ CreatingProgramWith:: -Program root files: ["/user/username/projects/myproject/foo.d.ts","/user/username/projects/myproject/main.ts"] -Program options: {"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/foo.d.ts", + "/user/username/projects/myproject/main.ts" +] +Program options: { + "watch": true, + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/watchEnvironment/fsWatch/when-using-file-watching-thats-on-inode-when-rename-occurs-when-file-is-still-on-the-disk.js b/tests/baselines/reference/tscWatch/watchEnvironment/fsWatch/when-using-file-watching-thats-on-inode-when-rename-occurs-when-file-is-still-on-the-disk.js index 1e46e82d9ba1c..69a19f1fb5bbc 100644 --- a/tests/baselines/reference/tscWatch/watchEnvironment/fsWatch/when-using-file-watching-thats-on-inode-when-rename-occurs-when-file-is-still-on-the-disk.js +++ b/tests/baselines/reference/tscWatch/watchEnvironment/fsWatch/when-using-file-watching-thats-on-inode-when-rename-occurs-when-file-is-still-on-the-disk.js @@ -20,7 +20,15 @@ import { foo } from "./foo"; foo(); export declare function foo(): string; //// [/user/username/projects/myproject/tsconfig.json] Inode:: 10 -{"watchOptions":{"watchFile":"useFsEvents"},"files":["foo.ts","main.ts"]} +{ + "watchOptions": { + "watchFile": "useFsEvents" + }, + "files": [ + "foo.ts", + "main.ts" + ] +} /a/lib/tsc.js -w --extendedDiagnostics @@ -44,8 +52,15 @@ Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node -Program root files: ["/user/username/projects/myproject/foo.ts","/user/username/projects/myproject/main.ts"] -Program options: {"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/foo.ts", + "/user/username/projects/myproject/main.ts" +] +Program options: { + "watch": true, + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -148,8 +163,15 @@ CreatingProgramWith:: -Program root files: ["/user/username/projects/myproject/foo.ts","/user/username/projects/myproject/main.ts"] -Program options: {"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/foo.ts", + "/user/username/projects/myproject/main.ts" +] +Program options: { + "watch": true, + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -222,8 +244,15 @@ CreatingProgramWith:: -Program root files: ["/user/username/projects/myproject/foo.ts","/user/username/projects/myproject/main.ts"] -Program options: {"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/foo.ts", + "/user/username/projects/myproject/main.ts" +] +Program options: { + "watch": true, + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/watchEnvironment/fsWatch/when-using-file-watching-thats-on-inode.js b/tests/baselines/reference/tscWatch/watchEnvironment/fsWatch/when-using-file-watching-thats-on-inode.js index 542706ed57178..0679bcf1cf9d7 100644 --- a/tests/baselines/reference/tscWatch/watchEnvironment/fsWatch/when-using-file-watching-thats-on-inode.js +++ b/tests/baselines/reference/tscWatch/watchEnvironment/fsWatch/when-using-file-watching-thats-on-inode.js @@ -20,7 +20,15 @@ import { foo } from "./foo"; foo(); export function foo(): string; //// [/user/username/projects/myproject/tsconfig.json] Inode:: 10 -{"watchOptions":{"watchFile":"useFsEvents"},"files":["foo.d.ts","main.ts"]} +{ + "watchOptions": { + "watchFile": "useFsEvents" + }, + "files": [ + "foo.d.ts", + "main.ts" + ] +} /a/lib/tsc.js -w --extendedDiagnostics @@ -48,8 +56,15 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec -Program root files: ["/user/username/projects/myproject/foo.d.ts","/user/username/projects/myproject/main.ts"] -Program options: {"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/foo.d.ts", + "/user/username/projects/myproject/main.ts" +] +Program options: { + "watch": true, + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -166,8 +181,15 @@ CreatingProgramWith:: -Program root files: ["/user/username/projects/myproject/foo.d.ts","/user/username/projects/myproject/main.ts"] -Program options: {"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/foo.d.ts", + "/user/username/projects/myproject/main.ts" +] +Program options: { + "watch": true, + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts @@ -248,8 +270,15 @@ CreatingProgramWith:: -Program root files: ["/user/username/projects/myproject/foo.d.ts","/user/username/projects/myproject/main.ts"] -Program options: {"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/foo.d.ts", + "/user/username/projects/myproject/main.ts" +] +Program options: { + "watch": true, + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/watchEnvironment/fsWatch/when-using-file-watching-thats-when-rename-occurs-when-file-is-still-on-the-disk.js b/tests/baselines/reference/tscWatch/watchEnvironment/fsWatch/when-using-file-watching-thats-when-rename-occurs-when-file-is-still-on-the-disk.js index c39cbae1f9108..8fa09c61872ef 100644 --- a/tests/baselines/reference/tscWatch/watchEnvironment/fsWatch/when-using-file-watching-thats-when-rename-occurs-when-file-is-still-on-the-disk.js +++ b/tests/baselines/reference/tscWatch/watchEnvironment/fsWatch/when-using-file-watching-thats-when-rename-occurs-when-file-is-still-on-the-disk.js @@ -20,7 +20,15 @@ import { foo } from "./foo"; foo(); export declare function foo(): string; //// [/user/username/projects/myproject/tsconfig.json] -{"watchOptions":{"watchFile":"useFsEvents"},"files":["foo.ts","main.ts"]} +{ + "watchOptions": { + "watchFile": "useFsEvents" + }, + "files": [ + "foo.ts", + "main.ts" + ] +} /a/lib/tsc.js -w --extendedDiagnostics @@ -44,8 +52,15 @@ Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node -Program root files: ["/user/username/projects/myproject/foo.ts","/user/username/projects/myproject/main.ts"] -Program options: {"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/foo.ts", + "/user/username/projects/myproject/main.ts" +] +Program options: { + "watch": true, + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -127,8 +142,15 @@ CreatingProgramWith:: -Program root files: ["/user/username/projects/myproject/foo.ts","/user/username/projects/myproject/main.ts"] -Program options: {"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/foo.ts", + "/user/username/projects/myproject/main.ts" +] +Program options: { + "watch": true, + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts @@ -175,8 +197,15 @@ CreatingProgramWith:: -Program root files: ["/user/username/projects/myproject/foo.ts","/user/username/projects/myproject/main.ts"] -Program options: {"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/foo.ts", + "/user/username/projects/myproject/main.ts" +] +Program options: { + "watch": true, + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/watchEnvironment/watchDirectories/uses-non-recursive-dynamic-polling-when-renaming-file-in-subfolder.js b/tests/baselines/reference/tscWatch/watchEnvironment/watchDirectories/uses-non-recursive-dynamic-polling-when-renaming-file-in-subfolder.js index b88c0010d0904..9f1e85fc3db78 100644 --- a/tests/baselines/reference/tscWatch/watchEnvironment/watchDirectories/uses-non-recursive-dynamic-polling-when-renaming-file-in-subfolder.js +++ b/tests/baselines/reference/tscWatch/watchEnvironment/watchDirectories/uses-non-recursive-dynamic-polling-when-renaming-file-in-subfolder.js @@ -4,7 +4,11 @@ Input:: //// [/a/username/project/tsconfig.json] -{"watchOptions":{"synchronousWatchDirectory":true}} +{ + "watchOptions": { + "synchronousWatchDirectory": true + } +} //// [/a/lib/lib.d.ts] /// @@ -29,8 +33,14 @@ Output:: -Program root files: ["/a/username/project/src/file1.ts"] -Program options: {"watch":true,"project":"/a/username/project/tsconfig.json","configFilePath":"/a/username/project/tsconfig.json"} +Program root files: [ + "/a/username/project/src/file1.ts" +] +Program options: { + "watch": true, + "project": "/a/username/project/tsconfig.json", + "configFilePath": "/a/username/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -89,8 +99,14 @@ Output:: -Program root files: ["/a/username/project/src/file2.ts"] -Program options: {"watch":true,"project":"/a/username/project/tsconfig.json","configFilePath":"/a/username/project/tsconfig.json"} +Program root files: [ + "/a/username/project/src/file2.ts" +] +Program options: { + "watch": true, + "project": "/a/username/project/tsconfig.json", + "configFilePath": "/a/username/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/watchEnvironment/watchDirectories/uses-non-recursive-watchDirectory-when-renaming-file-in-subfolder.js b/tests/baselines/reference/tscWatch/watchEnvironment/watchDirectories/uses-non-recursive-watchDirectory-when-renaming-file-in-subfolder.js index 3067d9f39aba9..1d98f7378fcd5 100644 --- a/tests/baselines/reference/tscWatch/watchEnvironment/watchDirectories/uses-non-recursive-watchDirectory-when-renaming-file-in-subfolder.js +++ b/tests/baselines/reference/tscWatch/watchEnvironment/watchDirectories/uses-non-recursive-watchDirectory-when-renaming-file-in-subfolder.js @@ -4,7 +4,11 @@ Input:: //// [/a/username/project/tsconfig.json] -{"watchOptions":{"synchronousWatchDirectory":true}} +{ + "watchOptions": { + "synchronousWatchDirectory": true + } +} //// [/a/lib/lib.d.ts] /// @@ -29,8 +33,14 @@ Output:: -Program root files: ["/a/username/project/src/file1.ts"] -Program options: {"watch":true,"project":"/a/username/project/tsconfig.json","configFilePath":"/a/username/project/tsconfig.json"} +Program root files: [ + "/a/username/project/src/file1.ts" +] +Program options: { + "watch": true, + "project": "/a/username/project/tsconfig.json", + "configFilePath": "/a/username/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -85,8 +95,14 @@ Output:: -Program root files: ["/a/username/project/src/file2.ts"] -Program options: {"watch":true,"project":"/a/username/project/tsconfig.json","configFilePath":"/a/username/project/tsconfig.json"} +Program root files: [ + "/a/username/project/src/file2.ts" +] +Program options: { + "watch": true, + "project": "/a/username/project/tsconfig.json", + "configFilePath": "/a/username/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/watchEnvironment/watchDirectories/uses-watchFile-when-renaming-file-in-subfolder.js b/tests/baselines/reference/tscWatch/watchEnvironment/watchDirectories/uses-watchFile-when-renaming-file-in-subfolder.js index 26dc21eb48748..6b93a7faa1334 100644 --- a/tests/baselines/reference/tscWatch/watchEnvironment/watchDirectories/uses-watchFile-when-renaming-file-in-subfolder.js +++ b/tests/baselines/reference/tscWatch/watchEnvironment/watchDirectories/uses-watchFile-when-renaming-file-in-subfolder.js @@ -4,7 +4,11 @@ Input:: //// [/a/username/project/tsconfig.json] -{"watchOptions":{"synchronousWatchDirectory":true}} +{ + "watchOptions": { + "synchronousWatchDirectory": true + } +} //// [/a/lib/lib.d.ts] /// @@ -29,8 +33,14 @@ Output:: -Program root files: ["/a/username/project/src/file1.ts"] -Program options: {"watch":true,"project":"/a/username/project/tsconfig.json","configFilePath":"/a/username/project/tsconfig.json"} +Program root files: [ + "/a/username/project/src/file1.ts" +] +Program options: { + "watch": true, + "project": "/a/username/project/tsconfig.json", + "configFilePath": "/a/username/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -86,8 +96,14 @@ Output:: -Program root files: ["/a/username/project/src/file2.ts"] -Program options: {"watch":true,"project":"/a/username/project/tsconfig.json","configFilePath":"/a/username/project/tsconfig.json"} +Program root files: [ + "/a/username/project/src/file2.ts" +] +Program options: { + "watch": true, + "project": "/a/username/project/tsconfig.json", + "configFilePath": "/a/username/project/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/watchEnvironment/watchDirectories/when-there-are-symlinks-to-folders-in-recursive-folders.js b/tests/baselines/reference/tscWatch/watchEnvironment/watchDirectories/when-there-are-symlinks-to-folders-in-recursive-folders.js index 0cd148d4e2348..03ee45286ea86 100644 --- a/tests/baselines/reference/tscWatch/watchEnvironment/watchDirectories/when-there-are-symlinks-to-folders-in-recursive-folders.js +++ b/tests/baselines/reference/tscWatch/watchEnvironment/watchDirectories/when-there-are-symlinks-to-folders-in-recursive-folders.js @@ -71,8 +71,15 @@ DirectoryWatcher:: Added:: WatchInfo: /home/user/projects/myproject 1 undefined Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/user/projects/myproject 1 undefined Wild card directory -Program root files: ["/home/user/projects/myproject/src/file.ts"] -Program options: {"extendedDiagnostics":true,"traceResolution":true,"watch":true,"configFilePath":"/home/user/projects/myproject/tsconfig.json"} +Program root files: [ + "/home/user/projects/myproject/src/file.ts" +] +Program options: { + "extendedDiagnostics": true, + "traceResolution": true, + "watch": true, + "configFilePath": "/home/user/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/watchEnvironment/watchDirectories/with-non-synchronous-watch-directory-renaming-a-file.js b/tests/baselines/reference/tscWatch/watchEnvironment/watchDirectories/with-non-synchronous-watch-directory-renaming-a-file.js index 6048d8820cac2..d528bc369fd3a 100644 --- a/tests/baselines/reference/tscWatch/watchEnvironment/watchDirectories/with-non-synchronous-watch-directory-renaming-a-file.js +++ b/tests/baselines/reference/tscWatch/watchEnvironment/watchDirectories/with-non-synchronous-watch-directory-renaming-a-file.js @@ -20,7 +20,11 @@ import { x } from "./file2"; export const x = 10; //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"outDir":"dist"}} +{ + "compilerOptions": { + "outDir": "dist" + } +} /a/lib/tsc.js --w -p /user/username/projects/myproject/tsconfig.json @@ -32,8 +36,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/src/file1.ts","/user/username/projects/myproject/src/file2.ts"] -Program options: {"outDir":"/user/username/projects/myproject/dist","watch":true,"project":"/user/username/projects/myproject/tsconfig.json","configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/src/file1.ts", + "/user/username/projects/myproject/src/file2.ts" +] +Program options: { + "outDir": "/user/username/projects/myproject/dist", + "watch": true, + "project": "/user/username/projects/myproject/tsconfig.json", + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -124,8 +136,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/src/file1.ts","/user/username/projects/myproject/src/file2.ts"] -Program options: {"outDir":"/user/username/projects/myproject/dist","watch":true,"project":"/user/username/projects/myproject/tsconfig.json","configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/src/file1.ts", + "/user/username/projects/myproject/src/file2.ts" +] +Program options: { + "outDir": "/user/username/projects/myproject/dist", + "watch": true, + "project": "/user/username/projects/myproject/tsconfig.json", + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -197,8 +217,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/src/file1.ts","/user/username/projects/myproject/src/renamed.ts"] -Program options: {"outDir":"/user/username/projects/myproject/dist","watch":true,"project":"/user/username/projects/myproject/tsconfig.json","configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/src/file1.ts", + "/user/username/projects/myproject/src/renamed.ts" +] +Program options: { + "outDir": "/user/username/projects/myproject/dist", + "watch": true, + "project": "/user/username/projects/myproject/tsconfig.json", + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/watchEnvironment/watchDirectories/with-non-synchronous-watch-directory-with-outDir-and-declaration-enabled.js b/tests/baselines/reference/tscWatch/watchEnvironment/watchDirectories/with-non-synchronous-watch-directory-with-outDir-and-declaration-enabled.js index b1807b5c68889..a735fb6b033e0 100644 --- a/tests/baselines/reference/tscWatch/watchEnvironment/watchDirectories/with-non-synchronous-watch-directory-with-outDir-and-declaration-enabled.js +++ b/tests/baselines/reference/tscWatch/watchEnvironment/watchDirectories/with-non-synchronous-watch-directory-with-outDir-and-declaration-enabled.js @@ -20,7 +20,12 @@ import { x } from "file2"; export const x = 10; //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"outDir":"dist","declaration":true}} +{ + "compilerOptions": { + "outDir": "dist", + "declaration": true + } +} /a/lib/tsc.js --w -p /user/username/projects/myproject/tsconfig.json @@ -32,8 +37,16 @@ Output:: -Program root files: ["/user/username/projects/myproject/src/file1.ts"] -Program options: {"outDir":"/user/username/projects/myproject/dist","declaration":true,"watch":true,"project":"/user/username/projects/myproject/tsconfig.json","configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/src/file1.ts" +] +Program options: { + "outDir": "/user/username/projects/myproject/dist", + "declaration": true, + "watch": true, + "project": "/user/username/projects/myproject/tsconfig.json", + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -133,8 +146,17 @@ Output:: -Program root files: ["/user/username/projects/myproject/src/file1.ts","/user/username/projects/myproject/src/file3.ts"] -Program options: {"outDir":"/user/username/projects/myproject/dist","declaration":true,"watch":true,"project":"/user/username/projects/myproject/tsconfig.json","configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/src/file1.ts", + "/user/username/projects/myproject/src/file3.ts" +] +Program options: { + "outDir": "/user/username/projects/myproject/dist", + "declaration": true, + "watch": true, + "project": "/user/username/projects/myproject/tsconfig.json", + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/watchEnvironment/watchDirectories/with-non-synchronous-watch-directory.js b/tests/baselines/reference/tscWatch/watchEnvironment/watchDirectories/with-non-synchronous-watch-directory.js index 3903c80e3ea56..c8e35ea20a19a 100644 --- a/tests/baselines/reference/tscWatch/watchEnvironment/watchDirectories/with-non-synchronous-watch-directory.js +++ b/tests/baselines/reference/tscWatch/watchEnvironment/watchDirectories/with-non-synchronous-watch-directory.js @@ -32,8 +32,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/src/file1.ts"] -Program options: {"watch":true,"project":"/user/username/projects/myproject/tsconfig.json","configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/src/file1.ts" +] +Program options: { + "watch": true, + "project": "/user/username/projects/myproject/tsconfig.json", + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -145,8 +151,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/src/file1.ts"] -Program options: {"watch":true,"project":"/user/username/projects/myproject/tsconfig.json","configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/src/file1.ts" +] +Program options: { + "watch": true, + "project": "/user/username/projects/myproject/tsconfig.json", + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -218,8 +230,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/src/file1.ts"] -Program options: {"watch":true,"project":"/user/username/projects/myproject/tsconfig.json","configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/src/file1.ts" +] +Program options: { + "watch": true, + "project": "/user/username/projects/myproject/tsconfig.json", + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts @@ -338,8 +356,14 @@ Output:: -Program root files: ["/user/username/projects/myproject/src/file1.ts"] -Program options: {"watch":true,"project":"/user/username/projects/myproject/tsconfig.json","configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/src/file1.ts" +] +Program options: { + "watch": true, + "project": "/user/username/projects/myproject/tsconfig.json", + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: SafeModules Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/watchEnvironment/watchFile/using-dynamic-priority-polling.js b/tests/baselines/reference/tscWatch/watchEnvironment/watchFile/using-dynamic-priority-polling.js index dc45826e354bb..a5c665166b33f 100644 --- a/tests/baselines/reference/tscWatch/watchEnvironment/watchFile/using-dynamic-priority-polling.js +++ b/tests/baselines/reference/tscWatch/watchEnvironment/watchFile/using-dynamic-priority-polling.js @@ -26,8 +26,12 @@ Output:: -Program root files: ["/a/username/project/typescript.ts"] -Program options: {"watch":true} +Program root files: [ + "/a/username/project/typescript.ts" +] +Program options: { + "watch": true +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -350,8 +354,12 @@ Output:: -Program root files: ["/a/username/project/typescript.ts"] -Program options: {"watch":true} +Program root files: [ + "/a/username/project/typescript.ts" +] +Program options: { + "watch": true +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/watchEnvironment/watchFile/using-fixed-chunk-size-polling.js b/tests/baselines/reference/tscWatch/watchEnvironment/watchFile/using-fixed-chunk-size-polling.js index 4ea79f3390d9f..6440928436259 100644 --- a/tests/baselines/reference/tscWatch/watchEnvironment/watchFile/using-fixed-chunk-size-polling.js +++ b/tests/baselines/reference/tscWatch/watchEnvironment/watchFile/using-fixed-chunk-size-polling.js @@ -20,7 +20,11 @@ let x = 1 let y = 1 //// [/a/b/tsconfig.json] -{"watchOptions":{"watchFile":"FixedChunkSizePolling"}} +{ + "watchOptions": { + "watchFile": "FixedChunkSizePolling" + } +} /a/lib/tsc.js -w -p /a/b/tsconfig.json @@ -32,8 +36,15 @@ Output:: -Program root files: ["/a/b/commonFile1.ts","/a/b/commonFile2.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/commonFile1.ts", + "/a/b/commonFile2.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts @@ -124,8 +135,15 @@ Output:: -Program root files: ["/a/b/commonFile1.ts","/a/b/commonFile2.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/commonFile1.ts", + "/a/b/commonFile2.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Completely Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/watchEnvironment/watchOptions/with-excludeDirectories-option-extendedDiagnostics.js b/tests/baselines/reference/tscWatch/watchEnvironment/watchOptions/with-excludeDirectories-option-extendedDiagnostics.js index 0cb47c338e91e..0a06c6ab0a637 100644 --- a/tests/baselines/reference/tscWatch/watchEnvironment/watchOptions/with-excludeDirectories-option-extendedDiagnostics.js +++ b/tests/baselines/reference/tscWatch/watchEnvironment/watchOptions/with-excludeDirectories-option-extendedDiagnostics.js @@ -29,7 +29,16 @@ export function fooBar(): string; export function temp(): string; //// [/user/username/projects/myproject/tsconfig.json] -{"exclude":["node_modules"],"watchOptions":{"excludeDirectories":["node_modules"]}} +{ + "exclude": [ + "node_modules" + ], + "watchOptions": { + "excludeDirectories": [ + "node_modules" + ] + } +} /a/lib/tsc.js -w -extendedDiagnostics @@ -60,8 +69,14 @@ DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject 1 {"excl Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject 1 {"excludeDirectories":["/user/username/projects/myproject/node_modules"]} Wild card directory -Program root files: ["/user/username/projects/myproject/src/main.ts"] -Program options: {"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/src/main.ts" +] +Program options: { + "watch": true, + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/watchEnvironment/watchOptions/with-excludeDirectories-option-with-recursive-directory-watching-extendedDiagnostics.js b/tests/baselines/reference/tscWatch/watchEnvironment/watchOptions/with-excludeDirectories-option-with-recursive-directory-watching-extendedDiagnostics.js index 36baa6add6fac..8ce6304975c53 100644 --- a/tests/baselines/reference/tscWatch/watchEnvironment/watchOptions/with-excludeDirectories-option-with-recursive-directory-watching-extendedDiagnostics.js +++ b/tests/baselines/reference/tscWatch/watchEnvironment/watchOptions/with-excludeDirectories-option-with-recursive-directory-watching-extendedDiagnostics.js @@ -29,7 +29,16 @@ export function fooBar(): string; export function temp(): string; //// [/user/username/projects/myproject/tsconfig.json] -{"exclude":["node_modules"],"watchOptions":{"excludeDirectories":["**/temp"]}} +{ + "exclude": [ + "node_modules" + ], + "watchOptions": { + "excludeDirectories": [ + "**/temp" + ] + } +} /a/lib/tsc.js -w -extendedDiagnostics @@ -60,8 +69,14 @@ DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject 1 {"excl Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject 1 {"excludeDirectories":["/user/username/projects/myproject/**/temp"]} Wild card directory -Program root files: ["/user/username/projects/myproject/src/main.ts"] -Program options: {"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/src/main.ts" +] +Program options: { + "watch": true, + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/watchEnvironment/watchOptions/with-excludeDirectories-option-with-recursive-directory-watching.js b/tests/baselines/reference/tscWatch/watchEnvironment/watchOptions/with-excludeDirectories-option-with-recursive-directory-watching.js index a7829cedc4f84..880198483c18e 100644 --- a/tests/baselines/reference/tscWatch/watchEnvironment/watchOptions/with-excludeDirectories-option-with-recursive-directory-watching.js +++ b/tests/baselines/reference/tscWatch/watchEnvironment/watchOptions/with-excludeDirectories-option-with-recursive-directory-watching.js @@ -29,7 +29,16 @@ export function fooBar(): string; export function temp(): string; //// [/user/username/projects/myproject/tsconfig.json] -{"exclude":["node_modules"],"watchOptions":{"excludeDirectories":["**/temp"]}} +{ + "exclude": [ + "node_modules" + ], + "watchOptions": { + "excludeDirectories": [ + "**/temp" + ] + } +} /a/lib/tsc.js -w @@ -41,8 +50,13 @@ Output:: -Program root files: ["/user/username/projects/myproject/src/main.ts"] -Program options: {"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/src/main.ts" +] +Program options: { + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/watchEnvironment/watchOptions/with-excludeDirectories-option.js b/tests/baselines/reference/tscWatch/watchEnvironment/watchOptions/with-excludeDirectories-option.js index ed5d800b6f231..b715b34ba7b67 100644 --- a/tests/baselines/reference/tscWatch/watchEnvironment/watchOptions/with-excludeDirectories-option.js +++ b/tests/baselines/reference/tscWatch/watchEnvironment/watchOptions/with-excludeDirectories-option.js @@ -29,7 +29,16 @@ export function fooBar(): string; export function temp(): string; //// [/user/username/projects/myproject/tsconfig.json] -{"exclude":["node_modules"],"watchOptions":{"excludeDirectories":["node_modules"]}} +{ + "exclude": [ + "node_modules" + ], + "watchOptions": { + "excludeDirectories": [ + "node_modules" + ] + } +} /a/lib/tsc.js -w @@ -41,8 +50,13 @@ Output:: -Program root files: ["/user/username/projects/myproject/src/main.ts"] -Program options: {"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/src/main.ts" +] +Program options: { + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/watchEnvironment/watchOptions/with-excludeFiles-option-extendedDiagnostics.js b/tests/baselines/reference/tscWatch/watchEnvironment/watchOptions/with-excludeFiles-option-extendedDiagnostics.js index 5c50f0ac49cd3..e151c51e0fb0e 100644 --- a/tests/baselines/reference/tscWatch/watchEnvironment/watchOptions/with-excludeFiles-option-extendedDiagnostics.js +++ b/tests/baselines/reference/tscWatch/watchEnvironment/watchOptions/with-excludeFiles-option-extendedDiagnostics.js @@ -29,7 +29,16 @@ export function fooBar(): string; export function temp(): string; //// [/user/username/projects/myproject/tsconfig.json] -{"exclude":["node_modules"],"watchOptions":{"excludeFiles":["node_modules/*"]}} +{ + "exclude": [ + "node_modules" + ], + "watchOptions": { + "excludeFiles": [ + "node_modules/*" + ] + } +} /a/lib/tsc.js -w -extendedDiagnostics @@ -62,8 +71,14 @@ DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject 1 {"excl Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject 1 {"excludeFiles":["/user/username/projects/myproject/node_modules/*"]} Wild card directory -Program root files: ["/user/username/projects/myproject/src/main.ts"] -Program options: {"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/src/main.ts" +] +Program options: { + "watch": true, + "extendedDiagnostics": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/watchEnvironment/watchOptions/with-excludeFiles-option.js b/tests/baselines/reference/tscWatch/watchEnvironment/watchOptions/with-excludeFiles-option.js index 856fc5464600e..791e4bbcc2054 100644 --- a/tests/baselines/reference/tscWatch/watchEnvironment/watchOptions/with-excludeFiles-option.js +++ b/tests/baselines/reference/tscWatch/watchEnvironment/watchOptions/with-excludeFiles-option.js @@ -29,7 +29,16 @@ export function fooBar(): string; export function temp(): string; //// [/user/username/projects/myproject/tsconfig.json] -{"exclude":["node_modules"],"watchOptions":{"excludeFiles":["node_modules/*"]}} +{ + "exclude": [ + "node_modules" + ], + "watchOptions": { + "excludeFiles": [ + "node_modules/*" + ] + } +} /a/lib/tsc.js -w @@ -41,8 +50,13 @@ Output:: -Program root files: ["/user/username/projects/myproject/src/main.ts"] -Program options: {"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} +Program root files: [ + "/user/username/projects/myproject/src/main.ts" +] +Program options: { + "watch": true, + "configFilePath": "/user/username/projects/myproject/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/watchEnvironment/watchOptions/with-fallbackPolling-option.js b/tests/baselines/reference/tscWatch/watchEnvironment/watchOptions/with-fallbackPolling-option.js index 43e6ba05deb95..64a7872c1b399 100644 --- a/tests/baselines/reference/tscWatch/watchEnvironment/watchOptions/with-fallbackPolling-option.js +++ b/tests/baselines/reference/tscWatch/watchEnvironment/watchOptions/with-fallbackPolling-option.js @@ -20,7 +20,11 @@ let x = 1 let y = 1 //// [/a/b/tsconfig.json] -{"watchOptions":{"fallbackPolling":"PriorityInterval"}} +{ + "watchOptions": { + "fallbackPolling": "PriorityInterval" + } +} /a/lib/tsc.js -w -p /a/b/tsconfig.json @@ -37,8 +41,15 @@ sysLog:: /a/lib/lib.d.ts:: Changing to watchFile sysLog:: /a/b:: Changing to watchFile -Program root files: ["/a/b/commonFile1.ts","/a/b/commonFile2.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/commonFile1.ts", + "/a/b/commonFile2.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/watchEnvironment/watchOptions/with-watchDirectory-option.js b/tests/baselines/reference/tscWatch/watchEnvironment/watchOptions/with-watchDirectory-option.js index 748c392319ecb..cf964f410ea98 100644 --- a/tests/baselines/reference/tscWatch/watchEnvironment/watchOptions/with-watchDirectory-option.js +++ b/tests/baselines/reference/tscWatch/watchEnvironment/watchOptions/with-watchDirectory-option.js @@ -20,7 +20,11 @@ let x = 1 let y = 1 //// [/a/b/tsconfig.json] -{"watchOptions":{"watchDirectory":"UseFsEvents"}} +{ + "watchOptions": { + "watchDirectory": "UseFsEvents" + } +} /a/lib/tsc.js -w -p /a/b/tsconfig.json @@ -32,8 +36,15 @@ Output:: -Program root files: ["/a/b/commonFile1.ts","/a/b/commonFile2.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/commonFile1.ts", + "/a/b/commonFile2.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/watchEnvironment/watchOptions/with-watchFile-as-watch-options-to-extend.js b/tests/baselines/reference/tscWatch/watchEnvironment/watchOptions/with-watchFile-as-watch-options-to-extend.js index 7d31d67153ca2..d59e66b6a0125 100644 --- a/tests/baselines/reference/tscWatch/watchEnvironment/watchOptions/with-watchFile-as-watch-options-to-extend.js +++ b/tests/baselines/reference/tscWatch/watchEnvironment/watchOptions/with-watchFile-as-watch-options-to-extend.js @@ -32,8 +32,15 @@ Output:: -Program root files: ["/a/b/commonFile1.ts","/a/b/commonFile2.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/commonFile1.ts", + "/a/b/commonFile2.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tscWatch/watchEnvironment/watchOptions/with-watchFile-option.js b/tests/baselines/reference/tscWatch/watchEnvironment/watchOptions/with-watchFile-option.js index cf37200fa12ed..ec494ec85fc9f 100644 --- a/tests/baselines/reference/tscWatch/watchEnvironment/watchOptions/with-watchFile-option.js +++ b/tests/baselines/reference/tscWatch/watchEnvironment/watchOptions/with-watchFile-option.js @@ -20,7 +20,11 @@ let x = 1 let y = 1 //// [/a/b/tsconfig.json] -{"watchOptions":{"watchFile":"UseFsEvents"}} +{ + "watchOptions": { + "watchFile": "UseFsEvents" + } +} /a/lib/tsc.js -w -p /a/b/tsconfig.json @@ -32,8 +36,15 @@ Output:: -Program root files: ["/a/b/commonFile1.ts","/a/b/commonFile2.ts"] -Program options: {"watch":true,"project":"/a/b/tsconfig.json","configFilePath":"/a/b/tsconfig.json"} +Program root files: [ + "/a/b/commonFile1.ts", + "/a/b/commonFile2.ts" +] +Program options: { + "watch": true, + "project": "/a/b/tsconfig.json", + "configFilePath": "/a/b/tsconfig.json" +} Program structureReused: Not Program files:: /a/lib/lib.d.ts diff --git a/tests/baselines/reference/tsserver/autoImportProvider/Auto-importable-file-is-in-inferred-project-until-imported.js b/tests/baselines/reference/tsserver/autoImportProvider/Auto-importable-file-is-in-inferred-project-until-imported.js index 854dd5cf3fe80..52128022b4540 100644 --- a/tests/baselines/reference/tsserver/autoImportProvider/Auto-importable-file-is-in-inferred-project-until-imported.js +++ b/tests/baselines/reference/tsserver/autoImportProvider/Auto-importable-file-is-in-inferred-project-until-imported.js @@ -65,7 +65,7 @@ TI:: typing installer creation complete //// [/a/data/node_modules/types-registry/index.json] { - "entries": {} + "entries": {} } diff --git a/tests/baselines/reference/tsserver/autoImportProvider/Does-not-create-an-auto-import-provider-if-there-are-too-many-dependencies.js b/tests/baselines/reference/tsserver/autoImportProvider/Does-not-create-an-auto-import-provider-if-there-are-too-many-dependencies.js index ad4bd7066d3be..4cf77bb0f574b 100644 --- a/tests/baselines/reference/tsserver/autoImportProvider/Does-not-create-an-auto-import-provider-if-there-are-too-many-dependencies.js +++ b/tests/baselines/reference/tsserver/autoImportProvider/Does-not-create-an-auto-import-provider-if-there-are-too-many-dependencies.js @@ -74,7 +74,19 @@ Before request { "compilerOptions": { "module": "commonjs" } } //// [/package.json] -{"package0":"*","package1":"*","package2":"*","package3":"*","package4":"*","package5":"*","package6":"*","package7":"*","package8":"*","package9":"*","package10":"*"} +{ + "package0": "*", + "package1": "*", + "package2": "*", + "package3": "*", + "package4": "*", + "package5": "*", + "package6": "*", + "package7": "*", + "package8": "*", + "package9": "*", + "package10": "*" +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/autoImportProvider/Responds-to-manual-changes-in-node_modules.js b/tests/baselines/reference/tsserver/autoImportProvider/Responds-to-manual-changes-in-node_modules.js index 49b02bd7cc0a4..92b7a61f2e6d7 100644 --- a/tests/baselines/reference/tsserver/autoImportProvider/Responds-to-manual-changes-in-node_modules.js +++ b/tests/baselines/reference/tsserver/autoImportProvider/Responds-to-manual-changes-in-node_modules.js @@ -196,7 +196,7 @@ TI:: typing installer creation complete //// [/a/data/node_modules/types-registry/index.json] { - "entries": {} + "entries": {} } diff --git a/tests/baselines/reference/tsserver/autoImportProvider/Shared-source-files-between-AutoImportProvider-and-main-program.js b/tests/baselines/reference/tsserver/autoImportProvider/Shared-source-files-between-AutoImportProvider-and-main-program.js index 645079863f787..84c854aadd77b 100644 --- a/tests/baselines/reference/tsserver/autoImportProvider/Shared-source-files-between-AutoImportProvider-and-main-program.js +++ b/tests/baselines/reference/tsserver/autoImportProvider/Shared-source-files-between-AutoImportProvider-and-main-program.js @@ -2,14 +2,21 @@ currentDirectory:: / useCaseSensitiveFileNames: false Info seq [hh:mm:ss:mss] Provided types map file "/a/lib/typesMap.json" doesn't exist Before request //// [/node_modules/memfs/package.json] -{ "name": "memfs", "version": "1.0.0", "types": "lib/index.d.ts" } +{ + "name": "memfs", + "version": "1.0.0", + "types": "lib/index.d.ts" +} //// [/node_modules/memfs/lib/index.d.ts] /// export declare class Volume {} //// [/node_modules/@types/node/package.json] -{ "name": "@types/node", "version": "1.0.0" } +{ + "name": "@types/node", + "version": "1.0.0" +} //// [/node_modules/@types/node/index.d.ts] export declare class Stats {} diff --git a/tests/baselines/reference/tsserver/autoImportProvider/projects-already-inside-node_modules.js b/tests/baselines/reference/tsserver/autoImportProvider/projects-already-inside-node_modules.js index a73d444b93723..6e0e0f649ed69 100644 --- a/tests/baselines/reference/tsserver/autoImportProvider/projects-already-inside-node_modules.js +++ b/tests/baselines/reference/tsserver/autoImportProvider/projects-already-inside-node_modules.js @@ -62,7 +62,7 @@ TI:: typing installer creation complete //// [/a/data/node_modules/types-registry/index.json] { - "entries": {} + "entries": {} } diff --git a/tests/baselines/reference/tsserver/auxiliaryProject/does-not-remove-scrips-from-InferredProject.js b/tests/baselines/reference/tsserver/auxiliaryProject/does-not-remove-scrips-from-InferredProject.js index c564c0712b5af..5d9f6dfd08555 100644 --- a/tests/baselines/reference/tsserver/auxiliaryProject/does-not-remove-scrips-from-InferredProject.js +++ b/tests/baselines/reference/tsserver/auxiliaryProject/does-not-remove-scrips-from-InferredProject.js @@ -179,7 +179,7 @@ TI:: typing installer creation complete //// [/a/data/node_modules/types-registry/index.json] { - "entries": {} + "entries": {} } diff --git a/tests/baselines/reference/tsserver/auxiliaryProject/file-is-added-later-through-finding-definition.js b/tests/baselines/reference/tsserver/auxiliaryProject/file-is-added-later-through-finding-definition.js index d84a86dbc66c8..3436697fff375 100644 --- a/tests/baselines/reference/tsserver/auxiliaryProject/file-is-added-later-through-finding-definition.js +++ b/tests/baselines/reference/tsserver/auxiliaryProject/file-is-added-later-through-finding-definition.js @@ -3,9 +3,9 @@ Info seq [hh:mm:ss:mss] Provided types map file "/a/lib/typesMap.json" doesn't Before request //// [/user/users/projects/myproject/node_modules/@types/yargs/package.json] { - "name": "@types/yargs", - "version": "1.0.0", - "types": "./index.d.ts" + "name": "@types/yargs", + "version": "1.0.0", + "types": "./index.d.ts" } //// [/user/users/projects/myproject/node_modules/@types/yargs/callback.d.ts] @@ -20,9 +20,9 @@ export declare function command(command: string, cb: (yargs: Yargs) => void): vo //// [/user/users/projects/myproject/node_modules/yargs/package.json] { - "name": "yargs", - "version": "1.0.0", - "main": "index.js" + "name": "yargs", + "version": "1.0.0", + "main": "index.js" } //// [/user/users/projects/myproject/node_modules/yargs/callback.js] diff --git a/tests/baselines/reference/tsserver/auxiliaryProject/resolution-is-reused-from-different-folder.js b/tests/baselines/reference/tsserver/auxiliaryProject/resolution-is-reused-from-different-folder.js index 536befc05979f..93fdd4e46fca3 100644 --- a/tests/baselines/reference/tsserver/auxiliaryProject/resolution-is-reused-from-different-folder.js +++ b/tests/baselines/reference/tsserver/auxiliaryProject/resolution-is-reused-from-different-folder.js @@ -3,9 +3,9 @@ Info seq [hh:mm:ss:mss] Provided types map file "/a/lib/typesMap.json" doesn't Before request //// [/user/users/projects/myproject/node_modules/@types/yargs/package.json] { - "name": "@types/yargs", - "version": "1.0.0", - "types": "./index.d.ts" + "name": "@types/yargs", + "version": "1.0.0", + "types": "./index.d.ts" } //// [/user/users/projects/myproject/node_modules/@types/yargs/callback.d.ts] @@ -20,9 +20,9 @@ export declare function command(command: string, cb: (yargs: Yargs) => void): vo //// [/user/users/projects/myproject/node_modules/yargs/package.json] { - "name": "yargs", - "version": "1.0.0", - "main": "index.js" + "name": "yargs", + "version": "1.0.0", + "main": "index.js" } //// [/user/users/projects/myproject/node_modules/yargs/callback.js] diff --git a/tests/baselines/reference/tsserver/cachingFileSystemInformation/includes-the-parent-folder-FLLs-in-Classic-module-resolution-mode.js b/tests/baselines/reference/tsserver/cachingFileSystemInformation/includes-the-parent-folder-FLLs-in-Classic-module-resolution-mode.js index 3c5d184eef365..4a2699ac06dd2 100644 --- a/tests/baselines/reference/tsserver/cachingFileSystemInformation/includes-the-parent-folder-FLLs-in-Classic-module-resolution-mode.js +++ b/tests/baselines/reference/tsserver/cachingFileSystemInformation/includes-the-parent-folder-FLLs-in-Classic-module-resolution-mode.js @@ -8,7 +8,13 @@ import * as debug from "debug" import * as debug from "debug" //// [/users/username/projects/proj/tsconfig.json] -{"files":["foo/boo/app.ts","foo/boo/moo/app.ts"],"moduleResolution":"Classic"} +{ + "files": [ + "foo/boo/app.ts", + "foo/boo/moo/app.ts" + ], + "moduleResolution": "Classic" +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/cachingFileSystemInformation/includes-the-parent-folder-FLLs-in-Node-module-resolution-mode.js b/tests/baselines/reference/tsserver/cachingFileSystemInformation/includes-the-parent-folder-FLLs-in-Node-module-resolution-mode.js index 897b3e326d8bc..cc6851c28c8e1 100644 --- a/tests/baselines/reference/tsserver/cachingFileSystemInformation/includes-the-parent-folder-FLLs-in-Node-module-resolution-mode.js +++ b/tests/baselines/reference/tsserver/cachingFileSystemInformation/includes-the-parent-folder-FLLs-in-Node-module-resolution-mode.js @@ -8,7 +8,13 @@ import * as debug from "debug" import * as debug from "debug" //// [/users/username/projects/proj/tsconfig.json] -{"files":["foo/boo/app.ts","foo/boo/moo/app.ts"],"moduleResolution":"Node"} +{ + "files": [ + "foo/boo/app.ts", + "foo/boo/moo/app.ts" + ], + "moduleResolution": "Node" +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/cachingFileSystemInformation/loads-missing-files-from-disk.js b/tests/baselines/reference/tsserver/cachingFileSystemInformation/loads-missing-files-from-disk.js index 1a61caf38f75c..9c070d0536a15 100644 --- a/tests/baselines/reference/tsserver/cachingFileSystemInformation/loads-missing-files-from-disk.js +++ b/tests/baselines/reference/tsserver/cachingFileSystemInformation/loads-missing-files-from-disk.js @@ -42,10 +42,237 @@ Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* Info seq [hh:mm:ss:mss] getSemanticDiagnostics:: /users/username/projects/project/foo.ts:: 1 Info seq [hh:mm:ss:mss] foo.ts(1,17): error TS2792: Cannot find module 'bar'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? -Info seq [hh:mm:ss:mss] fileExists:: [{"key":"/users/username/projects/project/tsconfig.json","count":2},{"key":"/users/username/projects/project/jsconfig.json","count":2},{"key":"/users/username/projects/tsconfig.json","count":1},{"key":"/users/username/projects/jsconfig.json","count":1},{"key":"/users/username/tsconfig.json","count":1},{"key":"/users/username/jsconfig.json","count":1},{"key":"/users/tsconfig.json","count":1},{"key":"/users/jsconfig.json","count":1},{"key":"/tsconfig.json","count":1},{"key":"/jsconfig.json","count":1},{"key":"/users/username/projects/project/bar.ts","count":1},{"key":"/users/username/projects/project/bar.tsx","count":1},{"key":"/users/username/projects/project/bar.d.ts","count":1},{"key":"/users/username/projects/bar.ts","count":1},{"key":"/users/username/projects/bar.tsx","count":1},{"key":"/users/username/projects/bar.d.ts","count":1},{"key":"/users/username/bar.ts","count":1},{"key":"/users/username/bar.tsx","count":1},{"key":"/users/username/bar.d.ts","count":1},{"key":"/users/bar.ts","count":1},{"key":"/users/bar.tsx","count":1},{"key":"/users/bar.d.ts","count":1},{"key":"/bar.ts","count":1},{"key":"/bar.tsx","count":1},{"key":"/bar.d.ts","count":1},{"key":"/users/username/projects/project/bar.js","count":1},{"key":"/users/username/projects/project/bar.jsx","count":1},{"key":"/users/username/projects/bar.js","count":1},{"key":"/users/username/projects/bar.jsx","count":1},{"key":"/users/username/bar.js","count":1},{"key":"/users/username/bar.jsx","count":1},{"key":"/users/bar.js","count":1},{"key":"/users/bar.jsx","count":1},{"key":"/bar.js","count":1},{"key":"/bar.jsx","count":1},{"key":"/users/username/projects/project/package.json","count":1},{"key":"/users/username/projects/package.json","count":1},{"key":"/users/username/package.json","count":1},{"key":"/users/package.json","count":1},{"key":"/package.json","count":1}] -Info seq [hh:mm:ss:mss] directoryExists:: [{"key":"/users/username/projects/project","count":3},{"key":"/users/username/projects","count":3},{"key":"/users/username","count":2},{"key":"/users","count":2},{"key":"/","count":2},{"key":"/users/username/projects/project/node_modules","count":2},{"key":"/users/username/projects/node_modules","count":2},{"key":"/users/username/node_modules","count":1},{"key":"/users/node_modules","count":1},{"key":"/node_modules","count":1},{"key":"/users/username/projects/project/node_modules/@types","count":2},{"key":"/users/username/projects/node_modules/@types","count":2},{"key":"/users/username/node_modules/@types","count":1},{"key":"/users/node_modules/@types","count":1},{"key":"/node_modules/@types","count":1}] +Info seq [hh:mm:ss:mss] fileExists:: [ + { + "key": "/users/username/projects/project/tsconfig.json", + "count": 2 + }, + { + "key": "/users/username/projects/project/jsconfig.json", + "count": 2 + }, + { + "key": "/users/username/projects/tsconfig.json", + "count": 1 + }, + { + "key": "/users/username/projects/jsconfig.json", + "count": 1 + }, + { + "key": "/users/username/tsconfig.json", + "count": 1 + }, + { + "key": "/users/username/jsconfig.json", + "count": 1 + }, + { + "key": "/users/tsconfig.json", + "count": 1 + }, + { + "key": "/users/jsconfig.json", + "count": 1 + }, + { + "key": "/tsconfig.json", + "count": 1 + }, + { + "key": "/jsconfig.json", + "count": 1 + }, + { + "key": "/users/username/projects/project/bar.ts", + "count": 1 + }, + { + "key": "/users/username/projects/project/bar.tsx", + "count": 1 + }, + { + "key": "/users/username/projects/project/bar.d.ts", + "count": 1 + }, + { + "key": "/users/username/projects/bar.ts", + "count": 1 + }, + { + "key": "/users/username/projects/bar.tsx", + "count": 1 + }, + { + "key": "/users/username/projects/bar.d.ts", + "count": 1 + }, + { + "key": "/users/username/bar.ts", + "count": 1 + }, + { + "key": "/users/username/bar.tsx", + "count": 1 + }, + { + "key": "/users/username/bar.d.ts", + "count": 1 + }, + { + "key": "/users/bar.ts", + "count": 1 + }, + { + "key": "/users/bar.tsx", + "count": 1 + }, + { + "key": "/users/bar.d.ts", + "count": 1 + }, + { + "key": "/bar.ts", + "count": 1 + }, + { + "key": "/bar.tsx", + "count": 1 + }, + { + "key": "/bar.d.ts", + "count": 1 + }, + { + "key": "/users/username/projects/project/bar.js", + "count": 1 + }, + { + "key": "/users/username/projects/project/bar.jsx", + "count": 1 + }, + { + "key": "/users/username/projects/bar.js", + "count": 1 + }, + { + "key": "/users/username/projects/bar.jsx", + "count": 1 + }, + { + "key": "/users/username/bar.js", + "count": 1 + }, + { + "key": "/users/username/bar.jsx", + "count": 1 + }, + { + "key": "/users/bar.js", + "count": 1 + }, + { + "key": "/users/bar.jsx", + "count": 1 + }, + { + "key": "/bar.js", + "count": 1 + }, + { + "key": "/bar.jsx", + "count": 1 + }, + { + "key": "/users/username/projects/project/package.json", + "count": 1 + }, + { + "key": "/users/username/projects/package.json", + "count": 1 + }, + { + "key": "/users/username/package.json", + "count": 1 + }, + { + "key": "/users/package.json", + "count": 1 + }, + { + "key": "/package.json", + "count": 1 + } +] +Info seq [hh:mm:ss:mss] directoryExists:: [ + { + "key": "/users/username/projects/project", + "count": 3 + }, + { + "key": "/users/username/projects", + "count": 3 + }, + { + "key": "/users/username", + "count": 2 + }, + { + "key": "/users", + "count": 2 + }, + { + "key": "/", + "count": 2 + }, + { + "key": "/users/username/projects/project/node_modules", + "count": 2 + }, + { + "key": "/users/username/projects/node_modules", + "count": 2 + }, + { + "key": "/users/username/node_modules", + "count": 1 + }, + { + "key": "/users/node_modules", + "count": 1 + }, + { + "key": "/node_modules", + "count": 1 + }, + { + "key": "/users/username/projects/project/node_modules/@types", + "count": 2 + }, + { + "key": "/users/username/projects/node_modules/@types", + "count": 2 + }, + { + "key": "/users/username/node_modules/@types", + "count": 1 + }, + { + "key": "/users/node_modules/@types", + "count": 1 + }, + { + "key": "/node_modules/@types", + "count": 1 + } +] Info seq [hh:mm:ss:mss] getDirectories:: [] -Info seq [hh:mm:ss:mss] readFile:: [{"key":"/users/username/projects/project/foo.ts","count":1}] +Info seq [hh:mm:ss:mss] readFile:: [ + { + "key": "/users/username/projects/project/foo.ts", + "count": 1 + } +] Info seq [hh:mm:ss:mss] readDirectory:: [] Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /users/username/projects/project/bar.d.ts :: WatchInfo: /users/username/projects/project 0 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Scheduled: /dev/null/inferredProject1*FailedLookupInvalidation @@ -105,8 +332,51 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] getSemanticDiagnostics:: /users/username/projects/project/foo.ts:: 0 -Info seq [hh:mm:ss:mss] fileExists:: [{"key":"/users/username/projects/project/bar.ts","count":1},{"key":"/users/username/projects/project/bar.tsx","count":1},{"key":"/users/username/projects/project/bar.d.ts","count":3}] -Info seq [hh:mm:ss:mss] directoryExists:: [{"key":"/users/username/projects/project","count":1},{"key":"/users/username/projects/project/node_modules/@types","count":1},{"key":"/users/username/projects/node_modules/@types","count":1},{"key":"/users/username/node_modules/@types","count":1},{"key":"/users/node_modules/@types","count":1},{"key":"/node_modules/@types","count":1}] +Info seq [hh:mm:ss:mss] fileExists:: [ + { + "key": "/users/username/projects/project/bar.ts", + "count": 1 + }, + { + "key": "/users/username/projects/project/bar.tsx", + "count": 1 + }, + { + "key": "/users/username/projects/project/bar.d.ts", + "count": 3 + } +] +Info seq [hh:mm:ss:mss] directoryExists:: [ + { + "key": "/users/username/projects/project", + "count": 1 + }, + { + "key": "/users/username/projects/project/node_modules/@types", + "count": 1 + }, + { + "key": "/users/username/projects/node_modules/@types", + "count": 1 + }, + { + "key": "/users/username/node_modules/@types", + "count": 1 + }, + { + "key": "/users/node_modules/@types", + "count": 1 + }, + { + "key": "/node_modules/@types", + "count": 1 + } +] Info seq [hh:mm:ss:mss] getDirectories:: [] -Info seq [hh:mm:ss:mss] readFile:: [{"key":"/users/username/projects/project/bar.d.ts","count":1}] +Info seq [hh:mm:ss:mss] readFile:: [ + { + "key": "/users/username/projects/project/bar.d.ts", + "count": 1 + } +] Info seq [hh:mm:ss:mss] readDirectory:: [] \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/cachingFileSystemInformation/watchDirectories-for-config-file-with-case-insensitive-file-system.js b/tests/baselines/reference/tsserver/cachingFileSystemInformation/watchDirectories-for-config-file-with-case-insensitive-file-system.js index 17cdf3f31c5b6..dd9034f003553 100644 --- a/tests/baselines/reference/tsserver/cachingFileSystemInformation/watchDirectories-for-config-file-with-case-insensitive-file-system.js +++ b/tests/baselines/reference/tsserver/cachingFileSystemInformation/watchDirectories-for-config-file-with-case-insensitive-file-system.js @@ -21,7 +21,42 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/Users/someuser/work/applications/frontend/tsconfig.json] -{"compilerOptions":{"strict":true,"strictNullChecks":true,"target":"es2016","module":"commonjs","moduleResolution":"node","sourceMap":true,"noEmitOnError":true,"experimentalDecorators":true,"emitDecoratorMetadata":true,"types":["node","jest"],"noUnusedLocals":true,"outDir":"./compiled","typeRoots":["types","node_modules/@types"],"baseUrl":".","paths":{"*":["types/*"]}},"include":["src/**/*"],"exclude":["node_modules","compiled"]} +{ + "compilerOptions": { + "strict": true, + "strictNullChecks": true, + "target": "es2016", + "module": "commonjs", + "moduleResolution": "node", + "sourceMap": true, + "noEmitOnError": true, + "experimentalDecorators": true, + "emitDecoratorMetadata": true, + "types": [ + "node", + "jest" + ], + "noUnusedLocals": true, + "outDir": "./compiled", + "typeRoots": [ + "types", + "node_modules/@types" + ], + "baseUrl": ".", + "paths": { + "*": [ + "types/*" + ] + } + }, + "include": [ + "src/**/*" + ], + "exclude": [ + "node_modules", + "compiled" + ] +} Info seq [hh:mm:ss:mss] Search path: /Users/someuser/work/applications/frontend/src/app/utils @@ -185,10 +220,29 @@ FsWatchesRecursive:: /users/someuser/work/applications/frontend/src: {} -Info seq [hh:mm:ss:mss] fileExists:: [{"key":"/users/someuser/work/applications/frontend/src/app/utils/cookie.ts","count":1},{"key":"/Users/someuser/work/applications/frontend/src/app/utils/Cookie.ts","count":1}] -Info seq [hh:mm:ss:mss] directoryExists:: [{"key":"/users/someuser/work/applications/frontend/src/app/utils/cookie.ts","count":1}] +Info seq [hh:mm:ss:mss] fileExists:: [ + { + "key": "/users/someuser/work/applications/frontend/src/app/utils/cookie.ts", + "count": 1 + }, + { + "key": "/Users/someuser/work/applications/frontend/src/app/utils/Cookie.ts", + "count": 1 + } +] +Info seq [hh:mm:ss:mss] directoryExists:: [ + { + "key": "/users/someuser/work/applications/frontend/src/app/utils/cookie.ts", + "count": 1 + } +] Info seq [hh:mm:ss:mss] getDirectories:: [] -Info seq [hh:mm:ss:mss] readFile:: [{"key":"/Users/someuser/work/applications/frontend/src/app/utils/Cookie.ts","count":1}] +Info seq [hh:mm:ss:mss] readFile:: [ + { + "key": "/Users/someuser/work/applications/frontend/src/app/utils/Cookie.ts", + "count": 1 + } +] Info seq [hh:mm:ss:mss] readDirectory:: [] Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /Users/someuser/work/applications/frontend/src/app/utils/Cookie.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Search path: /Users/someuser/work/applications/frontend/src/app/utils diff --git a/tests/baselines/reference/tsserver/cachingFileSystemInformation/watchDirectories-for-config-file-with-case-sensitive-file-system.js b/tests/baselines/reference/tsserver/cachingFileSystemInformation/watchDirectories-for-config-file-with-case-sensitive-file-system.js index 1c4fa7c9b4b5e..550483f876a5b 100644 --- a/tests/baselines/reference/tsserver/cachingFileSystemInformation/watchDirectories-for-config-file-with-case-sensitive-file-system.js +++ b/tests/baselines/reference/tsserver/cachingFileSystemInformation/watchDirectories-for-config-file-with-case-sensitive-file-system.js @@ -21,7 +21,42 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/Users/someuser/work/applications/frontend/tsconfig.json] -{"compilerOptions":{"strict":true,"strictNullChecks":true,"target":"es2016","module":"commonjs","moduleResolution":"node","sourceMap":true,"noEmitOnError":true,"experimentalDecorators":true,"emitDecoratorMetadata":true,"types":["node","jest"],"noUnusedLocals":true,"outDir":"./compiled","typeRoots":["types","node_modules/@types"],"baseUrl":".","paths":{"*":["types/*"]}},"include":["src/**/*"],"exclude":["node_modules","compiled"]} +{ + "compilerOptions": { + "strict": true, + "strictNullChecks": true, + "target": "es2016", + "module": "commonjs", + "moduleResolution": "node", + "sourceMap": true, + "noEmitOnError": true, + "experimentalDecorators": true, + "emitDecoratorMetadata": true, + "types": [ + "node", + "jest" + ], + "noUnusedLocals": true, + "outDir": "./compiled", + "typeRoots": [ + "types", + "node_modules/@types" + ], + "baseUrl": ".", + "paths": { + "*": [ + "types/*" + ] + } + }, + "include": [ + "src/**/*" + ], + "exclude": [ + "node_modules", + "compiled" + ] +} Info seq [hh:mm:ss:mss] Search path: /Users/someuser/work/applications/frontend/src/app/utils @@ -185,10 +220,25 @@ FsWatchesRecursive:: /Users/someuser/work/applications/frontend/src: {} -Info seq [hh:mm:ss:mss] fileExists:: [{"key":"/Users/someuser/work/applications/frontend/src/app/utils/Cookie.ts","count":2}] -Info seq [hh:mm:ss:mss] directoryExists:: [{"key":"/Users/someuser/work/applications/frontend/src/app/utils/Cookie.ts","count":1}] +Info seq [hh:mm:ss:mss] fileExists:: [ + { + "key": "/Users/someuser/work/applications/frontend/src/app/utils/Cookie.ts", + "count": 2 + } +] +Info seq [hh:mm:ss:mss] directoryExists:: [ + { + "key": "/Users/someuser/work/applications/frontend/src/app/utils/Cookie.ts", + "count": 1 + } +] Info seq [hh:mm:ss:mss] getDirectories:: [] -Info seq [hh:mm:ss:mss] readFile:: [{"key":"/Users/someuser/work/applications/frontend/src/app/utils/Cookie.ts","count":1}] +Info seq [hh:mm:ss:mss] readFile:: [ + { + "key": "/Users/someuser/work/applications/frontend/src/app/utils/Cookie.ts", + "count": 1 + } +] Info seq [hh:mm:ss:mss] readDirectory:: [] Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /Users/someuser/work/applications/frontend/src/app/utils/Cookie.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Search path: /Users/someuser/work/applications/frontend/src/app/utils diff --git a/tests/baselines/reference/tsserver/cachingFileSystemInformation/when-calling-goto-definition-of-module.js b/tests/baselines/reference/tsserver/cachingFileSystemInformation/when-calling-goto-definition-of-module.js index 846c21ef7c56d..203a5e57e95ae 100644 --- a/tests/baselines/reference/tsserver/cachingFileSystemInformation/when-calling-goto-definition-of-module.js +++ b/tests/baselines/reference/tsserver/cachingFileSystemInformation/when-calling-goto-definition-of-module.js @@ -17,7 +17,27 @@ export class Bookshelf { } //// [/a/b/tsconfig.json] -{"compilerOptions":{"target":"es6","module":"es6","baseUrl":"./","paths":{"~/*":["*"]}},"exclude":["api","build","node_modules","public","seeds","sql_updates","tests.build"]} +{ + "compilerOptions": { + "target": "es6", + "module": "es6", + "baseUrl": "./", + "paths": { + "~/*": [ + "*" + ] + } + }, + "exclude": [ + "api", + "build", + "node_modules", + "public", + "seeds", + "sql_updates", + "tests.build" + ] +} Info seq [hh:mm:ss:mss] request: @@ -188,7 +208,16 @@ FsWatchesRecursive:: /a/b: {} -Info seq [hh:mm:ss:mss] fileExists:: [{"key":"/a/b/models/tsconfig.json","count":1},{"key":"/a/b/models/jsconfig.json","count":1}] +Info seq [hh:mm:ss:mss] fileExists:: [ + { + "key": "/a/b/models/tsconfig.json", + "count": 1 + }, + { + "key": "/a/b/models/jsconfig.json", + "count": 1 + } +] Info seq [hh:mm:ss:mss] directoryExists:: [] Info seq [hh:mm:ss:mss] getDirectories:: [] Info seq [hh:mm:ss:mss] readFile:: [] diff --git a/tests/baselines/reference/tsserver/cachingFileSystemInformation/when-creating-new-file-in-symlinked-folder.js b/tests/baselines/reference/tsserver/cachingFileSystemInformation/when-creating-new-file-in-symlinked-folder.js index 059a14ff330b2..881a2e8c86021 100644 --- a/tests/baselines/reference/tsserver/cachingFileSystemInformation/when-creating-new-file-in-symlinked-folder.js +++ b/tests/baselines/reference/tsserver/cachingFileSystemInformation/when-creating-new-file-in-symlinked-folder.js @@ -9,7 +9,20 @@ import * as M from "folder1/module1"; //// [/user/username/projects/myproject/client/linktofolder2] symlink(/user/username/projects/myproject/folder2) //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"baseUrl":"client","paths":{"*":["*"]}},"include":["client/**/*","folder2"]} +{ + "compilerOptions": { + "baseUrl": "client", + "paths": { + "*": [ + "*" + ] + } + }, + "include": [ + "client/**/*", + "folder2" + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/cachingFileSystemInformation/works-using-legacy-resolution-logic.js b/tests/baselines/reference/tsserver/cachingFileSystemInformation/works-using-legacy-resolution-logic.js index d9cd6ac2fb682..f2299ab7a06d9 100644 --- a/tests/baselines/reference/tsserver/cachingFileSystemInformation/works-using-legacy-resolution-logic.js +++ b/tests/baselines/reference/tsserver/cachingFileSystemInformation/works-using-legacy-resolution-logic.js @@ -63,8 +63,106 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Could not find source file: '/c/f1.ts'. -Info seq [hh:mm:ss:mss] fileExists:: [{"key":"/c/d/f2.ts","count":1},{"key":"/c/d/f2.tsx","count":1},{"key":"/c/d/f2.d.ts","count":1},{"key":"/c/f2.ts","count":1},{"key":"/c/f2.tsx","count":1},{"key":"/c/f2.d.ts","count":1},{"key":"/f2.ts","count":1},{"key":"/f2.tsx","count":1},{"key":"/f2.d.ts","count":1},{"key":"/c/d/f2.js","count":1},{"key":"/c/d/f2.jsx","count":1},{"key":"/c/f2.js","count":1},{"key":"/c/f2.jsx","count":1},{"key":"/f2.js","count":1},{"key":"/f2.jsx","count":1}] -Info seq [hh:mm:ss:mss] directoryExists:: [{"key":"/c/d","count":2},{"key":"/c","count":2},{"key":"/","count":2},{"key":"/c/d/node_modules","count":1},{"key":"/c/node_modules","count":1},{"key":"/node_modules","count":1},{"key":"/c/d/node_modules/@types","count":1},{"key":"/c/node_modules/@types","count":1},{"key":"/node_modules/@types","count":1}] +Info seq [hh:mm:ss:mss] fileExists:: [ + { + "key": "/c/d/f2.ts", + "count": 1 + }, + { + "key": "/c/d/f2.tsx", + "count": 1 + }, + { + "key": "/c/d/f2.d.ts", + "count": 1 + }, + { + "key": "/c/f2.ts", + "count": 1 + }, + { + "key": "/c/f2.tsx", + "count": 1 + }, + { + "key": "/c/f2.d.ts", + "count": 1 + }, + { + "key": "/f2.ts", + "count": 1 + }, + { + "key": "/f2.tsx", + "count": 1 + }, + { + "key": "/f2.d.ts", + "count": 1 + }, + { + "key": "/c/d/f2.js", + "count": 1 + }, + { + "key": "/c/d/f2.jsx", + "count": 1 + }, + { + "key": "/c/f2.js", + "count": 1 + }, + { + "key": "/c/f2.jsx", + "count": 1 + }, + { + "key": "/f2.js", + "count": 1 + }, + { + "key": "/f2.jsx", + "count": 1 + } +] +Info seq [hh:mm:ss:mss] directoryExists:: [ + { + "key": "/c/d", + "count": 2 + }, + { + "key": "/c", + "count": 2 + }, + { + "key": "/", + "count": 2 + }, + { + "key": "/c/d/node_modules", + "count": 1 + }, + { + "key": "/c/node_modules", + "count": 1 + }, + { + "key": "/node_modules", + "count": 1 + }, + { + "key": "/c/d/node_modules/@types", + "count": 1 + }, + { + "key": "/c/node_modules/@types", + "count": 1 + }, + { + "key": "/node_modules/@types", + "count": 1 + } +] Info seq [hh:mm:ss:mss] getDirectories:: [] Info seq [hh:mm:ss:mss] readFile:: [] Info seq [hh:mm:ss:mss] readDirectory:: [] @@ -85,8 +183,46 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] getSemanticDiagnostics:: /c/f1.ts:: 1 Info seq [hh:mm:ss:mss] ../f1.ts(1,1): error TS2304: Cannot find name 'foo'. -Info seq [hh:mm:ss:mss] fileExists:: [{"key":"/c/d/f1.ts","count":1},{"key":"/c/d/f1.tsx","count":1},{"key":"/c/d/f1.d.ts","count":1},{"key":"/c/f1.ts","count":1}] -Info seq [hh:mm:ss:mss] directoryExists:: [{"key":"/c/d","count":1},{"key":"/c","count":1},{"key":"/c/d/node_modules/@types","count":1},{"key":"/c/node_modules/@types","count":1},{"key":"/node_modules/@types","count":1}] +Info seq [hh:mm:ss:mss] fileExists:: [ + { + "key": "/c/d/f1.ts", + "count": 1 + }, + { + "key": "/c/d/f1.tsx", + "count": 1 + }, + { + "key": "/c/d/f1.d.ts", + "count": 1 + }, + { + "key": "/c/f1.ts", + "count": 1 + } +] +Info seq [hh:mm:ss:mss] directoryExists:: [ + { + "key": "/c/d", + "count": 1 + }, + { + "key": "/c", + "count": 1 + }, + { + "key": "/c/d/node_modules/@types", + "count": 1 + }, + { + "key": "/c/node_modules/@types", + "count": 1 + }, + { + "key": "/node_modules/@types", + "count": 1 + } +] Info seq [hh:mm:ss:mss] getDirectories:: [] Info seq [hh:mm:ss:mss] readFile:: [] Info seq [hh:mm:ss:mss] readDirectory:: [] @@ -103,8 +239,46 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] getSemanticDiagnostics:: /c/f1.ts:: 1 Info seq [hh:mm:ss:mss] ../f1.ts(1,1): error TS2304: Cannot find name 'foo'. -Info seq [hh:mm:ss:mss] fileExists:: [{"key":"/c/d/f1.ts","count":1},{"key":"/c/d/f1.tsx","count":1},{"key":"/c/d/f1.d.ts","count":1},{"key":"/c/f1.ts","count":1}] -Info seq [hh:mm:ss:mss] directoryExists:: [{"key":"/c/d","count":1},{"key":"/c","count":1},{"key":"/c/d/node_modules/@types","count":1},{"key":"/c/node_modules/@types","count":1},{"key":"/node_modules/@types","count":1}] +Info seq [hh:mm:ss:mss] fileExists:: [ + { + "key": "/c/d/f1.ts", + "count": 1 + }, + { + "key": "/c/d/f1.tsx", + "count": 1 + }, + { + "key": "/c/d/f1.d.ts", + "count": 1 + }, + { + "key": "/c/f1.ts", + "count": 1 + } +] +Info seq [hh:mm:ss:mss] directoryExists:: [ + { + "key": "/c/d", + "count": 1 + }, + { + "key": "/c", + "count": 1 + }, + { + "key": "/c/d/node_modules/@types", + "count": 1 + }, + { + "key": "/c/node_modules/@types", + "count": 1 + }, + { + "key": "/node_modules/@types", + "count": 1 + } +] Info seq [hh:mm:ss:mss] getDirectories:: [] Info seq [hh:mm:ss:mss] readFile:: [] Info seq [hh:mm:ss:mss] readDirectory:: [] \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/cancellationT/Geterr-is-cancellable.js b/tests/baselines/reference/tsserver/cancellationT/Geterr-is-cancellable.js index 8b949878c27cb..69ffd994c9b36 100644 --- a/tests/baselines/reference/tsserver/cancellationT/Geterr-is-cancellable.js +++ b/tests/baselines/reference/tsserver/cancellationT/Geterr-is-cancellable.js @@ -5,7 +5,9 @@ Before request let x = 1 //// [/a/tsconfig.json] -{"compilerOptions":{}} +{ + "compilerOptions": {} +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/cancellationT/Lower-priority-tasks-are-cancellable.js b/tests/baselines/reference/tsserver/cancellationT/Lower-priority-tasks-are-cancellable.js index d43290454e86d..5a463c08244f6 100644 --- a/tests/baselines/reference/tsserver/cancellationT/Lower-priority-tasks-are-cancellable.js +++ b/tests/baselines/reference/tsserver/cancellationT/Lower-priority-tasks-are-cancellable.js @@ -5,7 +5,9 @@ Before request { let x = 1; } var foo = "foo"; var bar = "bar"; var fooBar = "fooBar"; //// [/a/tsconfig.json] -{"compilerOptions":{}} +{ + "compilerOptions": {} +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/compileOnSave/CompileOnSaveAffectedFileListRequest-when-projectFile-is-not-specified.js b/tests/baselines/reference/tsserver/compileOnSave/CompileOnSaveAffectedFileListRequest-when-projectFile-is-not-specified.js index a3fd6a6af81a8..68c992a9bf9f8 100644 --- a/tests/baselines/reference/tsserver/compileOnSave/CompileOnSaveAffectedFileListRequest-when-projectFile-is-not-specified.js +++ b/tests/baselines/reference/tsserver/compileOnSave/CompileOnSaveAffectedFileListRequest-when-projectFile-is-not-specified.js @@ -24,10 +24,28 @@ let x = 10; let y = 10; //// [/user/username/projects/myproject/app1/tsconfig.json] -{"files":["app.ts","../core/core.ts"],"compilerOptions":{"outFile":"build/output.js"},"compileOnSave":true} +{ + "files": [ + "app.ts", + "../core/core.ts" + ], + "compilerOptions": { + "outFile": "build/output.js" + }, + "compileOnSave": true +} //// [/user/username/projects/myproject/app2/tsconfig.json] -{"files":["app.ts","../core/core.ts"],"compilerOptions":{"outFile":"build/output.js"},"compileOnSave":true} +{ + "files": [ + "app.ts", + "../core/core.ts" + ], + "compilerOptions": { + "outFile": "build/output.js" + }, + "compileOnSave": true +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/compileOnSave/CompileOnSaveAffectedFileListRequest-when-projectFile-is-specified.js b/tests/baselines/reference/tsserver/compileOnSave/CompileOnSaveAffectedFileListRequest-when-projectFile-is-specified.js index c1e543479751f..533fac2d08dae 100644 --- a/tests/baselines/reference/tsserver/compileOnSave/CompileOnSaveAffectedFileListRequest-when-projectFile-is-specified.js +++ b/tests/baselines/reference/tsserver/compileOnSave/CompileOnSaveAffectedFileListRequest-when-projectFile-is-specified.js @@ -24,10 +24,28 @@ let x = 10; let y = 10; //// [/user/username/projects/myproject/app1/tsconfig.json] -{"files":["app.ts","../core/core.ts"],"compilerOptions":{"outFile":"build/output.js"},"compileOnSave":true} +{ + "files": [ + "app.ts", + "../core/core.ts" + ], + "compilerOptions": { + "outFile": "build/output.js" + }, + "compileOnSave": true +} //// [/user/username/projects/myproject/app2/tsconfig.json] -{"files":["app.ts","../core/core.ts"],"compilerOptions":{"outFile":"build/output.js"},"compileOnSave":true} +{ + "files": [ + "app.ts", + "../core/core.ts" + ], + "compilerOptions": { + "outFile": "build/output.js" + }, + "compileOnSave": true +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/compileOnSave/compileOnSaveAffectedFileList-projectUsesOutFile-should-be-true-if-out-is-set.js b/tests/baselines/reference/tsserver/compileOnSave/compileOnSaveAffectedFileList-projectUsesOutFile-should-be-true-if-out-is-set.js index 84903633a1e25..870666a1aea4b 100644 --- a/tests/baselines/reference/tsserver/compileOnSave/compileOnSaveAffectedFileList-projectUsesOutFile-should-be-true-if-out-is-set.js +++ b/tests/baselines/reference/tsserver/compileOnSave/compileOnSaveAffectedFileList-projectUsesOutFile-should-be-true-if-out-is-set.js @@ -8,7 +8,12 @@ let x = 1 let y = 1 //// [/a/tsconfig.json] -{"compilerOptions":{"out":"/a/out.js"},"compileOnSave":true} +{ + "compilerOptions": { + "out": "/a/out.js" + }, + "compileOnSave": true +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/compileOnSave/compileOnSaveAffectedFileList-projectUsesOutFile-should-be-true-if-outFile-is-set.js b/tests/baselines/reference/tsserver/compileOnSave/compileOnSaveAffectedFileList-projectUsesOutFile-should-be-true-if-outFile-is-set.js index 886cb5008eafc..c6ad765a405a0 100644 --- a/tests/baselines/reference/tsserver/compileOnSave/compileOnSaveAffectedFileList-projectUsesOutFile-should-be-true-if-outFile-is-set.js +++ b/tests/baselines/reference/tsserver/compileOnSave/compileOnSaveAffectedFileList-projectUsesOutFile-should-be-true-if-outFile-is-set.js @@ -8,7 +8,12 @@ let x = 1 let y = 1 //// [/a/tsconfig.json] -{"compilerOptions":{"outFile":"/a/out.js"},"compileOnSave":true} +{ + "compilerOptions": { + "outFile": "/a/out.js" + }, + "compileOnSave": true +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/compileOnSave/compileOnSaveAffectedFileList-projectUsesOutFile-should-not-be-returned-if-not-set.js b/tests/baselines/reference/tsserver/compileOnSave/compileOnSaveAffectedFileList-projectUsesOutFile-should-not-be-returned-if-not-set.js index aebac74267c6a..1f93d82724b88 100644 --- a/tests/baselines/reference/tsserver/compileOnSave/compileOnSaveAffectedFileList-projectUsesOutFile-should-not-be-returned-if-not-set.js +++ b/tests/baselines/reference/tsserver/compileOnSave/compileOnSaveAffectedFileList-projectUsesOutFile-should-not-be-returned-if-not-set.js @@ -8,7 +8,10 @@ let x = 1 let y = 1 //// [/a/tsconfig.json] -{"compilerOptions":{},"compileOnSave":true} +{ + "compilerOptions": {}, + "compileOnSave": true +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/compileOnSave/dtsFileChange-in-global-file-with-composite.js b/tests/baselines/reference/tsserver/compileOnSave/dtsFileChange-in-global-file-with-composite.js index 74fdee46e55a6..d61269e293749 100644 --- a/tests/baselines/reference/tsserver/compileOnSave/dtsFileChange-in-global-file-with-composite.js +++ b/tests/baselines/reference/tsserver/compileOnSave/dtsFileChange-in-global-file-with-composite.js @@ -8,7 +8,12 @@ declare const x: string; var y = 1; //// [/a/tsconfig.json] -{"compilerOptions":{"composite":true},"compileOnSave":true} +{ + "compilerOptions": { + "composite": true + }, + "compileOnSave": true +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/compileOnSave/dtsFileChange-in-global-file-with-decorator-emit.js b/tests/baselines/reference/tsserver/compileOnSave/dtsFileChange-in-global-file-with-decorator-emit.js index 0416afdf44b8a..acc53306d070f 100644 --- a/tests/baselines/reference/tsserver/compileOnSave/dtsFileChange-in-global-file-with-decorator-emit.js +++ b/tests/baselines/reference/tsserver/compileOnSave/dtsFileChange-in-global-file-with-decorator-emit.js @@ -8,7 +8,13 @@ declare const x: string; var y = 1; //// [/a/tsconfig.json] -{"compilerOptions":{"experimentalDecorators":true,"emitDecoratorMetadata":true},"compileOnSave":true} +{ + "compilerOptions": { + "experimentalDecorators": true, + "emitDecoratorMetadata": true + }, + "compileOnSave": true +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/compileOnSave/dtsFileChange-in-global-file-with-dts-emit.js b/tests/baselines/reference/tsserver/compileOnSave/dtsFileChange-in-global-file-with-dts-emit.js index 3ef03028df3a5..8ff95cc977632 100644 --- a/tests/baselines/reference/tsserver/compileOnSave/dtsFileChange-in-global-file-with-dts-emit.js +++ b/tests/baselines/reference/tsserver/compileOnSave/dtsFileChange-in-global-file-with-dts-emit.js @@ -8,7 +8,12 @@ declare const x: string; var y = 1; //// [/a/tsconfig.json] -{"compilerOptions":{"declaration":true},"compileOnSave":true} +{ + "compilerOptions": { + "declaration": true + }, + "compileOnSave": true +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/compileOnSave/dtsFileChange-in-global-file.js b/tests/baselines/reference/tsserver/compileOnSave/dtsFileChange-in-global-file.js index eda5f540ff04a..687ae9ba32473 100644 --- a/tests/baselines/reference/tsserver/compileOnSave/dtsFileChange-in-global-file.js +++ b/tests/baselines/reference/tsserver/compileOnSave/dtsFileChange-in-global-file.js @@ -8,7 +8,10 @@ declare const x: string; var y = 1; //// [/a/tsconfig.json] -{"compilerOptions":{},"compileOnSave":true} +{ + "compilerOptions": {}, + "compileOnSave": true +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/compileOnSave/dtsFileChange-in-module-file.js b/tests/baselines/reference/tsserver/compileOnSave/dtsFileChange-in-module-file.js index 215433b9704c8..872818ee6dcec 100644 --- a/tests/baselines/reference/tsserver/compileOnSave/dtsFileChange-in-module-file.js +++ b/tests/baselines/reference/tsserver/compileOnSave/dtsFileChange-in-module-file.js @@ -8,7 +8,10 @@ export const x: string; import { x } from './runtime/a; //// [/a/tsconfig.json] -{"compilerOptions":{},"compileOnSave":true} +{ + "compilerOptions": {}, + "compileOnSave": true +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/compileOnSave/emit-in-project-with-dts-emit.js b/tests/baselines/reference/tsserver/compileOnSave/emit-in-project-with-dts-emit.js index 726da15a826d7..0507957633608 100644 --- a/tests/baselines/reference/tsserver/compileOnSave/emit-in-project-with-dts-emit.js +++ b/tests/baselines/reference/tsserver/compileOnSave/emit-in-project-with-dts-emit.js @@ -17,7 +17,13 @@ function bar() { const xy = 3; //// [/user/username/projects/myproject/tsconfig.json] -{"compileOnSave":true,"compilerOptions":{"declaration":true,"module":"none"}} +{ + "compileOnSave": true, + "compilerOptions": { + "declaration": true, + "module": "none" + } +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/compileOnSave/emit-in-project-with-module-with-dts-emit.js b/tests/baselines/reference/tsserver/compileOnSave/emit-in-project-with-module-with-dts-emit.js index 49f6751f4e1eb..b020b4ed21b30 100644 --- a/tests/baselines/reference/tsserver/compileOnSave/emit-in-project-with-module-with-dts-emit.js +++ b/tests/baselines/reference/tsserver/compileOnSave/emit-in-project-with-module-with-dts-emit.js @@ -20,7 +20,12 @@ const xy = 3; export const xyz = 4; //// [/user/username/projects/myproject/tsconfig.json] -{"compileOnSave":true,"compilerOptions":{"declaration":true}} +{ + "compileOnSave": true, + "compilerOptions": { + "declaration": true + } +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/compileOnSave/emit-in-project-with-module.js b/tests/baselines/reference/tsserver/compileOnSave/emit-in-project-with-module.js index dafe531139cef..86e89474aed66 100644 --- a/tests/baselines/reference/tsserver/compileOnSave/emit-in-project-with-module.js +++ b/tests/baselines/reference/tsserver/compileOnSave/emit-in-project-with-module.js @@ -20,7 +20,12 @@ const xy = 3; export const xyz = 4; //// [/user/username/projects/myproject/tsconfig.json] -{"compileOnSave":true,"compilerOptions":{"declaration":false}} +{ + "compileOnSave": true, + "compilerOptions": { + "declaration": false + } +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/compileOnSave/emit-in-project.js b/tests/baselines/reference/tsserver/compileOnSave/emit-in-project.js index 44f9547175dd7..3d2d6090fdb4b 100644 --- a/tests/baselines/reference/tsserver/compileOnSave/emit-in-project.js +++ b/tests/baselines/reference/tsserver/compileOnSave/emit-in-project.js @@ -17,7 +17,13 @@ function bar() { const xy = 3; //// [/user/username/projects/myproject/tsconfig.json] -{"compileOnSave":true,"compilerOptions":{"declaration":false,"module":"none"}} +{ + "compileOnSave": true, + "compilerOptions": { + "declaration": false, + "module": "none" + } +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/compileOnSave/emit-with-richRepsonse-as-false.js b/tests/baselines/reference/tsserver/compileOnSave/emit-with-richRepsonse-as-false.js index e9021e8dc6d59..fa4537e5bb14a 100644 --- a/tests/baselines/reference/tsserver/compileOnSave/emit-with-richRepsonse-as-false.js +++ b/tests/baselines/reference/tsserver/compileOnSave/emit-with-richRepsonse-as-false.js @@ -8,7 +8,17 @@ const x = 1; const y = 2; //// [/user/username/projects/myproject/tsconfig.json] -{"compileOnSave":true,"compilerOptions":{"outDir":"test","noEmitOnError":true,"declaration":true},"exclude":["node_modules"]} +{ + "compileOnSave": true, + "compilerOptions": { + "outDir": "test", + "noEmitOnError": true, + "declaration": true + }, + "exclude": [ + "node_modules" + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/compileOnSave/emit-with-richRepsonse-as-true.js b/tests/baselines/reference/tsserver/compileOnSave/emit-with-richRepsonse-as-true.js index dd826a08d8c06..bb1090677d323 100644 --- a/tests/baselines/reference/tsserver/compileOnSave/emit-with-richRepsonse-as-true.js +++ b/tests/baselines/reference/tsserver/compileOnSave/emit-with-richRepsonse-as-true.js @@ -8,7 +8,17 @@ const x = 1; const y = 2; //// [/user/username/projects/myproject/tsconfig.json] -{"compileOnSave":true,"compilerOptions":{"outDir":"test","noEmitOnError":true,"declaration":true},"exclude":["node_modules"]} +{ + "compileOnSave": true, + "compilerOptions": { + "outDir": "test", + "noEmitOnError": true, + "declaration": true + }, + "exclude": [ + "node_modules" + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/compileOnSave/emit-with-richRepsonse-as-undefined.js b/tests/baselines/reference/tsserver/compileOnSave/emit-with-richRepsonse-as-undefined.js index 1c8ba38dbeed0..b3a5beb7417a3 100644 --- a/tests/baselines/reference/tsserver/compileOnSave/emit-with-richRepsonse-as-undefined.js +++ b/tests/baselines/reference/tsserver/compileOnSave/emit-with-richRepsonse-as-undefined.js @@ -8,7 +8,17 @@ const x = 1; const y = 2; //// [/user/username/projects/myproject/tsconfig.json] -{"compileOnSave":true,"compilerOptions":{"outDir":"test","noEmitOnError":true,"declaration":true},"exclude":["node_modules"]} +{ + "compileOnSave": true, + "compilerOptions": { + "outDir": "test", + "noEmitOnError": true, + "declaration": true + }, + "exclude": [ + "node_modules" + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/completions/works-when-files-are-included-from-two-different-drives-of-windows.js b/tests/baselines/reference/tsserver/completions/works-when-files-are-included-from-two-different-drives-of-windows.js index 036d9b3759b13..f85ffbbe91020 100644 --- a/tests/baselines/reference/tsserver/completions/works-when-files-are-included-from-two-different-drives-of-windows.js +++ b/tests/baselines/reference/tsserver/completions/works-when-files-are-included-from-two-different-drives-of-windows.js @@ -33,7 +33,14 @@ import * as PropTypes from 'prop-types'; //// [e:/myproject/package.json] -{"name":"test","version":"0.1.0","dependencies":{"react":"^16.12.0","react-router-dom":"^5.1.2"}} +{ + "name": "test", + "version": "0.1.0", + "dependencies": { + "react": "^16.12.0", + "react-router-dom": "^5.1.2" + } +} //// [c:/a/lib/lib.d.ts] /// @@ -49,22 +56,37 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [e:/myproject/node_modules/@types/react/package.json] -{"name":"@types/react","version":"16.9.14"} +{ + "name": "@types/react", + "version": "16.9.14" +} //// [e:/myproject/node_modules/react-router-dom/package.json] -{"name":"react-router-dom","version":"5.1.2"} +{ + "name": "react-router-dom", + "version": "5.1.2" +} //// [e:/myproject/node_modules/react-router-dom/index.js] export function foo() {} //// [e:/myproject/node_modules/@types/prop-types/package.json] -{"name":"@types/prop-types","version":"15.7.3"} +{ + "name": "@types/prop-types", + "version": "15.7.3" +} //// [c:/typescript/node_modules/@types/react-router-dom/package.json] -{"name":"@types/react-router-dom","version":"5.1.2"} +{ + "name": "@types/react-router-dom", + "version": "5.1.2" +} //// [c:/typescript/node_modules/@types/react/package.json] -{"name":"@types/react","version":"16.9.14"} +{ + "name": "@types/react", + "version": "16.9.14" +} Info seq [hh:mm:ss:mss] request: @@ -182,7 +204,7 @@ TI:: typing installer creation complete //// [c:/typescript/node_modules/types-registry/index.json] { - "entries": {} + "entries": {} } diff --git a/tests/baselines/reference/tsserver/configuredProjects/Open-ref-of-configured-project-when-open-file-gets-added-to-the-project-as-part-of-configured-file-update-buts-its-open-file-references-are-all-closed-when-the-update-happens.js b/tests/baselines/reference/tsserver/configuredProjects/Open-ref-of-configured-project-when-open-file-gets-added-to-the-project-as-part-of-configured-file-update-buts-its-open-file-references-are-all-closed-when-the-update-happens.js index feef5972e16c1..d817be19531a1 100644 --- a/tests/baselines/reference/tsserver/configuredProjects/Open-ref-of-configured-project-when-open-file-gets-added-to-the-project-as-part-of-configured-file-update-buts-its-open-file-references-are-all-closed-when-the-update-happens.js +++ b/tests/baselines/reference/tsserver/configuredProjects/Open-ref-of-configured-project-when-open-file-gets-added-to-the-project-as-part-of-configured-file-update-buts-its-open-file-references-are-all-closed-when-the-update-happens.js @@ -14,7 +14,12 @@ let z = 1; let z = 1; //// [/a/b/tsconfig.json] -{"files":["src/file1.ts","file3.ts"]} +{ + "files": [ + "src/file1.ts", + "file3.ts" + ] +} Info seq [hh:mm:ss:mss] Search path: /a/b/src diff --git a/tests/baselines/reference/tsserver/configuredProjects/Open-ref-of-configured-project-when-open-file-gets-added-to-the-project-as-part-of-configured-file-update.js b/tests/baselines/reference/tsserver/configuredProjects/Open-ref-of-configured-project-when-open-file-gets-added-to-the-project-as-part-of-configured-file-update.js index 79df60ca095bc..2bf0aa6f79132 100644 --- a/tests/baselines/reference/tsserver/configuredProjects/Open-ref-of-configured-project-when-open-file-gets-added-to-the-project-as-part-of-configured-file-update.js +++ b/tests/baselines/reference/tsserver/configuredProjects/Open-ref-of-configured-project-when-open-file-gets-added-to-the-project-as-part-of-configured-file-update.js @@ -14,7 +14,12 @@ let z = 1; let z = 1; //// [/a/b/tsconfig.json] -{"files":["src/file1.ts","file3.ts"]} +{ + "files": [ + "src/file1.ts", + "file3.ts" + ] +} Info seq [hh:mm:ss:mss] Search path: /a/b/src diff --git a/tests/baselines/reference/tsserver/configuredProjects/can-correctly-update-configured-project-when-set-of-root-files-has-changed-(new-file-in-list-of-files).js b/tests/baselines/reference/tsserver/configuredProjects/can-correctly-update-configured-project-when-set-of-root-files-has-changed-(new-file-in-list-of-files).js index c8bc4fb6c6221..de5545016d367 100644 --- a/tests/baselines/reference/tsserver/configuredProjects/can-correctly-update-configured-project-when-set-of-root-files-has-changed-(new-file-in-list-of-files).js +++ b/tests/baselines/reference/tsserver/configuredProjects/can-correctly-update-configured-project-when-set-of-root-files-has-changed-(new-file-in-list-of-files).js @@ -8,7 +8,12 @@ let x = 1 let y = 1 //// [/a/b/tsconfig.json] -{"compilerOptions":{},"files":["f1.ts"]} +{ + "compilerOptions": {}, + "files": [ + "f1.ts" + ] +} Info seq [hh:mm:ss:mss] Search path: /a/b @@ -50,7 +55,13 @@ Before running Timeout callback:: count: 2 1: /a/b/tsconfig.json 2: *ensureProjectForOpenFiles* //// [/a/b/tsconfig.json] -{"compilerOptions":{},"files":["f1.ts","f2.ts"]} +{ + "compilerOptions": {}, + "files": [ + "f1.ts", + "f2.ts" + ] +} PolledWatches:: diff --git a/tests/baselines/reference/tsserver/configuredProjects/can-correctly-update-configured-project-when-set-of-root-files-has-changed-(new-file-on-disk).js b/tests/baselines/reference/tsserver/configuredProjects/can-correctly-update-configured-project-when-set-of-root-files-has-changed-(new-file-on-disk).js index 58e3fd27be768..596f0a2585d44 100644 --- a/tests/baselines/reference/tsserver/configuredProjects/can-correctly-update-configured-project-when-set-of-root-files-has-changed-(new-file-on-disk).js +++ b/tests/baselines/reference/tsserver/configuredProjects/can-correctly-update-configured-project-when-set-of-root-files-has-changed-(new-file-on-disk).js @@ -5,7 +5,9 @@ Creating project service let x = 1 //// [/a/b/tsconfig.json] -{"compilerOptions":{}} +{ + "compilerOptions": {} +} Info seq [hh:mm:ss:mss] Search path: /a/b diff --git a/tests/baselines/reference/tsserver/configuredProjects/can-update-configured-project-when-set-of-root-files-was-not-changed.js b/tests/baselines/reference/tsserver/configuredProjects/can-update-configured-project-when-set-of-root-files-was-not-changed.js index a3c2e210a6b02..173f607b3895f 100644 --- a/tests/baselines/reference/tsserver/configuredProjects/can-update-configured-project-when-set-of-root-files-was-not-changed.js +++ b/tests/baselines/reference/tsserver/configuredProjects/can-update-configured-project-when-set-of-root-files-was-not-changed.js @@ -8,7 +8,13 @@ let x = 1 let y = 1 //// [/a/b/tsconfig.json] -{"compilerOptions":{},"files":["f1.ts","f2.ts"]} +{ + "compilerOptions": {}, + "files": [ + "f1.ts", + "f2.ts" + ] +} Info seq [hh:mm:ss:mss] Search path: /a/b @@ -55,7 +61,15 @@ Before running Timeout callback:: count: 2 1: /a/b/tsconfig.json 2: *ensureProjectForOpenFiles* //// [/a/b/tsconfig.json] -{"compilerOptions":{"outFile":"out.js"},"files":["f1.ts","f2.ts"]} +{ + "compilerOptions": { + "outFile": "out.js" + }, + "files": [ + "f1.ts", + "f2.ts" + ] +} PolledWatches:: diff --git a/tests/baselines/reference/tsserver/configuredProjects/changed-module-resolution-reflected-when-specifying-files-list.js b/tests/baselines/reference/tsserver/configuredProjects/changed-module-resolution-reflected-when-specifying-files-list.js index 7750f2b665af2..fd196ebace762 100644 --- a/tests/baselines/reference/tsserver/configuredProjects/changed-module-resolution-reflected-when-specifying-files-list.js +++ b/tests/baselines/reference/tsserver/configuredProjects/changed-module-resolution-reflected-when-specifying-files-list.js @@ -8,7 +8,14 @@ import classc from "file2" export classc { method2a() { return 10; } } //// [/users/username/projects/project/tsconfig.json] -{"files":["/users/username/projects/project/file1.ts"],"compilerOptions":{"module":"amd"}} +{ + "files": [ + "/users/username/projects/project/file1.ts" + ], + "compilerOptions": { + "module": "amd" + } +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-after-watcher-is-invoked,-ask-errors-on-it-after-old-one-without-file-being-in-config.js b/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-after-watcher-is-invoked,-ask-errors-on-it-after-old-one-without-file-being-in-config.js index 19ca57f44d971..ab7494515a346 100644 --- a/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-after-watcher-is-invoked,-ask-errors-on-it-after-old-one-without-file-being-in-config.js +++ b/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-after-watcher-is-invoked,-ask-errors-on-it-after-old-one-without-file-being-in-config.js @@ -21,7 +21,14 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/tsconfig.json] -{"include":["./src"],"exclude":["./src/sub"]} +{ + "include": [ + "./src" + ], + "exclude": [ + "./src/sub" + ] +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-after-watcher-is-invoked,-ask-errors-on-it-after-old-one.js b/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-after-watcher-is-invoked,-ask-errors-on-it-after-old-one.js index 851ab4c53b8a8..c1704c638e1e6 100644 --- a/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-after-watcher-is-invoked,-ask-errors-on-it-after-old-one.js +++ b/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-after-watcher-is-invoked,-ask-errors-on-it-after-old-one.js @@ -21,7 +21,11 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/tsconfig.json] -{"include":["./src"]} +{ + "include": [ + "./src" + ] +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-after-watcher-is-invoked,-ask-errors-on-it-before-old-one-without-file-being-in-config.js b/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-after-watcher-is-invoked,-ask-errors-on-it-before-old-one-without-file-being-in-config.js index 0767871a4ab76..dc6f0ac90dfa3 100644 --- a/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-after-watcher-is-invoked,-ask-errors-on-it-before-old-one-without-file-being-in-config.js +++ b/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-after-watcher-is-invoked,-ask-errors-on-it-before-old-one-without-file-being-in-config.js @@ -21,7 +21,14 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/tsconfig.json] -{"include":["./src"],"exclude":["./src/sub"]} +{ + "include": [ + "./src" + ], + "exclude": [ + "./src/sub" + ] +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-after-watcher-is-invoked,-ask-errors-on-it-before-old-one.js b/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-after-watcher-is-invoked,-ask-errors-on-it-before-old-one.js index 979f7783320e6..9c87b1207c5f9 100644 --- a/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-after-watcher-is-invoked,-ask-errors-on-it-before-old-one.js +++ b/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-after-watcher-is-invoked,-ask-errors-on-it-before-old-one.js @@ -21,7 +21,11 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/tsconfig.json] -{"include":["./src"]} +{ + "include": [ + "./src" + ] +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-before-watcher-is-invoked,-ask-errors-on-it-after-old-one-without-file-being-in-config.js b/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-before-watcher-is-invoked,-ask-errors-on-it-after-old-one-without-file-being-in-config.js index f56c74bf38731..35e8535410847 100644 --- a/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-before-watcher-is-invoked,-ask-errors-on-it-after-old-one-without-file-being-in-config.js +++ b/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-before-watcher-is-invoked,-ask-errors-on-it-after-old-one-without-file-being-in-config.js @@ -21,7 +21,14 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/tsconfig.json] -{"include":["./src"],"exclude":["./src/sub"]} +{ + "include": [ + "./src" + ], + "exclude": [ + "./src/sub" + ] +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-before-watcher-is-invoked,-ask-errors-on-it-after-old-one.js b/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-before-watcher-is-invoked,-ask-errors-on-it-after-old-one.js index 2e7a4f43affda..caecb5a075ab6 100644 --- a/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-before-watcher-is-invoked,-ask-errors-on-it-after-old-one.js +++ b/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-before-watcher-is-invoked,-ask-errors-on-it-after-old-one.js @@ -21,7 +21,11 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/tsconfig.json] -{"include":["./src"]} +{ + "include": [ + "./src" + ] +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-before-watcher-is-invoked,-ask-errors-on-it-before-old-one-without-file-being-in-config.js b/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-before-watcher-is-invoked,-ask-errors-on-it-before-old-one-without-file-being-in-config.js index 1be3e89e35212..54c6bddaf5e65 100644 --- a/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-before-watcher-is-invoked,-ask-errors-on-it-before-old-one-without-file-being-in-config.js +++ b/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-before-watcher-is-invoked,-ask-errors-on-it-before-old-one-without-file-being-in-config.js @@ -21,7 +21,14 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/tsconfig.json] -{"include":["./src"],"exclude":["./src/sub"]} +{ + "include": [ + "./src" + ], + "exclude": [ + "./src/sub" + ] +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-before-watcher-is-invoked,-ask-errors-on-it-before-old-one.js b/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-before-watcher-is-invoked,-ask-errors-on-it-before-old-one.js index 55bf045c39965..60e068f15a63c 100644 --- a/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-before-watcher-is-invoked,-ask-errors-on-it-before-old-one.js +++ b/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-before-watcher-is-invoked,-ask-errors-on-it-before-old-one.js @@ -21,7 +21,11 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/tsconfig.json] -{"include":["./src"]} +{ + "include": [ + "./src" + ] +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/configuredProjects/failed-lookup-locations-uses-parent-most-node_modules-directory.js b/tests/baselines/reference/tsserver/configuredProjects/failed-lookup-locations-uses-parent-most-node_modules-directory.js index 5b4271e51ded2..fe3e763e87526 100644 --- a/tests/baselines/reference/tsserver/configuredProjects/failed-lookup-locations-uses-parent-most-node_modules-directory.js +++ b/tests/baselines/reference/tsserver/configuredProjects/failed-lookup-locations-uses-parent-most-node_modules-directory.js @@ -15,7 +15,11 @@ export class2 { method2() { return 10; } } export class3 { method2() { return 10; } } //// [/user/username/rootfolder/a/b/src/tsconfig.json] -{"files":["file1.ts"]} +{ + "files": [ + "file1.ts" + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/configuredProjects/files-are-properly-detached-when-language-service-is-disabled.js b/tests/baselines/reference/tsserver/configuredProjects/files-are-properly-detached-when-language-service-is-disabled.js index 85cfbe959aafd..1689a8a1bab12 100644 --- a/tests/baselines/reference/tsserver/configuredProjects/files-are-properly-detached-when-language-service-is-disabled.js +++ b/tests/baselines/reference/tsserver/configuredProjects/files-are-properly-detached-when-language-service-is-disabled.js @@ -11,7 +11,11 @@ var x = 1 var x = 1 //// [/a/tsconfig.json] -{"compilerOptions":{"allowJs":true}} +{ + "compilerOptions": { + "allowJs": true + } +} Info seq [hh:mm:ss:mss] Search path: /a diff --git a/tests/baselines/reference/tsserver/configuredProjects/open-file-become-a-part-of-configured-project-if-it-is-referenced-from-root-file.js b/tests/baselines/reference/tsserver/configuredProjects/open-file-become-a-part-of-configured-project-if-it-is-referenced-from-root-file.js index 14902a522c581..c121974202f62 100644 --- a/tests/baselines/reference/tsserver/configuredProjects/open-file-become-a-part-of-configured-project-if-it-is-referenced-from-root-file.js +++ b/tests/baselines/reference/tsserver/configuredProjects/open-file-become-a-part-of-configured-project-if-it-is-referenced-from-root-file.js @@ -100,7 +100,13 @@ Before running Timeout callback:: count: 2 3: /user/username/projects/myproject/a/c/tsconfig.json 4: *ensureProjectForOpenFiles* //// [/user/username/projects/myproject/a/c/tsconfig.json] -{"compilerOptions":{},"files":["f2.ts","f3.ts"]} +{ + "compilerOptions": {}, + "files": [ + "f2.ts", + "f3.ts" + ] +} PolledWatches:: diff --git a/tests/baselines/reference/tsserver/configuredProjects/should-be-able-to-handle-@types-if-input-file-list-is-empty.js b/tests/baselines/reference/tsserver/configuredProjects/should-be-able-to-handle-@types-if-input-file-list-is-empty.js index 1419a0b1b6c28..05b9bc8e5b329 100644 --- a/tests/baselines/reference/tsserver/configuredProjects/should-be-able-to-handle-@types-if-input-file-list-is-empty.js +++ b/tests/baselines/reference/tsserver/configuredProjects/should-be-able-to-handle-@types-if-input-file-list-is-empty.js @@ -5,7 +5,10 @@ Creating project service let x = 1 //// [/a/tsconfig.json] -{"compiler":{},"files":[]} +{ + "compiler": {}, + "files": [] +} //// [/a/node_modules/@types/typings/index.d.ts] export * from "./lib" diff --git a/tests/baselines/reference/tsserver/configuredProjects/should-stop-watching-the-extended-configs-of-closed-projects.js b/tests/baselines/reference/tsserver/configuredProjects/should-stop-watching-the-extended-configs-of-closed-projects.js index 8ebdc8bb48718..753fb0862cf93 100644 --- a/tests/baselines/reference/tsserver/configuredProjects/should-stop-watching-the-extended-configs-of-closed-projects.js +++ b/tests/baselines/reference/tsserver/configuredProjects/should-stop-watching-the-extended-configs-of-closed-projects.js @@ -5,16 +5,28 @@ Creating project service {} //// [/user/username/projects/myproject/a/tsconfig.json] -{"extends":"../extended/alpha.tsconfig.json","files":["a.ts"]} +{ + "extends": "../extended/alpha.tsconfig.json", + "files": [ + "a.ts" + ] +} //// [/user/username/projects/myproject/a/a.ts] let a = 1; //// [/user/username/projects/myproject/extended/bravo.tsconfig.json] -{"extends":"./alpha.tsconfig.json"} +{ + "extends": "./alpha.tsconfig.json" +} //// [/user/username/projects/myproject/b/tsconfig.json] -{"extends":"../extended/bravo.tsconfig.json","files":["b.ts"]} +{ + "extends": "../extended/bravo.tsconfig.json", + "files": [ + "b.ts" + ] +} //// [/user/username/projects/myproject/b/b.ts] let b = 1; diff --git a/tests/baselines/reference/tsserver/configuredProjects/should-tolerate-invalid-include-files-that-start-in-subDirectory.js b/tests/baselines/reference/tsserver/configuredProjects/should-tolerate-invalid-include-files-that-start-in-subDirectory.js index 655abd4507b52..3b8e1138d0312 100644 --- a/tests/baselines/reference/tsserver/configuredProjects/should-tolerate-invalid-include-files-that-start-in-subDirectory.js +++ b/tests/baselines/reference/tsserver/configuredProjects/should-tolerate-invalid-include-files-that-start-in-subDirectory.js @@ -5,7 +5,15 @@ Creating project service let x = 1 //// [/user/username/projects/myproject/src/server/tsconfig.json] -{"compiler":{"module":"commonjs","outDir":"../../build"},"include":["../src/**/*.ts"]} +{ + "compiler": { + "module": "commonjs", + "outDir": "../../build" + }, + "include": [ + "../src/**/*.ts" + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/configuredProjects/should-watch-the-extended-configs-of-multiple-projects.js b/tests/baselines/reference/tsserver/configuredProjects/should-watch-the-extended-configs-of-multiple-projects.js index 8fe305d0a5739..4ed7f290688bd 100644 --- a/tests/baselines/reference/tsserver/configuredProjects/should-watch-the-extended-configs-of-multiple-projects.js +++ b/tests/baselines/reference/tsserver/configuredProjects/should-watch-the-extended-configs-of-multiple-projects.js @@ -5,16 +5,28 @@ Creating project service {} //// [/user/username/projects/myproject/a/tsconfig.json] -{"extends":"../extended/alpha.tsconfig.json","files":["a.ts"]} +{ + "extends": "../extended/alpha.tsconfig.json", + "files": [ + "a.ts" + ] +} //// [/user/username/projects/myproject/a/a.ts] let a = 1; //// [/user/username/projects/myproject/extended/bravo.tsconfig.json] -{"extends":"./alpha.tsconfig.json"} +{ + "extends": "./alpha.tsconfig.json" +} //// [/user/username/projects/myproject/b/tsconfig.json] -{"extends":"../extended/bravo.tsconfig.json","files":["b.ts"]} +{ + "extends": "../extended/bravo.tsconfig.json", + "files": [ + "b.ts" + ] +} //// [/user/username/projects/myproject/b/b.ts] let b = 1; @@ -112,7 +124,11 @@ Before running Timeout callback:: count: 3 2: /user/username/projects/myproject/b/tsconfig.json 3: *ensureProjectForOpenFiles* //// [/user/username/projects/myproject/extended/alpha.tsconfig.json] -{"compilerOptions":{"strict":true}} +{ + "compilerOptions": { + "strict": true + } +} PolledWatches:: @@ -212,7 +228,12 @@ Before running Timeout callback:: count: 2 4: /user/username/projects/myproject/b/tsconfig.json 5: *ensureProjectForOpenFiles* //// [/user/username/projects/myproject/extended/bravo.tsconfig.json] -{"extends":"./alpha.tsconfig.json","compilerOptions":{"strict":false}} +{ + "extends": "./alpha.tsconfig.json", + "compilerOptions": { + "strict": false + } +} Info seq [hh:mm:ss:mss] Running: /user/username/projects/myproject/b/tsconfig.json @@ -272,7 +293,9 @@ Before running Timeout callback:: count: 2 6: /user/username/projects/myproject/b/tsconfig.json 7: *ensureProjectForOpenFiles* //// [/user/username/projects/myproject/b/tsconfig.json] -{"extends":"../extended/alpha.tsconfig.json"} +{ + "extends": "../extended/alpha.tsconfig.json" +} Info seq [hh:mm:ss:mss] Running: /user/username/projects/myproject/b/tsconfig.json diff --git a/tests/baselines/reference/tsserver/configuredProjects/when-default-configured-project-does-not-contain-the-file.js b/tests/baselines/reference/tsserver/configuredProjects/when-default-configured-project-does-not-contain-the-file.js index 8a6e3d3c7decd..9b0181dca98c7 100644 --- a/tests/baselines/reference/tsserver/configuredProjects/when-default-configured-project-does-not-contain-the-file.js +++ b/tests/baselines/reference/tsserver/configuredProjects/when-default-configured-project-does-not-contain-the-file.js @@ -16,7 +16,15 @@ import {foo} from "../foo/lib"; foo(); //// [/user/username/projects/myproject/foo/tsconfig.json] -{"include":["index.ts"],"compilerOptions":{"declaration":true,"outDir":"lib"}} +{ + "include": [ + "index.ts" + ], + "compilerOptions": { + "declaration": true, + "outDir": "lib" + } +} //// [/user/username/projects/myproject/foo/index.ts] export function foo() {} diff --git a/tests/baselines/reference/tsserver/configuredProjects/when-multiple-projects-are-open-detects-correct-default-project.js b/tests/baselines/reference/tsserver/configuredProjects/when-multiple-projects-are-open-detects-correct-default-project.js index 5c1fc4af9b08f..bfb9842afa135 100644 --- a/tests/baselines/reference/tsserver/configuredProjects/when-multiple-projects-are-open-detects-correct-default-project.js +++ b/tests/baselines/reference/tsserver/configuredProjects/when-multiple-projects-are-open-detects-correct-default-project.js @@ -2,7 +2,17 @@ currentDirectory:: / useCaseSensitiveFileNames: false Info seq [hh:mm:ss:mss] Provided types map file "/a/lib/typesMap.json" doesn't exist Before request //// [/user/username/projects/myproject/bar/tsconfig.json] -{"include":["index.ts"],"compilerOptions":{"lib":["dom","es2017"]}} +{ + "include": [ + "index.ts" + ], + "compilerOptions": { + "lib": [ + "dom", + "es2017" + ] + } +} //// [/user/username/projects/myproject/bar/index.ts] @@ -11,7 +21,16 @@ export function bar() { } //// [/user/username/projects/myproject/foo/tsconfig.json] -{"include":["index.ts"],"compilerOptions":{"lib":["es2017"]}} +{ + "include": [ + "index.ts" + ], + "compilerOptions": { + "lib": [ + "es2017" + ] + } +} //// [/user/username/projects/myproject/foo/index.ts] diff --git a/tests/baselines/reference/tsserver/declarationFileMaps/does-not-jump-to-source-if-inlined-sources.js b/tests/baselines/reference/tsserver/declarationFileMaps/does-not-jump-to-source-if-inlined-sources.js index fae729d20ec2e..02fd225d5f22c 100644 --- a/tests/baselines/reference/tsserver/declarationFileMaps/does-not-jump-to-source-if-inlined-sources.js +++ b/tests/baselines/reference/tsserver/declarationFileMaps/does-not-jump-to-source-if-inlined-sources.js @@ -7,7 +7,19 @@ export interface IfaceA {} export const instanceA: IfaceA = {}; //// [/a/bin/a.d.ts.map] -{"version":3,"file":"a.d.ts","sourceRoot":"","sources":["../a.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC","sourcesContent":["export function fnA() {}\nexport interface IfaceA {}\nexport const instanceA: IfaceA = {};"]} +{ + "version": 3, + "file": "a.d.ts", + "sourceRoot": "", + "sources": [ + "../a.ts" + ], + "names": [], + "mappings": "AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC", + "sourcesContent": [ + "export function fnA() {}\nexport interface IfaceA {}\nexport const instanceA: IfaceA = {};" + ] +} //// [/a/bin/a.d.ts] export declare function fnA(): void; @@ -20,7 +32,16 @@ export declare const instanceA: IfaceA; export function fnB() {} //// [/b/bin/b.d.ts.map] -{"version":3,"file":"b.d.ts","sourceRoot":"","sources":["../b.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAK"} +{ + "version": 3, + "file": "b.d.ts", + "sourceRoot": "", + "sources": [ + "../b.ts" + ], + "names": [], + "mappings": "AAAA,wBAAgB,GAAG,SAAK" +} //// [/b/bin/b.d.ts] export declare function fnB(): void; diff --git a/tests/baselines/reference/tsserver/declarationFileMaps/findAllReferences-starting-at-definition.js b/tests/baselines/reference/tsserver/declarationFileMaps/findAllReferences-starting-at-definition.js index 9eb57a3df0c08..db34a59e90ac9 100644 --- a/tests/baselines/reference/tsserver/declarationFileMaps/findAllReferences-starting-at-definition.js +++ b/tests/baselines/reference/tsserver/declarationFileMaps/findAllReferences-starting-at-definition.js @@ -7,10 +7,26 @@ export interface IfaceA {} export const instanceA: IfaceA = {}; //// [/a/tsconfig.json] -{"compilerOptions":{"outDir":"bin","declaration":true,"declarationMap":true,"composite":true}} +{ + "compilerOptions": { + "outDir": "bin", + "declaration": true, + "declarationMap": true, + "composite": true + } +} //// [/a/bin/a.d.ts.map] -{"version":3,"file":"a.d.ts","sourceRoot":"","sources":["../a.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC"} +{ + "version": 3, + "file": "a.d.ts", + "sourceRoot": "", + "sources": [ + "../a.ts" + ], + "names": [], + "mappings": "AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC" +} //// [/a/bin/a.d.ts] export declare function fnA(): void; @@ -20,13 +36,29 @@ export declare const instanceA: IfaceA; //# sourceMappingURL=a.d.ts.map //// [/b/tsconfig.json] -{"compilerOptions":{"outDir":"bin","declaration":true,"declarationMap":true,"composite":true}} +{ + "compilerOptions": { + "outDir": "bin", + "declaration": true, + "declarationMap": true, + "composite": true + } +} //// [/b/b.ts] export function fnB() {} //// [/b/bin/b.d.ts.map] -{"version":3,"file":"b.d.ts","sourceRoot":"","sources":["../b.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAK"} +{ + "version": 3, + "file": "b.d.ts", + "sourceRoot": "", + "sources": [ + "../b.ts" + ], + "names": [], + "mappings": "AAAA,wBAAgB,GAAG,SAAK" +} //// [/b/bin/b.d.ts] export declare function fnB(): void; @@ -108,20 +140,20 @@ FsWatchesRecursive:: {} ts.getFileEmitOutput: /a/a.ts: { - "outputFiles": [ - { - "name": "/a/bin/a.d.ts.map", - "writeByteOrderMark": false, - "text": "{\"version\":3,\"file\":\"a.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../a.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC\"}" - }, - { - "name": "/a/bin/a.d.ts", - "writeByteOrderMark": false, - "text": "export declare function fnA(): void;\nexport interface IfaceA {\n}\nexport declare const instanceA: IfaceA;\n//# sourceMappingURL=a.d.ts.map" - } - ], - "emitSkipped": false, - "diagnostics": [] + "outputFiles": [ + { + "name": "/a/bin/a.d.ts.map", + "writeByteOrderMark": false, + "text": "{\"version\":3,\"file\":\"a.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../a.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC\"}" + }, + { + "name": "/a/bin/a.d.ts", + "writeByteOrderMark": false, + "text": "export declare function fnA(): void;\nexport interface IfaceA {\n}\nexport declare const instanceA: IfaceA;\n//# sourceMappingURL=a.d.ts.map" + } + ], + "emitSkipped": false, + "diagnostics": [] } Before request @@ -254,20 +286,20 @@ FsWatchesRecursive *deleted*:: {} ts.getFileEmitOutput: /b/b.ts: { - "outputFiles": [ - { - "name": "/b/bin/b.d.ts.map", - "writeByteOrderMark": false, - "text": "{\"version\":3,\"file\":\"b.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../b.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK\"}" - }, - { - "name": "/b/bin/b.d.ts", - "writeByteOrderMark": false, - "text": "export declare function fnB(): void;\n//# sourceMappingURL=b.d.ts.map" - } - ], - "emitSkipped": false, - "diagnostics": [] + "outputFiles": [ + { + "name": "/b/bin/b.d.ts.map", + "writeByteOrderMark": false, + "text": "{\"version\":3,\"file\":\"b.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../b.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK\"}" + }, + { + "name": "/b/bin/b.d.ts", + "writeByteOrderMark": false, + "text": "export declare function fnB(): void;\n//# sourceMappingURL=b.d.ts.map" + } + ], + "emitSkipped": false, + "diagnostics": [] } Before request diff --git a/tests/baselines/reference/tsserver/declarationFileMaps/findAllReferences-target-does-not-exist.js b/tests/baselines/reference/tsserver/declarationFileMaps/findAllReferences-target-does-not-exist.js index a416a46653bbb..a6363cee50d16 100644 --- a/tests/baselines/reference/tsserver/declarationFileMaps/findAllReferences-target-does-not-exist.js +++ b/tests/baselines/reference/tsserver/declarationFileMaps/findAllReferences-target-does-not-exist.js @@ -7,10 +7,26 @@ export interface IfaceA {} export const instanceA: IfaceA = {}; //// [/a/tsconfig.json] -{"compilerOptions":{"outDir":"bin","declaration":true,"declarationMap":true,"composite":true}} +{ + "compilerOptions": { + "outDir": "bin", + "declaration": true, + "declarationMap": true, + "composite": true + } +} //// [/a/bin/a.d.ts.map] -{"version":3,"file":"a.d.ts","sourceRoot":"","sources":["../a.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC"} +{ + "version": 3, + "file": "a.d.ts", + "sourceRoot": "", + "sources": [ + "../a.ts" + ], + "names": [], + "mappings": "AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC" +} //// [/a/bin/a.d.ts] export declare function fnA(): void; @@ -20,13 +36,29 @@ export declare const instanceA: IfaceA; //# sourceMappingURL=a.d.ts.map //// [/b/tsconfig.json] -{"compilerOptions":{"outDir":"bin","declaration":true,"declarationMap":true,"composite":true}} +{ + "compilerOptions": { + "outDir": "bin", + "declaration": true, + "declarationMap": true, + "composite": true + } +} //// [/b/b.ts] export function fnB() {} //// [/b/bin/b.d.ts.map] -{"version":3,"file":"b.d.ts","sourceRoot":"","sources":["../b.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAK"} +{ + "version": 3, + "file": "b.d.ts", + "sourceRoot": "", + "sources": [ + "../b.ts" + ], + "names": [], + "mappings": "AAAA,wBAAgB,GAAG,SAAK" +} //// [/b/bin/b.d.ts] export declare function fnB(): void; @@ -108,20 +140,20 @@ FsWatchesRecursive:: {} ts.getFileEmitOutput: /a/a.ts: { - "outputFiles": [ - { - "name": "/a/bin/a.d.ts.map", - "writeByteOrderMark": false, - "text": "{\"version\":3,\"file\":\"a.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../a.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC\"}" - }, - { - "name": "/a/bin/a.d.ts", - "writeByteOrderMark": false, - "text": "export declare function fnA(): void;\nexport interface IfaceA {\n}\nexport declare const instanceA: IfaceA;\n//# sourceMappingURL=a.d.ts.map" - } - ], - "emitSkipped": false, - "diagnostics": [] + "outputFiles": [ + { + "name": "/a/bin/a.d.ts.map", + "writeByteOrderMark": false, + "text": "{\"version\":3,\"file\":\"a.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../a.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC\"}" + }, + { + "name": "/a/bin/a.d.ts", + "writeByteOrderMark": false, + "text": "export declare function fnA(): void;\nexport interface IfaceA {\n}\nexport declare const instanceA: IfaceA;\n//# sourceMappingURL=a.d.ts.map" + } + ], + "emitSkipped": false, + "diagnostics": [] } Before request @@ -254,20 +286,20 @@ FsWatchesRecursive *deleted*:: {} ts.getFileEmitOutput: /b/b.ts: { - "outputFiles": [ - { - "name": "/b/bin/b.d.ts.map", - "writeByteOrderMark": false, - "text": "{\"version\":3,\"file\":\"b.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../b.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK\"}" - }, - { - "name": "/b/bin/b.d.ts", - "writeByteOrderMark": false, - "text": "export declare function fnB(): void;\n//# sourceMappingURL=b.d.ts.map" - } - ], - "emitSkipped": false, - "diagnostics": [] + "outputFiles": [ + { + "name": "/b/bin/b.d.ts.map", + "writeByteOrderMark": false, + "text": "{\"version\":3,\"file\":\"b.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../b.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK\"}" + }, + { + "name": "/b/bin/b.d.ts", + "writeByteOrderMark": false, + "text": "export declare function fnB(): void;\n//# sourceMappingURL=b.d.ts.map" + } + ], + "emitSkipped": false, + "diagnostics": [] } Before request diff --git a/tests/baselines/reference/tsserver/declarationFileMaps/findAllReferences.js b/tests/baselines/reference/tsserver/declarationFileMaps/findAllReferences.js index 75b7c1a795fd8..54128c6314653 100644 --- a/tests/baselines/reference/tsserver/declarationFileMaps/findAllReferences.js +++ b/tests/baselines/reference/tsserver/declarationFileMaps/findAllReferences.js @@ -7,10 +7,26 @@ export interface IfaceA {} export const instanceA: IfaceA = {}; //// [/a/tsconfig.json] -{"compilerOptions":{"outDir":"bin","declaration":true,"declarationMap":true,"composite":true}} +{ + "compilerOptions": { + "outDir": "bin", + "declaration": true, + "declarationMap": true, + "composite": true + } +} //// [/a/bin/a.d.ts.map] -{"version":3,"file":"a.d.ts","sourceRoot":"","sources":["../a.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC"} +{ + "version": 3, + "file": "a.d.ts", + "sourceRoot": "", + "sources": [ + "../a.ts" + ], + "names": [], + "mappings": "AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC" +} //// [/a/bin/a.d.ts] export declare function fnA(): void; @@ -20,13 +36,29 @@ export declare const instanceA: IfaceA; //# sourceMappingURL=a.d.ts.map //// [/b/tsconfig.json] -{"compilerOptions":{"outDir":"bin","declaration":true,"declarationMap":true,"composite":true}} +{ + "compilerOptions": { + "outDir": "bin", + "declaration": true, + "declarationMap": true, + "composite": true + } +} //// [/b/b.ts] export function fnB() {} //// [/b/bin/b.d.ts.map] -{"version":3,"file":"b.d.ts","sourceRoot":"","sources":["../b.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAK"} +{ + "version": 3, + "file": "b.d.ts", + "sourceRoot": "", + "sources": [ + "../b.ts" + ], + "names": [], + "mappings": "AAAA,wBAAgB,GAAG,SAAK" +} //// [/b/bin/b.d.ts] export declare function fnB(): void; @@ -108,20 +140,20 @@ FsWatchesRecursive:: {} ts.getFileEmitOutput: /a/a.ts: { - "outputFiles": [ - { - "name": "/a/bin/a.d.ts.map", - "writeByteOrderMark": false, - "text": "{\"version\":3,\"file\":\"a.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../a.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC\"}" - }, - { - "name": "/a/bin/a.d.ts", - "writeByteOrderMark": false, - "text": "export declare function fnA(): void;\nexport interface IfaceA {\n}\nexport declare const instanceA: IfaceA;\n//# sourceMappingURL=a.d.ts.map" - } - ], - "emitSkipped": false, - "diagnostics": [] + "outputFiles": [ + { + "name": "/a/bin/a.d.ts.map", + "writeByteOrderMark": false, + "text": "{\"version\":3,\"file\":\"a.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../a.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC\"}" + }, + { + "name": "/a/bin/a.d.ts", + "writeByteOrderMark": false, + "text": "export declare function fnA(): void;\nexport interface IfaceA {\n}\nexport declare const instanceA: IfaceA;\n//# sourceMappingURL=a.d.ts.map" + } + ], + "emitSkipped": false, + "diagnostics": [] } Before request @@ -254,20 +286,20 @@ FsWatchesRecursive *deleted*:: {} ts.getFileEmitOutput: /b/b.ts: { - "outputFiles": [ - { - "name": "/b/bin/b.d.ts.map", - "writeByteOrderMark": false, - "text": "{\"version\":3,\"file\":\"b.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../b.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK\"}" - }, - { - "name": "/b/bin/b.d.ts", - "writeByteOrderMark": false, - "text": "export declare function fnB(): void;\n//# sourceMappingURL=b.d.ts.map" - } - ], - "emitSkipped": false, - "diagnostics": [] + "outputFiles": [ + { + "name": "/b/bin/b.d.ts.map", + "writeByteOrderMark": false, + "text": "{\"version\":3,\"file\":\"b.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../b.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK\"}" + }, + { + "name": "/b/bin/b.d.ts", + "writeByteOrderMark": false, + "text": "export declare function fnB(): void;\n//# sourceMappingURL=b.d.ts.map" + } + ], + "emitSkipped": false, + "diagnostics": [] } Before request diff --git a/tests/baselines/reference/tsserver/declarationFileMaps/findAllReferencesFull-definition-is-in-mapped-file.js b/tests/baselines/reference/tsserver/declarationFileMaps/findAllReferencesFull-definition-is-in-mapped-file.js index 931cb5c474d6f..664925425f009 100644 --- a/tests/baselines/reference/tsserver/declarationFileMaps/findAllReferencesFull-definition-is-in-mapped-file.js +++ b/tests/baselines/reference/tsserver/declarationFileMaps/findAllReferencesFull-definition-is-in-mapped-file.js @@ -5,20 +5,41 @@ Before request function f() {} //// [/a/tsconfig.json] -{"compilerOptions":{"declaration":true,"declarationMap":true,"outFile":"../bin/a.js"}} +{ + "compilerOptions": { + "declaration": true, + "declarationMap": true, + "outFile": "../bin/a.js" + } +} //// [/b/b.ts] f(); //// [/b/tsconfig.json] -{"references":[{"path":"../a"}]} +{ + "references": [ + { + "path": "../a" + } + ] +} //// [/bin/a.d.ts] declare function f(): void; //# sourceMappingURL=a.d.ts.map //// [/bin/a.d.ts.map] -{"version":3,"file":"a.d.ts","sourceRoot":"","sources":["../a/a.ts"],"names":[],"mappings":"AAAA,iBAAS,CAAC,SAAK"} +{ + "version": 3, + "file": "a.d.ts", + "sourceRoot": "", + "sources": [ + "../a/a.ts" + ], + "names": [], + "mappings": "AAAA,iBAAS,CAAC,SAAK" +} Info seq [hh:mm:ss:mss] request: @@ -85,20 +106,20 @@ FsWatchesRecursive:: {} ts.getFileEmitOutput: /a/a.ts: { - "outputFiles": [ - { - "name": "/bin/a.d.ts.map", - "writeByteOrderMark": false, - "text": "{\"version\":3,\"file\":\"a.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../a/a.ts\"],\"names\":[],\"mappings\":\"AAAA,iBAAS,CAAC,SAAK\"}" - }, - { - "name": "/bin/a.d.ts", - "writeByteOrderMark": false, - "text": "declare function f(): void;\n//# sourceMappingURL=a.d.ts.map" - } - ], - "emitSkipped": false, - "diagnostics": [] + "outputFiles": [ + { + "name": "/bin/a.d.ts.map", + "writeByteOrderMark": false, + "text": "{\"version\":3,\"file\":\"a.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../a/a.ts\"],\"names\":[],\"mappings\":\"AAAA,iBAAS,CAAC,SAAK\"}" + }, + { + "name": "/bin/a.d.ts", + "writeByteOrderMark": false, + "text": "declare function f(): void;\n//# sourceMappingURL=a.d.ts.map" + } + ], + "emitSkipped": false, + "diagnostics": [] } Before request diff --git a/tests/baselines/reference/tsserver/declarationFileMaps/findAllReferencesFull.js b/tests/baselines/reference/tsserver/declarationFileMaps/findAllReferencesFull.js index 9bc84bea78f5c..d3f083ce32f4b 100644 --- a/tests/baselines/reference/tsserver/declarationFileMaps/findAllReferencesFull.js +++ b/tests/baselines/reference/tsserver/declarationFileMaps/findAllReferencesFull.js @@ -7,10 +7,26 @@ export interface IfaceA {} export const instanceA: IfaceA = {}; //// [/a/tsconfig.json] -{"compilerOptions":{"outDir":"bin","declaration":true,"declarationMap":true,"composite":true}} +{ + "compilerOptions": { + "outDir": "bin", + "declaration": true, + "declarationMap": true, + "composite": true + } +} //// [/a/bin/a.d.ts.map] -{"version":3,"file":"a.d.ts","sourceRoot":"","sources":["../a.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC"} +{ + "version": 3, + "file": "a.d.ts", + "sourceRoot": "", + "sources": [ + "../a.ts" + ], + "names": [], + "mappings": "AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC" +} //// [/a/bin/a.d.ts] export declare function fnA(): void; @@ -20,13 +36,29 @@ export declare const instanceA: IfaceA; //# sourceMappingURL=a.d.ts.map //// [/b/tsconfig.json] -{"compilerOptions":{"outDir":"bin","declaration":true,"declarationMap":true,"composite":true}} +{ + "compilerOptions": { + "outDir": "bin", + "declaration": true, + "declarationMap": true, + "composite": true + } +} //// [/b/b.ts] export function fnB() {} //// [/b/bin/b.d.ts.map] -{"version":3,"file":"b.d.ts","sourceRoot":"","sources":["../b.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAK"} +{ + "version": 3, + "file": "b.d.ts", + "sourceRoot": "", + "sources": [ + "../b.ts" + ], + "names": [], + "mappings": "AAAA,wBAAgB,GAAG,SAAK" +} //// [/b/bin/b.d.ts] export declare function fnB(): void; @@ -108,20 +140,20 @@ FsWatchesRecursive:: {} ts.getFileEmitOutput: /a/a.ts: { - "outputFiles": [ - { - "name": "/a/bin/a.d.ts.map", - "writeByteOrderMark": false, - "text": "{\"version\":3,\"file\":\"a.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../a.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC\"}" - }, - { - "name": "/a/bin/a.d.ts", - "writeByteOrderMark": false, - "text": "export declare function fnA(): void;\nexport interface IfaceA {\n}\nexport declare const instanceA: IfaceA;\n//# sourceMappingURL=a.d.ts.map" - } - ], - "emitSkipped": false, - "diagnostics": [] + "outputFiles": [ + { + "name": "/a/bin/a.d.ts.map", + "writeByteOrderMark": false, + "text": "{\"version\":3,\"file\":\"a.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../a.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC\"}" + }, + { + "name": "/a/bin/a.d.ts", + "writeByteOrderMark": false, + "text": "export declare function fnA(): void;\nexport interface IfaceA {\n}\nexport declare const instanceA: IfaceA;\n//# sourceMappingURL=a.d.ts.map" + } + ], + "emitSkipped": false, + "diagnostics": [] } Before request @@ -254,20 +286,20 @@ FsWatchesRecursive *deleted*:: {} ts.getFileEmitOutput: /b/b.ts: { - "outputFiles": [ - { - "name": "/b/bin/b.d.ts.map", - "writeByteOrderMark": false, - "text": "{\"version\":3,\"file\":\"b.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../b.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK\"}" - }, - { - "name": "/b/bin/b.d.ts", - "writeByteOrderMark": false, - "text": "export declare function fnB(): void;\n//# sourceMappingURL=b.d.ts.map" - } - ], - "emitSkipped": false, - "diagnostics": [] + "outputFiles": [ + { + "name": "/b/bin/b.d.ts.map", + "writeByteOrderMark": false, + "text": "{\"version\":3,\"file\":\"b.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../b.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK\"}" + }, + { + "name": "/b/bin/b.d.ts", + "writeByteOrderMark": false, + "text": "export declare function fnB(): void;\n//# sourceMappingURL=b.d.ts.map" + } + ], + "emitSkipped": false, + "diagnostics": [] } Before request diff --git a/tests/baselines/reference/tsserver/declarationFileMaps/getDefinitionAndBoundSpan-with-file-navigation.js b/tests/baselines/reference/tsserver/declarationFileMaps/getDefinitionAndBoundSpan-with-file-navigation.js index 4eea97387b0d8..de4f07e111496 100644 --- a/tests/baselines/reference/tsserver/declarationFileMaps/getDefinitionAndBoundSpan-with-file-navigation.js +++ b/tests/baselines/reference/tsserver/declarationFileMaps/getDefinitionAndBoundSpan-with-file-navigation.js @@ -7,10 +7,26 @@ export interface IfaceA {} export const instanceA: IfaceA = {}; //// [/a/tsconfig.json] -{"compilerOptions":{"outDir":"bin","declaration":true,"declarationMap":true,"composite":true}} +{ + "compilerOptions": { + "outDir": "bin", + "declaration": true, + "declarationMap": true, + "composite": true + } +} //// [/a/bin/a.d.ts.map] -{"version":3,"file":"a.d.ts","sourceRoot":"","sources":["../a.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC"} +{ + "version": 3, + "file": "a.d.ts", + "sourceRoot": "", + "sources": [ + "../a.ts" + ], + "names": [], + "mappings": "AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC" +} //// [/a/bin/a.d.ts] export declare function fnA(): void; @@ -20,13 +36,29 @@ export declare const instanceA: IfaceA; //# sourceMappingURL=a.d.ts.map //// [/b/tsconfig.json] -{"compilerOptions":{"outDir":"bin","declaration":true,"declarationMap":true,"composite":true}} +{ + "compilerOptions": { + "outDir": "bin", + "declaration": true, + "declarationMap": true, + "composite": true + } +} //// [/b/b.ts] export function fnB() {} //// [/b/bin/b.d.ts.map] -{"version":3,"file":"b.d.ts","sourceRoot":"","sources":["../b.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAK"} +{ + "version": 3, + "file": "b.d.ts", + "sourceRoot": "", + "sources": [ + "../b.ts" + ], + "names": [], + "mappings": "AAAA,wBAAgB,GAAG,SAAK" +} //// [/b/bin/b.d.ts] export declare function fnB(): void; @@ -38,7 +70,19 @@ import * as b from "../b/b"; export function fnUser() { a.fnA(); b.fnB(); a.instanceA; } //// [/user/tsconfig.json] -{"file":["user.ts"],"references":[{"path":"../a"},{"path":"../b"}]} +{ + "file": [ + "user.ts" + ], + "references": [ + { + "path": "../a" + }, + { + "path": "../b" + } + ] +} //// [/dummy/dummy.ts] let a = 10; @@ -111,20 +155,20 @@ FsWatchesRecursive:: {} ts.getFileEmitOutput: /a/a.ts: { - "outputFiles": [ - { - "name": "/a/bin/a.d.ts.map", - "writeByteOrderMark": false, - "text": "{\"version\":3,\"file\":\"a.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../a.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC\"}" - }, - { - "name": "/a/bin/a.d.ts", - "writeByteOrderMark": false, - "text": "export declare function fnA(): void;\nexport interface IfaceA {\n}\nexport declare const instanceA: IfaceA;\n//# sourceMappingURL=a.d.ts.map" - } - ], - "emitSkipped": false, - "diagnostics": [] + "outputFiles": [ + { + "name": "/a/bin/a.d.ts.map", + "writeByteOrderMark": false, + "text": "{\"version\":3,\"file\":\"a.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../a.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC\"}" + }, + { + "name": "/a/bin/a.d.ts", + "writeByteOrderMark": false, + "text": "export declare function fnA(): void;\nexport interface IfaceA {\n}\nexport declare const instanceA: IfaceA;\n//# sourceMappingURL=a.d.ts.map" + } + ], + "emitSkipped": false, + "diagnostics": [] } Before request @@ -257,20 +301,20 @@ FsWatchesRecursive *deleted*:: {} ts.getFileEmitOutput: /b/b.ts: { - "outputFiles": [ - { - "name": "/b/bin/b.d.ts.map", - "writeByteOrderMark": false, - "text": "{\"version\":3,\"file\":\"b.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../b.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK\"}" - }, - { - "name": "/b/bin/b.d.ts", - "writeByteOrderMark": false, - "text": "export declare function fnB(): void;\n//# sourceMappingURL=b.d.ts.map" - } - ], - "emitSkipped": false, - "diagnostics": [] + "outputFiles": [ + { + "name": "/b/bin/b.d.ts.map", + "writeByteOrderMark": false, + "text": "{\"version\":3,\"file\":\"b.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../b.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK\"}" + }, + { + "name": "/b/bin/b.d.ts", + "writeByteOrderMark": false, + "text": "export declare function fnB(): void;\n//# sourceMappingURL=b.d.ts.map" + } + ], + "emitSkipped": false, + "diagnostics": [] } Before request diff --git a/tests/baselines/reference/tsserver/declarationFileMaps/getDefinitionAndBoundSpan.js b/tests/baselines/reference/tsserver/declarationFileMaps/getDefinitionAndBoundSpan.js index 7134dce0bfa87..7c644e3d644fc 100644 --- a/tests/baselines/reference/tsserver/declarationFileMaps/getDefinitionAndBoundSpan.js +++ b/tests/baselines/reference/tsserver/declarationFileMaps/getDefinitionAndBoundSpan.js @@ -7,10 +7,26 @@ export interface IfaceA {} export const instanceA: IfaceA = {}; //// [/a/tsconfig.json] -{"compilerOptions":{"outDir":"bin","declaration":true,"declarationMap":true,"composite":true}} +{ + "compilerOptions": { + "outDir": "bin", + "declaration": true, + "declarationMap": true, + "composite": true + } +} //// [/a/bin/a.d.ts.map] -{"version":3,"file":"a.d.ts","sourceRoot":"","sources":["../a.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC"} +{ + "version": 3, + "file": "a.d.ts", + "sourceRoot": "", + "sources": [ + "../a.ts" + ], + "names": [], + "mappings": "AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC" +} //// [/a/bin/a.d.ts] export declare function fnA(): void; @@ -20,13 +36,29 @@ export declare const instanceA: IfaceA; //# sourceMappingURL=a.d.ts.map //// [/b/tsconfig.json] -{"compilerOptions":{"outDir":"bin","declaration":true,"declarationMap":true,"composite":true}} +{ + "compilerOptions": { + "outDir": "bin", + "declaration": true, + "declarationMap": true, + "composite": true + } +} //// [/b/b.ts] export function fnB() {} //// [/b/bin/b.d.ts.map] -{"version":3,"file":"b.d.ts","sourceRoot":"","sources":["../b.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAK"} +{ + "version": 3, + "file": "b.d.ts", + "sourceRoot": "", + "sources": [ + "../b.ts" + ], + "names": [], + "mappings": "AAAA,wBAAgB,GAAG,SAAK" +} //// [/b/bin/b.d.ts] export declare function fnB(): void; @@ -108,20 +140,20 @@ FsWatchesRecursive:: {} ts.getFileEmitOutput: /a/a.ts: { - "outputFiles": [ - { - "name": "/a/bin/a.d.ts.map", - "writeByteOrderMark": false, - "text": "{\"version\":3,\"file\":\"a.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../a.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC\"}" - }, - { - "name": "/a/bin/a.d.ts", - "writeByteOrderMark": false, - "text": "export declare function fnA(): void;\nexport interface IfaceA {\n}\nexport declare const instanceA: IfaceA;\n//# sourceMappingURL=a.d.ts.map" - } - ], - "emitSkipped": false, - "diagnostics": [] + "outputFiles": [ + { + "name": "/a/bin/a.d.ts.map", + "writeByteOrderMark": false, + "text": "{\"version\":3,\"file\":\"a.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../a.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC\"}" + }, + { + "name": "/a/bin/a.d.ts", + "writeByteOrderMark": false, + "text": "export declare function fnA(): void;\nexport interface IfaceA {\n}\nexport declare const instanceA: IfaceA;\n//# sourceMappingURL=a.d.ts.map" + } + ], + "emitSkipped": false, + "diagnostics": [] } Before request @@ -254,20 +286,20 @@ FsWatchesRecursive *deleted*:: {} ts.getFileEmitOutput: /b/b.ts: { - "outputFiles": [ - { - "name": "/b/bin/b.d.ts.map", - "writeByteOrderMark": false, - "text": "{\"version\":3,\"file\":\"b.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../b.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK\"}" - }, - { - "name": "/b/bin/b.d.ts", - "writeByteOrderMark": false, - "text": "export declare function fnB(): void;\n//# sourceMappingURL=b.d.ts.map" - } - ], - "emitSkipped": false, - "diagnostics": [] + "outputFiles": [ + { + "name": "/b/bin/b.d.ts.map", + "writeByteOrderMark": false, + "text": "{\"version\":3,\"file\":\"b.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../b.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK\"}" + }, + { + "name": "/b/bin/b.d.ts", + "writeByteOrderMark": false, + "text": "export declare function fnB(): void;\n//# sourceMappingURL=b.d.ts.map" + } + ], + "emitSkipped": false, + "diagnostics": [] } Before request diff --git a/tests/baselines/reference/tsserver/declarationFileMaps/getEditsForFileRename-when-referencing-project-doesnt-include-file-and-its-renamed.js b/tests/baselines/reference/tsserver/declarationFileMaps/getEditsForFileRename-when-referencing-project-doesnt-include-file-and-its-renamed.js index e361f6d6cdce5..711108dcbbdbd 100644 --- a/tests/baselines/reference/tsserver/declarationFileMaps/getEditsForFileRename-when-referencing-project-doesnt-include-file-and-its-renamed.js +++ b/tests/baselines/reference/tsserver/declarationFileMaps/getEditsForFileRename-when-referencing-project-doesnt-include-file-and-its-renamed.js @@ -5,13 +5,33 @@ Before request //// [/a/tsconfig.json] -{"compilerOptions":{"composite":true,"declaration":true,"declarationMap":true,"outDir":"./build"}} +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "outDir": "./build" + } +} //// [/b/src/b.ts] //// [/b/tsconfig.json] -{"compilerOptions":{"composite":true,"outDir":"./build"},"include":["./src"],"references":[{"path":"../a"}]} +{ + "compilerOptions": { + "composite": true, + "outDir": "./build" + }, + "include": [ + "./src" + ], + "references": [ + { + "path": "../a" + } + ] +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/declarationFileMaps/getEditsForFileRename.js b/tests/baselines/reference/tsserver/declarationFileMaps/getEditsForFileRename.js index 834abdacb39df..8890dda33832a 100644 --- a/tests/baselines/reference/tsserver/declarationFileMaps/getEditsForFileRename.js +++ b/tests/baselines/reference/tsserver/declarationFileMaps/getEditsForFileRename.js @@ -7,10 +7,26 @@ export interface IfaceA {} export const instanceA: IfaceA = {}; //// [/a/tsconfig.json] -{"compilerOptions":{"outDir":"bin","declaration":true,"declarationMap":true,"composite":true}} +{ + "compilerOptions": { + "outDir": "bin", + "declaration": true, + "declarationMap": true, + "composite": true + } +} //// [/a/bin/a.d.ts.map] -{"version":3,"file":"a.d.ts","sourceRoot":"","sources":["../a.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC"} +{ + "version": 3, + "file": "a.d.ts", + "sourceRoot": "", + "sources": [ + "../a.ts" + ], + "names": [], + "mappings": "AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC" +} //// [/a/bin/a.d.ts] export declare function fnA(): void; @@ -20,13 +36,29 @@ export declare const instanceA: IfaceA; //# sourceMappingURL=a.d.ts.map //// [/b/tsconfig.json] -{"compilerOptions":{"outDir":"bin","declaration":true,"declarationMap":true,"composite":true}} +{ + "compilerOptions": { + "outDir": "bin", + "declaration": true, + "declarationMap": true, + "composite": true + } +} //// [/b/b.ts] export function fnB() {} //// [/b/bin/b.d.ts.map] -{"version":3,"file":"b.d.ts","sourceRoot":"","sources":["../b.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAK"} +{ + "version": 3, + "file": "b.d.ts", + "sourceRoot": "", + "sources": [ + "../b.ts" + ], + "names": [], + "mappings": "AAAA,wBAAgB,GAAG,SAAK" +} //// [/b/bin/b.d.ts] export declare function fnB(): void; @@ -108,20 +140,20 @@ FsWatchesRecursive:: {} ts.getFileEmitOutput: /a/a.ts: { - "outputFiles": [ - { - "name": "/a/bin/a.d.ts.map", - "writeByteOrderMark": false, - "text": "{\"version\":3,\"file\":\"a.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../a.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC\"}" - }, - { - "name": "/a/bin/a.d.ts", - "writeByteOrderMark": false, - "text": "export declare function fnA(): void;\nexport interface IfaceA {\n}\nexport declare const instanceA: IfaceA;\n//# sourceMappingURL=a.d.ts.map" - } - ], - "emitSkipped": false, - "diagnostics": [] + "outputFiles": [ + { + "name": "/a/bin/a.d.ts.map", + "writeByteOrderMark": false, + "text": "{\"version\":3,\"file\":\"a.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../a.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC\"}" + }, + { + "name": "/a/bin/a.d.ts", + "writeByteOrderMark": false, + "text": "export declare function fnA(): void;\nexport interface IfaceA {\n}\nexport declare const instanceA: IfaceA;\n//# sourceMappingURL=a.d.ts.map" + } + ], + "emitSkipped": false, + "diagnostics": [] } Before request @@ -254,20 +286,20 @@ FsWatchesRecursive *deleted*:: {} ts.getFileEmitOutput: /b/b.ts: { - "outputFiles": [ - { - "name": "/b/bin/b.d.ts.map", - "writeByteOrderMark": false, - "text": "{\"version\":3,\"file\":\"b.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../b.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK\"}" - }, - { - "name": "/b/bin/b.d.ts", - "writeByteOrderMark": false, - "text": "export declare function fnB(): void;\n//# sourceMappingURL=b.d.ts.map" - } - ], - "emitSkipped": false, - "diagnostics": [] + "outputFiles": [ + { + "name": "/b/bin/b.d.ts.map", + "writeByteOrderMark": false, + "text": "{\"version\":3,\"file\":\"b.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../b.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK\"}" + }, + { + "name": "/b/bin/b.d.ts", + "writeByteOrderMark": false, + "text": "export declare function fnB(): void;\n//# sourceMappingURL=b.d.ts.map" + } + ], + "emitSkipped": false, + "diagnostics": [] } Before request diff --git a/tests/baselines/reference/tsserver/declarationFileMaps/goToDefinition-target-does-not-exist.js b/tests/baselines/reference/tsserver/declarationFileMaps/goToDefinition-target-does-not-exist.js index 34ded2f980cd6..7f4cb47a25932 100644 --- a/tests/baselines/reference/tsserver/declarationFileMaps/goToDefinition-target-does-not-exist.js +++ b/tests/baselines/reference/tsserver/declarationFileMaps/goToDefinition-target-does-not-exist.js @@ -7,10 +7,26 @@ export interface IfaceA {} export const instanceA: IfaceA = {}; //// [/a/tsconfig.json] -{"compilerOptions":{"outDir":"bin","declaration":true,"declarationMap":true,"composite":true}} +{ + "compilerOptions": { + "outDir": "bin", + "declaration": true, + "declarationMap": true, + "composite": true + } +} //// [/a/bin/a.d.ts.map] -{"version":3,"file":"a.d.ts","sourceRoot":"","sources":["../a.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC"} +{ + "version": 3, + "file": "a.d.ts", + "sourceRoot": "", + "sources": [ + "../a.ts" + ], + "names": [], + "mappings": "AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC" +} //// [/a/bin/a.d.ts] export declare function fnA(): void; @@ -20,13 +36,29 @@ export declare const instanceA: IfaceA; //# sourceMappingURL=a.d.ts.map //// [/b/tsconfig.json] -{"compilerOptions":{"outDir":"bin","declaration":true,"declarationMap":true,"composite":true}} +{ + "compilerOptions": { + "outDir": "bin", + "declaration": true, + "declarationMap": true, + "composite": true + } +} //// [/b/b.ts] export function fnB() {} //// [/b/bin/b.d.ts.map] -{"version":3,"file":"b.d.ts","sourceRoot":"","sources":["../b.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAK"} +{ + "version": 3, + "file": "b.d.ts", + "sourceRoot": "", + "sources": [ + "../b.ts" + ], + "names": [], + "mappings": "AAAA,wBAAgB,GAAG,SAAK" +} //// [/b/bin/b.d.ts] export declare function fnB(): void; @@ -108,20 +140,20 @@ FsWatchesRecursive:: {} ts.getFileEmitOutput: /a/a.ts: { - "outputFiles": [ - { - "name": "/a/bin/a.d.ts.map", - "writeByteOrderMark": false, - "text": "{\"version\":3,\"file\":\"a.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../a.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC\"}" - }, - { - "name": "/a/bin/a.d.ts", - "writeByteOrderMark": false, - "text": "export declare function fnA(): void;\nexport interface IfaceA {\n}\nexport declare const instanceA: IfaceA;\n//# sourceMappingURL=a.d.ts.map" - } - ], - "emitSkipped": false, - "diagnostics": [] + "outputFiles": [ + { + "name": "/a/bin/a.d.ts.map", + "writeByteOrderMark": false, + "text": "{\"version\":3,\"file\":\"a.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../a.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC\"}" + }, + { + "name": "/a/bin/a.d.ts", + "writeByteOrderMark": false, + "text": "export declare function fnA(): void;\nexport interface IfaceA {\n}\nexport declare const instanceA: IfaceA;\n//# sourceMappingURL=a.d.ts.map" + } + ], + "emitSkipped": false, + "diagnostics": [] } Before request @@ -254,20 +286,20 @@ FsWatchesRecursive *deleted*:: {} ts.getFileEmitOutput: /b/b.ts: { - "outputFiles": [ - { - "name": "/b/bin/b.d.ts.map", - "writeByteOrderMark": false, - "text": "{\"version\":3,\"file\":\"b.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../b.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK\"}" - }, - { - "name": "/b/bin/b.d.ts", - "writeByteOrderMark": false, - "text": "export declare function fnB(): void;\n//# sourceMappingURL=b.d.ts.map" - } - ], - "emitSkipped": false, - "diagnostics": [] + "outputFiles": [ + { + "name": "/b/bin/b.d.ts.map", + "writeByteOrderMark": false, + "text": "{\"version\":3,\"file\":\"b.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../b.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK\"}" + }, + { + "name": "/b/bin/b.d.ts", + "writeByteOrderMark": false, + "text": "export declare function fnB(): void;\n//# sourceMappingURL=b.d.ts.map" + } + ], + "emitSkipped": false, + "diagnostics": [] } Before request diff --git a/tests/baselines/reference/tsserver/declarationFileMaps/goToDefinition.js b/tests/baselines/reference/tsserver/declarationFileMaps/goToDefinition.js index b2b81c51370ea..a659e95545874 100644 --- a/tests/baselines/reference/tsserver/declarationFileMaps/goToDefinition.js +++ b/tests/baselines/reference/tsserver/declarationFileMaps/goToDefinition.js @@ -7,10 +7,26 @@ export interface IfaceA {} export const instanceA: IfaceA = {}; //// [/a/tsconfig.json] -{"compilerOptions":{"outDir":"bin","declaration":true,"declarationMap":true,"composite":true}} +{ + "compilerOptions": { + "outDir": "bin", + "declaration": true, + "declarationMap": true, + "composite": true + } +} //// [/a/bin/a.d.ts.map] -{"version":3,"file":"a.d.ts","sourceRoot":"","sources":["../a.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC"} +{ + "version": 3, + "file": "a.d.ts", + "sourceRoot": "", + "sources": [ + "../a.ts" + ], + "names": [], + "mappings": "AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC" +} //// [/a/bin/a.d.ts] export declare function fnA(): void; @@ -20,13 +36,29 @@ export declare const instanceA: IfaceA; //# sourceMappingURL=a.d.ts.map //// [/b/tsconfig.json] -{"compilerOptions":{"outDir":"bin","declaration":true,"declarationMap":true,"composite":true}} +{ + "compilerOptions": { + "outDir": "bin", + "declaration": true, + "declarationMap": true, + "composite": true + } +} //// [/b/b.ts] export function fnB() {} //// [/b/bin/b.d.ts.map] -{"version":3,"file":"b.d.ts","sourceRoot":"","sources":["../b.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAK"} +{ + "version": 3, + "file": "b.d.ts", + "sourceRoot": "", + "sources": [ + "../b.ts" + ], + "names": [], + "mappings": "AAAA,wBAAgB,GAAG,SAAK" +} //// [/b/bin/b.d.ts] export declare function fnB(): void; @@ -108,20 +140,20 @@ FsWatchesRecursive:: {} ts.getFileEmitOutput: /a/a.ts: { - "outputFiles": [ - { - "name": "/a/bin/a.d.ts.map", - "writeByteOrderMark": false, - "text": "{\"version\":3,\"file\":\"a.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../a.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC\"}" - }, - { - "name": "/a/bin/a.d.ts", - "writeByteOrderMark": false, - "text": "export declare function fnA(): void;\nexport interface IfaceA {\n}\nexport declare const instanceA: IfaceA;\n//# sourceMappingURL=a.d.ts.map" - } - ], - "emitSkipped": false, - "diagnostics": [] + "outputFiles": [ + { + "name": "/a/bin/a.d.ts.map", + "writeByteOrderMark": false, + "text": "{\"version\":3,\"file\":\"a.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../a.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC\"}" + }, + { + "name": "/a/bin/a.d.ts", + "writeByteOrderMark": false, + "text": "export declare function fnA(): void;\nexport interface IfaceA {\n}\nexport declare const instanceA: IfaceA;\n//# sourceMappingURL=a.d.ts.map" + } + ], + "emitSkipped": false, + "diagnostics": [] } Before request @@ -254,20 +286,20 @@ FsWatchesRecursive *deleted*:: {} ts.getFileEmitOutput: /b/b.ts: { - "outputFiles": [ - { - "name": "/b/bin/b.d.ts.map", - "writeByteOrderMark": false, - "text": "{\"version\":3,\"file\":\"b.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../b.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK\"}" - }, - { - "name": "/b/bin/b.d.ts", - "writeByteOrderMark": false, - "text": "export declare function fnB(): void;\n//# sourceMappingURL=b.d.ts.map" - } - ], - "emitSkipped": false, - "diagnostics": [] + "outputFiles": [ + { + "name": "/b/bin/b.d.ts.map", + "writeByteOrderMark": false, + "text": "{\"version\":3,\"file\":\"b.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../b.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK\"}" + }, + { + "name": "/b/bin/b.d.ts", + "writeByteOrderMark": false, + "text": "export declare function fnB(): void;\n//# sourceMappingURL=b.d.ts.map" + } + ], + "emitSkipped": false, + "diagnostics": [] } Before request diff --git a/tests/baselines/reference/tsserver/declarationFileMaps/goToImplementation.js b/tests/baselines/reference/tsserver/declarationFileMaps/goToImplementation.js index dfd76af33176b..bbc8d7528fbad 100644 --- a/tests/baselines/reference/tsserver/declarationFileMaps/goToImplementation.js +++ b/tests/baselines/reference/tsserver/declarationFileMaps/goToImplementation.js @@ -7,10 +7,26 @@ export interface IfaceA {} export const instanceA: IfaceA = {}; //// [/a/tsconfig.json] -{"compilerOptions":{"outDir":"bin","declaration":true,"declarationMap":true,"composite":true}} +{ + "compilerOptions": { + "outDir": "bin", + "declaration": true, + "declarationMap": true, + "composite": true + } +} //// [/a/bin/a.d.ts.map] -{"version":3,"file":"a.d.ts","sourceRoot":"","sources":["../a.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC"} +{ + "version": 3, + "file": "a.d.ts", + "sourceRoot": "", + "sources": [ + "../a.ts" + ], + "names": [], + "mappings": "AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC" +} //// [/a/bin/a.d.ts] export declare function fnA(): void; @@ -20,13 +36,29 @@ export declare const instanceA: IfaceA; //# sourceMappingURL=a.d.ts.map //// [/b/tsconfig.json] -{"compilerOptions":{"outDir":"bin","declaration":true,"declarationMap":true,"composite":true}} +{ + "compilerOptions": { + "outDir": "bin", + "declaration": true, + "declarationMap": true, + "composite": true + } +} //// [/b/b.ts] export function fnB() {} //// [/b/bin/b.d.ts.map] -{"version":3,"file":"b.d.ts","sourceRoot":"","sources":["../b.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAK"} +{ + "version": 3, + "file": "b.d.ts", + "sourceRoot": "", + "sources": [ + "../b.ts" + ], + "names": [], + "mappings": "AAAA,wBAAgB,GAAG,SAAK" +} //// [/b/bin/b.d.ts] export declare function fnB(): void; @@ -108,20 +140,20 @@ FsWatchesRecursive:: {} ts.getFileEmitOutput: /a/a.ts: { - "outputFiles": [ - { - "name": "/a/bin/a.d.ts.map", - "writeByteOrderMark": false, - "text": "{\"version\":3,\"file\":\"a.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../a.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC\"}" - }, - { - "name": "/a/bin/a.d.ts", - "writeByteOrderMark": false, - "text": "export declare function fnA(): void;\nexport interface IfaceA {\n}\nexport declare const instanceA: IfaceA;\n//# sourceMappingURL=a.d.ts.map" - } - ], - "emitSkipped": false, - "diagnostics": [] + "outputFiles": [ + { + "name": "/a/bin/a.d.ts.map", + "writeByteOrderMark": false, + "text": "{\"version\":3,\"file\":\"a.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../a.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC\"}" + }, + { + "name": "/a/bin/a.d.ts", + "writeByteOrderMark": false, + "text": "export declare function fnA(): void;\nexport interface IfaceA {\n}\nexport declare const instanceA: IfaceA;\n//# sourceMappingURL=a.d.ts.map" + } + ], + "emitSkipped": false, + "diagnostics": [] } Before request @@ -254,20 +286,20 @@ FsWatchesRecursive *deleted*:: {} ts.getFileEmitOutput: /b/b.ts: { - "outputFiles": [ - { - "name": "/b/bin/b.d.ts.map", - "writeByteOrderMark": false, - "text": "{\"version\":3,\"file\":\"b.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../b.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK\"}" - }, - { - "name": "/b/bin/b.d.ts", - "writeByteOrderMark": false, - "text": "export declare function fnB(): void;\n//# sourceMappingURL=b.d.ts.map" - } - ], - "emitSkipped": false, - "diagnostics": [] + "outputFiles": [ + { + "name": "/b/bin/b.d.ts.map", + "writeByteOrderMark": false, + "text": "{\"version\":3,\"file\":\"b.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../b.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK\"}" + }, + { + "name": "/b/bin/b.d.ts", + "writeByteOrderMark": false, + "text": "export declare function fnB(): void;\n//# sourceMappingURL=b.d.ts.map" + } + ], + "emitSkipped": false, + "diagnostics": [] } Before request diff --git a/tests/baselines/reference/tsserver/declarationFileMaps/goToType.js b/tests/baselines/reference/tsserver/declarationFileMaps/goToType.js index 56fc3f72ff18e..3e66b3ef25acc 100644 --- a/tests/baselines/reference/tsserver/declarationFileMaps/goToType.js +++ b/tests/baselines/reference/tsserver/declarationFileMaps/goToType.js @@ -7,10 +7,26 @@ export interface IfaceA {} export const instanceA: IfaceA = {}; //// [/a/tsconfig.json] -{"compilerOptions":{"outDir":"bin","declaration":true,"declarationMap":true,"composite":true}} +{ + "compilerOptions": { + "outDir": "bin", + "declaration": true, + "declarationMap": true, + "composite": true + } +} //// [/a/bin/a.d.ts.map] -{"version":3,"file":"a.d.ts","sourceRoot":"","sources":["../a.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC"} +{ + "version": 3, + "file": "a.d.ts", + "sourceRoot": "", + "sources": [ + "../a.ts" + ], + "names": [], + "mappings": "AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC" +} //// [/a/bin/a.d.ts] export declare function fnA(): void; @@ -20,13 +36,29 @@ export declare const instanceA: IfaceA; //# sourceMappingURL=a.d.ts.map //// [/b/tsconfig.json] -{"compilerOptions":{"outDir":"bin","declaration":true,"declarationMap":true,"composite":true}} +{ + "compilerOptions": { + "outDir": "bin", + "declaration": true, + "declarationMap": true, + "composite": true + } +} //// [/b/b.ts] export function fnB() {} //// [/b/bin/b.d.ts.map] -{"version":3,"file":"b.d.ts","sourceRoot":"","sources":["../b.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAK"} +{ + "version": 3, + "file": "b.d.ts", + "sourceRoot": "", + "sources": [ + "../b.ts" + ], + "names": [], + "mappings": "AAAA,wBAAgB,GAAG,SAAK" +} //// [/b/bin/b.d.ts] export declare function fnB(): void; @@ -108,20 +140,20 @@ FsWatchesRecursive:: {} ts.getFileEmitOutput: /a/a.ts: { - "outputFiles": [ - { - "name": "/a/bin/a.d.ts.map", - "writeByteOrderMark": false, - "text": "{\"version\":3,\"file\":\"a.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../a.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC\"}" - }, - { - "name": "/a/bin/a.d.ts", - "writeByteOrderMark": false, - "text": "export declare function fnA(): void;\nexport interface IfaceA {\n}\nexport declare const instanceA: IfaceA;\n//# sourceMappingURL=a.d.ts.map" - } - ], - "emitSkipped": false, - "diagnostics": [] + "outputFiles": [ + { + "name": "/a/bin/a.d.ts.map", + "writeByteOrderMark": false, + "text": "{\"version\":3,\"file\":\"a.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../a.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC\"}" + }, + { + "name": "/a/bin/a.d.ts", + "writeByteOrderMark": false, + "text": "export declare function fnA(): void;\nexport interface IfaceA {\n}\nexport declare const instanceA: IfaceA;\n//# sourceMappingURL=a.d.ts.map" + } + ], + "emitSkipped": false, + "diagnostics": [] } Before request @@ -254,20 +286,20 @@ FsWatchesRecursive *deleted*:: {} ts.getFileEmitOutput: /b/b.ts: { - "outputFiles": [ - { - "name": "/b/bin/b.d.ts.map", - "writeByteOrderMark": false, - "text": "{\"version\":3,\"file\":\"b.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../b.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK\"}" - }, - { - "name": "/b/bin/b.d.ts", - "writeByteOrderMark": false, - "text": "export declare function fnB(): void;\n//# sourceMappingURL=b.d.ts.map" - } - ], - "emitSkipped": false, - "diagnostics": [] + "outputFiles": [ + { + "name": "/b/bin/b.d.ts.map", + "writeByteOrderMark": false, + "text": "{\"version\":3,\"file\":\"b.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../b.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK\"}" + }, + { + "name": "/b/bin/b.d.ts", + "writeByteOrderMark": false, + "text": "export declare function fnB(): void;\n//# sourceMappingURL=b.d.ts.map" + } + ], + "emitSkipped": false, + "diagnostics": [] } Before request diff --git a/tests/baselines/reference/tsserver/declarationFileMaps/navigateTo.js b/tests/baselines/reference/tsserver/declarationFileMaps/navigateTo.js index d2ed909955d77..421274e2c1b63 100644 --- a/tests/baselines/reference/tsserver/declarationFileMaps/navigateTo.js +++ b/tests/baselines/reference/tsserver/declarationFileMaps/navigateTo.js @@ -7,10 +7,26 @@ export interface IfaceA {} export const instanceA: IfaceA = {}; //// [/a/tsconfig.json] -{"compilerOptions":{"outDir":"bin","declaration":true,"declarationMap":true,"composite":true}} +{ + "compilerOptions": { + "outDir": "bin", + "declaration": true, + "declarationMap": true, + "composite": true + } +} //// [/a/bin/a.d.ts.map] -{"version":3,"file":"a.d.ts","sourceRoot":"","sources":["../a.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC"} +{ + "version": 3, + "file": "a.d.ts", + "sourceRoot": "", + "sources": [ + "../a.ts" + ], + "names": [], + "mappings": "AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC" +} //// [/a/bin/a.d.ts] export declare function fnA(): void; @@ -20,13 +36,29 @@ export declare const instanceA: IfaceA; //# sourceMappingURL=a.d.ts.map //// [/b/tsconfig.json] -{"compilerOptions":{"outDir":"bin","declaration":true,"declarationMap":true,"composite":true}} +{ + "compilerOptions": { + "outDir": "bin", + "declaration": true, + "declarationMap": true, + "composite": true + } +} //// [/b/b.ts] export function fnB() {} //// [/b/bin/b.d.ts.map] -{"version":3,"file":"b.d.ts","sourceRoot":"","sources":["../b.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAK"} +{ + "version": 3, + "file": "b.d.ts", + "sourceRoot": "", + "sources": [ + "../b.ts" + ], + "names": [], + "mappings": "AAAA,wBAAgB,GAAG,SAAK" +} //// [/b/bin/b.d.ts] export declare function fnB(): void; @@ -108,20 +140,20 @@ FsWatchesRecursive:: {} ts.getFileEmitOutput: /a/a.ts: { - "outputFiles": [ - { - "name": "/a/bin/a.d.ts.map", - "writeByteOrderMark": false, - "text": "{\"version\":3,\"file\":\"a.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../a.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC\"}" - }, - { - "name": "/a/bin/a.d.ts", - "writeByteOrderMark": false, - "text": "export declare function fnA(): void;\nexport interface IfaceA {\n}\nexport declare const instanceA: IfaceA;\n//# sourceMappingURL=a.d.ts.map" - } - ], - "emitSkipped": false, - "diagnostics": [] + "outputFiles": [ + { + "name": "/a/bin/a.d.ts.map", + "writeByteOrderMark": false, + "text": "{\"version\":3,\"file\":\"a.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../a.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC\"}" + }, + { + "name": "/a/bin/a.d.ts", + "writeByteOrderMark": false, + "text": "export declare function fnA(): void;\nexport interface IfaceA {\n}\nexport declare const instanceA: IfaceA;\n//# sourceMappingURL=a.d.ts.map" + } + ], + "emitSkipped": false, + "diagnostics": [] } Before request @@ -254,20 +286,20 @@ FsWatchesRecursive *deleted*:: {} ts.getFileEmitOutput: /b/b.ts: { - "outputFiles": [ - { - "name": "/b/bin/b.d.ts.map", - "writeByteOrderMark": false, - "text": "{\"version\":3,\"file\":\"b.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../b.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK\"}" - }, - { - "name": "/b/bin/b.d.ts", - "writeByteOrderMark": false, - "text": "export declare function fnB(): void;\n//# sourceMappingURL=b.d.ts.map" - } - ], - "emitSkipped": false, - "diagnostics": [] + "outputFiles": [ + { + "name": "/b/bin/b.d.ts.map", + "writeByteOrderMark": false, + "text": "{\"version\":3,\"file\":\"b.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../b.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK\"}" + }, + { + "name": "/b/bin/b.d.ts", + "writeByteOrderMark": false, + "text": "export declare function fnB(): void;\n//# sourceMappingURL=b.d.ts.map" + } + ], + "emitSkipped": false, + "diagnostics": [] } Before request diff --git a/tests/baselines/reference/tsserver/declarationFileMaps/navigateToAll-file-is-not-specified-but-project-is.js b/tests/baselines/reference/tsserver/declarationFileMaps/navigateToAll-file-is-not-specified-but-project-is.js index 4891b4636a8f3..73fae8bf763b7 100644 --- a/tests/baselines/reference/tsserver/declarationFileMaps/navigateToAll-file-is-not-specified-but-project-is.js +++ b/tests/baselines/reference/tsserver/declarationFileMaps/navigateToAll-file-is-not-specified-but-project-is.js @@ -7,10 +7,26 @@ export interface IfaceA {} export const instanceA: IfaceA = {}; //// [/a/tsconfig.json] -{"compilerOptions":{"outDir":"bin","declaration":true,"declarationMap":true,"composite":true}} +{ + "compilerOptions": { + "outDir": "bin", + "declaration": true, + "declarationMap": true, + "composite": true + } +} //// [/a/bin/a.d.ts.map] -{"version":3,"file":"a.d.ts","sourceRoot":"","sources":["../a.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC"} +{ + "version": 3, + "file": "a.d.ts", + "sourceRoot": "", + "sources": [ + "../a.ts" + ], + "names": [], + "mappings": "AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC" +} //// [/a/bin/a.d.ts] export declare function fnA(): void; @@ -20,13 +36,29 @@ export declare const instanceA: IfaceA; //# sourceMappingURL=a.d.ts.map //// [/b/tsconfig.json] -{"compilerOptions":{"outDir":"bin","declaration":true,"declarationMap":true,"composite":true}} +{ + "compilerOptions": { + "outDir": "bin", + "declaration": true, + "declarationMap": true, + "composite": true + } +} //// [/b/b.ts] export function fnB() {} //// [/b/bin/b.d.ts.map] -{"version":3,"file":"b.d.ts","sourceRoot":"","sources":["../b.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAK"} +{ + "version": 3, + "file": "b.d.ts", + "sourceRoot": "", + "sources": [ + "../b.ts" + ], + "names": [], + "mappings": "AAAA,wBAAgB,GAAG,SAAK" +} //// [/b/bin/b.d.ts] export declare function fnB(): void; @@ -38,7 +70,19 @@ import * as b from "../b/b"; export function fnUser() { a.fnA(); b.fnB(); a.instanceA; } //// [/user/tsconfig.json] -{"file":["user.ts"],"references":[{"path":"../a"},{"path":"../b"}]} +{ + "file": [ + "user.ts" + ], + "references": [ + { + "path": "../a" + }, + { + "path": "../b" + } + ] +} //// [/dummy/dummy.ts] let a = 10; @@ -111,20 +155,20 @@ FsWatchesRecursive:: {} ts.getFileEmitOutput: /a/a.ts: { - "outputFiles": [ - { - "name": "/a/bin/a.d.ts.map", - "writeByteOrderMark": false, - "text": "{\"version\":3,\"file\":\"a.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../a.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC\"}" - }, - { - "name": "/a/bin/a.d.ts", - "writeByteOrderMark": false, - "text": "export declare function fnA(): void;\nexport interface IfaceA {\n}\nexport declare const instanceA: IfaceA;\n//# sourceMappingURL=a.d.ts.map" - } - ], - "emitSkipped": false, - "diagnostics": [] + "outputFiles": [ + { + "name": "/a/bin/a.d.ts.map", + "writeByteOrderMark": false, + "text": "{\"version\":3,\"file\":\"a.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../a.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC\"}" + }, + { + "name": "/a/bin/a.d.ts", + "writeByteOrderMark": false, + "text": "export declare function fnA(): void;\nexport interface IfaceA {\n}\nexport declare const instanceA: IfaceA;\n//# sourceMappingURL=a.d.ts.map" + } + ], + "emitSkipped": false, + "diagnostics": [] } Before request @@ -257,20 +301,20 @@ FsWatchesRecursive *deleted*:: {} ts.getFileEmitOutput: /b/b.ts: { - "outputFiles": [ - { - "name": "/b/bin/b.d.ts.map", - "writeByteOrderMark": false, - "text": "{\"version\":3,\"file\":\"b.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../b.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK\"}" - }, - { - "name": "/b/bin/b.d.ts", - "writeByteOrderMark": false, - "text": "export declare function fnB(): void;\n//# sourceMappingURL=b.d.ts.map" - } - ], - "emitSkipped": false, - "diagnostics": [] + "outputFiles": [ + { + "name": "/b/bin/b.d.ts.map", + "writeByteOrderMark": false, + "text": "{\"version\":3,\"file\":\"b.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../b.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK\"}" + }, + { + "name": "/b/bin/b.d.ts", + "writeByteOrderMark": false, + "text": "export declare function fnB(): void;\n//# sourceMappingURL=b.d.ts.map" + } + ], + "emitSkipped": false, + "diagnostics": [] } Before request diff --git a/tests/baselines/reference/tsserver/declarationFileMaps/navigateToAll-neither-file-not-project-is-specified.js b/tests/baselines/reference/tsserver/declarationFileMaps/navigateToAll-neither-file-not-project-is-specified.js index 604d31e4b2d4e..9b994526e03c3 100644 --- a/tests/baselines/reference/tsserver/declarationFileMaps/navigateToAll-neither-file-not-project-is-specified.js +++ b/tests/baselines/reference/tsserver/declarationFileMaps/navigateToAll-neither-file-not-project-is-specified.js @@ -7,10 +7,26 @@ export interface IfaceA {} export const instanceA: IfaceA = {}; //// [/a/tsconfig.json] -{"compilerOptions":{"outDir":"bin","declaration":true,"declarationMap":true,"composite":true}} +{ + "compilerOptions": { + "outDir": "bin", + "declaration": true, + "declarationMap": true, + "composite": true + } +} //// [/a/bin/a.d.ts.map] -{"version":3,"file":"a.d.ts","sourceRoot":"","sources":["../a.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC"} +{ + "version": 3, + "file": "a.d.ts", + "sourceRoot": "", + "sources": [ + "../a.ts" + ], + "names": [], + "mappings": "AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC" +} //// [/a/bin/a.d.ts] export declare function fnA(): void; @@ -20,13 +36,29 @@ export declare const instanceA: IfaceA; //# sourceMappingURL=a.d.ts.map //// [/b/tsconfig.json] -{"compilerOptions":{"outDir":"bin","declaration":true,"declarationMap":true,"composite":true}} +{ + "compilerOptions": { + "outDir": "bin", + "declaration": true, + "declarationMap": true, + "composite": true + } +} //// [/b/b.ts] export function fnB() {} //// [/b/bin/b.d.ts.map] -{"version":3,"file":"b.d.ts","sourceRoot":"","sources":["../b.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAK"} +{ + "version": 3, + "file": "b.d.ts", + "sourceRoot": "", + "sources": [ + "../b.ts" + ], + "names": [], + "mappings": "AAAA,wBAAgB,GAAG,SAAK" +} //// [/b/bin/b.d.ts] export declare function fnB(): void; @@ -38,7 +70,19 @@ import * as b from "../b/b"; export function fnUser() { a.fnA(); b.fnB(); a.instanceA; } //// [/user/tsconfig.json] -{"file":["user.ts"],"references":[{"path":"../a"},{"path":"../b"}]} +{ + "file": [ + "user.ts" + ], + "references": [ + { + "path": "../a" + }, + { + "path": "../b" + } + ] +} //// [/dummy/dummy.ts] let a = 10; @@ -111,20 +155,20 @@ FsWatchesRecursive:: {} ts.getFileEmitOutput: /a/a.ts: { - "outputFiles": [ - { - "name": "/a/bin/a.d.ts.map", - "writeByteOrderMark": false, - "text": "{\"version\":3,\"file\":\"a.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../a.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC\"}" - }, - { - "name": "/a/bin/a.d.ts", - "writeByteOrderMark": false, - "text": "export declare function fnA(): void;\nexport interface IfaceA {\n}\nexport declare const instanceA: IfaceA;\n//# sourceMappingURL=a.d.ts.map" - } - ], - "emitSkipped": false, - "diagnostics": [] + "outputFiles": [ + { + "name": "/a/bin/a.d.ts.map", + "writeByteOrderMark": false, + "text": "{\"version\":3,\"file\":\"a.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../a.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC\"}" + }, + { + "name": "/a/bin/a.d.ts", + "writeByteOrderMark": false, + "text": "export declare function fnA(): void;\nexport interface IfaceA {\n}\nexport declare const instanceA: IfaceA;\n//# sourceMappingURL=a.d.ts.map" + } + ], + "emitSkipped": false, + "diagnostics": [] } Before request @@ -257,20 +301,20 @@ FsWatchesRecursive *deleted*:: {} ts.getFileEmitOutput: /b/b.ts: { - "outputFiles": [ - { - "name": "/b/bin/b.d.ts.map", - "writeByteOrderMark": false, - "text": "{\"version\":3,\"file\":\"b.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../b.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK\"}" - }, - { - "name": "/b/bin/b.d.ts", - "writeByteOrderMark": false, - "text": "export declare function fnB(): void;\n//# sourceMappingURL=b.d.ts.map" - } - ], - "emitSkipped": false, - "diagnostics": [] + "outputFiles": [ + { + "name": "/b/bin/b.d.ts.map", + "writeByteOrderMark": false, + "text": "{\"version\":3,\"file\":\"b.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../b.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK\"}" + }, + { + "name": "/b/bin/b.d.ts", + "writeByteOrderMark": false, + "text": "export declare function fnB(): void;\n//# sourceMappingURL=b.d.ts.map" + } + ], + "emitSkipped": false, + "diagnostics": [] } Before request diff --git a/tests/baselines/reference/tsserver/declarationFileMaps/renameLocations-starting-at-definition.js b/tests/baselines/reference/tsserver/declarationFileMaps/renameLocations-starting-at-definition.js index 2ed9018f152f2..5616c7ab83e83 100644 --- a/tests/baselines/reference/tsserver/declarationFileMaps/renameLocations-starting-at-definition.js +++ b/tests/baselines/reference/tsserver/declarationFileMaps/renameLocations-starting-at-definition.js @@ -7,10 +7,26 @@ export interface IfaceA {} export const instanceA: IfaceA = {}; //// [/a/tsconfig.json] -{"compilerOptions":{"outDir":"bin","declaration":true,"declarationMap":true,"composite":true}} +{ + "compilerOptions": { + "outDir": "bin", + "declaration": true, + "declarationMap": true, + "composite": true + } +} //// [/a/bin/a.d.ts.map] -{"version":3,"file":"a.d.ts","sourceRoot":"","sources":["../a.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC"} +{ + "version": 3, + "file": "a.d.ts", + "sourceRoot": "", + "sources": [ + "../a.ts" + ], + "names": [], + "mappings": "AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC" +} //// [/a/bin/a.d.ts] export declare function fnA(): void; @@ -20,13 +36,29 @@ export declare const instanceA: IfaceA; //# sourceMappingURL=a.d.ts.map //// [/b/tsconfig.json] -{"compilerOptions":{"outDir":"bin","declaration":true,"declarationMap":true,"composite":true}} +{ + "compilerOptions": { + "outDir": "bin", + "declaration": true, + "declarationMap": true, + "composite": true + } +} //// [/b/b.ts] export function fnB() {} //// [/b/bin/b.d.ts.map] -{"version":3,"file":"b.d.ts","sourceRoot":"","sources":["../b.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAK"} +{ + "version": 3, + "file": "b.d.ts", + "sourceRoot": "", + "sources": [ + "../b.ts" + ], + "names": [], + "mappings": "AAAA,wBAAgB,GAAG,SAAK" +} //// [/b/bin/b.d.ts] export declare function fnB(): void; @@ -108,20 +140,20 @@ FsWatchesRecursive:: {} ts.getFileEmitOutput: /a/a.ts: { - "outputFiles": [ - { - "name": "/a/bin/a.d.ts.map", - "writeByteOrderMark": false, - "text": "{\"version\":3,\"file\":\"a.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../a.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC\"}" - }, - { - "name": "/a/bin/a.d.ts", - "writeByteOrderMark": false, - "text": "export declare function fnA(): void;\nexport interface IfaceA {\n}\nexport declare const instanceA: IfaceA;\n//# sourceMappingURL=a.d.ts.map" - } - ], - "emitSkipped": false, - "diagnostics": [] + "outputFiles": [ + { + "name": "/a/bin/a.d.ts.map", + "writeByteOrderMark": false, + "text": "{\"version\":3,\"file\":\"a.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../a.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC\"}" + }, + { + "name": "/a/bin/a.d.ts", + "writeByteOrderMark": false, + "text": "export declare function fnA(): void;\nexport interface IfaceA {\n}\nexport declare const instanceA: IfaceA;\n//# sourceMappingURL=a.d.ts.map" + } + ], + "emitSkipped": false, + "diagnostics": [] } Before request @@ -254,20 +286,20 @@ FsWatchesRecursive *deleted*:: {} ts.getFileEmitOutput: /b/b.ts: { - "outputFiles": [ - { - "name": "/b/bin/b.d.ts.map", - "writeByteOrderMark": false, - "text": "{\"version\":3,\"file\":\"b.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../b.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK\"}" - }, - { - "name": "/b/bin/b.d.ts", - "writeByteOrderMark": false, - "text": "export declare function fnB(): void;\n//# sourceMappingURL=b.d.ts.map" - } - ], - "emitSkipped": false, - "diagnostics": [] + "outputFiles": [ + { + "name": "/b/bin/b.d.ts.map", + "writeByteOrderMark": false, + "text": "{\"version\":3,\"file\":\"b.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../b.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK\"}" + }, + { + "name": "/b/bin/b.d.ts", + "writeByteOrderMark": false, + "text": "export declare function fnB(): void;\n//# sourceMappingURL=b.d.ts.map" + } + ], + "emitSkipped": false, + "diagnostics": [] } Before request diff --git a/tests/baselines/reference/tsserver/declarationFileMaps/renameLocations-target-does-not-exist.js b/tests/baselines/reference/tsserver/declarationFileMaps/renameLocations-target-does-not-exist.js index 60ddac7a7cfe7..3b2d34db8fb7a 100644 --- a/tests/baselines/reference/tsserver/declarationFileMaps/renameLocations-target-does-not-exist.js +++ b/tests/baselines/reference/tsserver/declarationFileMaps/renameLocations-target-does-not-exist.js @@ -7,10 +7,26 @@ export interface IfaceA {} export const instanceA: IfaceA = {}; //// [/a/tsconfig.json] -{"compilerOptions":{"outDir":"bin","declaration":true,"declarationMap":true,"composite":true}} +{ + "compilerOptions": { + "outDir": "bin", + "declaration": true, + "declarationMap": true, + "composite": true + } +} //// [/a/bin/a.d.ts.map] -{"version":3,"file":"a.d.ts","sourceRoot":"","sources":["../a.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC"} +{ + "version": 3, + "file": "a.d.ts", + "sourceRoot": "", + "sources": [ + "../a.ts" + ], + "names": [], + "mappings": "AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC" +} //// [/a/bin/a.d.ts] export declare function fnA(): void; @@ -20,13 +36,29 @@ export declare const instanceA: IfaceA; //# sourceMappingURL=a.d.ts.map //// [/b/tsconfig.json] -{"compilerOptions":{"outDir":"bin","declaration":true,"declarationMap":true,"composite":true}} +{ + "compilerOptions": { + "outDir": "bin", + "declaration": true, + "declarationMap": true, + "composite": true + } +} //// [/b/b.ts] export function fnB() {} //// [/b/bin/b.d.ts.map] -{"version":3,"file":"b.d.ts","sourceRoot":"","sources":["../b.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAK"} +{ + "version": 3, + "file": "b.d.ts", + "sourceRoot": "", + "sources": [ + "../b.ts" + ], + "names": [], + "mappings": "AAAA,wBAAgB,GAAG,SAAK" +} //// [/b/bin/b.d.ts] export declare function fnB(): void; @@ -108,20 +140,20 @@ FsWatchesRecursive:: {} ts.getFileEmitOutput: /a/a.ts: { - "outputFiles": [ - { - "name": "/a/bin/a.d.ts.map", - "writeByteOrderMark": false, - "text": "{\"version\":3,\"file\":\"a.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../a.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC\"}" - }, - { - "name": "/a/bin/a.d.ts", - "writeByteOrderMark": false, - "text": "export declare function fnA(): void;\nexport interface IfaceA {\n}\nexport declare const instanceA: IfaceA;\n//# sourceMappingURL=a.d.ts.map" - } - ], - "emitSkipped": false, - "diagnostics": [] + "outputFiles": [ + { + "name": "/a/bin/a.d.ts.map", + "writeByteOrderMark": false, + "text": "{\"version\":3,\"file\":\"a.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../a.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC\"}" + }, + { + "name": "/a/bin/a.d.ts", + "writeByteOrderMark": false, + "text": "export declare function fnA(): void;\nexport interface IfaceA {\n}\nexport declare const instanceA: IfaceA;\n//# sourceMappingURL=a.d.ts.map" + } + ], + "emitSkipped": false, + "diagnostics": [] } Before request @@ -254,20 +286,20 @@ FsWatchesRecursive *deleted*:: {} ts.getFileEmitOutput: /b/b.ts: { - "outputFiles": [ - { - "name": "/b/bin/b.d.ts.map", - "writeByteOrderMark": false, - "text": "{\"version\":3,\"file\":\"b.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../b.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK\"}" - }, - { - "name": "/b/bin/b.d.ts", - "writeByteOrderMark": false, - "text": "export declare function fnB(): void;\n//# sourceMappingURL=b.d.ts.map" - } - ], - "emitSkipped": false, - "diagnostics": [] + "outputFiles": [ + { + "name": "/b/bin/b.d.ts.map", + "writeByteOrderMark": false, + "text": "{\"version\":3,\"file\":\"b.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../b.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK\"}" + }, + { + "name": "/b/bin/b.d.ts", + "writeByteOrderMark": false, + "text": "export declare function fnB(): void;\n//# sourceMappingURL=b.d.ts.map" + } + ], + "emitSkipped": false, + "diagnostics": [] } Before request diff --git a/tests/baselines/reference/tsserver/declarationFileMaps/renameLocations.js b/tests/baselines/reference/tsserver/declarationFileMaps/renameLocations.js index 72089e1e0ec88..0b9731cbebea9 100644 --- a/tests/baselines/reference/tsserver/declarationFileMaps/renameLocations.js +++ b/tests/baselines/reference/tsserver/declarationFileMaps/renameLocations.js @@ -7,10 +7,26 @@ export interface IfaceA {} export const instanceA: IfaceA = {}; //// [/a/tsconfig.json] -{"compilerOptions":{"outDir":"bin","declaration":true,"declarationMap":true,"composite":true}} +{ + "compilerOptions": { + "outDir": "bin", + "declaration": true, + "declarationMap": true, + "composite": true + } +} //// [/a/bin/a.d.ts.map] -{"version":3,"file":"a.d.ts","sourceRoot":"","sources":["../a.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC"} +{ + "version": 3, + "file": "a.d.ts", + "sourceRoot": "", + "sources": [ + "../a.ts" + ], + "names": [], + "mappings": "AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC" +} //// [/a/bin/a.d.ts] export declare function fnA(): void; @@ -20,13 +36,29 @@ export declare const instanceA: IfaceA; //# sourceMappingURL=a.d.ts.map //// [/b/tsconfig.json] -{"compilerOptions":{"outDir":"bin","declaration":true,"declarationMap":true,"composite":true}} +{ + "compilerOptions": { + "outDir": "bin", + "declaration": true, + "declarationMap": true, + "composite": true + } +} //// [/b/b.ts] export function fnB() {} //// [/b/bin/b.d.ts.map] -{"version":3,"file":"b.d.ts","sourceRoot":"","sources":["../b.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAK"} +{ + "version": 3, + "file": "b.d.ts", + "sourceRoot": "", + "sources": [ + "../b.ts" + ], + "names": [], + "mappings": "AAAA,wBAAgB,GAAG,SAAK" +} //// [/b/bin/b.d.ts] export declare function fnB(): void; @@ -108,20 +140,20 @@ FsWatchesRecursive:: {} ts.getFileEmitOutput: /a/a.ts: { - "outputFiles": [ - { - "name": "/a/bin/a.d.ts.map", - "writeByteOrderMark": false, - "text": "{\"version\":3,\"file\":\"a.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../a.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC\"}" - }, - { - "name": "/a/bin/a.d.ts", - "writeByteOrderMark": false, - "text": "export declare function fnA(): void;\nexport interface IfaceA {\n}\nexport declare const instanceA: IfaceA;\n//# sourceMappingURL=a.d.ts.map" - } - ], - "emitSkipped": false, - "diagnostics": [] + "outputFiles": [ + { + "name": "/a/bin/a.d.ts.map", + "writeByteOrderMark": false, + "text": "{\"version\":3,\"file\":\"a.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../a.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC\"}" + }, + { + "name": "/a/bin/a.d.ts", + "writeByteOrderMark": false, + "text": "export declare function fnA(): void;\nexport interface IfaceA {\n}\nexport declare const instanceA: IfaceA;\n//# sourceMappingURL=a.d.ts.map" + } + ], + "emitSkipped": false, + "diagnostics": [] } Before request @@ -254,20 +286,20 @@ FsWatchesRecursive *deleted*:: {} ts.getFileEmitOutput: /b/b.ts: { - "outputFiles": [ - { - "name": "/b/bin/b.d.ts.map", - "writeByteOrderMark": false, - "text": "{\"version\":3,\"file\":\"b.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../b.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK\"}" - }, - { - "name": "/b/bin/b.d.ts", - "writeByteOrderMark": false, - "text": "export declare function fnB(): void;\n//# sourceMappingURL=b.d.ts.map" - } - ], - "emitSkipped": false, - "diagnostics": [] + "outputFiles": [ + { + "name": "/b/bin/b.d.ts.map", + "writeByteOrderMark": false, + "text": "{\"version\":3,\"file\":\"b.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../b.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK\"}" + }, + { + "name": "/b/bin/b.d.ts", + "writeByteOrderMark": false, + "text": "export declare function fnB(): void;\n//# sourceMappingURL=b.d.ts.map" + } + ], + "emitSkipped": false, + "diagnostics": [] } Before request diff --git a/tests/baselines/reference/tsserver/declarationFileMaps/renameLocationsFull.js b/tests/baselines/reference/tsserver/declarationFileMaps/renameLocationsFull.js index 4dbdee5335cee..e44e26976c923 100644 --- a/tests/baselines/reference/tsserver/declarationFileMaps/renameLocationsFull.js +++ b/tests/baselines/reference/tsserver/declarationFileMaps/renameLocationsFull.js @@ -7,10 +7,26 @@ export interface IfaceA {} export const instanceA: IfaceA = {}; //// [/a/tsconfig.json] -{"compilerOptions":{"outDir":"bin","declaration":true,"declarationMap":true,"composite":true}} +{ + "compilerOptions": { + "outDir": "bin", + "declaration": true, + "declarationMap": true, + "composite": true + } +} //// [/a/bin/a.d.ts.map] -{"version":3,"file":"a.d.ts","sourceRoot":"","sources":["../a.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC"} +{ + "version": 3, + "file": "a.d.ts", + "sourceRoot": "", + "sources": [ + "../a.ts" + ], + "names": [], + "mappings": "AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC" +} //// [/a/bin/a.d.ts] export declare function fnA(): void; @@ -20,13 +36,29 @@ export declare const instanceA: IfaceA; //# sourceMappingURL=a.d.ts.map //// [/b/tsconfig.json] -{"compilerOptions":{"outDir":"bin","declaration":true,"declarationMap":true,"composite":true}} +{ + "compilerOptions": { + "outDir": "bin", + "declaration": true, + "declarationMap": true, + "composite": true + } +} //// [/b/b.ts] export function fnB() {} //// [/b/bin/b.d.ts.map] -{"version":3,"file":"b.d.ts","sourceRoot":"","sources":["../b.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAK"} +{ + "version": 3, + "file": "b.d.ts", + "sourceRoot": "", + "sources": [ + "../b.ts" + ], + "names": [], + "mappings": "AAAA,wBAAgB,GAAG,SAAK" +} //// [/b/bin/b.d.ts] export declare function fnB(): void; @@ -108,20 +140,20 @@ FsWatchesRecursive:: {} ts.getFileEmitOutput: /a/a.ts: { - "outputFiles": [ - { - "name": "/a/bin/a.d.ts.map", - "writeByteOrderMark": false, - "text": "{\"version\":3,\"file\":\"a.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../a.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC\"}" - }, - { - "name": "/a/bin/a.d.ts", - "writeByteOrderMark": false, - "text": "export declare function fnA(): void;\nexport interface IfaceA {\n}\nexport declare const instanceA: IfaceA;\n//# sourceMappingURL=a.d.ts.map" - } - ], - "emitSkipped": false, - "diagnostics": [] + "outputFiles": [ + { + "name": "/a/bin/a.d.ts.map", + "writeByteOrderMark": false, + "text": "{\"version\":3,\"file\":\"a.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../a.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC\"}" + }, + { + "name": "/a/bin/a.d.ts", + "writeByteOrderMark": false, + "text": "export declare function fnA(): void;\nexport interface IfaceA {\n}\nexport declare const instanceA: IfaceA;\n//# sourceMappingURL=a.d.ts.map" + } + ], + "emitSkipped": false, + "diagnostics": [] } Before request @@ -254,20 +286,20 @@ FsWatchesRecursive *deleted*:: {} ts.getFileEmitOutput: /b/b.ts: { - "outputFiles": [ - { - "name": "/b/bin/b.d.ts.map", - "writeByteOrderMark": false, - "text": "{\"version\":3,\"file\":\"b.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../b.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK\"}" - }, - { - "name": "/b/bin/b.d.ts", - "writeByteOrderMark": false, - "text": "export declare function fnB(): void;\n//# sourceMappingURL=b.d.ts.map" - } - ], - "emitSkipped": false, - "diagnostics": [] + "outputFiles": [ + { + "name": "/b/bin/b.d.ts.map", + "writeByteOrderMark": false, + "text": "{\"version\":3,\"file\":\"b.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../b.ts\"],\"names\":[],\"mappings\":\"AAAA,wBAAgB,GAAG,SAAK\"}" + }, + { + "name": "/b/bin/b.d.ts", + "writeByteOrderMark": false, + "text": "export declare function fnB(): void;\n//# sourceMappingURL=b.d.ts.map" + } + ], + "emitSkipped": false, + "diagnostics": [] } Before request diff --git a/tests/baselines/reference/tsserver/documentRegistry/Caches-the-source-file-if-script-info-is-orphan,-and-orphan-script-info-changes.js b/tests/baselines/reference/tsserver/documentRegistry/Caches-the-source-file-if-script-info-is-orphan,-and-orphan-script-info-changes.js index 9be7576e02819..eb65979589238 100644 --- a/tests/baselines/reference/tsserver/documentRegistry/Caches-the-source-file-if-script-info-is-orphan,-and-orphan-script-info-changes.js +++ b/tests/baselines/reference/tsserver/documentRegistry/Caches-the-source-file-if-script-info-is-orphan,-and-orphan-script-info-changes.js @@ -21,7 +21,11 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/tsconfig.json] -{"files":["index.ts"]} +{ + "files": [ + "index.ts" + ] +} Info seq [hh:mm:ss:mss] Search path: /user/username/projects/myproject diff --git a/tests/baselines/reference/tsserver/documentRegistry/Caches-the-source-file-if-script-info-is-orphan.js b/tests/baselines/reference/tsserver/documentRegistry/Caches-the-source-file-if-script-info-is-orphan.js index 41814d3b60e8c..d1fe2db2046d2 100644 --- a/tests/baselines/reference/tsserver/documentRegistry/Caches-the-source-file-if-script-info-is-orphan.js +++ b/tests/baselines/reference/tsserver/documentRegistry/Caches-the-source-file-if-script-info-is-orphan.js @@ -21,7 +21,11 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/tsconfig.json] -{"files":["index.ts"]} +{ + "files": [ + "index.ts" + ] +} Info seq [hh:mm:ss:mss] Search path: /user/username/projects/myproject diff --git a/tests/baselines/reference/tsserver/duplicatePackages/works-with-import-fixes.js b/tests/baselines/reference/tsserver/duplicatePackages/works-with-import-fixes.js index 05b8867db766a..36498dc404bde 100644 --- a/tests/baselines/reference/tsserver/duplicatePackages/works-with-import-fixes.js +++ b/tests/baselines/reference/tsserver/duplicatePackages/works-with-import-fixes.js @@ -5,13 +5,19 @@ Before request export const foo: number; //// [/a/node_modules/foo/package.json] -{"name":"foo","version":"1.2.3"} +{ + "name": "foo", + "version": "1.2.3" +} //// [/b/node_modules/foo/index.d.ts] export const foo: number; //// [/b/node_modules/foo/package.json] -{"name":"foo","version":"1.2.3"} +{ + "name": "foo", + "version": "1.2.3" +} //// [/a/user.ts] import("foo"); diff --git a/tests/baselines/reference/tsserver/dynamicFiles/dynamic-file-with-projectRootPath-with-useInferredProjectPerProjectRoot.js b/tests/baselines/reference/tsserver/dynamicFiles/dynamic-file-with-projectRootPath-with-useInferredProjectPerProjectRoot.js index ff9228b9cad87..76218067112dd 100644 --- a/tests/baselines/reference/tsserver/dynamicFiles/dynamic-file-with-projectRootPath-with-useInferredProjectPerProjectRoot.js +++ b/tests/baselines/reference/tsserver/dynamicFiles/dynamic-file-with-projectRootPath-with-useInferredProjectPerProjectRoot.js @@ -79,7 +79,7 @@ TI:: typing installer creation complete //// [/a/data/node_modules/types-registry/index.json] { - "entries": {} + "entries": {} } diff --git a/tests/baselines/reference/tsserver/dynamicFiles/dynamic-file-without-external-project.js b/tests/baselines/reference/tsserver/dynamicFiles/dynamic-file-without-external-project.js index 2a6a0814a95df..1447ec6cc5544 100644 --- a/tests/baselines/reference/tsserver/dynamicFiles/dynamic-file-without-external-project.js +++ b/tests/baselines/reference/tsserver/dynamicFiles/dynamic-file-without-external-project.js @@ -86,7 +86,7 @@ TI:: typing installer creation complete //// [/a/data/node_modules/types-registry/index.json] { - "entries": {} + "entries": {} } diff --git a/tests/baselines/reference/tsserver/events/largeFileReferenced/when-large-js-file-is-included-by-tsconfig.js b/tests/baselines/reference/tsserver/events/largeFileReferenced/when-large-js-file-is-included-by-tsconfig.js index 4b596edf57b55..da811e9eaef72 100644 --- a/tests/baselines/reference/tsserver/events/largeFileReferenced/when-large-js-file-is-included-by-tsconfig.js +++ b/tests/baselines/reference/tsserver/events/largeFileReferenced/when-large-js-file-is-included-by-tsconfig.js @@ -18,7 +18,16 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/tsconfig.json] -{"files":["src/file.ts","src/large.js"],"compilerOptions":{"target":1,"allowJs":true}} +{ + "files": [ + "src/file.ts", + "src/large.js" + ], + "compilerOptions": { + "target": 1, + "allowJs": true + } +} //// [/user/username/projects/myproject/src/large.js] export var x = 10; @@ -160,12 +169,12 @@ Info seq [hh:mm:ss:mss] event: }, { "start": { - "line": 1, - "offset": 69 + "line": 7, + "offset": 15 }, "end": { - "line": 1, - "offset": 70 + "line": 7, + "offset": 16 }, "text": "Compiler option 'target' requires a value of type string.", "code": 5024, diff --git a/tests/baselines/reference/tsserver/events/largeFileReferenced/when-large-ts-file-is-included-by-tsconfig.js b/tests/baselines/reference/tsserver/events/largeFileReferenced/when-large-ts-file-is-included-by-tsconfig.js index 34c445b6ca006..7fb43a2d3a602 100644 --- a/tests/baselines/reference/tsserver/events/largeFileReferenced/when-large-ts-file-is-included-by-tsconfig.js +++ b/tests/baselines/reference/tsserver/events/largeFileReferenced/when-large-ts-file-is-included-by-tsconfig.js @@ -18,7 +18,16 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/tsconfig.json] -{"files":["src/file.ts","src/large.ts"],"compilerOptions":{"target":1,"allowJs":true}} +{ + "files": [ + "src/file.ts", + "src/large.ts" + ], + "compilerOptions": { + "target": 1, + "allowJs": true + } +} //// [/user/username/projects/myproject/src/large.ts] export var x = 10; @@ -143,12 +152,12 @@ Info seq [hh:mm:ss:mss] event: "diagnostics": [ { "start": { - "line": 1, - "offset": 69 + "line": 7, + "offset": 15 }, "end": { - "line": 1, - "offset": 70 + "line": 7, + "offset": 16 }, "text": "Compiler option 'target' requires a value of type string.", "code": 5024, diff --git a/tests/baselines/reference/tsserver/events/projectLanguageServiceState/language-service-disabled-events-are-triggered.js b/tests/baselines/reference/tsserver/events/projectLanguageServiceState/language-service-disabled-events-are-triggered.js index 34379d341f2bf..ca291adea75e2 100644 --- a/tests/baselines/reference/tsserver/events/projectLanguageServiceState/language-service-disabled-events-are-triggered.js +++ b/tests/baselines/reference/tsserver/events/projectLanguageServiceState/language-service-disabled-events-are-triggered.js @@ -229,7 +229,11 @@ Before running Timeout callback:: count: 2 1: /a/jsconfig.json 2: *ensureProjectForOpenFiles* //// [/a/jsconfig.json] -{"exclude":["largefile.js"]} +{ + "exclude": [ + "largefile.js" + ] +} Info seq [hh:mm:ss:mss] Running: /a/jsconfig.json @@ -331,7 +335,7 @@ TI:: typing installer creation complete //// [/a/data/node_modules/types-registry/index.json] { - "entries": {} + "entries": {} } diff --git a/tests/baselines/reference/tsserver/events/projectLoading/change-is-detected-in-an-extended-config-file-when-using-default-event-handler.js b/tests/baselines/reference/tsserver/events/projectLoading/change-is-detected-in-an-extended-config-file-when-using-default-event-handler.js index 802263353f461..53fd652e24fe3 100644 --- a/tests/baselines/reference/tsserver/events/projectLoading/change-is-detected-in-an-extended-config-file-when-using-default-event-handler.js +++ b/tests/baselines/reference/tsserver/events/projectLoading/change-is-detected-in-an-extended-config-file-when-using-default-event-handler.js @@ -24,7 +24,9 @@ export class A { } export class B {} //// [/user/username/projects/b/tsconfig.json] -{"extends":"../a/tsconfig.json"} +{ + "extends": "../a/tsconfig.json" +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/events/projectLoading/change-is-detected-in-an-extended-config-file-when-using-event-handler.js b/tests/baselines/reference/tsserver/events/projectLoading/change-is-detected-in-an-extended-config-file-when-using-event-handler.js index 1ee06fd7da635..2be34fd3332f2 100644 --- a/tests/baselines/reference/tsserver/events/projectLoading/change-is-detected-in-an-extended-config-file-when-using-event-handler.js +++ b/tests/baselines/reference/tsserver/events/projectLoading/change-is-detected-in-an-extended-config-file-when-using-event-handler.js @@ -24,7 +24,9 @@ export class A { } export class B {} //// [/user/username/projects/b/tsconfig.json] -{"extends":"../a/tsconfig.json"} +{ + "extends": "../a/tsconfig.json" +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/events/projectLoading/opening-original-location-project-disableSourceOfProjectReferenceRedirect-when-using-default-event-handler.js b/tests/baselines/reference/tsserver/events/projectLoading/opening-original-location-project-disableSourceOfProjectReferenceRedirect-when-using-default-event-handler.js index e9281fa8cdf45..a097237c3a09f 100644 --- a/tests/baselines/reference/tsserver/events/projectLoading/opening-original-location-project-disableSourceOfProjectReferenceRedirect-when-using-default-event-handler.js +++ b/tests/baselines/reference/tsserver/events/projectLoading/opening-original-location-project-disableSourceOfProjectReferenceRedirect-when-using-default-event-handler.js @@ -27,13 +27,31 @@ export declare class A { //// [/user/username/projects/a/a.d.ts.map] -{"version":3,"file":"a.d.ts","sourceRoot":"","sources":["./a.ts"],"names":[],"mappings":"AAAA,qBAAa,CAAC;CAAI"} +{ + "version": 3, + "file": "a.d.ts", + "sourceRoot": "", + "sources": [ + "./a.ts" + ], + "names": [], + "mappings": "AAAA,qBAAa,CAAC;CAAI" +} //// [/user/username/projects/b/b.ts] import {A} from "../a/a"; new A(); //// [/user/username/projects/b/tsconfig.json] -{"compilerOptions":{"disableSourceOfProjectReferenceRedirect":true},"references":[{"path":"../a"}]} +{ + "compilerOptions": { + "disableSourceOfProjectReferenceRedirect": true + }, + "references": [ + { + "path": "../a" + } + ] +} Info seq [hh:mm:ss:mss] request: @@ -174,12 +192,12 @@ Info seq [hh:mm:ss:mss] event: "diagnostics": [ { "start": { - "line": 1, - "offset": 83 + "line": 6, + "offset": 5 }, "end": { - "line": 1, - "offset": 98 + "line": 8, + "offset": 6 }, "text": "Referenced project '/user/username/projects/a' must have setting \"composite\": true.", "code": 6306, diff --git a/tests/baselines/reference/tsserver/events/projectLoading/opening-original-location-project-disableSourceOfProjectReferenceRedirect-when-using-event-handler.js b/tests/baselines/reference/tsserver/events/projectLoading/opening-original-location-project-disableSourceOfProjectReferenceRedirect-when-using-event-handler.js index 76d7c12ddcbb2..e62bb861e8957 100644 --- a/tests/baselines/reference/tsserver/events/projectLoading/opening-original-location-project-disableSourceOfProjectReferenceRedirect-when-using-event-handler.js +++ b/tests/baselines/reference/tsserver/events/projectLoading/opening-original-location-project-disableSourceOfProjectReferenceRedirect-when-using-event-handler.js @@ -27,13 +27,31 @@ export declare class A { //// [/user/username/projects/a/a.d.ts.map] -{"version":3,"file":"a.d.ts","sourceRoot":"","sources":["./a.ts"],"names":[],"mappings":"AAAA,qBAAa,CAAC;CAAI"} +{ + "version": 3, + "file": "a.d.ts", + "sourceRoot": "", + "sources": [ + "./a.ts" + ], + "names": [], + "mappings": "AAAA,qBAAa,CAAC;CAAI" +} //// [/user/username/projects/b/b.ts] import {A} from "../a/a"; new A(); //// [/user/username/projects/b/tsconfig.json] -{"compilerOptions":{"disableSourceOfProjectReferenceRedirect":true},"references":[{"path":"../a"}]} +{ + "compilerOptions": { + "disableSourceOfProjectReferenceRedirect": true + }, + "references": [ + { + "path": "../a" + } + ] +} Info seq [hh:mm:ss:mss] request: @@ -170,12 +188,12 @@ Info seq [hh:mm:ss:mss] event: "diagnostics": [ { "start": { - "line": 1, - "offset": 83 + "line": 6, + "offset": 5 }, "end": { - "line": 1, - "offset": 98 + "line": 8, + "offset": 6 }, "text": "Referenced project '/user/username/projects/a' must have setting \"composite\": true.", "code": 6306, diff --git a/tests/baselines/reference/tsserver/events/projectLoading/opening-original-location-project-when-using-default-event-handler.js b/tests/baselines/reference/tsserver/events/projectLoading/opening-original-location-project-when-using-default-event-handler.js index 0894fbefc8cf8..26b2a351a536f 100644 --- a/tests/baselines/reference/tsserver/events/projectLoading/opening-original-location-project-when-using-default-event-handler.js +++ b/tests/baselines/reference/tsserver/events/projectLoading/opening-original-location-project-when-using-default-event-handler.js @@ -27,13 +27,28 @@ export declare class A { //// [/user/username/projects/a/a.d.ts.map] -{"version":3,"file":"a.d.ts","sourceRoot":"","sources":["./a.ts"],"names":[],"mappings":"AAAA,qBAAa,CAAC;CAAI"} +{ + "version": 3, + "file": "a.d.ts", + "sourceRoot": "", + "sources": [ + "./a.ts" + ], + "names": [], + "mappings": "AAAA,qBAAa,CAAC;CAAI" +} //// [/user/username/projects/b/b.ts] import {A} from "../a/a"; new A(); //// [/user/username/projects/b/tsconfig.json] -{"references":[{"path":"../a"}]} +{ + "references": [ + { + "path": "../a" + } + ] +} Info seq [hh:mm:ss:mss] request: @@ -170,12 +185,12 @@ Info seq [hh:mm:ss:mss] event: "diagnostics": [ { "start": { - "line": 1, - "offset": 16 + "line": 3, + "offset": 5 }, "end": { - "line": 1, - "offset": 31 + "line": 5, + "offset": 6 }, "text": "Referenced project '/user/username/projects/a' must have setting \"composite\": true.", "code": 6306, diff --git a/tests/baselines/reference/tsserver/events/projectLoading/opening-original-location-project-when-using-event-handler.js b/tests/baselines/reference/tsserver/events/projectLoading/opening-original-location-project-when-using-event-handler.js index 95fe594749032..334e85532852c 100644 --- a/tests/baselines/reference/tsserver/events/projectLoading/opening-original-location-project-when-using-event-handler.js +++ b/tests/baselines/reference/tsserver/events/projectLoading/opening-original-location-project-when-using-event-handler.js @@ -27,13 +27,28 @@ export declare class A { //// [/user/username/projects/a/a.d.ts.map] -{"version":3,"file":"a.d.ts","sourceRoot":"","sources":["./a.ts"],"names":[],"mappings":"AAAA,qBAAa,CAAC;CAAI"} +{ + "version": 3, + "file": "a.d.ts", + "sourceRoot": "", + "sources": [ + "./a.ts" + ], + "names": [], + "mappings": "AAAA,qBAAa,CAAC;CAAI" +} //// [/user/username/projects/b/b.ts] import {A} from "../a/a"; new A(); //// [/user/username/projects/b/tsconfig.json] -{"references":[{"path":"../a"}]} +{ + "references": [ + { + "path": "../a" + } + ] +} Info seq [hh:mm:ss:mss] request: @@ -166,12 +181,12 @@ Info seq [hh:mm:ss:mss] event: "diagnostics": [ { "start": { - "line": 1, - "offset": 16 + "line": 3, + "offset": 5 }, "end": { - "line": 1, - "offset": 31 + "line": 5, + "offset": 6 }, "text": "Referenced project '/user/username/projects/a' must have setting \"composite\": true.", "code": 6306, diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-project-is-at-root-level.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-project-is-at-root-level.js index b8d2f3b855c29..0ad1abd36c56e 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-project-is-at-root-level.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-project-is-at-root-level.js @@ -21,7 +21,11 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/a/b/project/tsconfig.json] -{"compilerOptions":{"typeRoots":[]}} +{ + "compilerOptions": { + "typeRoots": [] + } +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-project-is-not-at-root-level.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-project-is-not-at-root-level.js index 949a09074769d..bcad76efdcac3 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-project-is-not-at-root-level.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-project-is-not-at-root-level.js @@ -21,7 +21,11 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json] -{"compilerOptions":{"typeRoots":[]}} +{ + "compilerOptions": { + "typeRoots": [] + } +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-always-return-the-file-itself-if---isolatedModules-is-specified.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-always-return-the-file-itself-if---isolatedModules-is-specified.js index 65d9b21002743..586c41b14522e 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-always-return-the-file-itself-if---isolatedModules-is-specified.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-always-return-the-file-itself-if---isolatedModules-is-specified.js @@ -5,7 +5,11 @@ Before request import {Foo} from "./moduleFile1"; export var y = 10; //// [/users/username/projects/project/tsconfig.json] -{"compilerOptions":{"isolatedModules":true}} +{ + "compilerOptions": { + "isolatedModules": true + } +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-always-return-the-file-itself-if---out-or---outFile-is-specified.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-always-return-the-file-itself-if---out-or---outFile-is-specified.js index d219789816059..c486567bda7bf 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-always-return-the-file-itself-if---out-or---outFile-is-specified.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-always-return-the-file-itself-if---out-or---outFile-is-specified.js @@ -5,7 +5,12 @@ Before request import {Foo} from "./moduleFile1"; export var y = 10; //// [/users/username/projects/project/tsconfig.json] -{"compilerOptions":{"module":"system","outFile":"/users/username/projects/project/out.js"}} +{ + "compilerOptions": { + "module": "system", + "outFile": "/users/username/projects/project/out.js" + } +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-detect-changes-in-non-root-files.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-detect-changes-in-non-root-files.js index 307d8d985103a..777881bfffdb0 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-detect-changes-in-non-root-files.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-detect-changes-in-non-root-files.js @@ -5,7 +5,11 @@ Before request import {Foo} from "./moduleFile1"; export var y = 10; //// [/users/username/projects/project/tsconfig.json] -{"files":["/users/username/projects/project/file1Consumer1.ts"]} +{ + "files": [ + "/users/username/projects/project/file1Consumer1.ts" + ] +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-when---out-is-set.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-when---out-is-set.js index 1dff53ccb2e65..ddf2157446a97 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-when---out-is-set.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-when---out-is-set.js @@ -5,7 +5,11 @@ Before request export let x = 1 //// [/users/username/projects/project/tsconfig.json] -{"compilerOptions":{"out":"/a/out.js"}} +{ + "compilerOptions": { + "out": "/a/out.js" + } +} //// [/a/lib/lib.d.ts] /// @@ -133,12 +137,12 @@ Info seq [hh:mm:ss:mss] event: "diagnostics": [ { "start": { - "line": 1, - "offset": 21 + "line": 3, + "offset": 5 }, "end": { - "line": 1, - "offset": 26 + "line": 3, + "offset": 10 }, "text": "Option 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '\"ignoreDeprecations\": \"5.0\"' to silence this error.\n Use 'outFile' instead.", "code": 5101, diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-when---outFile-is-set.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-when---outFile-is-set.js index 8abcab06513c7..974c0b9c4528c 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-when---outFile-is-set.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-when---outFile-is-set.js @@ -5,7 +5,11 @@ Before request export let x = 1 //// [/users/username/projects/project/tsconfig.json] -{"compilerOptions":{"outFile":"/a/out.js"}} +{ + "compilerOptions": { + "outFile": "/a/out.js" + } +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-when-both-options-are-not-set.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-when-both-options-are-not-set.js index 1e544b0c66356..1603b8b8fcf76 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-when-both-options-are-not-set.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-when-both-options-are-not-set.js @@ -5,7 +5,9 @@ Before request export let x = 1 //// [/users/username/projects/project/tsconfig.json] -{"compilerOptions":{}} +{ + "compilerOptions": {} +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-project-is-at-root-level.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-project-is-at-root-level.js index 2321123fdef18..f979091429e3e 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-project-is-at-root-level.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-project-is-at-root-level.js @@ -21,7 +21,11 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/a/b/project/tsconfig.json] -{"compilerOptions":{"typeRoots":[]}} +{ + "compilerOptions": { + "typeRoots": [] + } +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-project-is-not-at-root-level.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-project-is-not-at-root-level.js index 70f5612856a33..ae5d2f153aef5 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-project-is-not-at-root-level.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-project-is-not-at-root-level.js @@ -21,7 +21,11 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json] -{"compilerOptions":{"typeRoots":[]}} +{ + "compilerOptions": { + "typeRoots": [] + } +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-always-return-the-file-itself-if---isolatedModules-is-specified.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-always-return-the-file-itself-if---isolatedModules-is-specified.js index 76b5d211a3890..e852f4d540db4 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-always-return-the-file-itself-if---isolatedModules-is-specified.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-always-return-the-file-itself-if---isolatedModules-is-specified.js @@ -5,7 +5,11 @@ Before request import {Foo} from "./moduleFile1"; export var y = 10; //// [/users/username/projects/project/tsconfig.json] -{"compilerOptions":{"isolatedModules":true}} +{ + "compilerOptions": { + "isolatedModules": true + } +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-always-return-the-file-itself-if---out-or---outFile-is-specified.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-always-return-the-file-itself-if---out-or---outFile-is-specified.js index a23c0a17b3f1d..55e2fa184f474 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-always-return-the-file-itself-if---out-or---outFile-is-specified.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-always-return-the-file-itself-if---out-or---outFile-is-specified.js @@ -5,7 +5,12 @@ Before request import {Foo} from "./moduleFile1"; export var y = 10; //// [/users/username/projects/project/tsconfig.json] -{"compilerOptions":{"module":"system","outFile":"/users/username/projects/project/out.js"}} +{ + "compilerOptions": { + "module": "system", + "outFile": "/users/username/projects/project/out.js" + } +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-detect-changes-in-non-root-files.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-detect-changes-in-non-root-files.js index c6ba2485e0360..43db29ff3e8ad 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-detect-changes-in-non-root-files.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-detect-changes-in-non-root-files.js @@ -5,7 +5,11 @@ Before request import {Foo} from "./moduleFile1"; export var y = 10; //// [/users/username/projects/project/tsconfig.json] -{"files":["/users/username/projects/project/file1Consumer1.ts"]} +{ + "files": [ + "/users/username/projects/project/file1Consumer1.ts" + ] +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-when---out-is-set.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-when---out-is-set.js index d24ed5084701c..c69c7ae055406 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-when---out-is-set.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-when---out-is-set.js @@ -5,7 +5,11 @@ Before request export let x = 1 //// [/users/username/projects/project/tsconfig.json] -{"compilerOptions":{"out":"/a/out.js"}} +{ + "compilerOptions": { + "out": "/a/out.js" + } +} //// [/a/lib/lib.d.ts] /// @@ -137,12 +141,12 @@ Info seq [hh:mm:ss:mss] event: "diagnostics": [ { "start": { - "line": 1, - "offset": 21 + "line": 3, + "offset": 5 }, "end": { - "line": 1, - "offset": 26 + "line": 3, + "offset": 10 }, "text": "Option 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '\"ignoreDeprecations\": \"5.0\"' to silence this error.\n Use 'outFile' instead.", "code": 5101, diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-when---outFile-is-set.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-when---outFile-is-set.js index c7675888dec07..cba03fffba554 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-when---outFile-is-set.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-when---outFile-is-set.js @@ -5,7 +5,11 @@ Before request export let x = 1 //// [/users/username/projects/project/tsconfig.json] -{"compilerOptions":{"outFile":"/a/out.js"}} +{ + "compilerOptions": { + "outFile": "/a/out.js" + } +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-when-both-options-are-not-set.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-when-both-options-are-not-set.js index b2be4e6051f22..aa9d66bd91da6 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-when-both-options-are-not-set.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-when-both-options-are-not-set.js @@ -5,7 +5,9 @@ Before request export let x = 1 //// [/users/username/projects/project/tsconfig.json] -{"compilerOptions":{}} +{ + "compilerOptions": {} +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-project-is-at-root-level.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-project-is-at-root-level.js index bf4a6f01b64de..891d768daee80 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-project-is-at-root-level.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-project-is-at-root-level.js @@ -21,7 +21,11 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/a/b/project/tsconfig.json] -{"compilerOptions":{"typeRoots":[]}} +{ + "compilerOptions": { + "typeRoots": [] + } +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-project-is-not-at-root-level.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-project-is-not-at-root-level.js index 228ef5015bb95..5d3b8f2fe3aad 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-project-is-not-at-root-level.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-project-is-not-at-root-level.js @@ -21,7 +21,11 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json] -{"compilerOptions":{"typeRoots":[]}} +{ + "compilerOptions": { + "typeRoots": [] + } +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-always-return-the-file-itself-if---isolatedModules-is-specified.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-always-return-the-file-itself-if---isolatedModules-is-specified.js index 9acaf3715e8c2..dfd9e6568cfb6 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-always-return-the-file-itself-if---isolatedModules-is-specified.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-always-return-the-file-itself-if---isolatedModules-is-specified.js @@ -5,7 +5,11 @@ Before request import {Foo} from "./moduleFile1"; export var y = 10; //// [/users/username/projects/project/tsconfig.json] -{"compilerOptions":{"isolatedModules":true}} +{ + "compilerOptions": { + "isolatedModules": true + } +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-always-return-the-file-itself-if---out-or---outFile-is-specified.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-always-return-the-file-itself-if---out-or---outFile-is-specified.js index 7f91944fc4c3a..983b4c002a97b 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-always-return-the-file-itself-if---out-or---outFile-is-specified.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-always-return-the-file-itself-if---out-or---outFile-is-specified.js @@ -5,7 +5,12 @@ Before request import {Foo} from "./moduleFile1"; export var y = 10; //// [/users/username/projects/project/tsconfig.json] -{"compilerOptions":{"module":"system","outFile":"/users/username/projects/project/out.js"}} +{ + "compilerOptions": { + "module": "system", + "outFile": "/users/username/projects/project/out.js" + } +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-detect-changes-in-non-root-files.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-detect-changes-in-non-root-files.js index 6c244c2344ecd..2cd45cfb9f194 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-detect-changes-in-non-root-files.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-detect-changes-in-non-root-files.js @@ -5,7 +5,11 @@ Before request import {Foo} from "./moduleFile1"; export var y = 10; //// [/users/username/projects/project/tsconfig.json] -{"files":["/users/username/projects/project/file1Consumer1.ts"]} +{ + "files": [ + "/users/username/projects/project/file1Consumer1.ts" + ] +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-when---out-is-set.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-when---out-is-set.js index beb35f6e5facf..9d86a7131183d 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-when---out-is-set.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-when---out-is-set.js @@ -5,7 +5,11 @@ Before request export let x = 1 //// [/users/username/projects/project/tsconfig.json] -{"compilerOptions":{"out":"/a/out.js"}} +{ + "compilerOptions": { + "out": "/a/out.js" + } +} //// [/a/lib/lib.d.ts] /// @@ -137,12 +141,12 @@ Info seq [hh:mm:ss:mss] event: "diagnostics": [ { "start": { - "line": 1, - "offset": 21 + "line": 3, + "offset": 5 }, "end": { - "line": 1, - "offset": 26 + "line": 3, + "offset": 10 }, "text": "Option 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '\"ignoreDeprecations\": \"5.0\"' to silence this error.\n Use 'outFile' instead.", "code": 5101, diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-when---outFile-is-set.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-when---outFile-is-set.js index d95ade5814fe5..4f303cc449ac2 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-when---outFile-is-set.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-when---outFile-is-set.js @@ -5,7 +5,11 @@ Before request export let x = 1 //// [/users/username/projects/project/tsconfig.json] -{"compilerOptions":{"outFile":"/a/out.js"}} +{ + "compilerOptions": { + "outFile": "/a/out.js" + } +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-when-both-options-are-not-set.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-when-both-options-are-not-set.js index 85bbfbc8722c0..b33aac91f664d 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-when-both-options-are-not-set.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-when-both-options-are-not-set.js @@ -5,7 +5,9 @@ Before request export let x = 1 //// [/users/username/projects/project/tsconfig.json] -{"compilerOptions":{}} +{ + "compilerOptions": {} +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/exportMapCache/caches-auto-imports-in-the-same-file.js b/tests/baselines/reference/tsserver/exportMapCache/caches-auto-imports-in-the-same-file.js index 524f6f6de1c0a..66ec75f4c51b9 100644 --- a/tests/baselines/reference/tsserver/exportMapCache/caches-auto-imports-in-the-same-file.js +++ b/tests/baselines/reference/tsserver/exportMapCache/caches-auto-imports-in-the-same-file.js @@ -17,7 +17,10 @@ declare module 'ambient' {} { "dependencies": { "mobx": "*" } } //// [/node_modules/mobx/package.json] -{ "name": "mobx", "version": "1.0.0" } +{ + "name": "mobx", + "version": "1.0.0" +} //// [/node_modules/mobx/index.d.ts] export declare function observable(): unknown; diff --git a/tests/baselines/reference/tsserver/exportMapCache/does-not-invalidate-the-cache-when-package.json-is-changed-inconsequentially.js b/tests/baselines/reference/tsserver/exportMapCache/does-not-invalidate-the-cache-when-package.json-is-changed-inconsequentially.js index e3aa1dd0da87e..bdae53e2e5973 100644 --- a/tests/baselines/reference/tsserver/exportMapCache/does-not-invalidate-the-cache-when-package.json-is-changed-inconsequentially.js +++ b/tests/baselines/reference/tsserver/exportMapCache/does-not-invalidate-the-cache-when-package.json-is-changed-inconsequentially.js @@ -17,7 +17,10 @@ declare module 'ambient' {} { "dependencies": { "mobx": "*" } } //// [/node_modules/mobx/package.json] -{ "name": "mobx", "version": "1.0.0" } +{ + "name": "mobx", + "version": "1.0.0" +} //// [/node_modules/mobx/index.d.ts] export declare function observable(): unknown; diff --git a/tests/baselines/reference/tsserver/exportMapCache/does-not-store-transient-symbols-through-program-updates.js b/tests/baselines/reference/tsserver/exportMapCache/does-not-store-transient-symbols-through-program-updates.js index 689d23545ff1d..d6c0884e54a22 100644 --- a/tests/baselines/reference/tsserver/exportMapCache/does-not-store-transient-symbols-through-program-updates.js +++ b/tests/baselines/reference/tsserver/exportMapCache/does-not-store-transient-symbols-through-program-updates.js @@ -17,7 +17,10 @@ declare module 'ambient' {} { "dependencies": { "mobx": "*" } } //// [/node_modules/mobx/package.json] -{ "name": "mobx", "version": "1.0.0" } +{ + "name": "mobx", + "version": "1.0.0" +} //// [/node_modules/mobx/index.d.ts] export declare function observable(): unknown; diff --git a/tests/baselines/reference/tsserver/exportMapCache/invalidates-the-cache-when-files-are-deleted.js b/tests/baselines/reference/tsserver/exportMapCache/invalidates-the-cache-when-files-are-deleted.js index 08105e4ddf3b8..d55572b09c750 100644 --- a/tests/baselines/reference/tsserver/exportMapCache/invalidates-the-cache-when-files-are-deleted.js +++ b/tests/baselines/reference/tsserver/exportMapCache/invalidates-the-cache-when-files-are-deleted.js @@ -17,7 +17,10 @@ declare module 'ambient' {} { "dependencies": { "mobx": "*" } } //// [/node_modules/mobx/package.json] -{ "name": "mobx", "version": "1.0.0" } +{ + "name": "mobx", + "version": "1.0.0" +} //// [/node_modules/mobx/index.d.ts] export declare function observable(): unknown; diff --git a/tests/baselines/reference/tsserver/exportMapCache/invalidates-the-cache-when-new-files-are-added.js b/tests/baselines/reference/tsserver/exportMapCache/invalidates-the-cache-when-new-files-are-added.js index f0b69645b2476..c1092034d9331 100644 --- a/tests/baselines/reference/tsserver/exportMapCache/invalidates-the-cache-when-new-files-are-added.js +++ b/tests/baselines/reference/tsserver/exportMapCache/invalidates-the-cache-when-new-files-are-added.js @@ -17,7 +17,10 @@ declare module 'ambient' {} { "dependencies": { "mobx": "*" } } //// [/node_modules/mobx/package.json] -{ "name": "mobx", "version": "1.0.0" } +{ + "name": "mobx", + "version": "1.0.0" +} //// [/node_modules/mobx/index.d.ts] export declare function observable(): unknown; diff --git a/tests/baselines/reference/tsserver/exportMapCache/invalidates-the-cache-when-package.json-change-results-in-AutoImportProvider-change.js b/tests/baselines/reference/tsserver/exportMapCache/invalidates-the-cache-when-package.json-change-results-in-AutoImportProvider-change.js index 519b0f4f46579..6222b5fbe67aa 100644 --- a/tests/baselines/reference/tsserver/exportMapCache/invalidates-the-cache-when-package.json-change-results-in-AutoImportProvider-change.js +++ b/tests/baselines/reference/tsserver/exportMapCache/invalidates-the-cache-when-package.json-change-results-in-AutoImportProvider-change.js @@ -17,7 +17,10 @@ declare module 'ambient' {} { "dependencies": { "mobx": "*" } } //// [/node_modules/mobx/package.json] -{ "name": "mobx", "version": "1.0.0" } +{ + "name": "mobx", + "version": "1.0.0" +} //// [/node_modules/mobx/index.d.ts] export declare function observable(): unknown; diff --git a/tests/baselines/reference/tsserver/externalProjects/can-handle-tsconfig-file-name-with-difference-casing-with-lazyConfiguredProjectsFromExternalProject.js b/tests/baselines/reference/tsserver/externalProjects/can-handle-tsconfig-file-name-with-difference-casing-with-lazyConfiguredProjectsFromExternalProject.js index 34768d2d5ebba..30cc10b6def96 100644 --- a/tests/baselines/reference/tsserver/externalProjects/can-handle-tsconfig-file-name-with-difference-casing-with-lazyConfiguredProjectsFromExternalProject.js +++ b/tests/baselines/reference/tsserver/externalProjects/can-handle-tsconfig-file-name-with-difference-casing-with-lazyConfiguredProjectsFromExternalProject.js @@ -5,7 +5,9 @@ Before request let x = 1 //// [/a/b/tsconfig.json] -{"include":[]} +{ + "include": [] +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/externalProjects/can-handle-tsconfig-file-name-with-difference-casing.js b/tests/baselines/reference/tsserver/externalProjects/can-handle-tsconfig-file-name-with-difference-casing.js index 9d20bdf916f25..748194922ba64 100644 --- a/tests/baselines/reference/tsserver/externalProjects/can-handle-tsconfig-file-name-with-difference-casing.js +++ b/tests/baselines/reference/tsserver/externalProjects/can-handle-tsconfig-file-name-with-difference-casing.js @@ -5,7 +5,9 @@ Before request let x = 1 //// [/a/b/tsconfig.json] -{"include":[]} +{ + "include": [] +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/externalProjects/correctly-handles-changes-in-lib-section-of-config-file.js b/tests/baselines/reference/tsserver/externalProjects/correctly-handles-changes-in-lib-section-of-config-file.js index 935d54f007008..7e9b0cd6d1279 100644 --- a/tests/baselines/reference/tsserver/externalProjects/correctly-handles-changes-in-lib-section-of-config-file.js +++ b/tests/baselines/reference/tsserver/externalProjects/correctly-handles-changes-in-lib-section-of-config-file.js @@ -11,7 +11,17 @@ declare class Promise {} var x: Promise; //// [/src/tsconfig.json] -{"compilerOptions":{"module":"commonjs","target":"es5","noImplicitAny":true,"sourceMap":false,"lib":["es5"]}} +{ + "compilerOptions": { + "module": "commonjs", + "target": "es5", + "noImplicitAny": true, + "sourceMap": false, + "lib": [ + "es5" + ] + } +} Info seq [hh:mm:ss:mss] Search path: /src @@ -65,7 +75,18 @@ Before running Timeout callback:: count: 2 1: /src/tsconfig.json 2: *ensureProjectForOpenFiles* //// [/src/tsconfig.json] -{"compilerOptions":{"module":"commonjs","target":"es5","noImplicitAny":true,"sourceMap":false,"lib":["es5","es2015.promise"]}} +{ + "compilerOptions": { + "module": "commonjs", + "target": "es5", + "noImplicitAny": true, + "sourceMap": false, + "lib": [ + "es5", + "es2015.promise" + ] + } +} FsWatches:: diff --git a/tests/baselines/reference/tsserver/externalProjects/external-project-that-included-config-files.js b/tests/baselines/reference/tsserver/externalProjects/external-project-that-included-config-files.js index 7cd9088f6ded4..39ac1ad2c036a 100644 --- a/tests/baselines/reference/tsserver/externalProjects/external-project-that-included-config-files.js +++ b/tests/baselines/reference/tsserver/externalProjects/external-project-that-included-config-files.js @@ -11,10 +11,20 @@ let y =1; let z =1; //// [/a/b/tsconfig.json] -{"compilerOptions":{},"files":["f1.ts"]} +{ + "compilerOptions": {}, + "files": [ + "f1.ts" + ] +} //// [/a/c/tsconfig.json] -{"compilerOptions":{},"files":["f2.ts"]} +{ + "compilerOptions": {}, + "files": [ + "f2.ts" + ] +} Info seq [hh:mm:ss:mss] Creating configuration project /a/b/tsconfig.json diff --git a/tests/baselines/reference/tsserver/externalProjects/external-project-with-included-config-file-opened-after-configured-project-and-then-closed.js b/tests/baselines/reference/tsserver/externalProjects/external-project-with-included-config-file-opened-after-configured-project-and-then-closed.js index 09fc1a03f41dc..003f32950bf02 100644 --- a/tests/baselines/reference/tsserver/externalProjects/external-project-with-included-config-file-opened-after-configured-project-and-then-closed.js +++ b/tests/baselines/reference/tsserver/externalProjects/external-project-with-included-config-file-opened-after-configured-project-and-then-closed.js @@ -21,7 +21,9 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/a/b/tsconfig.json] -{"compilerOptions":{}} +{ + "compilerOptions": {} +} Info seq [hh:mm:ss:mss] Search path: /a/b diff --git a/tests/baselines/reference/tsserver/externalProjects/external-project-with-included-config-file-opened-after-configured-project.js b/tests/baselines/reference/tsserver/externalProjects/external-project-with-included-config-file-opened-after-configured-project.js index 6fe178cc8b0a0..b1964eefba37b 100644 --- a/tests/baselines/reference/tsserver/externalProjects/external-project-with-included-config-file-opened-after-configured-project.js +++ b/tests/baselines/reference/tsserver/externalProjects/external-project-with-included-config-file-opened-after-configured-project.js @@ -5,7 +5,9 @@ Creating project service let x = 1 //// [/a/b/tsconfig.json] -{"compilerOptions":{}} +{ + "compilerOptions": {} +} Info seq [hh:mm:ss:mss] Search path: /a/b diff --git a/tests/baselines/reference/tsserver/externalProjects/should-handle-non-existing-directories-in-config-file.js b/tests/baselines/reference/tsserver/externalProjects/should-handle-non-existing-directories-in-config-file.js index 21751cae0866d..9b2714f24e19c 100644 --- a/tests/baselines/reference/tsserver/externalProjects/should-handle-non-existing-directories-in-config-file.js +++ b/tests/baselines/reference/tsserver/externalProjects/should-handle-non-existing-directories-in-config-file.js @@ -5,7 +5,13 @@ Creating project service let x = 1; //// [/a/tsconfig.json] -{"compilerOptions":{},"include":["src/**/*","notexistingfolder/*"]} +{ + "compilerOptions": {}, + "include": [ + "src/**/*", + "notexistingfolder/*" + ] +} Info seq [hh:mm:ss:mss] Search path: /a/src diff --git a/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/when-changing-module-name-with-different-casing.js b/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/when-changing-module-name-with-different-casing.js index 923cde1aa33c0..708ff679cd25c 100644 --- a/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/when-changing-module-name-with-different-casing.js +++ b/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/when-changing-module-name-with-different-casing.js @@ -8,7 +8,11 @@ export class logger { } import { logger } from "./Logger"; new logger(); //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"forceConsistentCasingInFileNames":true}} +{ + "compilerOptions": { + "forceConsistentCasingInFileNames": true + } +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/works-when-extends-is-specified-with-a-case-insensitive-file-system.js b/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/works-when-extends-is-specified-with-a-case-insensitive-file-system.js index 048a5cb72df1d..a2137719f93df 100644 --- a/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/works-when-extends-is-specified-with-a-case-insensitive-file-system.js +++ b/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/works-when-extends-is-specified-with-a-case-insensitive-file-system.js @@ -24,10 +24,25 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/Users/username/dev/project/tsconfig.json] -{"extends":"./tsconfig.all.json"} +{ + "extends": "./tsconfig.all.json" +} //// [/Users/username/dev/project/tsconfig.all.json] -{"compilerOptions":{"baseUrl":".","paths":{"file2":["./file2.js"]},"typeRoots":["./types"],"forceConsistentCasingInFileNames":true}} +{ + "compilerOptions": { + "baseUrl": ".", + "paths": { + "file2": [ + "./file2.js" + ] + }, + "typeRoots": [ + "./types" + ], + "forceConsistentCasingInFileNames": true + } +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/works-when-renaming-file-with-different-casing.js b/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/works-when-renaming-file-with-different-casing.js index 01e021a310804..1927502b52631 100644 --- a/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/works-when-renaming-file-with-different-casing.js +++ b/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/works-when-renaming-file-with-different-casing.js @@ -8,7 +8,11 @@ export class logger { } import { logger } from "./Logger"; new logger(); //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"forceConsistentCasingInFileNames":true}} +{ + "compilerOptions": { + "forceConsistentCasingInFileNames": true + } +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/formatSettings/works-when-extends-is-specified-with-a-case-insensitive-file-system.js b/tests/baselines/reference/tsserver/formatSettings/works-when-extends-is-specified-with-a-case-insensitive-file-system.js index 2363b9cf4e3ae..805d1e6ca436c 100644 --- a/tests/baselines/reference/tsserver/formatSettings/works-when-extends-is-specified-with-a-case-insensitive-file-system.js +++ b/tests/baselines/reference/tsserver/formatSettings/works-when-extends-is-specified-with-a-case-insensitive-file-system.js @@ -98,28 +98,28 @@ Info seq [hh:mm:ss:mss] response: After request FormatCodeOptions should be global:: /a/b/app.ts:: { - "indentSize": 4, - "tabSize": 4, - "newLineCharacter": "\n", - "convertTabsToSpaces": true, - "indentStyle": 2, - "insertSpaceAfterConstructor": false, - "insertSpaceAfterCommaDelimiter": true, - "insertSpaceAfterSemicolonInForStatements": true, - "insertSpaceBeforeAndAfterBinaryOperators": true, - "insertSpaceAfterKeywordsInControlFlowStatements": true, - "insertSpaceAfterFunctionKeywordForAnonymousFunctions": false, - "insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis": false, - "insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets": false, - "insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces": true, - "insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces": false, - "insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces": false, - "insertSpaceBeforeFunctionParenthesis": false, - "placeOpenBraceOnNewLineForFunctions": false, - "placeOpenBraceOnNewLineForControlBlocks": true, - "semicolons": "ignore", - "trimTrailingWhitespace": true, - "indentSwitchCase": true + "indentSize": 4, + "tabSize": 4, + "newLineCharacter": "\n", + "convertTabsToSpaces": true, + "indentStyle": 2, + "insertSpaceAfterConstructor": false, + "insertSpaceAfterCommaDelimiter": true, + "insertSpaceAfterSemicolonInForStatements": true, + "insertSpaceBeforeAndAfterBinaryOperators": true, + "insertSpaceAfterKeywordsInControlFlowStatements": true, + "insertSpaceAfterFunctionKeywordForAnonymousFunctions": false, + "insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis": false, + "insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets": false, + "insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces": true, + "insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces": false, + "insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces": false, + "insertSpaceBeforeFunctionParenthesis": false, + "placeOpenBraceOnNewLineForFunctions": false, + "placeOpenBraceOnNewLineForControlBlocks": true, + "semicolons": "ignore", + "trimTrailingWhitespace": true, + "indentSwitchCase": true } Before request @@ -175,28 +175,28 @@ Info seq [hh:mm:ss:mss] response: After request FormatCodeOptions should be per file:: /a/b/app.ts:: { - "indentSize": 4, - "tabSize": 4, - "newLineCharacter": "\n", - "convertTabsToSpaces": true, - "indentStyle": 2, - "insertSpaceAfterConstructor": false, - "insertSpaceAfterCommaDelimiter": false, - "insertSpaceAfterSemicolonInForStatements": true, - "insertSpaceBeforeAndAfterBinaryOperators": true, - "insertSpaceAfterKeywordsInControlFlowStatements": true, - "insertSpaceAfterFunctionKeywordForAnonymousFunctions": false, - "insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis": false, - "insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets": false, - "insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces": true, - "insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces": false, - "insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces": false, - "insertSpaceBeforeFunctionParenthesis": false, - "placeOpenBraceOnNewLineForFunctions": false, - "placeOpenBraceOnNewLineForControlBlocks": false, - "semicolons": "ignore", - "trimTrailingWhitespace": true, - "indentSwitchCase": true + "indentSize": 4, + "tabSize": 4, + "newLineCharacter": "\n", + "convertTabsToSpaces": true, + "indentStyle": 2, + "insertSpaceAfterConstructor": false, + "insertSpaceAfterCommaDelimiter": false, + "insertSpaceAfterSemicolonInForStatements": true, + "insertSpaceBeforeAndAfterBinaryOperators": true, + "insertSpaceAfterKeywordsInControlFlowStatements": true, + "insertSpaceAfterFunctionKeywordForAnonymousFunctions": false, + "insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis": false, + "insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets": false, + "insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces": true, + "insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces": false, + "insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces": false, + "insertSpaceBeforeFunctionParenthesis": false, + "placeOpenBraceOnNewLineForFunctions": false, + "placeOpenBraceOnNewLineForControlBlocks": false, + "semicolons": "ignore", + "trimTrailingWhitespace": true, + "indentSwitchCase": true } Before request @@ -251,26 +251,26 @@ Info seq [hh:mm:ss:mss] response: After request FormatCodeOptions should be per file:: /a/b/app.ts:: { - "indentSize": 4, - "tabSize": 4, - "newLineCharacter": "\n", - "convertTabsToSpaces": true, - "indentStyle": 2, - "insertSpaceAfterConstructor": false, - "insertSpaceAfterCommaDelimiter": false, - "insertSpaceAfterSemicolonInForStatements": true, - "insertSpaceBeforeAndAfterBinaryOperators": true, - "insertSpaceAfterKeywordsInControlFlowStatements": true, - "insertSpaceAfterFunctionKeywordForAnonymousFunctions": false, - "insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis": false, - "insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets": false, - "insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces": true, - "insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces": false, - "insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces": false, - "insertSpaceBeforeFunctionParenthesis": false, - "placeOpenBraceOnNewLineForFunctions": false, - "placeOpenBraceOnNewLineForControlBlocks": false, - "semicolons": "ignore", - "trimTrailingWhitespace": true, - "indentSwitchCase": true + "indentSize": 4, + "tabSize": 4, + "newLineCharacter": "\n", + "convertTabsToSpaces": true, + "indentStyle": 2, + "insertSpaceAfterConstructor": false, + "insertSpaceAfterCommaDelimiter": false, + "insertSpaceAfterSemicolonInForStatements": true, + "insertSpaceBeforeAndAfterBinaryOperators": true, + "insertSpaceAfterKeywordsInControlFlowStatements": true, + "insertSpaceAfterFunctionKeywordForAnonymousFunctions": false, + "insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis": false, + "insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets": false, + "insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces": true, + "insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces": false, + "insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces": false, + "insertSpaceBeforeFunctionParenthesis": false, + "placeOpenBraceOnNewLineForFunctions": false, + "placeOpenBraceOnNewLineForControlBlocks": false, + "semicolons": "ignore", + "trimTrailingWhitespace": true, + "indentSwitchCase": true } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/getEditsForFileRename/works-with-file-moved-to-inferred-project.js b/tests/baselines/reference/tsserver/getEditsForFileRename/works-with-file-moved-to-inferred-project.js index a494f0ed30af5..6b32f34a5db23 100644 --- a/tests/baselines/reference/tsserver/getEditsForFileRename/works-with-file-moved-to-inferred-project.js +++ b/tests/baselines/reference/tsserver/getEditsForFileRename/works-with-file-moved-to-inferred-project.js @@ -8,7 +8,12 @@ import {} from "./b"; export {}; //// [/tsconfig.json] -{"files":["./a.ts","./b.ts"]} +{ + "files": [ + "./a.ts", + "./b.ts" + ] +} Info seq [hh:mm:ss:mss] request: @@ -133,12 +138,12 @@ Info seq [hh:mm:ss:mss] response: "textChanges": [ { "start": { - "line": 1, - "offset": 21 + "line": 4, + "offset": 6 }, "end": { - "line": 1, - "offset": 27 + "line": 4, + "offset": 12 }, "newText": "c.ts" } diff --git a/tests/baselines/reference/tsserver/getEditsForFileRename/works-with-multiple-projects.js b/tests/baselines/reference/tsserver/getEditsForFileRename/works-with-multiple-projects.js index b803c3c6e070b..098d02252996e 100644 --- a/tests/baselines/reference/tsserver/getEditsForFileRename/works-with-multiple-projects.js +++ b/tests/baselines/reference/tsserver/getEditsForFileRename/works-with-multiple-projects.js @@ -8,7 +8,12 @@ import { x } from "./old"; export const x = 0; //// [/a/tsconfig.json] -{"files":["./old.ts","./user.ts"]} +{ + "files": [ + "./old.ts", + "./user.ts" + ] +} //// [/b/user.ts] import { x } from "../a/old"; @@ -174,12 +179,12 @@ Info seq [hh:mm:ss:mss] response: "textChanges": [ { "start": { - "line": 1, - "offset": 12 + "line": 3, + "offset": 6 }, "end": { - "line": 1, - "offset": 20 + "line": 3, + "offset": 14 }, "newText": "new.ts" } diff --git a/tests/baselines/reference/tsserver/getMoveToRefactoringFileSuggestions/skips-lib.d.ts-files.js b/tests/baselines/reference/tsserver/getMoveToRefactoringFileSuggestions/skips-lib.d.ts-files.js index 71a12d6f0d41a..29f5f7bf68f95 100644 --- a/tests/baselines/reference/tsserver/getMoveToRefactoringFileSuggestions/skips-lib.d.ts-files.js +++ b/tests/baselines/reference/tsserver/getMoveToRefactoringFileSuggestions/skips-lib.d.ts-files.js @@ -14,7 +14,14 @@ class C {} //// [/tsconfig.json] -{"files":["./file1.d.ts","./a/lib.d.ts","./a/file3.d.ts","/a/lib.es6.d.ts"]} +{ + "files": [ + "./file1.d.ts", + "./a/lib.d.ts", + "./a/file3.d.ts", + "/a/lib.es6.d.ts" + ] +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/getMoveToRefactoringFileSuggestions/suggests-only-.js-file-for-a-.js-filepath.js b/tests/baselines/reference/tsserver/getMoveToRefactoringFileSuggestions/suggests-only-.js-file-for-a-.js-filepath.js index 3655214ca850d..44c30aeb0cd24 100644 --- a/tests/baselines/reference/tsserver/getMoveToRefactoringFileSuggestions/suggests-only-.js-file-for-a-.js-filepath.js +++ b/tests/baselines/reference/tsserver/getMoveToRefactoringFileSuggestions/suggests-only-.js-file-for-a-.js-filepath.js @@ -17,7 +17,15 @@ class C {} //// [/tsconfig.json] -{"files":["./file1.js","./file2.js","./file3.mts","./file4.ts","./file5.js"]} +{ + "files": [ + "./file1.js", + "./file2.js", + "./file3.mts", + "./file4.ts", + "./file5.js" + ] +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/getMoveToRefactoringFileSuggestions/suggests-only-.ts-file-for-a-.ts-filepath.js b/tests/baselines/reference/tsserver/getMoveToRefactoringFileSuggestions/suggests-only-.ts-file-for-a-.ts-filepath.js index 9e157c24677ba..d06af40b1f52e 100644 --- a/tests/baselines/reference/tsserver/getMoveToRefactoringFileSuggestions/suggests-only-.ts-file-for-a-.ts-filepath.js +++ b/tests/baselines/reference/tsserver/getMoveToRefactoringFileSuggestions/suggests-only-.ts-file-for-a-.ts-filepath.js @@ -26,7 +26,17 @@ interface ka { //// [/tsconfig.json] -{"files":["./file1.ts","./file2.tsx","./file3.mts","./file4.cts","./file5.js","./file6.d.ts","./file7.ts"]} +{ + "files": [ + "./file1.ts", + "./file2.tsx", + "./file3.mts", + "./file4.cts", + "./file5.js", + "./file6.d.ts", + "./file7.ts" + ] +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/inferredProjects/inferred-projects-per-project-root-with-case-insensitive-system.js b/tests/baselines/reference/tsserver/inferredProjects/inferred-projects-per-project-root-with-case-insensitive-system.js index fd2c233ca1089..5b2ebb17ed2e5 100644 --- a/tests/baselines/reference/tsserver/inferredProjects/inferred-projects-per-project-root-with-case-insensitive-system.js +++ b/tests/baselines/reference/tsserver/inferredProjects/inferred-projects-per-project-root-with-case-insensitive-system.js @@ -104,7 +104,7 @@ TI:: typing installer creation complete //// [/a/data/node_modules/types-registry/index.json] { - "entries": {} + "entries": {} } diff --git a/tests/baselines/reference/tsserver/inferredProjects/inferred-projects-per-project-root-with-case-sensitive-system.js b/tests/baselines/reference/tsserver/inferredProjects/inferred-projects-per-project-root-with-case-sensitive-system.js index 129da6972a8e5..f214faafc6258 100644 --- a/tests/baselines/reference/tsserver/inferredProjects/inferred-projects-per-project-root-with-case-sensitive-system.js +++ b/tests/baselines/reference/tsserver/inferredProjects/inferred-projects-per-project-root-with-case-sensitive-system.js @@ -104,7 +104,7 @@ TI:: typing installer creation complete //// [/a/data/node_modules/types-registry/index.json] { - "entries": {} + "entries": {} } diff --git a/tests/baselines/reference/tsserver/inferredProjects/inferred-projects-per-project-root.js b/tests/baselines/reference/tsserver/inferredProjects/inferred-projects-per-project-root.js index bdf055bd1e272..271b95e7a120e 100644 --- a/tests/baselines/reference/tsserver/inferredProjects/inferred-projects-per-project-root.js +++ b/tests/baselines/reference/tsserver/inferredProjects/inferred-projects-per-project-root.js @@ -104,7 +104,7 @@ TI:: typing installer creation complete //// [/a/data/node_modules/types-registry/index.json] { - "entries": {} + "entries": {} } diff --git a/tests/baselines/reference/tsserver/inferredProjects/regression-test---should-infer-typeAcquisition-for-inferred-projects-when-set-undefined.js b/tests/baselines/reference/tsserver/inferredProjects/regression-test---should-infer-typeAcquisition-for-inferred-projects-when-set-undefined.js index 70ac4dc18b8f7..c1ad06d23ef95 100644 --- a/tests/baselines/reference/tsserver/inferredProjects/regression-test---should-infer-typeAcquisition-for-inferred-projects-when-set-undefined.js +++ b/tests/baselines/reference/tsserver/inferredProjects/regression-test---should-infer-typeAcquisition-for-inferred-projects-when-set-undefined.js @@ -28,7 +28,7 @@ Info seq [hh:mm:ss:mss] FileName: /a/file1.js ProjectRootPath: undefined Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* typeAcquisition : setting to undefined typeAcquisition should be inferred for inferred projects: { - "enable": true, - "include": [], - "exclude": [] + "enable": true, + "include": [], + "exclude": [] } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/inferredProjects/should-still-retain-configured-project-created-while-opening-the-file.js b/tests/baselines/reference/tsserver/inferredProjects/should-still-retain-configured-project-created-while-opening-the-file.js index d0c14f3c618f0..eca010dc52de1 100644 --- a/tests/baselines/reference/tsserver/inferredProjects/should-still-retain-configured-project-created-while-opening-the-file.js +++ b/tests/baselines/reference/tsserver/inferredProjects/should-still-retain-configured-project-created-while-opening-the-file.js @@ -126,7 +126,7 @@ TI:: typing installer creation complete //// [/a/data/node_modules/types-registry/index.json] { - "entries": {} + "entries": {} } diff --git a/tests/baselines/reference/tsserver/inferredProjects/should-support-files-without-extensions.js b/tests/baselines/reference/tsserver/inferredProjects/should-support-files-without-extensions.js index cdd0edb84e85d..49ca2cf32b3a7 100644 --- a/tests/baselines/reference/tsserver/inferredProjects/should-support-files-without-extensions.js +++ b/tests/baselines/reference/tsserver/inferredProjects/should-support-files-without-extensions.js @@ -71,7 +71,7 @@ TI:: typing installer creation complete //// [/a/data/node_modules/types-registry/index.json] { - "entries": {} + "entries": {} } diff --git a/tests/baselines/reference/tsserver/inferredProjects/when-existing-inferred-project-has-no-root-files.js b/tests/baselines/reference/tsserver/inferredProjects/when-existing-inferred-project-has-no-root-files.js index 2bc19b8c564bd..1498c7749ce61 100644 --- a/tests/baselines/reference/tsserver/inferredProjects/when-existing-inferred-project-has-no-root-files.js +++ b/tests/baselines/reference/tsserver/inferredProjects/when-existing-inferred-project-has-no-root-files.js @@ -17,7 +17,10 @@ export const y = 10; //// [/user/username/projects/myproject/node_modules/module3/package.json] -{"name":"module3","version":"1.0.0"} +{ + "name": "module3", + "version": "1.0.0" +} //// [/user/username/projects/myproject/node_modules/module3/index.d.ts] export const a = 10; @@ -253,7 +256,7 @@ TI:: typing installer creation complete //// [/a/data/node_modules/types-registry/index.json] { - "entries": {} + "entries": {} } diff --git a/tests/baselines/reference/tsserver/libraryResolution/with-config-with-redirection.js b/tests/baselines/reference/tsserver/libraryResolution/with-config-with-redirection.js index ae8695d5f849f..ccec042023687 100644 --- a/tests/baselines/reference/tsserver/libraryResolution/with-config-with-redirection.js +++ b/tests/baselines/reference/tsserver/libraryResolution/with-config-with-redirection.js @@ -20,7 +20,19 @@ export const x = "type1"; //// [/home/src/projects/project1/tsconfig.json] -{"compilerOptions":{"composite":true,"typeRoots":["./typeroot1"],"lib":["es5","dom"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "typeRoots": [ + "./typeroot1" + ], + "lib": [ + "es5", + "dom" + ], + "traceResolution": true + } +} //// [/home/src/projects/project1/typeroot1/sometype/index.d.ts] export type TheNum = "type1"; @@ -32,7 +44,16 @@ export const y = 10; export const y = 10 //// [/home/src/projects/project2/tsconfig.json] -{"compilerOptions":{"composite":true,"lib":["es5","dom"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "lib": [ + "es5", + "dom" + ], + "traceResolution": true + } +} //// [/home/src/projects/project3/utils.d.ts] export const y = 10; @@ -41,7 +62,16 @@ export const y = 10; export const z = 10 //// [/home/src/projects/project3/tsconfig.json] -{"compilerOptions":{"composite":true,"lib":["es5","dom"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "lib": [ + "es5", + "dom" + ], + "traceResolution": true + } +} //// [/home/src/projects/project4/utils.d.ts] export const y = 10; @@ -50,7 +80,17 @@ export const y = 10; export const z = 10 //// [/home/src/projects/project4/tsconfig.json] -{"compilerOptions":{"composite":true,"lib":["esnext","dom","webworker"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "lib": [ + "esnext", + "dom", + "webworker" + ], + "traceResolution": true + } +} //// [/home/src/lib/lib.es5.d.ts] /// @@ -737,7 +777,20 @@ Before running Timeout callback:: count: 2 13: /home/src/projects/project1/tsconfig.json 14: *ensureProjectForOpenFiles* //// [/home/src/projects/project1/tsconfig.json] -{"compilerOptions":{"composite":true,"typeRoots":["./typeroot1","./typeroot2"],"lib":["es5","dom"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "typeRoots": [ + "./typeroot1", + "./typeroot2" + ], + "lib": [ + "es5", + "dom" + ], + "traceResolution": true + } +} Info seq [hh:mm:ss:mss] Running: /home/src/projects/project1/tsconfig.json @@ -855,7 +908,19 @@ Before running Timeout callback:: count: 3 18: /home/src/projects/project1/tsconfig.json 19: *ensureProjectForOpenFiles* //// [/home/src/projects/project1/tsconfig.json] -{"compilerOptions":{"composite":true,"typeRoots":["./typeroot1"],"lib":["es5","dom"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "typeRoots": [ + "./typeroot1" + ], + "lib": [ + "es5", + "dom" + ], + "traceResolution": true + } +} //// [/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts] deleted diff --git a/tests/baselines/reference/tsserver/libraryResolution/with-config.js b/tests/baselines/reference/tsserver/libraryResolution/with-config.js index 7df3226f097cd..764d094fb73ca 100644 --- a/tests/baselines/reference/tsserver/libraryResolution/with-config.js +++ b/tests/baselines/reference/tsserver/libraryResolution/with-config.js @@ -20,7 +20,19 @@ export const x = "type1"; //// [/home/src/projects/project1/tsconfig.json] -{"compilerOptions":{"composite":true,"typeRoots":["./typeroot1"],"lib":["es5","dom"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "typeRoots": [ + "./typeroot1" + ], + "lib": [ + "es5", + "dom" + ], + "traceResolution": true + } +} //// [/home/src/projects/project1/typeroot1/sometype/index.d.ts] export type TheNum = "type1"; @@ -32,7 +44,16 @@ export const y = 10; export const y = 10 //// [/home/src/projects/project2/tsconfig.json] -{"compilerOptions":{"composite":true,"lib":["es5","dom"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "lib": [ + "es5", + "dom" + ], + "traceResolution": true + } +} //// [/home/src/projects/project3/utils.d.ts] export const y = 10; @@ -41,7 +62,16 @@ export const y = 10; export const z = 10 //// [/home/src/projects/project3/tsconfig.json] -{"compilerOptions":{"composite":true,"lib":["es5","dom"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "lib": [ + "es5", + "dom" + ], + "traceResolution": true + } +} //// [/home/src/projects/project4/utils.d.ts] export const y = 10; @@ -50,7 +80,17 @@ export const y = 10; export const z = 10 //// [/home/src/projects/project4/tsconfig.json] -{"compilerOptions":{"composite":true,"lib":["esnext","dom","webworker"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "lib": [ + "esnext", + "dom", + "webworker" + ], + "traceResolution": true + } +} //// [/home/src/lib/lib.es5.d.ts] /// @@ -734,7 +774,20 @@ Before running Timeout callback:: count: 2 14: /home/src/projects/project1/tsconfig.json 15: *ensureProjectForOpenFiles* //// [/home/src/projects/project1/tsconfig.json] -{"compilerOptions":{"composite":true,"typeRoots":["./typeroot1","./typeroot2"],"lib":["es5","dom"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "typeRoots": [ + "./typeroot1", + "./typeroot2" + ], + "lib": [ + "es5", + "dom" + ], + "traceResolution": true + } +} Info seq [hh:mm:ss:mss] Running: /home/src/projects/project1/tsconfig.json @@ -854,7 +907,19 @@ Before running Timeout callback:: count: 3 17: *ensureProjectForOpenFiles* 18: /home/src/projects/project1/tsconfig.jsonFailedLookupInvalidation //// [/home/src/projects/project1/tsconfig.json] -{"compilerOptions":{"composite":true,"typeRoots":["./typeroot1"],"lib":["es5","dom"],"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "typeRoots": [ + "./typeroot1" + ], + "lib": [ + "es5", + "dom" + ], + "traceResolution": true + } +} //// [/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts] interface DOMInterface { } diff --git a/tests/baselines/reference/tsserver/maxNodeModuleJsDepth/handles-resolutions-when-currentNodeModulesDepth-changes-when-referencing-file-from-another-file.js b/tests/baselines/reference/tsserver/maxNodeModuleJsDepth/handles-resolutions-when-currentNodeModulesDepth-changes-when-referencing-file-from-another-file.js index 2aa87508308b9..00de9da8077b8 100644 --- a/tests/baselines/reference/tsserver/maxNodeModuleJsDepth/handles-resolutions-when-currentNodeModulesDepth-changes-when-referencing-file-from-another-file.js +++ b/tests/baselines/reference/tsserver/maxNodeModuleJsDepth/handles-resolutions-when-currentNodeModulesDepth-changes-when-referencing-file-from-another-file.js @@ -115,7 +115,7 @@ TI:: typing installer creation complete //// [/a/data/node_modules/types-registry/index.json] { - "entries": {} + "entries": {} } diff --git a/tests/baselines/reference/tsserver/maxNodeModuleJsDepth/should-be-set-to-2-if-the-project-has-js-root-files.js b/tests/baselines/reference/tsserver/maxNodeModuleJsDepth/should-be-set-to-2-if-the-project-has-js-root-files.js index 7bb5369517de3..93ea729df4c99 100644 --- a/tests/baselines/reference/tsserver/maxNodeModuleJsDepth/should-be-set-to-2-if-the-project-has-js-root-files.js +++ b/tests/baselines/reference/tsserver/maxNodeModuleJsDepth/should-be-set-to-2-if-the-project-has-js-root-files.js @@ -61,7 +61,7 @@ TI:: typing installer creation complete //// [/a/data/node_modules/types-registry/index.json] { - "entries": {} + "entries": {} } diff --git a/tests/baselines/reference/tsserver/metadataInResponse/can-pass-through-metadata-when-the-command-returns-array.js b/tests/baselines/reference/tsserver/metadataInResponse/can-pass-through-metadata-when-the-command-returns-array.js index b29c6ddba7e42..0b2baee5eb734 100644 --- a/tests/baselines/reference/tsserver/metadataInResponse/can-pass-through-metadata-when-the-command-returns-array.js +++ b/tests/baselines/reference/tsserver/metadataInResponse/can-pass-through-metadata-when-the-command-returns-array.js @@ -5,7 +5,15 @@ Before request class c { prop = "hello"; foo() { return this.prop; } } //// [/tsconfig.json] -{"compilerOptions":{"plugins":[{"name":"myplugin"}]}} +{ + "compilerOptions": { + "plugins": [ + { + "name": "myplugin" + } + ] + } +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/metadataInResponse/can-pass-through-metadata-when-the-command-returns-object.js b/tests/baselines/reference/tsserver/metadataInResponse/can-pass-through-metadata-when-the-command-returns-object.js index 0a76f7a08c53f..cc1c4e0ee1619 100644 --- a/tests/baselines/reference/tsserver/metadataInResponse/can-pass-through-metadata-when-the-command-returns-object.js +++ b/tests/baselines/reference/tsserver/metadataInResponse/can-pass-through-metadata-when-the-command-returns-object.js @@ -5,7 +5,15 @@ Before request class c { prop = "hello"; foo() { return this.prop; } } //// [/tsconfig.json] -{"compilerOptions":{"plugins":[{"name":"myplugin"}]}} +{ + "compilerOptions": { + "plugins": [ + { + "name": "myplugin" + } + ] + } +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/metadataInResponse/returns-undefined-correctly.js b/tests/baselines/reference/tsserver/metadataInResponse/returns-undefined-correctly.js index 701a8775305ab..3d55c53057942 100644 --- a/tests/baselines/reference/tsserver/metadataInResponse/returns-undefined-correctly.js +++ b/tests/baselines/reference/tsserver/metadataInResponse/returns-undefined-correctly.js @@ -5,7 +5,15 @@ Before request class c { prop = "hello"; foo() { const x = 0; } } //// [/tsconfig.json] -{"compilerOptions":{"plugins":[{"name":"myplugin"}]}} +{ + "compilerOptions": { + "plugins": [ + { + "name": "myplugin" + } + ] + } +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/moduleResolution/node10Result.js b/tests/baselines/reference/tsserver/moduleResolution/node10Result.js index 85187e38c2365..ac2ed1b8b71b3 100644 --- a/tests/baselines/reference/tsserver/moduleResolution/node10Result.js +++ b/tests/baselines/reference/tsserver/moduleResolution/node10Result.js @@ -3,14 +3,14 @@ Info seq [hh:mm:ss:mss] Provided types map file "/a/lib/typesMap.json" doesn't Before request //// [/home/src/projects/project/node_modules/@types/bar/package.json] { - "name": "@types/bar", - "version": "1.0.0", - "types": "index.d.ts", - "exports": { - ".": { - "require": "./index.d.ts" + "name": "@types/bar", + "version": "1.0.0", + "types": "index.d.ts", + "exports": { + ".": { + "require": "./index.d.ts" + } } - } } //// [/home/src/projects/project/node_modules/@types/bar/index.d.ts] @@ -18,15 +18,15 @@ export declare const bar: number; //// [/home/src/projects/project/node_modules/bar/package.json] { - "name": "bar", - "version": "1.0.0", - "main": "index.js", - "exports": { - ".": { - "import": "./index.mjs", - "require": "./index.js" + "name": "bar", + "version": "1.0.0", + "main": "index.js", + "exports": { + ".": { + "import": "./index.mjs", + "require": "./index.js" + } } - } } //// [/home/src/projects/project/node_modules/bar/index.js] @@ -37,16 +37,16 @@ export const bar = 1; //// [/home/src/projects/project/node_modules/foo/package.json] { - "name": "foo", - "version": "1.0.0", - "main": "index.js", - "types": "index.d.ts", - "exports": { - ".": { - "import": "./index.mjs", - "require": "./index.js" + "name": "foo", + "version": "1.0.0", + "main": "index.js", + "types": "index.d.ts", + "exports": { + ".": { + "import": "./index.mjs", + "require": "./index.js" + } } - } } //// [/home/src/projects/project/node_modules/foo/index.js] @@ -60,15 +60,15 @@ export declare const foo: number; //// [/home/src/projects/project/node_modules/@types/bar2/package.json] { - "name": "@types/bar2", - "version": "1.0.0", - "types": "index.d.ts", - "exports": { - ".": { - "types": "./index.d.ts", - "require": "./index.d.ts" + "name": "@types/bar2", + "version": "1.0.0", + "types": "index.d.ts", + "exports": { + ".": { + "types": "./index.d.ts", + "require": "./index.d.ts" + } } - } } //// [/home/src/projects/project/node_modules/@types/bar2/index.d.ts] @@ -76,15 +76,15 @@ export declare const bar2: number; //// [/home/src/projects/project/node_modules/bar2/package.json] { - "name": "bar2", - "version": "1.0.0", - "main": "index.js", - "exports": { - ".": { - "import": "./index.mjs", - "require": "./index.js" + "name": "bar2", + "version": "1.0.0", + "main": "index.js", + "exports": { + ".": { + "import": "./index.mjs", + "require": "./index.js" + } } - } } //// [/home/src/projects/project/node_modules/bar2/index.js] @@ -95,17 +95,17 @@ export const bar2 = 1; //// [/home/src/projects/project/node_modules/foo2/package.json] { - "name": "foo2", - "version": "1.0.0", - "main": "index.js", - "types": "index.d.ts", - "exports": { - ".": { - "types": "./index.d.ts", - "import": "./index.mjs", - "require": "./index.js" + "name": "foo2", + "version": "1.0.0", + "main": "index.js", + "types": "index.d.ts", + "exports": { + ".": { + "types": "./index.d.ts", + "import": "./index.mjs", + "require": "./index.js" + } } - } } //// [/home/src/projects/project/node_modules/foo2/index.js] @@ -125,7 +125,18 @@ import { bar2 } from "bar2"; //// [/home/src/projects/project/tsconfig.json] -{"compilerOptions":{"moduleResolution":"node16","traceResolution":true,"incremental":true,"strict":true,"types":[]},"files":["index.mts"]} +{ + "compilerOptions": { + "moduleResolution": "node16", + "traceResolution": true, + "incremental": true, + "strict": true, + "types": [] + }, + "files": [ + "index.mts" + ] +} //// [/a/lib/lib.d.ts] /// @@ -1535,15 +1546,15 @@ Before running Timeout callback:: count: 2 19: /home/src/projects/project/tsconfig.jsonFailedLookupInvalidation //// [/home/src/projects/project/node_modules/@types/bar/package.json] { - "name": "@types/bar", - "version": "1.0.0", - "types": "index.d.ts", - "exports": { - ".": { - "types": "./index.d.ts", - "require": "./index.d.ts" + "name": "@types/bar", + "version": "1.0.0", + "types": "index.d.ts", + "exports": { + ".": { + "types": "./index.d.ts", + "require": "./index.d.ts" + } } - } } @@ -1741,17 +1752,17 @@ Before running Timeout callback:: count: 2 23: /home/src/projects/project/tsconfig.jsonFailedLookupInvalidation //// [/home/src/projects/project/node_modules/foo/package.json] { - "name": "foo", - "version": "1.0.0", - "main": "index.js", - "types": "index.d.ts", - "exports": { - ".": { - "types": "./index.d.ts", - "import": "./index.mjs", - "require": "./index.js" + "name": "foo", + "version": "1.0.0", + "main": "index.js", + "types": "index.d.ts", + "exports": { + ".": { + "types": "./index.d.ts", + "import": "./index.mjs", + "require": "./index.js" + } } - } } @@ -1963,14 +1974,14 @@ Before running Timeout callback:: count: 2 27: /home/src/projects/project/tsconfig.jsonFailedLookupInvalidation //// [/home/src/projects/project/node_modules/@types/bar2/package.json] { - "name": "@types/bar2", - "version": "1.0.0", - "types": "index.d.ts", - "exports": { - ".": { - "require": "./index.d.ts" + "name": "@types/bar2", + "version": "1.0.0", + "types": "index.d.ts", + "exports": { + ".": { + "require": "./index.d.ts" + } } - } } @@ -2241,16 +2252,16 @@ Before running Timeout callback:: count: 2 31: /home/src/projects/project/tsconfig.jsonFailedLookupInvalidation //// [/home/src/projects/project/node_modules/foo2/package.json] { - "name": "foo2", - "version": "1.0.0", - "main": "index.js", - "types": "index.d.ts", - "exports": { - ".": { - "import": "./index.mjs", - "require": "./index.js" + "name": "foo2", + "version": "1.0.0", + "main": "index.js", + "types": "index.d.ts", + "exports": { + ".": { + "import": "./index.mjs", + "require": "./index.js" + } } - } } diff --git a/tests/baselines/reference/tsserver/moduleResolution/package-json-file-is-edited-when-package-json-with-type-module-exists.js b/tests/baselines/reference/tsserver/moduleResolution/package-json-file-is-edited-when-package-json-with-type-module-exists.js index 87ba4ca82000b..d5be29550fdb9 100644 --- a/tests/baselines/reference/tsserver/moduleResolution/package-json-file-is-edited-when-package-json-with-type-module-exists.js +++ b/tests/baselines/reference/tsserver/moduleResolution/package-json-file-is-edited-when-package-json-with-type-module-exists.js @@ -2,7 +2,14 @@ currentDirectory:: / useCaseSensitiveFileNames: false Info seq [hh:mm:ss:mss] Provided types map file "/a/lib/typesMap.json" doesn't exist Before request //// [/user/username/projects/myproject/src/tsconfig.json] -{"compilerOptions":{"target":"es2016","module":"Node16","outDir":"../out","traceResolution":true}} +{ + "compilerOptions": { + "target": "es2016", + "module": "Node16", + "outDir": "../out", + "traceResolution": true + } +} //// [/user/username/projects/myproject/src/fileA.ts] import { foo } from "./fileB.mjs"; @@ -15,7 +22,11 @@ export function foo() { //// [/user/username/projects/myproject/package.json] -{"name":"app","version":"1.0.0","type":"module"} +{ + "name": "app", + "version": "1.0.0", + "type": "module" +} //// [/a/lib/lib.es2016.full.d.ts] /// @@ -223,7 +234,10 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /user/userna Before running Timeout callback:: count: 1 1: /user/username/projects/myproject/src/tsconfig.jsonFailedLookupInvalidation //// [/user/username/projects/myproject/package.json] -{"name":"app","version":"1.0.0"} +{ + "name": "app", + "version": "1.0.0" +} Info seq [hh:mm:ss:mss] Running: /user/username/projects/myproject/src/tsconfig.jsonFailedLookupInvalidation @@ -394,7 +408,11 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /user/userna Before running Timeout callback:: count: 1 6: /user/username/projects/myproject/src/tsconfig.jsonFailedLookupInvalidation //// [/user/username/projects/myproject/package.json] -{"name":"app","version":"1.0.0","type":"module"} +{ + "name": "app", + "version": "1.0.0", + "type": "module" +} Info seq [hh:mm:ss:mss] Running: /user/username/projects/myproject/src/tsconfig.jsonFailedLookupInvalidation @@ -754,7 +772,10 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /user/userna Before running Timeout callback:: count: 1 16: /user/username/projects/myproject/src/tsconfig.jsonFailedLookupInvalidation //// [/user/username/projects/myproject/package.json] -{"name":"app","version":"1.0.0"} +{ + "name": "app", + "version": "1.0.0" +} Info seq [hh:mm:ss:mss] Running: /user/username/projects/myproject/src/tsconfig.jsonFailedLookupInvalidation diff --git a/tests/baselines/reference/tsserver/moduleResolution/package-json-file-is-edited.js b/tests/baselines/reference/tsserver/moduleResolution/package-json-file-is-edited.js index 95d5ebf94d4c7..5e6c498b0e1a2 100644 --- a/tests/baselines/reference/tsserver/moduleResolution/package-json-file-is-edited.js +++ b/tests/baselines/reference/tsserver/moduleResolution/package-json-file-is-edited.js @@ -2,7 +2,14 @@ currentDirectory:: / useCaseSensitiveFileNames: false Info seq [hh:mm:ss:mss] Provided types map file "/a/lib/typesMap.json" doesn't exist Before request //// [/user/username/projects/myproject/src/tsconfig.json] -{"compilerOptions":{"target":"es2016","module":"Node16","outDir":"../out","traceResolution":true}} +{ + "compilerOptions": { + "target": "es2016", + "module": "Node16", + "outDir": "../out", + "traceResolution": true + } +} //// [/user/username/projects/myproject/src/fileA.ts] import { foo } from "./fileB.mjs"; @@ -15,7 +22,10 @@ export function foo() { //// [/user/username/projects/myproject/package.json] -{"name":"app","version":"1.0.0"} +{ + "name": "app", + "version": "1.0.0" +} //// [/a/lib/lib.es2016.full.d.ts] /// @@ -223,7 +233,11 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /user/userna Before running Timeout callback:: count: 1 1: /user/username/projects/myproject/src/tsconfig.jsonFailedLookupInvalidation //// [/user/username/projects/myproject/package.json] -{"name":"app","version":"1.0.0","type":"module"} +{ + "name": "app", + "version": "1.0.0", + "type": "module" +} Info seq [hh:mm:ss:mss] Running: /user/username/projects/myproject/src/tsconfig.jsonFailedLookupInvalidation @@ -380,7 +394,10 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /user/userna Before running Timeout callback:: count: 1 6: /user/username/projects/myproject/src/tsconfig.jsonFailedLookupInvalidation //// [/user/username/projects/myproject/package.json] -{"name":"app","version":"1.0.0"} +{ + "name": "app", + "version": "1.0.0" +} Info seq [hh:mm:ss:mss] Running: /user/username/projects/myproject/src/tsconfig.jsonFailedLookupInvalidation @@ -748,7 +765,11 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /user/userna Before running Timeout callback:: count: 1 16: /user/username/projects/myproject/src/tsconfig.jsonFailedLookupInvalidation //// [/user/username/projects/myproject/package.json] -{"name":"app","version":"1.0.0","type":"module"} +{ + "name": "app", + "version": "1.0.0", + "type": "module" +} Info seq [hh:mm:ss:mss] Running: /user/username/projects/myproject/src/tsconfig.jsonFailedLookupInvalidation diff --git a/tests/baselines/reference/tsserver/moduleResolution/using-referenced-project-built.js b/tests/baselines/reference/tsserver/moduleResolution/using-referenced-project-built.js index 20e6cc559d6a2..2adee6dfeace1 100644 --- a/tests/baselines/reference/tsserver/moduleResolution/using-referenced-project-built.js +++ b/tests/baselines/reference/tsserver/moduleResolution/using-referenced-project-built.js @@ -3,22 +3,43 @@ Info seq [hh:mm:ss:mss] Provided types map file "/a/lib/typesMap.json" doesn't Before request //// [/home/src/projects/project/packages/package-a/package.json] { - "name": "package-a", - "version": "1.0.0", - "type": "module", - "main": "build/index.js", - "exports": { - ".": "./build/index.js", - "./package.json": "./package.json", - "./*": [ - "./build/*/index.js", - "./build/*.js" - ] - } + "name": "package-a", + "version": "1.0.0", + "type": "module", + "main": "build/index.js", + "exports": { + ".": "./build/index.js", + "./package.json": "./package.json", + "./*": [ + "./build/*/index.js", + "./build/*.js" + ] + } } //// [/home/src/projects/project/packages/package-a/tsconfig.json] -{"compilerOptions":{"allowSyntheticDefaultImports":true,"baseUrl":"./","composite":true,"declarationMap":true,"esModuleInterop":true,"lib":["es2021"],"module":"esnext","moduleResolution":"bundler","outDir":"build","rootDir":"./src","target":"ES2021","traceResolution":true,"tsBuildInfoFile":"./build/tsconfig.tsbuildinfo"},"include":["./src/**/*.ts"]} +{ + "compilerOptions": { + "allowSyntheticDefaultImports": true, + "baseUrl": "./", + "composite": true, + "declarationMap": true, + "esModuleInterop": true, + "lib": [ + "es2021" + ], + "module": "esnext", + "moduleResolution": "bundler", + "outDir": "build", + "rootDir": "./src", + "target": "ES2021", + "traceResolution": true, + "tsBuildInfoFile": "./build/tsconfig.tsbuildinfo" + }, + "include": [ + "./src/**/*.ts" + ] +} //// [/home/src/projects/project/packages/package-a/src/index.ts] export * from "./subfolder"; @@ -28,22 +49,48 @@ export const FOO = "bar"; //// [/home/src/projects/project/packages/package-b/package.json] { - "name": "package-b", - "version": "1.0.0", - "type": "module", - "main": "build/index.js", - "exports": { - ".": "./build/index.js", - "./package.json": "./package.json", - "./*": [ - "./build/*/index.js", - "./build/*.js" - ] - } + "name": "package-b", + "version": "1.0.0", + "type": "module", + "main": "build/index.js", + "exports": { + ".": "./build/index.js", + "./package.json": "./package.json", + "./*": [ + "./build/*/index.js", + "./build/*.js" + ] + } } //// [/home/src/projects/project/packages/package-b/tsconfig.json] -{"compilerOptions":{"allowSyntheticDefaultImports":true,"baseUrl":"./","composite":true,"declarationMap":true,"esModuleInterop":true,"lib":["es2021"],"module":"esnext","moduleResolution":"bundler","outDir":"build","rootDir":"./src","target":"ES2021","traceResolution":true,"tsBuildInfoFile":"./build/tsconfig.tsbuildinfo"},"include":["./src/**/*.ts"],"references":[{"path":"../package-a"}]} +{ + "compilerOptions": { + "allowSyntheticDefaultImports": true, + "baseUrl": "./", + "composite": true, + "declarationMap": true, + "esModuleInterop": true, + "lib": [ + "es2021" + ], + "module": "esnext", + "moduleResolution": "bundler", + "outDir": "build", + "rootDir": "./src", + "target": "ES2021", + "traceResolution": true, + "tsBuildInfoFile": "./build/tsconfig.tsbuildinfo" + }, + "include": [ + "./src/**/*.ts" + ], + "references": [ + { + "path": "../package-a" + } + ] +} //// [/home/src/projects/project/packages/package-b/src/index.ts] import { FOO } from "package-a"; diff --git a/tests/baselines/reference/tsserver/moduleResolution/using-referenced-project.js b/tests/baselines/reference/tsserver/moduleResolution/using-referenced-project.js index 1518a6659d019..9acfd28650199 100644 --- a/tests/baselines/reference/tsserver/moduleResolution/using-referenced-project.js +++ b/tests/baselines/reference/tsserver/moduleResolution/using-referenced-project.js @@ -3,22 +3,43 @@ Info seq [hh:mm:ss:mss] Provided types map file "/a/lib/typesMap.json" doesn't Before request //// [/home/src/projects/project/packages/package-a/package.json] { - "name": "package-a", - "version": "1.0.0", - "type": "module", - "main": "build/index.js", - "exports": { - ".": "./build/index.js", - "./package.json": "./package.json", - "./*": [ - "./build/*/index.js", - "./build/*.js" - ] - } + "name": "package-a", + "version": "1.0.0", + "type": "module", + "main": "build/index.js", + "exports": { + ".": "./build/index.js", + "./package.json": "./package.json", + "./*": [ + "./build/*/index.js", + "./build/*.js" + ] + } } //// [/home/src/projects/project/packages/package-a/tsconfig.json] -{"compilerOptions":{"allowSyntheticDefaultImports":true,"baseUrl":"./","composite":true,"declarationMap":true,"esModuleInterop":true,"lib":["es2021"],"module":"esnext","moduleResolution":"bundler","outDir":"build","rootDir":"./src","target":"ES2021","traceResolution":true,"tsBuildInfoFile":"./build/tsconfig.tsbuildinfo"},"include":["./src/**/*.ts"]} +{ + "compilerOptions": { + "allowSyntheticDefaultImports": true, + "baseUrl": "./", + "composite": true, + "declarationMap": true, + "esModuleInterop": true, + "lib": [ + "es2021" + ], + "module": "esnext", + "moduleResolution": "bundler", + "outDir": "build", + "rootDir": "./src", + "target": "ES2021", + "traceResolution": true, + "tsBuildInfoFile": "./build/tsconfig.tsbuildinfo" + }, + "include": [ + "./src/**/*.ts" + ] +} //// [/home/src/projects/project/packages/package-a/src/index.ts] export * from "./subfolder"; @@ -28,22 +49,48 @@ export const FOO = "bar"; //// [/home/src/projects/project/packages/package-b/package.json] { - "name": "package-b", - "version": "1.0.0", - "type": "module", - "main": "build/index.js", - "exports": { - ".": "./build/index.js", - "./package.json": "./package.json", - "./*": [ - "./build/*/index.js", - "./build/*.js" - ] - } + "name": "package-b", + "version": "1.0.0", + "type": "module", + "main": "build/index.js", + "exports": { + ".": "./build/index.js", + "./package.json": "./package.json", + "./*": [ + "./build/*/index.js", + "./build/*.js" + ] + } } //// [/home/src/projects/project/packages/package-b/tsconfig.json] -{"compilerOptions":{"allowSyntheticDefaultImports":true,"baseUrl":"./","composite":true,"declarationMap":true,"esModuleInterop":true,"lib":["es2021"],"module":"esnext","moduleResolution":"bundler","outDir":"build","rootDir":"./src","target":"ES2021","traceResolution":true,"tsBuildInfoFile":"./build/tsconfig.tsbuildinfo"},"include":["./src/**/*.ts"],"references":[{"path":"../package-a"}]} +{ + "compilerOptions": { + "allowSyntheticDefaultImports": true, + "baseUrl": "./", + "composite": true, + "declarationMap": true, + "esModuleInterop": true, + "lib": [ + "es2021" + ], + "module": "esnext", + "moduleResolution": "bundler", + "outDir": "build", + "rootDir": "./src", + "target": "ES2021", + "traceResolution": true, + "tsBuildInfoFile": "./build/tsconfig.tsbuildinfo" + }, + "include": [ + "./src/**/*.ts" + ], + "references": [ + { + "path": "../package-a" + } + ] +} //// [/home/src/projects/project/packages/package-b/src/index.ts] import { FOO } from "package-a"; diff --git a/tests/baselines/reference/tsserver/moduleSpecifierCache/caches-importability-within-a-file.js b/tests/baselines/reference/tsserver/moduleSpecifierCache/caches-importability-within-a-file.js index 9564f346114cf..dcdc9e9821a5a 100644 --- a/tests/baselines/reference/tsserver/moduleSpecifierCache/caches-importability-within-a-file.js +++ b/tests/baselines/reference/tsserver/moduleSpecifierCache/caches-importability-within-a-file.js @@ -21,7 +21,10 @@ declare module 'ambient' {} { "dependencies": { "mobx": "*" } } //// [/node_modules/mobx/package.json] -{ "name": "mobx", "version": "1.0.0" } +{ + "name": "mobx", + "version": "1.0.0" +} //// [/node_modules/mobx/index.d.ts] export declare function observable(): unknown; diff --git a/tests/baselines/reference/tsserver/moduleSpecifierCache/caches-module-specifiers-within-a-file.js b/tests/baselines/reference/tsserver/moduleSpecifierCache/caches-module-specifiers-within-a-file.js index a30e8b2e6a59d..d345eacb9f713 100644 --- a/tests/baselines/reference/tsserver/moduleSpecifierCache/caches-module-specifiers-within-a-file.js +++ b/tests/baselines/reference/tsserver/moduleSpecifierCache/caches-module-specifiers-within-a-file.js @@ -21,7 +21,10 @@ declare module 'ambient' {} { "dependencies": { "mobx": "*" } } //// [/node_modules/mobx/package.json] -{ "name": "mobx", "version": "1.0.0" } +{ + "name": "mobx", + "version": "1.0.0" +} //// [/node_modules/mobx/index.d.ts] export declare function observable(): unknown; @@ -858,15 +861,15 @@ Info seq [hh:mm:ss:mss] response: After request Info seq [hh:mm:ss:mss] mobxCache: { - "modulePaths": [ - { - "path": "/node_modules/mobx/index.d.ts", - "isRedirect": false, - "isInNodeModules": true - } - ], - "moduleSpecifiers": [ - "mobx" - ], - "isBlockedByPackageJsonDependencies": false + "modulePaths": [ + { + "path": "/node_modules/mobx/index.d.ts", + "isRedirect": false, + "isInNodeModules": true + } + ], + "moduleSpecifiers": [ + "mobx" + ], + "isBlockedByPackageJsonDependencies": false } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/moduleSpecifierCache/does-not-invalidate-the-cache-when-new-files-are-added.js b/tests/baselines/reference/tsserver/moduleSpecifierCache/does-not-invalidate-the-cache-when-new-files-are-added.js index 42035841bcf64..8d48c91ae38e1 100644 --- a/tests/baselines/reference/tsserver/moduleSpecifierCache/does-not-invalidate-the-cache-when-new-files-are-added.js +++ b/tests/baselines/reference/tsserver/moduleSpecifierCache/does-not-invalidate-the-cache-when-new-files-are-added.js @@ -21,7 +21,10 @@ declare module 'ambient' {} { "dependencies": { "mobx": "*" } } //// [/node_modules/mobx/package.json] -{ "name": "mobx", "version": "1.0.0" } +{ + "name": "mobx", + "version": "1.0.0" +} //// [/node_modules/mobx/index.d.ts] export declare function observable(): unknown; diff --git a/tests/baselines/reference/tsserver/moduleSpecifierCache/invalidates-module-specifiers-when-changes-happen-in-contained-node_modules-directories.js b/tests/baselines/reference/tsserver/moduleSpecifierCache/invalidates-module-specifiers-when-changes-happen-in-contained-node_modules-directories.js index 54533a72044b0..ac59785154eef 100644 --- a/tests/baselines/reference/tsserver/moduleSpecifierCache/invalidates-module-specifiers-when-changes-happen-in-contained-node_modules-directories.js +++ b/tests/baselines/reference/tsserver/moduleSpecifierCache/invalidates-module-specifiers-when-changes-happen-in-contained-node_modules-directories.js @@ -21,7 +21,10 @@ declare module 'ambient' {} { "dependencies": { "mobx": "*" } } //// [/node_modules/mobx/package.json] -{ "name": "mobx", "version": "1.0.0" } +{ + "name": "mobx", + "version": "1.0.0" +} //// [/node_modules/mobx/index.d.ts] export declare function observable(): unknown; diff --git a/tests/baselines/reference/tsserver/moduleSpecifierCache/invalidates-the-cache-when-local-packageJson-changes.js b/tests/baselines/reference/tsserver/moduleSpecifierCache/invalidates-the-cache-when-local-packageJson-changes.js index 5bf69d9ff3b80..ef3bcf2d5baac 100644 --- a/tests/baselines/reference/tsserver/moduleSpecifierCache/invalidates-the-cache-when-local-packageJson-changes.js +++ b/tests/baselines/reference/tsserver/moduleSpecifierCache/invalidates-the-cache-when-local-packageJson-changes.js @@ -21,7 +21,10 @@ declare module 'ambient' {} { "dependencies": { "mobx": "*" } } //// [/node_modules/mobx/package.json] -{ "name": "mobx", "version": "1.0.0" } +{ + "name": "mobx", + "version": "1.0.0" +} //// [/node_modules/mobx/index.d.ts] export declare function observable(): unknown; diff --git a/tests/baselines/reference/tsserver/moduleSpecifierCache/invalidates-the-cache-when-module-resolution-settings-change.js b/tests/baselines/reference/tsserver/moduleSpecifierCache/invalidates-the-cache-when-module-resolution-settings-change.js index 63bdc566a57b4..05b45b165e69d 100644 --- a/tests/baselines/reference/tsserver/moduleSpecifierCache/invalidates-the-cache-when-module-resolution-settings-change.js +++ b/tests/baselines/reference/tsserver/moduleSpecifierCache/invalidates-the-cache-when-module-resolution-settings-change.js @@ -21,7 +21,10 @@ declare module 'ambient' {} { "dependencies": { "mobx": "*" } } //// [/node_modules/mobx/package.json] -{ "name": "mobx", "version": "1.0.0" } +{ + "name": "mobx", + "version": "1.0.0" +} //// [/node_modules/mobx/index.d.ts] export declare function observable(): unknown; diff --git a/tests/baselines/reference/tsserver/moduleSpecifierCache/invalidates-the-cache-when-symlinks-are-added-or-removed.js b/tests/baselines/reference/tsserver/moduleSpecifierCache/invalidates-the-cache-when-symlinks-are-added-or-removed.js index 41430fee244de..dd5e7d545647a 100644 --- a/tests/baselines/reference/tsserver/moduleSpecifierCache/invalidates-the-cache-when-symlinks-are-added-or-removed.js +++ b/tests/baselines/reference/tsserver/moduleSpecifierCache/invalidates-the-cache-when-symlinks-are-added-or-removed.js @@ -21,7 +21,10 @@ declare module 'ambient' {} { "dependencies": { "mobx": "*" } } //// [/node_modules/mobx/package.json] -{ "name": "mobx", "version": "1.0.0" } +{ + "name": "mobx", + "version": "1.0.0" +} //// [/node_modules/mobx/index.d.ts] export declare function observable(): unknown; diff --git a/tests/baselines/reference/tsserver/moduleSpecifierCache/invalidates-the-cache-when-user-preferences-change.js b/tests/baselines/reference/tsserver/moduleSpecifierCache/invalidates-the-cache-when-user-preferences-change.js index 3a7162d9a812b..4e124c2ae7a22 100644 --- a/tests/baselines/reference/tsserver/moduleSpecifierCache/invalidates-the-cache-when-user-preferences-change.js +++ b/tests/baselines/reference/tsserver/moduleSpecifierCache/invalidates-the-cache-when-user-preferences-change.js @@ -21,7 +21,10 @@ declare module 'ambient' {} { "dependencies": { "mobx": "*" } } //// [/node_modules/mobx/package.json] -{ "name": "mobx", "version": "1.0.0" } +{ + "name": "mobx", + "version": "1.0.0" +} //// [/node_modules/mobx/index.d.ts] export declare function observable(): unknown; @@ -748,7 +751,7 @@ Info seq [hh:mm:ss:mss] response: After request Info seq [hh:mm:ss:mss] moduleSpecifierCache for {} (/src/b.ts -> /src/a.ts) { - "isBlockedByPackageJsonDependencies": false + "isBlockedByPackageJsonDependencies": false } Before request @@ -782,9 +785,11 @@ Info seq [hh:mm:ss:mss] response: After request Info seq [hh:mm:ss:mss] moduleSpecifierCache for {} (/src/b.ts -> /src/a.ts) { - "isBlockedByPackageJsonDependencies": false + "isBlockedByPackageJsonDependencies": false } -Info seq [hh:mm:ss:mss] moduleSpecifierCache for {"importModuleSpecifierPreference":"project-relative"} (/src/b.ts -> /src/a.ts) undefined +Info seq [hh:mm:ss:mss] moduleSpecifierCache for { + "importModuleSpecifierPreference": "project-relative" +} (/src/b.ts -> /src/a.ts) undefined Before request Info seq [hh:mm:ss:mss] request: @@ -1241,8 +1246,10 @@ Info seq [hh:mm:ss:mss] response: After request Info seq [hh:mm:ss:mss] moduleSpecifierCache for {} (/src/b.ts -> /src/a.ts) undefined -Info seq [hh:mm:ss:mss] moduleSpecifierCache for {"importModuleSpecifierPreference":"project-relative"} (/src/b.ts -> /src/a.ts) { - "isBlockedByPackageJsonDependencies": false +Info seq [hh:mm:ss:mss] moduleSpecifierCache for { + "importModuleSpecifierPreference": "project-relative" +} (/src/b.ts -> /src/a.ts) { + "isBlockedByPackageJsonDependencies": false } Before request @@ -1730,4 +1737,6 @@ Info seq [hh:mm:ss:mss] response: } After request -Info seq [hh:mm:ss:mss] moduleSpecifierCache for {"importModuleSpecifierPreference":"project-relative"} (/src/b.ts -> /src/a.ts) undefined \ No newline at end of file +Info seq [hh:mm:ss:mss] moduleSpecifierCache for { + "importModuleSpecifierPreference": "project-relative" +} (/src/b.ts -> /src/a.ts) undefined \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/navTo/should-de-duplicate-symbols-when-searching-all-projects.js b/tests/baselines/reference/tsserver/navTo/should-de-duplicate-symbols-when-searching-all-projects.js index 90bc923eac5ab..3074eff7a3e02 100644 --- a/tests/baselines/reference/tsserver/navTo/should-de-duplicate-symbols-when-searching-all-projects.js +++ b/tests/baselines/reference/tsserver/navTo/should-de-duplicate-symbols-when-searching-all-projects.js @@ -26,7 +26,17 @@ import a = require("../a"); export const ghijkl = a.abcdef; //// [/tsconfig.json] -{"references":[{"path":"./a"},{"path":"./b"}],"files":[]} +{ + "references": [ + { + "path": "./a" + }, + { + "path": "./b" + } + ], + "files": [] +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/navTo/should-not-include-type-symbols.js b/tests/baselines/reference/tsserver/navTo/should-not-include-type-symbols.js index a53bff73ec04f..ffcd5b6e57216 100644 --- a/tests/baselines/reference/tsserver/navTo/should-not-include-type-symbols.js +++ b/tests/baselines/reference/tsserver/navTo/should-not-include-type-symbols.js @@ -91,7 +91,7 @@ TI:: typing installer creation complete //// [/a/data/node_modules/types-registry/index.json] { - "entries": {} + "entries": {} } diff --git a/tests/baselines/reference/tsserver/navTo/should-work-with-Deprecated.js b/tests/baselines/reference/tsserver/navTo/should-work-with-Deprecated.js index b7f64764270ef..9bd955cfb174a 100644 --- a/tests/baselines/reference/tsserver/navTo/should-work-with-Deprecated.js +++ b/tests/baselines/reference/tsserver/navTo/should-work-with-Deprecated.js @@ -92,7 +92,7 @@ TI:: typing installer creation complete //// [/a/data/node_modules/types-registry/index.json] { - "entries": {} + "entries": {} } diff --git a/tests/baselines/reference/tsserver/packageJsonInfo/detects-new-package.json-files-that-are-added,-caches-them,-and-watches-them.js b/tests/baselines/reference/tsserver/packageJsonInfo/detects-new-package.json-files-that-are-added,-caches-them,-and-watches-them.js index 45dc7f51fb8d5..5e47065e740f0 100644 --- a/tests/baselines/reference/tsserver/packageJsonInfo/detects-new-package.json-files-that-are-added,-caches-them,-and-watches-them.js +++ b/tests/baselines/reference/tsserver/packageJsonInfo/detects-new-package.json-files-that-are-added,-caches-them,-and-watches-them.js @@ -97,7 +97,7 @@ TI:: typing installer creation complete //// [/a/data/node_modules/types-registry/index.json] { - "entries": {} + "entries": {} } @@ -268,5 +268,15 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Triggered with /package.json 1:: WatchInf Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /package.json 1:: WatchInfo: /package.json 250 undefined WatchType: package.json file Edit package.json //// [/package.json] -{"peerDependencies":{"react":"*"},"optionalDependencies":{"typescript":"*"},"devDependencies":{"webpack":"*"}} +{ + "peerDependencies": { + "react": "*" + }, + "optionalDependencies": { + "typescript": "*" + }, + "devDependencies": { + "webpack": "*" + } +} diff --git a/tests/baselines/reference/tsserver/packageJsonInfo/finds-multiple-package.json-files-when-present.js b/tests/baselines/reference/tsserver/packageJsonInfo/finds-multiple-package.json-files-when-present.js index 9127021b7ad0f..f7c6b7af50e9e 100644 --- a/tests/baselines/reference/tsserver/packageJsonInfo/finds-multiple-package.json-files-when-present.js +++ b/tests/baselines/reference/tsserver/packageJsonInfo/finds-multiple-package.json-files-when-present.js @@ -113,7 +113,7 @@ TI:: typing installer creation complete //// [/a/data/node_modules/types-registry/index.json] { - "entries": {} + "entries": {} } diff --git a/tests/baselines/reference/tsserver/packageJsonInfo/finds-package.json-on-demand,-watches-for-deletion,-and-removes-them-from-cache.js b/tests/baselines/reference/tsserver/packageJsonInfo/finds-package.json-on-demand,-watches-for-deletion,-and-removes-them-from-cache.js index 81333e166c049..ea8152920ba09 100644 --- a/tests/baselines/reference/tsserver/packageJsonInfo/finds-package.json-on-demand,-watches-for-deletion,-and-removes-them-from-cache.js +++ b/tests/baselines/reference/tsserver/packageJsonInfo/finds-package.json-on-demand,-watches-for-deletion,-and-removes-them-from-cache.js @@ -113,7 +113,7 @@ TI:: typing installer creation complete //// [/a/data/node_modules/types-registry/index.json] { - "entries": {} + "entries": {} } diff --git a/tests/baselines/reference/tsserver/packageJsonInfo/handles-empty-package.json.js b/tests/baselines/reference/tsserver/packageJsonInfo/handles-empty-package.json.js index d8a80b40d0e5b..22a4a3bcb25e9 100644 --- a/tests/baselines/reference/tsserver/packageJsonInfo/handles-empty-package.json.js +++ b/tests/baselines/reference/tsserver/packageJsonInfo/handles-empty-package.json.js @@ -100,7 +100,7 @@ TI:: typing installer creation complete //// [/a/data/node_modules/types-registry/index.json] { - "entries": {} + "entries": {} } diff --git a/tests/baselines/reference/tsserver/packageJsonInfo/handles-errors-in-json-parsing-of-package.json.js b/tests/baselines/reference/tsserver/packageJsonInfo/handles-errors-in-json-parsing-of-package.json.js index 5ad5141e0f314..2433b76990953 100644 --- a/tests/baselines/reference/tsserver/packageJsonInfo/handles-errors-in-json-parsing-of-package.json.js +++ b/tests/baselines/reference/tsserver/packageJsonInfo/handles-errors-in-json-parsing-of-package.json.js @@ -100,7 +100,7 @@ TI:: typing installer creation complete //// [/a/data/node_modules/types-registry/index.json] { - "entries": {} + "entries": {} } diff --git a/tests/baselines/reference/tsserver/plugins/With-local-plugins.js b/tests/baselines/reference/tsserver/plugins/With-local-plugins.js index 4c56513bd0122..7b1d72a3999ec 100644 --- a/tests/baselines/reference/tsserver/plugins/With-local-plugins.js +++ b/tests/baselines/reference/tsserver/plugins/With-local-plugins.js @@ -5,7 +5,27 @@ Before request class c { prop = "hello"; foo() { return this.prop; } } //// [/tsconfig.json] -{"compilerOptions":{"plugins":[{"name":"@myscoped/plugin"},{"name":"unscopedPlugin"},{"name":"../myPlugin"},{"name":"myPlugin/../malicious"},{"transform":"some-transform"}]}} +{ + "compilerOptions": { + "plugins": [ + { + "name": "@myscoped/plugin" + }, + { + "name": "unscopedPlugin" + }, + { + "name": "../myPlugin" + }, + { + "name": "myPlugin/../malicious" + }, + { + "transform": "some-transform" + } + ] + } +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/plugins/With-session-and-custom-protocol-message.js b/tests/baselines/reference/tsserver/plugins/With-session-and-custom-protocol-message.js index 4fca84fb405b5..71f666964cd61 100644 --- a/tests/baselines/reference/tsserver/plugins/With-session-and-custom-protocol-message.js +++ b/tests/baselines/reference/tsserver/plugins/With-session-and-custom-protocol-message.js @@ -5,7 +5,15 @@ Before request class c { prop = "hello"; foo() { return this.prop; } } //// [/tsconfig.json] -{"compilerOptions":{"plugins":[{"name":"some-plugin"}]}} +{ + "compilerOptions": { + "plugins": [ + { + "name": "some-plugin" + } + ] + } +} //// [/a/lib/lib.d.ts] /// @@ -102,10 +110,10 @@ Info seq [hh:mm:ss:mss] request: "type": "request" } addProtocolHandler: { - "command": "testProtocolCommand", - "arguments": "testProtocolCommandRequest", - "seq": 2, - "type": "request" + "command": "testProtocolCommand", + "arguments": "testProtocolCommandRequest", + "seq": 2, + "type": "request" } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/plugins/getSupportedCodeFixes-can-be-proxied.js b/tests/baselines/reference/tsserver/plugins/getSupportedCodeFixes-can-be-proxied.js index 43673497c51c5..0257f29c67b00 100644 --- a/tests/baselines/reference/tsserver/plugins/getSupportedCodeFixes-can-be-proxied.js +++ b/tests/baselines/reference/tsserver/plugins/getSupportedCodeFixes-can-be-proxied.js @@ -11,7 +11,15 @@ class c { prop = "hello"; foo() { const x = 0; } } class c { prop = "hello"; foo() { const x = 0; } } //// [/tsconfig.json] -{"compilerOptions":{"plugins":[{"name":"myplugin"}]}} +{ + "compilerOptions": { + "plugins": [ + { + "name": "myplugin" + } + ] + } +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/plugins/gets-external-files-with-config-file-reload.js b/tests/baselines/reference/tsserver/plugins/gets-external-files-with-config-file-reload.js index caded600ff4c5..5fed4982f5a1c 100644 --- a/tests/baselines/reference/tsserver/plugins/gets-external-files-with-config-file-reload.js +++ b/tests/baselines/reference/tsserver/plugins/gets-external-files-with-config-file-reload.js @@ -5,7 +5,15 @@ Before request export const x = 10; //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"plugins":[{"name":"some-plugin"}]}} +{ + "compilerOptions": { + "plugins": [ + { + "name": "some-plugin" + } + ] + } +} //// [/a/lib/lib.d.ts] /// @@ -105,7 +113,9 @@ FsWatchesRecursive:: /user/username/projects/myproject: *new* {} -ExternalFiles:: ["someFile.txt"] +ExternalFiles:: [ + "someFile.txt" +] Info seq [hh:mm:ss:mss] FileWatcher:: Triggered with /user/username/projects/myproject/tsconfig.json 1:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] Scheduled: /user/username/projects/myproject/tsconfig.json Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* @@ -114,7 +124,15 @@ Before running Timeout callback:: count: 2 1: /user/username/projects/myproject/tsconfig.json 2: *ensureProjectForOpenFiles* //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"plugins":[{"name":"some-other-plugin"}]}} +{ + "compilerOptions": { + "plugins": [ + { + "name": "some-other-plugin" + } + ] + } +} Info seq [hh:mm:ss:mss] Running: /user/username/projects/myproject/tsconfig.json @@ -188,4 +206,6 @@ FsWatchesRecursive:: /user/username/projects/myproject: {} -ExternalFiles:: ["someOtherFile.txt"] \ No newline at end of file +ExternalFiles:: [ + "someOtherFile.txt" +] \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/plugins/new-files-with-non-ts-extensions-with-wildcard-matching.js b/tests/baselines/reference/tsserver/plugins/new-files-with-non-ts-extensions-with-wildcard-matching.js index 891fc361e9f8d..46e0cdab40378 100644 --- a/tests/baselines/reference/tsserver/plugins/new-files-with-non-ts-extensions-with-wildcard-matching.js +++ b/tests/baselines/reference/tsserver/plugins/new-files-with-non-ts-extensions-with-wildcard-matching.js @@ -12,13 +12,13 @@ bVue file //// [/user/username/projects/myproject/tsconfig.json] { - "compilerOptions": { - "composite": true - }, - "include": [ - "*.ts", - "*.vue" - ] + "compilerOptions": { + "composite": true + }, + "include": [ + "*.ts", + "*.vue" + ] } //// [/a/lib/lib.d.ts] diff --git a/tests/baselines/reference/tsserver/projectErrors/configured-projects---diagnostics-for-corrupted-config-1.js b/tests/baselines/reference/tsserver/projectErrors/configured-projects---diagnostics-for-corrupted-config-1.js index 51e53eba4b226..8962c8147c73f 100644 --- a/tests/baselines/reference/tsserver/projectErrors/configured-projects---diagnostics-for-corrupted-config-1.js +++ b/tests/baselines/reference/tsserver/projectErrors/configured-projects---diagnostics-for-corrupted-config-1.js @@ -8,7 +8,12 @@ Before request //// [/a/b/tsconfig.json] -"files":["app.ts","lib.ts"]} + + "files": [ + "app.ts", + "lib.ts" + ] +} Info seq [hh:mm:ss:mss] request: @@ -126,12 +131,12 @@ Info seq [hh:mm:ss:mss] response: "response": [ { "start": { - "line": 1, - "offset": 1 + "line": 2, + "offset": 3 }, "end": { - "line": 1, - "offset": 8 + "line": 2, + "offset": 10 }, "text": "'{' expected.", "code": 1005, @@ -148,7 +153,12 @@ Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /a/b/tsconfig.json 1:: WatchInfo: /a/b/tsconfig.json 2000 undefined Project: /a/b/tsconfig.json WatchType: Config file Before request //// [/a/b/tsconfig.json] -{"files":["app.ts","lib.ts"]} +{ + "files": [ + "app.ts", + "lib.ts" + ] +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/projectErrors/configured-projects---diagnostics-for-corrupted-config-2.js b/tests/baselines/reference/tsserver/projectErrors/configured-projects---diagnostics-for-corrupted-config-2.js index 89f73ce69fcfd..2a1d3aeb1ee53 100644 --- a/tests/baselines/reference/tsserver/projectErrors/configured-projects---diagnostics-for-corrupted-config-2.js +++ b/tests/baselines/reference/tsserver/projectErrors/configured-projects---diagnostics-for-corrupted-config-2.js @@ -8,7 +8,12 @@ Before request //// [/a/b/tsconfig.json] -{"files":["app.ts","lib.ts"]} +{ + "files": [ + "app.ts", + "lib.ts" + ] +} Info seq [hh:mm:ss:mss] request: @@ -134,7 +139,12 @@ Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /a/b/tsconfig.json 1:: WatchInfo: /a/b/tsconfig.json 2000 undefined Project: /a/b/tsconfig.json WatchType: Config file Before request //// [/a/b/tsconfig.json] -"files":["app.ts","lib.ts"]} + + "files": [ + "app.ts", + "lib.ts" + ] +} Info seq [hh:mm:ss:mss] request: @@ -207,12 +217,12 @@ Info seq [hh:mm:ss:mss] response: "response": [ { "start": { - "line": 1, - "offset": 1 + "line": 2, + "offset": 3 }, "end": { - "line": 1, - "offset": 8 + "line": 2, + "offset": 10 }, "text": "'{' expected.", "code": 1005, diff --git a/tests/baselines/reference/tsserver/projectErrors/configured-projects---diagnostics-for-missing-files.js b/tests/baselines/reference/tsserver/projectErrors/configured-projects---diagnostics-for-missing-files.js index 34cb45f734f57..63b4e48ced343 100644 --- a/tests/baselines/reference/tsserver/projectErrors/configured-projects---diagnostics-for-missing-files.js +++ b/tests/baselines/reference/tsserver/projectErrors/configured-projects---diagnostics-for-missing-files.js @@ -5,7 +5,12 @@ Before request //// [/a/b/tsconfig.json] -{"files":["app.ts","applib.ts"]} +{ + "files": [ + "app.ts", + "applib.ts" + ] +} //// [/a/lib/lib.d.ts] /// @@ -104,12 +109,12 @@ Info seq [hh:mm:ss:mss] response: { "span": { "start": { - "line": 1, - "offset": 20 + "line": 4, + "offset": 5 }, "end": { - "line": 1, - "offset": 31 + "line": 4, + "offset": 16 }, "file": "/a/b/tsconfig.json" }, diff --git a/tests/baselines/reference/tsserver/projectErrors/correct-errors-when-resolution-resolves-to-file-that-has-same-ambient-module-and-is-also-module.js b/tests/baselines/reference/tsserver/projectErrors/correct-errors-when-resolution-resolves-to-file-that-has-same-ambient-module-and-is-also-module.js index aff7394f53400..1afd8ed75b9ef 100644 --- a/tests/baselines/reference/tsserver/projectErrors/correct-errors-when-resolution-resolves-to-file-that-has-same-ambient-module-and-is-also-module.js +++ b/tests/baselines/reference/tsserver/projectErrors/correct-errors-when-resolution-resolves-to-file-that-has-same-ambient-module-and-is-also-module.js @@ -21,7 +21,11 @@ function foo() { } //// [/users/username/projects/myproject/tsconfig.json] -{"include":["src"]} +{ + "include": [ + "src" + ] +} //// [/users/username/projects/myproject/node_modules/@custom/plugin/index.d.ts] import './proposed'; diff --git a/tests/baselines/reference/tsserver/projectErrors/folder-rename-updates-project-structure-and-reports-no-errors.js b/tests/baselines/reference/tsserver/projectErrors/folder-rename-updates-project-structure-and-reports-no-errors.js index ef1c8052e8476..e67a75cb8f453 100644 --- a/tests/baselines/reference/tsserver/projectErrors/folder-rename-updates-project-structure-and-reports-no-errors.js +++ b/tests/baselines/reference/tsserver/projectErrors/folder-rename-updates-project-structure-and-reports-no-errors.js @@ -8,7 +8,15 @@ class Bar implements foo.Foo { getFoo() { return ''; } get2() { return 1; } } declare namespace foo { interface Foo { get2(): number; getFoo(): string; } } //// [/a/b/projects/myproject/tsconfig.json] -{"compilerOptions":{"module":"none","targer":"es5"},"exclude":["node_modules"]} +{ + "compilerOptions": { + "module": "none", + "targer": "es5" + }, + "exclude": [ + "node_modules" + ] +} Info seq [hh:mm:ss:mss] request: @@ -174,12 +182,12 @@ Info seq [hh:mm:ss:mss] event: }, { "start": { - "line": 1, - "offset": 37 + "line": 4, + "offset": 5 }, "end": { - "line": 1, - "offset": 45 + "line": 4, + "offset": 13 }, "text": "Unknown compiler option 'targer'. Did you mean 'target'?", "code": 5025, diff --git a/tests/baselines/reference/tsserver/projectErrors/for-external-project.js b/tests/baselines/reference/tsserver/projectErrors/for-external-project.js index 2d4e0ab4beeac..bf7ecbac27c05 100644 --- a/tests/baselines/reference/tsserver/projectErrors/for-external-project.js +++ b/tests/baselines/reference/tsserver/projectErrors/for-external-project.js @@ -72,7 +72,7 @@ TI:: typing installer creation complete //// [/a/data/node_modules/types-registry/index.json] { - "entries": {} + "entries": {} } diff --git a/tests/baselines/reference/tsserver/projectErrors/for-inferred-project.js b/tests/baselines/reference/tsserver/projectErrors/for-inferred-project.js index df0ee77f47289..6fca59ad3726f 100644 --- a/tests/baselines/reference/tsserver/projectErrors/for-inferred-project.js +++ b/tests/baselines/reference/tsserver/projectErrors/for-inferred-project.js @@ -65,7 +65,7 @@ TI:: typing installer creation complete //// [/a/data/node_modules/types-registry/index.json] { - "entries": {} + "entries": {} } diff --git a/tests/baselines/reference/tsserver/projectErrors/reports-errors-correctly-when-file-referenced-by-inferred-project-root,-is-opened-right-after-closing-the-root-file.js b/tests/baselines/reference/tsserver/projectErrors/reports-errors-correctly-when-file-referenced-by-inferred-project-root,-is-opened-right-after-closing-the-root-file.js index 84911b385d741..7e4a848150517 100644 --- a/tests/baselines/reference/tsserver/projectErrors/reports-errors-correctly-when-file-referenced-by-inferred-project-root,-is-opened-right-after-closing-the-root-file.js +++ b/tests/baselines/reference/tsserver/projectErrors/reports-errors-correctly-when-file-referenced-by-inferred-project-root,-is-opened-right-after-closing-the-root-file.js @@ -100,7 +100,7 @@ TI:: typing installer creation complete //// [/a/data/node_modules/types-registry/index.json] { - "entries": {} + "entries": {} } diff --git a/tests/baselines/reference/tsserver/projectErrors/should-not-report-incorrect-error-when-json-is-root-file-found-by-tsconfig.js b/tests/baselines/reference/tsserver/projectErrors/should-not-report-incorrect-error-when-json-is-root-file-found-by-tsconfig.js index f3b42e7e35136..f6dd5ef4d3a5b 100644 --- a/tests/baselines/reference/tsserver/projectErrors/should-not-report-incorrect-error-when-json-is-root-file-found-by-tsconfig.js +++ b/tests/baselines/reference/tsserver/projectErrors/should-not-report-incorrect-error-when-json-is-root-file-found-by-tsconfig.js @@ -23,7 +23,17 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"resolveJsonModule":true,"composite":true,"outDir":"dist"},"include":["./src/*.ts","./src/*.json"]} +{ + "compilerOptions": { + "resolveJsonModule": true, + "composite": true, + "outDir": "dist" + }, + "include": [ + "./src/*.ts", + "./src/*.json" + ] +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/projectErrors/should-report-error-when-json-is-not-root-file-found-by-tsconfig.js b/tests/baselines/reference/tsserver/projectErrors/should-report-error-when-json-is-not-root-file-found-by-tsconfig.js index 3d9b8e2a20cca..bbd5b672b627b 100644 --- a/tests/baselines/reference/tsserver/projectErrors/should-report-error-when-json-is-not-root-file-found-by-tsconfig.js +++ b/tests/baselines/reference/tsserver/projectErrors/should-report-error-when-json-is-not-root-file-found-by-tsconfig.js @@ -23,7 +23,16 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"resolveJsonModule":true,"composite":true,"outDir":"dist"},"include":["./src/*.ts"]} +{ + "compilerOptions": { + "resolveJsonModule": true, + "composite": true, + "outDir": "dist" + }, + "include": [ + "./src/*.ts" + ] +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/compile-on-save-emits-same-output-as-project-build-with-external-project.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/compile-on-save-emits-same-output-as-project-build-with-external-project.js index b6ef95475cd14..b0969a920db6c 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/compile-on-save-emits-same-output-as-project-build-with-external-project.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/compile-on-save-emits-same-output-as-project-build-with-external-project.js @@ -15,10 +15,24 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/tsbase.json] -{"compileOnSave":true,"compilerOptions":{"module":"none","composite":true}} +{ + "compileOnSave": true, + "compilerOptions": { + "module": "none", + "composite": true + } +} //// [/user/username/projects/myproject/buttonClass/tsconfig.json] -{"extends":"../tsbase.json","compilerOptions":{"outFile":"Source.js"},"files":["Source.ts"]} +{ + "extends": "../tsbase.json", + "compilerOptions": { + "outFile": "Source.js" + }, + "files": [ + "Source.ts" + ] +} //// [/user/username/projects/myproject/buttonClass/Source.ts] module Hmi { @@ -29,7 +43,20 @@ module Hmi { } //// [/user/username/projects/myproject/SiblingClass/tsconfig.json] -{"extends":"../tsbase.json","references":[{"path":"../buttonClass/"}],"compilerOptions":{"outFile":"Source.js"},"files":["Source.ts"]} +{ + "extends": "../tsbase.json", + "references": [ + { + "path": "../buttonClass/" + } + ], + "compilerOptions": { + "outFile": "Source.js" + }, + "files": [ + "Source.ts" + ] +} //// [/user/username/projects/myproject/SiblingClass/Source.ts] module Hmi { diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-and-change-to-dependency.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-and-change-to-dependency.js index f27335432e6bb..5f49707bfefec 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-and-change-to-dependency.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-and-change-to-dependency.js @@ -7,7 +7,13 @@ export function fn2() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationDir":"../decls"},"compileOnSave":true} +{ + "compilerOptions": { + "composite": true, + "declarationDir": "../decls" + }, + "compileOnSave": true +} //// [/user/username/projects/myproject/usage/usage.ts] import { @@ -19,7 +25,14 @@ fn2(); //// [/user/username/projects/myproject/usage/tsconfig.json] -{"compileOnSave":true,"references":[{"path":"../dependency"}]} +{ + "compileOnSave": true, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-and-change-to-usage.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-and-change-to-usage.js index 3db859cd9a96e..3fd0e4e3ea3eb 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-and-change-to-usage.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-and-change-to-usage.js @@ -7,7 +7,13 @@ export function fn2() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationDir":"../decls"},"compileOnSave":true} +{ + "compilerOptions": { + "composite": true, + "declarationDir": "../decls" + }, + "compileOnSave": true +} //// [/user/username/projects/myproject/usage/usage.ts] import { @@ -19,7 +25,14 @@ fn2(); //// [/user/username/projects/myproject/usage/tsconfig.json] -{"compileOnSave":true,"references":[{"path":"../dependency"}]} +{ + "compileOnSave": true, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-and-local-change-to-dependency.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-and-local-change-to-dependency.js index 3fdc8ce850744..bc1c4e1f6ef4e 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-and-local-change-to-dependency.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-and-local-change-to-dependency.js @@ -7,7 +7,13 @@ export function fn2() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationDir":"../decls"},"compileOnSave":true} +{ + "compilerOptions": { + "composite": true, + "declarationDir": "../decls" + }, + "compileOnSave": true +} //// [/user/username/projects/myproject/usage/usage.ts] import { @@ -19,7 +25,14 @@ fn2(); //// [/user/username/projects/myproject/usage/tsconfig.json] -{"compileOnSave":true,"references":[{"path":"../dependency"}]} +{ + "compileOnSave": true, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-and-local-change-to-usage.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-and-local-change-to-usage.js index 852acc53970e3..23e26842adeda 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-and-local-change-to-usage.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-and-local-change-to-usage.js @@ -7,7 +7,13 @@ export function fn2() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationDir":"../decls"},"compileOnSave":true} +{ + "compilerOptions": { + "composite": true, + "declarationDir": "../decls" + }, + "compileOnSave": true +} //// [/user/username/projects/myproject/usage/usage.ts] import { @@ -19,7 +25,14 @@ fn2(); //// [/user/username/projects/myproject/usage/tsconfig.json] -{"compileOnSave":true,"references":[{"path":"../dependency"}]} +{ + "compileOnSave": true, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-project-and-change-to-dependency.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-project-and-change-to-dependency.js index e69ebbd04d0e7..fe2f110ddf500 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-project-and-change-to-dependency.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-project-and-change-to-dependency.js @@ -7,7 +7,13 @@ export function fn2() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationDir":"../decls"},"compileOnSave":true} +{ + "compilerOptions": { + "composite": true, + "declarationDir": "../decls" + }, + "compileOnSave": true +} //// [/user/username/projects/myproject/usage/usage.ts] import { @@ -19,7 +25,14 @@ fn2(); //// [/user/username/projects/myproject/usage/tsconfig.json] -{"compileOnSave":true,"references":[{"path":"../dependency"}]} +{ + "compileOnSave": true, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-project-and-change-to-usage.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-project-and-change-to-usage.js index 43937a9e203ce..ce1aa45df7b8e 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-project-and-change-to-usage.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-project-and-change-to-usage.js @@ -7,7 +7,13 @@ export function fn2() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationDir":"../decls"},"compileOnSave":true} +{ + "compilerOptions": { + "composite": true, + "declarationDir": "../decls" + }, + "compileOnSave": true +} //// [/user/username/projects/myproject/usage/usage.ts] import { @@ -19,7 +25,14 @@ fn2(); //// [/user/username/projects/myproject/usage/tsconfig.json] -{"compileOnSave":true,"references":[{"path":"../dependency"}]} +{ + "compileOnSave": true, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-project-and-local-change-to-dependency.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-project-and-local-change-to-dependency.js index 5f1dabfceb70d..4d300257368e0 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-project-and-local-change-to-dependency.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-project-and-local-change-to-dependency.js @@ -7,7 +7,13 @@ export function fn2() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationDir":"../decls"},"compileOnSave":true} +{ + "compilerOptions": { + "composite": true, + "declarationDir": "../decls" + }, + "compileOnSave": true +} //// [/user/username/projects/myproject/usage/usage.ts] import { @@ -19,7 +25,14 @@ fn2(); //// [/user/username/projects/myproject/usage/tsconfig.json] -{"compileOnSave":true,"references":[{"path":"../dependency"}]} +{ + "compileOnSave": true, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-project-and-local-change-to-usage.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-project-and-local-change-to-usage.js index 7ebc47f9c4e0a..d415543e7927d 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-project-and-local-change-to-usage.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-project-and-local-change-to-usage.js @@ -7,7 +7,13 @@ export function fn2() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationDir":"../decls"},"compileOnSave":true} +{ + "compilerOptions": { + "composite": true, + "declarationDir": "../decls" + }, + "compileOnSave": true +} //// [/user/username/projects/myproject/usage/usage.ts] import { @@ -19,7 +25,14 @@ fn2(); //// [/user/username/projects/myproject/usage/tsconfig.json] -{"compileOnSave":true,"references":[{"path":"../dependency"}]} +{ + "compileOnSave": true, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-project.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-project.js index 3b7ddc93d7e2c..5313468ab61b7 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-project.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-project.js @@ -7,7 +7,13 @@ export function fn2() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationDir":"../decls"},"compileOnSave":true} +{ + "compilerOptions": { + "composite": true, + "declarationDir": "../decls" + }, + "compileOnSave": true +} //// [/user/username/projects/myproject/usage/usage.ts] import { @@ -19,7 +25,14 @@ fn2(); //// [/user/username/projects/myproject/usage/tsconfig.json] -{"compileOnSave":true,"references":[{"path":"../dependency"}]} +{ + "compileOnSave": true, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-usage-project-and-change-to-dependency.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-usage-project-and-change-to-dependency.js index 46c738264c65e..87938fce91b2b 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-usage-project-and-change-to-dependency.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-usage-project-and-change-to-dependency.js @@ -7,7 +7,13 @@ export function fn2() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationDir":"../decls"},"compileOnSave":true} +{ + "compilerOptions": { + "composite": true, + "declarationDir": "../decls" + }, + "compileOnSave": true +} //// [/user/username/projects/myproject/usage/usage.ts] import { @@ -19,7 +25,14 @@ fn2(); //// [/user/username/projects/myproject/usage/tsconfig.json] -{"compileOnSave":true,"references":[{"path":"../dependency"}]} +{ + "compileOnSave": true, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-usage-project-and-change-to-usage.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-usage-project-and-change-to-usage.js index 77d150c508a07..fa11bb4b740e2 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-usage-project-and-change-to-usage.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-usage-project-and-change-to-usage.js @@ -7,7 +7,13 @@ export function fn2() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationDir":"../decls"},"compileOnSave":true} +{ + "compilerOptions": { + "composite": true, + "declarationDir": "../decls" + }, + "compileOnSave": true +} //// [/user/username/projects/myproject/usage/usage.ts] import { @@ -19,7 +25,14 @@ fn2(); //// [/user/username/projects/myproject/usage/tsconfig.json] -{"compileOnSave":true,"references":[{"path":"../dependency"}]} +{ + "compileOnSave": true, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-usage-project-and-local-change-to-dependency.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-usage-project-and-local-change-to-dependency.js index e70f44f327eca..1db3772aad5d1 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-usage-project-and-local-change-to-dependency.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-usage-project-and-local-change-to-dependency.js @@ -7,7 +7,13 @@ export function fn2() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationDir":"../decls"},"compileOnSave":true} +{ + "compilerOptions": { + "composite": true, + "declarationDir": "../decls" + }, + "compileOnSave": true +} //// [/user/username/projects/myproject/usage/usage.ts] import { @@ -19,7 +25,14 @@ fn2(); //// [/user/username/projects/myproject/usage/tsconfig.json] -{"compileOnSave":true,"references":[{"path":"../dependency"}]} +{ + "compileOnSave": true, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-usage-project-and-local-change-to-usage.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-usage-project-and-local-change-to-usage.js index 62574484f7070..55262de0976a6 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-usage-project-and-local-change-to-usage.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-usage-project-and-local-change-to-usage.js @@ -7,7 +7,13 @@ export function fn2() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationDir":"../decls"},"compileOnSave":true} +{ + "compilerOptions": { + "composite": true, + "declarationDir": "../decls" + }, + "compileOnSave": true +} //// [/user/username/projects/myproject/usage/usage.ts] import { @@ -19,7 +25,14 @@ fn2(); //// [/user/username/projects/myproject/usage/tsconfig.json] -{"compileOnSave":true,"references":[{"path":"../dependency"}]} +{ + "compileOnSave": true, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-usage-project.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-usage-project.js index aa5779ca89572..3c72a45e24c2f 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-usage-project.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency-with-usage-project.js @@ -7,7 +7,13 @@ export function fn2() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationDir":"../decls"},"compileOnSave":true} +{ + "compilerOptions": { + "composite": true, + "declarationDir": "../decls" + }, + "compileOnSave": true +} //// [/user/username/projects/myproject/usage/usage.ts] import { @@ -19,7 +25,14 @@ fn2(); //// [/user/username/projects/myproject/usage/tsconfig.json] -{"compileOnSave":true,"references":[{"path":"../dependency"}]} +{ + "compileOnSave": true, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency.js index f1956c4dbf24f..a41230395f555 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-dependency.js @@ -7,7 +7,13 @@ export function fn2() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationDir":"../decls"},"compileOnSave":true} +{ + "compilerOptions": { + "composite": true, + "declarationDir": "../decls" + }, + "compileOnSave": true +} //// [/user/username/projects/myproject/usage/usage.ts] import { @@ -19,7 +25,14 @@ fn2(); //// [/user/username/projects/myproject/usage/tsconfig.json] -{"compileOnSave":true,"references":[{"path":"../dependency"}]} +{ + "compileOnSave": true, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage-and-change-to-dependency.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage-and-change-to-dependency.js index 579f4c609f83a..54eee026e6e20 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage-and-change-to-dependency.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage-and-change-to-dependency.js @@ -7,7 +7,13 @@ export function fn2() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationDir":"../decls"},"compileOnSave":true} +{ + "compilerOptions": { + "composite": true, + "declarationDir": "../decls" + }, + "compileOnSave": true +} //// [/user/username/projects/myproject/usage/usage.ts] import { @@ -19,7 +25,14 @@ fn2(); //// [/user/username/projects/myproject/usage/tsconfig.json] -{"compileOnSave":true,"references":[{"path":"../dependency"}]} +{ + "compileOnSave": true, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage-and-change-to-usage.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage-and-change-to-usage.js index f16d16c2e2d70..33da286cad0fb 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage-and-change-to-usage.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage-and-change-to-usage.js @@ -7,7 +7,13 @@ export function fn2() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationDir":"../decls"},"compileOnSave":true} +{ + "compilerOptions": { + "composite": true, + "declarationDir": "../decls" + }, + "compileOnSave": true +} //// [/user/username/projects/myproject/usage/usage.ts] import { @@ -19,7 +25,14 @@ fn2(); //// [/user/username/projects/myproject/usage/tsconfig.json] -{"compileOnSave":true,"references":[{"path":"../dependency"}]} +{ + "compileOnSave": true, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage-and-local-change-to-dependency-with-file.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage-and-local-change-to-dependency-with-file.js index 49ad6108d4071..af810adb09af1 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage-and-local-change-to-dependency-with-file.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage-and-local-change-to-dependency-with-file.js @@ -7,7 +7,13 @@ export function fn2() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationDir":"../decls"},"compileOnSave":true} +{ + "compilerOptions": { + "composite": true, + "declarationDir": "../decls" + }, + "compileOnSave": true +} //// [/user/username/projects/myproject/usage/usage.ts] import { @@ -19,7 +25,14 @@ fn2(); //// [/user/username/projects/myproject/usage/tsconfig.json] -{"compileOnSave":true,"references":[{"path":"../dependency"}]} +{ + "compileOnSave": true, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage-and-local-change-to-dependency.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage-and-local-change-to-dependency.js index 49f44051661ee..21bd96cca52a6 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage-and-local-change-to-dependency.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage-and-local-change-to-dependency.js @@ -7,7 +7,13 @@ export function fn2() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationDir":"../decls"},"compileOnSave":true} +{ + "compilerOptions": { + "composite": true, + "declarationDir": "../decls" + }, + "compileOnSave": true +} //// [/user/username/projects/myproject/usage/usage.ts] import { @@ -19,7 +25,14 @@ fn2(); //// [/user/username/projects/myproject/usage/tsconfig.json] -{"compileOnSave":true,"references":[{"path":"../dependency"}]} +{ + "compileOnSave": true, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage-and-local-change-to-usage-with-project.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage-and-local-change-to-usage-with-project.js index f339e5e2763c8..6d2a34d255314 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage-and-local-change-to-usage-with-project.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage-and-local-change-to-usage-with-project.js @@ -7,7 +7,13 @@ export function fn2() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationDir":"../decls"},"compileOnSave":true} +{ + "compilerOptions": { + "composite": true, + "declarationDir": "../decls" + }, + "compileOnSave": true +} //// [/user/username/projects/myproject/usage/usage.ts] import { @@ -19,7 +25,14 @@ fn2(); //// [/user/username/projects/myproject/usage/tsconfig.json] -{"compileOnSave":true,"references":[{"path":"../dependency"}]} +{ + "compileOnSave": true, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage-and-local-change-to-usage.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage-and-local-change-to-usage.js index 08bdda298b216..cbd7187fbb77c 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage-and-local-change-to-usage.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage-and-local-change-to-usage.js @@ -7,7 +7,13 @@ export function fn2() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationDir":"../decls"},"compileOnSave":true} +{ + "compilerOptions": { + "composite": true, + "declarationDir": "../decls" + }, + "compileOnSave": true +} //// [/user/username/projects/myproject/usage/usage.ts] import { @@ -19,7 +25,14 @@ fn2(); //// [/user/username/projects/myproject/usage/tsconfig.json] -{"compileOnSave":true,"references":[{"path":"../dependency"}]} +{ + "compileOnSave": true, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage-with-project-and-change-to-dependency.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage-with-project-and-change-to-dependency.js index 5db9ed20e4599..9a769204299ef 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage-with-project-and-change-to-dependency.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage-with-project-and-change-to-dependency.js @@ -7,7 +7,13 @@ export function fn2() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationDir":"../decls"},"compileOnSave":true} +{ + "compilerOptions": { + "composite": true, + "declarationDir": "../decls" + }, + "compileOnSave": true +} //// [/user/username/projects/myproject/usage/usage.ts] import { @@ -19,7 +25,14 @@ fn2(); //// [/user/username/projects/myproject/usage/tsconfig.json] -{"compileOnSave":true,"references":[{"path":"../dependency"}]} +{ + "compileOnSave": true, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage-with-project-and-change-to-usage.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage-with-project-and-change-to-usage.js index 8a126faf29185..8ba3c57f42801 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage-with-project-and-change-to-usage.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage-with-project-and-change-to-usage.js @@ -7,7 +7,13 @@ export function fn2() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationDir":"../decls"},"compileOnSave":true} +{ + "compilerOptions": { + "composite": true, + "declarationDir": "../decls" + }, + "compileOnSave": true +} //// [/user/username/projects/myproject/usage/usage.ts] import { @@ -19,7 +25,14 @@ fn2(); //// [/user/username/projects/myproject/usage/tsconfig.json] -{"compileOnSave":true,"references":[{"path":"../dependency"}]} +{ + "compileOnSave": true, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage-with-project.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage-with-project.js index 4b57b014573c5..beaaf7710c26e 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage-with-project.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage-with-project.js @@ -7,7 +7,13 @@ export function fn2() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationDir":"../decls"},"compileOnSave":true} +{ + "compilerOptions": { + "composite": true, + "declarationDir": "../decls" + }, + "compileOnSave": true +} //// [/user/username/projects/myproject/usage/usage.ts] import { @@ -19,7 +25,14 @@ fn2(); //// [/user/username/projects/myproject/usage/tsconfig.json] -{"compileOnSave":true,"references":[{"path":"../dependency"}]} +{ + "compileOnSave": true, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage.js index 56dab2a503243..a1c319021b286 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/save-on-usage.js @@ -7,7 +7,13 @@ export function fn2() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationDir":"../decls"},"compileOnSave":true} +{ + "compilerOptions": { + "composite": true, + "declarationDir": "../decls" + }, + "compileOnSave": true +} //// [/user/username/projects/myproject/usage/usage.ts] import { @@ -19,7 +25,14 @@ fn2(); //// [/user/username/projects/myproject/usage/tsconfig.json] -{"compileOnSave":true,"references":[{"path":"../dependency"}]} +{ + "compileOnSave": true, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency-and-change-to-dependency.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency-and-change-to-dependency.js index f290b4e9a285b..fd7621c616b10 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency-and-change-to-dependency.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency-and-change-to-dependency.js @@ -7,7 +7,13 @@ export function fn2() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationDir":"../decls"},"compileOnSave":true} +{ + "compilerOptions": { + "composite": true, + "declarationDir": "../decls" + }, + "compileOnSave": true +} //// [/user/username/projects/myproject/usage/usage.ts] import { @@ -19,7 +25,14 @@ fn2(); //// [/user/username/projects/myproject/usage/tsconfig.json] -{"compileOnSave":true,"references":[{"path":"../dependency"}]} +{ + "compileOnSave": true, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency-and-change-to-usage.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency-and-change-to-usage.js index 0ce2f9c8bb051..8a4298582e0e4 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency-and-change-to-usage.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency-and-change-to-usage.js @@ -7,7 +7,13 @@ export function fn2() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationDir":"../decls"},"compileOnSave":true} +{ + "compilerOptions": { + "composite": true, + "declarationDir": "../decls" + }, + "compileOnSave": true +} //// [/user/username/projects/myproject/usage/usage.ts] import { @@ -19,7 +25,14 @@ fn2(); //// [/user/username/projects/myproject/usage/tsconfig.json] -{"compileOnSave":true,"references":[{"path":"../dependency"}]} +{ + "compileOnSave": true, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency-and-local-change-to-dependency.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency-and-local-change-to-dependency.js index b4d740b7b7834..2c5438e293787 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency-and-local-change-to-dependency.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency-and-local-change-to-dependency.js @@ -7,7 +7,13 @@ export function fn2() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationDir":"../decls"},"compileOnSave":true} +{ + "compilerOptions": { + "composite": true, + "declarationDir": "../decls" + }, + "compileOnSave": true +} //// [/user/username/projects/myproject/usage/usage.ts] import { @@ -19,7 +25,14 @@ fn2(); //// [/user/username/projects/myproject/usage/tsconfig.json] -{"compileOnSave":true,"references":[{"path":"../dependency"}]} +{ + "compileOnSave": true, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency-and-local-change-to-usage.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency-and-local-change-to-usage.js index 6f8de10d9d0d9..e5063749e0032 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency-and-local-change-to-usage.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency-and-local-change-to-usage.js @@ -7,7 +7,13 @@ export function fn2() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationDir":"../decls"},"compileOnSave":true} +{ + "compilerOptions": { + "composite": true, + "declarationDir": "../decls" + }, + "compileOnSave": true +} //// [/user/username/projects/myproject/usage/usage.ts] import { @@ -19,7 +25,14 @@ fn2(); //// [/user/username/projects/myproject/usage/tsconfig.json] -{"compileOnSave":true,"references":[{"path":"../dependency"}]} +{ + "compileOnSave": true, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency-with-project-and-change-to-dependency.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency-with-project-and-change-to-dependency.js index a3b68a9a1ea1d..8a4040a9f3769 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency-with-project-and-change-to-dependency.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency-with-project-and-change-to-dependency.js @@ -7,7 +7,13 @@ export function fn2() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationDir":"../decls"},"compileOnSave":true} +{ + "compilerOptions": { + "composite": true, + "declarationDir": "../decls" + }, + "compileOnSave": true +} //// [/user/username/projects/myproject/usage/usage.ts] import { @@ -19,7 +25,14 @@ fn2(); //// [/user/username/projects/myproject/usage/tsconfig.json] -{"compileOnSave":true,"references":[{"path":"../dependency"}]} +{ + "compileOnSave": true, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency-with-project-and-change-to-usage.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency-with-project-and-change-to-usage.js index 28439937de7e2..39bd11075e81a 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency-with-project-and-change-to-usage.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency-with-project-and-change-to-usage.js @@ -7,7 +7,13 @@ export function fn2() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationDir":"../decls"},"compileOnSave":true} +{ + "compilerOptions": { + "composite": true, + "declarationDir": "../decls" + }, + "compileOnSave": true +} //// [/user/username/projects/myproject/usage/usage.ts] import { @@ -19,7 +25,14 @@ fn2(); //// [/user/username/projects/myproject/usage/tsconfig.json] -{"compileOnSave":true,"references":[{"path":"../dependency"}]} +{ + "compileOnSave": true, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency-with-project-and-local-change-to-dependency.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency-with-project-and-local-change-to-dependency.js index 3773eccd8f515..34fb8bec4963b 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency-with-project-and-local-change-to-dependency.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency-with-project-and-local-change-to-dependency.js @@ -7,7 +7,13 @@ export function fn2() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationDir":"../decls"},"compileOnSave":true} +{ + "compilerOptions": { + "composite": true, + "declarationDir": "../decls" + }, + "compileOnSave": true +} //// [/user/username/projects/myproject/usage/usage.ts] import { @@ -19,7 +25,14 @@ fn2(); //// [/user/username/projects/myproject/usage/tsconfig.json] -{"compileOnSave":true,"references":[{"path":"../dependency"}]} +{ + "compileOnSave": true, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency-with-project-and-local-change-to-usage.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency-with-project-and-local-change-to-usage.js index e6dda077c24f2..4d2a84d1ee634 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency-with-project-and-local-change-to-usage.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency-with-project-and-local-change-to-usage.js @@ -7,7 +7,13 @@ export function fn2() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationDir":"../decls"},"compileOnSave":true} +{ + "compilerOptions": { + "composite": true, + "declarationDir": "../decls" + }, + "compileOnSave": true +} //// [/user/username/projects/myproject/usage/usage.ts] import { @@ -19,7 +25,14 @@ fn2(); //// [/user/username/projects/myproject/usage/tsconfig.json] -{"compileOnSave":true,"references":[{"path":"../dependency"}]} +{ + "compileOnSave": true, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency-with-project.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency-with-project.js index 7627b8e46d615..a953bd3896f9c 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency-with-project.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency-with-project.js @@ -7,7 +7,13 @@ export function fn2() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationDir":"../decls"},"compileOnSave":true} +{ + "compilerOptions": { + "composite": true, + "declarationDir": "../decls" + }, + "compileOnSave": true +} //// [/user/username/projects/myproject/usage/usage.ts] import { @@ -19,7 +25,14 @@ fn2(); //// [/user/username/projects/myproject/usage/tsconfig.json] -{"compileOnSave":true,"references":[{"path":"../dependency"}]} +{ + "compileOnSave": true, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency.js index 15ecd0db476b1..8d19abf30f3fe 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-dependency.js @@ -7,7 +7,13 @@ export function fn2() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationDir":"../decls"},"compileOnSave":true} +{ + "compilerOptions": { + "composite": true, + "declarationDir": "../decls" + }, + "compileOnSave": true +} //// [/user/username/projects/myproject/usage/usage.ts] import { @@ -19,7 +25,14 @@ fn2(); //// [/user/username/projects/myproject/usage/tsconfig.json] -{"compileOnSave":true,"references":[{"path":"../dependency"}]} +{ + "compileOnSave": true, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage-and-change-to-depenedency.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage-and-change-to-depenedency.js index a4b96073c6eb4..c6ef5158d0192 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage-and-change-to-depenedency.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage-and-change-to-depenedency.js @@ -7,7 +7,13 @@ export function fn2() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationDir":"../decls"},"compileOnSave":true} +{ + "compilerOptions": { + "composite": true, + "declarationDir": "../decls" + }, + "compileOnSave": true +} //// [/user/username/projects/myproject/usage/usage.ts] import { @@ -19,7 +25,14 @@ fn2(); //// [/user/username/projects/myproject/usage/tsconfig.json] -{"compileOnSave":true,"references":[{"path":"../dependency"}]} +{ + "compileOnSave": true, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage-and-change-to-usage.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage-and-change-to-usage.js index b0fc7985f6add..ac1c0a78b78dc 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage-and-change-to-usage.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage-and-change-to-usage.js @@ -7,7 +7,13 @@ export function fn2() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationDir":"../decls"},"compileOnSave":true} +{ + "compilerOptions": { + "composite": true, + "declarationDir": "../decls" + }, + "compileOnSave": true +} //// [/user/username/projects/myproject/usage/usage.ts] import { @@ -19,7 +25,14 @@ fn2(); //// [/user/username/projects/myproject/usage/tsconfig.json] -{"compileOnSave":true,"references":[{"path":"../dependency"}]} +{ + "compileOnSave": true, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage-and-local-change-to-dependency.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage-and-local-change-to-dependency.js index 9af67efbea36a..db26ef3527cca 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage-and-local-change-to-dependency.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage-and-local-change-to-dependency.js @@ -7,7 +7,13 @@ export function fn2() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationDir":"../decls"},"compileOnSave":true} +{ + "compilerOptions": { + "composite": true, + "declarationDir": "../decls" + }, + "compileOnSave": true +} //// [/user/username/projects/myproject/usage/usage.ts] import { @@ -19,7 +25,14 @@ fn2(); //// [/user/username/projects/myproject/usage/tsconfig.json] -{"compileOnSave":true,"references":[{"path":"../dependency"}]} +{ + "compileOnSave": true, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage-and-local-change-to-usage.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage-and-local-change-to-usage.js index 1294408589088..6f60c20e53361 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage-and-local-change-to-usage.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage-and-local-change-to-usage.js @@ -7,7 +7,13 @@ export function fn2() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationDir":"../decls"},"compileOnSave":true} +{ + "compilerOptions": { + "composite": true, + "declarationDir": "../decls" + }, + "compileOnSave": true +} //// [/user/username/projects/myproject/usage/usage.ts] import { @@ -19,7 +25,14 @@ fn2(); //// [/user/username/projects/myproject/usage/tsconfig.json] -{"compileOnSave":true,"references":[{"path":"../dependency"}]} +{ + "compileOnSave": true, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage-with-project-and-change-to-depenedency.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage-with-project-and-change-to-depenedency.js index 5c28b49317971..7459f716692dc 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage-with-project-and-change-to-depenedency.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage-with-project-and-change-to-depenedency.js @@ -7,7 +7,13 @@ export function fn2() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationDir":"../decls"},"compileOnSave":true} +{ + "compilerOptions": { + "composite": true, + "declarationDir": "../decls" + }, + "compileOnSave": true +} //// [/user/username/projects/myproject/usage/usage.ts] import { @@ -19,7 +25,14 @@ fn2(); //// [/user/username/projects/myproject/usage/tsconfig.json] -{"compileOnSave":true,"references":[{"path":"../dependency"}]} +{ + "compileOnSave": true, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage-with-project-and-change-to-usage.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage-with-project-and-change-to-usage.js index 0328a35bfa585..4316e137de1a9 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage-with-project-and-change-to-usage.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage-with-project-and-change-to-usage.js @@ -7,7 +7,13 @@ export function fn2() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationDir":"../decls"},"compileOnSave":true} +{ + "compilerOptions": { + "composite": true, + "declarationDir": "../decls" + }, + "compileOnSave": true +} //// [/user/username/projects/myproject/usage/usage.ts] import { @@ -19,7 +25,14 @@ fn2(); //// [/user/username/projects/myproject/usage/tsconfig.json] -{"compileOnSave":true,"references":[{"path":"../dependency"}]} +{ + "compileOnSave": true, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage-with-project-and-local-change-to-dependency.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage-with-project-and-local-change-to-dependency.js index d07ea30b8aa5b..d29fdfef6c865 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage-with-project-and-local-change-to-dependency.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage-with-project-and-local-change-to-dependency.js @@ -7,7 +7,13 @@ export function fn2() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationDir":"../decls"},"compileOnSave":true} +{ + "compilerOptions": { + "composite": true, + "declarationDir": "../decls" + }, + "compileOnSave": true +} //// [/user/username/projects/myproject/usage/usage.ts] import { @@ -19,7 +25,14 @@ fn2(); //// [/user/username/projects/myproject/usage/tsconfig.json] -{"compileOnSave":true,"references":[{"path":"../dependency"}]} +{ + "compileOnSave": true, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage-with-project-and-local-change-to-usage.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage-with-project-and-local-change-to-usage.js index dc048f56dca63..117d70c278eb5 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage-with-project-and-local-change-to-usage.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage-with-project-and-local-change-to-usage.js @@ -7,7 +7,13 @@ export function fn2() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationDir":"../decls"},"compileOnSave":true} +{ + "compilerOptions": { + "composite": true, + "declarationDir": "../decls" + }, + "compileOnSave": true +} //// [/user/username/projects/myproject/usage/usage.ts] import { @@ -19,7 +25,14 @@ fn2(); //// [/user/username/projects/myproject/usage/tsconfig.json] -{"compileOnSave":true,"references":[{"path":"../dependency"}]} +{ + "compileOnSave": true, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage-with-project.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage-with-project.js index 5b94c1ed49169..ca0b51188a0cd 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage-with-project.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage-with-project.js @@ -7,7 +7,13 @@ export function fn2() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationDir":"../decls"},"compileOnSave":true} +{ + "compilerOptions": { + "composite": true, + "declarationDir": "../decls" + }, + "compileOnSave": true +} //// [/user/username/projects/myproject/usage/usage.ts] import { @@ -19,7 +25,14 @@ fn2(); //// [/user/username/projects/myproject/usage/tsconfig.json] -{"compileOnSave":true,"references":[{"path":"../dependency"}]} +{ + "compileOnSave": true, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage.js b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage.js index 9a08bbf702340..694a27665df76 100644 --- a/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage.js +++ b/tests/baselines/reference/tsserver/projectReferenceCompileOnSave/when-dependency-project-is-not-open-and-save-on-usage.js @@ -7,7 +7,13 @@ export function fn2() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationDir":"../decls"},"compileOnSave":true} +{ + "compilerOptions": { + "composite": true, + "declarationDir": "../decls" + }, + "compileOnSave": true +} //// [/user/username/projects/myproject/usage/usage.ts] import { @@ -19,7 +25,14 @@ fn2(); //// [/user/username/projects/myproject/usage/tsconfig.json] -{"compileOnSave":true,"references":[{"path":"../dependency"}]} +{ + "compileOnSave": true, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferenceErrors/with-module-scenario-when-dependency-project-is-not-open-gerErr-with-sync-commands.js b/tests/baselines/reference/tsserver/projectReferenceErrors/with-module-scenario-when-dependency-project-is-not-open-gerErr-with-sync-commands.js index ed6e5d0b3bef2..69095764822bb 100644 --- a/tests/baselines/reference/tsserver/projectReferenceErrors/with-module-scenario-when-dependency-project-is-not-open-gerErr-with-sync-commands.js +++ b/tests/baselines/reference/tsserver/projectReferenceErrors/with-module-scenario-when-dependency-project-is-not-open-gerErr-with-sync-commands.js @@ -10,7 +10,12 @@ export function fn2() { } export let x: string = 10; //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/usage/usage.ts] import { @@ -24,7 +29,16 @@ fnErr(); //// [/user/username/projects/myproject/usage/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferenceErrors/with-module-scenario-when-dependency-project-is-not-open-getErr.js b/tests/baselines/reference/tsserver/projectReferenceErrors/with-module-scenario-when-dependency-project-is-not-open-getErr.js index c2694caa5c496..6e7fa87ed6d70 100644 --- a/tests/baselines/reference/tsserver/projectReferenceErrors/with-module-scenario-when-dependency-project-is-not-open-getErr.js +++ b/tests/baselines/reference/tsserver/projectReferenceErrors/with-module-scenario-when-dependency-project-is-not-open-getErr.js @@ -10,7 +10,12 @@ export function fn2() { } export let x: string = 10; //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/usage/usage.ts] import { @@ -24,7 +29,16 @@ fnErr(); //// [/user/username/projects/myproject/usage/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferenceErrors/with-module-scenario-when-dependency-project-is-not-open-geterrForProject.js b/tests/baselines/reference/tsserver/projectReferenceErrors/with-module-scenario-when-dependency-project-is-not-open-geterrForProject.js index ce4b79112e329..3a1d8029713b5 100644 --- a/tests/baselines/reference/tsserver/projectReferenceErrors/with-module-scenario-when-dependency-project-is-not-open-geterrForProject.js +++ b/tests/baselines/reference/tsserver/projectReferenceErrors/with-module-scenario-when-dependency-project-is-not-open-geterrForProject.js @@ -10,7 +10,12 @@ export function fn2() { } export let x: string = 10; //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/usage/usage.ts] import { @@ -24,7 +29,16 @@ fnErr(); //// [/user/username/projects/myproject/usage/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferenceErrors/with-module-scenario-when-the-depedency-file-is-open-gerErr-with-sync-commands.js b/tests/baselines/reference/tsserver/projectReferenceErrors/with-module-scenario-when-the-depedency-file-is-open-gerErr-with-sync-commands.js index ab0409fd00de7..868184a06775f 100644 --- a/tests/baselines/reference/tsserver/projectReferenceErrors/with-module-scenario-when-the-depedency-file-is-open-gerErr-with-sync-commands.js +++ b/tests/baselines/reference/tsserver/projectReferenceErrors/with-module-scenario-when-the-depedency-file-is-open-gerErr-with-sync-commands.js @@ -10,7 +10,12 @@ export function fn2() { } export let x: string = 10; //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/usage/usage.ts] import { @@ -24,7 +29,16 @@ fnErr(); //// [/user/username/projects/myproject/usage/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferenceErrors/with-module-scenario-when-the-depedency-file-is-open-getErr.js b/tests/baselines/reference/tsserver/projectReferenceErrors/with-module-scenario-when-the-depedency-file-is-open-getErr.js index be24b074bc920..2656ba2024070 100644 --- a/tests/baselines/reference/tsserver/projectReferenceErrors/with-module-scenario-when-the-depedency-file-is-open-getErr.js +++ b/tests/baselines/reference/tsserver/projectReferenceErrors/with-module-scenario-when-the-depedency-file-is-open-getErr.js @@ -10,7 +10,12 @@ export function fn2() { } export let x: string = 10; //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/usage/usage.ts] import { @@ -24,7 +29,16 @@ fnErr(); //// [/user/username/projects/myproject/usage/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferenceErrors/with-module-scenario-when-the-depedency-file-is-open-geterrForProject.js b/tests/baselines/reference/tsserver/projectReferenceErrors/with-module-scenario-when-the-depedency-file-is-open-geterrForProject.js index d30dbae23d96c..67734aaabb2f7 100644 --- a/tests/baselines/reference/tsserver/projectReferenceErrors/with-module-scenario-when-the-depedency-file-is-open-geterrForProject.js +++ b/tests/baselines/reference/tsserver/projectReferenceErrors/with-module-scenario-when-the-depedency-file-is-open-geterrForProject.js @@ -10,7 +10,12 @@ export function fn2() { } export let x: string = 10; //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/usage/usage.ts] import { @@ -24,7 +29,16 @@ fnErr(); //// [/user/username/projects/myproject/usage/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferenceErrors/with-non-module-when-dependency-project-is-not-open-gerErr-with-sync-commands.js b/tests/baselines/reference/tsserver/projectReferenceErrors/with-non-module-when-dependency-project-is-not-open-gerErr-with-sync-commands.js index 50cd06105f87c..fe6697be711c0 100644 --- a/tests/baselines/reference/tsserver/projectReferenceErrors/with-non-module-when-dependency-project-is-not-open-gerErr-with-sync-commands.js +++ b/tests/baselines/reference/tsserver/projectReferenceErrors/with-non-module-when-dependency-project-is-not-open-gerErr-with-sync-commands.js @@ -10,7 +10,12 @@ function fn2() { } let x: string = 10; //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"outFile":"../dependency.js"}} +{ + "compilerOptions": { + "composite": true, + "outFile": "../dependency.js" + } +} //// [/user/username/projects/myproject/usage/usage.ts] fn1(); @@ -19,7 +24,17 @@ fnErr(); //// [/user/username/projects/myproject/usage/tsconfig.json] -{"compilerOptions":{"composite":true,"outFile":"../usage.js"},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "outFile": "../usage.js" + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferenceErrors/with-non-module-when-dependency-project-is-not-open-getErr.js b/tests/baselines/reference/tsserver/projectReferenceErrors/with-non-module-when-dependency-project-is-not-open-getErr.js index d56ee0a0b0c6e..ee2bb2931a091 100644 --- a/tests/baselines/reference/tsserver/projectReferenceErrors/with-non-module-when-dependency-project-is-not-open-getErr.js +++ b/tests/baselines/reference/tsserver/projectReferenceErrors/with-non-module-when-dependency-project-is-not-open-getErr.js @@ -10,7 +10,12 @@ function fn2() { } let x: string = 10; //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"outFile":"../dependency.js"}} +{ + "compilerOptions": { + "composite": true, + "outFile": "../dependency.js" + } +} //// [/user/username/projects/myproject/usage/usage.ts] fn1(); @@ -19,7 +24,17 @@ fnErr(); //// [/user/username/projects/myproject/usage/tsconfig.json] -{"compilerOptions":{"composite":true,"outFile":"../usage.js"},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "outFile": "../usage.js" + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferenceErrors/with-non-module-when-dependency-project-is-not-open-geterrForProject.js b/tests/baselines/reference/tsserver/projectReferenceErrors/with-non-module-when-dependency-project-is-not-open-geterrForProject.js index 6de5d679e593d..854c5ccf26881 100644 --- a/tests/baselines/reference/tsserver/projectReferenceErrors/with-non-module-when-dependency-project-is-not-open-geterrForProject.js +++ b/tests/baselines/reference/tsserver/projectReferenceErrors/with-non-module-when-dependency-project-is-not-open-geterrForProject.js @@ -10,7 +10,12 @@ function fn2() { } let x: string = 10; //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"outFile":"../dependency.js"}} +{ + "compilerOptions": { + "composite": true, + "outFile": "../dependency.js" + } +} //// [/user/username/projects/myproject/usage/usage.ts] fn1(); @@ -19,7 +24,17 @@ fnErr(); //// [/user/username/projects/myproject/usage/tsconfig.json] -{"compilerOptions":{"composite":true,"outFile":"../usage.js"},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "outFile": "../usage.js" + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferenceErrors/with-non-module-when-the-depedency-file-is-open-gerErr-with-sync-commands.js b/tests/baselines/reference/tsserver/projectReferenceErrors/with-non-module-when-the-depedency-file-is-open-gerErr-with-sync-commands.js index bd89f9098fc65..dcc77db898c80 100644 --- a/tests/baselines/reference/tsserver/projectReferenceErrors/with-non-module-when-the-depedency-file-is-open-gerErr-with-sync-commands.js +++ b/tests/baselines/reference/tsserver/projectReferenceErrors/with-non-module-when-the-depedency-file-is-open-gerErr-with-sync-commands.js @@ -10,7 +10,12 @@ function fn2() { } let x: string = 10; //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"outFile":"../dependency.js"}} +{ + "compilerOptions": { + "composite": true, + "outFile": "../dependency.js" + } +} //// [/user/username/projects/myproject/usage/usage.ts] fn1(); @@ -19,7 +24,17 @@ fnErr(); //// [/user/username/projects/myproject/usage/tsconfig.json] -{"compilerOptions":{"composite":true,"outFile":"../usage.js"},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "outFile": "../usage.js" + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferenceErrors/with-non-module-when-the-depedency-file-is-open-getErr.js b/tests/baselines/reference/tsserver/projectReferenceErrors/with-non-module-when-the-depedency-file-is-open-getErr.js index b59add0672200..f409648bf5113 100644 --- a/tests/baselines/reference/tsserver/projectReferenceErrors/with-non-module-when-the-depedency-file-is-open-getErr.js +++ b/tests/baselines/reference/tsserver/projectReferenceErrors/with-non-module-when-the-depedency-file-is-open-getErr.js @@ -10,7 +10,12 @@ function fn2() { } let x: string = 10; //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"outFile":"../dependency.js"}} +{ + "compilerOptions": { + "composite": true, + "outFile": "../dependency.js" + } +} //// [/user/username/projects/myproject/usage/usage.ts] fn1(); @@ -19,7 +24,17 @@ fnErr(); //// [/user/username/projects/myproject/usage/tsconfig.json] -{"compilerOptions":{"composite":true,"outFile":"../usage.js"},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "outFile": "../usage.js" + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferenceErrors/with-non-module-when-the-depedency-file-is-open-geterrForProject.js b/tests/baselines/reference/tsserver/projectReferenceErrors/with-non-module-when-the-depedency-file-is-open-geterrForProject.js index a3fe46819fbae..6cef3186e3ba8 100644 --- a/tests/baselines/reference/tsserver/projectReferenceErrors/with-non-module-when-the-depedency-file-is-open-geterrForProject.js +++ b/tests/baselines/reference/tsserver/projectReferenceErrors/with-non-module-when-the-depedency-file-is-open-geterrForProject.js @@ -10,7 +10,12 @@ function fn2() { } let x: string = 10; //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"outFile":"../dependency.js"}} +{ + "compilerOptions": { + "composite": true, + "outFile": "../dependency.js" + } +} //// [/user/username/projects/myproject/usage/usage.ts] fn1(); @@ -19,7 +24,17 @@ fnErr(); //// [/user/username/projects/myproject/usage/tsconfig.json] -{"compilerOptions":{"composite":true,"outFile":"../usage.js"},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "outFile": "../usage.js" + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferences/ancestor-and-project-ref-management.js b/tests/baselines/reference/tsserver/projectReferences/ancestor-and-project-ref-management.js index 568ab062e9834..dc737d48c4fd6 100644 --- a/tests/baselines/reference/tsserver/projectReferences/ancestor-and-project-ref-management.js +++ b/tests/baselines/reference/tsserver/projectReferences/ancestor-and-project-ref-management.js @@ -15,78 +15,88 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/container/lib/tsconfig.json] -{ - "compilerOptions": { - "outFile": "../built/local/lib.js", - "composite": true, - "declarationMap": true, - }, - "references": [], - "files": [ - "index.ts" - ] +{ + "compilerOptions": { + "outFile": "../built/local/lib.js", + "composite": true, + "declarationMap": true + }, + "references": [], + "files": [ + "index.ts" + ] } - //// [/user/username/projects/container/lib/index.ts] -namespace container { - export const myConst = 30; -} +namespace container { + export const myConst = 30; +} + //// [/user/username/projects/container/exec/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "outFile": "../built/local/exec.js", - }, - "files": [ - "index.ts" - ], - "references": [ - { "path": "../lib", "prepend": true } - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "outFile": "../built/local/exec.js" + }, + "files": [ + "index.ts" + ], + "references": [ + { + "path": "../lib", + "prepend": true + } + ] } - //// [/user/username/projects/container/exec/index.ts] -namespace container { - export function getMyConst() { - return myConst; - } -} +namespace container { + export function getMyConst() { + return myConst; + } +} + //// [/user/username/projects/container/compositeExec/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "outFile": "../built/local/compositeExec.js", - "composite": true, - "declarationMap": true, - }, - "files": [ - "index.ts" - ], - "references": [ - { "path": "../lib", "prepend": true } - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "outFile": "../built/local/compositeExec.js", + "composite": true, + "declarationMap": true + }, + "files": [ + "index.ts" + ], + "references": [ + { + "path": "../lib", + "prepend": true + } + ] } - //// [/user/username/projects/container/compositeExec/index.ts] -namespace container { - export function getMyConst() { - return myConst; - } -} +namespace container { + export function getMyConst() { + return myConst; + } +} + //// [/user/username/projects/container/tsconfig.json] -{ - "files": [], - "include": [], - "references": [ - { "path": "./exec" }, - { "path": "./compositeExec" } - ] +{ + "files": [], + "include": [], + "references": [ + { + "path": "./exec" + }, + { + "path": "./compositeExec" + } + ] } //// [/user/username/projects/temp/temp.ts] @@ -109,7 +119,7 @@ declare namespace container { //# sourceMappingURL=lib.d.ts.map //// [/user/username/projects/container/built/local/lib.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../../lib","sourceFiles":["../../lib/index.ts"],"js":{"sections":[{"pos":0,"end":102,"kind":"text"}],"hash":"-5780640416-var container;\n(function (container) {\n container.myConst = 30;\n})(container || (container = {}));\n"},"dts":{"sections":[{"pos":0,"end":56,"kind":"text"}],"mapHash":"-12950023432-{\"version\":3,\"file\":\"lib.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../lib/index.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,SAAS,CAAC;IACT,MAAM,OAAO,KAAK,CAAC;CAC7B\"}","hash":"-3233313694-declare namespace container {\n const myConst = 30;\n}\n//# sourceMappingURL=lib.d.ts.map"}},"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../lib/index.ts"],"fileInfos":["-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; }","-7311945748-namespace container {\r\n export const myConst = 30;\r\n}"],"root":[2],"options":{"composite":true,"declarationMap":true,"outFile":"./lib.js"},"outSignature":"4250822250-declare namespace container {\n const myConst = 30;\n}\n","latestChangedDtsFile":"./lib.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../../lib","sourceFiles":["../../lib/index.ts"],"js":{"sections":[{"pos":0,"end":102,"kind":"text"}],"hash":"-5780640416-var container;\n(function (container) {\n container.myConst = 30;\n})(container || (container = {}));\n"},"dts":{"sections":[{"pos":0,"end":56,"kind":"text"}],"mapHash":"-12950023432-{\"version\":3,\"file\":\"lib.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../lib/index.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,SAAS,CAAC;IACT,MAAM,OAAO,KAAK,CAAC;CAC7B\"}","hash":"-3233313694-declare namespace container {\n const myConst = 30;\n}\n//# sourceMappingURL=lib.d.ts.map"}},"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../lib/index.ts"],"fileInfos":["-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; }","-14968179652-namespace container {\n export const myConst = 30;\n}\n"],"root":[2],"options":{"composite":true,"declarationMap":true,"outFile":"./lib.js"},"outSignature":"4250822250-declare namespace container {\n const myConst = 30;\n}\n","latestChangedDtsFile":"./lib.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/container/built/local/lib.tsbuildinfo.readable.baseline.txt] { @@ -147,7 +157,7 @@ declare namespace container { ], "fileInfos": { "../../../../../../a/lib/lib.d.ts": "-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; }", - "../../lib/index.ts": "-7311945748-namespace container {\r\n export const myConst = 30;\r\n}" + "../../lib/index.ts": "-14968179652-namespace container {\n export const myConst = 30;\n}\n" }, "root": [ [ @@ -164,7 +174,7 @@ declare namespace container { "latestChangedDtsFile": "./lib.d.ts" }, "version": "FakeTSVersion", - "size": 1402 + "size": 1401 } //// [/user/username/projects/container/built/local/lib.tsbuildinfo.baseline.txt] @@ -229,7 +239,7 @@ declare namespace container { //# sourceMappingURL=compositeExec.d.ts.map //// [/user/username/projects/container/built/local/compositeExec.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../../compositeExec","sourceFiles":["../../compositeExec/index.ts"],"js":{"sections":[{"pos":0,"end":102,"kind":"prepend","data":"./lib.js","texts":[{"pos":0,"end":102,"kind":"text"}]},{"pos":102,"end":283,"kind":"text"}],"hash":"-2184050024-var container;\n(function (container) {\n container.myConst = 30;\n})(container || (container = {}));\nvar container;\n(function (container) {\n function getMyConst() {\n return container.myConst;\n }\n container.getMyConst = getMyConst;\n})(container || (container = {}));\n"},"dts":{"sections":[{"pos":0,"end":56,"kind":"prepend","data":"./lib.d.ts","texts":[{"pos":0,"end":56,"kind":"text"}]},{"pos":56,"end":123,"kind":"text"}],"mapHash":"25748245913-{\"version\":3,\"file\":\"compositeExec.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../lib/index.ts\",\"../../compositeExec/index.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,SAAS,CAAC;IACT,MAAM,OAAO,KAAK,CAAC;CAC7B;ACFD,kBAAU,SAAS,CAAC;IAChB,SAAgB,UAAU,WAEzB;CACJ\"}","hash":"862035579-declare namespace container {\n const myConst = 30;\n}\ndeclare namespace container {\n function getMyConst(): number;\n}\n//# sourceMappingURL=compositeExec.d.ts.map"}},"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","./lib.d.ts","../../compositeexec/index.ts"],"fileInfos":["-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; }","4250822250-declare namespace container {\n const myConst = 30;\n}\n","-6143734929-namespace container {\r\n export function getMyConst() {\r\n return myConst;\r\n }\r\n}"],"root":[3],"options":{"composite":true,"declarationMap":true,"outFile":"./compositeExec.js"},"outSignature":"5987946274-declare namespace container {\n const myConst = 30;\n}\ndeclare namespace container {\n function getMyConst(): number;\n}\n","latestChangedDtsFile":"./compositeExec.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../../compositeExec","sourceFiles":["../../compositeExec/index.ts"],"js":{"sections":[{"pos":0,"end":102,"kind":"prepend","data":"./lib.js","texts":[{"pos":0,"end":102,"kind":"text"}]},{"pos":102,"end":283,"kind":"text"}],"hash":"-2184050024-var container;\n(function (container) {\n container.myConst = 30;\n})(container || (container = {}));\nvar container;\n(function (container) {\n function getMyConst() {\n return container.myConst;\n }\n container.getMyConst = getMyConst;\n})(container || (container = {}));\n"},"dts":{"sections":[{"pos":0,"end":56,"kind":"prepend","data":"./lib.d.ts","texts":[{"pos":0,"end":56,"kind":"text"}]},{"pos":56,"end":123,"kind":"text"}],"mapHash":"25748245913-{\"version\":3,\"file\":\"compositeExec.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../lib/index.ts\",\"../../compositeExec/index.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,SAAS,CAAC;IACT,MAAM,OAAO,KAAK,CAAC;CAC7B;ACFD,kBAAU,SAAS,CAAC;IAChB,SAAgB,UAAU,WAEzB;CACJ\"}","hash":"862035579-declare namespace container {\n const myConst = 30;\n}\ndeclare namespace container {\n function getMyConst(): number;\n}\n//# sourceMappingURL=compositeExec.d.ts.map"}},"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","./lib.d.ts","../../compositeexec/index.ts"],"fileInfos":["-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; }","4250822250-declare namespace container {\n const myConst = 30;\n}\n","-4062145979-namespace container {\n export function getMyConst() {\n return myConst;\n }\n}\n"],"root":[3],"options":{"composite":true,"declarationMap":true,"outFile":"./compositeExec.js"},"outSignature":"5987946274-declare namespace container {\n const myConst = 30;\n}\ndeclare namespace container {\n function getMyConst(): number;\n}\n","latestChangedDtsFile":"./compositeExec.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/container/built/local/compositeExec.tsbuildinfo.readable.baseline.txt] { @@ -295,7 +305,7 @@ declare namespace container { "fileInfos": { "../../../../../../a/lib/lib.d.ts": "-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; }", "./lib.d.ts": "4250822250-declare namespace container {\n const myConst = 30;\n}\n", - "../../compositeexec/index.ts": "-6143734929-namespace container {\r\n export function getMyConst() {\r\n return myConst;\r\n }\r\n}" + "../../compositeexec/index.ts": "-4062145979-namespace container {\n export function getMyConst() {\n return myConst;\n }\n}\n" }, "root": [ [ @@ -312,7 +322,7 @@ declare namespace container { "latestChangedDtsFile": "./compositeExec.d.ts" }, "version": "FakeTSVersion", - "size": 2207 + "size": 2201 } //// [/user/username/projects/container/built/local/compositeExec.tsbuildinfo.baseline.txt] @@ -414,8 +424,8 @@ Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /user/username/pr Info seq [hh:mm:ss:mss] Project '/user/username/projects/container/compositeExec/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (3) /a/lib/lib.d.ts Text-1 "/// \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; }" - /user/username/projects/container/lib/index.ts Text-1 "namespace container {\r\n export const myConst = 30;\r\n}" - /user/username/projects/container/compositeExec/index.ts SVC-1-0 "namespace container {\r\n export function getMyConst() {\r\n return myConst;\r\n }\r\n}" + /user/username/projects/container/lib/index.ts Text-1 "namespace container {\n export const myConst = 30;\n}\n" + /user/username/projects/container/compositeExec/index.ts SVC-1-0 "namespace container {\n export function getMyConst() {\n return myConst;\n }\n}\n" ../../../../../a/lib/lib.d.ts @@ -578,7 +588,7 @@ Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /user/username/pr Info seq [hh:mm:ss:mss] Project '/user/username/projects/container/lib/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (2) /a/lib/lib.d.ts Text-1 "/// \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; }" - /user/username/projects/container/lib/index.ts Text-1 "namespace container {\r\n export const myConst = 30;\r\n}" + /user/username/projects/container/lib/index.ts Text-1 "namespace container {\n export const myConst = 30;\n}\n" ../../../../../a/lib/lib.d.ts @@ -645,8 +655,8 @@ Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /user/username/pr Info seq [hh:mm:ss:mss] Project '/user/username/projects/container/exec/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (3) /a/lib/lib.d.ts Text-1 "/// \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; }" - /user/username/projects/container/lib/index.ts Text-1 "namespace container {\r\n export const myConst = 30;\r\n}" - /user/username/projects/container/exec/index.ts Text-1 "namespace container {\r\n export function getMyConst() {\r\n return myConst;\r\n }\r\n}" + /user/username/projects/container/lib/index.ts Text-1 "namespace container {\n export const myConst = 30;\n}\n" + /user/username/projects/container/exec/index.ts Text-1 "namespace container {\n export function getMyConst() {\n return myConst;\n }\n}\n" ../../../../../a/lib/lib.d.ts diff --git a/tests/baselines/reference/tsserver/projectReferences/auto-import-with-referenced-project-when-built-with-disableSourceOfProjectReferenceRedirect.js b/tests/baselines/reference/tsserver/projectReferences/auto-import-with-referenced-project-when-built-with-disableSourceOfProjectReferenceRedirect.js index dde43d7f92884..9c67d29f2b424 100644 --- a/tests/baselines/reference/tsserver/projectReferences/auto-import-with-referenced-project-when-built-with-disableSourceOfProjectReferenceRedirect.js +++ b/tests/baselines/reference/tsserver/projectReferences/auto-import-with-referenced-project-when-built-with-disableSourceOfProjectReferenceRedirect.js @@ -2,19 +2,50 @@ currentDirectory:: / useCaseSensitiveFileNames: false Info seq [hh:mm:ss:mss] Provided types map file "/a/lib/typesMap.json" doesn't exist Before request //// [/user/username/projects/myproject/tsconfig.json] -{"files":[],"references":[{"path":"shared/src/library"},{"path":"app/src/program"}]} +{ + "files": [], + "references": [ + { + "path": "shared/src/library" + }, + { + "path": "app/src/program" + } + ] +} //// [/user/username/projects/myproject/shared/src/library/tsconfig.json] -{"compilerOptions":{"composite":true,"outDir":"../../bld/library"}} +{ + "compilerOptions": { + "composite": true, + "outDir": "../../bld/library" + } +} //// [/user/username/projects/myproject/shared/src/library/index.ts] export function foo() {} //// [/user/username/projects/myproject/shared/package.json] -{"name":"shared","version":"1.0.0","main":"bld/library/index.js","types":"bld/library/index.d.ts"} +{ + "name": "shared", + "version": "1.0.0", + "main": "bld/library/index.js", + "types": "bld/library/index.d.ts" +} //// [/user/username/projects/myproject/app/src/program/tsconfig.json] -{"compilerOptions":{"composite":true,"outDir":"../../bld/program","disableSourceOfProjectReferenceRedirect":true},"references":[{"path":"../../../shared/src/library"}]} +{ + "compilerOptions": { + "composite": true, + "outDir": "../../bld/program", + "disableSourceOfProjectReferenceRedirect": true + }, + "references": [ + { + "path": "../../../shared/src/library" + } + ] +} //// [/user/username/projects/myproject/app/src/program/bar.ts] import {foo} from "shared"; diff --git a/tests/baselines/reference/tsserver/projectReferences/auto-import-with-referenced-project-when-built.js b/tests/baselines/reference/tsserver/projectReferences/auto-import-with-referenced-project-when-built.js index ac6f2d4953d07..ed38ede8a0ee2 100644 --- a/tests/baselines/reference/tsserver/projectReferences/auto-import-with-referenced-project-when-built.js +++ b/tests/baselines/reference/tsserver/projectReferences/auto-import-with-referenced-project-when-built.js @@ -2,19 +2,49 @@ currentDirectory:: / useCaseSensitiveFileNames: false Info seq [hh:mm:ss:mss] Provided types map file "/a/lib/typesMap.json" doesn't exist Before request //// [/user/username/projects/myproject/tsconfig.json] -{"files":[],"references":[{"path":"shared/src/library"},{"path":"app/src/program"}]} +{ + "files": [], + "references": [ + { + "path": "shared/src/library" + }, + { + "path": "app/src/program" + } + ] +} //// [/user/username/projects/myproject/shared/src/library/tsconfig.json] -{"compilerOptions":{"composite":true,"outDir":"../../bld/library"}} +{ + "compilerOptions": { + "composite": true, + "outDir": "../../bld/library" + } +} //// [/user/username/projects/myproject/shared/src/library/index.ts] export function foo() {} //// [/user/username/projects/myproject/shared/package.json] -{"name":"shared","version":"1.0.0","main":"bld/library/index.js","types":"bld/library/index.d.ts"} +{ + "name": "shared", + "version": "1.0.0", + "main": "bld/library/index.js", + "types": "bld/library/index.d.ts" +} //// [/user/username/projects/myproject/app/src/program/tsconfig.json] -{"compilerOptions":{"composite":true,"outDir":"../../bld/program"},"references":[{"path":"../../../shared/src/library"}]} +{ + "compilerOptions": { + "composite": true, + "outDir": "../../bld/program" + }, + "references": [ + { + "path": "../../../shared/src/library" + } + ] +} //// [/user/username/projects/myproject/app/src/program/bar.ts] import {foo} from "shared"; diff --git a/tests/baselines/reference/tsserver/projectReferences/auto-import-with-referenced-project.js b/tests/baselines/reference/tsserver/projectReferences/auto-import-with-referenced-project.js index 85a7906f9a66a..b838e6da58a4c 100644 --- a/tests/baselines/reference/tsserver/projectReferences/auto-import-with-referenced-project.js +++ b/tests/baselines/reference/tsserver/projectReferences/auto-import-with-referenced-project.js @@ -2,19 +2,49 @@ currentDirectory:: / useCaseSensitiveFileNames: false Info seq [hh:mm:ss:mss] Provided types map file "/a/lib/typesMap.json" doesn't exist Before request //// [/user/username/projects/myproject/tsconfig.json] -{"files":[],"references":[{"path":"shared/src/library"},{"path":"app/src/program"}]} +{ + "files": [], + "references": [ + { + "path": "shared/src/library" + }, + { + "path": "app/src/program" + } + ] +} //// [/user/username/projects/myproject/shared/src/library/tsconfig.json] -{"compilerOptions":{"composite":true,"outDir":"../../bld/library"}} +{ + "compilerOptions": { + "composite": true, + "outDir": "../../bld/library" + } +} //// [/user/username/projects/myproject/shared/src/library/index.ts] export function foo() {} //// [/user/username/projects/myproject/shared/package.json] -{"name":"shared","version":"1.0.0","main":"bld/library/index.js","types":"bld/library/index.d.ts"} +{ + "name": "shared", + "version": "1.0.0", + "main": "bld/library/index.js", + "types": "bld/library/index.d.ts" +} //// [/user/username/projects/myproject/app/src/program/tsconfig.json] -{"compilerOptions":{"composite":true,"outDir":"../../bld/program"},"references":[{"path":"../../../shared/src/library"}]} +{ + "compilerOptions": { + "composite": true, + "outDir": "../../bld/program" + }, + "references": [ + { + "path": "../../../shared/src/library" + } + ] +} //// [/user/username/projects/myproject/app/src/program/bar.ts] import {foo} from "shared"; diff --git a/tests/baselines/reference/tsserver/projectReferences/can-successfully-find-references-with-out-option.js b/tests/baselines/reference/tsserver/projectReferences/can-successfully-find-references-with-out-option.js index 7b082efba130f..2a5716ed25aa3 100644 --- a/tests/baselines/reference/tsserver/projectReferences/can-successfully-find-references-with-out-option.js +++ b/tests/baselines/reference/tsserver/projectReferences/can-successfully-find-references-with-out-option.js @@ -15,78 +15,88 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/container/lib/tsconfig.json] -{ - "compilerOptions": { - "outFile": "../built/local/lib.js", - "composite": true, - "declarationMap": true, - }, - "references": [], - "files": [ - "index.ts" - ] +{ + "compilerOptions": { + "outFile": "../built/local/lib.js", + "composite": true, + "declarationMap": true + }, + "references": [], + "files": [ + "index.ts" + ] } - //// [/user/username/projects/container/lib/index.ts] -namespace container { - export const myConst = 30; -} +namespace container { + export const myConst = 30; +} + //// [/user/username/projects/container/exec/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "outFile": "../built/local/exec.js", - }, - "files": [ - "index.ts" - ], - "references": [ - { "path": "../lib", "prepend": true } - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "outFile": "../built/local/exec.js" + }, + "files": [ + "index.ts" + ], + "references": [ + { + "path": "../lib", + "prepend": true + } + ] } - //// [/user/username/projects/container/exec/index.ts] -namespace container { - export function getMyConst() { - return myConst; - } -} +namespace container { + export function getMyConst() { + return myConst; + } +} + //// [/user/username/projects/container/compositeExec/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "outFile": "../built/local/compositeExec.js", - "composite": true, - "declarationMap": true, - }, - "files": [ - "index.ts" - ], - "references": [ - { "path": "../lib", "prepend": true } - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "outFile": "../built/local/compositeExec.js", + "composite": true, + "declarationMap": true + }, + "files": [ + "index.ts" + ], + "references": [ + { + "path": "../lib", + "prepend": true + } + ] } - //// [/user/username/projects/container/compositeExec/index.ts] -namespace container { - export function getMyConst() { - return myConst; - } -} +namespace container { + export function getMyConst() { + return myConst; + } +} + //// [/user/username/projects/container/tsconfig.json] -{ - "files": [], - "include": [], - "references": [ - { "path": "./exec" }, - { "path": "./compositeExec" } - ] +{ + "files": [], + "include": [], + "references": [ + { + "path": "./exec" + }, + { + "path": "./compositeExec" + } + ] } //// [/user/username/projects/container/built/local/lib.js] @@ -106,7 +116,7 @@ declare namespace container { //# sourceMappingURL=lib.d.ts.map //// [/user/username/projects/container/built/local/lib.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../../lib","sourceFiles":["../../lib/index.ts"],"js":{"sections":[{"pos":0,"end":102,"kind":"text"}],"hash":"-5780640416-var container;\n(function (container) {\n container.myConst = 30;\n})(container || (container = {}));\n"},"dts":{"sections":[{"pos":0,"end":56,"kind":"text"}],"mapHash":"-12950023432-{\"version\":3,\"file\":\"lib.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../lib/index.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,SAAS,CAAC;IACT,MAAM,OAAO,KAAK,CAAC;CAC7B\"}","hash":"-3233313694-declare namespace container {\n const myConst = 30;\n}\n//# sourceMappingURL=lib.d.ts.map"}},"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../lib/index.ts"],"fileInfos":["-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; }","-7311945748-namespace container {\r\n export const myConst = 30;\r\n}"],"root":[2],"options":{"composite":true,"declarationMap":true,"outFile":"./lib.js"},"outSignature":"4250822250-declare namespace container {\n const myConst = 30;\n}\n","latestChangedDtsFile":"./lib.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../../lib","sourceFiles":["../../lib/index.ts"],"js":{"sections":[{"pos":0,"end":102,"kind":"text"}],"hash":"-5780640416-var container;\n(function (container) {\n container.myConst = 30;\n})(container || (container = {}));\n"},"dts":{"sections":[{"pos":0,"end":56,"kind":"text"}],"mapHash":"-12950023432-{\"version\":3,\"file\":\"lib.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../lib/index.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,SAAS,CAAC;IACT,MAAM,OAAO,KAAK,CAAC;CAC7B\"}","hash":"-3233313694-declare namespace container {\n const myConst = 30;\n}\n//# sourceMappingURL=lib.d.ts.map"}},"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../lib/index.ts"],"fileInfos":["-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; }","-14968179652-namespace container {\n export const myConst = 30;\n}\n"],"root":[2],"options":{"composite":true,"declarationMap":true,"outFile":"./lib.js"},"outSignature":"4250822250-declare namespace container {\n const myConst = 30;\n}\n","latestChangedDtsFile":"./lib.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/container/built/local/lib.tsbuildinfo.readable.baseline.txt] { @@ -144,7 +154,7 @@ declare namespace container { ], "fileInfos": { "../../../../../../a/lib/lib.d.ts": "-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; }", - "../../lib/index.ts": "-7311945748-namespace container {\r\n export const myConst = 30;\r\n}" + "../../lib/index.ts": "-14968179652-namespace container {\n export const myConst = 30;\n}\n" }, "root": [ [ @@ -161,7 +171,7 @@ declare namespace container { "latestChangedDtsFile": "./lib.d.ts" }, "version": "FakeTSVersion", - "size": 1402 + "size": 1401 } //// [/user/username/projects/container/built/local/lib.tsbuildinfo.baseline.txt] @@ -226,7 +236,7 @@ declare namespace container { //# sourceMappingURL=compositeExec.d.ts.map //// [/user/username/projects/container/built/local/compositeExec.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../../compositeExec","sourceFiles":["../../compositeExec/index.ts"],"js":{"sections":[{"pos":0,"end":102,"kind":"prepend","data":"./lib.js","texts":[{"pos":0,"end":102,"kind":"text"}]},{"pos":102,"end":283,"kind":"text"}],"hash":"-2184050024-var container;\n(function (container) {\n container.myConst = 30;\n})(container || (container = {}));\nvar container;\n(function (container) {\n function getMyConst() {\n return container.myConst;\n }\n container.getMyConst = getMyConst;\n})(container || (container = {}));\n"},"dts":{"sections":[{"pos":0,"end":56,"kind":"prepend","data":"./lib.d.ts","texts":[{"pos":0,"end":56,"kind":"text"}]},{"pos":56,"end":123,"kind":"text"}],"mapHash":"25748245913-{\"version\":3,\"file\":\"compositeExec.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../lib/index.ts\",\"../../compositeExec/index.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,SAAS,CAAC;IACT,MAAM,OAAO,KAAK,CAAC;CAC7B;ACFD,kBAAU,SAAS,CAAC;IAChB,SAAgB,UAAU,WAEzB;CACJ\"}","hash":"862035579-declare namespace container {\n const myConst = 30;\n}\ndeclare namespace container {\n function getMyConst(): number;\n}\n//# sourceMappingURL=compositeExec.d.ts.map"}},"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","./lib.d.ts","../../compositeexec/index.ts"],"fileInfos":["-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; }","4250822250-declare namespace container {\n const myConst = 30;\n}\n","-6143734929-namespace container {\r\n export function getMyConst() {\r\n return myConst;\r\n }\r\n}"],"root":[3],"options":{"composite":true,"declarationMap":true,"outFile":"./compositeExec.js"},"outSignature":"5987946274-declare namespace container {\n const myConst = 30;\n}\ndeclare namespace container {\n function getMyConst(): number;\n}\n","latestChangedDtsFile":"./compositeExec.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../../compositeExec","sourceFiles":["../../compositeExec/index.ts"],"js":{"sections":[{"pos":0,"end":102,"kind":"prepend","data":"./lib.js","texts":[{"pos":0,"end":102,"kind":"text"}]},{"pos":102,"end":283,"kind":"text"}],"hash":"-2184050024-var container;\n(function (container) {\n container.myConst = 30;\n})(container || (container = {}));\nvar container;\n(function (container) {\n function getMyConst() {\n return container.myConst;\n }\n container.getMyConst = getMyConst;\n})(container || (container = {}));\n"},"dts":{"sections":[{"pos":0,"end":56,"kind":"prepend","data":"./lib.d.ts","texts":[{"pos":0,"end":56,"kind":"text"}]},{"pos":56,"end":123,"kind":"text"}],"mapHash":"25748245913-{\"version\":3,\"file\":\"compositeExec.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../lib/index.ts\",\"../../compositeExec/index.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,SAAS,CAAC;IACT,MAAM,OAAO,KAAK,CAAC;CAC7B;ACFD,kBAAU,SAAS,CAAC;IAChB,SAAgB,UAAU,WAEzB;CACJ\"}","hash":"862035579-declare namespace container {\n const myConst = 30;\n}\ndeclare namespace container {\n function getMyConst(): number;\n}\n//# sourceMappingURL=compositeExec.d.ts.map"}},"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","./lib.d.ts","../../compositeexec/index.ts"],"fileInfos":["-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; }","4250822250-declare namespace container {\n const myConst = 30;\n}\n","-4062145979-namespace container {\n export function getMyConst() {\n return myConst;\n }\n}\n"],"root":[3],"options":{"composite":true,"declarationMap":true,"outFile":"./compositeExec.js"},"outSignature":"5987946274-declare namespace container {\n const myConst = 30;\n}\ndeclare namespace container {\n function getMyConst(): number;\n}\n","latestChangedDtsFile":"./compositeExec.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/container/built/local/compositeExec.tsbuildinfo.readable.baseline.txt] { @@ -292,7 +302,7 @@ declare namespace container { "fileInfos": { "../../../../../../a/lib/lib.d.ts": "-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; }", "./lib.d.ts": "4250822250-declare namespace container {\n const myConst = 30;\n}\n", - "../../compositeexec/index.ts": "-6143734929-namespace container {\r\n export function getMyConst() {\r\n return myConst;\r\n }\r\n}" + "../../compositeexec/index.ts": "-4062145979-namespace container {\n export function getMyConst() {\n return myConst;\n }\n}\n" }, "root": [ [ @@ -309,7 +319,7 @@ declare namespace container { "latestChangedDtsFile": "./compositeExec.d.ts" }, "version": "FakeTSVersion", - "size": 2207 + "size": 2201 } //// [/user/username/projects/container/built/local/compositeExec.tsbuildinfo.baseline.txt] @@ -411,8 +421,8 @@ Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /user/username/pr Info seq [hh:mm:ss:mss] Project '/user/username/projects/container/compositeExec/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (3) /a/lib/lib.d.ts Text-1 "/// \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; }" - /user/username/projects/container/lib/index.ts Text-1 "namespace container {\r\n export const myConst = 30;\r\n}" - /user/username/projects/container/compositeExec/index.ts SVC-1-0 "namespace container {\r\n export function getMyConst() {\r\n return myConst;\r\n }\r\n}" + /user/username/projects/container/lib/index.ts Text-1 "namespace container {\n export const myConst = 30;\n}\n" + /user/username/projects/container/compositeExec/index.ts SVC-1-0 "namespace container {\n export function getMyConst() {\n return myConst;\n }\n}\n" ../../../../../a/lib/lib.d.ts @@ -493,7 +503,7 @@ Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /user/username/pr Info seq [hh:mm:ss:mss] Project '/user/username/projects/container/lib/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (2) /a/lib/lib.d.ts Text-1 "/// \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; }" - /user/username/projects/container/lib/index.ts Text-1 "namespace container {\r\n export const myConst = 30;\r\n}" + /user/username/projects/container/lib/index.ts Text-1 "namespace container {\n export const myConst = 30;\n}\n" ../../../../../a/lib/lib.d.ts @@ -560,8 +570,8 @@ Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /user/username/pr Info seq [hh:mm:ss:mss] Project '/user/username/projects/container/exec/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (3) /a/lib/lib.d.ts Text-1 "/// \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; }" - /user/username/projects/container/lib/index.ts Text-1 "namespace container {\r\n export const myConst = 30;\r\n}" - /user/username/projects/container/exec/index.ts Text-1 "namespace container {\r\n export function getMyConst() {\r\n return myConst;\r\n }\r\n}" + /user/username/projects/container/lib/index.ts Text-1 "namespace container {\n export const myConst = 30;\n}\n" + /user/username/projects/container/exec/index.ts Text-1 "namespace container {\n export function getMyConst() {\n return myConst;\n }\n}\n" ../../../../../a/lib/lib.d.ts diff --git a/tests/baselines/reference/tsserver/projectReferences/does-not-error-on-container-only-project.js b/tests/baselines/reference/tsserver/projectReferences/does-not-error-on-container-only-project.js index 84c2996b86492..d6f10a93843ed 100644 --- a/tests/baselines/reference/tsserver/projectReferences/does-not-error-on-container-only-project.js +++ b/tests/baselines/reference/tsserver/projectReferences/does-not-error-on-container-only-project.js @@ -47,8 +47,8 @@ Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /user/username/pr Info seq [hh:mm:ss:mss] Project '/user/username/projects/container/compositeExec/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (3) /a/lib/lib.d.ts Text-1 "/// \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; }" - /user/username/projects/container/lib/index.ts Text-1 "namespace container {\r\n export const myConst = 30;\r\n}" - /user/username/projects/container/compositeExec/index.ts Text-1 "namespace container {\r\n export function getMyConst() {\r\n return myConst;\r\n }\r\n}" + /user/username/projects/container/lib/index.ts Text-1 "namespace container {\n export const myConst = 30;\n}\n" + /user/username/projects/container/compositeExec/index.ts Text-1 "namespace container {\n export function getMyConst() {\n return myConst;\n }\n}\n" ../../../../../a/lib/lib.d.ts @@ -90,8 +90,8 @@ Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /user/username/pr Info seq [hh:mm:ss:mss] Project '/user/username/projects/container/exec/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (3) /a/lib/lib.d.ts Text-1 "/// \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; }" - /user/username/projects/container/lib/index.ts Text-1 "namespace container {\r\n export const myConst = 30;\r\n}" - /user/username/projects/container/exec/index.ts Text-1 "namespace container {\r\n export function getMyConst() {\r\n return myConst;\r\n }\r\n}" + /user/username/projects/container/lib/index.ts Text-1 "namespace container {\n export const myConst = 30;\n}\n" + /user/username/projects/container/exec/index.ts Text-1 "namespace container {\n export function getMyConst() {\n return myConst;\n }\n}\n" ../../../../../a/lib/lib.d.ts @@ -114,7 +114,7 @@ Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /user/username/pr Info seq [hh:mm:ss:mss] Project '/user/username/projects/container/lib/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (2) /a/lib/lib.d.ts Text-1 "/// \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; }" - /user/username/projects/container/lib/index.ts Text-1 "namespace container {\r\n export const myConst = 30;\r\n}" + /user/username/projects/container/lib/index.ts Text-1 "namespace container {\n export const myConst = 30;\n}\n" ../../../../../a/lib/lib.d.ts @@ -166,78 +166,88 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/container/lib/tsconfig.json] -{ - "compilerOptions": { - "outFile": "../built/local/lib.js", - "composite": true, - "declarationMap": true, - }, - "references": [], - "files": [ - "index.ts" - ] +{ + "compilerOptions": { + "outFile": "../built/local/lib.js", + "composite": true, + "declarationMap": true + }, + "references": [], + "files": [ + "index.ts" + ] } - //// [/user/username/projects/container/lib/index.ts] -namespace container { - export const myConst = 30; -} +namespace container { + export const myConst = 30; +} + //// [/user/username/projects/container/exec/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "outFile": "../built/local/exec.js", - }, - "files": [ - "index.ts" - ], - "references": [ - { "path": "../lib", "prepend": true } - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "outFile": "../built/local/exec.js" + }, + "files": [ + "index.ts" + ], + "references": [ + { + "path": "../lib", + "prepend": true + } + ] } - //// [/user/username/projects/container/exec/index.ts] -namespace container { - export function getMyConst() { - return myConst; - } -} +namespace container { + export function getMyConst() { + return myConst; + } +} + //// [/user/username/projects/container/compositeExec/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "outFile": "../built/local/compositeExec.js", - "composite": true, - "declarationMap": true, - }, - "files": [ - "index.ts" - ], - "references": [ - { "path": "../lib", "prepend": true } - ] +{ + "compilerOptions": { + "ignoreDeprecations": "5.0", + "outFile": "../built/local/compositeExec.js", + "composite": true, + "declarationMap": true + }, + "files": [ + "index.ts" + ], + "references": [ + { + "path": "../lib", + "prepend": true + } + ] } - //// [/user/username/projects/container/compositeExec/index.ts] -namespace container { - export function getMyConst() { - return myConst; - } -} +namespace container { + export function getMyConst() { + return myConst; + } +} + //// [/user/username/projects/container/tsconfig.json] -{ - "files": [], - "include": [], - "references": [ - { "path": "./exec" }, - { "path": "./compositeExec" } - ] +{ + "files": [], + "include": [], + "references": [ + { + "path": "./exec" + }, + { + "path": "./compositeExec" + } + ] } //// [/user/username/projects/container/built/local/lib.js] @@ -257,7 +267,7 @@ declare namespace container { //# sourceMappingURL=lib.d.ts.map //// [/user/username/projects/container/built/local/lib.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../../lib","sourceFiles":["../../lib/index.ts"],"js":{"sections":[{"pos":0,"end":102,"kind":"text"}],"hash":"-5780640416-var container;\n(function (container) {\n container.myConst = 30;\n})(container || (container = {}));\n"},"dts":{"sections":[{"pos":0,"end":56,"kind":"text"}],"mapHash":"-12950023432-{\"version\":3,\"file\":\"lib.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../lib/index.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,SAAS,CAAC;IACT,MAAM,OAAO,KAAK,CAAC;CAC7B\"}","hash":"-3233313694-declare namespace container {\n const myConst = 30;\n}\n//# sourceMappingURL=lib.d.ts.map"}},"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../lib/index.ts"],"fileInfos":["-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; }","-7311945748-namespace container {\r\n export const myConst = 30;\r\n}"],"root":[2],"options":{"composite":true,"declarationMap":true,"outFile":"./lib.js"},"outSignature":"4250822250-declare namespace container {\n const myConst = 30;\n}\n","latestChangedDtsFile":"./lib.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../../lib","sourceFiles":["../../lib/index.ts"],"js":{"sections":[{"pos":0,"end":102,"kind":"text"}],"hash":"-5780640416-var container;\n(function (container) {\n container.myConst = 30;\n})(container || (container = {}));\n"},"dts":{"sections":[{"pos":0,"end":56,"kind":"text"}],"mapHash":"-12950023432-{\"version\":3,\"file\":\"lib.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../lib/index.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,SAAS,CAAC;IACT,MAAM,OAAO,KAAK,CAAC;CAC7B\"}","hash":"-3233313694-declare namespace container {\n const myConst = 30;\n}\n//# sourceMappingURL=lib.d.ts.map"}},"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","../../lib/index.ts"],"fileInfos":["-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; }","-14968179652-namespace container {\n export const myConst = 30;\n}\n"],"root":[2],"options":{"composite":true,"declarationMap":true,"outFile":"./lib.js"},"outSignature":"4250822250-declare namespace container {\n const myConst = 30;\n}\n","latestChangedDtsFile":"./lib.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/container/built/local/lib.tsbuildinfo.readable.baseline.txt] { @@ -295,7 +305,7 @@ declare namespace container { ], "fileInfos": { "../../../../../../a/lib/lib.d.ts": "-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; }", - "../../lib/index.ts": "-7311945748-namespace container {\r\n export const myConst = 30;\r\n}" + "../../lib/index.ts": "-14968179652-namespace container {\n export const myConst = 30;\n}\n" }, "root": [ [ @@ -312,7 +322,7 @@ declare namespace container { "latestChangedDtsFile": "./lib.d.ts" }, "version": "FakeTSVersion", - "size": 1402 + "size": 1401 } //// [/user/username/projects/container/built/local/lib.tsbuildinfo.baseline.txt] @@ -377,7 +387,7 @@ declare namespace container { //# sourceMappingURL=compositeExec.d.ts.map //// [/user/username/projects/container/built/local/compositeExec.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../../compositeExec","sourceFiles":["../../compositeExec/index.ts"],"js":{"sections":[{"pos":0,"end":102,"kind":"prepend","data":"./lib.js","texts":[{"pos":0,"end":102,"kind":"text"}]},{"pos":102,"end":283,"kind":"text"}],"hash":"-2184050024-var container;\n(function (container) {\n container.myConst = 30;\n})(container || (container = {}));\nvar container;\n(function (container) {\n function getMyConst() {\n return container.myConst;\n }\n container.getMyConst = getMyConst;\n})(container || (container = {}));\n"},"dts":{"sections":[{"pos":0,"end":56,"kind":"prepend","data":"./lib.d.ts","texts":[{"pos":0,"end":56,"kind":"text"}]},{"pos":56,"end":123,"kind":"text"}],"mapHash":"25748245913-{\"version\":3,\"file\":\"compositeExec.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../lib/index.ts\",\"../../compositeExec/index.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,SAAS,CAAC;IACT,MAAM,OAAO,KAAK,CAAC;CAC7B;ACFD,kBAAU,SAAS,CAAC;IAChB,SAAgB,UAAU,WAEzB;CACJ\"}","hash":"862035579-declare namespace container {\n const myConst = 30;\n}\ndeclare namespace container {\n function getMyConst(): number;\n}\n//# sourceMappingURL=compositeExec.d.ts.map"}},"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","./lib.d.ts","../../compositeexec/index.ts"],"fileInfos":["-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; }","4250822250-declare namespace container {\n const myConst = 30;\n}\n","-6143734929-namespace container {\r\n export function getMyConst() {\r\n return myConst;\r\n }\r\n}"],"root":[3],"options":{"composite":true,"declarationMap":true,"outFile":"./compositeExec.js"},"outSignature":"5987946274-declare namespace container {\n const myConst = 30;\n}\ndeclare namespace container {\n function getMyConst(): number;\n}\n","latestChangedDtsFile":"./compositeExec.d.ts"},"version":"FakeTSVersion"} +{"bundle":{"commonSourceDirectory":"../../compositeExec","sourceFiles":["../../compositeExec/index.ts"],"js":{"sections":[{"pos":0,"end":102,"kind":"prepend","data":"./lib.js","texts":[{"pos":0,"end":102,"kind":"text"}]},{"pos":102,"end":283,"kind":"text"}],"hash":"-2184050024-var container;\n(function (container) {\n container.myConst = 30;\n})(container || (container = {}));\nvar container;\n(function (container) {\n function getMyConst() {\n return container.myConst;\n }\n container.getMyConst = getMyConst;\n})(container || (container = {}));\n"},"dts":{"sections":[{"pos":0,"end":56,"kind":"prepend","data":"./lib.d.ts","texts":[{"pos":0,"end":56,"kind":"text"}]},{"pos":56,"end":123,"kind":"text"}],"mapHash":"25748245913-{\"version\":3,\"file\":\"compositeExec.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../../lib/index.ts\",\"../../compositeExec/index.ts\"],\"names\":[],\"mappings\":\"AAAA,kBAAU,SAAS,CAAC;IACT,MAAM,OAAO,KAAK,CAAC;CAC7B;ACFD,kBAAU,SAAS,CAAC;IAChB,SAAgB,UAAU,WAEzB;CACJ\"}","hash":"862035579-declare namespace container {\n const myConst = 30;\n}\ndeclare namespace container {\n function getMyConst(): number;\n}\n//# sourceMappingURL=compositeExec.d.ts.map"}},"program":{"fileNames":["../../../../../../a/lib/lib.d.ts","./lib.d.ts","../../compositeexec/index.ts"],"fileInfos":["-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; }","4250822250-declare namespace container {\n const myConst = 30;\n}\n","-4062145979-namespace container {\n export function getMyConst() {\n return myConst;\n }\n}\n"],"root":[3],"options":{"composite":true,"declarationMap":true,"outFile":"./compositeExec.js"},"outSignature":"5987946274-declare namespace container {\n const myConst = 30;\n}\ndeclare namespace container {\n function getMyConst(): number;\n}\n","latestChangedDtsFile":"./compositeExec.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/container/built/local/compositeExec.tsbuildinfo.readable.baseline.txt] { @@ -443,7 +453,7 @@ declare namespace container { "fileInfos": { "../../../../../../a/lib/lib.d.ts": "-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; }", "./lib.d.ts": "4250822250-declare namespace container {\n const myConst = 30;\n}\n", - "../../compositeexec/index.ts": "-6143734929-namespace container {\r\n export function getMyConst() {\r\n return myConst;\r\n }\r\n}" + "../../compositeexec/index.ts": "-4062145979-namespace container {\n export function getMyConst() {\n return myConst;\n }\n}\n" }, "root": [ [ @@ -460,7 +470,7 @@ declare namespace container { "latestChangedDtsFile": "./compositeExec.d.ts" }, "version": "FakeTSVersion", - "size": 2207 + "size": 2201 } //// [/user/username/projects/container/built/local/compositeExec.tsbuildinfo.baseline.txt] diff --git a/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-loaded-and-refd-proj-loading-is-disabled-and-proj-ref-redirects-are-disabled-and-a-decl-map-is-missing.js b/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-loaded-and-refd-proj-loading-is-disabled-and-proj-ref-redirects-are-disabled-and-a-decl-map-is-missing.js index 961188867afea..1610c2ec7c94b 100644 --- a/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-loaded-and-refd-proj-loading-is-disabled-and-proj-ref-redirects-are-disabled-and-a-decl-map-is-missing.js +++ b/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-loaded-and-refd-proj-loading-is-disabled-and-proj-ref-redirects-are-disabled-and-a-decl-map-is-missing.js @@ -3,9 +3,17 @@ Info seq [hh:mm:ss:mss] Provided types map file "/a/lib/typesMap.json" doesn't Before request //// [/user/username/projects/myproject/a/tsconfig.json] { - "compilerOptions": {"disableReferencedProjectLoad":true,"disableSourceOfProjectReferenceRedirect":true,"composite":true}, - "references": [{ "path": "../b" }] - } + "compilerOptions": { + "disableReferencedProjectLoad": true, + "disableSourceOfProjectReferenceRedirect": true, + "composite": true + }, + "references": [ + { + "path": "../b" + } + ] +} //// [/user/username/projects/myproject/a/index.ts] import { B } from "../b/lib"; @@ -14,11 +22,11 @@ const b: B = new B(); //// [/user/username/projects/myproject/b/tsconfig.json] { -"compilerOptions": { + "compilerOptions": { "declarationMap": true, "outDir": "lib", "composite": true -} + } } //// [/user/username/projects/myproject/b/index.ts] diff --git a/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-loaded-and-refd-proj-loading-is-disabled-and-proj-ref-redirects-are-disabled-and-a-decl-map-is-present.js b/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-loaded-and-refd-proj-loading-is-disabled-and-proj-ref-redirects-are-disabled-and-a-decl-map-is-present.js index 73d389faac12f..03b8dd2ef2536 100644 --- a/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-loaded-and-refd-proj-loading-is-disabled-and-proj-ref-redirects-are-disabled-and-a-decl-map-is-present.js +++ b/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-loaded-and-refd-proj-loading-is-disabled-and-proj-ref-redirects-are-disabled-and-a-decl-map-is-present.js @@ -3,9 +3,17 @@ Info seq [hh:mm:ss:mss] Provided types map file "/a/lib/typesMap.json" doesn't Before request //// [/user/username/projects/myproject/a/tsconfig.json] { - "compilerOptions": {"disableReferencedProjectLoad":true,"disableSourceOfProjectReferenceRedirect":true,"composite":true}, - "references": [{ "path": "../b" }] - } + "compilerOptions": { + "disableReferencedProjectLoad": true, + "disableSourceOfProjectReferenceRedirect": true, + "composite": true + }, + "references": [ + { + "path": "../b" + } + ] +} //// [/user/username/projects/myproject/a/index.ts] import { B } from "../b/lib"; @@ -14,11 +22,11 @@ const b: B = new B(); //// [/user/username/projects/myproject/b/tsconfig.json] { -"compilerOptions": { + "compilerOptions": { "declarationMap": true, "outDir": "lib", "composite": true -} + } } //// [/user/username/projects/myproject/b/index.ts] @@ -38,7 +46,16 @@ export declare class B { //# sourceMappingURL=index.d.ts.map //// [/user/username/projects/myproject/b/lib/index.d.ts.map] -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,qBAAa,CAAC;IACV,CAAC;CACJ"} +{ + "version": 3, + "file": "index.d.ts", + "sourceRoot": "", + "sources": [ + "../index.ts" + ], + "names": [], + "mappings": "AAAA,qBAAa,CAAC;IACV,CAAC;CACJ" +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-loaded-and-refd-proj-loading-is-disabled-and-proj-ref-redirects-are-enabled-and-a-decl-map-is-missing.js b/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-loaded-and-refd-proj-loading-is-disabled-and-proj-ref-redirects-are-enabled-and-a-decl-map-is-missing.js index d5b0b67ade086..515e95978b7b5 100644 --- a/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-loaded-and-refd-proj-loading-is-disabled-and-proj-ref-redirects-are-enabled-and-a-decl-map-is-missing.js +++ b/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-loaded-and-refd-proj-loading-is-disabled-and-proj-ref-redirects-are-enabled-and-a-decl-map-is-missing.js @@ -3,9 +3,17 @@ Info seq [hh:mm:ss:mss] Provided types map file "/a/lib/typesMap.json" doesn't Before request //// [/user/username/projects/myproject/a/tsconfig.json] { - "compilerOptions": {"disableReferencedProjectLoad":true,"disableSourceOfProjectReferenceRedirect":false,"composite":true}, - "references": [{ "path": "../b" }] - } + "compilerOptions": { + "disableReferencedProjectLoad": true, + "disableSourceOfProjectReferenceRedirect": false, + "composite": true + }, + "references": [ + { + "path": "../b" + } + ] +} //// [/user/username/projects/myproject/a/index.ts] import { B } from "../b/lib"; @@ -14,11 +22,11 @@ const b: B = new B(); //// [/user/username/projects/myproject/b/tsconfig.json] { -"compilerOptions": { + "compilerOptions": { "declarationMap": true, "outDir": "lib", "composite": true -} + } } //// [/user/username/projects/myproject/b/index.ts] diff --git a/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-loaded-and-refd-proj-loading-is-disabled-and-proj-ref-redirects-are-enabled-and-a-decl-map-is-present.js b/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-loaded-and-refd-proj-loading-is-disabled-and-proj-ref-redirects-are-enabled-and-a-decl-map-is-present.js index b2f41d3a292fe..b17a5a9539b5f 100644 --- a/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-loaded-and-refd-proj-loading-is-disabled-and-proj-ref-redirects-are-enabled-and-a-decl-map-is-present.js +++ b/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-loaded-and-refd-proj-loading-is-disabled-and-proj-ref-redirects-are-enabled-and-a-decl-map-is-present.js @@ -3,9 +3,17 @@ Info seq [hh:mm:ss:mss] Provided types map file "/a/lib/typesMap.json" doesn't Before request //// [/user/username/projects/myproject/a/tsconfig.json] { - "compilerOptions": {"disableReferencedProjectLoad":true,"disableSourceOfProjectReferenceRedirect":false,"composite":true}, - "references": [{ "path": "../b" }] - } + "compilerOptions": { + "disableReferencedProjectLoad": true, + "disableSourceOfProjectReferenceRedirect": false, + "composite": true + }, + "references": [ + { + "path": "../b" + } + ] +} //// [/user/username/projects/myproject/a/index.ts] import { B } from "../b/lib"; @@ -14,11 +22,11 @@ const b: B = new B(); //// [/user/username/projects/myproject/b/tsconfig.json] { -"compilerOptions": { + "compilerOptions": { "declarationMap": true, "outDir": "lib", "composite": true -} + } } //// [/user/username/projects/myproject/b/index.ts] @@ -38,7 +46,16 @@ export declare class B { //# sourceMappingURL=index.d.ts.map //// [/user/username/projects/myproject/b/lib/index.d.ts.map] -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,qBAAa,CAAC;IACV,CAAC;CACJ"} +{ + "version": 3, + "file": "index.d.ts", + "sourceRoot": "", + "sources": [ + "../index.ts" + ], + "names": [], + "mappings": "AAAA,qBAAa,CAAC;IACV,CAAC;CACJ" +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-loaded-and-refd-proj-loading-is-enabled-and-proj-ref-redirects-are-disabled-and-a-decl-map-is-missing.js b/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-loaded-and-refd-proj-loading-is-enabled-and-proj-ref-redirects-are-disabled-and-a-decl-map-is-missing.js index aec82c48bef6d..c4a7fe0e02056 100644 --- a/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-loaded-and-refd-proj-loading-is-enabled-and-proj-ref-redirects-are-disabled-and-a-decl-map-is-missing.js +++ b/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-loaded-and-refd-proj-loading-is-enabled-and-proj-ref-redirects-are-disabled-and-a-decl-map-is-missing.js @@ -3,9 +3,17 @@ Info seq [hh:mm:ss:mss] Provided types map file "/a/lib/typesMap.json" doesn't Before request //// [/user/username/projects/myproject/a/tsconfig.json] { - "compilerOptions": {"disableReferencedProjectLoad":false,"disableSourceOfProjectReferenceRedirect":true,"composite":true}, - "references": [{ "path": "../b" }] - } + "compilerOptions": { + "disableReferencedProjectLoad": false, + "disableSourceOfProjectReferenceRedirect": true, + "composite": true + }, + "references": [ + { + "path": "../b" + } + ] +} //// [/user/username/projects/myproject/a/index.ts] import { B } from "../b/lib"; @@ -14,11 +22,11 @@ const b: B = new B(); //// [/user/username/projects/myproject/b/tsconfig.json] { -"compilerOptions": { + "compilerOptions": { "declarationMap": true, "outDir": "lib", "composite": true -} + } } //// [/user/username/projects/myproject/b/index.ts] diff --git a/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-loaded-and-refd-proj-loading-is-enabled-and-proj-ref-redirects-are-disabled-and-a-decl-map-is-present.js b/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-loaded-and-refd-proj-loading-is-enabled-and-proj-ref-redirects-are-disabled-and-a-decl-map-is-present.js index c32f98b671823..8f63e0e418051 100644 --- a/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-loaded-and-refd-proj-loading-is-enabled-and-proj-ref-redirects-are-disabled-and-a-decl-map-is-present.js +++ b/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-loaded-and-refd-proj-loading-is-enabled-and-proj-ref-redirects-are-disabled-and-a-decl-map-is-present.js @@ -3,9 +3,17 @@ Info seq [hh:mm:ss:mss] Provided types map file "/a/lib/typesMap.json" doesn't Before request //// [/user/username/projects/myproject/a/tsconfig.json] { - "compilerOptions": {"disableReferencedProjectLoad":false,"disableSourceOfProjectReferenceRedirect":true,"composite":true}, - "references": [{ "path": "../b" }] - } + "compilerOptions": { + "disableReferencedProjectLoad": false, + "disableSourceOfProjectReferenceRedirect": true, + "composite": true + }, + "references": [ + { + "path": "../b" + } + ] +} //// [/user/username/projects/myproject/a/index.ts] import { B } from "../b/lib"; @@ -14,11 +22,11 @@ const b: B = new B(); //// [/user/username/projects/myproject/b/tsconfig.json] { -"compilerOptions": { + "compilerOptions": { "declarationMap": true, "outDir": "lib", "composite": true -} + } } //// [/user/username/projects/myproject/b/index.ts] @@ -38,7 +46,16 @@ export declare class B { //# sourceMappingURL=index.d.ts.map //// [/user/username/projects/myproject/b/lib/index.d.ts.map] -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,qBAAa,CAAC;IACV,CAAC;CACJ"} +{ + "version": 3, + "file": "index.d.ts", + "sourceRoot": "", + "sources": [ + "../index.ts" + ], + "names": [], + "mappings": "AAAA,qBAAa,CAAC;IACV,CAAC;CACJ" +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-loaded-and-refd-proj-loading-is-enabled-and-proj-ref-redirects-are-enabled-and-a-decl-map-is-missing.js b/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-loaded-and-refd-proj-loading-is-enabled-and-proj-ref-redirects-are-enabled-and-a-decl-map-is-missing.js index 4ea91605e6b7b..2abdde57013cd 100644 --- a/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-loaded-and-refd-proj-loading-is-enabled-and-proj-ref-redirects-are-enabled-and-a-decl-map-is-missing.js +++ b/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-loaded-and-refd-proj-loading-is-enabled-and-proj-ref-redirects-are-enabled-and-a-decl-map-is-missing.js @@ -3,9 +3,17 @@ Info seq [hh:mm:ss:mss] Provided types map file "/a/lib/typesMap.json" doesn't Before request //// [/user/username/projects/myproject/a/tsconfig.json] { - "compilerOptions": {"disableReferencedProjectLoad":false,"disableSourceOfProjectReferenceRedirect":false,"composite":true}, - "references": [{ "path": "../b" }] - } + "compilerOptions": { + "disableReferencedProjectLoad": false, + "disableSourceOfProjectReferenceRedirect": false, + "composite": true + }, + "references": [ + { + "path": "../b" + } + ] +} //// [/user/username/projects/myproject/a/index.ts] import { B } from "../b/lib"; @@ -14,11 +22,11 @@ const b: B = new B(); //// [/user/username/projects/myproject/b/tsconfig.json] { -"compilerOptions": { + "compilerOptions": { "declarationMap": true, "outDir": "lib", "composite": true -} + } } //// [/user/username/projects/myproject/b/index.ts] diff --git a/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-loaded-and-refd-proj-loading-is-enabled-and-proj-ref-redirects-are-enabled-and-a-decl-map-is-present.js b/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-loaded-and-refd-proj-loading-is-enabled-and-proj-ref-redirects-are-enabled-and-a-decl-map-is-present.js index c2a2e34480c8d..c0906bddba62d 100644 --- a/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-loaded-and-refd-proj-loading-is-enabled-and-proj-ref-redirects-are-enabled-and-a-decl-map-is-present.js +++ b/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-loaded-and-refd-proj-loading-is-enabled-and-proj-ref-redirects-are-enabled-and-a-decl-map-is-present.js @@ -3,9 +3,17 @@ Info seq [hh:mm:ss:mss] Provided types map file "/a/lib/typesMap.json" doesn't Before request //// [/user/username/projects/myproject/a/tsconfig.json] { - "compilerOptions": {"disableReferencedProjectLoad":false,"disableSourceOfProjectReferenceRedirect":false,"composite":true}, - "references": [{ "path": "../b" }] - } + "compilerOptions": { + "disableReferencedProjectLoad": false, + "disableSourceOfProjectReferenceRedirect": false, + "composite": true + }, + "references": [ + { + "path": "../b" + } + ] +} //// [/user/username/projects/myproject/a/index.ts] import { B } from "../b/lib"; @@ -14,11 +22,11 @@ const b: B = new B(); //// [/user/username/projects/myproject/b/tsconfig.json] { -"compilerOptions": { + "compilerOptions": { "declarationMap": true, "outDir": "lib", "composite": true -} + } } //// [/user/username/projects/myproject/b/index.ts] @@ -38,7 +46,16 @@ export declare class B { //# sourceMappingURL=index.d.ts.map //// [/user/username/projects/myproject/b/lib/index.d.ts.map] -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,qBAAa,CAAC;IACV,CAAC;CACJ"} +{ + "version": 3, + "file": "index.d.ts", + "sourceRoot": "", + "sources": [ + "../index.ts" + ], + "names": [], + "mappings": "AAAA,qBAAa,CAAC;IACV,CAAC;CACJ" +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-not-loaded-and-refd-proj-loading-is-disabled-and-proj-ref-redirects-are-disabled-and-a-decl-map-is-missing.js b/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-not-loaded-and-refd-proj-loading-is-disabled-and-proj-ref-redirects-are-disabled-and-a-decl-map-is-missing.js index 1d82aaea6d622..cee1005894916 100644 --- a/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-not-loaded-and-refd-proj-loading-is-disabled-and-proj-ref-redirects-are-disabled-and-a-decl-map-is-missing.js +++ b/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-not-loaded-and-refd-proj-loading-is-disabled-and-proj-ref-redirects-are-disabled-and-a-decl-map-is-missing.js @@ -3,9 +3,17 @@ Info seq [hh:mm:ss:mss] Provided types map file "/a/lib/typesMap.json" doesn't Before request //// [/user/username/projects/myproject/a/tsconfig.json] { - "compilerOptions": {"disableReferencedProjectLoad":true,"disableSourceOfProjectReferenceRedirect":true,"composite":true}, - "references": [{ "path": "../b" }] - } + "compilerOptions": { + "disableReferencedProjectLoad": true, + "disableSourceOfProjectReferenceRedirect": true, + "composite": true + }, + "references": [ + { + "path": "../b" + } + ] +} //// [/user/username/projects/myproject/a/index.ts] import { B } from "../b/lib"; @@ -14,11 +22,11 @@ const b: B = new B(); //// [/user/username/projects/myproject/b/tsconfig.json] { -"compilerOptions": { + "compilerOptions": { "declarationMap": true, "outDir": "lib", "composite": true -} + } } //// [/user/username/projects/myproject/b/index.ts] diff --git a/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-not-loaded-and-refd-proj-loading-is-disabled-and-proj-ref-redirects-are-disabled-and-a-decl-map-is-present.js b/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-not-loaded-and-refd-proj-loading-is-disabled-and-proj-ref-redirects-are-disabled-and-a-decl-map-is-present.js index 32f1a6fc8d477..21076fe9facc2 100644 --- a/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-not-loaded-and-refd-proj-loading-is-disabled-and-proj-ref-redirects-are-disabled-and-a-decl-map-is-present.js +++ b/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-not-loaded-and-refd-proj-loading-is-disabled-and-proj-ref-redirects-are-disabled-and-a-decl-map-is-present.js @@ -3,9 +3,17 @@ Info seq [hh:mm:ss:mss] Provided types map file "/a/lib/typesMap.json" doesn't Before request //// [/user/username/projects/myproject/a/tsconfig.json] { - "compilerOptions": {"disableReferencedProjectLoad":true,"disableSourceOfProjectReferenceRedirect":true,"composite":true}, - "references": [{ "path": "../b" }] - } + "compilerOptions": { + "disableReferencedProjectLoad": true, + "disableSourceOfProjectReferenceRedirect": true, + "composite": true + }, + "references": [ + { + "path": "../b" + } + ] +} //// [/user/username/projects/myproject/a/index.ts] import { B } from "../b/lib"; @@ -14,11 +22,11 @@ const b: B = new B(); //// [/user/username/projects/myproject/b/tsconfig.json] { -"compilerOptions": { + "compilerOptions": { "declarationMap": true, "outDir": "lib", "composite": true -} + } } //// [/user/username/projects/myproject/b/index.ts] @@ -38,7 +46,16 @@ export declare class B { //# sourceMappingURL=index.d.ts.map //// [/user/username/projects/myproject/b/lib/index.d.ts.map] -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,qBAAa,CAAC;IACV,CAAC;CACJ"} +{ + "version": 3, + "file": "index.d.ts", + "sourceRoot": "", + "sources": [ + "../index.ts" + ], + "names": [], + "mappings": "AAAA,qBAAa,CAAC;IACV,CAAC;CACJ" +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-not-loaded-and-refd-proj-loading-is-disabled-and-proj-ref-redirects-are-enabled-and-a-decl-map-is-missing.js b/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-not-loaded-and-refd-proj-loading-is-disabled-and-proj-ref-redirects-are-enabled-and-a-decl-map-is-missing.js index 5e83bf3f1e8a7..d2b9063cdf4af 100644 --- a/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-not-loaded-and-refd-proj-loading-is-disabled-and-proj-ref-redirects-are-enabled-and-a-decl-map-is-missing.js +++ b/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-not-loaded-and-refd-proj-loading-is-disabled-and-proj-ref-redirects-are-enabled-and-a-decl-map-is-missing.js @@ -3,9 +3,17 @@ Info seq [hh:mm:ss:mss] Provided types map file "/a/lib/typesMap.json" doesn't Before request //// [/user/username/projects/myproject/a/tsconfig.json] { - "compilerOptions": {"disableReferencedProjectLoad":true,"disableSourceOfProjectReferenceRedirect":false,"composite":true}, - "references": [{ "path": "../b" }] - } + "compilerOptions": { + "disableReferencedProjectLoad": true, + "disableSourceOfProjectReferenceRedirect": false, + "composite": true + }, + "references": [ + { + "path": "../b" + } + ] +} //// [/user/username/projects/myproject/a/index.ts] import { B } from "../b/lib"; @@ -14,11 +22,11 @@ const b: B = new B(); //// [/user/username/projects/myproject/b/tsconfig.json] { -"compilerOptions": { + "compilerOptions": { "declarationMap": true, "outDir": "lib", "composite": true -} + } } //// [/user/username/projects/myproject/b/index.ts] diff --git a/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-not-loaded-and-refd-proj-loading-is-disabled-and-proj-ref-redirects-are-enabled-and-a-decl-map-is-present.js b/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-not-loaded-and-refd-proj-loading-is-disabled-and-proj-ref-redirects-are-enabled-and-a-decl-map-is-present.js index 547dad3a2bc43..e38ac5d0fd64b 100644 --- a/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-not-loaded-and-refd-proj-loading-is-disabled-and-proj-ref-redirects-are-enabled-and-a-decl-map-is-present.js +++ b/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-not-loaded-and-refd-proj-loading-is-disabled-and-proj-ref-redirects-are-enabled-and-a-decl-map-is-present.js @@ -3,9 +3,17 @@ Info seq [hh:mm:ss:mss] Provided types map file "/a/lib/typesMap.json" doesn't Before request //// [/user/username/projects/myproject/a/tsconfig.json] { - "compilerOptions": {"disableReferencedProjectLoad":true,"disableSourceOfProjectReferenceRedirect":false,"composite":true}, - "references": [{ "path": "../b" }] - } + "compilerOptions": { + "disableReferencedProjectLoad": true, + "disableSourceOfProjectReferenceRedirect": false, + "composite": true + }, + "references": [ + { + "path": "../b" + } + ] +} //// [/user/username/projects/myproject/a/index.ts] import { B } from "../b/lib"; @@ -14,11 +22,11 @@ const b: B = new B(); //// [/user/username/projects/myproject/b/tsconfig.json] { -"compilerOptions": { + "compilerOptions": { "declarationMap": true, "outDir": "lib", "composite": true -} + } } //// [/user/username/projects/myproject/b/index.ts] @@ -38,7 +46,16 @@ export declare class B { //# sourceMappingURL=index.d.ts.map //// [/user/username/projects/myproject/b/lib/index.d.ts.map] -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,qBAAa,CAAC;IACV,CAAC;CACJ"} +{ + "version": 3, + "file": "index.d.ts", + "sourceRoot": "", + "sources": [ + "../index.ts" + ], + "names": [], + "mappings": "AAAA,qBAAa,CAAC;IACV,CAAC;CACJ" +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-not-loaded-and-refd-proj-loading-is-enabled-and-proj-ref-redirects-are-disabled-and-a-decl-map-is-missing.js b/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-not-loaded-and-refd-proj-loading-is-enabled-and-proj-ref-redirects-are-disabled-and-a-decl-map-is-missing.js index 6b665be4d5c33..5c691316bdbab 100644 --- a/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-not-loaded-and-refd-proj-loading-is-enabled-and-proj-ref-redirects-are-disabled-and-a-decl-map-is-missing.js +++ b/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-not-loaded-and-refd-proj-loading-is-enabled-and-proj-ref-redirects-are-disabled-and-a-decl-map-is-missing.js @@ -3,9 +3,17 @@ Info seq [hh:mm:ss:mss] Provided types map file "/a/lib/typesMap.json" doesn't Before request //// [/user/username/projects/myproject/a/tsconfig.json] { - "compilerOptions": {"disableReferencedProjectLoad":false,"disableSourceOfProjectReferenceRedirect":true,"composite":true}, - "references": [{ "path": "../b" }] - } + "compilerOptions": { + "disableReferencedProjectLoad": false, + "disableSourceOfProjectReferenceRedirect": true, + "composite": true + }, + "references": [ + { + "path": "../b" + } + ] +} //// [/user/username/projects/myproject/a/index.ts] import { B } from "../b/lib"; @@ -14,11 +22,11 @@ const b: B = new B(); //// [/user/username/projects/myproject/b/tsconfig.json] { -"compilerOptions": { + "compilerOptions": { "declarationMap": true, "outDir": "lib", "composite": true -} + } } //// [/user/username/projects/myproject/b/index.ts] diff --git a/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-not-loaded-and-refd-proj-loading-is-enabled-and-proj-ref-redirects-are-disabled-and-a-decl-map-is-present.js b/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-not-loaded-and-refd-proj-loading-is-enabled-and-proj-ref-redirects-are-disabled-and-a-decl-map-is-present.js index 6e1e44da9103f..fb16eb947aae1 100644 --- a/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-not-loaded-and-refd-proj-loading-is-enabled-and-proj-ref-redirects-are-disabled-and-a-decl-map-is-present.js +++ b/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-not-loaded-and-refd-proj-loading-is-enabled-and-proj-ref-redirects-are-disabled-and-a-decl-map-is-present.js @@ -3,9 +3,17 @@ Info seq [hh:mm:ss:mss] Provided types map file "/a/lib/typesMap.json" doesn't Before request //// [/user/username/projects/myproject/a/tsconfig.json] { - "compilerOptions": {"disableReferencedProjectLoad":false,"disableSourceOfProjectReferenceRedirect":true,"composite":true}, - "references": [{ "path": "../b" }] - } + "compilerOptions": { + "disableReferencedProjectLoad": false, + "disableSourceOfProjectReferenceRedirect": true, + "composite": true + }, + "references": [ + { + "path": "../b" + } + ] +} //// [/user/username/projects/myproject/a/index.ts] import { B } from "../b/lib"; @@ -14,11 +22,11 @@ const b: B = new B(); //// [/user/username/projects/myproject/b/tsconfig.json] { -"compilerOptions": { + "compilerOptions": { "declarationMap": true, "outDir": "lib", "composite": true -} + } } //// [/user/username/projects/myproject/b/index.ts] @@ -38,7 +46,16 @@ export declare class B { //# sourceMappingURL=index.d.ts.map //// [/user/username/projects/myproject/b/lib/index.d.ts.map] -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,qBAAa,CAAC;IACV,CAAC;CACJ"} +{ + "version": 3, + "file": "index.d.ts", + "sourceRoot": "", + "sources": [ + "../index.ts" + ], + "names": [], + "mappings": "AAAA,qBAAa,CAAC;IACV,CAAC;CACJ" +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-not-loaded-and-refd-proj-loading-is-enabled-and-proj-ref-redirects-are-enabled-and-a-decl-map-is-missing.js b/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-not-loaded-and-refd-proj-loading-is-enabled-and-proj-ref-redirects-are-enabled-and-a-decl-map-is-missing.js index d8f2f01681773..0aa3e1d9b6c4c 100644 --- a/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-not-loaded-and-refd-proj-loading-is-enabled-and-proj-ref-redirects-are-enabled-and-a-decl-map-is-missing.js +++ b/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-not-loaded-and-refd-proj-loading-is-enabled-and-proj-ref-redirects-are-enabled-and-a-decl-map-is-missing.js @@ -3,9 +3,17 @@ Info seq [hh:mm:ss:mss] Provided types map file "/a/lib/typesMap.json" doesn't Before request //// [/user/username/projects/myproject/a/tsconfig.json] { - "compilerOptions": {"disableReferencedProjectLoad":false,"disableSourceOfProjectReferenceRedirect":false,"composite":true}, - "references": [{ "path": "../b" }] - } + "compilerOptions": { + "disableReferencedProjectLoad": false, + "disableSourceOfProjectReferenceRedirect": false, + "composite": true + }, + "references": [ + { + "path": "../b" + } + ] +} //// [/user/username/projects/myproject/a/index.ts] import { B } from "../b/lib"; @@ -14,11 +22,11 @@ const b: B = new B(); //// [/user/username/projects/myproject/b/tsconfig.json] { -"compilerOptions": { + "compilerOptions": { "declarationMap": true, "outDir": "lib", "composite": true -} + } } //// [/user/username/projects/myproject/b/index.ts] diff --git a/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-not-loaded-and-refd-proj-loading-is-enabled-and-proj-ref-redirects-are-enabled-and-a-decl-map-is-present.js b/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-not-loaded-and-refd-proj-loading-is-enabled-and-proj-ref-redirects-are-enabled-and-a-decl-map-is-present.js index c76de4b8e74a2..0ac96c33fdc7a 100644 --- a/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-not-loaded-and-refd-proj-loading-is-enabled-and-proj-ref-redirects-are-enabled-and-a-decl-map-is-present.js +++ b/tests/baselines/reference/tsserver/projectReferences/find-refs-to-decl-in-other-proj-when-proj-is-not-loaded-and-refd-proj-loading-is-enabled-and-proj-ref-redirects-are-enabled-and-a-decl-map-is-present.js @@ -3,9 +3,17 @@ Info seq [hh:mm:ss:mss] Provided types map file "/a/lib/typesMap.json" doesn't Before request //// [/user/username/projects/myproject/a/tsconfig.json] { - "compilerOptions": {"disableReferencedProjectLoad":false,"disableSourceOfProjectReferenceRedirect":false,"composite":true}, - "references": [{ "path": "../b" }] - } + "compilerOptions": { + "disableReferencedProjectLoad": false, + "disableSourceOfProjectReferenceRedirect": false, + "composite": true + }, + "references": [ + { + "path": "../b" + } + ] +} //// [/user/username/projects/myproject/a/index.ts] import { B } from "../b/lib"; @@ -14,11 +22,11 @@ const b: B = new B(); //// [/user/username/projects/myproject/b/tsconfig.json] { -"compilerOptions": { + "compilerOptions": { "declarationMap": true, "outDir": "lib", "composite": true -} + } } //// [/user/username/projects/myproject/b/index.ts] @@ -38,7 +46,16 @@ export declare class B { //# sourceMappingURL=index.d.ts.map //// [/user/username/projects/myproject/b/lib/index.d.ts.map] -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,qBAAa,CAAC;IACV,CAAC;CACJ"} +{ + "version": 3, + "file": "index.d.ts", + "sourceRoot": "", + "sources": [ + "../index.ts" + ], + "names": [], + "mappings": "AAAA,qBAAa,CAAC;IACV,CAAC;CACJ" +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/projectReferences/finding-local-reference-doesnt-load-ancestor/sibling-projects.js b/tests/baselines/reference/tsserver/projectReferences/finding-local-reference-doesnt-load-ancestor/sibling-projects.js index 7101f27da9500..9952921457d50 100644 --- a/tests/baselines/reference/tsserver/projectReferences/finding-local-reference-doesnt-load-ancestor/sibling-projects.js +++ b/tests/baselines/reference/tsserver/projectReferences/finding-local-reference-doesnt-load-ancestor/sibling-projects.js @@ -15,10 +15,30 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/solution/tsconfig.json] -{"files":[],"include":[],"references":[{"path":"./compiler"},{"path":"./services"}]} +{ + "files": [], + "include": [], + "references": [ + { + "path": "./compiler" + }, + { + "path": "./services" + } + ] +} //// [/user/username/projects/solution/compiler/tsconfig.json] -{"compilerOptions":{"composite":true,"module":"none"},"files":["./types.ts","./program.ts"]} +{ + "compilerOptions": { + "composite": true, + "module": "none" + }, + "files": [ + "./types.ts", + "./program.ts" + ] +} //// [/user/username/projects/solution/compiler/types.ts] @@ -38,7 +58,19 @@ interface Array { length: number; [n: number]: T; } } //// [/user/username/projects/solution/services/tsconfig.json] -{"compilerOptions":{"composite":true},"files":["./services.ts"],"references":[{"path":"../compiler"}]} +{ + "compilerOptions": { + "composite": true + }, + "files": [ + "./services.ts" + ], + "references": [ + { + "path": "../compiler" + } + ] +} //// [/user/username/projects/solution/services/services.ts] diff --git a/tests/baselines/reference/tsserver/projectReferences/finding-references-in-overlapping-projects.js b/tests/baselines/reference/tsserver/projectReferences/finding-references-in-overlapping-projects.js index 97b6eef9fee5b..e2a3d1eb90ae8 100644 --- a/tests/baselines/reference/tsserver/projectReferences/finding-references-in-overlapping-projects.js +++ b/tests/baselines/reference/tsserver/projectReferences/finding-references-in-overlapping-projects.js @@ -15,10 +15,35 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/solution/tsconfig.json] -{"files":[],"include":[],"references":[{"path":"./a"},{"path":"./b"},{"path":"./c"},{"path":"./d"}]} +{ + "files": [], + "include": [], + "references": [ + { + "path": "./a" + }, + { + "path": "./b" + }, + { + "path": "./c" + }, + { + "path": "./d" + } + ] +} //// [/user/username/projects/solution/a/tsconfig.json] -{"compilerOptions":{"composite":true,"module":"none"},"files":["./index.ts"]} +{ + "compilerOptions": { + "composite": true, + "module": "none" + }, + "files": [ + "./index.ts" + ] +} //// [/user/username/projects/solution/a/index.ts] @@ -27,7 +52,19 @@ interface Array { length: number; [n: number]: T; } } //// [/user/username/projects/solution/b/tsconfig.json] -{"compilerOptions":{"composite":true},"files":["./index.ts"],"references":[{"path":"../a"}]} +{ + "compilerOptions": { + "composite": true + }, + "files": [ + "./index.ts" + ], + "references": [ + { + "path": "../a" + } + ] +} //// [/user/username/projects/solution/b/index.ts] @@ -38,7 +75,19 @@ interface Array { length: number; [n: number]: T; } } //// [/user/username/projects/solution/c/tsconfig.json] -{"compilerOptions":{"composite":true},"files":["./index.ts"],"references":[{"path":"../b"}]} +{ + "compilerOptions": { + "composite": true + }, + "files": [ + "./index.ts" + ], + "references": [ + { + "path": "../b" + } + ] +} //// [/user/username/projects/solution/c/index.ts] @@ -49,7 +98,19 @@ interface Array { length: number; [n: number]: T; } //// [/user/username/projects/solution/d/tsconfig.json] -{"compilerOptions":{"composite":true},"files":["./index.ts"],"references":[{"path":"../c"}]} +{ + "compilerOptions": { + "composite": true + }, + "files": [ + "./index.ts" + ], + "references": [ + { + "path": "../c" + } + ] +} //// [/user/username/projects/solution/d/index.ts] diff --git a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-and-solution-is-built-with-preserveSymlinks.js b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-and-solution-is-built-with-preserveSymlinks.js index f98eee42b2f33..c00bcc484de1c 100644 --- a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-and-solution-is-built-with-preserveSymlinks.js +++ b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-and-solution-is-built-with-preserveSymlinks.js @@ -15,13 +15,41 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/packages/B/package.json] -{"main":"lib/index.js","types":"lib/index.d.ts"} +{ + "main": "lib/index.js", + "types": "lib/index.d.ts" +} //// [/user/username/projects/myproject/packages/A/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true,"preserveSymlinks":true},"include":["src"],"references":[{"path":"../B"}]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true, + "preserveSymlinks": true + }, + "include": [ + "src" + ], + "references": [ + { + "path": "../B" + } + ] +} //// [/user/username/projects/myproject/packages/B/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true,"preserveSymlinks":true},"include":["src"]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true, + "preserveSymlinks": true + }, + "include": [ + "src" + ] +} //// [/user/username/projects/myproject/packages/A/src/index.ts] import { foo } from 'b'; diff --git a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-and-solution-is-built.js b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-and-solution-is-built.js index 158bbe9a9ff9f..e723f27d8afdd 100644 --- a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-and-solution-is-built.js +++ b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-and-solution-is-built.js @@ -15,13 +15,39 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/packages/B/package.json] -{"main":"lib/index.js","types":"lib/index.d.ts"} +{ + "main": "lib/index.js", + "types": "lib/index.d.ts" +} //// [/user/username/projects/myproject/packages/A/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true},"include":["src"],"references":[{"path":"../B"}]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true + }, + "include": [ + "src" + ], + "references": [ + { + "path": "../B" + } + ] +} //// [/user/username/projects/myproject/packages/B/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true},"include":["src"]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true + }, + "include": [ + "src" + ] +} //// [/user/username/projects/myproject/packages/A/src/index.ts] import { foo } from 'b'; diff --git a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-and-solution-is-not-built-with-preserveSymlinks.js b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-and-solution-is-not-built-with-preserveSymlinks.js index 2fb72f746cfa6..b9d9256b59983 100644 --- a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-and-solution-is-not-built-with-preserveSymlinks.js +++ b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-and-solution-is-not-built-with-preserveSymlinks.js @@ -15,13 +15,41 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/packages/B/package.json] -{"main":"lib/index.js","types":"lib/index.d.ts"} +{ + "main": "lib/index.js", + "types": "lib/index.d.ts" +} //// [/user/username/projects/myproject/packages/A/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true,"preserveSymlinks":true},"include":["src"],"references":[{"path":"../B"}]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true, + "preserveSymlinks": true + }, + "include": [ + "src" + ], + "references": [ + { + "path": "../B" + } + ] +} //// [/user/username/projects/myproject/packages/B/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true,"preserveSymlinks":true},"include":["src"]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true, + "preserveSymlinks": true + }, + "include": [ + "src" + ] +} //// [/user/username/projects/myproject/packages/A/src/index.ts] import { foo } from 'b'; diff --git a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-and-solution-is-not-built.js b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-and-solution-is-not-built.js index 798599fe8b03f..f45340535a90b 100644 --- a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-and-solution-is-not-built.js +++ b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-and-solution-is-not-built.js @@ -15,13 +15,39 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/packages/B/package.json] -{"main":"lib/index.js","types":"lib/index.d.ts"} +{ + "main": "lib/index.js", + "types": "lib/index.d.ts" +} //// [/user/username/projects/myproject/packages/A/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true},"include":["src"],"references":[{"path":"../B"}]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true + }, + "include": [ + "src" + ], + "references": [ + { + "path": "../B" + } + ] +} //// [/user/username/projects/myproject/packages/B/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true},"include":["src"]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true + }, + "include": [ + "src" + ] +} //// [/user/username/projects/myproject/packages/A/src/index.ts] import { foo } from 'b'; diff --git a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-with-scoped-package-and-solution-is-built-with-preserveSymlinks.js b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-with-scoped-package-and-solution-is-built-with-preserveSymlinks.js index 22cd557970598..5d73a05763aab 100644 --- a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-with-scoped-package-and-solution-is-built-with-preserveSymlinks.js +++ b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-with-scoped-package-and-solution-is-built-with-preserveSymlinks.js @@ -15,13 +15,41 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/packages/B/package.json] -{"main":"lib/index.js","types":"lib/index.d.ts"} +{ + "main": "lib/index.js", + "types": "lib/index.d.ts" +} //// [/user/username/projects/myproject/packages/A/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true,"preserveSymlinks":true},"include":["src"],"references":[{"path":"../B"}]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true, + "preserveSymlinks": true + }, + "include": [ + "src" + ], + "references": [ + { + "path": "../B" + } + ] +} //// [/user/username/projects/myproject/packages/B/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true,"preserveSymlinks":true},"include":["src"]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true, + "preserveSymlinks": true + }, + "include": [ + "src" + ] +} //// [/user/username/projects/myproject/packages/A/src/index.ts] import { foo } from '@issue/b'; diff --git a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-with-scoped-package-and-solution-is-built.js b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-with-scoped-package-and-solution-is-built.js index 5944f0efb842d..18bb3491fc159 100644 --- a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-with-scoped-package-and-solution-is-built.js +++ b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-with-scoped-package-and-solution-is-built.js @@ -15,13 +15,39 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/packages/B/package.json] -{"main":"lib/index.js","types":"lib/index.d.ts"} +{ + "main": "lib/index.js", + "types": "lib/index.d.ts" +} //// [/user/username/projects/myproject/packages/A/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true},"include":["src"],"references":[{"path":"../B"}]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true + }, + "include": [ + "src" + ], + "references": [ + { + "path": "../B" + } + ] +} //// [/user/username/projects/myproject/packages/B/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true},"include":["src"]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true + }, + "include": [ + "src" + ] +} //// [/user/username/projects/myproject/packages/A/src/index.ts] import { foo } from '@issue/b'; diff --git a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-with-scoped-package-and-solution-is-not-built-with-preserveSymlinks.js b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-with-scoped-package-and-solution-is-not-built-with-preserveSymlinks.js index 178b397bd75aa..fe24a2ec0ae30 100644 --- a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-with-scoped-package-and-solution-is-not-built-with-preserveSymlinks.js +++ b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-with-scoped-package-and-solution-is-not-built-with-preserveSymlinks.js @@ -15,13 +15,41 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/packages/B/package.json] -{"main":"lib/index.js","types":"lib/index.d.ts"} +{ + "main": "lib/index.js", + "types": "lib/index.d.ts" +} //// [/user/username/projects/myproject/packages/A/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true,"preserveSymlinks":true},"include":["src"],"references":[{"path":"../B"}]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true, + "preserveSymlinks": true + }, + "include": [ + "src" + ], + "references": [ + { + "path": "../B" + } + ] +} //// [/user/username/projects/myproject/packages/B/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true,"preserveSymlinks":true},"include":["src"]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true, + "preserveSymlinks": true + }, + "include": [ + "src" + ] +} //// [/user/username/projects/myproject/packages/A/src/index.ts] import { foo } from '@issue/b'; diff --git a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-with-scoped-package-and-solution-is-not-built.js b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-with-scoped-package-and-solution-is-not-built.js index b441eedf44d15..bc482c63d2567 100644 --- a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-with-scoped-package-and-solution-is-not-built.js +++ b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-with-scoped-package-and-solution-is-not-built.js @@ -15,13 +15,39 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/packages/B/package.json] -{"main":"lib/index.js","types":"lib/index.d.ts"} +{ + "main": "lib/index.js", + "types": "lib/index.d.ts" +} //// [/user/username/projects/myproject/packages/A/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true},"include":["src"],"references":[{"path":"../B"}]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true + }, + "include": [ + "src" + ], + "references": [ + { + "path": "../B" + } + ] +} //// [/user/username/projects/myproject/packages/B/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true},"include":["src"]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true + }, + "include": [ + "src" + ] +} //// [/user/username/projects/myproject/packages/A/src/index.ts] import { foo } from '@issue/b'; diff --git a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-and-solution-is-built-with-preserveSymlinks.js b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-and-solution-is-built-with-preserveSymlinks.js index 9e3dc86825ecc..4bf624d5881f2 100644 --- a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-and-solution-is-built-with-preserveSymlinks.js +++ b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-and-solution-is-built-with-preserveSymlinks.js @@ -18,10 +18,35 @@ interface Array { length: number; [n: number]: T; } {} //// [/user/username/projects/myproject/packages/A/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true,"preserveSymlinks":true},"include":["src"],"references":[{"path":"../B"}]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true, + "preserveSymlinks": true + }, + "include": [ + "src" + ], + "references": [ + { + "path": "../B" + } + ] +} //// [/user/username/projects/myproject/packages/B/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true,"preserveSymlinks":true},"include":["src"]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true, + "preserveSymlinks": true + }, + "include": [ + "src" + ] +} //// [/user/username/projects/myproject/packages/A/src/test.ts] import { foo } from 'b/lib/foo'; diff --git a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-and-solution-is-built.js b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-and-solution-is-built.js index add87636562cf..0e4e63c8bc7c8 100644 --- a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-and-solution-is-built.js +++ b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-and-solution-is-built.js @@ -18,10 +18,33 @@ interface Array { length: number; [n: number]: T; } {} //// [/user/username/projects/myproject/packages/A/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true},"include":["src"],"references":[{"path":"../B"}]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true + }, + "include": [ + "src" + ], + "references": [ + { + "path": "../B" + } + ] +} //// [/user/username/projects/myproject/packages/B/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true},"include":["src"]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true + }, + "include": [ + "src" + ] +} //// [/user/username/projects/myproject/packages/A/src/test.ts] import { foo } from 'b/lib/foo'; diff --git a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-and-solution-is-not-built-with-preserveSymlinks.js b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-and-solution-is-not-built-with-preserveSymlinks.js index 960fbc06e2476..4bded6b84ea84 100644 --- a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-and-solution-is-not-built-with-preserveSymlinks.js +++ b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-and-solution-is-not-built-with-preserveSymlinks.js @@ -18,10 +18,35 @@ interface Array { length: number; [n: number]: T; } {} //// [/user/username/projects/myproject/packages/A/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true,"preserveSymlinks":true},"include":["src"],"references":[{"path":"../B"}]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true, + "preserveSymlinks": true + }, + "include": [ + "src" + ], + "references": [ + { + "path": "../B" + } + ] +} //// [/user/username/projects/myproject/packages/B/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true,"preserveSymlinks":true},"include":["src"]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true, + "preserveSymlinks": true + }, + "include": [ + "src" + ] +} //// [/user/username/projects/myproject/packages/A/src/test.ts] import { foo } from 'b/lib/foo'; diff --git a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-and-solution-is-not-built.js b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-and-solution-is-not-built.js index 433dda878075c..d66e7c2ccfb87 100644 --- a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-and-solution-is-not-built.js +++ b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-and-solution-is-not-built.js @@ -18,10 +18,33 @@ interface Array { length: number; [n: number]: T; } {} //// [/user/username/projects/myproject/packages/A/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true},"include":["src"],"references":[{"path":"../B"}]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true + }, + "include": [ + "src" + ], + "references": [ + { + "path": "../B" + } + ] +} //// [/user/username/projects/myproject/packages/B/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true},"include":["src"]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true + }, + "include": [ + "src" + ] +} //// [/user/username/projects/myproject/packages/A/src/test.ts] import { foo } from 'b/lib/foo'; diff --git a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-with-scoped-package-and-solution-is-built-with-preserveSymlinks.js b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-with-scoped-package-and-solution-is-built-with-preserveSymlinks.js index daf0df0cbedfe..bb92fd1cfeb57 100644 --- a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-with-scoped-package-and-solution-is-built-with-preserveSymlinks.js +++ b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-with-scoped-package-and-solution-is-built-with-preserveSymlinks.js @@ -18,10 +18,35 @@ interface Array { length: number; [n: number]: T; } {} //// [/user/username/projects/myproject/packages/A/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true,"preserveSymlinks":true},"include":["src"],"references":[{"path":"../B"}]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true, + "preserveSymlinks": true + }, + "include": [ + "src" + ], + "references": [ + { + "path": "../B" + } + ] +} //// [/user/username/projects/myproject/packages/B/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true,"preserveSymlinks":true},"include":["src"]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true, + "preserveSymlinks": true + }, + "include": [ + "src" + ] +} //// [/user/username/projects/myproject/packages/A/src/test.ts] import { foo } from '@issue/b/lib/foo'; diff --git a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-with-scoped-package-and-solution-is-built.js b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-with-scoped-package-and-solution-is-built.js index 6f15a33705985..3b8b38cb50d06 100644 --- a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-with-scoped-package-and-solution-is-built.js +++ b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-with-scoped-package-and-solution-is-built.js @@ -18,10 +18,33 @@ interface Array { length: number; [n: number]: T; } {} //// [/user/username/projects/myproject/packages/A/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true},"include":["src"],"references":[{"path":"../B"}]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true + }, + "include": [ + "src" + ], + "references": [ + { + "path": "../B" + } + ] +} //// [/user/username/projects/myproject/packages/B/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true},"include":["src"]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true + }, + "include": [ + "src" + ] +} //// [/user/username/projects/myproject/packages/A/src/test.ts] import { foo } from '@issue/b/lib/foo'; diff --git a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-with-scoped-package-and-solution-is-not-built-with-preserveSymlinks.js b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-with-scoped-package-and-solution-is-not-built-with-preserveSymlinks.js index 9089e80064cb7..31346344e66a3 100644 --- a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-with-scoped-package-and-solution-is-not-built-with-preserveSymlinks.js +++ b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-with-scoped-package-and-solution-is-not-built-with-preserveSymlinks.js @@ -18,10 +18,35 @@ interface Array { length: number; [n: number]: T; } {} //// [/user/username/projects/myproject/packages/A/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true,"preserveSymlinks":true},"include":["src"],"references":[{"path":"../B"}]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true, + "preserveSymlinks": true + }, + "include": [ + "src" + ], + "references": [ + { + "path": "../B" + } + ] +} //// [/user/username/projects/myproject/packages/B/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true,"preserveSymlinks":true},"include":["src"]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true, + "preserveSymlinks": true + }, + "include": [ + "src" + ] +} //// [/user/username/projects/myproject/packages/A/src/test.ts] import { foo } from '@issue/b/lib/foo'; diff --git a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-with-scoped-package-and-solution-is-not-built.js b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-with-scoped-package-and-solution-is-not-built.js index 25b1691acb281..16aa9a9326636 100644 --- a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-with-scoped-package-and-solution-is-not-built.js +++ b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-with-scoped-package-and-solution-is-not-built.js @@ -18,10 +18,33 @@ interface Array { length: number; [n: number]: T; } {} //// [/user/username/projects/myproject/packages/A/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true},"include":["src"],"references":[{"path":"../B"}]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true + }, + "include": [ + "src" + ], + "references": [ + { + "path": "../B" + } + ] +} //// [/user/username/projects/myproject/packages/B/tsconfig.json] -{"compilerOptions":{"outDir":"lib","rootDir":"src","composite":true},"include":["src"]} +{ + "compilerOptions": { + "outDir": "lib", + "rootDir": "src", + "composite": true + }, + "include": [ + "src" + ] +} //// [/user/username/projects/myproject/packages/A/src/test.ts] import { foo } from '@issue/b/lib/foo'; diff --git a/tests/baselines/reference/tsserver/projectReferences/new-file-is-added-to-the-referenced-project-when-referenced-project-is-not-open-with-disableSourceOfProjectReferenceRedirect.js b/tests/baselines/reference/tsserver/projectReferences/new-file-is-added-to-the-referenced-project-when-referenced-project-is-not-open-with-disableSourceOfProjectReferenceRedirect.js index a17304fa1963e..40f7cc58eadd5 100644 --- a/tests/baselines/reference/tsserver/projectReferences/new-file-is-added-to-the-referenced-project-when-referenced-project-is-not-open-with-disableSourceOfProjectReferenceRedirect.js +++ b/tests/baselines/reference/tsserver/projectReferences/new-file-is-added-to-the-referenced-project-when-referenced-project-is-not-open-with-disableSourceOfProjectReferenceRedirect.js @@ -2,7 +2,15 @@ currentDirectory:: / useCaseSensitiveFileNames: false Info seq [hh:mm:ss:mss] Provided types map file "/a/lib/typesMap.json" doesn't exist Before request //// [/user/username/projects/myproject/projects/project1/tsconfig.json] -{"compilerOptions":{"module":"none","composite":true},"exclude":["temp"]} +{ + "compilerOptions": { + "module": "none", + "composite": true + }, + "exclude": [ + "temp" + ] +} //// [/user/username/projects/myproject/projects/project1/class1.ts] class class1 {} @@ -11,7 +19,18 @@ class class1 {} declare class class1 {} //// [/user/username/projects/myproject/projects/project2/tsconfig.json] -{"compilerOptions":{"module":"none","composite":true,"disableSourceOfProjectReferenceRedirect":true},"references":[{"path":"../project1"}]} +{ + "compilerOptions": { + "module": "none", + "composite": true, + "disableSourceOfProjectReferenceRedirect": true + }, + "references": [ + { + "path": "../project1" + } + ] +} //// [/user/username/projects/myproject/projects/project2/class2.ts] class class2 {} diff --git a/tests/baselines/reference/tsserver/projectReferences/new-file-is-added-to-the-referenced-project-when-referenced-project-is-not-open.js b/tests/baselines/reference/tsserver/projectReferences/new-file-is-added-to-the-referenced-project-when-referenced-project-is-not-open.js index c2e1f83efe976..521adfaab2051 100644 --- a/tests/baselines/reference/tsserver/projectReferences/new-file-is-added-to-the-referenced-project-when-referenced-project-is-not-open.js +++ b/tests/baselines/reference/tsserver/projectReferences/new-file-is-added-to-the-referenced-project-when-referenced-project-is-not-open.js @@ -2,7 +2,15 @@ currentDirectory:: / useCaseSensitiveFileNames: false Info seq [hh:mm:ss:mss] Provided types map file "/a/lib/typesMap.json" doesn't exist Before request //// [/user/username/projects/myproject/projects/project1/tsconfig.json] -{"compilerOptions":{"module":"none","composite":true},"exclude":["temp"]} +{ + "compilerOptions": { + "module": "none", + "composite": true + }, + "exclude": [ + "temp" + ] +} //// [/user/username/projects/myproject/projects/project1/class1.ts] class class1 {} @@ -11,7 +19,17 @@ class class1 {} declare class class1 {} //// [/user/username/projects/myproject/projects/project2/tsconfig.json] -{"compilerOptions":{"module":"none","composite":true},"references":[{"path":"../project1"}]} +{ + "compilerOptions": { + "module": "none", + "composite": true + }, + "references": [ + { + "path": "../project1" + } + ] +} //// [/user/username/projects/myproject/projects/project2/class2.ts] class class2 {} diff --git a/tests/baselines/reference/tsserver/projectReferences/new-file-is-added-to-the-referenced-project-when-referenced-project-is-open-with-disableSourceOfProjectReferenceRedirect.js b/tests/baselines/reference/tsserver/projectReferences/new-file-is-added-to-the-referenced-project-when-referenced-project-is-open-with-disableSourceOfProjectReferenceRedirect.js index 5055cf58afc8d..116f2e6c5dcf8 100644 --- a/tests/baselines/reference/tsserver/projectReferences/new-file-is-added-to-the-referenced-project-when-referenced-project-is-open-with-disableSourceOfProjectReferenceRedirect.js +++ b/tests/baselines/reference/tsserver/projectReferences/new-file-is-added-to-the-referenced-project-when-referenced-project-is-open-with-disableSourceOfProjectReferenceRedirect.js @@ -2,7 +2,15 @@ currentDirectory:: / useCaseSensitiveFileNames: false Info seq [hh:mm:ss:mss] Provided types map file "/a/lib/typesMap.json" doesn't exist Before request //// [/user/username/projects/myproject/projects/project1/tsconfig.json] -{"compilerOptions":{"module":"none","composite":true},"exclude":["temp"]} +{ + "compilerOptions": { + "module": "none", + "composite": true + }, + "exclude": [ + "temp" + ] +} //// [/user/username/projects/myproject/projects/project1/class1.ts] class class1 {} @@ -11,7 +19,18 @@ class class1 {} declare class class1 {} //// [/user/username/projects/myproject/projects/project2/tsconfig.json] -{"compilerOptions":{"module":"none","composite":true,"disableSourceOfProjectReferenceRedirect":true},"references":[{"path":"../project1"}]} +{ + "compilerOptions": { + "module": "none", + "composite": true, + "disableSourceOfProjectReferenceRedirect": true + }, + "references": [ + { + "path": "../project1" + } + ] +} //// [/user/username/projects/myproject/projects/project2/class2.ts] class class2 {} diff --git a/tests/baselines/reference/tsserver/projectReferences/new-file-is-added-to-the-referenced-project-when-referenced-project-is-open.js b/tests/baselines/reference/tsserver/projectReferences/new-file-is-added-to-the-referenced-project-when-referenced-project-is-open.js index 037299a5c6763..8278eb6c11a3e 100644 --- a/tests/baselines/reference/tsserver/projectReferences/new-file-is-added-to-the-referenced-project-when-referenced-project-is-open.js +++ b/tests/baselines/reference/tsserver/projectReferences/new-file-is-added-to-the-referenced-project-when-referenced-project-is-open.js @@ -2,7 +2,15 @@ currentDirectory:: / useCaseSensitiveFileNames: false Info seq [hh:mm:ss:mss] Provided types map file "/a/lib/typesMap.json" doesn't exist Before request //// [/user/username/projects/myproject/projects/project1/tsconfig.json] -{"compilerOptions":{"module":"none","composite":true},"exclude":["temp"]} +{ + "compilerOptions": { + "module": "none", + "composite": true + }, + "exclude": [ + "temp" + ] +} //// [/user/username/projects/myproject/projects/project1/class1.ts] class class1 {} @@ -11,7 +19,17 @@ class class1 {} declare class class1 {} //// [/user/username/projects/myproject/projects/project2/tsconfig.json] -{"compilerOptions":{"module":"none","composite":true},"references":[{"path":"../project1"}]} +{ + "compilerOptions": { + "module": "none", + "composite": true + }, + "references": [ + { + "path": "../project1" + } + ] +} //// [/user/username/projects/myproject/projects/project2/class2.ts] class class2 {} diff --git a/tests/baselines/reference/tsserver/projectReferences/project-is-directly-referenced-by-solution.js b/tests/baselines/reference/tsserver/projectReferences/project-is-directly-referenced-by-solution.js index e1047f97e2af0..4595dd193c208 100644 --- a/tests/baselines/reference/tsserver/projectReferences/project-is-directly-referenced-by-solution.js +++ b/tests/baselines/reference/tsserver/projectReferences/project-is-directly-referenced-by-solution.js @@ -216,10 +216,26 @@ Info seq [hh:mm:ss:mss] getDefaultProject for /user/username/projects/myproject Info seq [hh:mm:ss:mss] findDefaultConfiguredProject for /user/username/projects/myproject/src/main.ts: /user/username/projects/myproject/tsconfig-src.json Before request //// [/user/username/projects/myproject/tsconfig-src.json] -{"compilerOptions":{"composite":true,"outDir":"./target/","baseUrl":"./src/"},"include":["./src/**/*"]} +{ + "compilerOptions": { + "composite": true, + "outDir": "./target/", + "baseUrl": "./src/" + }, + "include": [ + "./src/**/*" + ] +} //// [/user/username/projects/myproject/tsconfig.json] -{"references":[{"path":"./tsconfig-src.json"}],"files":[]} +{ + "references": [ + { + "path": "./tsconfig-src.json" + } + ], + "files": [] +} //// [/user/username/projects/myproject/src/main.ts] import { foo } from 'helpers/functions'; @@ -250,17 +266,39 @@ export { foo }; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/target/src/main.d.ts.map] -{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../src/main.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAC,GAAG,EAAC,CAAC"} +{ + "version": 3, + "file": "main.d.ts", + "sourceRoot": "", + "sources": [ + "../../src/main.ts" + ], + "names": [], + "mappings": "AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAC,GAAG,EAAC,CAAC" +} //// [/user/username/projects/myproject/target/src/helpers/functions.d.ts] export declare const foo = 1; //# sourceMappingURL=functions.d.ts.map //// [/user/username/projects/myproject/target/src/helpers/functions.d.ts.map] -{"version":3,"file":"functions.d.ts","sourceRoot":"","sources":["../../../src/helpers/functions.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,GAAG,IAAI,CAAC"} +{ + "version": 3, + "file": "functions.d.ts", + "sourceRoot": "", + "sources": [ + "../../../src/helpers/functions.ts" + ], + "names": [], + "mappings": "AAAA,eAAO,MAAM,GAAG,IAAI,CAAC" +} //// [/user/username/projects/myproject/indirect3/tsconfig.json] -{"compilerOptions":{"baseUrl":"../target/src/"}} +{ + "compilerOptions": { + "baseUrl": "../target/src/" + } +} //// [/user/username/projects/myproject/indirect3/main.ts] import { foo } from 'main'; diff --git a/tests/baselines/reference/tsserver/projectReferences/project-is-indirectly-referenced-by-solution.js b/tests/baselines/reference/tsserver/projectReferences/project-is-indirectly-referenced-by-solution.js index 48078c0a052e1..e669e3f30ee56 100644 --- a/tests/baselines/reference/tsserver/projectReferences/project-is-indirectly-referenced-by-solution.js +++ b/tests/baselines/reference/tsserver/projectReferences/project-is-indirectly-referenced-by-solution.js @@ -256,10 +256,29 @@ Info seq [hh:mm:ss:mss] getDefaultProject for /user/username/projects/myproject Info seq [hh:mm:ss:mss] findDefaultConfiguredProject for /user/username/projects/myproject/src/main.ts: /user/username/projects/myproject/tsconfig-src.json Before request //// [/user/username/projects/myproject/tsconfig-src.json] -{"compilerOptions":{"composite":true,"outDir":"./target/","baseUrl":"./src/"},"include":["./src/**/*"]} +{ + "compilerOptions": { + "composite": true, + "outDir": "./target/", + "baseUrl": "./src/" + }, + "include": [ + "./src/**/*" + ] +} //// [/user/username/projects/myproject/tsconfig.json] -{"references":[{"path":"./tsconfig-indirect1.json"},{"path":"./tsconfig-indirect2.json"}],"files":[]} +{ + "references": [ + { + "path": "./tsconfig-indirect1.json" + }, + { + "path": "./tsconfig-indirect2.json" + } + ], + "files": [] +} //// [/user/username/projects/myproject/src/main.ts] import { foo } from 'helpers/functions'; @@ -290,17 +309,39 @@ export { foo }; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/target/src/main.d.ts.map] -{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../src/main.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAC,GAAG,EAAC,CAAC"} +{ + "version": 3, + "file": "main.d.ts", + "sourceRoot": "", + "sources": [ + "../../src/main.ts" + ], + "names": [], + "mappings": "AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAC,GAAG,EAAC,CAAC" +} //// [/user/username/projects/myproject/target/src/helpers/functions.d.ts] export declare const foo = 1; //# sourceMappingURL=functions.d.ts.map //// [/user/username/projects/myproject/target/src/helpers/functions.d.ts.map] -{"version":3,"file":"functions.d.ts","sourceRoot":"","sources":["../../../src/helpers/functions.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,GAAG,IAAI,CAAC"} +{ + "version": 3, + "file": "functions.d.ts", + "sourceRoot": "", + "sources": [ + "../../../src/helpers/functions.ts" + ], + "names": [], + "mappings": "AAAA,eAAO,MAAM,GAAG,IAAI,CAAC" +} //// [/user/username/projects/myproject/indirect3/tsconfig.json] -{"compilerOptions":{"baseUrl":"../target/src/"}} +{ + "compilerOptions": { + "baseUrl": "../target/src/" + } +} //// [/user/username/projects/myproject/indirect3/main.ts] import { foo } from 'main'; @@ -308,7 +349,21 @@ foo; export function bar() {} //// [/user/username/projects/myproject/tsconfig-indirect1.json] -{"compilerOptions":{"composite":true,"outDir":"./target/","baseUrl":"./src/"},"files":["./indirect1/main.ts"],"references":[{"path":"./tsconfig-src.json"}]} +{ + "compilerOptions": { + "composite": true, + "outDir": "./target/", + "baseUrl": "./src/" + }, + "files": [ + "./indirect1/main.ts" + ], + "references": [ + { + "path": "./tsconfig-src.json" + } + ] +} //// [/user/username/projects/myproject/indirect1/main.ts] import { foo } from 'main'; @@ -316,7 +371,21 @@ foo; export function bar() {} //// [/user/username/projects/myproject/tsconfig-indirect2.json] -{"compilerOptions":{"composite":true,"outDir":"./target/","baseUrl":"./src/"},"files":["./indirect2/main.ts"],"references":[{"path":"./tsconfig-src.json"}]} +{ + "compilerOptions": { + "composite": true, + "outDir": "./target/", + "baseUrl": "./src/" + }, + "files": [ + "./indirect2/main.ts" + ], + "references": [ + { + "path": "./tsconfig-src.json" + } + ] +} //// [/user/username/projects/myproject/indirect2/main.ts] import { foo } from 'main'; diff --git a/tests/baselines/reference/tsserver/projectReferences/reusing-d.ts-files-from-composite-and-non-composite-projects.js b/tests/baselines/reference/tsserver/projectReferences/reusing-d.ts-files-from-composite-and-non-composite-projects.js index f8dd4d3f99346..01e613ad13bb4 100644 --- a/tests/baselines/reference/tsserver/projectReferences/reusing-d.ts-files-from-composite-and-non-composite-projects.js +++ b/tests/baselines/reference/tsserver/projectReferences/reusing-d.ts-files-from-composite-and-non-composite-projects.js @@ -21,7 +21,19 @@ import { b } from "@ref/compositeb/b"; export const x = 10; //// [/user/username/projects/myproject/compositea/tsconfig.json] -{"compilerOptions":{"composite":true,"outDir":"../dist/","rootDir":"../","baseUrl":"../","paths":{"@ref/*":["./dist/*"]}}} +{ + "compilerOptions": { + "composite": true, + "outDir": "../dist/", + "rootDir": "../", + "baseUrl": "../", + "paths": { + "@ref/*": [ + "./dist/*" + ] + } + } +} //// [/user/username/projects/myproject/dist/compositeb/b.d.ts] export declare function b(): void; @@ -30,13 +42,42 @@ export declare function b(): void; export function b() {} //// [/user/username/projects/myproject/compositeb/tsconfig.json] -{"compilerOptions":{"composite":true,"outDir":"../dist/","rootDir":"../","baseUrl":"../","paths":{"@ref/*":["./dist/*"]}}} +{ + "compilerOptions": { + "composite": true, + "outDir": "../dist/", + "rootDir": "../", + "baseUrl": "../", + "paths": { + "@ref/*": [ + "./dist/*" + ] + } + } +} //// [/user/username/projects/myproject/compositec/c.ts] import { b } from "@ref/compositeb/b"; //// [/user/username/projects/myproject/compositec/tsconfig.json] -{"compilerOptions":{"composite":true,"outDir":"../dist/","rootDir":"../","baseUrl":"../","paths":{"@ref/*":["./*"]}},"references":[{"path":"../compositeb"}]} +{ + "compilerOptions": { + "composite": true, + "outDir": "../dist/", + "rootDir": "../", + "baseUrl": "../", + "paths": { + "@ref/*": [ + "./*" + ] + } + }, + "references": [ + { + "path": "../compositeb" + } + ] +} Info seq [hh:mm:ss:mss] Search path: /user/username/projects/myproject/compositea diff --git a/tests/baselines/reference/tsserver/projectReferences/root-file-is-file-from-referenced-project-and-using-declaration-maps.js b/tests/baselines/reference/tsserver/projectReferences/root-file-is-file-from-referenced-project-and-using-declaration-maps.js index a59fb56c503d2..97d3f6ec7dc89 100644 --- a/tests/baselines/reference/tsserver/projectReferences/root-file-is-file-from-referenced-project-and-using-declaration-maps.js +++ b/tests/baselines/reference/tsserver/projectReferences/root-file-is-file-from-referenced-project-and-using-declaration-maps.js @@ -2,7 +2,18 @@ currentDirectory:: / useCaseSensitiveFileNames: false Info seq [hh:mm:ss:mss] Provided types map file "/a/lib/typesMap.json" doesn't exist Before request //// [/user/username/projects/project/src/common/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"outDir":"../../out","baseUrl":"..","disableSourceOfProjectReferenceRedirect":true},"include":["./**/*"]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "outDir": "../../out", + "baseUrl": "..", + "disableSourceOfProjectReferenceRedirect": true + }, + "include": [ + "./**/*" + ] +} //// [/user/username/projects/project/src/common/input/keyboard.ts] function bar() { return "just a random function so .d.ts location doesnt match"; } @@ -16,7 +27,29 @@ function testEvaluateKeyboardEvent() { //// [/user/username/projects/project/src/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"outDir":"../out","baseUrl":".","paths":{"common/*":["./common/*"]},"tsBuildInfoFile":"../out/src.tsconfig.tsbuildinfo","disableSourceOfProjectReferenceRedirect":true},"include":["./**/*"],"references":[{"path":"./common"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "outDir": "../out", + "baseUrl": ".", + "paths": { + "common/*": [ + "./common/*" + ] + }, + "tsBuildInfoFile": "../out/src.tsconfig.tsbuildinfo", + "disableSourceOfProjectReferenceRedirect": true + }, + "include": [ + "./**/*" + ], + "references": [ + { + "path": "./common" + } + ] +} //// [/user/username/projects/project/src/terminal.ts] import { evaluateKeyboardEvent } from 'common/input/keyboard'; diff --git a/tests/baselines/reference/tsserver/projectReferences/root-file-is-file-from-referenced-project.js b/tests/baselines/reference/tsserver/projectReferences/root-file-is-file-from-referenced-project.js index e2ed889512f80..cbf0d998a7f38 100644 --- a/tests/baselines/reference/tsserver/projectReferences/root-file-is-file-from-referenced-project.js +++ b/tests/baselines/reference/tsserver/projectReferences/root-file-is-file-from-referenced-project.js @@ -2,7 +2,18 @@ currentDirectory:: / useCaseSensitiveFileNames: false Info seq [hh:mm:ss:mss] Provided types map file "/a/lib/typesMap.json" doesn't exist Before request //// [/user/username/projects/project/src/common/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"outDir":"../../out","baseUrl":"..","disableSourceOfProjectReferenceRedirect":false},"include":["./**/*"]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "outDir": "../../out", + "baseUrl": "..", + "disableSourceOfProjectReferenceRedirect": false + }, + "include": [ + "./**/*" + ] +} //// [/user/username/projects/project/src/common/input/keyboard.ts] function bar() { return "just a random function so .d.ts location doesnt match"; } @@ -16,7 +27,29 @@ function testEvaluateKeyboardEvent() { //// [/user/username/projects/project/src/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"outDir":"../out","baseUrl":".","paths":{"common/*":["./common/*"]},"tsBuildInfoFile":"../out/src.tsconfig.tsbuildinfo","disableSourceOfProjectReferenceRedirect":false},"include":["./**/*"],"references":[{"path":"./common"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "outDir": "../out", + "baseUrl": ".", + "paths": { + "common/*": [ + "./common/*" + ] + }, + "tsBuildInfoFile": "../out/src.tsconfig.tsbuildinfo", + "disableSourceOfProjectReferenceRedirect": false + }, + "include": [ + "./**/*" + ], + "references": [ + { + "path": "./common" + } + ] +} //// [/user/username/projects/project/src/terminal.ts] import { evaluateKeyboardEvent } from 'common/input/keyboard'; diff --git a/tests/baselines/reference/tsserver/projectReferences/solution-with-its-own-files-and-project-found-is-not-solution-but-references-open-file-through-project-reference.js b/tests/baselines/reference/tsserver/projectReferences/solution-with-its-own-files-and-project-found-is-not-solution-but-references-open-file-through-project-reference.js index 4739d31777b3c..764f35adedc93 100644 --- a/tests/baselines/reference/tsserver/projectReferences/solution-with-its-own-files-and-project-found-is-not-solution-but-references-open-file-through-project-reference.js +++ b/tests/baselines/reference/tsserver/projectReferences/solution-with-its-own-files-and-project-found-is-not-solution-but-references-open-file-through-project-reference.js @@ -238,10 +238,32 @@ Info seq [hh:mm:ss:mss] getDefaultProject for /user/username/projects/myproject Info seq [hh:mm:ss:mss] findDefaultConfiguredProject for /user/username/projects/myproject/src/main.ts: /user/username/projects/myproject/tsconfig-src.json Before request //// [/user/username/projects/myproject/tsconfig-src.json] -{"compilerOptions":{"composite":true,"outDir":"./target/","baseUrl":"./src/"},"include":["./src/**/*"]} +{ + "compilerOptions": { + "composite": true, + "outDir": "./target/", + "baseUrl": "./src/" + }, + "include": [ + "./src/**/*" + ] +} //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"outDir":"./target/","baseUrl":"./src/"},"references":[{"path":"./tsconfig-src.json"}],"files":["./own/main.ts"]} +{ + "compilerOptions": { + "outDir": "./target/", + "baseUrl": "./src/" + }, + "references": [ + { + "path": "./tsconfig-src.json" + } + ], + "files": [ + "./own/main.ts" + ] +} //// [/user/username/projects/myproject/src/main.ts] import { foo } from 'helpers/functions'; @@ -272,17 +294,39 @@ export { foo }; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/target/src/main.d.ts.map] -{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../src/main.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAC,GAAG,EAAC,CAAC"} +{ + "version": 3, + "file": "main.d.ts", + "sourceRoot": "", + "sources": [ + "../../src/main.ts" + ], + "names": [], + "mappings": "AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAC,GAAG,EAAC,CAAC" +} //// [/user/username/projects/myproject/target/src/helpers/functions.d.ts] export declare const foo = 1; //# sourceMappingURL=functions.d.ts.map //// [/user/username/projects/myproject/target/src/helpers/functions.d.ts.map] -{"version":3,"file":"functions.d.ts","sourceRoot":"","sources":["../../../src/helpers/functions.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,GAAG,IAAI,CAAC"} +{ + "version": 3, + "file": "functions.d.ts", + "sourceRoot": "", + "sources": [ + "../../../src/helpers/functions.ts" + ], + "names": [], + "mappings": "AAAA,eAAO,MAAM,GAAG,IAAI,CAAC" +} //// [/user/username/projects/myproject/indirect3/tsconfig.json] -{"compilerOptions":{"baseUrl":"../target/src/"}} +{ + "compilerOptions": { + "baseUrl": "../target/src/" + } +} //// [/user/username/projects/myproject/indirect3/main.ts] import { foo } from 'main'; diff --git a/tests/baselines/reference/tsserver/projectReferences/solution-with-its-own-files-and-project-is-indirectly-referenced-by-solution.js b/tests/baselines/reference/tsserver/projectReferences/solution-with-its-own-files-and-project-is-indirectly-referenced-by-solution.js index 5060e7287ff3d..bedfb99f76802 100644 --- a/tests/baselines/reference/tsserver/projectReferences/solution-with-its-own-files-and-project-is-indirectly-referenced-by-solution.js +++ b/tests/baselines/reference/tsserver/projectReferences/solution-with-its-own-files-and-project-is-indirectly-referenced-by-solution.js @@ -282,10 +282,35 @@ Info seq [hh:mm:ss:mss] getDefaultProject for /user/username/projects/myproject Info seq [hh:mm:ss:mss] findDefaultConfiguredProject for /user/username/projects/myproject/src/main.ts: /user/username/projects/myproject/tsconfig-src.json Before request //// [/user/username/projects/myproject/tsconfig-src.json] -{"compilerOptions":{"composite":true,"outDir":"./target/","baseUrl":"./src/"},"include":["./src/**/*"]} +{ + "compilerOptions": { + "composite": true, + "outDir": "./target/", + "baseUrl": "./src/" + }, + "include": [ + "./src/**/*" + ] +} //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"outDir":"./target/","baseUrl":"./indirect1/"},"references":[{"path":"./tsconfig-indirect1.json"},{"path":"./tsconfig-indirect2.json"}],"files":["./own/main.ts"]} +{ + "compilerOptions": { + "outDir": "./target/", + "baseUrl": "./indirect1/" + }, + "references": [ + { + "path": "./tsconfig-indirect1.json" + }, + { + "path": "./tsconfig-indirect2.json" + } + ], + "files": [ + "./own/main.ts" + ] +} //// [/user/username/projects/myproject/src/main.ts] import { foo } from 'helpers/functions'; @@ -316,17 +341,39 @@ export { foo }; //# sourceMappingURL=main.d.ts.map //// [/user/username/projects/myproject/target/src/main.d.ts.map] -{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../src/main.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAC,GAAG,EAAC,CAAC"} +{ + "version": 3, + "file": "main.d.ts", + "sourceRoot": "", + "sources": [ + "../../src/main.ts" + ], + "names": [], + "mappings": "AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAC,GAAG,EAAC,CAAC" +} //// [/user/username/projects/myproject/target/src/helpers/functions.d.ts] export declare const foo = 1; //# sourceMappingURL=functions.d.ts.map //// [/user/username/projects/myproject/target/src/helpers/functions.d.ts.map] -{"version":3,"file":"functions.d.ts","sourceRoot":"","sources":["../../../src/helpers/functions.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,GAAG,IAAI,CAAC"} +{ + "version": 3, + "file": "functions.d.ts", + "sourceRoot": "", + "sources": [ + "../../../src/helpers/functions.ts" + ], + "names": [], + "mappings": "AAAA,eAAO,MAAM,GAAG,IAAI,CAAC" +} //// [/user/username/projects/myproject/indirect3/tsconfig.json] -{"compilerOptions":{"baseUrl":"../target/src/"}} +{ + "compilerOptions": { + "baseUrl": "../target/src/" + } +} //// [/user/username/projects/myproject/indirect3/main.ts] import { foo } from 'main'; @@ -334,7 +381,21 @@ foo; export function bar() {} //// [/user/username/projects/myproject/tsconfig-indirect1.json] -{"compilerOptions":{"composite":true,"outDir":"./target/","baseUrl":"./src/"},"files":["./indirect1/main.ts"],"references":[{"path":"./tsconfig-src.json"}]} +{ + "compilerOptions": { + "composite": true, + "outDir": "./target/", + "baseUrl": "./src/" + }, + "files": [ + "./indirect1/main.ts" + ], + "references": [ + { + "path": "./tsconfig-src.json" + } + ] +} //// [/user/username/projects/myproject/indirect1/main.ts] import { foo } from 'main'; @@ -342,7 +403,21 @@ foo; export function bar() {} //// [/user/username/projects/myproject/tsconfig-indirect2.json] -{"compilerOptions":{"composite":true,"outDir":"./target/","baseUrl":"./src/"},"files":["./indirect2/main.ts"],"references":[{"path":"./tsconfig-src.json"}]} +{ + "compilerOptions": { + "composite": true, + "outDir": "./target/", + "baseUrl": "./src/" + }, + "files": [ + "./indirect2/main.ts" + ], + "references": [ + { + "path": "./tsconfig-src.json" + } + ] +} //// [/user/username/projects/myproject/indirect2/main.ts] import { foo } from 'main'; diff --git a/tests/baselines/reference/tsserver/projectReferences/special-handling-of-localness-when-using-arrow-function-as-object-literal-property-types.js b/tests/baselines/reference/tsserver/projectReferences/special-handling-of-localness-when-using-arrow-function-as-object-literal-property-types.js index 77c6f884cc3cd..7e1677ce3681d 100644 --- a/tests/baselines/reference/tsserver/projectReferences/special-handling-of-localness-when-using-arrow-function-as-object-literal-property-types.js +++ b/tests/baselines/reference/tsserver/projectReferences/special-handling-of-localness-when-using-arrow-function-as-object-literal-property-types.js @@ -15,24 +15,71 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/solution/tsconfig.json] -{"files":[],"references":[{"path":"./api"},{"path":"./app"}]} +{ + "files": [], + "references": [ + { + "path": "./api" + }, + { + "path": "./app" + } + ] +} //// [/user/username/projects/solution/api/tsconfig.json] -{"compilerOptions":{"composite":true,"outDir":"dist","rootDir":"src"},"include":["src"],"references":[{"path":"../shared"}]} +{ + "compilerOptions": { + "composite": true, + "outDir": "dist", + "rootDir": "src" + }, + "include": [ + "src" + ], + "references": [ + { + "path": "../shared" + } + ] +} //// [/user/username/projects/solution/api/src/server.ts] import * as shared from "../../shared/dist"; shared.foo.bar(); //// [/user/username/projects/solution/app/tsconfig.json] -{"compilerOptions":{"composite":true,"outDir":"dist","rootDir":"src"},"include":["src"],"references":[{"path":"../shared"}]} +{ + "compilerOptions": { + "composite": true, + "outDir": "dist", + "rootDir": "src" + }, + "include": [ + "src" + ], + "references": [ + { + "path": "../shared" + } + ] +} //// [/user/username/projects/solution/app/src/app.ts] import * as shared from "../../shared/dist"; shared.foo.bar(); //// [/user/username/projects/solution/shared/tsconfig.json] -{"compilerOptions":{"composite":true,"outDir":"dist","rootDir":"src"},"include":["src"]} +{ + "compilerOptions": { + "composite": true, + "outDir": "dist", + "rootDir": "src" + }, + "include": [ + "src" + ] +} //// [/user/username/projects/solution/shared/src/index.ts] export const foo = { bar: () => { } }; diff --git a/tests/baselines/reference/tsserver/projectReferences/special-handling-of-localness-when-using-arrow-function-as-object-literal-property.js b/tests/baselines/reference/tsserver/projectReferences/special-handling-of-localness-when-using-arrow-function-as-object-literal-property.js index 13d5350b441d2..6faee38d62ba8 100644 --- a/tests/baselines/reference/tsserver/projectReferences/special-handling-of-localness-when-using-arrow-function-as-object-literal-property.js +++ b/tests/baselines/reference/tsserver/projectReferences/special-handling-of-localness-when-using-arrow-function-as-object-literal-property.js @@ -15,24 +15,71 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/solution/tsconfig.json] -{"files":[],"references":[{"path":"./api"},{"path":"./app"}]} +{ + "files": [], + "references": [ + { + "path": "./api" + }, + { + "path": "./app" + } + ] +} //// [/user/username/projects/solution/api/tsconfig.json] -{"compilerOptions":{"composite":true,"outDir":"dist","rootDir":"src"},"include":["src"],"references":[{"path":"../shared"}]} +{ + "compilerOptions": { + "composite": true, + "outDir": "dist", + "rootDir": "src" + }, + "include": [ + "src" + ], + "references": [ + { + "path": "../shared" + } + ] +} //// [/user/username/projects/solution/api/src/server.ts] import * as shared from "../../shared/dist"; shared.foo.bar(); //// [/user/username/projects/solution/app/tsconfig.json] -{"compilerOptions":{"composite":true,"outDir":"dist","rootDir":"src"},"include":["src"],"references":[{"path":"../shared"}]} +{ + "compilerOptions": { + "composite": true, + "outDir": "dist", + "rootDir": "src" + }, + "include": [ + "src" + ], + "references": [ + { + "path": "../shared" + } + ] +} //// [/user/username/projects/solution/app/src/app.ts] import * as shared from "../../shared/dist"; shared.foo.bar(); //// [/user/username/projects/solution/shared/tsconfig.json] -{"compilerOptions":{"composite":true,"outDir":"dist","rootDir":"src"},"include":["src"]} +{ + "compilerOptions": { + "composite": true, + "outDir": "dist", + "rootDir": "src" + }, + "include": [ + "src" + ] +} //// [/user/username/projects/solution/shared/src/index.ts] const local = { bar: () => { } }; diff --git a/tests/baselines/reference/tsserver/projectReferences/special-handling-of-localness-when-using-arrow-function-assignment.js b/tests/baselines/reference/tsserver/projectReferences/special-handling-of-localness-when-using-arrow-function-assignment.js index 0dfceea734ff6..01e95481525ba 100644 --- a/tests/baselines/reference/tsserver/projectReferences/special-handling-of-localness-when-using-arrow-function-assignment.js +++ b/tests/baselines/reference/tsserver/projectReferences/special-handling-of-localness-when-using-arrow-function-assignment.js @@ -15,24 +15,71 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/solution/tsconfig.json] -{"files":[],"references":[{"path":"./api"},{"path":"./app"}]} +{ + "files": [], + "references": [ + { + "path": "./api" + }, + { + "path": "./app" + } + ] +} //// [/user/username/projects/solution/api/tsconfig.json] -{"compilerOptions":{"composite":true,"outDir":"dist","rootDir":"src"},"include":["src"],"references":[{"path":"../shared"}]} +{ + "compilerOptions": { + "composite": true, + "outDir": "dist", + "rootDir": "src" + }, + "include": [ + "src" + ], + "references": [ + { + "path": "../shared" + } + ] +} //// [/user/username/projects/solution/api/src/server.ts] import * as shared from "../../shared/dist"; shared.dog(); //// [/user/username/projects/solution/app/tsconfig.json] -{"compilerOptions":{"composite":true,"outDir":"dist","rootDir":"src"},"include":["src"],"references":[{"path":"../shared"}]} +{ + "compilerOptions": { + "composite": true, + "outDir": "dist", + "rootDir": "src" + }, + "include": [ + "src" + ], + "references": [ + { + "path": "../shared" + } + ] +} //// [/user/username/projects/solution/app/src/app.ts] import * as shared from "../../shared/dist"; shared.dog(); //// [/user/username/projects/solution/shared/tsconfig.json] -{"compilerOptions":{"composite":true,"outDir":"dist","rootDir":"src"},"include":["src"]} +{ + "compilerOptions": { + "composite": true, + "outDir": "dist", + "rootDir": "src" + }, + "include": [ + "src" + ] +} //// [/user/username/projects/solution/shared/src/index.ts] export const dog = () => { }; diff --git a/tests/baselines/reference/tsserver/projectReferences/special-handling-of-localness-when-using-method-of-class-expression.js b/tests/baselines/reference/tsserver/projectReferences/special-handling-of-localness-when-using-method-of-class-expression.js index cd6adfcf26741..5a25f36c59751 100644 --- a/tests/baselines/reference/tsserver/projectReferences/special-handling-of-localness-when-using-method-of-class-expression.js +++ b/tests/baselines/reference/tsserver/projectReferences/special-handling-of-localness-when-using-method-of-class-expression.js @@ -15,10 +15,34 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/solution/tsconfig.json] -{"files":[],"references":[{"path":"./api"},{"path":"./app"}]} +{ + "files": [], + "references": [ + { + "path": "./api" + }, + { + "path": "./app" + } + ] +} //// [/user/username/projects/solution/api/tsconfig.json] -{"compilerOptions":{"composite":true,"outDir":"dist","rootDir":"src"},"include":["src"],"references":[{"path":"../shared"}]} +{ + "compilerOptions": { + "composite": true, + "outDir": "dist", + "rootDir": "src" + }, + "include": [ + "src" + ], + "references": [ + { + "path": "../shared" + } + ] +} //// [/user/username/projects/solution/api/src/server.ts] import * as shared from "../../shared/dist"; @@ -26,7 +50,21 @@ const instance = new shared.foo(); instance.fly(); //// [/user/username/projects/solution/app/tsconfig.json] -{"compilerOptions":{"composite":true,"outDir":"dist","rootDir":"src"},"include":["src"],"references":[{"path":"../shared"}]} +{ + "compilerOptions": { + "composite": true, + "outDir": "dist", + "rootDir": "src" + }, + "include": [ + "src" + ], + "references": [ + { + "path": "../shared" + } + ] +} //// [/user/username/projects/solution/app/src/app.ts] import * as shared from "../../shared/dist"; @@ -34,7 +72,16 @@ const instance = new shared.foo(); instance.fly(); //// [/user/username/projects/solution/shared/tsconfig.json] -{"compilerOptions":{"composite":true,"outDir":"dist","rootDir":"src"},"include":["src"]} +{ + "compilerOptions": { + "composite": true, + "outDir": "dist", + "rootDir": "src" + }, + "include": [ + "src" + ] +} //// [/user/username/projects/solution/shared/src/index.ts] export const foo = class { fly() {} }; diff --git a/tests/baselines/reference/tsserver/projectReferences/special-handling-of-localness-when-using-object-literal-property.js b/tests/baselines/reference/tsserver/projectReferences/special-handling-of-localness-when-using-object-literal-property.js index 0a2ce0d39fdc2..42595b5cd4faa 100644 --- a/tests/baselines/reference/tsserver/projectReferences/special-handling-of-localness-when-using-object-literal-property.js +++ b/tests/baselines/reference/tsserver/projectReferences/special-handling-of-localness-when-using-object-literal-property.js @@ -15,24 +15,71 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/solution/tsconfig.json] -{"files":[],"references":[{"path":"./api"},{"path":"./app"}]} +{ + "files": [], + "references": [ + { + "path": "./api" + }, + { + "path": "./app" + } + ] +} //// [/user/username/projects/solution/api/tsconfig.json] -{"compilerOptions":{"composite":true,"outDir":"dist","rootDir":"src"},"include":["src"],"references":[{"path":"../shared"}]} +{ + "compilerOptions": { + "composite": true, + "outDir": "dist", + "rootDir": "src" + }, + "include": [ + "src" + ], + "references": [ + { + "path": "../shared" + } + ] +} //// [/user/username/projects/solution/api/src/server.ts] import * as shared from "../../shared/dist"; shared.foo.baz; //// [/user/username/projects/solution/app/tsconfig.json] -{"compilerOptions":{"composite":true,"outDir":"dist","rootDir":"src"},"include":["src"],"references":[{"path":"../shared"}]} +{ + "compilerOptions": { + "composite": true, + "outDir": "dist", + "rootDir": "src" + }, + "include": [ + "src" + ], + "references": [ + { + "path": "../shared" + } + ] +} //// [/user/username/projects/solution/app/src/app.ts] import * as shared from "../../shared/dist"; shared.foo.baz; //// [/user/username/projects/solution/shared/tsconfig.json] -{"compilerOptions":{"composite":true,"outDir":"dist","rootDir":"src"},"include":["src"]} +{ + "compilerOptions": { + "composite": true, + "outDir": "dist", + "rootDir": "src" + }, + "include": [ + "src" + ] +} //// [/user/username/projects/solution/shared/src/index.ts] export const foo = { baz: "BAZ" }; diff --git a/tests/baselines/reference/tsserver/projectReferences/when-files-from-two-projects-are-open-and-one-project-references.js b/tests/baselines/reference/tsserver/projectReferences/when-files-from-two-projects-are-open-and-one-project-references.js index 8db312d103dcf..351ec8d95ae75 100644 --- a/tests/baselines/reference/tsserver/projectReferences/when-files-from-two-projects-are-open-and-one-project-references.js +++ b/tests/baselines/reference/tsserver/projectReferences/when-files-from-two-projects-are-open-and-one-project-references.js @@ -18,73 +18,186 @@ interface Array { length: number; [n: number]: T; } export const mainConst = 10; //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[{"path":"../core"},{"path":"../indirect"},{"path":"../noCoreRef1"},{"path":"../indirectDisabledChildLoad1"},{"path":"../indirectDisabledChildLoad2"},{"path":"../refToCoreRef3"},{"path":"../indirectNoCoreRef"}]} +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../core" + }, + { + "path": "../indirect" + }, + { + "path": "../noCoreRef1" + }, + { + "path": "../indirectDisabledChildLoad1" + }, + { + "path": "../indirectDisabledChildLoad2" + }, + { + "path": "../refToCoreRef3" + }, + { + "path": "../indirectNoCoreRef" + } + ] +} //// [/user/username/projects/myproject/core/src/file1.ts] export const coreConst = 10; //// [/user/username/projects/myproject/core/tsconfig.json] -{"compilerOptions":{"composite":true}} +{ + "compilerOptions": { + "composite": true + } +} //// [/user/username/projects/myproject/noCoreRef1/src/file1.ts] export const noCoreRef1Const = 10; //// [/user/username/projects/myproject/noCoreRef1/tsconfig.json] -{"compilerOptions":{"composite":true}} +{ + "compilerOptions": { + "composite": true + } +} //// [/user/username/projects/myproject/indirect/src/file1.ts] export const indirectConst = 10; //// [/user/username/projects/myproject/indirect/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[{"path":"../coreRef1"}]} +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../coreRef1" + } + ] +} //// [/user/username/projects/myproject/coreRef1/src/file1.ts] export const coreRef1Const = 10; //// [/user/username/projects/myproject/coreRef1/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[{"path":"../core"}]} +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../core" + } + ] +} //// [/user/username/projects/myproject/indirectDisabledChildLoad1/src/file1.ts] export const indirectDisabledChildLoad1Const = 10; //// [/user/username/projects/myproject/indirectDisabledChildLoad1/tsconfig.json] -{"compilerOptions":{"composite":true,"disableReferencedProjectLoad":true},"references":[{"path":"../coreRef2"}]} +{ + "compilerOptions": { + "composite": true, + "disableReferencedProjectLoad": true + }, + "references": [ + { + "path": "../coreRef2" + } + ] +} //// [/user/username/projects/myproject/coreRef2/src/file1.ts] export const coreRef2Const = 10; //// [/user/username/projects/myproject/coreRef2/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[{"path":"../core"}]} +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../core" + } + ] +} //// [/user/username/projects/myproject/indirectDisabledChildLoad2/src/file1.ts] export const indirectDisabledChildLoad2Const = 10; //// [/user/username/projects/myproject/indirectDisabledChildLoad2/tsconfig.json] -{"compilerOptions":{"composite":true,"disableReferencedProjectLoad":true},"references":[{"path":"../coreRef3"}]} +{ + "compilerOptions": { + "composite": true, + "disableReferencedProjectLoad": true + }, + "references": [ + { + "path": "../coreRef3" + } + ] +} //// [/user/username/projects/myproject/coreRef3/src/file1.ts] export const coreRef3Const = 10; //// [/user/username/projects/myproject/coreRef3/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[{"path":"../core"}]} +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../core" + } + ] +} //// [/user/username/projects/myproject/refToCoreRef3/src/file1.ts] export const refToCoreRef3Const = 10; //// [/user/username/projects/myproject/refToCoreRef3/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[{"path":"../coreRef3"}]} +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../coreRef3" + } + ] +} //// [/user/username/projects/myproject/indirectNoCoreRef/src/file1.ts] export const indirectNoCoreRefConst = 10; //// [/user/username/projects/myproject/indirectNoCoreRef/tsconfig.json] -{"compilerOptions":{"composite":true},"references":[{"path":"../noCoreRef2"}]} +{ + "compilerOptions": { + "composite": true + }, + "references": [ + { + "path": "../noCoreRef2" + } + ] +} //// [/user/username/projects/myproject/noCoreRef2/src/file1.ts] export const noCoreRef2Const = 10; //// [/user/username/projects/myproject/noCoreRef2/tsconfig.json] -{"compilerOptions":{"composite":true}} +{ + "compilerOptions": { + "composite": true + } +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/projectReferences/when-the-referenced-projects-have-allowJs-and-emitDeclarationOnly.js b/tests/baselines/reference/tsserver/projectReferences/when-the-referenced-projects-have-allowJs-and-emitDeclarationOnly.js index 24b802717a1d8..8f25e7fdb8547 100644 --- a/tests/baselines/reference/tsserver/projectReferences/when-the-referenced-projects-have-allowJs-and-emitDeclarationOnly.js +++ b/tests/baselines/reference/tsserver/projectReferences/when-the-referenced-projects-have-allowJs-and-emitDeclarationOnly.js @@ -15,10 +15,26 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/packages/emit-composite/tsconfig.json] -{"compilerOptions":{"composite":true,"allowJs":true,"emitDeclarationOnly":true,"outDir":"lib","rootDir":"src"},"include":["src"]} +{ + "compilerOptions": { + "composite": true, + "allowJs": true, + "emitDeclarationOnly": true, + "outDir": "lib", + "rootDir": "src" + }, + "include": [ + "src" + ] +} //// [/user/username/projects/myproject/packages/emit-composite/package.json] -{"name":"emit-composite","version":"1.0.0","main":"src/index.js","typings":"lib/index.d.ts"} +{ + "name": "emit-composite", + "version": "1.0.0", + "main": "src/index.js", + "typings": "lib/index.d.ts" +} //// [/user/username/projects/myproject/packages/emit-composite/src/index.js] const testModule = require('./testModule'); @@ -37,7 +53,16 @@ module.exports = { } //// [/user/username/projects/myproject/packages/consumer/tsconfig.json] -{"include":["src"],"references":[{"path":"../emit-composite"}]} +{ + "include": [ + "src" + ], + "references": [ + { + "path": "../emit-composite" + } + ] +} //// [/user/username/projects/myproject/packages/consumer/src/index.ts] import { testCompositeFunction } from 'emit-composite'; diff --git a/tests/baselines/reference/tsserver/projectReferences/with-disableSolutionSearching-solution-and-siblings-are-not-loaded.js b/tests/baselines/reference/tsserver/projectReferences/with-disableSolutionSearching-solution-and-siblings-are-not-loaded.js index a39eddba21bbe..eec14d0e47d79 100644 --- a/tests/baselines/reference/tsserver/projectReferences/with-disableSolutionSearching-solution-and-siblings-are-not-loaded.js +++ b/tests/baselines/reference/tsserver/projectReferences/with-disableSolutionSearching-solution-and-siblings-are-not-loaded.js @@ -15,10 +15,31 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/solution/tsconfig.json] -{"files":[],"include":[],"references":[{"path":"./compiler"},{"path":"./services"}]} +{ + "files": [], + "include": [], + "references": [ + { + "path": "./compiler" + }, + { + "path": "./services" + } + ] +} //// [/user/username/projects/solution/compiler/tsconfig.json] -{"compilerOptions":{"composite":true,"module":"none","disableSolutionSearching":true},"files":["./types.ts","./program.ts"]} +{ + "compilerOptions": { + "composite": true, + "module": "none", + "disableSolutionSearching": true + }, + "files": [ + "./types.ts", + "./program.ts" + ] +} //// [/user/username/projects/solution/compiler/types.ts] @@ -38,7 +59,19 @@ interface Array { length: number; [n: number]: T; } } //// [/user/username/projects/solution/services/tsconfig.json] -{"compilerOptions":{"composite":true},"files":["./services.ts"],"references":[{"path":"../compiler"}]} +{ + "compilerOptions": { + "composite": true + }, + "files": [ + "./services.ts" + ], + "references": [ + { + "path": "../compiler" + } + ] +} //// [/user/username/projects/solution/services/services.ts] diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dts-changes-with-timeout-before-request.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dts-changes-with-timeout-before-request.js index 87658c04c7872..648671b1504d2 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dts-changes-with-timeout-before-request.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dts-changes-with-timeout-before-request.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,12 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + } +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dts-changes.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dts-changes.js index eb6a06d54a878..85963140621ee 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dts-changes.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dts-changes.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,12 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + } +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dts-created.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dts-created.js index 50bb9102cb40d..f483030d423ad 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dts-created.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dts-created.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,12 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + } +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dts-deleted.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dts-deleted.js index 295dadc5d75b2..0eb4b43fd132b 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dts-deleted.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dts-deleted.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,12 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + } +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dts-not-present.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dts-not-present.js index 122f0b5aca176..6ffddda0e43d3 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dts-not-present.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dts-not-present.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,12 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + } +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dtsMap-changes-with-timeout-before-request.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dtsMap-changes-with-timeout-before-request.js index 836253988a44a..c81faffbad1f5 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dtsMap-changes-with-timeout-before-request.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dtsMap-changes-with-timeout-before-request.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,12 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + } +} //// [/a/lib/lib.d.ts] /// @@ -483,7 +494,16 @@ Before running Timeout callback:: count: 2 1: /user/username/projects/myproject/dependency/tsconfig.json 2: *ensureProjectForOpenFiles* //// [/user/username/projects/myproject/decls/FnS.d.ts.map] -{"version":3,"file":"FnS.d.ts","sourceRoot":"","sources":["../dependency/FnS.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,eAAO,MAAM,CAAC,KAAK,CAAC"} +{ + "version": 3, + "file": "FnS.d.ts", + "sourceRoot": "", + "sources": [ + "../dependency/FnS.ts" + ], + "names": [], + "mappings": "AAAA,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,eAAO,MAAM,CAAC,KAAK,CAAC" +} Info seq [hh:mm:ss:mss] Running: /user/username/projects/myproject/dependency/tsconfig.json diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dtsMap-changes.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dtsMap-changes.js index c7983e6a2d5d6..84bd987c3293d 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dtsMap-changes.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dtsMap-changes.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,12 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + } +} //// [/a/lib/lib.d.ts] /// @@ -481,7 +492,16 @@ Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/decls/FnS.d.ts.map 1:: WatchInfo: /user/username/projects/myproject/decls/FnS.d.ts.map 500 undefined WatchType: Closed Script info Before request //// [/user/username/projects/myproject/decls/FnS.d.ts.map] -{"version":3,"file":"FnS.d.ts","sourceRoot":"","sources":["../dependency/FnS.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,eAAO,MAAM,CAAC,KAAK,CAAC"} +{ + "version": 3, + "file": "FnS.d.ts", + "sourceRoot": "", + "sources": [ + "../dependency/FnS.ts" + ], + "names": [], + "mappings": "AAAA,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,eAAO,MAAM,CAAC,KAAK,CAAC" +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dtsMap-created.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dtsMap-created.js index 01c45d1b6473c..18a1d08c90d4c 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dtsMap-created.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dtsMap-created.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,12 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + } +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dtsMap-deleted.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dtsMap-deleted.js index b36dbcf592257..96ed7027052f6 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dtsMap-deleted.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dtsMap-deleted.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,12 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + } +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dtsMap-not-present.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dtsMap-not-present.js index 85addf92cd164..5fe20c9783623 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dtsMap-not-present.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/dependency-dtsMap-not-present.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,12 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + } +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/rename-locations.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/rename-locations.js index d7a188edf9848..9683549fafdf0 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/rename-locations.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/rename-locations.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,12 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + } +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/usage-file-changes-with-timeout-before-request.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/usage-file-changes-with-timeout-before-request.js index 620eed69b97f8..859af9d702b95 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/usage-file-changes-with-timeout-before-request.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/usage-file-changes-with-timeout-before-request.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,12 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + } +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/usage-file-changes.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/usage-file-changes.js index d87ea6be246dc..79548c38be0d3 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/usage-file-changes.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configHasNoReference/usage-file-changes.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,12 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + } +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dts-changes-with-timeout-before-request.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dts-changes-with-timeout-before-request.js index 3647e34458876..4bf4ac86b8133 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dts-changes-with-timeout-before-request.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dts-changes-with-timeout-before-request.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,17 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dts-changes.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dts-changes.js index fdf5eb16294cd..0864b09b1b787 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dts-changes.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dts-changes.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,17 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dts-created.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dts-created.js index 27939cccd38ec..118aa862d5839 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dts-created.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dts-created.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,17 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dts-deleted.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dts-deleted.js index 3c553e67e1da9..df9ca248222ae 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dts-deleted.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dts-deleted.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,17 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dts-not-present.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dts-not-present.js index c4a94213fb990..faa517ce49d33 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dts-not-present.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dts-not-present.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,17 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dtsMap-changes-with-timeout-before-request.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dtsMap-changes-with-timeout-before-request.js index fd8cf36166bee..93fa64f692bbd 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dtsMap-changes-with-timeout-before-request.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dtsMap-changes-with-timeout-before-request.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,17 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// @@ -483,7 +499,16 @@ Before running Timeout callback:: count: 2 1: /user/username/projects/myproject/dependency/tsconfig.json 2: *ensureProjectForOpenFiles* //// [/user/username/projects/myproject/decls/FnS.d.ts.map] -{"version":3,"file":"FnS.d.ts","sourceRoot":"","sources":["../dependency/FnS.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,eAAO,MAAM,CAAC,KAAK,CAAC"} +{ + "version": 3, + "file": "FnS.d.ts", + "sourceRoot": "", + "sources": [ + "../dependency/FnS.ts" + ], + "names": [], + "mappings": "AAAA,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,eAAO,MAAM,CAAC,KAAK,CAAC" +} Info seq [hh:mm:ss:mss] Running: /user/username/projects/myproject/dependency/tsconfig.json diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dtsMap-changes.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dtsMap-changes.js index f9153936106f5..9523a4656e189 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dtsMap-changes.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dtsMap-changes.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,17 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// @@ -481,7 +497,16 @@ Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/decls/FnS.d.ts.map 1:: WatchInfo: /user/username/projects/myproject/decls/FnS.d.ts.map 500 undefined WatchType: Closed Script info Before request //// [/user/username/projects/myproject/decls/FnS.d.ts.map] -{"version":3,"file":"FnS.d.ts","sourceRoot":"","sources":["../dependency/FnS.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,eAAO,MAAM,CAAC,KAAK,CAAC"} +{ + "version": 3, + "file": "FnS.d.ts", + "sourceRoot": "", + "sources": [ + "../dependency/FnS.ts" + ], + "names": [], + "mappings": "AAAA,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,eAAO,MAAM,CAAC,KAAK,CAAC" +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dtsMap-created.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dtsMap-created.js index d994a917edf4d..df3e0ad6b2813 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dtsMap-created.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dtsMap-created.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,17 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dtsMap-deleted.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dtsMap-deleted.js index 2035514e856ff..96387661c79a5 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dtsMap-deleted.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dtsMap-deleted.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,17 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dtsMap-not-present.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dtsMap-not-present.js index 8c99713e89d2f..06d4a27c06d12 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dtsMap-not-present.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-dtsMap-not-present.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,17 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-source-changes-with-timeout-before-request.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-source-changes-with-timeout-before-request.js index 6ef485552779a..fb4ab59f9defd 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-source-changes-with-timeout-before-request.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-source-changes-with-timeout-before-request.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,17 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-source-changes.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-source-changes.js index b72c979d16da9..290c506bb4dbd 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-source-changes.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/dependency-source-changes.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,17 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/rename-locations.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/rename-locations.js index c718f09d975ba..f2979b60e4c09 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/rename-locations.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/rename-locations.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,17 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/usage-file-changes-with-timeout-before-request.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/usage-file-changes-with-timeout-before-request.js index e9f7a5a5d9433..44706b7ba84fa 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/usage-file-changes-with-timeout-before-request.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/usage-file-changes-with-timeout-before-request.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,17 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/usage-file-changes.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/usage-file-changes.js index 9a7417fb4585b..d7b39e8c88eab 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/usage-file-changes.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/usage-file-changes.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,17 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/when-projects-are-not-built.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/when-projects-are-not-built.js index 1d74358f7e74b..49d520e0bd859 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/when-projects-are-not-built.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/configWithReference/when-projects-are-not-built.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,17 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dts-changes-with-timeout-before-request.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dts-changes-with-timeout-before-request.js index eca3ab55ef56d..fe3b1e08177d3 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dts-changes-with-timeout-before-request.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dts-changes-with-timeout-before-request.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,18 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"disableSourceOfProjectReferenceRedirect":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "disableSourceOfProjectReferenceRedirect": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dts-changes.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dts-changes.js index 014f682163e2a..3043ed43ecd61 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dts-changes.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dts-changes.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,18 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"disableSourceOfProjectReferenceRedirect":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "disableSourceOfProjectReferenceRedirect": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dts-created.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dts-created.js index 535766645fcac..5356c1b6dbf01 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dts-created.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dts-created.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,18 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"disableSourceOfProjectReferenceRedirect":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "disableSourceOfProjectReferenceRedirect": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dts-deleted.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dts-deleted.js index 6266dc34b37c2..ad2a8e6791159 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dts-deleted.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dts-deleted.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,18 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"disableSourceOfProjectReferenceRedirect":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "disableSourceOfProjectReferenceRedirect": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dts-not-present.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dts-not-present.js index bbeb1b27806ca..4354b8f504d1d 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dts-not-present.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dts-not-present.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,18 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"disableSourceOfProjectReferenceRedirect":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "disableSourceOfProjectReferenceRedirect": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dtsMap-changes-with-timeout-before-request.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dtsMap-changes-with-timeout-before-request.js index cee83530e1762..3f2b45abbc0b0 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dtsMap-changes-with-timeout-before-request.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dtsMap-changes-with-timeout-before-request.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,18 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"disableSourceOfProjectReferenceRedirect":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "disableSourceOfProjectReferenceRedirect": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// @@ -483,7 +500,16 @@ Before running Timeout callback:: count: 2 1: /user/username/projects/myproject/dependency/tsconfig.json 2: *ensureProjectForOpenFiles* //// [/user/username/projects/myproject/decls/FnS.d.ts.map] -{"version":3,"file":"FnS.d.ts","sourceRoot":"","sources":["../dependency/FnS.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,eAAO,MAAM,CAAC,KAAK,CAAC"} +{ + "version": 3, + "file": "FnS.d.ts", + "sourceRoot": "", + "sources": [ + "../dependency/FnS.ts" + ], + "names": [], + "mappings": "AAAA,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,eAAO,MAAM,CAAC,KAAK,CAAC" +} Info seq [hh:mm:ss:mss] Running: /user/username/projects/myproject/dependency/tsconfig.json diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dtsMap-changes.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dtsMap-changes.js index 4257984fd9314..2853d6a85206d 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dtsMap-changes.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dtsMap-changes.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,18 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"disableSourceOfProjectReferenceRedirect":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "disableSourceOfProjectReferenceRedirect": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// @@ -481,7 +498,16 @@ Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/decls/FnS.d.ts.map 1:: WatchInfo: /user/username/projects/myproject/decls/FnS.d.ts.map 500 undefined WatchType: Closed Script info Before request //// [/user/username/projects/myproject/decls/FnS.d.ts.map] -{"version":3,"file":"FnS.d.ts","sourceRoot":"","sources":["../dependency/FnS.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,eAAO,MAAM,CAAC,KAAK,CAAC"} +{ + "version": 3, + "file": "FnS.d.ts", + "sourceRoot": "", + "sources": [ + "../dependency/FnS.ts" + ], + "names": [], + "mappings": "AAAA,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,eAAO,MAAM,CAAC,KAAK,CAAC" +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dtsMap-created.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dtsMap-created.js index 35ad38bee52a0..aad429654a5ab 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dtsMap-created.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dtsMap-created.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,18 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"disableSourceOfProjectReferenceRedirect":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "disableSourceOfProjectReferenceRedirect": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dtsMap-deleted.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dtsMap-deleted.js index 5ea8f1c0e0e36..6341c8c847bfc 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dtsMap-deleted.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dtsMap-deleted.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,18 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"disableSourceOfProjectReferenceRedirect":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "disableSourceOfProjectReferenceRedirect": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dtsMap-not-present.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dtsMap-not-present.js index 882b64b341a35..a00be36bd0ca9 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dtsMap-not-present.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/dependency-dtsMap-not-present.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,18 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"disableSourceOfProjectReferenceRedirect":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "disableSourceOfProjectReferenceRedirect": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/rename-locations.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/rename-locations.js index 9238cecad32e4..a6c19b5b48b22 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/rename-locations.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/rename-locations.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,18 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"disableSourceOfProjectReferenceRedirect":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "disableSourceOfProjectReferenceRedirect": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/usage-file-changes-with-timeout-before-request.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/usage-file-changes-with-timeout-before-request.js index 12999e91770da..83229700db7e7 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/usage-file-changes-with-timeout-before-request.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/usage-file-changes-with-timeout-before-request.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,18 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"disableSourceOfProjectReferenceRedirect":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "disableSourceOfProjectReferenceRedirect": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/usage-file-changes.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/usage-file-changes.js index 6b5afc270ca7f..7f15ad0f0f227 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/usage-file-changes.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependency/disabledSourceRef/usage-file-changes.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,18 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"disableSourceOfProjectReferenceRedirect":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "disableSourceOfProjectReferenceRedirect": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dts-changes-with-timeout-before-request.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dts-changes-with-timeout-before-request.js index a111888b7db52..e5ac01aaea053 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dts-changes-with-timeout-before-request.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dts-changes-with-timeout-before-request.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,12 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + } +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dts-changes.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dts-changes.js index 65493ff3452b8..fe409be336e92 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dts-changes.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dts-changes.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,12 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + } +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dts-created.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dts-created.js index 910a43f856ef5..82417698cd699 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dts-created.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dts-created.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,12 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + } +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dts-deleted.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dts-deleted.js index 428c8ca22cb69..3ab7a7d5e4813 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dts-deleted.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dts-deleted.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,12 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + } +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dts-not-present.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dts-not-present.js index bf4fce8fe6b27..35b2f9d153f62 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dts-not-present.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dts-not-present.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,12 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + } +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dtsMap-changes-with-timeout-before-request.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dtsMap-changes-with-timeout-before-request.js index eab2643f2429f..e3f6c37a61a43 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dtsMap-changes-with-timeout-before-request.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dtsMap-changes-with-timeout-before-request.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,12 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + } +} //// [/a/lib/lib.d.ts] /// @@ -702,7 +713,16 @@ Before running Timeout callback:: count: 3 3: /user/username/projects/myproject/main/tsconfig.json 4: *ensureProjectForOpenFiles* //// [/user/username/projects/myproject/decls/FnS.d.ts.map] -{"version":3,"file":"FnS.d.ts","sourceRoot":"","sources":["../dependency/FnS.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,eAAO,MAAM,CAAC,KAAK,CAAC"} +{ + "version": 3, + "file": "FnS.d.ts", + "sourceRoot": "", + "sources": [ + "../dependency/FnS.ts" + ], + "names": [], + "mappings": "AAAA,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,eAAO,MAAM,CAAC,KAAK,CAAC" +} Info seq [hh:mm:ss:mss] Running: /user/username/projects/myproject/dependency/tsconfig.json diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dtsMap-changes.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dtsMap-changes.js index 7f1636e048362..900151ceac005 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dtsMap-changes.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dtsMap-changes.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,12 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + } +} //// [/a/lib/lib.d.ts] /// @@ -699,7 +710,16 @@ Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles*, Cancelled earli Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/decls/FnS.d.ts.map 1:: WatchInfo: /user/username/projects/myproject/decls/FnS.d.ts.map 500 undefined WatchType: Closed Script info Before request //// [/user/username/projects/myproject/decls/FnS.d.ts.map] -{"version":3,"file":"FnS.d.ts","sourceRoot":"","sources":["../dependency/FnS.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,eAAO,MAAM,CAAC,KAAK,CAAC"} +{ + "version": 3, + "file": "FnS.d.ts", + "sourceRoot": "", + "sources": [ + "../dependency/FnS.ts" + ], + "names": [], + "mappings": "AAAA,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,eAAO,MAAM,CAAC,KAAK,CAAC" +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dtsMap-created.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dtsMap-created.js index 5d9fce5ac052c..9c204610c9af2 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dtsMap-created.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dtsMap-created.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,12 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + } +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dtsMap-deleted.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dtsMap-deleted.js index a9bd0207982f8..a84f7e0922d7d 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dtsMap-deleted.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dtsMap-deleted.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,12 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + } +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dtsMap-not-present.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dtsMap-not-present.js index 56f58afabb696..305d001c90e74 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dtsMap-not-present.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/dependency-dtsMap-not-present.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,12 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + } +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/goToDef-and-rename-locations.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/goToDef-and-rename-locations.js index ddafe0823de71..050c1656fe063 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/goToDef-and-rename-locations.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/goToDef-and-rename-locations.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,12 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + } +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/usage-file-changes-with-timeout-before-request.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/usage-file-changes-with-timeout-before-request.js index 8057660a5c690..b6c8825623d9e 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/usage-file-changes-with-timeout-before-request.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/usage-file-changes-with-timeout-before-request.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,12 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + } +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/usage-file-changes.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/usage-file-changes.js index cbdec53210162..f9f1a18d204af 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/usage-file-changes.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configHasNoReference/usage-file-changes.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,12 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + } +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dts-changes-with-timeout-before-request.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dts-changes-with-timeout-before-request.js index 437853e4bb011..caaef819aa0ee 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dts-changes-with-timeout-before-request.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dts-changes-with-timeout-before-request.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,17 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dts-changes.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dts-changes.js index 8f314a0ee39c6..465c414732a42 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dts-changes.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dts-changes.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,17 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dts-created.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dts-created.js index ce3574c2a739d..9eaa2a7ffa8fa 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dts-created.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dts-created.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,17 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dts-deleted.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dts-deleted.js index f54d06a40af61..610c607a52010 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dts-deleted.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dts-deleted.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,17 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dts-not-present.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dts-not-present.js index 08d5de0cd47e1..d15d402573cf4 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dts-not-present.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dts-not-present.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,17 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dtsMap-changes-with-timeout-before-request.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dtsMap-changes-with-timeout-before-request.js index a176f9bc6bd48..ac73e3c778b6d 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dtsMap-changes-with-timeout-before-request.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dtsMap-changes-with-timeout-before-request.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,17 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// @@ -713,7 +729,16 @@ Before running Timeout callback:: count: 3 2: /user/username/projects/myproject/dependency/tsconfig.json 3: *ensureProjectForOpenFiles* //// [/user/username/projects/myproject/decls/FnS.d.ts.map] -{"version":3,"file":"FnS.d.ts","sourceRoot":"","sources":["../dependency/FnS.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,eAAO,MAAM,CAAC,KAAK,CAAC"} +{ + "version": 3, + "file": "FnS.d.ts", + "sourceRoot": "", + "sources": [ + "../dependency/FnS.ts" + ], + "names": [], + "mappings": "AAAA,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,eAAO,MAAM,CAAC,KAAK,CAAC" +} Info seq [hh:mm:ss:mss] Running: /user/username/projects/myproject/main/tsconfig.json diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dtsMap-changes.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dtsMap-changes.js index 8053d0a56feff..71fb8ccf47be9 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dtsMap-changes.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dtsMap-changes.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,17 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// @@ -710,7 +726,16 @@ Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/decls/FnS.d.ts.map 1:: WatchInfo: /user/username/projects/myproject/decls/FnS.d.ts.map 500 undefined WatchType: Closed Script info Before request //// [/user/username/projects/myproject/decls/FnS.d.ts.map] -{"version":3,"file":"FnS.d.ts","sourceRoot":"","sources":["../dependency/FnS.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,eAAO,MAAM,CAAC,KAAK,CAAC"} +{ + "version": 3, + "file": "FnS.d.ts", + "sourceRoot": "", + "sources": [ + "../dependency/FnS.ts" + ], + "names": [], + "mappings": "AAAA,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,eAAO,MAAM,CAAC,KAAK,CAAC" +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dtsMap-created.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dtsMap-created.js index 05b2d015273de..0301809d4c746 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dtsMap-created.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dtsMap-created.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,17 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dtsMap-deleted.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dtsMap-deleted.js index 0d0fe147a1b52..9fcaa7474bdde 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dtsMap-deleted.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dtsMap-deleted.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,17 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dtsMap-not-present.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dtsMap-not-present.js index ed74383d11272..decb3c606ac42 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dtsMap-not-present.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-dtsMap-not-present.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,17 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-source-changes-with-timeout-before-request.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-source-changes-with-timeout-before-request.js index ba5048c892df5..e273fec73fd2d 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-source-changes-with-timeout-before-request.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-source-changes-with-timeout-before-request.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,17 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-source-changes.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-source-changes.js index eec0053f7e366..7de3c7576aaa4 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-source-changes.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/dependency-source-changes.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,17 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/gotoDef-and-rename-locations.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/gotoDef-and-rename-locations.js index 2f90776227395..b1f9175a5263d 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/gotoDef-and-rename-locations.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/gotoDef-and-rename-locations.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,17 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/usage-file-changes-with-timeout-before-request.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/usage-file-changes-with-timeout-before-request.js index fde287f2c7732..dae306e9d0005 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/usage-file-changes-with-timeout-before-request.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/usage-file-changes-with-timeout-before-request.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,17 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/usage-file-changes.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/usage-file-changes.js index a2dcfd8da5868..8a908202b50ed 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/usage-file-changes.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/usage-file-changes.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,17 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/when-projects-are-not-built.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/when-projects-are-not-built.js index 79cf78f81b62a..83b6ff3b2ce6c 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/when-projects-are-not-built.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/configWithReference/when-projects-are-not-built.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,17 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dts-changes-with-timeout-before-request.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dts-changes-with-timeout-before-request.js index 5ca429c4fb058..7124bd5612929 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dts-changes-with-timeout-before-request.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dts-changes-with-timeout-before-request.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,18 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"disableSourceOfProjectReferenceRedirect":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "disableSourceOfProjectReferenceRedirect": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dts-changes.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dts-changes.js index 8a1423e5ae820..b820f05b5fb48 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dts-changes.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dts-changes.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,18 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"disableSourceOfProjectReferenceRedirect":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "disableSourceOfProjectReferenceRedirect": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dts-created.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dts-created.js index 67c3f09b51a30..3523fadd80298 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dts-created.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dts-created.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,18 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"disableSourceOfProjectReferenceRedirect":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "disableSourceOfProjectReferenceRedirect": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dts-deleted.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dts-deleted.js index 90ebe972f43b5..ac1377836f060 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dts-deleted.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dts-deleted.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,18 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"disableSourceOfProjectReferenceRedirect":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "disableSourceOfProjectReferenceRedirect": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dts-not-present.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dts-not-present.js index 20b39df8cb538..9ff91272a4f35 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dts-not-present.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dts-not-present.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,18 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"disableSourceOfProjectReferenceRedirect":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "disableSourceOfProjectReferenceRedirect": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dtsMap-changes-with-timeout-before-request.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dtsMap-changes-with-timeout-before-request.js index f388b81649983..114f4e7787548 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dtsMap-changes-with-timeout-before-request.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dtsMap-changes-with-timeout-before-request.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,18 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"disableSourceOfProjectReferenceRedirect":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "disableSourceOfProjectReferenceRedirect": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// @@ -713,7 +730,16 @@ Before running Timeout callback:: count: 3 3: /user/username/projects/myproject/main/tsconfig.json 4: *ensureProjectForOpenFiles* //// [/user/username/projects/myproject/decls/FnS.d.ts.map] -{"version":3,"file":"FnS.d.ts","sourceRoot":"","sources":["../dependency/FnS.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,eAAO,MAAM,CAAC,KAAK,CAAC"} +{ + "version": 3, + "file": "FnS.d.ts", + "sourceRoot": "", + "sources": [ + "../dependency/FnS.ts" + ], + "names": [], + "mappings": "AAAA,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,eAAO,MAAM,CAAC,KAAK,CAAC" +} Info seq [hh:mm:ss:mss] Running: /user/username/projects/myproject/dependency/tsconfig.json diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dtsMap-changes.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dtsMap-changes.js index 512c6a2ba3167..497ac89a822ef 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dtsMap-changes.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dtsMap-changes.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,18 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"disableSourceOfProjectReferenceRedirect":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "disableSourceOfProjectReferenceRedirect": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// @@ -710,7 +727,16 @@ Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles*, Cancelled earli Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/decls/FnS.d.ts.map 1:: WatchInfo: /user/username/projects/myproject/decls/FnS.d.ts.map 500 undefined WatchType: Closed Script info Before request //// [/user/username/projects/myproject/decls/FnS.d.ts.map] -{"version":3,"file":"FnS.d.ts","sourceRoot":"","sources":["../dependency/FnS.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,eAAO,MAAM,CAAC,KAAK,CAAC"} +{ + "version": 3, + "file": "FnS.d.ts", + "sourceRoot": "", + "sources": [ + "../dependency/FnS.ts" + ], + "names": [], + "mappings": "AAAA,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,eAAO,MAAM,CAAC,KAAK,CAAC" +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dtsMap-created.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dtsMap-created.js index 436a74f56095d..67027ad466213 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dtsMap-created.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dtsMap-created.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,18 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"disableSourceOfProjectReferenceRedirect":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "disableSourceOfProjectReferenceRedirect": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dtsMap-deleted.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dtsMap-deleted.js index 0d2c44dec0524..fb3abef2af745 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dtsMap-deleted.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dtsMap-deleted.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,18 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"disableSourceOfProjectReferenceRedirect":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "disableSourceOfProjectReferenceRedirect": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dtsMap-not-present.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dtsMap-not-present.js index e628ec855bbad..c2b1abfe69d06 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dtsMap-not-present.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/dependency-dtsMap-not-present.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,18 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"disableSourceOfProjectReferenceRedirect":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "disableSourceOfProjectReferenceRedirect": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/gotoDef-and-rename-locations.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/gotoDef-and-rename-locations.js index 918eb16afc205..a1ae7e0b8fb18 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/gotoDef-and-rename-locations.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/gotoDef-and-rename-locations.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,18 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"disableSourceOfProjectReferenceRedirect":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "disableSourceOfProjectReferenceRedirect": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/usage-file-changes-with-timeout-before-request.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/usage-file-changes-with-timeout-before-request.js index 646b10d3fffad..825e7fc8fa156 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/usage-file-changes-with-timeout-before-request.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/usage-file-changes-with-timeout-before-request.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,18 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"disableSourceOfProjectReferenceRedirect":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "disableSourceOfProjectReferenceRedirect": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/usage-file-changes.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/usage-file-changes.js index 446903df0e224..9a4f34cb92522 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/usage-file-changes.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/dependencyAndUsage/disabledSourceRef/usage-file-changes.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,18 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"disableSourceOfProjectReferenceRedirect":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "disableSourceOfProjectReferenceRedirect": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/can-go-to-definition-correctly.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/can-go-to-definition-correctly.js index e7f6c437b2e29..132c03865b7d9 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/can-go-to-definition-correctly.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/can-go-to-definition-correctly.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,12 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + } +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dts-changes-with-timeout-before-request.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dts-changes-with-timeout-before-request.js index 9997e84a21b71..6bc4bad9aa694 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dts-changes-with-timeout-before-request.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dts-changes-with-timeout-before-request.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,12 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + } +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dts-changes.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dts-changes.js index 34b358edd3258..49fe53f2e3d0f 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dts-changes.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dts-changes.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,12 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + } +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dts-created.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dts-created.js index fc074411ad851..b4786f8c472bc 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dts-created.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dts-created.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,12 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + } +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dts-deleted.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dts-deleted.js index 7dccf23954806..5d8e39fd92ce5 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dts-deleted.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dts-deleted.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,12 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + } +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dts-not-present.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dts-not-present.js index 3f5bccb3ec383..edc416608ea41 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dts-not-present.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dts-not-present.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,12 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + } +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dtsMap-changes-with-timeout-before-request.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dtsMap-changes-with-timeout-before-request.js index 61e5f53168a0a..7768193ce7966 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dtsMap-changes-with-timeout-before-request.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dtsMap-changes-with-timeout-before-request.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,12 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + } +} //// [/a/lib/lib.d.ts] /// @@ -489,7 +500,16 @@ Before running Timeout callback:: count: 2 1: /user/username/projects/myproject/main/tsconfig.json 2: *ensureProjectForOpenFiles* //// [/user/username/projects/myproject/decls/FnS.d.ts.map] -{"version":3,"file":"FnS.d.ts","sourceRoot":"","sources":["../dependency/FnS.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,eAAO,MAAM,CAAC,KAAK,CAAC"} +{ + "version": 3, + "file": "FnS.d.ts", + "sourceRoot": "", + "sources": [ + "../dependency/FnS.ts" + ], + "names": [], + "mappings": "AAAA,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,eAAO,MAAM,CAAC,KAAK,CAAC" +} Info seq [hh:mm:ss:mss] Running: /user/username/projects/myproject/main/tsconfig.json diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dtsMap-changes.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dtsMap-changes.js index 806c621b278e3..2e0a57ccbf063 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dtsMap-changes.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dtsMap-changes.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,12 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + } +} //// [/a/lib/lib.d.ts] /// @@ -487,7 +498,16 @@ Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/decls/FnS.d.ts.map 1:: WatchInfo: /user/username/projects/myproject/decls/FnS.d.ts.map 500 undefined WatchType: Closed Script info Before request //// [/user/username/projects/myproject/decls/FnS.d.ts.map] -{"version":3,"file":"FnS.d.ts","sourceRoot":"","sources":["../dependency/FnS.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,eAAO,MAAM,CAAC,KAAK,CAAC"} +{ + "version": 3, + "file": "FnS.d.ts", + "sourceRoot": "", + "sources": [ + "../dependency/FnS.ts" + ], + "names": [], + "mappings": "AAAA,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,eAAO,MAAM,CAAC,KAAK,CAAC" +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dtsMap-created.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dtsMap-created.js index b56968e834201..77476bc14a8af 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dtsMap-created.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dtsMap-created.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,12 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + } +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dtsMap-deleted.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dtsMap-deleted.js index c9d1d7d9e87d8..3f8c18e9e7bf5 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dtsMap-deleted.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dtsMap-deleted.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,12 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + } +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dtsMap-not-present.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dtsMap-not-present.js index 99228e25df6c9..f8451869b084d 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dtsMap-not-present.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/dependency-dtsMap-not-present.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,12 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + } +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/usage-file-changes-with-timeout-before-request.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/usage-file-changes-with-timeout-before-request.js index bc68fdd229731..ee132540c945c 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/usage-file-changes-with-timeout-before-request.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/usage-file-changes-with-timeout-before-request.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,12 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + } +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/usage-file-changes.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/usage-file-changes.js index 577c96229b2f2..3fddbb542265c 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/usage-file-changes.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configHasNoReference/usage-file-changes.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,12 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + } +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/can-go-to-definition-correctly.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/can-go-to-definition-correctly.js index 019468f64368b..245a9fa32128b 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/can-go-to-definition-correctly.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/can-go-to-definition-correctly.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,17 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dts-changes-with-timeout-before-request.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dts-changes-with-timeout-before-request.js index 60037c0b0c97b..fbd592912672c 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dts-changes-with-timeout-before-request.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dts-changes-with-timeout-before-request.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,17 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dts-changes.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dts-changes.js index b8ee668c96ded..c23466d417b3c 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dts-changes.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dts-changes.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,17 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dts-created.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dts-created.js index 1752e8386635e..f479a4a7c9abb 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dts-created.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dts-created.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,17 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dts-deleted.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dts-deleted.js index 51a09efc288cb..d4628013382c6 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dts-deleted.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dts-deleted.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,17 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dts-not-present.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dts-not-present.js index a37aec88830bb..e9784f348a902 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dts-not-present.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dts-not-present.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,17 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dtsMap-changes-with-timeout-before-request.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dtsMap-changes-with-timeout-before-request.js index da165459a0598..ce8fe9189a991 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dtsMap-changes-with-timeout-before-request.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dtsMap-changes-with-timeout-before-request.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,17 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// @@ -477,7 +493,16 @@ After request Before running Timeout callback:: count: 0 //// [/user/username/projects/myproject/decls/FnS.d.ts.map] -{"version":3,"file":"FnS.d.ts","sourceRoot":"","sources":["../dependency/FnS.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,eAAO,MAAM,CAAC,KAAK,CAAC"} +{ + "version": 3, + "file": "FnS.d.ts", + "sourceRoot": "", + "sources": [ + "../dependency/FnS.ts" + ], + "names": [], + "mappings": "AAAA,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,eAAO,MAAM,CAAC,KAAK,CAAC" +} After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dtsMap-changes.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dtsMap-changes.js index 4bfed4bfb3808..82a1242bf3eb4 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dtsMap-changes.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dtsMap-changes.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,17 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// @@ -477,7 +493,16 @@ After request Before request //// [/user/username/projects/myproject/decls/FnS.d.ts.map] -{"version":3,"file":"FnS.d.ts","sourceRoot":"","sources":["../dependency/FnS.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,eAAO,MAAM,CAAC,KAAK,CAAC"} +{ + "version": 3, + "file": "FnS.d.ts", + "sourceRoot": "", + "sources": [ + "../dependency/FnS.ts" + ], + "names": [], + "mappings": "AAAA,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,eAAO,MAAM,CAAC,KAAK,CAAC" +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dtsMap-created.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dtsMap-created.js index 9f04997169c2e..4d7f2070481b5 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dtsMap-created.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dtsMap-created.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,17 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dtsMap-deleted.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dtsMap-deleted.js index 902bc2813d456..1ccbf12c66753 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dtsMap-deleted.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dtsMap-deleted.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,17 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dtsMap-not-present.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dtsMap-not-present.js index 48946e86fd737..76a748768506a 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dtsMap-not-present.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-dtsMap-not-present.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,17 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-source-changes-with-timeout-before-request.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-source-changes-with-timeout-before-request.js index 4af5e881309f1..29d8aa68a340a 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-source-changes-with-timeout-before-request.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-source-changes-with-timeout-before-request.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,17 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-source-changes.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-source-changes.js index 85531c02a5930..7efd6a51871bf 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-source-changes.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/dependency-source-changes.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,17 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/usage-file-changes-with-timeout-before-request.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/usage-file-changes-with-timeout-before-request.js index c8c5e26f70fbc..12e9144adc72f 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/usage-file-changes-with-timeout-before-request.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/usage-file-changes-with-timeout-before-request.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,17 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/usage-file-changes.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/usage-file-changes.js index a5337991fbf2e..cb85e0f951ccc 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/usage-file-changes.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/usage-file-changes.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,17 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/when-projects-are-not-built.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/when-projects-are-not-built.js index 5f264e255b74f..9ab1ce15ed2e9 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/when-projects-are-not-built.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/configWithReference/when-projects-are-not-built.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,17 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/can-go-to-definition-correctly.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/can-go-to-definition-correctly.js index df57be923529f..feb05ae43f42e 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/can-go-to-definition-correctly.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/can-go-to-definition-correctly.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,18 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"disableSourceOfProjectReferenceRedirect":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "disableSourceOfProjectReferenceRedirect": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dts-changes-with-timeout-before-request.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dts-changes-with-timeout-before-request.js index b38daaaa70bd4..f1c397125fa1b 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dts-changes-with-timeout-before-request.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dts-changes-with-timeout-before-request.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,18 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"disableSourceOfProjectReferenceRedirect":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "disableSourceOfProjectReferenceRedirect": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dts-changes.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dts-changes.js index d661580211da8..88762c9ce933a 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dts-changes.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dts-changes.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,18 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"disableSourceOfProjectReferenceRedirect":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "disableSourceOfProjectReferenceRedirect": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dts-created.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dts-created.js index ce3cffabaaa6a..42e36e36963a6 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dts-created.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dts-created.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,18 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"disableSourceOfProjectReferenceRedirect":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "disableSourceOfProjectReferenceRedirect": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dts-deleted.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dts-deleted.js index b22ba39c94e81..96f70fc43a727 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dts-deleted.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dts-deleted.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,18 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"disableSourceOfProjectReferenceRedirect":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "disableSourceOfProjectReferenceRedirect": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dts-not-present.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dts-not-present.js index 8e3dc62da4465..c0765e427d106 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dts-not-present.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dts-not-present.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,18 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"disableSourceOfProjectReferenceRedirect":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "disableSourceOfProjectReferenceRedirect": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dtsMap-changes-with-timeout-before-request.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dtsMap-changes-with-timeout-before-request.js index ec6e096583d32..c7be0674c899f 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dtsMap-changes-with-timeout-before-request.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dtsMap-changes-with-timeout-before-request.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,18 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"disableSourceOfProjectReferenceRedirect":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "disableSourceOfProjectReferenceRedirect": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// @@ -522,7 +539,16 @@ Before running Timeout callback:: count: 2 1: /user/username/projects/myproject/main/tsconfig.json 2: *ensureProjectForOpenFiles* //// [/user/username/projects/myproject/decls/FnS.d.ts.map] -{"version":3,"file":"FnS.d.ts","sourceRoot":"","sources":["../dependency/FnS.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,eAAO,MAAM,CAAC,KAAK,CAAC"} +{ + "version": 3, + "file": "FnS.d.ts", + "sourceRoot": "", + "sources": [ + "../dependency/FnS.ts" + ], + "names": [], + "mappings": "AAAA,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,eAAO,MAAM,CAAC,KAAK,CAAC" +} Info seq [hh:mm:ss:mss] Running: /user/username/projects/myproject/main/tsconfig.json diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dtsMap-changes.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dtsMap-changes.js index 18c209d855059..29f14088639e3 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dtsMap-changes.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dtsMap-changes.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,18 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"disableSourceOfProjectReferenceRedirect":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "disableSourceOfProjectReferenceRedirect": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// @@ -520,7 +537,16 @@ Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/decls/FnS.d.ts.map 1:: WatchInfo: /user/username/projects/myproject/decls/FnS.d.ts.map 500 undefined WatchType: Closed Script info Before request //// [/user/username/projects/myproject/decls/FnS.d.ts.map] -{"version":3,"file":"FnS.d.ts","sourceRoot":"","sources":["../dependency/FnS.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,eAAO,MAAM,CAAC,KAAK,CAAC"} +{ + "version": 3, + "file": "FnS.d.ts", + "sourceRoot": "", + "sources": [ + "../dependency/FnS.ts" + ], + "names": [], + "mappings": "AAAA,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,eAAO,MAAM,CAAC,KAAK,CAAC" +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dtsMap-created.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dtsMap-created.js index 565dab7996c61..118d2a126d990 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dtsMap-created.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dtsMap-created.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,18 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"disableSourceOfProjectReferenceRedirect":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "disableSourceOfProjectReferenceRedirect": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dtsMap-deleted.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dtsMap-deleted.js index 448266705fa44..1dac8eda06da0 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dtsMap-deleted.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dtsMap-deleted.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,18 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"disableSourceOfProjectReferenceRedirect":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "disableSourceOfProjectReferenceRedirect": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dtsMap-not-present.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dtsMap-not-present.js index 67e580a6d27c7..1bc1174583c90 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dtsMap-not-present.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/dependency-dtsMap-not-present.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,18 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"disableSourceOfProjectReferenceRedirect":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "disableSourceOfProjectReferenceRedirect": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/usage-file-changes-with-timeout-before-request.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/usage-file-changes-with-timeout-before-request.js index 0d0e4bb88c755..534e5d8262af5 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/usage-file-changes-with-timeout-before-request.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/usage-file-changes-with-timeout-before-request.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,18 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"disableSourceOfProjectReferenceRedirect":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "disableSourceOfProjectReferenceRedirect": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/usage-file-changes.js b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/usage-file-changes.js index aeeadc32b2c14..20d2b4f1cce98 100644 --- a/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/usage-file-changes.js +++ b/tests/baselines/reference/tsserver/projectReferencesSourcemap/usageProject/disabledSourceRef/usage-file-changes.js @@ -10,7 +10,13 @@ export function fn5() { } //// [/user/username/projects/myproject/dependency/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"declarationDir":"../decls"}} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "declarationDir": "../decls" + } +} //// [/user/username/projects/myproject/main/main.ts] import { @@ -29,7 +35,18 @@ fn5(); //// [/user/username/projects/myproject/main/tsconfig.json] -{"compilerOptions":{"composite":true,"declarationMap":true,"disableSourceOfProjectReferenceRedirect":true},"references":[{"path":"../dependency"}]} +{ + "compilerOptions": { + "composite": true, + "declarationMap": true, + "disableSourceOfProjectReferenceRedirect": true + }, + "references": [ + { + "path": "../dependency" + } + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projects/Orphan-source-files-are-handled-correctly-on-watch-trigger.js b/tests/baselines/reference/tsserver/projects/Orphan-source-files-are-handled-correctly-on-watch-trigger.js index 2e200e9d22003..86e87e4f472ea 100644 --- a/tests/baselines/reference/tsserver/projects/Orphan-source-files-are-handled-correctly-on-watch-trigger.js +++ b/tests/baselines/reference/tsserver/projects/Orphan-source-files-are-handled-correctly-on-watch-trigger.js @@ -21,7 +21,12 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/tsconfig.json] -{"files":["src/file1.ts","src/file2.ts"]} +{ + "files": [ + "src/file1.ts", + "src/file2.ts" + ] +} Info seq [hh:mm:ss:mss] Search path: /user/username/projects/myproject/src @@ -75,7 +80,11 @@ Before running Timeout callback:: count: 2 1: /user/username/projects/myproject/tsconfig.json 2: *ensureProjectForOpenFiles* //// [/user/username/projects/myproject/tsconfig.json] -{"files":["src/file1.ts"]} +{ + "files": [ + "src/file1.ts" + ] +} PolledWatches:: diff --git a/tests/baselines/reference/tsserver/projects/Properly-handle-Windows-style-outDir.js b/tests/baselines/reference/tsserver/projects/Properly-handle-Windows-style-outDir.js index de0825f404ac1..59f39c07a3971 100644 --- a/tests/baselines/reference/tsserver/projects/Properly-handle-Windows-style-outDir.js +++ b/tests/baselines/reference/tsserver/projects/Properly-handle-Windows-style-outDir.js @@ -5,7 +5,14 @@ Creating project service let x = 1; //// [C:/a/tsconfig.json] -{"compilerOptions":{"outDir":"C:\\a\\b"},"include":["*.ts"]} +{ + "compilerOptions": { + "outDir": "C:\\a\\b" + }, + "include": [ + "*.ts" + ] +} Info seq [hh:mm:ss:mss] Search path: C:/a diff --git a/tests/baselines/reference/tsserver/projects/config-file-is-deleted.js b/tests/baselines/reference/tsserver/projects/config-file-is-deleted.js index f9459730b180b..9f81bed676708 100644 --- a/tests/baselines/reference/tsserver/projects/config-file-is-deleted.js +++ b/tests/baselines/reference/tsserver/projects/config-file-is-deleted.js @@ -8,7 +8,9 @@ let x = 1; let y = 2; //// [/a/b/tsconfig.json] -{"compilerOptions":{}} +{ + "compilerOptions": {} +} Info seq [hh:mm:ss:mss] Search path: /a/b diff --git a/tests/baselines/reference/tsserver/projects/external-project-including-config-file.js b/tests/baselines/reference/tsserver/projects/external-project-including-config-file.js index e64014c395b25..7cf5dd6940c33 100644 --- a/tests/baselines/reference/tsserver/projects/external-project-including-config-file.js +++ b/tests/baselines/reference/tsserver/projects/external-project-including-config-file.js @@ -5,7 +5,12 @@ Creating project service let x =1; //// [/a/b/tsconfig.json] -{"compilerOptions":{},"files":["f1.ts"]} +{ + "compilerOptions": {}, + "files": [ + "f1.ts" + ] +} Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: externalproject diff --git a/tests/baselines/reference/tsserver/projects/file-opened-is-in-configured-project-that-will-be-removed.js b/tests/baselines/reference/tsserver/projects/file-opened-is-in-configured-project-that-will-be-removed.js index fd0aa3c939284..79837e7783bde 100644 --- a/tests/baselines/reference/tsserver/projects/file-opened-is-in-configured-project-that-will-be-removed.js +++ b/tests/baselines/reference/tsserver/projects/file-opened-is-in-configured-project-that-will-be-removed.js @@ -11,7 +11,11 @@ export function foo() {} export function bar() { } //// [/user/username/projects/myproject/playground/tsconfig-json/tsconfig.json] -{"include":["./src"]} +{ + "include": [ + "./src" + ] +} //// [/user/username/projects/myproject/playground/tsconfig-json/src/src.ts] export function foobar() { } diff --git a/tests/baselines/reference/tsserver/projects/getting-errors-from-closed-script-info-does-not-throw-exception-because-of-getting-project-from-orphan-script-info.js b/tests/baselines/reference/tsserver/projects/getting-errors-from-closed-script-info-does-not-throw-exception-because-of-getting-project-from-orphan-script-info.js index a8c1014bd1aad..c89069f3d8aa6 100644 --- a/tests/baselines/reference/tsserver/projects/getting-errors-from-closed-script-info-does-not-throw-exception-because-of-getting-project-from-orphan-script-info.js +++ b/tests/baselines/reference/tsserver/projects/getting-errors-from-closed-script-info-does-not-throw-exception-because-of-getting-project-from-orphan-script-info.js @@ -18,7 +18,9 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/a/b/tsconfig.json] -{"compilerOptions":{}} +{ + "compilerOptions": {} +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/projects/ignores-files-excluded-by-a-custom-safe-type-list.js b/tests/baselines/reference/tsserver/projects/ignores-files-excluded-by-a-custom-safe-type-list.js index 2728419110a23..7ba16a6723bc1 100644 --- a/tests/baselines/reference/tsserver/projects/ignores-files-excluded-by-a-custom-safe-type-list.js +++ b/tests/baselines/reference/tsserver/projects/ignores-files-excluded-by-a-custom-safe-type-list.js @@ -44,9 +44,9 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- TypeAcquisition:: { - "include": [ - "duck-types" - ], - "exclude": [], - "enable": true + "include": [ + "duck-types" + ], + "exclude": [], + "enable": true } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/projects/ignores-files-excluded-by-the-default-type-list.js b/tests/baselines/reference/tsserver/projects/ignores-files-excluded-by-the-default-type-list.js index 584f69284ee7b..e5da85e4e5929 100644 --- a/tests/baselines/reference/tsserver/projects/ignores-files-excluded-by-the-default-type-list.js +++ b/tests/baselines/reference/tsserver/projects/ignores-files-excluded-by-the-default-type-list.js @@ -40,10 +40,10 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- TypeAcquisition:: { - "include": [ - "kendo-ui", - "office" - ], - "exclude": [], - "enable": true + "include": [ + "kendo-ui", + "office" + ], + "exclude": [], + "enable": true } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/projects/js-file-opened-is-in-configured-project-that-will-be-removed.js b/tests/baselines/reference/tsserver/projects/js-file-opened-is-in-configured-project-that-will-be-removed.js index f1612ccd79b1a..1f0f552c2531b 100644 --- a/tests/baselines/reference/tsserver/projects/js-file-opened-is-in-configured-project-that-will-be-removed.js +++ b/tests/baselines/reference/tsserver/projects/js-file-opened-is-in-configured-project-that-will-be-removed.js @@ -2,7 +2,11 @@ currentDirectory:: / useCaseSensitiveFileNames: false Info seq [hh:mm:ss:mss] Provided types map file "/a/lib/typesMap.json" doesn't exist Before request //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"allowJs":true}} +{ + "compilerOptions": { + "allowJs": true + } +} //// [/user/username/projects/myproject/mocks/cssMock.js] function foo() { } @@ -11,7 +15,12 @@ function foo() { } function bar() { } //// [/user/username/projects/myproject/apps/editor/tsconfig.json] -{"extends":"../../tsconfig.json","include":["./src"]} +{ + "extends": "../../tsconfig.json", + "include": [ + "./src" + ] +} //// [/user/username/projects/myproject/apps/editor/src/src.js] function fooBar() { } @@ -493,7 +502,7 @@ TI:: typing installer creation complete //// [/a/data/node_modules/types-registry/index.json] { - "entries": {} + "entries": {} } diff --git a/tests/baselines/reference/tsserver/projects/loading-files-with-correct-priority.js b/tests/baselines/reference/tsserver/projects/loading-files-with-correct-priority.js index 7af77c70a9100..e213e6fb60436 100644 --- a/tests/baselines/reference/tsserver/projects/loading-files-with-correct-priority.js +++ b/tests/baselines/reference/tsserver/projects/loading-files-with-correct-priority.js @@ -11,7 +11,11 @@ var y = 1 var y = 1 //// [/a/tsconfig.json] -{"compilerOptions":{"allowJs":true}} +{ + "compilerOptions": { + "allowJs": true + } +} Info seq [hh:mm:ss:mss] reload projects. diff --git a/tests/baselines/reference/tsserver/projects/loose-file-included-in-config-file-(applyCodeChanges).js b/tests/baselines/reference/tsserver/projects/loose-file-included-in-config-file-(applyCodeChanges).js index 2cca6e5dec3c9..d5bc69749e595 100644 --- a/tests/baselines/reference/tsserver/projects/loose-file-included-in-config-file-(applyCodeChanges).js +++ b/tests/baselines/reference/tsserver/projects/loose-file-included-in-config-file-(applyCodeChanges).js @@ -5,7 +5,12 @@ Creating project service let x =1; //// [/a/b/tsconfig.json] -{"compilerOptions":{},"files":["f1.ts"]} +{ + "compilerOptions": {}, + "files": [ + "f1.ts" + ] +} Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* diff --git a/tests/baselines/reference/tsserver/projects/loose-file-included-in-config-file-(openClientFile).js b/tests/baselines/reference/tsserver/projects/loose-file-included-in-config-file-(openClientFile).js index 2cca6e5dec3c9..d5bc69749e595 100644 --- a/tests/baselines/reference/tsserver/projects/loose-file-included-in-config-file-(openClientFile).js +++ b/tests/baselines/reference/tsserver/projects/loose-file-included-in-config-file-(openClientFile).js @@ -5,7 +5,12 @@ Creating project service let x =1; //// [/a/b/tsconfig.json] -{"compilerOptions":{},"files":["f1.ts"]} +{ + "compilerOptions": {}, + "files": [ + "f1.ts" + ] +} Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* diff --git a/tests/baselines/reference/tsserver/projects/no-tsconfig-script-block-diagnostic-errors.js b/tests/baselines/reference/tsserver/projects/no-tsconfig-script-block-diagnostic-errors.js index a5778d71d716f..6bce732ad5a86 100644 --- a/tests/baselines/reference/tsserver/projects/no-tsconfig-script-block-diagnostic-errors.js +++ b/tests/baselines/reference/tsserver/projects/no-tsconfig-script-block-diagnostic-errors.js @@ -8,7 +8,11 @@ Before request var hello = "hello"; //// [/a/b/tsconfig.json] -{"compilerOptions":{"allowJs":true}} +{ + "compilerOptions": { + "allowJs": true + } +} //// [/a/lib/lib.d.ts] /// @@ -156,7 +160,11 @@ Before request var hello = "hello"; //// [/a/b/tsconfig.json] -{"compilerOptions":{"allowJs":false}} +{ + "compilerOptions": { + "allowJs": false + } +} //// [/a/lib/lib.d.ts] /// @@ -443,7 +451,15 @@ Before request var hello = "hello"; //// [/a/b/tsconfig.json] -{"compilerOptions":{"allowJs":true},"files":["/a/b/f1.ts","/a/b/f2.html"]} +{ + "compilerOptions": { + "allowJs": true + }, + "files": [ + "/a/b/f1.ts", + "/a/b/f2.html" + ] +} //// [/a/lib/lib.d.ts] /// @@ -585,7 +601,14 @@ Before request var hello = "hello"; //// [/a/b/tsconfig.json] -{"compilerOptions":{"allowJs":true},"exclude":["/a/b/f2.html"]} +{ + "compilerOptions": { + "allowJs": true + }, + "exclude": [ + "/a/b/f2.html" + ] +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projects/references-on-file-opened-is-in-configured-project-that-will-be-removed.js b/tests/baselines/reference/tsserver/projects/references-on-file-opened-is-in-configured-project-that-will-be-removed.js index b5c5e4a25853b..18910447d0b07 100644 --- a/tests/baselines/reference/tsserver/projects/references-on-file-opened-is-in-configured-project-that-will-be-removed.js +++ b/tests/baselines/reference/tsserver/projects/references-on-file-opened-is-in-configured-project-that-will-be-removed.js @@ -11,7 +11,11 @@ export function foo() {} export function bar() { } //// [/user/username/projects/myproject/playground/tsconfig-json/tsconfig.json] -{"include":["./src"]} +{ + "include": [ + "./src" + ] +} //// [/user/username/projects/myproject/playground/tsconfig-json/src/src.ts] export function foobar() { } diff --git a/tests/baselines/reference/tsserver/projects/should-disable-features-when-the-files-are-too-large.js b/tests/baselines/reference/tsserver/projects/should-disable-features-when-the-files-are-too-large.js index 4e073607f787f..cdec75d879468 100644 --- a/tests/baselines/reference/tsserver/projects/should-disable-features-when-the-files-are-too-large.js +++ b/tests/baselines/reference/tsserver/projects/should-disable-features-when-the-files-are-too-large.js @@ -65,7 +65,7 @@ TI:: typing installer creation complete //// [/a/data/node_modules/types-registry/index.json] { - "entries": {} + "entries": {} } diff --git a/tests/baselines/reference/tsserver/projects/synchronizeProjectList-returns-correct-information-when-base-configuration-file-cannot-be-resolved-and-redirect-info-is-requested.js b/tests/baselines/reference/tsserver/projects/synchronizeProjectList-returns-correct-information-when-base-configuration-file-cannot-be-resolved-and-redirect-info-is-requested.js index 5b42afd6591d9..e6c43b1dbdf54 100644 --- a/tests/baselines/reference/tsserver/projects/synchronizeProjectList-returns-correct-information-when-base-configuration-file-cannot-be-resolved-and-redirect-info-is-requested.js +++ b/tests/baselines/reference/tsserver/projects/synchronizeProjectList-returns-correct-information-when-base-configuration-file-cannot-be-resolved-and-redirect-info-is-requested.js @@ -5,7 +5,9 @@ Before request export const foo = 5; //// [/user/username/projects/myproject/tsconfig.json] -{"extends":"./tsconfig_base.json"} +{ + "extends": "./tsconfig_base.json" +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projects/synchronizeProjectList-returns-correct-information-when-base-configuration-file-cannot-be-resolved.js b/tests/baselines/reference/tsserver/projects/synchronizeProjectList-returns-correct-information-when-base-configuration-file-cannot-be-resolved.js index 0c1ad5a57c4a9..516d4c330db98 100644 --- a/tests/baselines/reference/tsserver/projects/synchronizeProjectList-returns-correct-information-when-base-configuration-file-cannot-be-resolved.js +++ b/tests/baselines/reference/tsserver/projects/synchronizeProjectList-returns-correct-information-when-base-configuration-file-cannot-be-resolved.js @@ -5,7 +5,9 @@ Before request export const foo = 5; //// [/user/username/projects/myproject/tsconfig.json] -{"extends":"./tsconfig_base.json"} +{ + "extends": "./tsconfig_base.json" +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/projects/tsconfig-script-block-support.js b/tests/baselines/reference/tsserver/projects/tsconfig-script-block-support.js index 18bcd0c7c8f30..11b995c44c7e4 100644 --- a/tests/baselines/reference/tsserver/projects/tsconfig-script-block-support.js +++ b/tests/baselines/reference/tsserver/projects/tsconfig-script-block-support.js @@ -8,7 +8,11 @@ Before request var hello = "hello"; //// [/a/b/tsconfig.json] -{"compilerOptions":{"allowJs":true}} +{ + "compilerOptions": { + "allowJs": true + } +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/projectsWithReferences/sample-project.js b/tests/baselines/reference/tsserver/projectsWithReferences/sample-project.js index a89eb560ae027..aa309629677a4 100644 --- a/tests/baselines/reference/tsserver/projectsWithReferences/sample-project.js +++ b/tests/baselines/reference/tsserver/projectsWithReferences/sample-project.js @@ -15,77 +15,82 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/sample1/core/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - } +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + } } //// [/user/username/projects/sample1/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } - - -//// [/user/username/projects/sample1/core/anotherModule.ts] -export const World = "hello"; +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } //// [/user/username/projects/sample1/core/some_decl.d.ts] declare const dts: any; +//// [/user/username/projects/sample1/core/anotherModule.ts] +export const World = "hello"; //// [/user/username/projects/sample1/logic/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../core" } - ] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + }, + "references": [ + { + "path": "../core" + } + ] } - //// [/user/username/projects/sample1/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; //// [/user/username/projects/sample1/tests/tsconfig.json] -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" } - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - } +{ + "references": [ + { + "path": "../core" + }, + { + "path": "../logic" + } + ], + "files": [ + "index.ts" + ], + "compilerOptions": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + } } //// [/user/username/projects/sample1/tests/index.ts] -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; @@ -169,10 +174,10 @@ Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /user/username/pr Info seq [hh:mm:ss:mss] Project '/user/username/projects/sample1/tests/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) /a/lib/lib.d.ts Text-1 "/// \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; }" - /user/username/projects/sample1/core/index.ts Text-1 "export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n" - /user/username/projects/sample1/core/anotherModule.ts Text-1 "export const World = \"hello\";\r\n" - /user/username/projects/sample1/logic/index.ts Text-1 "import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n" - /user/username/projects/sample1/tests/index.ts SVC-1-0 "import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n" + /user/username/projects/sample1/core/index.ts Text-1 "export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n" + /user/username/projects/sample1/core/anotherModule.ts Text-1 "export const World = \"hello\";" + /user/username/projects/sample1/logic/index.ts Text-1 "import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n" + /user/username/projects/sample1/tests/index.ts SVC-1-0 "import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n" ../../../../../a/lib/lib.d.ts @@ -206,12 +211,12 @@ Before running Timeout callback:: count: 2 1: /user/username/projects/sample1/tests/tsconfig.json 2: *ensureProjectForOpenFiles* //// [/user/username/projects/sample1/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; function foo() {} @@ -251,10 +256,10 @@ Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /user/username/pr Info seq [hh:mm:ss:mss] Project '/user/username/projects/sample1/tests/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) /a/lib/lib.d.ts Text-1 "/// \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; }" - /user/username/projects/sample1/core/index.ts Text-1 "export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n" - /user/username/projects/sample1/core/anotherModule.ts Text-1 "export const World = \"hello\";\r\n" - /user/username/projects/sample1/logic/index.ts Text-2 "import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\nfunction foo() {}" - /user/username/projects/sample1/tests/index.ts SVC-1-0 "import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n" + /user/username/projects/sample1/core/index.ts Text-1 "export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n" + /user/username/projects/sample1/core/anotherModule.ts Text-1 "export const World = \"hello\";" + /user/username/projects/sample1/logic/index.ts Text-2 "import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\nfunction foo() {}" + /user/username/projects/sample1/tests/index.ts SVC-1-0 "import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n" Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles* @@ -284,12 +289,12 @@ Before running Timeout callback:: count: 2 3: /user/username/projects/sample1/tests/tsconfig.json 4: *ensureProjectForOpenFiles* //// [/user/username/projects/sample1/logic/index.ts] -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; function foo() {}export function gfoo() {} @@ -299,10 +304,10 @@ Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /user/username/pr Info seq [hh:mm:ss:mss] Project '/user/username/projects/sample1/tests/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) /a/lib/lib.d.ts Text-1 "/// \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; }" - /user/username/projects/sample1/core/index.ts Text-1 "export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n" - /user/username/projects/sample1/core/anotherModule.ts Text-1 "export const World = \"hello\";\r\n" - /user/username/projects/sample1/logic/index.ts Text-3 "import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\nfunction foo() {}export function gfoo() {}" - /user/username/projects/sample1/tests/index.ts SVC-1-0 "import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n" + /user/username/projects/sample1/core/index.ts Text-1 "export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n" + /user/username/projects/sample1/core/anotherModule.ts Text-1 "export const World = \"hello\";" + /user/username/projects/sample1/logic/index.ts Text-3 "import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\nfunction foo() {}export function gfoo() {}" + /user/username/projects/sample1/tests/index.ts SVC-1-0 "import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n" Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles* @@ -332,7 +337,18 @@ Before running Timeout callback:: count: 2 5: /user/username/projects/sample1/tests/tsconfig.json 6: *ensureProjectForOpenFiles* //// [/user/username/projects/sample1/logic/tsconfig.json] -{"compilerOptions":{"composite":true,"declaration":true,"declarationDir":"decls"},"references":[{"path":"../core"}]} +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationDir": "decls" + }, + "references": [ + { + "path": "../core" + } + ] +} Info seq [hh:mm:ss:mss] Running: /user/username/projects/sample1/tests/tsconfig.json @@ -358,10 +374,10 @@ Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /user/username/pr Info seq [hh:mm:ss:mss] Project '/user/username/projects/sample1/tests/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) /a/lib/lib.d.ts Text-1 "/// \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; }" - /user/username/projects/sample1/core/index.ts Text-1 "export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n" - /user/username/projects/sample1/core/anotherModule.ts Text-1 "export const World = \"hello\";\r\n" - /user/username/projects/sample1/logic/index.ts Text-3 "import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\nfunction foo() {}export function gfoo() {}" - /user/username/projects/sample1/tests/index.ts SVC-1-0 "import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n" + /user/username/projects/sample1/core/index.ts Text-1 "export const someString: string = \"HELLO WORLD\";\nexport function leftPad(s: string, n: number) { return s + n; }\nexport function multiply(a: number, b: number) { return a * b; }\n" + /user/username/projects/sample1/core/anotherModule.ts Text-1 "export const World = \"hello\";" + /user/username/projects/sample1/logic/index.ts Text-3 "import * as c from '../core/index';\nexport function getSecondsInDay() {\n return c.multiply(10, 15);\n}\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\nfunction foo() {}export function gfoo() {}" + /user/username/projects/sample1/tests/index.ts SVC-1-0 "import * as c from '../core/index';\nimport * as logic from '../logic/index';\n\nc.leftPad(\"\", 10);\nlogic.getSecondsInDay();\n\nimport * as mod from '../core/anotherModule';\nexport const m = mod;\n" Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles* diff --git a/tests/baselines/reference/tsserver/projectsWithReferences/transitive-references-with-deleting-referenced-config-file.js b/tests/baselines/reference/tsserver/projectsWithReferences/transitive-references-with-deleting-referenced-config-file.js index 3537af40b9556..cc6d38f9ec10a 100644 --- a/tests/baselines/reference/tsserver/projectsWithReferences/transitive-references-with-deleting-referenced-config-file.js +++ b/tests/baselines/reference/tsserver/projectsWithReferences/transitive-references-with-deleting-referenced-config-file.js @@ -15,13 +15,55 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/a/tsconfig.json] -{"compilerOptions":{"composite":true},"files":["index.ts"]} +{ + "compilerOptions": { + "composite": true + }, + "files": [ + "index.ts" + ] +} //// [/user/username/projects/myproject/b/tsconfig.json] -{"compilerOptions":{"composite":true,"baseUrl":"./","paths":{"@ref/*":["../*"]}},"files":["index.ts"],"references":[{"path":"../a"}]} +{ + "compilerOptions": { + "composite": true, + "baseUrl": "./", + "paths": { + "@ref/*": [ + "../*" + ] + } + }, + "files": [ + "index.ts" + ], + "references": [ + { + "path": "../a" + } + ] +} //// [/user/username/projects/myproject/c/tsconfig.json] -{"compilerOptions":{"baseUrl":"./","paths":{"@ref/*":["../refs/*"]}},"files":["index.ts"],"references":[{"path":"../b"}]} +{ + "compilerOptions": { + "baseUrl": "./", + "paths": { + "@ref/*": [ + "../refs/*" + ] + } + }, + "files": [ + "index.ts" + ], + "references": [ + { + "path": "../b" + } + ] +} //// [/user/username/projects/myproject/a/index.ts] export class A {} @@ -296,7 +338,25 @@ Before running Timeout callback:: count: 3 5: *ensureProjectForOpenFiles* 6: /user/username/projects/myproject/c/tsconfig.jsonFailedLookupInvalidation //// [/user/username/projects/myproject/b/tsconfig.json] -{"compilerOptions":{"composite":true,"baseUrl":"./","paths":{"@ref/*":["../*"]}},"files":["index.ts"],"references":[{"path":"../a"}]} +{ + "compilerOptions": { + "composite": true, + "baseUrl": "./", + "paths": { + "@ref/*": [ + "../*" + ] + } + }, + "files": [ + "index.ts" + ], + "references": [ + { + "path": "../a" + } + ] +} Info seq [hh:mm:ss:mss] Running: /user/username/projects/myproject/c/tsconfig.json diff --git a/tests/baselines/reference/tsserver/projectsWithReferences/transitive-references-with-deleting-transitively-referenced-config-file.js b/tests/baselines/reference/tsserver/projectsWithReferences/transitive-references-with-deleting-transitively-referenced-config-file.js index b18983a8dea68..136b647ffa5d7 100644 --- a/tests/baselines/reference/tsserver/projectsWithReferences/transitive-references-with-deleting-transitively-referenced-config-file.js +++ b/tests/baselines/reference/tsserver/projectsWithReferences/transitive-references-with-deleting-transitively-referenced-config-file.js @@ -15,13 +15,55 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/a/tsconfig.json] -{"compilerOptions":{"composite":true},"files":["index.ts"]} +{ + "compilerOptions": { + "composite": true + }, + "files": [ + "index.ts" + ] +} //// [/user/username/projects/myproject/b/tsconfig.json] -{"compilerOptions":{"composite":true,"baseUrl":"./","paths":{"@ref/*":["../*"]}},"files":["index.ts"],"references":[{"path":"../a"}]} +{ + "compilerOptions": { + "composite": true, + "baseUrl": "./", + "paths": { + "@ref/*": [ + "../*" + ] + } + }, + "files": [ + "index.ts" + ], + "references": [ + { + "path": "../a" + } + ] +} //// [/user/username/projects/myproject/c/tsconfig.json] -{"compilerOptions":{"baseUrl":"./","paths":{"@ref/*":["../refs/*"]}},"files":["index.ts"],"references":[{"path":"../b"}]} +{ + "compilerOptions": { + "baseUrl": "./", + "paths": { + "@ref/*": [ + "../refs/*" + ] + } + }, + "files": [ + "index.ts" + ], + "references": [ + { + "path": "../b" + } + ] +} //// [/user/username/projects/myproject/a/index.ts] export class A {} @@ -245,7 +287,14 @@ Before running Timeout callback:: count: 3 5: *ensureProjectForOpenFiles* 6: /user/username/projects/myproject/c/tsconfig.jsonFailedLookupInvalidation //// [/user/username/projects/myproject/a/tsconfig.json] -{"compilerOptions":{"composite":true},"files":["index.ts"]} +{ + "compilerOptions": { + "composite": true + }, + "files": [ + "index.ts" + ] +} Info seq [hh:mm:ss:mss] Running: /user/username/projects/myproject/c/tsconfig.json diff --git a/tests/baselines/reference/tsserver/projectsWithReferences/transitive-references-with-edit-in-referenced-config-file.js b/tests/baselines/reference/tsserver/projectsWithReferences/transitive-references-with-edit-in-referenced-config-file.js index beaf028bbcc5a..f4741fc196f06 100644 --- a/tests/baselines/reference/tsserver/projectsWithReferences/transitive-references-with-edit-in-referenced-config-file.js +++ b/tests/baselines/reference/tsserver/projectsWithReferences/transitive-references-with-edit-in-referenced-config-file.js @@ -15,13 +15,55 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/a/tsconfig.json] -{"compilerOptions":{"composite":true},"files":["index.ts"]} +{ + "compilerOptions": { + "composite": true + }, + "files": [ + "index.ts" + ] +} //// [/user/username/projects/myproject/b/tsconfig.json] -{"compilerOptions":{"composite":true,"baseUrl":"./","paths":{"@ref/*":["../*"]}},"files":["index.ts"],"references":[{"path":"../a"}]} +{ + "compilerOptions": { + "composite": true, + "baseUrl": "./", + "paths": { + "@ref/*": [ + "../*" + ] + } + }, + "files": [ + "index.ts" + ], + "references": [ + { + "path": "../a" + } + ] +} //// [/user/username/projects/myproject/c/tsconfig.json] -{"compilerOptions":{"baseUrl":"./","paths":{"@ref/*":["../refs/*"]}},"files":["index.ts"],"references":[{"path":"../b"}]} +{ + "compilerOptions": { + "baseUrl": "./", + "paths": { + "@ref/*": [ + "../refs/*" + ] + } + }, + "files": [ + "index.ts" + ], + "references": [ + { + "path": "../b" + } + ] +} //// [/user/username/projects/myproject/a/index.ts] export class A {} @@ -159,7 +201,25 @@ Before running Timeout callback:: count: 3 2: /user/username/projects/myproject/c/tsconfig.json 3: *ensureProjectForOpenFiles* //// [/user/username/projects/myproject/b/tsconfig.json] -{"compilerOptions":{"composite":true,"baseUrl":"./","paths":{"@ref/*":["../nrefs/*"]}},"files":["index.ts"],"references":[{"path":"../a"}]} +{ + "compilerOptions": { + "composite": true, + "baseUrl": "./", + "paths": { + "@ref/*": [ + "../nrefs/*" + ] + } + }, + "files": [ + "index.ts" + ], + "references": [ + { + "path": "../a" + } + ] +} //// [/user/username/projects/myproject/nrefs/a.d.ts] export class X {} @@ -319,7 +379,25 @@ Before running Timeout callback:: count: 2 4: /user/username/projects/myproject/c/tsconfig.json 5: *ensureProjectForOpenFiles* //// [/user/username/projects/myproject/b/tsconfig.json] -{"compilerOptions":{"composite":true,"baseUrl":"./","paths":{"@ref/*":["../*"]}},"files":["index.ts"],"references":[{"path":"../a"}]} +{ + "compilerOptions": { + "composite": true, + "baseUrl": "./", + "paths": { + "@ref/*": [ + "../*" + ] + } + }, + "files": [ + "index.ts" + ], + "references": [ + { + "path": "../a" + } + ] +} Info seq [hh:mm:ss:mss] Running: /user/username/projects/myproject/c/tsconfig.json diff --git a/tests/baselines/reference/tsserver/projectsWithReferences/transitive-references-with-edit-on-config-file.js b/tests/baselines/reference/tsserver/projectsWithReferences/transitive-references-with-edit-on-config-file.js index dfa5f40a559a3..011b36b936c0d 100644 --- a/tests/baselines/reference/tsserver/projectsWithReferences/transitive-references-with-edit-on-config-file.js +++ b/tests/baselines/reference/tsserver/projectsWithReferences/transitive-references-with-edit-on-config-file.js @@ -15,13 +15,55 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/a/tsconfig.json] -{"compilerOptions":{"composite":true},"files":["index.ts"]} +{ + "compilerOptions": { + "composite": true + }, + "files": [ + "index.ts" + ] +} //// [/user/username/projects/myproject/b/tsconfig.json] -{"compilerOptions":{"composite":true,"baseUrl":"./","paths":{"@ref/*":["../*"]}},"files":["index.ts"],"references":[{"path":"../a"}]} +{ + "compilerOptions": { + "composite": true, + "baseUrl": "./", + "paths": { + "@ref/*": [ + "../*" + ] + } + }, + "files": [ + "index.ts" + ], + "references": [ + { + "path": "../a" + } + ] +} //// [/user/username/projects/myproject/c/tsconfig.json] -{"compilerOptions":{"baseUrl":"./","paths":{"@ref/*":["../refs/*"]}},"files":["index.ts"],"references":[{"path":"../b"}]} +{ + "compilerOptions": { + "baseUrl": "./", + "paths": { + "@ref/*": [ + "../refs/*" + ] + } + }, + "files": [ + "index.ts" + ], + "references": [ + { + "path": "../b" + } + ] +} //// [/user/username/projects/myproject/a/index.ts] export class A {} @@ -159,7 +201,24 @@ Before running Timeout callback:: count: 3 2: /user/username/projects/myproject/c/tsconfig.json 3: *ensureProjectForOpenFiles* //// [/user/username/projects/myproject/c/tsconfig.json] -{"compilerOptions":{"baseUrl":"./","paths":{"@ref/*":["../nrefs/*"]}},"files":["index.ts"],"references":[{"path":"../b"}]} +{ + "compilerOptions": { + "baseUrl": "./", + "paths": { + "@ref/*": [ + "../nrefs/*" + ] + } + }, + "files": [ + "index.ts" + ], + "references": [ + { + "path": "../b" + } + ] +} //// [/user/username/projects/myproject/nrefs/a.d.ts] export class X {} @@ -319,7 +378,24 @@ Before running Timeout callback:: count: 2 4: /user/username/projects/myproject/c/tsconfig.json 5: *ensureProjectForOpenFiles* //// [/user/username/projects/myproject/c/tsconfig.json] -{"compilerOptions":{"baseUrl":"./","paths":{"@ref/*":["../refs/*"]}},"files":["index.ts"],"references":[{"path":"../b"}]} +{ + "compilerOptions": { + "baseUrl": "./", + "paths": { + "@ref/*": [ + "../refs/*" + ] + } + }, + "files": [ + "index.ts" + ], + "references": [ + { + "path": "../b" + } + ] +} Info seq [hh:mm:ss:mss] Running: /user/username/projects/myproject/c/tsconfig.json diff --git a/tests/baselines/reference/tsserver/projectsWithReferences/transitive-references-with-non-local-edit.js b/tests/baselines/reference/tsserver/projectsWithReferences/transitive-references-with-non-local-edit.js index 4852c8bdead5e..058de8411e479 100644 --- a/tests/baselines/reference/tsserver/projectsWithReferences/transitive-references-with-non-local-edit.js +++ b/tests/baselines/reference/tsserver/projectsWithReferences/transitive-references-with-non-local-edit.js @@ -15,13 +15,55 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/a/tsconfig.json] -{"compilerOptions":{"composite":true},"files":["index.ts"]} +{ + "compilerOptions": { + "composite": true + }, + "files": [ + "index.ts" + ] +} //// [/user/username/projects/myproject/b/tsconfig.json] -{"compilerOptions":{"composite":true,"baseUrl":"./","paths":{"@ref/*":["../*"]}},"files":["index.ts"],"references":[{"path":"../a"}]} +{ + "compilerOptions": { + "composite": true, + "baseUrl": "./", + "paths": { + "@ref/*": [ + "../*" + ] + } + }, + "files": [ + "index.ts" + ], + "references": [ + { + "path": "../a" + } + ] +} //// [/user/username/projects/myproject/c/tsconfig.json] -{"compilerOptions":{"baseUrl":"./","paths":{"@ref/*":["../refs/*"]}},"files":["index.ts"],"references":[{"path":"../b"}]} +{ + "compilerOptions": { + "baseUrl": "./", + "paths": { + "@ref/*": [ + "../refs/*" + ] + } + }, + "files": [ + "index.ts" + ], + "references": [ + { + "path": "../b" + } + ] +} //// [/user/username/projects/myproject/a/index.ts] export class A {} diff --git a/tests/baselines/reference/tsserver/projectsWithReferences/trasitive-references-without-files-with-deleting-referenced-config-file.js b/tests/baselines/reference/tsserver/projectsWithReferences/trasitive-references-without-files-with-deleting-referenced-config-file.js index 708290c7344fd..6d65ccebc8030 100644 --- a/tests/baselines/reference/tsserver/projectsWithReferences/trasitive-references-without-files-with-deleting-referenced-config-file.js +++ b/tests/baselines/reference/tsserver/projectsWithReferences/trasitive-references-without-files-with-deleting-referenced-config-file.js @@ -15,13 +15,46 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/a/tsconfig.json] -{"compilerOptions":{"composite":true}} +{ + "compilerOptions": { + "composite": true + } +} //// [/user/username/projects/myproject/b/tsconfig.json] -{"compilerOptions":{"composite":true,"baseUrl":"./","paths":{"@ref/*":["../*"]}},"references":[{"path":"../a"}]} +{ + "compilerOptions": { + "composite": true, + "baseUrl": "./", + "paths": { + "@ref/*": [ + "../*" + ] + } + }, + "references": [ + { + "path": "../a" + } + ] +} //// [/user/username/projects/myproject/c/tsconfig.json] -{"compilerOptions":{"baseUrl":"./","paths":{"@ref/*":["../refs/*"]}},"references":[{"path":"../b"}]} +{ + "compilerOptions": { + "baseUrl": "./", + "paths": { + "@ref/*": [ + "../refs/*" + ] + } + }, + "references": [ + { + "path": "../b" + } + ] +} //// [/user/username/projects/myproject/a/index.ts] export class A {} @@ -313,7 +346,22 @@ Before running Timeout callback:: count: 3 5: *ensureProjectForOpenFiles* 6: /user/username/projects/myproject/c/tsconfig.jsonFailedLookupInvalidation //// [/user/username/projects/myproject/b/tsconfig.json] -{"compilerOptions":{"composite":true,"baseUrl":"./","paths":{"@ref/*":["../*"]}},"references":[{"path":"../a"}]} +{ + "compilerOptions": { + "composite": true, + "baseUrl": "./", + "paths": { + "@ref/*": [ + "../*" + ] + } + }, + "references": [ + { + "path": "../a" + } + ] +} Info seq [hh:mm:ss:mss] Running: /user/username/projects/myproject/c/tsconfig.json diff --git a/tests/baselines/reference/tsserver/projectsWithReferences/trasitive-references-without-files-with-deleting-transitively-referenced-config-file.js b/tests/baselines/reference/tsserver/projectsWithReferences/trasitive-references-without-files-with-deleting-transitively-referenced-config-file.js index 7c47afdd2c51a..2d57571a076c9 100644 --- a/tests/baselines/reference/tsserver/projectsWithReferences/trasitive-references-without-files-with-deleting-transitively-referenced-config-file.js +++ b/tests/baselines/reference/tsserver/projectsWithReferences/trasitive-references-without-files-with-deleting-transitively-referenced-config-file.js @@ -15,13 +15,46 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/a/tsconfig.json] -{"compilerOptions":{"composite":true}} +{ + "compilerOptions": { + "composite": true + } +} //// [/user/username/projects/myproject/b/tsconfig.json] -{"compilerOptions":{"composite":true,"baseUrl":"./","paths":{"@ref/*":["../*"]}},"references":[{"path":"../a"}]} +{ + "compilerOptions": { + "composite": true, + "baseUrl": "./", + "paths": { + "@ref/*": [ + "../*" + ] + } + }, + "references": [ + { + "path": "../a" + } + ] +} //// [/user/username/projects/myproject/c/tsconfig.json] -{"compilerOptions":{"baseUrl":"./","paths":{"@ref/*":["../refs/*"]}},"references":[{"path":"../b"}]} +{ + "compilerOptions": { + "baseUrl": "./", + "paths": { + "@ref/*": [ + "../refs/*" + ] + } + }, + "references": [ + { + "path": "../b" + } + ] +} //// [/user/username/projects/myproject/a/index.ts] export class A {} @@ -258,7 +291,11 @@ Before running Timeout callback:: count: 3 5: *ensureProjectForOpenFiles* 6: /user/username/projects/myproject/c/tsconfig.jsonFailedLookupInvalidation //// [/user/username/projects/myproject/a/tsconfig.json] -{"compilerOptions":{"composite":true}} +{ + "compilerOptions": { + "composite": true + } +} Info seq [hh:mm:ss:mss] Running: /user/username/projects/myproject/c/tsconfig.json diff --git a/tests/baselines/reference/tsserver/projectsWithReferences/trasitive-references-without-files-with-edit-in-referenced-config-file.js b/tests/baselines/reference/tsserver/projectsWithReferences/trasitive-references-without-files-with-edit-in-referenced-config-file.js index d1483bec44d6b..27c30155454c6 100644 --- a/tests/baselines/reference/tsserver/projectsWithReferences/trasitive-references-without-files-with-edit-in-referenced-config-file.js +++ b/tests/baselines/reference/tsserver/projectsWithReferences/trasitive-references-without-files-with-edit-in-referenced-config-file.js @@ -15,13 +15,46 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/a/tsconfig.json] -{"compilerOptions":{"composite":true}} +{ + "compilerOptions": { + "composite": true + } +} //// [/user/username/projects/myproject/b/tsconfig.json] -{"compilerOptions":{"composite":true,"baseUrl":"./","paths":{"@ref/*":["../*"]}},"references":[{"path":"../a"}]} +{ + "compilerOptions": { + "composite": true, + "baseUrl": "./", + "paths": { + "@ref/*": [ + "../*" + ] + } + }, + "references": [ + { + "path": "../a" + } + ] +} //// [/user/username/projects/myproject/c/tsconfig.json] -{"compilerOptions":{"baseUrl":"./","paths":{"@ref/*":["../refs/*"]}},"references":[{"path":"../b"}]} +{ + "compilerOptions": { + "baseUrl": "./", + "paths": { + "@ref/*": [ + "../refs/*" + ] + } + }, + "references": [ + { + "path": "../b" + } + ] +} //// [/user/username/projects/myproject/a/index.ts] export class A {} @@ -165,7 +198,22 @@ Before running Timeout callback:: count: 3 2: /user/username/projects/myproject/c/tsconfig.json 3: *ensureProjectForOpenFiles* //// [/user/username/projects/myproject/b/tsconfig.json] -{"compilerOptions":{"composite":true,"baseUrl":"./","paths":{"@ref/*":["../nrefs/*"]}},"references":[{"path":"../a"}]} +{ + "compilerOptions": { + "composite": true, + "baseUrl": "./", + "paths": { + "@ref/*": [ + "../nrefs/*" + ] + } + }, + "references": [ + { + "path": "../a" + } + ] +} //// [/user/username/projects/myproject/nrefs/a.d.ts] export class X {} @@ -327,7 +375,22 @@ Before running Timeout callback:: count: 2 4: /user/username/projects/myproject/c/tsconfig.json 5: *ensureProjectForOpenFiles* //// [/user/username/projects/myproject/b/tsconfig.json] -{"compilerOptions":{"composite":true,"baseUrl":"./","paths":{"@ref/*":["../*"]}},"references":[{"path":"../a"}]} +{ + "compilerOptions": { + "composite": true, + "baseUrl": "./", + "paths": { + "@ref/*": [ + "../*" + ] + } + }, + "references": [ + { + "path": "../a" + } + ] +} Info seq [hh:mm:ss:mss] Running: /user/username/projects/myproject/c/tsconfig.json diff --git a/tests/baselines/reference/tsserver/projectsWithReferences/trasitive-references-without-files-with-edit-on-config-file.js b/tests/baselines/reference/tsserver/projectsWithReferences/trasitive-references-without-files-with-edit-on-config-file.js index e0f941425fd93..1977d4b8d5643 100644 --- a/tests/baselines/reference/tsserver/projectsWithReferences/trasitive-references-without-files-with-edit-on-config-file.js +++ b/tests/baselines/reference/tsserver/projectsWithReferences/trasitive-references-without-files-with-edit-on-config-file.js @@ -15,13 +15,46 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/a/tsconfig.json] -{"compilerOptions":{"composite":true}} +{ + "compilerOptions": { + "composite": true + } +} //// [/user/username/projects/myproject/b/tsconfig.json] -{"compilerOptions":{"composite":true,"baseUrl":"./","paths":{"@ref/*":["../*"]}},"references":[{"path":"../a"}]} +{ + "compilerOptions": { + "composite": true, + "baseUrl": "./", + "paths": { + "@ref/*": [ + "../*" + ] + } + }, + "references": [ + { + "path": "../a" + } + ] +} //// [/user/username/projects/myproject/c/tsconfig.json] -{"compilerOptions":{"baseUrl":"./","paths":{"@ref/*":["../refs/*"]}},"references":[{"path":"../b"}]} +{ + "compilerOptions": { + "baseUrl": "./", + "paths": { + "@ref/*": [ + "../refs/*" + ] + } + }, + "references": [ + { + "path": "../b" + } + ] +} //// [/user/username/projects/myproject/a/index.ts] export class A {} @@ -165,7 +198,21 @@ Before running Timeout callback:: count: 3 2: /user/username/projects/myproject/c/tsconfig.json 3: *ensureProjectForOpenFiles* //// [/user/username/projects/myproject/c/tsconfig.json] -{"compilerOptions":{"baseUrl":"./","paths":{"@ref/*":["../nrefs/*"]}},"references":[{"path":"../b"}]} +{ + "compilerOptions": { + "baseUrl": "./", + "paths": { + "@ref/*": [ + "../nrefs/*" + ] + } + }, + "references": [ + { + "path": "../b" + } + ] +} //// [/user/username/projects/myproject/nrefs/a.d.ts] export class X {} @@ -329,7 +376,21 @@ Before running Timeout callback:: count: 2 4: /user/username/projects/myproject/c/tsconfig.json 5: *ensureProjectForOpenFiles* //// [/user/username/projects/myproject/c/tsconfig.json] -{"compilerOptions":{"baseUrl":"./","paths":{"@ref/*":["../refs/*"]}},"references":[{"path":"../b"}]} +{ + "compilerOptions": { + "baseUrl": "./", + "paths": { + "@ref/*": [ + "../refs/*" + ] + } + }, + "references": [ + { + "path": "../b" + } + ] +} Info seq [hh:mm:ss:mss] Running: /user/username/projects/myproject/c/tsconfig.json diff --git a/tests/baselines/reference/tsserver/projectsWithReferences/trasitive-references-without-files-with-non-local-edit.js b/tests/baselines/reference/tsserver/projectsWithReferences/trasitive-references-without-files-with-non-local-edit.js index 27ad0726815a8..187838f4493b6 100644 --- a/tests/baselines/reference/tsserver/projectsWithReferences/trasitive-references-without-files-with-non-local-edit.js +++ b/tests/baselines/reference/tsserver/projectsWithReferences/trasitive-references-without-files-with-non-local-edit.js @@ -15,13 +15,46 @@ interface String { charAt: any; } interface Array { length: number; [n: number]: T; } //// [/user/username/projects/myproject/a/tsconfig.json] -{"compilerOptions":{"composite":true}} +{ + "compilerOptions": { + "composite": true + } +} //// [/user/username/projects/myproject/b/tsconfig.json] -{"compilerOptions":{"composite":true,"baseUrl":"./","paths":{"@ref/*":["../*"]}},"references":[{"path":"../a"}]} +{ + "compilerOptions": { + "composite": true, + "baseUrl": "./", + "paths": { + "@ref/*": [ + "../*" + ] + } + }, + "references": [ + { + "path": "../a" + } + ] +} //// [/user/username/projects/myproject/c/tsconfig.json] -{"compilerOptions":{"baseUrl":"./","paths":{"@ref/*":["../refs/*"]}},"references":[{"path":"../b"}]} +{ + "compilerOptions": { + "baseUrl": "./", + "paths": { + "@ref/*": [ + "../refs/*" + ] + } + }, + "references": [ + { + "path": "../b" + } + ] +} //// [/user/username/projects/myproject/a/index.ts] export class A {} diff --git a/tests/baselines/reference/tsserver/reloadProjects/configured-project.js b/tests/baselines/reference/tsserver/reloadProjects/configured-project.js index 4f4b947f04c7d..2b8ffc6c4d002 100644 --- a/tests/baselines/reference/tsserver/reloadProjects/configured-project.js +++ b/tests/baselines/reference/tsserver/reloadProjects/configured-project.js @@ -2,7 +2,13 @@ currentDirectory:: / useCaseSensitiveFileNames: false Info seq [hh:mm:ss:mss] Provided types map file "/a/lib/typesMap.json" doesn't exist Before request //// [/user/username/projects/myproject/tsconfig.json] -{"watchOptions":{"excludeDirectories":["node_modules"]}} +{ + "watchOptions": { + "excludeDirectories": [ + "node_modules" + ] + } +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/reloadProjects/external-project-with-config-file.js b/tests/baselines/reference/tsserver/reloadProjects/external-project-with-config-file.js index 92054706ff654..f8a6a9404f0a3 100644 --- a/tests/baselines/reference/tsserver/reloadProjects/external-project-with-config-file.js +++ b/tests/baselines/reference/tsserver/reloadProjects/external-project-with-config-file.js @@ -24,7 +24,13 @@ import { foo } from "module1"; export function bar(){} //// [/user/username/projects/myproject/tsconfig.json] -{"watchOptions":{"excludeDirectories":["node_modules"]}} +{ + "watchOptions": { + "excludeDirectories": [ + "node_modules" + ] + } +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/resolutionCache/avoid-unnecessary-lookup-invalidation-on-save.js b/tests/baselines/reference/tsserver/resolutionCache/avoid-unnecessary-lookup-invalidation-on-save.js index 930122f4a1c8c..2b985bae18cd6 100644 --- a/tests/baselines/reference/tsserver/resolutionCache/avoid-unnecessary-lookup-invalidation-on-save.js +++ b/tests/baselines/reference/tsserver/resolutionCache/avoid-unnecessary-lookup-invalidation-on-save.js @@ -11,7 +11,11 @@ export function module2() {} import { module1 } from "module1";import { module2 } from "module2"; //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"traceResolution":true}} +{ + "compilerOptions": { + "traceResolution": true + } +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/resolutionCache/can-load-typings-that-are-proper-modules.js b/tests/baselines/reference/tsserver/resolutionCache/can-load-typings-that-are-proper-modules.js index 1d6d406cd56d9..8dda38704c6e1 100644 --- a/tests/baselines/reference/tsserver/resolutionCache/can-load-typings-that-are-proper-modules.js +++ b/tests/baselines/reference/tsserver/resolutionCache/can-load-typings-that-are-proper-modules.js @@ -64,7 +64,7 @@ TI:: typing installer creation complete //// [/a/cache/node_modules/types-registry/index.json] { - "entries": {} + "entries": {} } diff --git a/tests/baselines/reference/tsserver/resolutionCache/disable-suggestion-diagnostics.js b/tests/baselines/reference/tsserver/resolutionCache/disable-suggestion-diagnostics.js index 26675aa0ba707..f6693c4635921 100644 --- a/tests/baselines/reference/tsserver/resolutionCache/disable-suggestion-diagnostics.js +++ b/tests/baselines/reference/tsserver/resolutionCache/disable-suggestion-diagnostics.js @@ -50,7 +50,7 @@ TI:: typing installer creation complete //// [/a/data/node_modules/types-registry/index.json] { - "entries": {} + "entries": {} } diff --git a/tests/baselines/reference/tsserver/resolutionCache/non-relative-module-name-from-files-in-different-folders.js b/tests/baselines/reference/tsserver/resolutionCache/non-relative-module-name-from-files-in-different-folders.js index 60cc560d44c66..932469b5ae542 100644 --- a/tests/baselines/reference/tsserver/resolutionCache/non-relative-module-name-from-files-in-different-folders.js +++ b/tests/baselines/reference/tsserver/resolutionCache/non-relative-module-name-from-files-in-different-folders.js @@ -20,7 +20,11 @@ import { module1 } from "module1";import { module2 } from "module2"; import { module1 } from "module1";import { module2 } from "module2"; //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"traceResolution":true}} +{ + "compilerOptions": { + "traceResolution": true + } +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/resolutionCache/non-relative-module-name-from-files-in-same-folder.js b/tests/baselines/reference/tsserver/resolutionCache/non-relative-module-name-from-files-in-same-folder.js index a1788db7ef12d..b69a1c2930483 100644 --- a/tests/baselines/reference/tsserver/resolutionCache/non-relative-module-name-from-files-in-same-folder.js +++ b/tests/baselines/reference/tsserver/resolutionCache/non-relative-module-name-from-files-in-same-folder.js @@ -14,7 +14,11 @@ import { module1 } from "module1";import { module2 } from "module2"; import { module1 } from "module1";import { module2 } from "module2"; //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"traceResolution":true}} +{ + "compilerOptions": { + "traceResolution": true + } +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/resolutionCache/not-sharing-across-references.js b/tests/baselines/reference/tsserver/resolutionCache/not-sharing-across-references.js index 5154fe405472c..e36f86508e886 100644 --- a/tests/baselines/reference/tsserver/resolutionCache/not-sharing-across-references.js +++ b/tests/baselines/reference/tsserver/resolutionCache/not-sharing-across-references.js @@ -5,7 +5,12 @@ Before request export const x = 10; //// [/users/username/projects/common/tsconfig.json] -{"compilerOptions":{"composite":true,"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "traceResolution": true + } +} //// [/users/username/projects/common/moduleA.ts] export const a = 10; @@ -16,7 +21,18 @@ export const b = x; //// [/users/username/projects/app/tsconfig.json] -{"compilerOptions":{"composite":true,"traceResolution":true,"typeRoots":[]},"references":[{"path":"../common"}]} +{ + "compilerOptions": { + "composite": true, + "traceResolution": true, + "typeRoots": [] + }, + "references": [ + { + "path": "../common" + } + ] +} //// [/users/username/projects/app/appA.ts] import { x } from "moduleX"; diff --git a/tests/baselines/reference/tsserver/resolutionCache/relative-module-name-from-files-in-different-folders.js b/tests/baselines/reference/tsserver/resolutionCache/relative-module-name-from-files-in-different-folders.js index ccdde47fa45b4..054d0097642f6 100644 --- a/tests/baselines/reference/tsserver/resolutionCache/relative-module-name-from-files-in-different-folders.js +++ b/tests/baselines/reference/tsserver/resolutionCache/relative-module-name-from-files-in-different-folders.js @@ -20,7 +20,11 @@ import { module1 } from "../../src/module1";import { module2 } from "../../modul import { module1 } from "../src/module1}";import { module2 } from "../module2"; //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"traceResolution":true}} +{ + "compilerOptions": { + "traceResolution": true + } +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/resolutionCache/relative-module-name-from-files-in-same-folder.js b/tests/baselines/reference/tsserver/resolutionCache/relative-module-name-from-files-in-same-folder.js index 61ecf7ced2dcc..4cd56e8e5e4f6 100644 --- a/tests/baselines/reference/tsserver/resolutionCache/relative-module-name-from-files-in-same-folder.js +++ b/tests/baselines/reference/tsserver/resolutionCache/relative-module-name-from-files-in-same-folder.js @@ -14,7 +14,11 @@ import { module1 } from "./module1";import { module2 } from "../module2"; import { module1 } from "./module1";import { module2 } from "../module2"; //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"traceResolution":true}} +{ + "compilerOptions": { + "traceResolution": true + } +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/resolutionCache/sharing-across-references.js b/tests/baselines/reference/tsserver/resolutionCache/sharing-across-references.js index b07eecf34be31..7dea2f384c62f 100644 --- a/tests/baselines/reference/tsserver/resolutionCache/sharing-across-references.js +++ b/tests/baselines/reference/tsserver/resolutionCache/sharing-across-references.js @@ -5,7 +5,12 @@ Before request export const x = 10; //// [/users/username/projects/common/tsconfig.json] -{"compilerOptions":{"composite":true,"traceResolution":true}} +{ + "compilerOptions": { + "composite": true, + "traceResolution": true + } +} //// [/users/username/projects/common/moduleA.ts] export const a = 10; @@ -16,7 +21,17 @@ export const b = x; //// [/users/username/projects/app/tsconfig.json] -{"compilerOptions":{"composite":true,"traceResolution":true},"references":[{"path":"../common"}]} +{ + "compilerOptions": { + "composite": true, + "traceResolution": true + }, + "references": [ + { + "path": "../common" + } + ] +} //// [/users/username/projects/app/appA.ts] import { x } from "moduleX"; diff --git a/tests/baselines/reference/tsserver/resolutionCache/suggestion-diagnostics.js b/tests/baselines/reference/tsserver/resolutionCache/suggestion-diagnostics.js index 15b65124659cb..fdc866e264e02 100644 --- a/tests/baselines/reference/tsserver/resolutionCache/suggestion-diagnostics.js +++ b/tests/baselines/reference/tsserver/resolutionCache/suggestion-diagnostics.js @@ -50,7 +50,7 @@ TI:: typing installer creation complete //// [/a/data/node_modules/types-registry/index.json] { - "entries": {} + "entries": {} } diff --git a/tests/baselines/reference/tsserver/resolutionCache/types-should-load-from-config-file-path-if-config-exists.js b/tests/baselines/reference/tsserver/resolutionCache/types-should-load-from-config-file-path-if-config-exists.js index c8579f2aa55f7..ecd0fbfad8567 100644 --- a/tests/baselines/reference/tsserver/resolutionCache/types-should-load-from-config-file-path-if-config-exists.js +++ b/tests/baselines/reference/tsserver/resolutionCache/types-should-load-from-config-file-path-if-config-exists.js @@ -5,7 +5,13 @@ Creating project service let x = 1 //// [/a/b/tsconfig.json] -{"compilerOptions":{"types":["node"]}} +{ + "compilerOptions": { + "types": [ + "node" + ] + } +} //// [/a/b/node_modules/@types/node/index.d.ts] declare var process: any diff --git a/tests/baselines/reference/tsserver/resolutionCache/types-should-not-load-from-config-file-path-if-config-exists-but-does-not-specifies-typeRoots.js b/tests/baselines/reference/tsserver/resolutionCache/types-should-not-load-from-config-file-path-if-config-exists-but-does-not-specifies-typeRoots.js index 0b0f5f8e023d6..ee2c6092dc501 100644 --- a/tests/baselines/reference/tsserver/resolutionCache/types-should-not-load-from-config-file-path-if-config-exists-but-does-not-specifies-typeRoots.js +++ b/tests/baselines/reference/tsserver/resolutionCache/types-should-not-load-from-config-file-path-if-config-exists-but-does-not-specifies-typeRoots.js @@ -5,7 +5,14 @@ Creating project service let x = 1 //// [/a/b/tsconfig.json] -{"compilerOptions":{"types":["node"],"typeRoots":[]}} +{ + "compilerOptions": { + "types": [ + "node" + ], + "typeRoots": [] + } +} //// [/a/b/node_modules/@types/node/index.d.ts] declare var process: any diff --git a/tests/baselines/reference/tsserver/resolutionCache/when-resolution-fails.js b/tests/baselines/reference/tsserver/resolutionCache/when-resolution-fails.js index c7c1bf6f1cfb8..85b3f645127d8 100644 --- a/tests/baselines/reference/tsserver/resolutionCache/when-resolution-fails.js +++ b/tests/baselines/reference/tsserver/resolutionCache/when-resolution-fails.js @@ -19,7 +19,18 @@ const y = x; export const x = 10; //// [/user/username/projects/myproject/src/tsconfig.json] -{"compilerOptions":{"module":"amd","moduleResolution":"classic","target":"es5","outDir":"../out","baseUrl":"./","typeRoots":["typings"]}} +{ + "compilerOptions": { + "module": "amd", + "moduleResolution": "classic", + "target": "es5", + "outDir": "../out", + "baseUrl": "./", + "typeRoots": [ + "typings" + ] + } +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/resolutionCache/when-resolves-to-ambient-module.js b/tests/baselines/reference/tsserver/resolutionCache/when-resolves-to-ambient-module.js index fcd948c705f99..bbb372bbe2f98 100644 --- a/tests/baselines/reference/tsserver/resolutionCache/when-resolves-to-ambient-module.js +++ b/tests/baselines/reference/tsserver/resolutionCache/when-resolves-to-ambient-module.js @@ -26,7 +26,18 @@ const y = x; export const x = 10; //// [/user/username/projects/myproject/src/tsconfig.json] -{"compilerOptions":{"module":"amd","moduleResolution":"classic","target":"es5","outDir":"../out","baseUrl":"./","typeRoots":["typings"]}} +{ + "compilerOptions": { + "module": "amd", + "moduleResolution": "classic", + "target": "es5", + "outDir": "../out", + "baseUrl": "./", + "typeRoots": [ + "typings" + ] + } +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/resolutionCache/when-watching-node_modules-as-part-of-wild-card-directories-in-config-project.js b/tests/baselines/reference/tsserver/resolutionCache/when-watching-node_modules-as-part-of-wild-card-directories-in-config-project.js index a2a8ca5bd617e..71d01ceee50ca 100644 --- a/tests/baselines/reference/tsserver/resolutionCache/when-watching-node_modules-as-part-of-wild-card-directories-in-config-project.js +++ b/tests/baselines/reference/tsserver/resolutionCache/when-watching-node_modules-as-part-of-wild-card-directories-in-config-project.js @@ -116,5 +116,7 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /user/u Timeout callback:: count: 0 Immedidate callback:: count: 0 //// [/user/username/projects/myproject/node_modules/.cache/babel-loader/89c02171edab901b9926470ba6d5677e.ts] -{"something":10} +{ + "something": 10 +} diff --git a/tests/baselines/reference/tsserver/resolutionCache/when-watching-node_modules-in-inferred-project-for-failed-lookup/closed-script-infos.js b/tests/baselines/reference/tsserver/resolutionCache/when-watching-node_modules-in-inferred-project-for-failed-lookup/closed-script-infos.js index 78dd6e8408948..31df108dedb8a 100644 --- a/tests/baselines/reference/tsserver/resolutionCache/when-watching-node_modules-in-inferred-project-for-failed-lookup/closed-script-infos.js +++ b/tests/baselines/reference/tsserver/resolutionCache/when-watching-node_modules-in-inferred-project-for-failed-lookup/closed-script-infos.js @@ -94,5 +94,7 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /user/u Timeout callback:: count: 0 Immedidate callback:: count: 0 //// [/user/username/projects/myproject/node_modules/.cache/babel-loader/89c02171edab901b9926470ba6d5677e.ts] -{"something":10} +{ + "something": 10 +} diff --git a/tests/baselines/reference/tsserver/resolutionCache/works-correctly-when-typings-are-added-or-removed.js b/tests/baselines/reference/tsserver/resolutionCache/works-correctly-when-typings-are-added-or-removed.js index bc9b8af81ac69..66a83c7bc5765 100644 --- a/tests/baselines/reference/tsserver/resolutionCache/works-correctly-when-typings-are-added-or-removed.js +++ b/tests/baselines/reference/tsserver/resolutionCache/works-correctly-when-typings-are-added-or-removed.js @@ -8,7 +8,12 @@ let x = 1; export let a: number //// [/users/username/projects/project/tsconfig.json] -{"compilerOptions":{},"exclude":["node_modules"]} +{ + "compilerOptions": {}, + "exclude": [ + "node_modules" + ] +} Info seq [hh:mm:ss:mss] Search path: /users/username/projects/project diff --git a/tests/baselines/reference/tsserver/skipLibCheck/jsonly-external-project-with-skipLibCheck-as-false.js b/tests/baselines/reference/tsserver/skipLibCheck/jsonly-external-project-with-skipLibCheck-as-false.js index 5bae11f1d88f7..7390385e78167 100644 --- a/tests/baselines/reference/tsserver/skipLibCheck/jsonly-external-project-with-skipLibCheck-as-false.js +++ b/tests/baselines/reference/tsserver/skipLibCheck/jsonly-external-project-with-skipLibCheck-as-false.js @@ -78,7 +78,7 @@ TI:: typing installer creation complete //// [/a/data/node_modules/types-registry/index.json] { - "entries": {} + "entries": {} } diff --git a/tests/baselines/reference/tsserver/skipLibCheck/jsonly-external-project.js b/tests/baselines/reference/tsserver/skipLibCheck/jsonly-external-project.js index 43faf4402f121..942c1587354c8 100644 --- a/tests/baselines/reference/tsserver/skipLibCheck/jsonly-external-project.js +++ b/tests/baselines/reference/tsserver/skipLibCheck/jsonly-external-project.js @@ -76,7 +76,7 @@ TI:: typing installer creation complete //// [/a/data/node_modules/types-registry/index.json] { - "entries": {} + "entries": {} } diff --git a/tests/baselines/reference/tsserver/skipLibCheck/jsonly-inferred-project.js b/tests/baselines/reference/tsserver/skipLibCheck/jsonly-inferred-project.js index f8ed68f31b9ed..606bc3947dde3 100644 --- a/tests/baselines/reference/tsserver/skipLibCheck/jsonly-inferred-project.js +++ b/tests/baselines/reference/tsserver/skipLibCheck/jsonly-inferred-project.js @@ -68,7 +68,7 @@ TI:: typing installer creation complete //// [/a/data/node_modules/types-registry/index.json] { - "entries": {} + "entries": {} } diff --git a/tests/baselines/reference/tsserver/skipLibCheck/reports-semantic-error-in-configured-js-project-with-tscheck.js b/tests/baselines/reference/tsserver/skipLibCheck/reports-semantic-error-in-configured-js-project-with-tscheck.js index 6ec5c9468dcf7..04949037a1b73 100644 --- a/tests/baselines/reference/tsserver/skipLibCheck/reports-semantic-error-in-configured-js-project-with-tscheck.js +++ b/tests/baselines/reference/tsserver/skipLibCheck/reports-semantic-error-in-configured-js-project-with-tscheck.js @@ -2,7 +2,12 @@ currentDirectory:: / useCaseSensitiveFileNames: false Info seq [hh:mm:ss:mss] Provided types map file "/a/lib/typesMap.json" doesn't exist Before request //// [/a/jsconfig.json] -{"compilerOptions":{"checkJs":true,"skipLibCheck":true}} +{ + "compilerOptions": { + "checkJs": true, + "skipLibCheck": true + } +} //// [/a/jsFile.js] let x = 1; @@ -99,7 +104,7 @@ TI:: typing installer creation complete //// [/a/data/node_modules/types-registry/index.json] { - "entries": {} + "entries": {} } diff --git a/tests/baselines/reference/tsserver/skipLibCheck/reports-semantic-error-in-configured-project-with-tscheck.js b/tests/baselines/reference/tsserver/skipLibCheck/reports-semantic-error-in-configured-project-with-tscheck.js index 9ba214453c8c1..35e6b56103ad6 100644 --- a/tests/baselines/reference/tsserver/skipLibCheck/reports-semantic-error-in-configured-project-with-tscheck.js +++ b/tests/baselines/reference/tsserver/skipLibCheck/reports-semantic-error-in-configured-project-with-tscheck.js @@ -100,7 +100,7 @@ TI:: typing installer creation complete //// [/a/data/node_modules/types-registry/index.json] { - "entries": {} + "entries": {} } diff --git a/tests/baselines/reference/tsserver/skipLibCheck/reports-semantic-error-with-tscheck.js b/tests/baselines/reference/tsserver/skipLibCheck/reports-semantic-error-with-tscheck.js index e28d745379cdc..51fa0b92a9363 100644 --- a/tests/baselines/reference/tsserver/skipLibCheck/reports-semantic-error-with-tscheck.js +++ b/tests/baselines/reference/tsserver/skipLibCheck/reports-semantic-error-with-tscheck.js @@ -52,7 +52,7 @@ TI:: typing installer creation complete //// [/a/data/node_modules/types-registry/index.json] { - "entries": {} + "entries": {} } diff --git a/tests/baselines/reference/tsserver/skipLibCheck/should-not-report-bind-errors-for-declaration-files-with-skipLibCheck=true.js b/tests/baselines/reference/tsserver/skipLibCheck/should-not-report-bind-errors-for-declaration-files-with-skipLibCheck=true.js index 2500547ea51c0..072b575bbee2a 100644 --- a/tests/baselines/reference/tsserver/skipLibCheck/should-not-report-bind-errors-for-declaration-files-with-skipLibCheck=true.js +++ b/tests/baselines/reference/tsserver/skipLibCheck/should-not-report-bind-errors-for-declaration-files-with-skipLibCheck=true.js @@ -119,7 +119,7 @@ TI:: typing installer creation complete //// [/a/data/node_modules/types-registry/index.json] { - "entries": {} + "entries": {} } diff --git a/tests/baselines/reference/tsserver/smartSelection/works-for-simple-JavaScript.js b/tests/baselines/reference/tsserver/smartSelection/works-for-simple-JavaScript.js index dad819893e307..7546140dcaf66 100644 --- a/tests/baselines/reference/tsserver/smartSelection/works-for-simple-JavaScript.js +++ b/tests/baselines/reference/tsserver/smartSelection/works-for-simple-JavaScript.js @@ -73,7 +73,7 @@ TI:: typing installer creation complete //// [/a/data/node_modules/types-registry/index.json] { - "entries": {} + "entries": {} } diff --git a/tests/baselines/reference/tsserver/symLinks/module-resolution-when-project-compiles-from-sources.js b/tests/baselines/reference/tsserver/symLinks/module-resolution-when-project-compiles-from-sources.js index 286995697847a..8f4ab49721bae 100644 --- a/tests/baselines/reference/tsserver/symLinks/module-resolution-when-project-compiles-from-sources.js +++ b/tests/baselines/reference/tsserver/symLinks/module-resolution-when-project-compiles-from-sources.js @@ -19,13 +19,19 @@ import {C} from "@microsoft/recognizers-text"; new C(); //// [/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json] -{"include":["src"]} +{ + "include": [ + "src" + ] +} //// [/users/username/projects/myproject/javascript/packages/recognizers-text/src/recognizers-text.ts] export class C { method () { return 10; } } //// [/users/username/projects/myproject/javascript/packages/recognizers-text/package.json] -{"typings":"dist/types/recognizers-text.d.ts"} +{ + "typings": "dist/types/recognizers-text.d.ts" +} Info seq [hh:mm:ss:mss] request: @@ -541,7 +547,14 @@ Before running Timeout callback:: count: 2 10: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json 11: *ensureProjectForOpenFiles* //// [/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json] -{"include":["src"],"compilerOptions":{"resolveJsonModule":true}} +{ + "include": [ + "src" + ], + "compilerOptions": { + "resolveJsonModule": true + } +} Info seq [hh:mm:ss:mss] Running: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json diff --git a/tests/baselines/reference/tsserver/symLinks/module-resolution-when-project-has-node_modules-setup-but-doesnt-have-modules-in-typings-folder-and-then-recompiles.js b/tests/baselines/reference/tsserver/symLinks/module-resolution-when-project-has-node_modules-setup-but-doesnt-have-modules-in-typings-folder-and-then-recompiles.js index 4b050dde7b823..e8671792fbf0d 100644 --- a/tests/baselines/reference/tsserver/symLinks/module-resolution-when-project-has-node_modules-setup-but-doesnt-have-modules-in-typings-folder-and-then-recompiles.js +++ b/tests/baselines/reference/tsserver/symLinks/module-resolution-when-project-has-node_modules-setup-but-doesnt-have-modules-in-typings-folder-and-then-recompiles.js @@ -19,13 +19,19 @@ import {C} from "@microsoft/recognizers-text"; new C(); //// [/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json] -{"include":["src"]} +{ + "include": [ + "src" + ] +} //// [/users/username/projects/myproject/javascript/packages/recognizers-text/src/recognizers-text.ts] export class C { method () { return 10; } } //// [/users/username/projects/myproject/javascript/packages/recognizers-text/package.json] -{"typings":"dist/types/recognizers-text.d.ts"} +{ + "typings": "dist/types/recognizers-text.d.ts" +} //// [/users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules/@microsoft/recognizers-text] symlink(/users/username/projects/myproject/javascript/packages/recognizers-text) diff --git a/tests/baselines/reference/tsserver/symLinks/module-resolution-when-project-recompiles-after-deleting-generated-folders.js b/tests/baselines/reference/tsserver/symLinks/module-resolution-when-project-recompiles-after-deleting-generated-folders.js index 4e4dc14c058c4..660fd3e3a4687 100644 --- a/tests/baselines/reference/tsserver/symLinks/module-resolution-when-project-recompiles-after-deleting-generated-folders.js +++ b/tests/baselines/reference/tsserver/symLinks/module-resolution-when-project-recompiles-after-deleting-generated-folders.js @@ -19,13 +19,19 @@ import {C} from "@microsoft/recognizers-text"; new C(); //// [/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json] -{"include":["src"]} +{ + "include": [ + "src" + ] +} //// [/users/username/projects/myproject/javascript/packages/recognizers-text/src/recognizers-text.ts] export class C { method () { return 10; } } //// [/users/username/projects/myproject/javascript/packages/recognizers-text/package.json] -{"typings":"dist/types/recognizers-text.d.ts"} +{ + "typings": "dist/types/recognizers-text.d.ts" +} //// [/users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules/@microsoft/recognizers-text] symlink(/users/username/projects/myproject/javascript/packages/recognizers-text) //// [/users/username/projects/myproject/javascript/packages/recognizers-text/dist/types/recognizers-text.d.ts] diff --git a/tests/baselines/reference/tsserver/symLinks/module-resolution-with-path-mapping-when-project-compiles-from-sources.js b/tests/baselines/reference/tsserver/symLinks/module-resolution-with-path-mapping-when-project-compiles-from-sources.js index a92d2deb68ce3..1d23b7503b606 100644 --- a/tests/baselines/reference/tsserver/symLinks/module-resolution-with-path-mapping-when-project-compiles-from-sources.js +++ b/tests/baselines/reference/tsserver/symLinks/module-resolution-with-path-mapping-when-project-compiles-from-sources.js @@ -19,13 +19,28 @@ import {C} from "@microsoft/recognizers-text"; new C(); //// [/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json] -{"compilerOptions":{"rootDir":"src","baseUrl":"./","paths":{"@microsoft/*":["../*"]}},"include":["src"]} +{ + "compilerOptions": { + "rootDir": "src", + "baseUrl": "./", + "paths": { + "@microsoft/*": [ + "../*" + ] + } + }, + "include": [ + "src" + ] +} //// [/users/username/projects/myproject/javascript/packages/recognizers-text/src/recognizers-text.ts] export class C { method () { return 10; } } //// [/users/username/projects/myproject/javascript/packages/recognizers-text/package.json] -{"typings":"dist/types/recognizers-text.d.ts"} +{ + "typings": "dist/types/recognizers-text.d.ts" +} Info seq [hh:mm:ss:mss] request: @@ -590,7 +605,21 @@ Before running Timeout callback:: count: 2 13: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json 14: *ensureProjectForOpenFiles* //// [/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json] -{"compilerOptions":{"rootDir":"src","baseUrl":"./","paths":{"@microsoft/*":["../*"]},"resolveJsonModule":true},"include":["src"]} +{ + "compilerOptions": { + "rootDir": "src", + "baseUrl": "./", + "paths": { + "@microsoft/*": [ + "../*" + ] + }, + "resolveJsonModule": true + }, + "include": [ + "src" + ] +} Info seq [hh:mm:ss:mss] Running: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json diff --git a/tests/baselines/reference/tsserver/symLinks/module-resolution-with-path-mapping-when-project-has-node_modules-setup-but-doesnt-have-modules-in-typings-folder-and-then-recompiles.js b/tests/baselines/reference/tsserver/symLinks/module-resolution-with-path-mapping-when-project-has-node_modules-setup-but-doesnt-have-modules-in-typings-folder-and-then-recompiles.js index 4e3cb196162f0..f1f17383aaca2 100644 --- a/tests/baselines/reference/tsserver/symLinks/module-resolution-with-path-mapping-when-project-has-node_modules-setup-but-doesnt-have-modules-in-typings-folder-and-then-recompiles.js +++ b/tests/baselines/reference/tsserver/symLinks/module-resolution-with-path-mapping-when-project-has-node_modules-setup-but-doesnt-have-modules-in-typings-folder-and-then-recompiles.js @@ -19,13 +19,28 @@ import {C} from "@microsoft/recognizers-text"; new C(); //// [/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json] -{"compilerOptions":{"rootDir":"src","baseUrl":"./","paths":{"@microsoft/*":["../*"]}},"include":["src"]} +{ + "compilerOptions": { + "rootDir": "src", + "baseUrl": "./", + "paths": { + "@microsoft/*": [ + "../*" + ] + } + }, + "include": [ + "src" + ] +} //// [/users/username/projects/myproject/javascript/packages/recognizers-text/src/recognizers-text.ts] export class C { method () { return 10; } } //// [/users/username/projects/myproject/javascript/packages/recognizers-text/package.json] -{"typings":"dist/types/recognizers-text.d.ts"} +{ + "typings": "dist/types/recognizers-text.d.ts" +} //// [/users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules/@microsoft/recognizers-text] symlink(/users/username/projects/myproject/javascript/packages/recognizers-text) diff --git a/tests/baselines/reference/tsserver/symLinks/module-resolution-with-path-mapping-when-project-recompiles-after-deleting-generated-folders.js b/tests/baselines/reference/tsserver/symLinks/module-resolution-with-path-mapping-when-project-recompiles-after-deleting-generated-folders.js index f78d8957bc9cd..33d3a7987d73f 100644 --- a/tests/baselines/reference/tsserver/symLinks/module-resolution-with-path-mapping-when-project-recompiles-after-deleting-generated-folders.js +++ b/tests/baselines/reference/tsserver/symLinks/module-resolution-with-path-mapping-when-project-recompiles-after-deleting-generated-folders.js @@ -19,13 +19,28 @@ import {C} from "@microsoft/recognizers-text"; new C(); //// [/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json] -{"compilerOptions":{"rootDir":"src","baseUrl":"./","paths":{"@microsoft/*":["../*"]}},"include":["src"]} +{ + "compilerOptions": { + "rootDir": "src", + "baseUrl": "./", + "paths": { + "@microsoft/*": [ + "../*" + ] + } + }, + "include": [ + "src" + ] +} //// [/users/username/projects/myproject/javascript/packages/recognizers-text/src/recognizers-text.ts] export class C { method () { return 10; } } //// [/users/username/projects/myproject/javascript/packages/recognizers-text/package.json] -{"typings":"dist/types/recognizers-text.d.ts"} +{ + "typings": "dist/types/recognizers-text.d.ts" +} //// [/users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules/@microsoft/recognizers-text] symlink(/users/username/projects/myproject/javascript/packages/recognizers-text) //// [/users/username/projects/myproject/javascript/packages/recognizers-text/dist/types/recognizers-text.d.ts] diff --git a/tests/baselines/reference/tsserver/symLinks/rename-in-common-file-renames-all-project.js b/tests/baselines/reference/tsserver/symLinks/rename-in-common-file-renames-all-project.js index 20e19e5b51a19..a1a0159dea9be 100644 --- a/tests/baselines/reference/tsserver/symLinks/rename-in-common-file-renames-all-project.js +++ b/tests/baselines/reference/tsserver/symLinks/rename-in-common-file-renames-all-project.js @@ -21,14 +21,22 @@ interface Array { length: number; [n: number]: T; } import {C} from "./c/fc"; console.log(C) //// [/users/username/projects/a/tsconfig.json] -{"compilerOptions":{"module":"commonjs"}} +{ + "compilerOptions": { + "module": "commonjs" + } +} //// [/users/username/projects/a/c] symlink(/users/username/projects/c) //// [/users/username/projects/b/b.ts] import {C} from "./c/fc"; console.log(C) //// [/users/username/projects/b/tsconfig.json] -{"compilerOptions":{"module":"commonjs"}} +{ + "compilerOptions": { + "module": "commonjs" + } +} //// [/users/username/projects/b/c] symlink(/users/username/projects/c) diff --git a/tests/baselines/reference/tsserver/symLinks/when-not-symlink-but-differs-in-casing.js b/tests/baselines/reference/tsserver/symLinks/when-not-symlink-but-differs-in-casing.js index ab4c177b8daa1..b6c9366d0a488 100644 --- a/tests/baselines/reference/tsserver/symLinks/when-not-symlink-but-differs-in-casing.js +++ b/tests/baselines/reference/tsserver/symLinks/when-not-symlink-but-differs-in-casing.js @@ -23,10 +23,19 @@ export const b2 = 10; //// [C:/temp/replay/axios-src/package.json] -{"name":"axios","version":"1.4.0","dependencies":{"follow-redirects":"^1.15.0"}} +{ + "name": "axios", + "version": "1.4.0", + "dependencies": { + "follow-redirects": "^1.15.0" + } +} //// [C:/temp/replay/axios-src/node_modules/follow-redirects/package.json] -{"name":"follow-redirects","version":"1.15.0"} +{ + "name": "follow-redirects", + "version": "1.15.0" +} //// [C:/temp/replay/axios-src/node_modules/follow-redirects/index.js] export const x = 10; diff --git a/tests/baselines/reference/tsserver/telemetry/counts-files-by-extension.js b/tests/baselines/reference/tsserver/telemetry/counts-files-by-extension.js index f9194733e2321..8d20264807215 100644 --- a/tests/baselines/reference/tsserver/telemetry/counts-files-by-extension.js +++ b/tests/baselines/reference/tsserver/telemetry/counts-files-by-extension.js @@ -26,7 +26,14 @@ Before request //// [/tsconfig.json] -{"compilerOptions":{"allowJs":true},"include":["src"]} +{ + "compilerOptions": { + "allowJs": true + }, + "include": [ + "src" + ] +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/telemetry/does-not-expose-paths.js b/tests/baselines/reference/tsserver/telemetry/does-not-expose-paths.js index 4a37ea495d706..5c36ca35fa32f 100644 --- a/tests/baselines/reference/tsserver/telemetry/does-not-expose-paths.js +++ b/tests/baselines/reference/tsserver/telemetry/does-not-expose-paths.js @@ -5,7 +5,48 @@ Before request //// [/tsconfig.json] -{"compilerOptions":{"project":"","outFile":"hunter2.js","outDir":"hunter2","rootDir":"hunter2","baseUrl":"hunter2","rootDirs":["hunter2"],"typeRoots":["hunter2"],"types":["hunter2"],"sourceRoot":"hunter2","mapRoot":"hunter2","jsxFactory":"hunter2","out":"hunter2","reactNamespace":"hunter2","charset":"hunter2","locale":"hunter2","declarationDir":"hunter2","paths":{"*":["hunter2"]},"declaration":true,"lib":["es6","dom","hunter2"],"checkJs":"hunter2","unknownCompilerOption":"hunter2"},"files":["/a.ts"]} +{ + "compilerOptions": { + "project": "", + "outFile": "hunter2.js", + "outDir": "hunter2", + "rootDir": "hunter2", + "baseUrl": "hunter2", + "rootDirs": [ + "hunter2" + ], + "typeRoots": [ + "hunter2" + ], + "types": [ + "hunter2" + ], + "sourceRoot": "hunter2", + "mapRoot": "hunter2", + "jsxFactory": "hunter2", + "out": "hunter2", + "reactNamespace": "hunter2", + "charset": "hunter2", + "locale": "hunter2", + "declarationDir": "hunter2", + "paths": { + "*": [ + "hunter2" + ] + }, + "declaration": true, + "lib": [ + "es6", + "dom", + "hunter2" + ], + "checkJs": "hunter2", + "unknownCompilerOption": "hunter2" + }, + "files": [ + "/a.ts" + ] +} Info seq [hh:mm:ss:mss] request: @@ -179,12 +220,12 @@ Info seq [hh:mm:ss:mss] event: { "span": { "start": { - "line": 1, - "offset": 172 + "line": 15, + "offset": 7 }, "end": { - "line": 1, - "offset": 181 + "line": 15, + "offset": 16 }, "file": "/tsconfig.json" }, @@ -212,12 +253,12 @@ Info seq [hh:mm:ss:mss] event: { "span": { "start": { - "line": 1, - "offset": 497 + "line": 40, + "offset": 5 }, "end": { - "line": 1, - "offset": 504 + "line": 40, + "offset": 12 }, "file": "/tsconfig.json" }, @@ -229,12 +270,12 @@ Info seq [hh:mm:ss:mss] event: }, { "start": { - "line": 1, - "offset": 34 + "line": 4, + "offset": 5 }, "end": { - "line": 1, - "offset": 43 + "line": 4, + "offset": 14 }, "text": "Option 'out' cannot be specified with option 'outFile'.", "code": 5053, @@ -243,12 +284,12 @@ Info seq [hh:mm:ss:mss] event: }, { "start": { - "line": 1, - "offset": 183 + "line": 17, + "offset": 5 }, "end": { - "line": 1, - "offset": 195 + "line": 17, + "offset": 17 }, "text": "Option 'sourceRoot can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided.", "code": 5051, @@ -257,12 +298,12 @@ Info seq [hh:mm:ss:mss] event: }, { "start": { - "line": 1, - "offset": 206 + "line": 18, + "offset": 5 }, "end": { - "line": 1, - "offset": 215 + "line": 18, + "offset": 14 }, "text": "Option 'mapRoot' cannot be specified without specifying option 'sourceMap' or option 'declarationMap'.", "code": 5069, @@ -271,12 +312,12 @@ Info seq [hh:mm:ss:mss] event: }, { "start": { - "line": 1, - "offset": 226 + "line": 19, + "offset": 5 }, "end": { - "line": 1, - "offset": 238 + "line": 19, + "offset": 17 }, "text": "Option 'reactNamespace' cannot be specified with option 'jsxFactory'.", "code": 5053, @@ -285,12 +326,12 @@ Info seq [hh:mm:ss:mss] event: }, { "start": { - "line": 1, - "offset": 249 + "line": 20, + "offset": 5 }, "end": { - "line": 1, - "offset": 254 + "line": 20, + "offset": 10 }, "text": "Option 'declarationDir' cannot be specified with option 'out'.", "code": 5053, @@ -299,12 +340,12 @@ Info seq [hh:mm:ss:mss] event: }, { "start": { - "line": 1, - "offset": 249 + "line": 20, + "offset": 5 }, "end": { - "line": 1, - "offset": 254 + "line": 20, + "offset": 10 }, "text": "Option 'out' cannot be specified with option 'outFile'.", "code": 5053, @@ -313,12 +354,12 @@ Info seq [hh:mm:ss:mss] event: }, { "start": { - "line": 1, - "offset": 249 + "line": 20, + "offset": 5 }, "end": { - "line": 1, - "offset": 254 + "line": 20, + "offset": 10 }, "text": "Option 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '\"ignoreDeprecations\": \"5.0\"' to silence this error.\n Use 'outFile' instead.", "code": 5101, @@ -327,12 +368,12 @@ Info seq [hh:mm:ss:mss] event: }, { "start": { - "line": 1, - "offset": 265 + "line": 21, + "offset": 5 }, "end": { - "line": 1, - "offset": 281 + "line": 21, + "offset": 21 }, "text": "Option 'reactNamespace' cannot be specified with option 'jsxFactory'.", "code": 5053, @@ -341,12 +382,12 @@ Info seq [hh:mm:ss:mss] event: }, { "start": { - "line": 1, - "offset": 292 + "line": 22, + "offset": 5 }, "end": { - "line": 1, - "offset": 301 + "line": 22, + "offset": 14 }, "text": "Option 'charset' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '\"ignoreDeprecations\": \"5.0\"' to silence this error.", "code": 5101, @@ -355,12 +396,12 @@ Info seq [hh:mm:ss:mss] event: }, { "start": { - "line": 1, - "offset": 331 + "line": 24, + "offset": 5 }, "end": { - "line": 1, - "offset": 347 + "line": 24, + "offset": 21 }, "text": "Option 'declarationDir' cannot be specified with option 'out'.", "code": 5053, @@ -409,12 +450,12 @@ Info seq [hh:mm:ss:mss] event: }, { "start": { - "line": 1, - "offset": 312 + "line": 23, + "offset": 5 }, "end": { - "line": 1, - "offset": 320 + "line": 23, + "offset": 13 }, "text": "Option 'locale' can only be specified on command line.", "code": 6266, @@ -423,12 +464,12 @@ Info seq [hh:mm:ss:mss] event: }, { "start": { - "line": 1, - "offset": 422 + "line": 34, + "offset": 7 }, "end": { - "line": 1, - "offset": 431 + "line": 34, + "offset": 16 }, "text": "Argument for '--lib' option must be: 'es5', 'es6', 'es2015', 'es7', 'es2016', 'es2017', 'es2018', 'es2019', 'es2020', 'es2021', 'es2022', 'es2023', 'esnext', 'dom', 'dom.iterable', 'webworker', 'webworker.importscripts', 'webworker.iterable', 'scripthost', 'es2015.core', 'es2015.collection', 'es2015.generator', 'es2015.iterable', 'es2015.promise', 'es2015.proxy', 'es2015.reflect', 'es2015.symbol', 'es2015.symbol.wellknown', 'es2016.array.include', 'es2017.date', 'es2017.object', 'es2017.sharedmemory', 'es2017.string', 'es2017.intl', 'es2017.typedarrays', 'es2018.asyncgenerator', 'es2018.asynciterable', 'es2018.intl', 'es2018.promise', 'es2018.regexp', 'es2019.array', 'es2019.object', 'es2019.string', 'es2019.symbol', 'es2019.intl', 'es2020.bigint', 'es2020.date', 'es2020.promise', 'es2020.sharedmemory', 'es2020.string', 'es2020.symbol.wellknown', 'es2020.intl', 'es2020.number', 'es2021.promise', 'es2021.string', 'es2021.weakref', 'es2021.intl', 'es2022.array', 'es2022.error', 'es2022.intl', 'es2022.object', 'es2022.sharedmemory', 'es2022.string', 'es2022.regexp', 'es2023.array', 'es2023.collection', 'esnext.array', 'esnext.collection', 'esnext.symbol', 'esnext.asynciterable', 'esnext.intl', 'esnext.disposable', 'esnext.bigint', 'esnext.string', 'esnext.promise', 'esnext.weakref', 'esnext.decorators', 'decorators', 'decorators.legacy'.", "code": 6046, @@ -437,12 +478,12 @@ Info seq [hh:mm:ss:mss] event: }, { "start": { - "line": 1, - "offset": 443 + "line": 36, + "offset": 16 }, "end": { - "line": 1, - "offset": 452 + "line": 36, + "offset": 25 }, "text": "Compiler option 'checkJs' requires a value of type boolean.", "code": 5024, @@ -451,12 +492,12 @@ Info seq [hh:mm:ss:mss] event: }, { "start": { - "line": 1, - "offset": 453 + "line": 37, + "offset": 5 }, "end": { - "line": 1, - "offset": 476 + "line": 37, + "offset": 28 }, "text": "Unknown compiler option 'unknownCompilerOption'.", "code": 5023, diff --git a/tests/baselines/reference/tsserver/telemetry/does-nothing-for-inferred-project.js b/tests/baselines/reference/tsserver/telemetry/does-nothing-for-inferred-project.js index 691aaf69ae980..2809e61ca4dc7 100644 --- a/tests/baselines/reference/tsserver/telemetry/does-nothing-for-inferred-project.js +++ b/tests/baselines/reference/tsserver/telemetry/does-nothing-for-inferred-project.js @@ -49,7 +49,7 @@ TI:: typing installer creation complete //// [/a/data/node_modules/types-registry/index.json] { - "entries": {} + "entries": {} } diff --git a/tests/baselines/reference/tsserver/telemetry/even-for-project-with-ts-check-in-config.js b/tests/baselines/reference/tsserver/telemetry/even-for-project-with-ts-check-in-config.js index 47a5dff1383fd..91da0c169ecfe 100644 --- a/tests/baselines/reference/tsserver/telemetry/even-for-project-with-ts-check-in-config.js +++ b/tests/baselines/reference/tsserver/telemetry/even-for-project-with-ts-check-in-config.js @@ -2,7 +2,11 @@ currentDirectory:: / useCaseSensitiveFileNames: false Info seq [hh:mm:ss:mss] Provided types map file "/a/lib/typesMap.json" doesn't exist Before request //// [/jsconfig.json] -{"compilerOptions":{"checkJs":true}} +{ + "compilerOptions": { + "checkJs": true + } +} //// [/a.js] @@ -112,7 +116,7 @@ TI:: typing installer creation complete //// [/a/data/node_modules/types-registry/index.json] { - "entries": {} + "entries": {} } diff --git a/tests/baselines/reference/tsserver/telemetry/sends-event-for-inferred-project.js b/tests/baselines/reference/tsserver/telemetry/sends-event-for-inferred-project.js index 2d0e4b5db4595..a53f2654e38b6 100644 --- a/tests/baselines/reference/tsserver/telemetry/sends-event-for-inferred-project.js +++ b/tests/baselines/reference/tsserver/telemetry/sends-event-for-inferred-project.js @@ -53,7 +53,7 @@ TI:: typing installer creation complete //// [/a/data/node_modules/types-registry/index.json] { - "entries": {} + "entries": {} } diff --git a/tests/baselines/reference/tsserver/telemetry/sends-telemetry-for-extends,-files,-include,-exclude,-and-compileOnSave.js b/tests/baselines/reference/tsserver/telemetry/sends-telemetry-for-extends,-files,-include,-exclude,-and-compileOnSave.js index 3410cb1c7762a..c71995775e492 100644 --- a/tests/baselines/reference/tsserver/telemetry/sends-telemetry-for-extends,-files,-include,-exclude,-and-compileOnSave.js +++ b/tests/baselines/reference/tsserver/telemetry/sends-telemetry-for-extends,-files,-include,-exclude,-and-compileOnSave.js @@ -5,7 +5,20 @@ Before request //// [/tsconfig.json] -{"compilerOptions":{},"extends":"hunter2.json","files":["hunter2/a.ts"],"include":["hunter2"],"exclude":["hunter2"],"compileOnSave":true} +{ + "compilerOptions": {}, + "extends": "hunter2.json", + "files": [ + "hunter2/a.ts" + ], + "include": [ + "hunter2" + ], + "exclude": [ + "hunter2" + ], + "compileOnSave": true +} Info seq [hh:mm:ss:mss] request: @@ -159,12 +172,12 @@ Info seq [hh:mm:ss:mss] event: }, { "start": { - "line": 1, - "offset": 33 + "line": 3, + "offset": 14 }, "end": { - "line": 1, - "offset": 47 + "line": 3, + "offset": 28 }, "text": "File 'hunter2.json' not found.", "code": 6053, diff --git a/tests/baselines/reference/tsserver/telemetry/sends-telemetry-for-file-sizes.js b/tests/baselines/reference/tsserver/telemetry/sends-telemetry-for-file-sizes.js index 9fdc1ea0a031b..35af911726e99 100644 --- a/tests/baselines/reference/tsserver/telemetry/sends-telemetry-for-file-sizes.js +++ b/tests/baselines/reference/tsserver/telemetry/sends-telemetry-for-file-sizes.js @@ -2,7 +2,15 @@ currentDirectory:: / useCaseSensitiveFileNames: false Info seq [hh:mm:ss:mss] Provided types map file "/a/lib/typesMap.json" doesn't exist Before request //// [/jsconfig.json] -{"compilerOptions":{"allowJs":true,"allowSyntheticDefaultImports":true,"maxNodeModuleJsDepth":2,"skipLibCheck":true,"noEmit":true}} +{ + "compilerOptions": { + "allowJs": true, + "allowSyntheticDefaultImports": true, + "maxNodeModuleJsDepth": 2, + "skipLibCheck": true, + "noEmit": true + } +} //// [/b.ts] 12 @@ -121,7 +129,7 @@ TI:: typing installer creation complete //// [/a/data/node_modules/types-registry/index.json] { - "entries": {} + "entries": {} } diff --git a/tests/baselines/reference/tsserver/telemetry/sends-telemetry-for-typeAcquisition-settings.js b/tests/baselines/reference/tsserver/telemetry/sends-telemetry-for-typeAcquisition-settings.js index 82c524e3e5b71..1dc01c1832918 100644 --- a/tests/baselines/reference/tsserver/telemetry/sends-telemetry-for-typeAcquisition-settings.js +++ b/tests/baselines/reference/tsserver/telemetry/sends-telemetry-for-typeAcquisition-settings.js @@ -5,7 +5,17 @@ Before request //// [/jsconfig.json] -{"compilerOptions":{},"typeAcquisition":{"enable":true,"include":["hunter2","hunter3"],"exclude":[]}} +{ + "compilerOptions": {}, + "typeAcquisition": { + "enable": true, + "include": [ + "hunter2", + "hunter3" + ], + "exclude": [] + } +} Info seq [hh:mm:ss:mss] request: @@ -111,7 +121,7 @@ TI:: typing installer creation complete //// [/a/data/node_modules/types-registry/index.json] { - "entries": {} + "entries": {} } diff --git a/tests/baselines/reference/tsserver/tsserver/resolves-the-symlink-path.js b/tests/baselines/reference/tsserver/tsserver/resolves-the-symlink-path.js index 38097ef2a8383..a1d726e157428 100644 --- a/tests/baselines/reference/tsserver/tsserver/resolves-the-symlink-path.js +++ b/tests/baselines/reference/tsserver/tsserver/resolves-the-symlink-path.js @@ -2,10 +2,19 @@ currentDirectory:: /users/user/projects/myproject useCaseSensitiveFileNames: fal Info seq [hh:mm:ss:mss] Provided types map file "/a/lib/typesMap.json" doesn't exist Before request //// [/users/user/projects/myconfigs/node_modules/@something/tsconfig-node/tsconfig.json] -{"extends":"@something/tsconfig-base/tsconfig.json","compilerOptions":{"removeComments":true}} +{ + "extends": "@something/tsconfig-base/tsconfig.json", + "compilerOptions": { + "removeComments": true + } +} //// [/users/user/projects/myconfigs/node_modules/@something/tsconfig-base/tsconfig.json] -{"compilerOptions":{"composite":true}} +{ + "compilerOptions": { + "composite": true + } +} //// [/users/user/projects/myproject/src/index.ts] // some comment @@ -13,7 +22,9 @@ export const x = 10; //// [/users/user/projects/myproject/src/tsconfig.json] -{"extends":"@something/tsconfig-node/tsconfig.json"} +{ + "extends": "@something/tsconfig-node/tsconfig.json" +} //// [/users/user/projects/myproject/node_modules/@something/tsconfig-node] symlink(/users/user/projects/myconfigs/node_modules/@something/tsconfig-node) //// [/a/lib/lib.d.ts] diff --git a/tests/baselines/reference/tsserver/typeAquisition/prefer-typings-in-second-pass.js b/tests/baselines/reference/tsserver/typeAquisition/prefer-typings-in-second-pass.js index dd7ac3a593b66..16579e18ce77b 100644 --- a/tests/baselines/reference/tsserver/typeAquisition/prefer-typings-in-second-pass.js +++ b/tests/baselines/reference/tsserver/typeAquisition/prefer-typings-in-second-pass.js @@ -11,7 +11,14 @@ export let x = 1 export let y: number //// [/a/b/jsconfig.json] -{"compilerOptions":{"allowJs":true},"exclude":["node_modules"]} +{ + "compilerOptions": { + "allowJs": true + }, + "exclude": [ + "node_modules" + ] +} Info seq [hh:mm:ss:mss] Search path: /a/b @@ -77,7 +84,7 @@ TI:: typing installer creation complete //// [/a/typings/node_modules/types-registry/index.json] { - "entries": {} + "entries": {} } diff --git a/tests/baselines/reference/tsserver/typeReferenceDirectives/when-typeReferenceDirective-contains-UpperCasePackage.js b/tests/baselines/reference/tsserver/typeReferenceDirectives/when-typeReferenceDirective-contains-UpperCasePackage.js index f35761dd81655..334c6791a0065 100644 --- a/tests/baselines/reference/tsserver/typeReferenceDirectives/when-typeReferenceDirective-contains-UpperCasePackage.js +++ b/tests/baselines/reference/tsserver/typeReferenceDirectives/when-typeReferenceDirective-contains-UpperCasePackage.js @@ -31,7 +31,15 @@ class TestClass1 { } //// [/user/username/projects/myproject/test/tsconfig.json] -{"compilerOptions":{"module":"amd","typeRoots":["../lib/@types","../lib/@app"]}} +{ + "compilerOptions": { + "module": "amd", + "typeRoots": [ + "../lib/@types", + "../lib/@app" + ] + } +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/typeReferenceDirectives/when-typeReferenceDirective-is-relative-path-and-in-a-sibling-folder.js b/tests/baselines/reference/tsserver/typeReferenceDirectives/when-typeReferenceDirective-is-relative-path-and-in-a-sibling-folder.js index 8fef335d3b2e3..cc2d841056879 100644 --- a/tests/baselines/reference/tsserver/typeReferenceDirectives/when-typeReferenceDirective-is-relative-path-and-in-a-sibling-folder.js +++ b/tests/baselines/reference/tsserver/typeReferenceDirectives/when-typeReferenceDirective-is-relative-path-and-in-a-sibling-folder.js @@ -5,7 +5,13 @@ Before request let x = 10; //// [/user/username/projects/myproject/background/tsconfig.json] -{"compilerOptions":{"types":["../typedefs/filesystem"]}} +{ + "compilerOptions": { + "types": [ + "../typedefs/filesystem" + ] + } +} //// [/user/username/projects/myproject/typedefs/filesystem.d.ts] interface LocalFileSystem { someProperty: string; } diff --git a/tests/baselines/reference/tsserver/typingsInstaller/cached-unresolved-typings-are-not-recomputed-if-program-structure-did-not-change.js b/tests/baselines/reference/tsserver/typingsInstaller/cached-unresolved-typings-are-not-recomputed-if-program-structure-did-not-change.js index 3cb44f45e6743..f046f08c0396b 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/cached-unresolved-typings-are-not-recomputed-if-program-structure-did-not-change.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/cached-unresolved-typings-are-not-recomputed-if-program-structure-did-not-change.js @@ -47,7 +47,7 @@ TI:: typing installer creation complete //// [/a/data/node_modules/types-registry/index.json] { - "entries": {} + "entries": {} } diff --git a/tests/baselines/reference/tsserver/typingsInstaller/configured-projects-discover-from-bower_components.js b/tests/baselines/reference/tsserver/typingsInstaller/configured-projects-discover-from-bower_components.js index dd8718de6da74..7a057f14a7b48 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/configured-projects-discover-from-bower_components.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/configured-projects-discover-from-bower_components.js @@ -11,7 +11,9 @@ Creating project service //// [/bower_components/jquery/bower.json] -{"name":"jquery"} +{ + "name": "jquery" +} Info seq [hh:mm:ss:mss] Search path: / @@ -94,19 +96,19 @@ TI:: typing installer creation complete //// [/tmp/node_modules/types-registry/index.json] { - "entries": { - "jquery": { - "latest": "1.3.0", - "ts2.0": "1.0.0", - "ts2.1": "1.0.0", - "ts2.2": "1.2.0", - "ts2.3": "1.3.0", - "ts2.4": "1.3.0", - "ts2.5": "1.3.0", - "ts2.6": "1.3.0", - "ts2.7": "1.3.0" + "entries": { + "jquery": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + } } - } } @@ -190,7 +192,9 @@ TI:: [hh:mm:ss:mss] Sending response: "typingsInstallerVersion": "FakeVersion", "projectName": "/jsconfig.json" } -TI:: [hh:mm:ss:mss] #1 with arguments'["@types/jquery@tsFakeMajor.Minor"]'. +TI:: [hh:mm:ss:mss] #1 with arguments'[ + "@types/jquery@tsFakeMajor.Minor" +]'. Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /jsconfig.json Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /jsconfig.json Version: 2 structureChanged: false structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Same program as before @@ -201,7 +205,9 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Open files: Info seq [hh:mm:ss:mss] FileName: /app.js ProjectRootPath: undefined Info seq [hh:mm:ss:mss] Projects: /jsconfig.json -TI:: [hh:mm:ss:mss] #1 with arguments'["@types/jquery@tsFakeMajor.Minor"]':: true +TI:: [hh:mm:ss:mss] #1 with arguments'[ + "@types/jquery@tsFakeMajor.Minor" +]':: true TI:: Before installWorker PolledWatches:: diff --git a/tests/baselines/reference/tsserver/typingsInstaller/configured-projects.js b/tests/baselines/reference/tsserver/typingsInstaller/configured-projects.js index 0ba070fdbf86d..3cd3549c07c7b 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/configured-projects.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/configured-projects.js @@ -5,10 +5,22 @@ Creating project service //// [/a/b/tsconfig.json] -{"compilerOptions":{"allowJs":true},"typeAcquisition":{"enable":true}} +{ + "compilerOptions": { + "allowJs": true + }, + "typeAcquisition": { + "enable": true + } +} //// [/a/b/package.json] -{"name":"test","dependencies":{"jquery":"^3.1.0"}} +{ + "name": "test", + "dependencies": { + "jquery": "^3.1.0" + } +} Info seq [hh:mm:ss:mss] Search path: /a/b @@ -67,19 +79,19 @@ TI:: typing installer creation complete //// [/a/data/node_modules/types-registry/index.json] { - "entries": { - "jquery": { - "latest": "1.3.0", - "ts2.0": "1.0.0", - "ts2.1": "1.0.0", - "ts2.2": "1.2.0", - "ts2.3": "1.3.0", - "ts2.4": "1.3.0", - "ts2.5": "1.3.0", - "ts2.6": "1.3.0", - "ts2.7": "1.3.0" + "entries": { + "jquery": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + } } - } } @@ -147,7 +159,9 @@ TI:: [hh:mm:ss:mss] Sending response: "typingsInstallerVersion": "FakeVersion", "projectName": "/a/b/tsconfig.json" } -TI:: [hh:mm:ss:mss] #1 with arguments'["@types/jquery@tsFakeMajor.Minor"]'. +TI:: [hh:mm:ss:mss] #1 with arguments'[ + "@types/jquery@tsFakeMajor.Minor" +]'. Info seq [hh:mm:ss:mss] Project '/a/b/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (1) @@ -155,7 +169,9 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Open files: Info seq [hh:mm:ss:mss] FileName: /a/b/app.js ProjectRootPath: undefined Info seq [hh:mm:ss:mss] Projects: /a/b/tsconfig.json -TI:: [hh:mm:ss:mss] #1 with arguments'["@types/jquery@tsFakeMajor.Minor"]':: true +TI:: [hh:mm:ss:mss] #1 with arguments'[ + "@types/jquery@tsFakeMajor.Minor" +]':: true TI:: Before installWorker PolledWatches:: diff --git a/tests/baselines/reference/tsserver/typingsInstaller/discover-from-bower.js b/tests/baselines/reference/tsserver/typingsInstaller/discover-from-bower.js index 60f5dc07b4680..a121d33a55f81 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/discover-from-bower.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/discover-from-bower.js @@ -8,7 +8,11 @@ Creating project service {} //// [/bower.json] -{"dependencies":{"jquery":"^3.1.0"}} +{ + "dependencies": { + "jquery": "^3.1.0" + } +} Info seq [hh:mm:ss:mss] Search path: / @@ -91,19 +95,19 @@ TI:: typing installer creation complete //// [/tmp/node_modules/types-registry/index.json] { - "entries": { - "jquery": { - "latest": "1.3.0", - "ts2.0": "1.0.0", - "ts2.1": "1.0.0", - "ts2.2": "1.2.0", - "ts2.3": "1.3.0", - "ts2.4": "1.3.0", - "ts2.5": "1.3.0", - "ts2.6": "1.3.0", - "ts2.7": "1.3.0" + "entries": { + "jquery": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + } } - } } @@ -189,7 +193,9 @@ TI:: [hh:mm:ss:mss] Sending response: "typingsInstallerVersion": "FakeVersion", "projectName": "/jsconfig.json" } -TI:: [hh:mm:ss:mss] #1 with arguments'["@types/jquery@tsFakeMajor.Minor"]'. +TI:: [hh:mm:ss:mss] #1 with arguments'[ + "@types/jquery@tsFakeMajor.Minor" +]'. Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /jsconfig.json Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /jsconfig.json Version: 2 structureChanged: false structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Same program as before @@ -200,7 +206,9 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Open files: Info seq [hh:mm:ss:mss] FileName: /app.js ProjectRootPath: undefined Info seq [hh:mm:ss:mss] Projects: /jsconfig.json -TI:: [hh:mm:ss:mss] #1 with arguments'["@types/jquery@tsFakeMajor.Minor"]':: true +TI:: [hh:mm:ss:mss] #1 with arguments'[ + "@types/jquery@tsFakeMajor.Minor" +]':: true TI:: Before installWorker PolledWatches:: diff --git a/tests/baselines/reference/tsserver/typingsInstaller/discover-from-node_modules-empty-types-has-import.js b/tests/baselines/reference/tsserver/typingsInstaller/discover-from-node_modules-empty-types-has-import.js index d55ecddf9bec1..533203d261960 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/discover-from-node_modules-empty-types-has-import.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/discover-from-node_modules-empty-types-has-import.js @@ -5,25 +5,39 @@ Creating project service import "jquery"; //// [/jsconfig.json] -{"compilerOptions":{"types":[]}} +{ + "compilerOptions": { + "types": [] + } +} //// [/package.json] -{"dependencies":{"jquery":"1.0.0"}} +{ + "dependencies": { + "jquery": "1.0.0" + } +} //// [/node_modules/commander/index.js] //// [/node_modules/commander/package.json] -{"name":"commander"} +{ + "name": "commander" +} //// [/node_modules/jquery/index.js] //// [/node_modules/jquery/package.json] -{"name":"jquery"} +{ + "name": "jquery" +} //// [/node_modules/jquery/nested/package.json] -{"name":"nested"} +{ + "name": "nested" +} Info seq [hh:mm:ss:mss] Search path: / @@ -114,41 +128,41 @@ TI:: typing installer creation complete //// [/tmp/node_modules/types-registry/index.json] { - "entries": { - "jquery": { - "latest": "1.3.0", - "ts2.0": "1.0.0", - "ts2.1": "1.0.0", - "ts2.2": "1.2.0", - "ts2.3": "1.3.0", - "ts2.4": "1.3.0", - "ts2.5": "1.3.0", - "ts2.6": "1.3.0", - "ts2.7": "1.3.0" - }, - "nested": { - "latest": "1.3.0", - "ts2.0": "1.0.0", - "ts2.1": "1.0.0", - "ts2.2": "1.2.0", - "ts2.3": "1.3.0", - "ts2.4": "1.3.0", - "ts2.5": "1.3.0", - "ts2.6": "1.3.0", - "ts2.7": "1.3.0" - }, - "commander": { - "latest": "1.3.0", - "ts2.0": "1.0.0", - "ts2.1": "1.0.0", - "ts2.2": "1.2.0", - "ts2.3": "1.3.0", - "ts2.4": "1.3.0", - "ts2.5": "1.3.0", - "ts2.6": "1.3.0", - "ts2.7": "1.3.0" + "entries": { + "jquery": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + }, + "nested": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + }, + "commander": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + } } - } } @@ -221,7 +235,9 @@ TI:: [hh:mm:ss:mss] Sending response: "typingsInstallerVersion": "FakeVersion", "projectName": "/jsconfig.json" } -TI:: [hh:mm:ss:mss] #1 with arguments'["@types/jquery@tsFakeMajor.Minor"]'. +TI:: [hh:mm:ss:mss] #1 with arguments'[ + "@types/jquery@tsFakeMajor.Minor" +]'. Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /package.json 250 undefined WatchType: package.json file Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /jsconfig.json Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /jsconfig.json Version: 2 structureChanged: false structureIsReused:: Not Elapsed:: *ms @@ -233,7 +249,9 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Open files: Info seq [hh:mm:ss:mss] FileName: /app.js ProjectRootPath: undefined Info seq [hh:mm:ss:mss] Projects: /jsconfig.json -TI:: [hh:mm:ss:mss] #1 with arguments'["@types/jquery@tsFakeMajor.Minor"]':: true +TI:: [hh:mm:ss:mss] #1 with arguments'[ + "@types/jquery@tsFakeMajor.Minor" +]':: true TI:: Before installWorker PolledWatches:: diff --git a/tests/baselines/reference/tsserver/typingsInstaller/discover-from-node_modules-empty-types.js b/tests/baselines/reference/tsserver/typingsInstaller/discover-from-node_modules-empty-types.js index d2303cf7fd748..bb22b652ed581 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/discover-from-node_modules-empty-types.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/discover-from-node_modules-empty-types.js @@ -5,25 +5,39 @@ Creating project service //// [/jsconfig.json] -{"compilerOptions":{"types":[]}} +{ + "compilerOptions": { + "types": [] + } +} //// [/package.json] -{"dependencies":{"jquery":"1.0.0"}} +{ + "dependencies": { + "jquery": "1.0.0" + } +} //// [/node_modules/commander/index.js] //// [/node_modules/commander/package.json] -{"name":"commander"} +{ + "name": "commander" +} //// [/node_modules/jquery/index.js] //// [/node_modules/jquery/package.json] -{"name":"jquery"} +{ + "name": "jquery" +} //// [/node_modules/jquery/nested/package.json] -{"name":"nested"} +{ + "name": "nested" +} Info seq [hh:mm:ss:mss] Search path: / @@ -107,41 +121,41 @@ TI:: typing installer creation complete //// [/tmp/node_modules/types-registry/index.json] { - "entries": { - "jquery": { - "latest": "1.3.0", - "ts2.0": "1.0.0", - "ts2.1": "1.0.0", - "ts2.2": "1.2.0", - "ts2.3": "1.3.0", - "ts2.4": "1.3.0", - "ts2.5": "1.3.0", - "ts2.6": "1.3.0", - "ts2.7": "1.3.0" - }, - "nested": { - "latest": "1.3.0", - "ts2.0": "1.0.0", - "ts2.1": "1.0.0", - "ts2.2": "1.2.0", - "ts2.3": "1.3.0", - "ts2.4": "1.3.0", - "ts2.5": "1.3.0", - "ts2.6": "1.3.0", - "ts2.7": "1.3.0" - }, - "commander": { - "latest": "1.3.0", - "ts2.0": "1.0.0", - "ts2.1": "1.0.0", - "ts2.2": "1.2.0", - "ts2.3": "1.3.0", - "ts2.4": "1.3.0", - "ts2.5": "1.3.0", - "ts2.6": "1.3.0", - "ts2.7": "1.3.0" + "entries": { + "jquery": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + }, + "nested": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + }, + "commander": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + } } - } } diff --git a/tests/baselines/reference/tsserver/typingsInstaller/discover-from-node_modules-explicit-types.js b/tests/baselines/reference/tsserver/typingsInstaller/discover-from-node_modules-explicit-types.js index 5233d3ae7bf4b..80044b7cfb864 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/discover-from-node_modules-explicit-types.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/discover-from-node_modules-explicit-types.js @@ -5,25 +5,41 @@ Creating project service //// [/jsconfig.json] -{"compilerOptions":{"types":["jquery"]}} +{ + "compilerOptions": { + "types": [ + "jquery" + ] + } +} //// [/package.json] -{"dependencies":{"jquery":"1.0.0"}} +{ + "dependencies": { + "jquery": "1.0.0" + } +} //// [/node_modules/commander/index.js] //// [/node_modules/commander/package.json] -{"name":"commander"} +{ + "name": "commander" +} //// [/node_modules/jquery/index.js] //// [/node_modules/jquery/package.json] -{"name":"jquery"} +{ + "name": "jquery" +} //// [/node_modules/jquery/nested/package.json] -{"name":"nested"} +{ + "name": "nested" +} Info seq [hh:mm:ss:mss] Search path: / @@ -109,41 +125,41 @@ TI:: typing installer creation complete //// [/tmp/node_modules/types-registry/index.json] { - "entries": { - "jquery": { - "latest": "1.3.0", - "ts2.0": "1.0.0", - "ts2.1": "1.0.0", - "ts2.2": "1.2.0", - "ts2.3": "1.3.0", - "ts2.4": "1.3.0", - "ts2.5": "1.3.0", - "ts2.6": "1.3.0", - "ts2.7": "1.3.0" - }, - "nested": { - "latest": "1.3.0", - "ts2.0": "1.0.0", - "ts2.1": "1.0.0", - "ts2.2": "1.2.0", - "ts2.3": "1.3.0", - "ts2.4": "1.3.0", - "ts2.5": "1.3.0", - "ts2.6": "1.3.0", - "ts2.7": "1.3.0" - }, - "commander": { - "latest": "1.3.0", - "ts2.0": "1.0.0", - "ts2.1": "1.0.0", - "ts2.2": "1.2.0", - "ts2.3": "1.3.0", - "ts2.4": "1.3.0", - "ts2.5": "1.3.0", - "ts2.6": "1.3.0", - "ts2.7": "1.3.0" + "entries": { + "jquery": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + }, + "nested": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + }, + "commander": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + } } - } } diff --git a/tests/baselines/reference/tsserver/typingsInstaller/discover-from-node_modules.js b/tests/baselines/reference/tsserver/typingsInstaller/discover-from-node_modules.js index 142113a7ecc45..73843b4b20467 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/discover-from-node_modules.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/discover-from-node_modules.js @@ -8,22 +8,32 @@ Creating project service {} //// [/package.json] -{"dependencies":{"jquery":"1.0.0"}} +{ + "dependencies": { + "jquery": "1.0.0" + } +} //// [/node_modules/commander/index.js] //// [/node_modules/commander/package.json] -{"name":"commander"} +{ + "name": "commander" +} //// [/node_modules/jquery/index.js] //// [/node_modules/jquery/package.json] -{"name":"jquery"} +{ + "name": "jquery" +} //// [/node_modules/jquery/nested/package.json] -{"name":"nested"} +{ + "name": "nested" +} Info seq [hh:mm:ss:mss] Search path: / @@ -106,41 +116,41 @@ TI:: typing installer creation complete //// [/tmp/node_modules/types-registry/index.json] { - "entries": { - "jquery": { - "latest": "1.3.0", - "ts2.0": "1.0.0", - "ts2.1": "1.0.0", - "ts2.2": "1.2.0", - "ts2.3": "1.3.0", - "ts2.4": "1.3.0", - "ts2.5": "1.3.0", - "ts2.6": "1.3.0", - "ts2.7": "1.3.0" - }, - "nested": { - "latest": "1.3.0", - "ts2.0": "1.0.0", - "ts2.1": "1.0.0", - "ts2.2": "1.2.0", - "ts2.3": "1.3.0", - "ts2.4": "1.3.0", - "ts2.5": "1.3.0", - "ts2.6": "1.3.0", - "ts2.7": "1.3.0" - }, - "commander": { - "latest": "1.3.0", - "ts2.0": "1.0.0", - "ts2.1": "1.0.0", - "ts2.2": "1.2.0", - "ts2.3": "1.3.0", - "ts2.4": "1.3.0", - "ts2.5": "1.3.0", - "ts2.6": "1.3.0", - "ts2.7": "1.3.0" + "entries": { + "jquery": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + }, + "nested": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + }, + "commander": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + } } - } } @@ -228,7 +238,9 @@ TI:: [hh:mm:ss:mss] Sending response: "typingsInstallerVersion": "FakeVersion", "projectName": "/jsconfig.json" } -TI:: [hh:mm:ss:mss] #1 with arguments'["@types/jquery@tsFakeMajor.Minor"]'. +TI:: [hh:mm:ss:mss] #1 with arguments'[ + "@types/jquery@tsFakeMajor.Minor" +]'. Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /package.json 250 undefined WatchType: package.json file Info seq [hh:mm:ss:mss] AutoImportProviderProject: found 1 root files in 1 dependencies in * ms Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache @@ -258,7 +270,9 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Open files: Info seq [hh:mm:ss:mss] FileName: /app.js ProjectRootPath: undefined Info seq [hh:mm:ss:mss] Projects: /jsconfig.json -TI:: [hh:mm:ss:mss] #1 with arguments'["@types/jquery@tsFakeMajor.Minor"]':: true +TI:: [hh:mm:ss:mss] #1 with arguments'[ + "@types/jquery@tsFakeMajor.Minor" +]':: true TI:: Before installWorker PolledWatches:: diff --git a/tests/baselines/reference/tsserver/typingsInstaller/discover-typings-should-search-only-2-levels-deep.js b/tests/baselines/reference/tsserver/typingsInstaller/discover-typings-should-search-only-2-levels-deep.js index f76aaee9c7763..e0315bd996a05 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/discover-typings-should-search-only-2-levels-deep.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/discover-typings-should-search-only-2-levels-deep.js @@ -4,10 +4,14 @@ currentDirectory:: / useCaseSensitiveFileNames: false //// [/node_modules/a/package.json] -{"name":"a"} +{ + "name": "a" +} //// [/node_modules/a/b/package.json] -{"name":"b"} +{ + "name": "b" +} ts.JsTyping.discoverTypings:: diff --git a/tests/baselines/reference/tsserver/typingsInstaller/discover-typings-should-support-scoped-packages.js b/tests/baselines/reference/tsserver/typingsInstaller/discover-typings-should-support-scoped-packages.js index f6318c3bec554..1affdd2935208 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/discover-typings-should-support-scoped-packages.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/discover-typings-should-support-scoped-packages.js @@ -4,7 +4,9 @@ currentDirectory:: / useCaseSensitiveFileNames: false //// [/node_modules/@a/b/package.json] -{"name":"@a/b"} +{ + "name": "@a/b" +} ts.JsTyping.discoverTypings:: diff --git a/tests/baselines/reference/tsserver/typingsInstaller/expired-cache-entry.js b/tests/baselines/reference/tsserver/typingsInstaller/expired-cache-entry.js index 4848923bd4df4..8cefb508155d3 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/expired-cache-entry.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/expired-cache-entry.js @@ -5,16 +5,34 @@ Creating project service //// [/a/b/package.json] -{"name":"test","dependencies":{"jquery":"^3.1.0"}} +{ + "name": "test", + "dependencies": { + "jquery": "^3.1.0" + } +} //// [/a/data/node_modules/@types/jquery/index.d.ts] declare const $: { x: number } //// [/a/data/package.json] -{"dependencies":{"types-registry":"^0.1.317"},"devDependencies":{"@types/jquery":"^1.0.0"}} +{ + "dependencies": { + "types-registry": "^0.1.317" + }, + "devDependencies": { + "@types/jquery": "^1.0.0" + } +} //// [/a/data/package-lock.json] -{"dependencies":{"@types/jquery":{"version":"1.0.0"}}} +{ + "dependencies": { + "@types/jquery": { + "version": "1.0.0" + } + } +} Info seq [hh:mm:ss:mss] Search path: /a/b @@ -66,19 +84,19 @@ TI:: [hh:mm:ss:mss] TI:: Updated types-registry npm package TI:: typing installer creation complete //// [/a/data/node_modules/types-registry/index.json] { - "entries": { - "jquery": { - "latest": "1.3.0", - "ts2.0": "1.0.0", - "ts2.1": "1.0.0", - "ts2.2": "1.2.0", - "ts2.3": "1.3.0", - "ts2.4": "1.3.0", - "ts2.5": "1.3.0", - "ts2.6": "1.3.0", - "ts2.7": "1.3.0" + "entries": { + "jquery": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + } } - } } @@ -155,7 +173,9 @@ TI:: [hh:mm:ss:mss] Sending response: "typingsInstallerVersion": "FakeVersion", "projectName": "/dev/null/inferredProject1*" } -TI:: [hh:mm:ss:mss] #1 with arguments'["@types/jquery@tsFakeMajor.Minor"]'. +TI:: [hh:mm:ss:mss] #1 with arguments'[ + "@types/jquery@tsFakeMajor.Minor" +]'. Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (1) @@ -163,7 +183,9 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Open files: Info seq [hh:mm:ss:mss] FileName: /a/b/app.js ProjectRootPath: undefined Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* -TI:: [hh:mm:ss:mss] #1 with arguments'["@types/jquery@tsFakeMajor.Minor"]':: true +TI:: [hh:mm:ss:mss] #1 with arguments'[ + "@types/jquery@tsFakeMajor.Minor" +]':: true TI:: Before installWorker PolledWatches:: diff --git a/tests/baselines/reference/tsserver/typingsInstaller/external-projects-autoDiscovery.js b/tests/baselines/reference/tsserver/typingsInstaller/external-projects-autoDiscovery.js index 853c569374ef0..4d702d876c808 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/external-projects-autoDiscovery.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/external-projects-autoDiscovery.js @@ -43,19 +43,19 @@ TI:: typing installer creation complete //// [/a/data/node_modules/types-registry/index.json] { - "entries": { - "jquery": { - "latest": "1.3.0", - "ts2.0": "1.0.0", - "ts2.1": "1.0.0", - "ts2.2": "1.2.0", - "ts2.3": "1.3.0", - "ts2.4": "1.3.0", - "ts2.5": "1.3.0", - "ts2.6": "1.3.0", - "ts2.7": "1.3.0" + "entries": { + "jquery": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + } } - } } @@ -120,8 +120,12 @@ TI:: [hh:mm:ss:mss] Sending response: "typingsInstallerVersion": "FakeVersion", "projectName": "/a/app/test.csproj" } -TI:: [hh:mm:ss:mss] #1 with arguments'["@types/jquery@tsFakeMajor.Minor"]'. -TI:: [hh:mm:ss:mss] #1 with arguments'["@types/jquery@tsFakeMajor.Minor"]':: true +TI:: [hh:mm:ss:mss] #1 with arguments'[ + "@types/jquery@tsFakeMajor.Minor" +]'. +TI:: [hh:mm:ss:mss] #1 with arguments'[ + "@types/jquery@tsFakeMajor.Minor" +]':: true TI:: Before installWorker PolledWatches:: diff --git a/tests/baselines/reference/tsserver/typingsInstaller/external-projects-duplicate-package.js b/tests/baselines/reference/tsserver/typingsInstaller/external-projects-duplicate-package.js index 835c11291367a..8a27588746311 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/external-projects-duplicate-package.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/external-projects-duplicate-package.js @@ -55,19 +55,19 @@ TI:: typing installer creation complete //// [/a/data/node_modules/types-registry/index.json] { - "entries": { - "node": { - "latest": "1.3.0", - "ts2.0": "1.0.0", - "ts2.1": "1.0.0", - "ts2.2": "1.2.0", - "ts2.3": "1.3.0", - "ts2.4": "1.3.0", - "ts2.5": "1.3.0", - "ts2.6": "1.3.0", - "ts2.7": "1.3.0" + "entries": { + "node": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + } } - } } diff --git a/tests/baselines/reference/tsserver/typingsInstaller/external-projects-no-type-acquisition.js b/tests/baselines/reference/tsserver/typingsInstaller/external-projects-no-type-acquisition.js index ea42f9ab72268..5d31eb0e63d03 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/external-projects-no-type-acquisition.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/external-projects-no-type-acquisition.js @@ -77,30 +77,30 @@ TI:: typing installer creation complete //// [/a/data/node_modules/types-registry/index.json] { - "entries": { - "lodash": { - "latest": "1.3.0", - "ts2.0": "1.0.0", - "ts2.1": "1.0.0", - "ts2.2": "1.2.0", - "ts2.3": "1.3.0", - "ts2.4": "1.3.0", - "ts2.5": "1.3.0", - "ts2.6": "1.3.0", - "ts2.7": "1.3.0" - }, - "react": { - "latest": "1.3.0", - "ts2.0": "1.0.0", - "ts2.1": "1.0.0", - "ts2.2": "1.2.0", - "ts2.3": "1.3.0", - "ts2.4": "1.3.0", - "ts2.5": "1.3.0", - "ts2.6": "1.3.0", - "ts2.7": "1.3.0" + "entries": { + "lodash": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + }, + "react": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + } } - } } @@ -180,8 +180,14 @@ TI:: [hh:mm:ss:mss] Sending response: "typingsInstallerVersion": "FakeVersion", "projectName": "/a/app/test.csproj" } -TI:: [hh:mm:ss:mss] #1 with arguments'["@types/lodash@tsFakeMajor.Minor","@types/react@tsFakeMajor.Minor"]'. -TI:: [hh:mm:ss:mss] #1 with arguments'["@types/lodash@tsFakeMajor.Minor","@types/react@tsFakeMajor.Minor"]':: true +TI:: [hh:mm:ss:mss] #1 with arguments'[ + "@types/lodash@tsFakeMajor.Minor", + "@types/react@tsFakeMajor.Minor" +]'. +TI:: [hh:mm:ss:mss] #1 with arguments'[ + "@types/lodash@tsFakeMajor.Minor", + "@types/react@tsFakeMajor.Minor" +]':: true TI:: Before installWorker PolledWatches:: diff --git a/tests/baselines/reference/tsserver/typingsInstaller/external-projects-type-acquisition-with-disableFilenameBasedTypeAcquisition.js b/tests/baselines/reference/tsserver/typingsInstaller/external-projects-type-acquisition-with-disableFilenameBasedTypeAcquisition.js index ecaae783d94c5..6f3d84b626912 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/external-projects-type-acquisition-with-disableFilenameBasedTypeAcquisition.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/external-projects-type-acquisition-with-disableFilenameBasedTypeAcquisition.js @@ -43,19 +43,19 @@ TI:: typing installer creation complete //// [/a/data/node_modules/types-registry/index.json] { - "entries": { - "jquery": { - "latest": "1.3.0", - "ts2.0": "1.0.0", - "ts2.1": "1.0.0", - "ts2.2": "1.2.0", - "ts2.3": "1.3.0", - "ts2.4": "1.3.0", - "ts2.5": "1.3.0", - "ts2.6": "1.3.0", - "ts2.7": "1.3.0" + "entries": { + "jquery": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + } } - } } diff --git a/tests/baselines/reference/tsserver/typingsInstaller/external-projects-type-acquisition.js b/tests/baselines/reference/tsserver/typingsInstaller/external-projects-type-acquisition.js index 9b3805b896061..c038b865aa7d1 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/external-projects-type-acquisition.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/external-projects-type-acquisition.js @@ -10,7 +10,12 @@ Creating project service //// [/a/b/package.json] -{"name":"test","dependencies":{"express":"^3.1.0"}} +{ + "name": "test", + "dependencies": { + "express": "^3.1.0" + } +} //// [/typesMap.json] { @@ -75,52 +80,52 @@ TI:: typing installer creation complete //// [/a/data/node_modules/types-registry/index.json] { - "entries": { - "jquery": { - "latest": "1.3.0", - "ts2.0": "1.0.0", - "ts2.1": "1.0.0", - "ts2.2": "1.2.0", - "ts2.3": "1.3.0", - "ts2.4": "1.3.0", - "ts2.5": "1.3.0", - "ts2.6": "1.3.0", - "ts2.7": "1.3.0" - }, - "commander": { - "latest": "1.3.0", - "ts2.0": "1.0.0", - "ts2.1": "1.0.0", - "ts2.2": "1.2.0", - "ts2.3": "1.3.0", - "ts2.4": "1.3.0", - "ts2.5": "1.3.0", - "ts2.6": "1.3.0", - "ts2.7": "1.3.0" - }, - "moment": { - "latest": "1.3.0", - "ts2.0": "1.0.0", - "ts2.1": "1.0.0", - "ts2.2": "1.2.0", - "ts2.3": "1.3.0", - "ts2.4": "1.3.0", - "ts2.5": "1.3.0", - "ts2.6": "1.3.0", - "ts2.7": "1.3.0" - }, - "express": { - "latest": "1.3.0", - "ts2.0": "1.0.0", - "ts2.1": "1.0.0", - "ts2.2": "1.2.0", - "ts2.3": "1.3.0", - "ts2.4": "1.3.0", - "ts2.5": "1.3.0", - "ts2.6": "1.3.0", - "ts2.7": "1.3.0" + "entries": { + "jquery": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + }, + "commander": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + }, + "moment": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + }, + "express": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + } } - } } @@ -211,8 +216,18 @@ TI:: [hh:mm:ss:mss] Sending response: "typingsInstallerVersion": "FakeVersion", "projectName": "/a/app/test.csproj" } -TI:: [hh:mm:ss:mss] #1 with arguments'["@types/jquery@tsFakeMajor.Minor","@types/moment@tsFakeMajor.Minor","@types/commander@tsFakeMajor.Minor","@types/express@tsFakeMajor.Minor"]'. -TI:: [hh:mm:ss:mss] #1 with arguments'["@types/jquery@tsFakeMajor.Minor","@types/moment@tsFakeMajor.Minor","@types/commander@tsFakeMajor.Minor","@types/express@tsFakeMajor.Minor"]':: true +TI:: [hh:mm:ss:mss] #1 with arguments'[ + "@types/jquery@tsFakeMajor.Minor", + "@types/moment@tsFakeMajor.Minor", + "@types/commander@tsFakeMajor.Minor", + "@types/express@tsFakeMajor.Minor" +]'. +TI:: [hh:mm:ss:mss] #1 with arguments'[ + "@types/jquery@tsFakeMajor.Minor", + "@types/moment@tsFakeMajor.Minor", + "@types/commander@tsFakeMajor.Minor", + "@types/express@tsFakeMajor.Minor" +]':: true TI:: Before installWorker PolledWatches:: diff --git a/tests/baselines/reference/tsserver/typingsInstaller/inferred-projects-with-disableFilenameBasedTypeAcquisition.js b/tests/baselines/reference/tsserver/typingsInstaller/inferred-projects-with-disableFilenameBasedTypeAcquisition.js index dbc5439c822cb..c500ac3e51c3f 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/inferred-projects-with-disableFilenameBasedTypeAcquisition.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/inferred-projects-with-disableFilenameBasedTypeAcquisition.js @@ -40,19 +40,19 @@ TI:: typing installer creation complete //// [/a/data/node_modules/types-registry/index.json] { - "entries": { - "jquery": { - "latest": "1.3.0", - "ts2.0": "1.0.0", - "ts2.1": "1.0.0", - "ts2.2": "1.2.0", - "ts2.3": "1.3.0", - "ts2.4": "1.3.0", - "ts2.5": "1.3.0", - "ts2.6": "1.3.0", - "ts2.7": "1.3.0" + "entries": { + "jquery": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + } } - } } diff --git a/tests/baselines/reference/tsserver/typingsInstaller/inferred-projects.js b/tests/baselines/reference/tsserver/typingsInstaller/inferred-projects.js index dc5db51b7ff2c..6bc56f158d852 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/inferred-projects.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/inferred-projects.js @@ -5,7 +5,12 @@ Creating project service //// [/a/b/package.json] -{"name":"test","dependencies":{"jquery":"^3.1.0"}} +{ + "name": "test", + "dependencies": { + "jquery": "^3.1.0" + } +} Info seq [hh:mm:ss:mss] Search path: /a/b @@ -43,19 +48,19 @@ TI:: typing installer creation complete //// [/a/data/node_modules/types-registry/index.json] { - "entries": { - "jquery": { - "latest": "1.3.0", - "ts2.0": "1.0.0", - "ts2.1": "1.0.0", - "ts2.2": "1.2.0", - "ts2.3": "1.3.0", - "ts2.4": "1.3.0", - "ts2.5": "1.3.0", - "ts2.6": "1.3.0", - "ts2.7": "1.3.0" + "entries": { + "jquery": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + } } - } } @@ -132,7 +137,9 @@ TI:: [hh:mm:ss:mss] Sending response: "typingsInstallerVersion": "FakeVersion", "projectName": "/dev/null/inferredProject1*" } -TI:: [hh:mm:ss:mss] #1 with arguments'["@types/jquery@tsFakeMajor.Minor"]'. +TI:: [hh:mm:ss:mss] #1 with arguments'[ + "@types/jquery@tsFakeMajor.Minor" +]'. Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (1) @@ -140,7 +147,9 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Open files: Info seq [hh:mm:ss:mss] FileName: /a/b/app.js ProjectRootPath: undefined Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* -TI:: [hh:mm:ss:mss] #1 with arguments'["@types/jquery@tsFakeMajor.Minor"]':: true +TI:: [hh:mm:ss:mss] #1 with arguments'[ + "@types/jquery@tsFakeMajor.Minor" +]':: true TI:: Before installWorker PolledWatches:: diff --git a/tests/baselines/reference/tsserver/typingsInstaller/install-typings-for-unresolved-imports.js b/tests/baselines/reference/tsserver/typingsInstaller/install-typings-for-unresolved-imports.js index 50c3927abda7e..edbde14497f11 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/install-typings-for-unresolved-imports.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/install-typings-for-unresolved-imports.js @@ -43,30 +43,30 @@ TI:: typing installer creation complete //// [/a/cache/node_modules/types-registry/index.json] { - "entries": { - "node": { - "latest": "1.3.0", - "ts2.0": "1.0.0", - "ts2.1": "1.0.0", - "ts2.2": "1.2.0", - "ts2.3": "1.3.0", - "ts2.4": "1.3.0", - "ts2.5": "1.3.0", - "ts2.6": "1.3.0", - "ts2.7": "1.3.0" - }, - "commander": { - "latest": "1.3.0", - "ts2.0": "1.0.0", - "ts2.1": "1.0.0", - "ts2.2": "1.2.0", - "ts2.3": "1.3.0", - "ts2.4": "1.3.0", - "ts2.5": "1.3.0", - "ts2.6": "1.3.0", - "ts2.7": "1.3.0" + "entries": { + "node": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + }, + "commander": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + } } - } } @@ -140,7 +140,10 @@ TI:: [hh:mm:ss:mss] Sending response: "typingsInstallerVersion": "FakeVersion", "projectName": "/dev/null/inferredProject1*" } -TI:: [hh:mm:ss:mss] #1 with arguments'["@types/commander@tsFakeMajor.Minor","@types/node@tsFakeMajor.Minor"]'. +TI:: [hh:mm:ss:mss] #1 with arguments'[ + "@types/commander@tsFakeMajor.Minor", + "@types/node@tsFakeMajor.Minor" +]'. Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (1) @@ -148,7 +151,10 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Open files: Info seq [hh:mm:ss:mss] FileName: /a/b/app.js ProjectRootPath: undefined Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* -TI:: [hh:mm:ss:mss] #1 with arguments'["@types/commander@tsFakeMajor.Minor","@types/node@tsFakeMajor.Minor"]':: true +TI:: [hh:mm:ss:mss] #1 with arguments'[ + "@types/commander@tsFakeMajor.Minor", + "@types/node@tsFakeMajor.Minor" +]':: true TI:: Before installWorker PolledWatches:: diff --git a/tests/baselines/reference/tsserver/typingsInstaller/invalidate-the-resolutions-with-trimmed-names.js b/tests/baselines/reference/tsserver/typingsInstaller/invalidate-the-resolutions-with-trimmed-names.js index f3438aadd2a84..1314c65b58fcc 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/invalidate-the-resolutions-with-trimmed-names.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/invalidate-the-resolutions-with-trimmed-names.js @@ -56,19 +56,19 @@ TI:: typing installer creation complete //// [/tmp/node_modules/types-registry/index.json] { - "entries": { - "foo": { - "latest": "1.3.0", - "ts2.0": "1.0.0", - "ts2.1": "1.0.0", - "ts2.2": "1.2.0", - "ts2.3": "1.3.0", - "ts2.4": "1.3.0", - "ts2.5": "1.3.0", - "ts2.6": "1.3.0", - "ts2.7": "1.3.0" + "entries": { + "foo": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + } } - } } @@ -139,7 +139,9 @@ TI:: [hh:mm:ss:mss] Sending response: "typingsInstallerVersion": "FakeVersion", "projectName": "/dev/null/inferredProject1*" } -TI:: [hh:mm:ss:mss] #1 with arguments'["@types/foo@tsFakeMajor.Minor"]'. +TI:: [hh:mm:ss:mss] #1 with arguments'[ + "@types/foo@tsFakeMajor.Minor" +]'. Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (2) @@ -147,7 +149,9 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Open files: Info seq [hh:mm:ss:mss] FileName: /a/b/app.js ProjectRootPath: undefined Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* -TI:: [hh:mm:ss:mss] #1 with arguments'["@types/foo@tsFakeMajor.Minor"]':: true +TI:: [hh:mm:ss:mss] #1 with arguments'[ + "@types/foo@tsFakeMajor.Minor" +]':: true TI:: Before installWorker PolledWatches:: diff --git a/tests/baselines/reference/tsserver/typingsInstaller/invalidate-the-resolutions.js b/tests/baselines/reference/tsserver/typingsInstaller/invalidate-the-resolutions.js index d620c2e4a9959..72046859e0a61 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/invalidate-the-resolutions.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/invalidate-the-resolutions.js @@ -52,19 +52,19 @@ TI:: typing installer creation complete //// [/tmp/node_modules/types-registry/index.json] { - "entries": { - "foo": { - "latest": "1.3.0", - "ts2.0": "1.0.0", - "ts2.1": "1.0.0", - "ts2.2": "1.2.0", - "ts2.3": "1.3.0", - "ts2.4": "1.3.0", - "ts2.5": "1.3.0", - "ts2.6": "1.3.0", - "ts2.7": "1.3.0" + "entries": { + "foo": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + } } - } } @@ -135,7 +135,9 @@ TI:: [hh:mm:ss:mss] Sending response: "typingsInstallerVersion": "FakeVersion", "projectName": "/dev/null/inferredProject1*" } -TI:: [hh:mm:ss:mss] #1 with arguments'["@types/foo@tsFakeMajor.Minor"]'. +TI:: [hh:mm:ss:mss] #1 with arguments'[ + "@types/foo@tsFakeMajor.Minor" +]'. Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (2) @@ -143,7 +145,9 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Open files: Info seq [hh:mm:ss:mss] FileName: /a/b/app.js ProjectRootPath: undefined Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* -TI:: [hh:mm:ss:mss] #1 with arguments'["@types/foo@tsFakeMajor.Minor"]':: true +TI:: [hh:mm:ss:mss] #1 with arguments'[ + "@types/foo@tsFakeMajor.Minor" +]':: true TI:: Before installWorker PolledWatches:: diff --git a/tests/baselines/reference/tsserver/typingsInstaller/local-module-should-not-be-picked-up.js b/tests/baselines/reference/tsserver/typingsInstaller/local-module-should-not-be-picked-up.js index d06b29664298f..236c310d216ff 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/local-module-should-not-be-picked-up.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/local-module-should-not-be-picked-up.js @@ -8,7 +8,14 @@ const c = require('./config'); export let x = 1 //// [/a/jsconfig.json] -{"compilerOptions":{"moduleResolution":"commonjs"},"typeAcquisition":{"enable":true}} +{ + "compilerOptions": { + "moduleResolution": "commonjs" + }, + "typeAcquisition": { + "enable": true + } +} //// [/cache/node_modules/@types/config/index.d.ts] export let y: number; @@ -82,19 +89,19 @@ TI:: typing installer creation complete //// [/cache/node_modules/types-registry/index.json] { - "entries": { - "config": { - "latest": "1.3.0", - "ts2.0": "1.0.0", - "ts2.1": "1.0.0", - "ts2.2": "1.2.0", - "ts2.3": "1.3.0", - "ts2.4": "1.3.0", - "ts2.5": "1.3.0", - "ts2.6": "1.3.0", - "ts2.7": "1.3.0" + "entries": { + "config": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + } } - } } diff --git a/tests/baselines/reference/tsserver/typingsInstaller/malformed-packagejson.js b/tests/baselines/reference/tsserver/typingsInstaller/malformed-packagejson.js index 3bf4cbe4bb4ab..402c5e4781b8e 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/malformed-packagejson.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/malformed-packagejson.js @@ -43,19 +43,19 @@ TI:: typing installer creation complete //// [/a/cache/node_modules/types-registry/index.json] { - "entries": { - "commander": { - "latest": "1.3.0", - "ts2.0": "1.0.0", - "ts2.1": "1.0.0", - "ts2.2": "1.2.0", - "ts2.3": "1.3.0", - "ts2.4": "1.3.0", - "ts2.5": "1.3.0", - "ts2.6": "1.3.0", - "ts2.7": "1.3.0" + "entries": { + "commander": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + } } - } } @@ -205,7 +205,9 @@ TI:: [hh:mm:ss:mss] Sending response: "typingsInstallerVersion": "FakeVersion", "projectName": "/dev/null/inferredProject1*" } -TI:: [hh:mm:ss:mss] #1 with arguments'["@types/commander@tsFakeMajor.Minor"]'. +TI:: [hh:mm:ss:mss] #1 with arguments'[ + "@types/commander@tsFakeMajor.Minor" +]'. Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /a/b/package.json 1:: WatchInfo: /a/b/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location for typing installer Info seq [hh:mm:ss:mss] FileWatcher:: Triggered with /a/b/package.json 1:: WatchInfo: /a/b/package.json 250 undefined WatchType: package.json file Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /a/b/package.json 1:: WatchInfo: /a/b/package.json 250 undefined WatchType: package.json file @@ -227,7 +229,9 @@ FsWatches:: /a/b/package.json: *new* {} -TI:: [hh:mm:ss:mss] #1 with arguments'["@types/commander@tsFakeMajor.Minor"]':: true +TI:: [hh:mm:ss:mss] #1 with arguments'[ + "@types/commander@tsFakeMajor.Minor" +]':: true TI:: Before installWorker TI:: After installWorker diff --git a/tests/baselines/reference/tsserver/typingsInstaller/multiple-projects.js b/tests/baselines/reference/tsserver/typingsInstaller/multiple-projects.js index 2d5bc13b550a6..2973e032bd6b0 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/multiple-projects.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/multiple-projects.js @@ -5,19 +5,43 @@ Before request //// [/user/username/projects/project/tsconfig.json] -{"compilerOptions":{"allowJs":true},"typeAcquisition":{"enable":true}} +{ + "compilerOptions": { + "allowJs": true + }, + "typeAcquisition": { + "enable": true + } +} //// [/user/username/projects/project/package.json] -{"name":"test","dependencies":{"jquery":"^3.1.0"}} +{ + "name": "test", + "dependencies": { + "jquery": "^3.1.0" + } +} //// [/user/username/projects/project2/app.js] //// [/user/username/projects/project2/tsconfig.json] -{"compilerOptions":{"allowJs":true},"typeAcquisition":{"enable":true}} +{ + "compilerOptions": { + "allowJs": true + }, + "typeAcquisition": { + "enable": true + } +} //// [/user/username/projects/project2/package.json] -{"name":"test","dependencies":{"commander":"^3.1.0"}} +{ + "name": "test", + "dependencies": { + "commander": "^3.1.0" + } +} //// [/a/lib/lib.d.ts] /// @@ -109,30 +133,30 @@ TI:: typing installer creation complete //// [/a/data/node_modules/types-registry/index.json] { - "entries": { - "jquery": { - "latest": "1.3.0", - "ts2.0": "1.0.0", - "ts2.1": "1.0.0", - "ts2.2": "1.2.0", - "ts2.3": "1.3.0", - "ts2.4": "1.3.0", - "ts2.5": "1.3.0", - "ts2.6": "1.3.0", - "ts2.7": "1.3.0" - }, - "commander": { - "latest": "1.3.0", - "ts2.0": "1.0.0", - "ts2.1": "1.0.0", - "ts2.2": "1.2.0", - "ts2.3": "1.3.0", - "ts2.4": "1.3.0", - "ts2.5": "1.3.0", - "ts2.6": "1.3.0", - "ts2.7": "1.3.0" + "entries": { + "jquery": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + }, + "commander": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + } } - } } @@ -201,7 +225,9 @@ TI:: [hh:mm:ss:mss] Sending response: "typingsInstallerVersion": "FakeVersion", "projectName": "/user/username/projects/project/tsconfig.json" } -TI:: [hh:mm:ss:mss] #1 with arguments'["@types/jquery@tsFakeMajor.Minor"]'. +TI:: [hh:mm:ss:mss] #1 with arguments'[ + "@types/jquery@tsFakeMajor.Minor" +]'. Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/project/package.json 250 undefined WatchType: package.json file Info seq [hh:mm:ss:mss] Project '/user/username/projects/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (2) @@ -238,7 +264,9 @@ FsWatchesRecursive:: /user/username/projects/project: {} -TI:: [hh:mm:ss:mss] #1 with arguments'["@types/jquery@tsFakeMajor.Minor"]':: true +TI:: [hh:mm:ss:mss] #1 with arguments'[ + "@types/jquery@tsFakeMajor.Minor" +]':: true TI:: Before installWorker TI:: After installWorker @@ -542,7 +570,9 @@ TI:: [hh:mm:ss:mss] Sending response: "typingsInstallerVersion": "FakeVersion", "projectName": "/user/username/projects/project2/tsconfig.json" } -TI:: [hh:mm:ss:mss] #2 with arguments'["@types/commander@tsFakeMajor.Minor"]'. +TI:: [hh:mm:ss:mss] #2 with arguments'[ + "@types/commander@tsFakeMajor.Minor" +]'. Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/project2/package.json 250 undefined WatchType: package.json file Info seq [hh:mm:ss:mss] `remove Project:: Info seq [hh:mm:ss:mss] Project '/user/username/projects/project/tsconfig.json' (Configured) diff --git a/tests/baselines/reference/tsserver/typingsInstaller/non-expired-cache-entry.js b/tests/baselines/reference/tsserver/typingsInstaller/non-expired-cache-entry.js index 18cd9895ed3ab..6160e9c19898f 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/non-expired-cache-entry.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/non-expired-cache-entry.js @@ -5,13 +5,31 @@ Creating project service //// [/a/b/package.json] -{"name":"test","dependencies":{"jquery":"^3.1.0"}} +{ + "name": "test", + "dependencies": { + "jquery": "^3.1.0" + } +} //// [/a/data/package.json] -{"dependencies":{"types-registry":"^0.1.317"},"devDependencies":{"@types/jquery":"^1.3.0"}} +{ + "dependencies": { + "types-registry": "^0.1.317" + }, + "devDependencies": { + "@types/jquery": "^1.3.0" + } +} //// [/a/data/package-lock.json] -{"dependencies":{"@types/jquery":{"version":"1.3.0"}}} +{ + "dependencies": { + "@types/jquery": { + "version": "1.3.0" + } + } +} //// [/a/data/node_modules/@types/jquery/index.d.ts] declare const $: { x: number } @@ -66,19 +84,19 @@ TI:: [hh:mm:ss:mss] TI:: Updated types-registry npm package TI:: typing installer creation complete //// [/a/data/node_modules/types-registry/index.json] { - "entries": { - "jquery": { - "latest": "1.3.0", - "ts2.0": "1.0.0", - "ts2.1": "1.0.0", - "ts2.2": "1.2.0", - "ts2.3": "1.3.0", - "ts2.4": "1.3.0", - "ts2.5": "1.3.0", - "ts2.6": "1.3.0", - "ts2.7": "1.3.0" + "entries": { + "jquery": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + } } - } } diff --git a/tests/baselines/reference/tsserver/typingsInstaller/pick-typing-names-from-nonrelative-unresolved-imports.js b/tests/baselines/reference/tsserver/typingsInstaller/pick-typing-names-from-nonrelative-unresolved-imports.js index f2a15ebc2e28d..9c03eb9dbdd04 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/pick-typing-names-from-nonrelative-unresolved-imports.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/pick-typing-names-from-nonrelative-unresolved-imports.js @@ -52,19 +52,19 @@ TI:: typing installer creation complete //// [/tmp/node_modules/types-registry/index.json] { - "entries": { - "foo": { - "latest": "1.3.0", - "ts2.0": "1.0.0", - "ts2.1": "1.0.0", - "ts2.2": "1.2.0", - "ts2.3": "1.3.0", - "ts2.4": "1.3.0", - "ts2.5": "1.3.0", - "ts2.6": "1.3.0", - "ts2.7": "1.3.0" + "entries": { + "foo": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + } } - } } @@ -139,7 +139,9 @@ TI:: [hh:mm:ss:mss] Sending response: "typingsInstallerVersion": "FakeVersion", "projectName": "/dev/null/inferredProject1*" } -TI:: [hh:mm:ss:mss] #1 with arguments'["@types/foo@tsFakeMajor.Minor"]'. +TI:: [hh:mm:ss:mss] #1 with arguments'[ + "@types/foo@tsFakeMajor.Minor" +]'. Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (1) @@ -150,7 +152,9 @@ Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: false structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Same program as before -TI:: [hh:mm:ss:mss] #1 with arguments'["@types/foo@tsFakeMajor.Minor"]':: true +TI:: [hh:mm:ss:mss] #1 with arguments'[ + "@types/foo@tsFakeMajor.Minor" +]':: true TI:: Before installWorker PolledWatches:: diff --git a/tests/baselines/reference/tsserver/typingsInstaller/progress-notification-for-error.js b/tests/baselines/reference/tsserver/typingsInstaller/progress-notification-for-error.js index 246f6613c7290..2f982bcd7380a 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/progress-notification-for-error.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/progress-notification-for-error.js @@ -5,7 +5,11 @@ Creating project service //// [/a/package.json] -{"dependencies":{"commander":"1.0.0"}} +{ + "dependencies": { + "commander": "1.0.0" + } +} Info seq [hh:mm:ss:mss] Search path: /a @@ -43,19 +47,19 @@ TI:: typing installer creation complete //// [/a/cache/node_modules/types-registry/index.json] { - "entries": { - "commander": { - "latest": "1.3.0", - "ts2.0": "1.0.0", - "ts2.1": "1.0.0", - "ts2.2": "1.2.0", - "ts2.3": "1.3.0", - "ts2.4": "1.3.0", - "ts2.5": "1.3.0", - "ts2.6": "1.3.0", - "ts2.7": "1.3.0" + "entries": { + "commander": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + } } - } } @@ -126,7 +130,9 @@ TI:: [hh:mm:ss:mss] Sending response: "typingsInstallerVersion": "FakeVersion", "projectName": "/dev/null/inferredProject1*" } -TI:: [hh:mm:ss:mss] #1 with arguments'["@types/commander@tsFakeMajor.Minor"]'. +TI:: [hh:mm:ss:mss] #1 with arguments'[ + "@types/commander@tsFakeMajor.Minor" +]'. Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/package.json 250 undefined WatchType: package.json file Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (1) @@ -135,7 +141,9 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Open files: Info seq [hh:mm:ss:mss] FileName: /a/app.js ProjectRootPath: undefined Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* -TI:: [hh:mm:ss:mss] #1 with arguments'["@types/commander@tsFakeMajor.Minor"]':: false +TI:: [hh:mm:ss:mss] #1 with arguments'[ + "@types/commander@tsFakeMajor.Minor" +]':: false TI:: Before installWorker PolledWatches:: diff --git a/tests/baselines/reference/tsserver/typingsInstaller/progress-notification.js b/tests/baselines/reference/tsserver/typingsInstaller/progress-notification.js index 10f34bf1cfb36..c837bc28d37fc 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/progress-notification.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/progress-notification.js @@ -5,10 +5,20 @@ Creating project service //// [/a/package.json] -{"dependencies":{"commander":"1.0.0"}} +{ + "dependencies": { + "commander": "1.0.0" + } +} //// [/a/cache/package-lock.json] -{"dependencies":{"@types/commander":{"version":"1.0.0"}}} +{ + "dependencies": { + "@types/commander": { + "version": "1.0.0" + } + } +} Info seq [hh:mm:ss:mss] Search path: /a @@ -46,19 +56,19 @@ TI:: typing installer creation complete //// [/a/cache/node_modules/types-registry/index.json] { - "entries": { - "commander": { - "latest": "1.3.0", - "ts2.0": "1.0.0", - "ts2.1": "1.0.0", - "ts2.2": "1.2.0", - "ts2.3": "1.3.0", - "ts2.4": "1.3.0", - "ts2.5": "1.3.0", - "ts2.6": "1.3.0", - "ts2.7": "1.3.0" + "entries": { + "commander": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + } } - } } @@ -129,7 +139,9 @@ TI:: [hh:mm:ss:mss] Sending response: "typingsInstallerVersion": "FakeVersion", "projectName": "/dev/null/inferredProject1*" } -TI:: [hh:mm:ss:mss] #1 with arguments'["@types/commander@tsFakeMajor.Minor"]'. +TI:: [hh:mm:ss:mss] #1 with arguments'[ + "@types/commander@tsFakeMajor.Minor" +]'. Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/package.json 250 undefined WatchType: package.json file Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (1) @@ -138,7 +150,9 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Open files: Info seq [hh:mm:ss:mss] FileName: /a/app.js ProjectRootPath: undefined Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* -TI:: [hh:mm:ss:mss] #1 with arguments'["@types/commander@tsFakeMajor.Minor"]':: true +TI:: [hh:mm:ss:mss] #1 with arguments'[ + "@types/commander@tsFakeMajor.Minor" +]':: true TI:: Before installWorker PolledWatches:: diff --git a/tests/baselines/reference/tsserver/typingsInstaller/projectRootPath-is-provided-for-inferred-project.js b/tests/baselines/reference/tsserver/typingsInstaller/projectRootPath-is-provided-for-inferred-project.js index d1d5ac94fe686..e7db722115d28 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/projectRootPath-is-provided-for-inferred-project.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/projectRootPath-is-provided-for-inferred-project.js @@ -5,19 +5,31 @@ Creating project service const aaaaaaav = 1; //// [/user/username/projects/anotherProject/package.json] -{"devDependencies":{"pkgcurrentdirectory":""}} +{ + "devDependencies": { + "pkgcurrentdirectory": "" + } +} //// [/user/username/projects/anotherProject/node_modules/pkgcurrentdirectory/package.json] -{"name":"pkgcurrentdirectory","main":"index.js","typings":"index.d.ts"} +{ + "name": "pkgcurrentdirectory", + "main": "index.js", + "typings": "index.d.ts" +} //// [/user/username/projects/anotherProject/node_modules/pkgcurrentdirectory/index.d.ts] export function foo() { } //// [/users/username/Library/Caches/typescript/2.7/package.json] -{"devDependencies":{}} +{ + "devDependencies": {} +} //// [/users/username/Library/Caches/typescript/2.7/package-lock.json] -{"dependencies":{}} +{ + "dependencies": {} +} Info seq [hh:mm:ss:mss] Search path: /user/username/projects/san2 @@ -73,19 +85,19 @@ TI:: [hh:mm:ss:mss] TI:: Updated types-registry npm package TI:: typing installer creation complete //// [/users/username/Library/Caches/typescript/2.7/node_modules/types-registry/index.json] { - "entries": { - "pkgcurrentdirectory": { - "latest": "1.3.0", - "ts2.0": "1.0.0", - "ts2.1": "1.0.0", - "ts2.2": "1.2.0", - "ts2.3": "1.3.0", - "ts2.4": "1.3.0", - "ts2.5": "1.3.0", - "ts2.6": "1.3.0", - "ts2.7": "1.3.0" + "entries": { + "pkgcurrentdirectory": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + } } - } } diff --git a/tests/baselines/reference/tsserver/typingsInstaller/redo-resolutions-pointing-to-js-on-typing-install.js b/tests/baselines/reference/tsserver/typingsInstaller/redo-resolutions-pointing-to-js-on-typing-install.js index d72a3b83c4265..d4f719aabda2f 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/redo-resolutions-pointing-to-js-on-typing-install.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/redo-resolutions-pointing-to-js-on-typing-install.js @@ -87,19 +87,19 @@ TI:: typing installer creation complete //// [/user/username/projects/a/cache/node_modules/types-registry/index.json] { - "entries": { - "commander": { - "latest": "1.3.0", - "ts2.0": "1.0.0", - "ts2.1": "1.0.0", - "ts2.2": "1.2.0", - "ts2.3": "1.3.0", - "ts2.4": "1.3.0", - "ts2.5": "1.3.0", - "ts2.6": "1.3.0", - "ts2.7": "1.3.0" + "entries": { + "commander": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + } } - } } @@ -168,7 +168,9 @@ TI:: [hh:mm:ss:mss] Sending response: "typingsInstallerVersion": "FakeVersion", "projectName": "/dev/null/inferredProject1*" } -TI:: [hh:mm:ss:mss] #1 with arguments'["@types/commander@tsFakeMajor.Minor"]'. +TI:: [hh:mm:ss:mss] #1 with arguments'[ + "@types/commander@tsFakeMajor.Minor" +]'. Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (2) @@ -176,7 +178,9 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Open files: Info seq [hh:mm:ss:mss] FileName: /user/username/projects/a/b/app.js ProjectRootPath: undefined Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* -TI:: [hh:mm:ss:mss] #1 with arguments'["@types/commander@tsFakeMajor.Minor"]':: true +TI:: [hh:mm:ss:mss] #1 with arguments'[ + "@types/commander@tsFakeMajor.Minor" +]':: true TI:: Before installWorker PolledWatches:: diff --git a/tests/baselines/reference/tsserver/typingsInstaller/scoped-name-discovery.js b/tests/baselines/reference/tsserver/typingsInstaller/scoped-name-discovery.js index ad5f9d348926a..9b461b5d05860 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/scoped-name-discovery.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/scoped-name-discovery.js @@ -8,19 +8,27 @@ Creating project service {} //// [/package.json] -{"dependencies":{"@zkat/cacache":"1.0.0"}} +{ + "dependencies": { + "@zkat/cacache": "1.0.0" + } +} //// [/node_modules/commander/index.js] //// [/node_modules/commander/package.json] -{"name":"commander"} +{ + "name": "commander" +} //// [/node_modules/@zkat/cacache/index.js] //// [/node_modules/@zkat/cacache/package.json] -{"name":"@zkat/cacache"} +{ + "name": "@zkat/cacache" +} Info seq [hh:mm:ss:mss] Search path: / @@ -103,41 +111,41 @@ TI:: typing installer creation complete //// [/tmp/node_modules/types-registry/index.json] { - "entries": { - "zkat__cacache": { - "latest": "1.3.0", - "ts2.0": "1.0.0", - "ts2.1": "1.0.0", - "ts2.2": "1.2.0", - "ts2.3": "1.3.0", - "ts2.4": "1.3.0", - "ts2.5": "1.3.0", - "ts2.6": "1.3.0", - "ts2.7": "1.3.0" - }, - "nested": { - "latest": "1.3.0", - "ts2.0": "1.0.0", - "ts2.1": "1.0.0", - "ts2.2": "1.2.0", - "ts2.3": "1.3.0", - "ts2.4": "1.3.0", - "ts2.5": "1.3.0", - "ts2.6": "1.3.0", - "ts2.7": "1.3.0" - }, - "commander": { - "latest": "1.3.0", - "ts2.0": "1.0.0", - "ts2.1": "1.0.0", - "ts2.2": "1.2.0", - "ts2.3": "1.3.0", - "ts2.4": "1.3.0", - "ts2.5": "1.3.0", - "ts2.6": "1.3.0", - "ts2.7": "1.3.0" + "entries": { + "zkat__cacache": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + }, + "nested": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + }, + "commander": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + } } - } } @@ -225,7 +233,9 @@ TI:: [hh:mm:ss:mss] Sending response: "typingsInstallerVersion": "FakeVersion", "projectName": "/jsconfig.json" } -TI:: [hh:mm:ss:mss] #1 with arguments'["@types/zkat__cacache@tsFakeMajor.Minor"]'. +TI:: [hh:mm:ss:mss] #1 with arguments'[ + "@types/zkat__cacache@tsFakeMajor.Minor" +]'. Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /package.json 250 undefined WatchType: package.json file Info seq [hh:mm:ss:mss] AutoImportProviderProject: found 1 root files in 1 dependencies in * ms Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache @@ -255,7 +265,9 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Open files: Info seq [hh:mm:ss:mss] FileName: /app.js ProjectRootPath: undefined Info seq [hh:mm:ss:mss] Projects: /jsconfig.json -TI:: [hh:mm:ss:mss] #1 with arguments'["@types/zkat__cacache@tsFakeMajor.Minor"]':: true +TI:: [hh:mm:ss:mss] #1 with arguments'[ + "@types/zkat__cacache@tsFakeMajor.Minor" +]':: true TI:: Before installWorker PolledWatches:: diff --git a/tests/baselines/reference/tsserver/typingsInstaller/should-handle-node-core-modules.js b/tests/baselines/reference/tsserver/typingsInstaller/should-handle-node-core-modules.js index f46a0e66f124e..643f5e7484445 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/should-handle-node-core-modules.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/should-handle-node-core-modules.js @@ -59,19 +59,19 @@ TI:: typing installer creation complete //// [/tmp/node_modules/types-registry/index.json] { - "entries": { - "node": { - "latest": "1.3.0", - "ts2.0": "1.0.0", - "ts2.1": "1.0.0", - "ts2.2": "1.2.0", - "ts2.3": "1.3.0", - "ts2.4": "1.3.0", - "ts2.5": "1.3.0", - "ts2.6": "1.3.0", - "ts2.7": "1.3.0" + "entries": { + "node": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + } } - } } @@ -142,7 +142,9 @@ TI:: [hh:mm:ss:mss] Sending response: "typingsInstallerVersion": "FakeVersion", "projectName": "/dev/null/inferredProject1*" } -TI:: [hh:mm:ss:mss] #1 with arguments'["@types/node@tsFakeMajor.Minor"]'. +TI:: [hh:mm:ss:mss] #1 with arguments'[ + "@types/node@tsFakeMajor.Minor" +]'. Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (2) @@ -150,7 +152,9 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Open files: Info seq [hh:mm:ss:mss] FileName: /a/b/app.js ProjectRootPath: undefined Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* -TI:: [hh:mm:ss:mss] #1 with arguments'["@types/node@tsFakeMajor.Minor"]':: true +TI:: [hh:mm:ss:mss] #1 with arguments'[ + "@types/node@tsFakeMajor.Minor" +]':: true TI:: Before installWorker PolledWatches:: diff --git a/tests/baselines/reference/tsserver/typingsInstaller/should-not-initialize-invaalid-package-names.js b/tests/baselines/reference/tsserver/typingsInstaller/should-not-initialize-invaalid-package-names.js index 7813922483202..75ac235ec236e 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/should-not-initialize-invaalid-package-names.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/should-not-initialize-invaalid-package-names.js @@ -5,7 +5,11 @@ Creating project service let x = 1 //// [/a/b/package.json] -{"dependencies":{"; say ‘Hello from TypeScript!’ #":"0.0.x"}} +{ + "dependencies": { + "; say ‘Hello from TypeScript!’ #": "0.0.x" + } +} Info seq [hh:mm:ss:mss] Search path: /a/b @@ -43,7 +47,7 @@ TI:: typing installer creation complete //// [/tmp/node_modules/types-registry/index.json] { - "entries": {} + "entries": {} } diff --git a/tests/baselines/reference/tsserver/typingsInstaller/telemetry-events.js b/tests/baselines/reference/tsserver/typingsInstaller/telemetry-events.js index 0e89ff4d07e58..d69f0d176e22d 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/telemetry-events.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/telemetry-events.js @@ -5,7 +5,11 @@ Creating project service //// [/a/package.json] -{"dependencies":{"commander":"1.0.0"}} +{ + "dependencies": { + "commander": "1.0.0" + } +} Info seq [hh:mm:ss:mss] Search path: /a @@ -43,19 +47,19 @@ TI:: typing installer creation complete //// [/a/cache/node_modules/types-registry/index.json] { - "entries": { - "commander": { - "latest": "1.3.0", - "ts2.0": "1.0.0", - "ts2.1": "1.0.0", - "ts2.2": "1.2.0", - "ts2.3": "1.3.0", - "ts2.4": "1.3.0", - "ts2.5": "1.3.0", - "ts2.6": "1.3.0", - "ts2.7": "1.3.0" + "entries": { + "commander": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + } } - } } @@ -126,7 +130,9 @@ TI:: [hh:mm:ss:mss] Sending response: "typingsInstallerVersion": "FakeVersion", "projectName": "/dev/null/inferredProject1*" } -TI:: [hh:mm:ss:mss] #1 with arguments'["@types/commander@tsFakeMajor.Minor"]'. +TI:: [hh:mm:ss:mss] #1 with arguments'[ + "@types/commander@tsFakeMajor.Minor" +]'. Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/package.json 250 undefined WatchType: package.json file Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (1) @@ -135,7 +141,9 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Open files: Info seq [hh:mm:ss:mss] FileName: /a/app.js ProjectRootPath: undefined Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* -TI:: [hh:mm:ss:mss] #1 with arguments'["@types/commander@tsFakeMajor.Minor"]':: true +TI:: [hh:mm:ss:mss] #1 with arguments'[ + "@types/commander@tsFakeMajor.Minor" +]':: true TI:: Before installWorker PolledWatches:: diff --git a/tests/baselines/reference/tsserver/typingsInstaller/throttle-delayed-run-install-requests.js b/tests/baselines/reference/tsserver/typingsInstaller/throttle-delayed-run-install-requests.js index cb18fc2b53ebb..20cc752ba4bcc 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/throttle-delayed-run-install-requests.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/throttle-delayed-run-install-requests.js @@ -72,74 +72,74 @@ TI:: typing installer creation complete //// [/a/data/node_modules/types-registry/index.json] { - "entries": { - "commander": { - "latest": "1.3.0", - "ts2.0": "1.0.0", - "ts2.1": "1.0.0", - "ts2.2": "1.2.0", - "ts2.3": "1.3.0", - "ts2.4": "1.3.0", - "ts2.5": "1.3.0", - "ts2.6": "1.3.0", - "ts2.7": "1.3.0" - }, - "jquery": { - "latest": "1.3.0", - "ts2.0": "1.0.0", - "ts2.1": "1.0.0", - "ts2.2": "1.2.0", - "ts2.3": "1.3.0", - "ts2.4": "1.3.0", - "ts2.5": "1.3.0", - "ts2.6": "1.3.0", - "ts2.7": "1.3.0" - }, - "lodash": { - "latest": "1.3.0", - "ts2.0": "1.0.0", - "ts2.1": "1.0.0", - "ts2.2": "1.2.0", - "ts2.3": "1.3.0", - "ts2.4": "1.3.0", - "ts2.5": "1.3.0", - "ts2.6": "1.3.0", - "ts2.7": "1.3.0" - }, - "cordova": { - "latest": "1.3.0", - "ts2.0": "1.0.0", - "ts2.1": "1.0.0", - "ts2.2": "1.2.0", - "ts2.3": "1.3.0", - "ts2.4": "1.3.0", - "ts2.5": "1.3.0", - "ts2.6": "1.3.0", - "ts2.7": "1.3.0" - }, - "gulp": { - "latest": "1.3.0", - "ts2.0": "1.0.0", - "ts2.1": "1.0.0", - "ts2.2": "1.2.0", - "ts2.3": "1.3.0", - "ts2.4": "1.3.0", - "ts2.5": "1.3.0", - "ts2.6": "1.3.0", - "ts2.7": "1.3.0" - }, - "grunt": { - "latest": "1.3.0", - "ts2.0": "1.0.0", - "ts2.1": "1.0.0", - "ts2.2": "1.2.0", - "ts2.3": "1.3.0", - "ts2.4": "1.3.0", - "ts2.5": "1.3.0", - "ts2.6": "1.3.0", - "ts2.7": "1.3.0" + "entries": { + "commander": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + }, + "jquery": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + }, + "lodash": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + }, + "cordova": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + }, + "gulp": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + }, + "grunt": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + } } - } } @@ -223,7 +223,12 @@ TI:: [hh:mm:ss:mss] Sending response: "typingsInstallerVersion": "FakeVersion", "projectName": "/a/app/test1.csproj" } -TI:: [hh:mm:ss:mss] #1 with arguments'["@types/jquery@tsFakeMajor.Minor","@types/cordova@tsFakeMajor.Minor","@types/lodash@tsFakeMajor.Minor","@types/commander@tsFakeMajor.Minor"]'. +TI:: [hh:mm:ss:mss] #1 with arguments'[ + "@types/jquery@tsFakeMajor.Minor", + "@types/cordova@tsFakeMajor.Minor", + "@types/lodash@tsFakeMajor.Minor", + "@types/commander@tsFakeMajor.Minor" +]'. Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /a/app/test2.csproj Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined Project: /a/app/test2.csproj WatchType: Missing file Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /a/app/test2.csproj Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms @@ -300,7 +305,12 @@ TI:: [hh:mm:ss:mss] Sending response: "typingsInstallerVersion": "FakeVersion", "projectName": "/a/app/test2.csproj" } -TI:: [hh:mm:ss:mss] #1 with arguments'["@types/jquery@tsFakeMajor.Minor","@types/cordova@tsFakeMajor.Minor","@types/lodash@tsFakeMajor.Minor","@types/commander@tsFakeMajor.Minor"]':: true +TI:: [hh:mm:ss:mss] #1 with arguments'[ + "@types/jquery@tsFakeMajor.Minor", + "@types/cordova@tsFakeMajor.Minor", + "@types/lodash@tsFakeMajor.Minor", + "@types/commander@tsFakeMajor.Minor" +]':: true TI:: Before installWorker PolledWatches:: @@ -378,8 +388,14 @@ TI:: [hh:mm:ss:mss] Sending response: "installSuccess": true, "typingsInstallerVersion": "FakeVersion" } -TI:: [hh:mm:ss:mss] #2 with arguments'["@types/grunt@tsFakeMajor.Minor","@types/gulp@tsFakeMajor.Minor"]'. -TI:: [hh:mm:ss:mss] #2 with arguments'["@types/grunt@tsFakeMajor.Minor","@types/gulp@tsFakeMajor.Minor"]':: true +TI:: [hh:mm:ss:mss] #2 with arguments'[ + "@types/grunt@tsFakeMajor.Minor", + "@types/gulp@tsFakeMajor.Minor" +]'. +TI:: [hh:mm:ss:mss] #2 with arguments'[ + "@types/grunt@tsFakeMajor.Minor", + "@types/gulp@tsFakeMajor.Minor" +]':: true TI:: Before installWorker TI:: After installWorker diff --git a/tests/baselines/reference/tsserver/typingsInstaller/throttle-delayed-typings-to-install.js b/tests/baselines/reference/tsserver/typingsInstaller/throttle-delayed-typings-to-install.js index 04af549a59a36..cc038000b60bf 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/throttle-delayed-typings-to-install.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/throttle-delayed-typings-to-install.js @@ -10,7 +10,12 @@ Creating project service //// [/a/b/package.json] -{"name":"test","dependencies":{"express":"^3.1.0"}} +{ + "name": "test", + "dependencies": { + "express": "^3.1.0" + } +} //// [/typesMap.json] { @@ -75,63 +80,63 @@ TI:: typing installer creation complete //// [/a/data/node_modules/types-registry/index.json] { - "entries": { - "commander": { - "latest": "1.3.0", - "ts2.0": "1.0.0", - "ts2.1": "1.0.0", - "ts2.2": "1.2.0", - "ts2.3": "1.3.0", - "ts2.4": "1.3.0", - "ts2.5": "1.3.0", - "ts2.6": "1.3.0", - "ts2.7": "1.3.0" - }, - "express": { - "latest": "1.3.0", - "ts2.0": "1.0.0", - "ts2.1": "1.0.0", - "ts2.2": "1.2.0", - "ts2.3": "1.3.0", - "ts2.4": "1.3.0", - "ts2.5": "1.3.0", - "ts2.6": "1.3.0", - "ts2.7": "1.3.0" - }, - "jquery": { - "latest": "1.3.0", - "ts2.0": "1.0.0", - "ts2.1": "1.0.0", - "ts2.2": "1.2.0", - "ts2.3": "1.3.0", - "ts2.4": "1.3.0", - "ts2.5": "1.3.0", - "ts2.6": "1.3.0", - "ts2.7": "1.3.0" - }, - "moment": { - "latest": "1.3.0", - "ts2.0": "1.0.0", - "ts2.1": "1.0.0", - "ts2.2": "1.2.0", - "ts2.3": "1.3.0", - "ts2.4": "1.3.0", - "ts2.5": "1.3.0", - "ts2.6": "1.3.0", - "ts2.7": "1.3.0" - }, - "lodash": { - "latest": "1.3.0", - "ts2.0": "1.0.0", - "ts2.1": "1.0.0", - "ts2.2": "1.2.0", - "ts2.3": "1.3.0", - "ts2.4": "1.3.0", - "ts2.5": "1.3.0", - "ts2.6": "1.3.0", - "ts2.7": "1.3.0" + "entries": { + "commander": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + }, + "express": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + }, + "jquery": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + }, + "moment": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + }, + "lodash": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + } } - } } @@ -220,8 +225,20 @@ TI:: [hh:mm:ss:mss] Sending response: "typingsInstallerVersion": "FakeVersion", "projectName": "/a/app/test.csproj" } -TI:: [hh:mm:ss:mss] #1 with arguments'["@types/jquery@tsFakeMajor.Minor","@types/moment@tsFakeMajor.Minor","@types/lodash@tsFakeMajor.Minor","@types/commander@tsFakeMajor.Minor","@types/express@tsFakeMajor.Minor"]'. -TI:: [hh:mm:ss:mss] #1 with arguments'["@types/jquery@tsFakeMajor.Minor","@types/moment@tsFakeMajor.Minor","@types/lodash@tsFakeMajor.Minor","@types/commander@tsFakeMajor.Minor","@types/express@tsFakeMajor.Minor"]':: true +TI:: [hh:mm:ss:mss] #1 with arguments'[ + "@types/jquery@tsFakeMajor.Minor", + "@types/moment@tsFakeMajor.Minor", + "@types/lodash@tsFakeMajor.Minor", + "@types/commander@tsFakeMajor.Minor", + "@types/express@tsFakeMajor.Minor" +]'. +TI:: [hh:mm:ss:mss] #1 with arguments'[ + "@types/jquery@tsFakeMajor.Minor", + "@types/moment@tsFakeMajor.Minor", + "@types/lodash@tsFakeMajor.Minor", + "@types/commander@tsFakeMajor.Minor", + "@types/express@tsFakeMajor.Minor" +]':: true TI:: Before installWorker PolledWatches:: diff --git a/tests/baselines/reference/tsserver/watchEnvironment/uses-dynamic-polling-when-file-is-added-to-subfolder.js b/tests/baselines/reference/tsserver/watchEnvironment/uses-dynamic-polling-when-file-is-added-to-subfolder.js index 5b251ba994282..5309336f8fa78 100644 --- a/tests/baselines/reference/tsserver/watchEnvironment/uses-dynamic-polling-when-file-is-added-to-subfolder.js +++ b/tests/baselines/reference/tsserver/watchEnvironment/uses-dynamic-polling-when-file-is-added-to-subfolder.js @@ -8,7 +8,11 @@ import {} from "./" //// [/a/username/project/tsconfig.json] -{"watchOptions":{"synchronousWatchDirectory":true}} +{ + "watchOptions": { + "synchronousWatchDirectory": true + } +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/watchEnvironment/uses-non-recursive-watchDirectory-when-file-is-added-to-subfolder.js b/tests/baselines/reference/tsserver/watchEnvironment/uses-non-recursive-watchDirectory-when-file-is-added-to-subfolder.js index c577b2422c12f..ed8dbed079868 100644 --- a/tests/baselines/reference/tsserver/watchEnvironment/uses-non-recursive-watchDirectory-when-file-is-added-to-subfolder.js +++ b/tests/baselines/reference/tsserver/watchEnvironment/uses-non-recursive-watchDirectory-when-file-is-added-to-subfolder.js @@ -8,7 +8,11 @@ import {} from "./" //// [/a/username/project/tsconfig.json] -{"watchOptions":{"synchronousWatchDirectory":true}} +{ + "watchOptions": { + "synchronousWatchDirectory": true + } +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/watchEnvironment/uses-watchFile-when-file-is-added-to-subfolder.js b/tests/baselines/reference/tsserver/watchEnvironment/uses-watchFile-when-file-is-added-to-subfolder.js index 14be6573954c8..01bb8b484e434 100644 --- a/tests/baselines/reference/tsserver/watchEnvironment/uses-watchFile-when-file-is-added-to-subfolder.js +++ b/tests/baselines/reference/tsserver/watchEnvironment/uses-watchFile-when-file-is-added-to-subfolder.js @@ -8,7 +8,11 @@ import {} from "./" //// [/a/username/project/tsconfig.json] -{"watchOptions":{"synchronousWatchDirectory":true}} +{ + "watchOptions": { + "synchronousWatchDirectory": true + } +} //// [/a/lib/lib.d.ts] /// diff --git a/tests/baselines/reference/tsserver/watchEnvironment/watching-files-with-network-style-paths.js b/tests/baselines/reference/tsserver/watchEnvironment/watching-files-with-network-style-paths.js index cb56ac5163cbc..bdb17ac9c2370 100644 --- a/tests/baselines/reference/tsserver/watchEnvironment/watching-files-with-network-style-paths.js +++ b/tests/baselines/reference/tsserver/watchEnvironment/watching-files-with-network-style-paths.js @@ -82,7 +82,7 @@ TI:: typing installer creation complete //// [c:/a/data/node_modules/types-registry/index.json] { - "entries": {} + "entries": {} } @@ -259,7 +259,7 @@ TI:: typing installer creation complete //// [//vda1cs4850/a/data/node_modules/types-registry/index.json] { - "entries": {} + "entries": {} } @@ -444,7 +444,7 @@ TI:: typing installer creation complete //// [//vda1cs4850/a/data/node_modules/types-registry/index.json] { - "entries": {} + "entries": {} } @@ -637,7 +637,7 @@ TI:: typing installer creation complete //// [c:/a/data/node_modules/types-registry/index.json] { - "entries": {} + "entries": {} } @@ -830,7 +830,7 @@ TI:: typing installer creation complete //// [//vda1cs4850/a/data/node_modules/types-registry/index.json] { - "entries": {} + "entries": {} } diff --git a/tests/baselines/reference/tsserver/watchEnvironment/when-watchFile-is-single-watcher-per-file.js b/tests/baselines/reference/tsserver/watchEnvironment/when-watchFile-is-single-watcher-per-file.js index ec914b4f15d34..0772030537d9d 100644 --- a/tests/baselines/reference/tsserver/watchEnvironment/when-watchFile-is-single-watcher-per-file.js +++ b/tests/baselines/reference/tsserver/watchEnvironment/when-watchFile-is-single-watcher-per-file.js @@ -2,7 +2,12 @@ currentDirectory:: / useCaseSensitiveFileNames: false Info seq [hh:mm:ss:mss] Provided types map file "/a/lib/typesMap.json" doesn't exist Before request //// [/user/username/projects/myproject/tsconfig.json] -{"compilerOptions":{"composite":true,"resolveJsonModule":true}} +{ + "compilerOptions": { + "composite": true, + "resolveJsonModule": true + } +} //// [/user/username/projects/myproject/index.ts] import * as tsconfig from "./tsconfig.json"; @@ -61,7 +66,7 @@ Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /user/username/pr Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (3) /a/lib/lib.d.ts Text-1 "/// \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; }" - /user/username/projects/myproject/tsconfig.json Text-1 "{\"compilerOptions\":{\"composite\":true,\"resolveJsonModule\":true}}" + /user/username/projects/myproject/tsconfig.json Text-1 "{\n \"compilerOptions\": {\n \"composite\": true,\n \"resolveJsonModule\": true\n }\n}" /user/username/projects/myproject/index.ts SVC-1-0 "import * as tsconfig from \"./tsconfig.json\";" diff --git a/tests/baselines/reference/tsserver/watchEnvironment/with-excludeDirectories-option-in-configFile.js b/tests/baselines/reference/tsserver/watchEnvironment/with-excludeDirectories-option-in-configFile.js index 214eae25be41d..1c9941390ef46 100644 --- a/tests/baselines/reference/tsserver/watchEnvironment/with-excludeDirectories-option-in-configFile.js +++ b/tests/baselines/reference/tsserver/watchEnvironment/with-excludeDirectories-option-in-configFile.js @@ -24,7 +24,16 @@ export { foo } from "./foo"; export function foo(): string; //// [/user/username/projects/myproject/tsconfig.json] -{"include":["src"],"watchOptions":{"excludeDirectories":["node_modules"]}} +{ + "include": [ + "src" + ], + "watchOptions": { + "excludeDirectories": [ + "node_modules" + ] + } +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/watchEnvironment/with-excludeDirectories-option-in-configuration.js b/tests/baselines/reference/tsserver/watchEnvironment/with-excludeDirectories-option-in-configuration.js index 079318dc9cf6f..7c05b1168871e 100644 --- a/tests/baselines/reference/tsserver/watchEnvironment/with-excludeDirectories-option-in-configuration.js +++ b/tests/baselines/reference/tsserver/watchEnvironment/with-excludeDirectories-option-in-configuration.js @@ -24,7 +24,16 @@ export { foo } from "./foo"; export function foo(): string; //// [/user/username/projects/myproject/tsconfig.json] -{"include":["src"],"watchOptions":{"excludeDirectories":["node_modules"]}} +{ + "include": [ + "src" + ], + "watchOptions": { + "excludeDirectories": [ + "node_modules" + ] + } +} Info seq [hh:mm:ss:mss] request: diff --git a/tests/baselines/reference/tsserver/watchEnvironment/with-fallbackPolling-option-in-configFile.js b/tests/baselines/reference/tsserver/watchEnvironment/with-fallbackPolling-option-in-configFile.js index d954f4e2091c7..22df064a8c8a2 100644 --- a/tests/baselines/reference/tsserver/watchEnvironment/with-fallbackPolling-option-in-configFile.js +++ b/tests/baselines/reference/tsserver/watchEnvironment/with-fallbackPolling-option-in-configFile.js @@ -18,7 +18,11 @@ interface Array { length: number; [n: number]: T; } let y = 1 //// [/a/b/tsconfig.json] -{"watchOptions":{"fallbackPolling":"PriorityInterval"}} +{ + "watchOptions": { + "fallbackPolling": "PriorityInterval" + } +} //// [/a/b/commonFile1.ts] let x = 1 diff --git a/tests/baselines/reference/tsserver/watchEnvironment/with-watchDirectory-option-in-configFile.js b/tests/baselines/reference/tsserver/watchEnvironment/with-watchDirectory-option-in-configFile.js index 7acaf68d7a57a..48ef01c5dc66c 100644 --- a/tests/baselines/reference/tsserver/watchEnvironment/with-watchDirectory-option-in-configFile.js +++ b/tests/baselines/reference/tsserver/watchEnvironment/with-watchDirectory-option-in-configFile.js @@ -18,7 +18,11 @@ interface Array { length: number; [n: number]: T; } let y = 1 //// [/a/b/tsconfig.json] -{"watchOptions":{"watchDirectory":"UseFsEvents"}} +{ + "watchOptions": { + "watchDirectory": "UseFsEvents" + } +} //// [/a/b/commonFile1.ts] let x = 1 diff --git a/tests/baselines/reference/tsserver/watchEnvironment/with-watchFile-option-in-configFile.js b/tests/baselines/reference/tsserver/watchEnvironment/with-watchFile-option-in-configFile.js index 3396f30eee016..14e4844cfbff0 100644 --- a/tests/baselines/reference/tsserver/watchEnvironment/with-watchFile-option-in-configFile.js +++ b/tests/baselines/reference/tsserver/watchEnvironment/with-watchFile-option-in-configFile.js @@ -18,7 +18,11 @@ interface Array { length: number; [n: number]: T; } let y = 1 //// [/a/b/tsconfig.json] -{"watchOptions":{"watchFile":"UseFsEvents"}} +{ + "watchOptions": { + "watchFile": "UseFsEvents" + } +} //// [/a/b/commonFile1.ts] let x = 1 diff --git a/tests/projects/amdModulesWithOut/app/file3.ts b/tests/projects/amdModulesWithOut/app/file3.ts deleted file mode 100644 index d98a62894c810..0000000000000 --- a/tests/projects/amdModulesWithOut/app/file3.ts +++ /dev/null @@ -1,2 +0,0 @@ -export const z = 30; -import { x } from "file1"; \ No newline at end of file diff --git a/tests/projects/amdModulesWithOut/app/file4.ts b/tests/projects/amdModulesWithOut/app/file4.ts deleted file mode 100644 index 3d2e7532a271e..0000000000000 --- a/tests/projects/amdModulesWithOut/app/file4.ts +++ /dev/null @@ -1 +0,0 @@ -const myVar = 30; \ No newline at end of file diff --git a/tests/projects/amdModulesWithOut/app/tsconfig.json b/tests/projects/amdModulesWithOut/app/tsconfig.json deleted file mode 100644 index 46ac3110ff816..0000000000000 --- a/tests/projects/amdModulesWithOut/app/tsconfig.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "module": "amd", - "composite": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "outFile": "module.js" - }, - "exclude": ["module.d.ts"], - "references": [ - { "path": "../lib", "prepend": true } - ] -} \ No newline at end of file diff --git a/tests/projects/amdModulesWithOut/lib/file0.ts b/tests/projects/amdModulesWithOut/lib/file0.ts deleted file mode 100644 index 0b36e4bb48b46..0000000000000 --- a/tests/projects/amdModulesWithOut/lib/file0.ts +++ /dev/null @@ -1 +0,0 @@ -const myGlob = 20; \ No newline at end of file diff --git a/tests/projects/amdModulesWithOut/lib/file1.ts b/tests/projects/amdModulesWithOut/lib/file1.ts deleted file mode 100644 index a65e42351532e..0000000000000 --- a/tests/projects/amdModulesWithOut/lib/file1.ts +++ /dev/null @@ -1 +0,0 @@ -export const x = 10; \ No newline at end of file diff --git a/tests/projects/amdModulesWithOut/lib/file2.ts b/tests/projects/amdModulesWithOut/lib/file2.ts deleted file mode 100644 index 116e118d1ef76..0000000000000 --- a/tests/projects/amdModulesWithOut/lib/file2.ts +++ /dev/null @@ -1 +0,0 @@ -export const y = 20; \ No newline at end of file diff --git a/tests/projects/amdModulesWithOut/lib/global.ts b/tests/projects/amdModulesWithOut/lib/global.ts deleted file mode 100644 index 8dcb253c94d26..0000000000000 --- a/tests/projects/amdModulesWithOut/lib/global.ts +++ /dev/null @@ -1 +0,0 @@ -const globalConst = 10; \ No newline at end of file diff --git a/tests/projects/amdModulesWithOut/lib/tsconfig.json b/tests/projects/amdModulesWithOut/lib/tsconfig.json deleted file mode 100644 index ae3ff0cf3a7cf..0000000000000 --- a/tests/projects/amdModulesWithOut/lib/tsconfig.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "compilerOptions": { - "target": "es5", - "module": "amd", - "composite": true, - "sourceMap": true, - "declarationMap": true, - "strict": false, - "outFile": "module.js" - }, - "exclude": ["module.d.ts"] - -} \ No newline at end of file diff --git a/tests/projects/container/compositeExec/index.ts b/tests/projects/container/compositeExec/index.ts deleted file mode 100644 index 4d3216676fbeb..0000000000000 --- a/tests/projects/container/compositeExec/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -namespace container { - export function getMyConst() { - return myConst; - } -} \ No newline at end of file diff --git a/tests/projects/container/compositeExec/tsconfig.json b/tests/projects/container/compositeExec/tsconfig.json deleted file mode 100644 index 59709a206054f..0000000000000 --- a/tests/projects/container/compositeExec/tsconfig.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "outFile": "../built/local/compositeExec.js", - "composite": true, - "declarationMap": true, - }, - "files": [ - "index.ts" - ], - "references": [ - { "path": "../lib", "prepend": true } - ] -} diff --git a/tests/projects/container/exec/index.ts b/tests/projects/container/exec/index.ts deleted file mode 100644 index 4d3216676fbeb..0000000000000 --- a/tests/projects/container/exec/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -namespace container { - export function getMyConst() { - return myConst; - } -} \ No newline at end of file diff --git a/tests/projects/container/exec/tsconfig.json b/tests/projects/container/exec/tsconfig.json deleted file mode 100644 index 1e2bba01f4fdc..0000000000000 --- a/tests/projects/container/exec/tsconfig.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "outFile": "../built/local/exec.js", - }, - "files": [ - "index.ts" - ], - "references": [ - { "path": "../lib", "prepend": true } - ] -} diff --git a/tests/projects/container/lib/index.ts b/tests/projects/container/lib/index.ts deleted file mode 100644 index c89a3a3d28964..0000000000000 --- a/tests/projects/container/lib/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -namespace container { - export const myConst = 30; -} \ No newline at end of file diff --git a/tests/projects/container/lib/tsconfig.json b/tests/projects/container/lib/tsconfig.json deleted file mode 100644 index 55481caa9e8d7..0000000000000 --- a/tests/projects/container/lib/tsconfig.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "compilerOptions": { - "outFile": "../built/local/lib.js", - "composite": true, - "declarationMap": true, - }, - "references": [], - "files": [ - "index.ts" - ] -} diff --git a/tests/projects/container/tsconfig.json b/tests/projects/container/tsconfig.json deleted file mode 100644 index 854c4029fd9f6..0000000000000 --- a/tests/projects/container/tsconfig.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "files": [], - "include": [], - "references": [ - { "path": "./exec" }, - { "path": "./compositeExec" } - ] -} \ No newline at end of file diff --git a/tests/projects/containerOnlyReferenced/src/folder/index.ts b/tests/projects/containerOnlyReferenced/src/folder/index.ts deleted file mode 100644 index a65e42351532e..0000000000000 --- a/tests/projects/containerOnlyReferenced/src/folder/index.ts +++ /dev/null @@ -1 +0,0 @@ -export const x = 10; \ No newline at end of file diff --git a/tests/projects/containerOnlyReferenced/src/folder/tsconfig.json b/tests/projects/containerOnlyReferenced/src/folder/tsconfig.json deleted file mode 100644 index d54f4070fe9e8..0000000000000 --- a/tests/projects/containerOnlyReferenced/src/folder/tsconfig.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "files": ["index.ts"], - "compilerOptions": { - "composite": true - } -} \ No newline at end of file diff --git a/tests/projects/containerOnlyReferenced/src/folder2/index.ts b/tests/projects/containerOnlyReferenced/src/folder2/index.ts deleted file mode 100644 index a65e42351532e..0000000000000 --- a/tests/projects/containerOnlyReferenced/src/folder2/index.ts +++ /dev/null @@ -1 +0,0 @@ -export const x = 10; \ No newline at end of file diff --git a/tests/projects/containerOnlyReferenced/src/folder2/tsconfig.json b/tests/projects/containerOnlyReferenced/src/folder2/tsconfig.json deleted file mode 100644 index d54f4070fe9e8..0000000000000 --- a/tests/projects/containerOnlyReferenced/src/folder2/tsconfig.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "files": ["index.ts"], - "compilerOptions": { - "composite": true - } -} \ No newline at end of file diff --git a/tests/projects/containerOnlyReferenced/src/tsconfig.json b/tests/projects/containerOnlyReferenced/src/tsconfig.json deleted file mode 100644 index 4d67b0f8bea8b..0000000000000 --- a/tests/projects/containerOnlyReferenced/src/tsconfig.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "files": [], - "compilerOptions": { - "composite": true - }, - "references": [ - { "path": "./folder" }, - { "path": "./folder2"} - ] - } \ No newline at end of file diff --git a/tests/projects/containerOnlyReferenced/tests/index.ts b/tests/projects/containerOnlyReferenced/tests/index.ts deleted file mode 100644 index a65e42351532e..0000000000000 --- a/tests/projects/containerOnlyReferenced/tests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export const x = 10; \ No newline at end of file diff --git a/tests/projects/containerOnlyReferenced/tests/tsconfig.json b/tests/projects/containerOnlyReferenced/tests/tsconfig.json deleted file mode 100644 index 987385d9745f1..0000000000000 --- a/tests/projects/containerOnlyReferenced/tests/tsconfig.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "files": ["index.ts"], - "compilerOptions": { - "composite": true - }, - "references": [ - { "path": "../src" } - ] -} \ No newline at end of file diff --git a/tests/projects/containerOnlyReferenced/tsconfig.json b/tests/projects/containerOnlyReferenced/tsconfig.json deleted file mode 100644 index 28ea2a4385e10..0000000000000 --- a/tests/projects/containerOnlyReferenced/tsconfig.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "files": [], - "compilerOptions": { - "composite": true - }, - "references": [ - { "path": "./src" }, - { "path": "./tests"} - ] -} \ No newline at end of file diff --git a/tests/projects/demo/animals/animal.ts b/tests/projects/demo/animals/animal.ts deleted file mode 100644 index 30727d464895f..0000000000000 --- a/tests/projects/demo/animals/animal.ts +++ /dev/null @@ -1,4 +0,0 @@ -export type Size = "small" | "medium" | "large"; -export default interface Animal { - size: Size; -} diff --git a/tests/projects/demo/animals/dog.ts b/tests/projects/demo/animals/dog.ts deleted file mode 100644 index 3e51978e7f048..0000000000000 --- a/tests/projects/demo/animals/dog.ts +++ /dev/null @@ -1,18 +0,0 @@ -import Animal from '.'; -import { makeRandomName } from '../core/utilities'; - -export interface Dog extends Animal { - woof(): void; - name: string; -} - -export function createDog(): Dog { - return ({ - size: "medium", - woof: function(this: Dog) { - console.log(`${this.name} says "Woof"!`); - }, - name: makeRandomName() - }); -} - diff --git a/tests/projects/demo/animals/index.ts b/tests/projects/demo/animals/index.ts deleted file mode 100644 index 9d4734f2eb768..0000000000000 --- a/tests/projects/demo/animals/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -import Animal from './animal'; - -export default Animal; -import { createDog, Dog } from './dog'; -export { createDog, Dog }; diff --git a/tests/projects/demo/animals/tsconfig.json b/tests/projects/demo/animals/tsconfig.json deleted file mode 100644 index f6b2cc49e441e..0000000000000 --- a/tests/projects/demo/animals/tsconfig.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": "../tsconfig-base.json", - "compilerOptions": { - "outDir": "../lib/animals", - "rootDir": ".", - }, - "references": [ - { "path": "../core" } - ] -} diff --git a/tests/projects/demo/core/tsconfig.json b/tests/projects/demo/core/tsconfig.json deleted file mode 100644 index 9b381b9a5cf11..0000000000000 --- a/tests/projects/demo/core/tsconfig.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "../tsconfig-base.json", - "compilerOptions": { - "outDir": "../lib/core", - "rootDir": "." - } -} \ No newline at end of file diff --git a/tests/projects/demo/core/utilities.ts b/tests/projects/demo/core/utilities.ts deleted file mode 100644 index 0988afaf4c380..0000000000000 --- a/tests/projects/demo/core/utilities.ts +++ /dev/null @@ -1,10 +0,0 @@ - -export function makeRandomName() { - return "Bob!?! "; -} - -export function lastElementOf(arr: T[]): T | undefined { - if (arr.length === 0) return undefined; - return arr[arr.length - 1]; -} - diff --git a/tests/projects/demo/tsconfig-base.json b/tests/projects/demo/tsconfig-base.json deleted file mode 100644 index e5d5ba5c7ce41..0000000000000 --- a/tests/projects/demo/tsconfig-base.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "compilerOptions": { - "declaration": true, - "target": "es5", - "module": "commonjs", - "strict": true, - "noUnusedLocals": true, - "noUnusedParameters": true, - "noImplicitReturns": true, - "noFallthroughCasesInSwitch": true, - "composite": true - } -} \ No newline at end of file diff --git a/tests/projects/demo/tsconfig.json b/tests/projects/demo/tsconfig.json deleted file mode 100644 index a140d4ef8e218..0000000000000 --- a/tests/projects/demo/tsconfig.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "files": [], - "references": [ - { - "path": "./core" - }, - { - "path": "./animals" - }, - { - "path": "./zoo" - } - ] -} \ No newline at end of file diff --git a/tests/projects/demo/zoo/tsconfig.json b/tests/projects/demo/zoo/tsconfig.json deleted file mode 100644 index 318c0dc06b619..0000000000000 --- a/tests/projects/demo/zoo/tsconfig.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "../tsconfig-base.json", - "compilerOptions": { - "outDir": "../lib/zoo", - "rootDir": "." - }, - "references": [ - { - "path": "../animals" - } - ] -} \ No newline at end of file diff --git a/tests/projects/demo/zoo/zoo.ts b/tests/projects/demo/zoo/zoo.ts deleted file mode 100644 index 8958a65aac1f9..0000000000000 --- a/tests/projects/demo/zoo/zoo.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { Dog, createDog } from '../animals/index'; - -export function createZoo(): Array { - return [ - createDog() - ]; -} - diff --git a/tests/projects/emitDeclarationOnly/src/a.ts b/tests/projects/emitDeclarationOnly/src/a.ts deleted file mode 100644 index 330b4fb38d474..0000000000000 --- a/tests/projects/emitDeclarationOnly/src/a.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { B } from "./b"; - -export interface A { - b: B; -} diff --git a/tests/projects/emitDeclarationOnly/src/b.ts b/tests/projects/emitDeclarationOnly/src/b.ts deleted file mode 100644 index 80f920a0e9d1c..0000000000000 --- a/tests/projects/emitDeclarationOnly/src/b.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { C } from "./c"; - -export interface B { - b: C; -} diff --git a/tests/projects/emitDeclarationOnly/src/c.ts b/tests/projects/emitDeclarationOnly/src/c.ts deleted file mode 100644 index b6b6e67dadad1..0000000000000 --- a/tests/projects/emitDeclarationOnly/src/c.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { A } from "./a"; - -export interface C { - a: A; -} diff --git a/tests/projects/emitDeclarationOnly/src/index.ts b/tests/projects/emitDeclarationOnly/src/index.ts deleted file mode 100644 index c6a5229cdb99d..0000000000000 --- a/tests/projects/emitDeclarationOnly/src/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -export { A } from "./a"; -export { B } from "./b"; -export { C } from "./c"; diff --git a/tests/projects/emitDeclarationOnly/tsconfig.json b/tests/projects/emitDeclarationOnly/tsconfig.json deleted file mode 100644 index 334d67116d971..0000000000000 --- a/tests/projects/emitDeclarationOnly/tsconfig.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "compilerOptions": { - "incremental": true, /* Enable incremental compilation */ - "target": "es5", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */ - "module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */ - "declaration": true, /* Generates corresponding '.d.ts' file. */ - "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */ - "sourceMap": true, /* Generates corresponding '.map' file. */ - "outDir": "./lib", /* Redirect output structure to the directory. */ - "composite": true, /* Enable project compilation */ - "strict": true, /* Enable all strict type-checking options. */ - - "esModuleInterop": true, /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */ - - "alwaysStrict": true, - "rootDir": "src", - "emitDeclarationOnly": true - } -} diff --git a/tests/projects/empty-files/core/index.ts b/tests/projects/empty-files/core/index.ts deleted file mode 100644 index 3da69271e97cc..0000000000000 --- a/tests/projects/empty-files/core/index.ts +++ /dev/null @@ -1 +0,0 @@ -export function multiply(a: number, b: number) { return a * b; } diff --git a/tests/projects/empty-files/core/tsconfig.json b/tests/projects/empty-files/core/tsconfig.json deleted file mode 100644 index bbbd3aa889f44..0000000000000 --- a/tests/projects/empty-files/core/tsconfig.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - } -} diff --git a/tests/projects/empty-files/no-references/tsconfig.json b/tests/projects/empty-files/no-references/tsconfig.json deleted file mode 100644 index 719a64cff48e5..0000000000000 --- a/tests/projects/empty-files/no-references/tsconfig.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "references": [], - "files": [], - "compilerOptions": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - } -} diff --git a/tests/projects/empty-files/with-references/tsconfig.json b/tests/projects/empty-files/with-references/tsconfig.json deleted file mode 100644 index d417996720550..0000000000000 --- a/tests/projects/empty-files/with-references/tsconfig.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "references": [ - { "path": "../core" }, - ], - "files": [], - "compilerOptions": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - } -} diff --git a/tests/projects/inferredTypeFromTransitiveModule/bar.ts b/tests/projects/inferredTypeFromTransitiveModule/bar.ts deleted file mode 100644 index 84efa817b01df..0000000000000 --- a/tests/projects/inferredTypeFromTransitiveModule/bar.ts +++ /dev/null @@ -1,9 +0,0 @@ -interface RawAction { - (...args: any[]): Promise | void; -} -interface ActionFactory { - (target: T): T; -} -declare function foo(): ActionFactory; -export default foo()(function foobar(param: string): void { -}); \ No newline at end of file diff --git a/tests/projects/inferredTypeFromTransitiveModule/bundling.ts b/tests/projects/inferredTypeFromTransitiveModule/bundling.ts deleted file mode 100644 index dc7fd0d1864e0..0000000000000 --- a/tests/projects/inferredTypeFromTransitiveModule/bundling.ts +++ /dev/null @@ -1,11 +0,0 @@ -export class LazyModule { - constructor(private importCallback: () => Promise) {} -} - -export class LazyAction< - TAction extends (...args: any[]) => any, - TModule -> { - constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) { - } -} diff --git a/tests/projects/inferredTypeFromTransitiveModule/global.d.ts b/tests/projects/inferredTypeFromTransitiveModule/global.d.ts deleted file mode 100644 index 0386ed66f7071..0000000000000 --- a/tests/projects/inferredTypeFromTransitiveModule/global.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -interface PromiseConstructor { - new (): Promise; -} -declare var Promise: PromiseConstructor; -interface Promise { -} \ No newline at end of file diff --git a/tests/projects/inferredTypeFromTransitiveModule/index.ts b/tests/projects/inferredTypeFromTransitiveModule/index.ts deleted file mode 100644 index f5adaa5eb2a32..0000000000000 --- a/tests/projects/inferredTypeFromTransitiveModule/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { LazyAction, LazyModule } from './bundling'; -const lazyModule = new LazyModule(() => - import('./lazyIndex') -); -export const lazyBar = new LazyAction(lazyModule, m => m.bar); \ No newline at end of file diff --git a/tests/projects/inferredTypeFromTransitiveModule/lazyIndex.ts b/tests/projects/inferredTypeFromTransitiveModule/lazyIndex.ts deleted file mode 100644 index 1b1a7743ed76d..0000000000000 --- a/tests/projects/inferredTypeFromTransitiveModule/lazyIndex.ts +++ /dev/null @@ -1 +0,0 @@ -export { default as bar } from './bar'; diff --git a/tests/projects/inferredTypeFromTransitiveModule/tsconfig.json b/tests/projects/inferredTypeFromTransitiveModule/tsconfig.json deleted file mode 100644 index f29cb38d3fb2c..0000000000000 --- a/tests/projects/inferredTypeFromTransitiveModule/tsconfig.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "compilerOptions": { - "target": "es5", - "declaration": true, - "outDir": "obj", - "incremental": true - } -} \ No newline at end of file diff --git a/tests/projects/lateBoundSymbol/src/globals.d.ts b/tests/projects/lateBoundSymbol/src/globals.d.ts deleted file mode 100644 index 8100e5859afb4..0000000000000 --- a/tests/projects/lateBoundSymbol/src/globals.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -interface SymbolConstructor { - (description?: string | number): symbol; -} -declare var Symbol: SymbolConstructor; \ No newline at end of file diff --git a/tests/projects/lateBoundSymbol/src/hkt.ts b/tests/projects/lateBoundSymbol/src/hkt.ts deleted file mode 100644 index 2b844a9ab7921..0000000000000 --- a/tests/projects/lateBoundSymbol/src/hkt.ts +++ /dev/null @@ -1 +0,0 @@ -export interface HKT { } \ No newline at end of file diff --git a/tests/projects/lateBoundSymbol/src/main.ts b/tests/projects/lateBoundSymbol/src/main.ts deleted file mode 100644 index e5b5fcc6daa95..0000000000000 --- a/tests/projects/lateBoundSymbol/src/main.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { HKT } from "./hkt"; - -const sym = Symbol(); - -declare module "./hkt" { - interface HKT { - [sym]: { a: T } - } -} -const x = 10; -type A = HKT[typeof sym]; \ No newline at end of file diff --git a/tests/projects/lateBoundSymbol/tsconfig.json b/tests/projects/lateBoundSymbol/tsconfig.json deleted file mode 100644 index 6146e91d1f3a4..0000000000000 --- a/tests/projects/lateBoundSymbol/tsconfig.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "compilerOptions": { - "rootDir": "src", - "incremental": true - } -} \ No newline at end of file diff --git a/tests/projects/missingExtendedConfig/tsconfig.first.json b/tests/projects/missingExtendedConfig/tsconfig.first.json deleted file mode 100644 index 98a964017d494..0000000000000 --- a/tests/projects/missingExtendedConfig/tsconfig.first.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./foobar.json", - "compilerOptions": { - "composite": true - } -} \ No newline at end of file diff --git a/tests/projects/missingExtendedConfig/tsconfig.json b/tests/projects/missingExtendedConfig/tsconfig.json deleted file mode 100644 index a14558f41e4e6..0000000000000 --- a/tests/projects/missingExtendedConfig/tsconfig.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "compilerOptions": { - "composite": true - }, - "references": [ - { "path": "./tsconfig.first.json" }, - { "path": "./tsconfig.second.json" } - ] -} \ No newline at end of file diff --git a/tests/projects/missingExtendedConfig/tsconfig.second.json b/tests/projects/missingExtendedConfig/tsconfig.second.json deleted file mode 100644 index 98a964017d494..0000000000000 --- a/tests/projects/missingExtendedConfig/tsconfig.second.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./foobar.json", - "compilerOptions": { - "composite": true - } -} \ No newline at end of file diff --git a/tests/projects/noEmitOnError/shared/types/db.ts b/tests/projects/noEmitOnError/shared/types/db.ts deleted file mode 100644 index 72a8b9e7f566e..0000000000000 --- a/tests/projects/noEmitOnError/shared/types/db.ts +++ /dev/null @@ -1,3 +0,0 @@ -export interface A { - name: string; -} \ No newline at end of file diff --git a/tests/projects/noEmitOnError/src/main.ts b/tests/projects/noEmitOnError/src/main.ts deleted file mode 100644 index e32ff40f44208..0000000000000 --- a/tests/projects/noEmitOnError/src/main.ts +++ /dev/null @@ -1,4 +0,0 @@ -import { A } from "../shared/types/db"; -const a = { - lastName: 'sdsd' -; \ No newline at end of file diff --git a/tests/projects/noEmitOnError/src/other.ts b/tests/projects/noEmitOnError/src/other.ts deleted file mode 100644 index a39fdb0a2789b..0000000000000 --- a/tests/projects/noEmitOnError/src/other.ts +++ /dev/null @@ -1,2 +0,0 @@ -console.log("hi"); -export { } \ No newline at end of file diff --git a/tests/projects/noEmitOnError/tsconfig.json b/tests/projects/noEmitOnError/tsconfig.json deleted file mode 100644 index 581e1ed5e24f9..0000000000000 --- a/tests/projects/noEmitOnError/tsconfig.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "compilerOptions": { - "outDir": "./dev-build", - "noEmitOnError": true - } -} diff --git a/tests/projects/outfile-concat/first/first_PART1.ts b/tests/projects/outfile-concat/first/first_PART1.ts deleted file mode 100644 index b8810033aaacb..0000000000000 --- a/tests/projects/outfile-concat/first/first_PART1.ts +++ /dev/null @@ -1,11 +0,0 @@ -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); diff --git a/tests/projects/outfile-concat/first/first_part2.ts b/tests/projects/outfile-concat/first/first_part2.ts deleted file mode 100644 index bd60d3eba9f74..0000000000000 --- a/tests/projects/outfile-concat/first/first_part2.ts +++ /dev/null @@ -1 +0,0 @@ -console.log(f()); diff --git a/tests/projects/outfile-concat/first/first_part3.ts b/tests/projects/outfile-concat/first/first_part3.ts deleted file mode 100644 index 6f497fc490a3e..0000000000000 --- a/tests/projects/outfile-concat/first/first_part3.ts +++ /dev/null @@ -1,3 +0,0 @@ -function f() { - return "JS does hoists"; -} \ No newline at end of file diff --git a/tests/projects/outfile-concat/first/tsconfig.json b/tests/projects/outfile-concat/first/tsconfig.json deleted file mode 100644 index 28389ee995d0f..0000000000000 --- a/tests/projects/outfile-concat/first/tsconfig.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "compilerOptions": { - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "outFile": "./bin/first-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "first_PART1.ts", - "first_part2.ts", - "first_part3.ts" - ], - "references": [ - ] -} diff --git a/tests/projects/outfile-concat/second/second_part1.ts b/tests/projects/outfile-concat/second/second_part1.ts deleted file mode 100644 index 2b995fbe4a52b..0000000000000 --- a/tests/projects/outfile-concat/second/second_part1.ts +++ /dev/null @@ -1,11 +0,0 @@ -namespace N { - // Comment text -} - -namespace N { - function f() { - console.log('testing'); - } - - f(); -} diff --git a/tests/projects/outfile-concat/second/second_part2.ts b/tests/projects/outfile-concat/second/second_part2.ts deleted file mode 100644 index b81737e89151d..0000000000000 --- a/tests/projects/outfile-concat/second/second_part2.ts +++ /dev/null @@ -1,5 +0,0 @@ -class C { - doSomething() { - console.log("something got done"); - } -} diff --git a/tests/projects/outfile-concat/second/tsconfig.json b/tests/projects/outfile-concat/second/tsconfig.json deleted file mode 100644 index c027c55c6eb48..0000000000000 --- a/tests/projects/outfile-concat/second/tsconfig.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "../2/second-output.js", - "skipDefaultLibCheck": true - }, - "references": [ - ] -} diff --git a/tests/projects/outfile-concat/third/third_part1.ts b/tests/projects/outfile-concat/third/third_part1.ts deleted file mode 100644 index 948688ae5ff15..0000000000000 --- a/tests/projects/outfile-concat/third/third_part1.ts +++ /dev/null @@ -1,2 +0,0 @@ -var c = new C(); -c.doSomething(); diff --git a/tests/projects/outfile-concat/third/tsconfig.json b/tests/projects/outfile-concat/third/tsconfig.json deleted file mode 100644 index 1fa6cd4c9c439..0000000000000 --- a/tests/projects/outfile-concat/third/tsconfig.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "compilerOptions": { - "ignoreDeprecations": "5.0", - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "./thirdjs/output/third-output.js", - "skipDefaultLibCheck": true, - }, - "files": [ - "third_part1.ts" - ], - "references": [ - { "path": "../first", "prepend": true }, - { "path": "../second", "prepend": true }, - ] -} diff --git a/tests/projects/projectReferenceWithRootDirInParent/src/main/a.ts b/tests/projects/projectReferenceWithRootDirInParent/src/main/a.ts deleted file mode 100644 index bacd116a1bb72..0000000000000 --- a/tests/projects/projectReferenceWithRootDirInParent/src/main/a.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { b } from './b'; -const a = b; \ No newline at end of file diff --git a/tests/projects/projectReferenceWithRootDirInParent/src/main/b.ts b/tests/projects/projectReferenceWithRootDirInParent/src/main/b.ts deleted file mode 100644 index 8ff56d7eca479..0000000000000 --- a/tests/projects/projectReferenceWithRootDirInParent/src/main/b.ts +++ /dev/null @@ -1 +0,0 @@ -export const b = 0; diff --git a/tests/projects/projectReferenceWithRootDirInParent/src/main/tsconfig.json b/tests/projects/projectReferenceWithRootDirInParent/src/main/tsconfig.json deleted file mode 100644 index deb6cd7b9ba03..0000000000000 --- a/tests/projects/projectReferenceWithRootDirInParent/src/main/tsconfig.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "../../tsconfig.base.json", - "references": [ - { "path": "../other" } - ] -} \ No newline at end of file diff --git a/tests/projects/projectReferenceWithRootDirInParent/src/other/other.ts b/tests/projects/projectReferenceWithRootDirInParent/src/other/other.ts deleted file mode 100644 index 002e06d582190..0000000000000 --- a/tests/projects/projectReferenceWithRootDirInParent/src/other/other.ts +++ /dev/null @@ -1 +0,0 @@ -export const Other = 0; diff --git a/tests/projects/projectReferenceWithRootDirInParent/src/other/tsconfig.json b/tests/projects/projectReferenceWithRootDirInParent/src/other/tsconfig.json deleted file mode 100644 index fdf102617fa99..0000000000000 --- a/tests/projects/projectReferenceWithRootDirInParent/src/other/tsconfig.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "../../tsconfig.base.json" -} \ No newline at end of file diff --git a/tests/projects/projectReferenceWithRootDirInParent/tsconfig.base.json b/tests/projects/projectReferenceWithRootDirInParent/tsconfig.base.json deleted file mode 100644 index be7756d8bc267..0000000000000 --- a/tests/projects/projectReferenceWithRootDirInParent/tsconfig.base.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "rootDir": "./src/", - "outDir": "./dist/", - "skipDefaultLibCheck": true - }, - "exclude": [ - "node_modules" - ] -} \ No newline at end of file diff --git a/tests/projects/reexport/src/main/index.ts b/tests/projects/reexport/src/main/index.ts deleted file mode 100644 index bb310921ad3f0..0000000000000 --- a/tests/projects/reexport/src/main/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -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 deleted file mode 100644 index 22cc4548a29c4..0000000000000 --- a/tests/projects/reexport/src/main/tsconfig.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "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 deleted file mode 100644 index 3a46e9eab996d..0000000000000 --- a/tests/projects/reexport/src/pure/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./session"; diff --git a/tests/projects/reexport/src/pure/session.ts b/tests/projects/reexport/src/pure/session.ts deleted file mode 100644 index c0b7057ab5c4a..0000000000000 --- a/tests/projects/reexport/src/pure/session.ts +++ /dev/null @@ -1,4 +0,0 @@ -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 deleted file mode 100644 index 185746046987e..0000000000000 --- a/tests/projects/reexport/src/pure/tsconfig.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "compilerOptions": { - "composite": true, - "outDir": "../../out", - "rootDir": "../" - }, - "include": ["**/*.ts"] -} diff --git a/tests/projects/reexport/src/tsconfig.json b/tests/projects/reexport/src/tsconfig.json deleted file mode 100644 index d46051de26e31..0000000000000 --- a/tests/projects/reexport/src/tsconfig.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "files": [], - "include": [], - "references": [{ "path": "./pure" }, { "path": "./main" }] -} diff --git a/tests/projects/sample1/core/anotherModule.ts b/tests/projects/sample1/core/anotherModule.ts deleted file mode 100644 index aaeaf200cc68d..0000000000000 --- a/tests/projects/sample1/core/anotherModule.ts +++ /dev/null @@ -1 +0,0 @@ -export const World = "hello"; diff --git a/tests/projects/sample1/core/index.ts b/tests/projects/sample1/core/index.ts deleted file mode 100644 index 529a7f549ec4a..0000000000000 --- a/tests/projects/sample1/core/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } diff --git a/tests/projects/sample1/core/some_decl.d.ts b/tests/projects/sample1/core/some_decl.d.ts deleted file mode 100644 index 2a9cf55cf281e..0000000000000 --- a/tests/projects/sample1/core/some_decl.d.ts +++ /dev/null @@ -1 +0,0 @@ -declare const dts: any; diff --git a/tests/projects/sample1/core/tsconfig.json b/tests/projects/sample1/core/tsconfig.json deleted file mode 100644 index 316de7dfdee9e..0000000000000 --- a/tests/projects/sample1/core/tsconfig.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - } -} \ No newline at end of file diff --git a/tests/projects/sample1/logic/index.ts b/tests/projects/sample1/logic/index.ts deleted file mode 100644 index b100878f9f7a4..0000000000000 --- a/tests/projects/sample1/logic/index.ts +++ /dev/null @@ -1,6 +0,0 @@ -import * as c from '../core/index'; -export function getSecondsInDay() { - return c.multiply(10, 15); -} -import * as mod from '../core/anotherModule'; -export const m = mod; diff --git a/tests/projects/sample1/logic/tsconfig.json b/tests/projects/sample1/logic/tsconfig.json deleted file mode 100644 index 13d6bb3a188e3..0000000000000 --- a/tests/projects/sample1/logic/tsconfig.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "sourceMap": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../core" } - ] -} diff --git a/tests/projects/sample1/tests/index.ts b/tests/projects/sample1/tests/index.ts deleted file mode 100644 index 09e1c1476c259..0000000000000 --- a/tests/projects/sample1/tests/index.ts +++ /dev/null @@ -1,8 +0,0 @@ -import * as c from '../core/index'; -import * as logic from '../logic/index'; - -c.leftPad("", 10); -logic.getSecondsInDay(); - -import * as mod from '../core/anotherModule'; -export const m = mod; diff --git a/tests/projects/sample1/tests/tsconfig.json b/tests/projects/sample1/tests/tsconfig.json deleted file mode 100644 index c49e3a30e2d32..0000000000000 --- a/tests/projects/sample1/tests/tsconfig.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" } - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - } -} \ No newline at end of file diff --git a/tests/projects/sample1/ui/index.ts b/tests/projects/sample1/ui/index.ts deleted file mode 100644 index 9d7e7e3a89eb1..0000000000000 --- a/tests/projects/sample1/ui/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -import * as logic from '../logic'; - -export function run() { - console.log(logic.getSecondsInDay()); -} diff --git a/tests/projects/sample1/ui/tsconfig.json b/tests/projects/sample1/ui/tsconfig.json deleted file mode 100644 index 0894bd94adec9..0000000000000 --- a/tests/projects/sample1/ui/tsconfig.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "compilerOptions": { - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../logic/index" } - ] -} diff --git a/tests/projects/transitiveReferences/a.ts b/tests/projects/transitiveReferences/a.ts deleted file mode 100644 index 56d3f8e39a087..0000000000000 --- a/tests/projects/transitiveReferences/a.ts +++ /dev/null @@ -1 +0,0 @@ -export class A {} diff --git a/tests/projects/transitiveReferences/b.ts b/tests/projects/transitiveReferences/b.ts deleted file mode 100644 index 8b601a6076523..0000000000000 --- a/tests/projects/transitiveReferences/b.ts +++ /dev/null @@ -1,2 +0,0 @@ -import {A} from '@ref/a'; -export const b = new A(); diff --git a/tests/projects/transitiveReferences/c.ts b/tests/projects/transitiveReferences/c.ts deleted file mode 100644 index d45b2621f3ed5..0000000000000 --- a/tests/projects/transitiveReferences/c.ts +++ /dev/null @@ -1,4 +0,0 @@ -import {b} from './b'; -import {X} from "@ref/a"; -b; -X; \ No newline at end of file diff --git a/tests/projects/transitiveReferences/refs/a.d.ts b/tests/projects/transitiveReferences/refs/a.d.ts deleted file mode 100644 index 9a5b34f9a2b8c..0000000000000 --- a/tests/projects/transitiveReferences/refs/a.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export class X {} -export class A {} diff --git a/tests/projects/transitiveReferences/tsconfig.a.json b/tests/projects/transitiveReferences/tsconfig.a.json deleted file mode 100644 index 74fe1ef8b563c..0000000000000 --- a/tests/projects/transitiveReferences/tsconfig.a.json +++ /dev/null @@ -1 +0,0 @@ -{"compilerOptions": {"composite": true}, "files": ["a.ts"]} diff --git a/tests/projects/transitiveReferences/tsconfig.b.json b/tests/projects/transitiveReferences/tsconfig.b.json deleted file mode 100644 index f5e23c38b762d..0000000000000 --- a/tests/projects/transitiveReferences/tsconfig.b.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "compilerOptions": { - "composite": true, - "baseUrl": "./", - "paths": { - "@ref/*": [ "./*" ] - } - }, - "files": [ "b.ts" ], - "references": [ { "path": "tsconfig.a.json" } ] -} diff --git a/tests/projects/transitiveReferences/tsconfig.c.json b/tests/projects/transitiveReferences/tsconfig.c.json deleted file mode 100644 index c9ddec9711131..0000000000000 --- a/tests/projects/transitiveReferences/tsconfig.c.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "files": [ "c.ts" ], - "compilerOptions": { - "baseUrl": "./", - "paths": { - "@ref/*": [ "./refs/*" ] - } - }, - "references": [ { "path": "tsconfig.b.json" } ] -}